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 robot that has the specified type for this player. | public Robot getRobot(int type) {
return this.robots.get(type);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Robot getRobot(String type) throws Exception {\r\n\t\tint index;\r\n\t\t\r\n\t\tswitch (type.toLowerCase()) {\r\n\t\tcase \"scout\":\r\n\t\t\tindex = 0;\r\n\t\t\tbreak;\r\n\t\tcase \"sniper\":\r\n\t\t\tindex = 1;\r\n\t\t\tbreak;\r\n\t\tcase \"tank\":\r\n\t\t\tindex = 2;\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tthrow new Exception(\"Unknown/Invalid robot type.\");\r\n\t\t}\r\n\t\t\r\n\t\treturn this.robots.get(index);\r\n\t}",
"public Robot getRobot() {\n\t\treturn this.robot;\n\t}",
"Robot getRobot(Position pos);",
"public RobotID getRobot() {\n return robot;\n }",
"public BasicRobot getRobot() {\n\t\treturn robot;\n\t}",
"public Robot getRobot(String nombre);",
"public int getCurType(){\r\n\t\treturn this.curRobotType;\r\n\t}",
"@Basic\r\n\tpublic Robot getRobot()\r\n\t{\r\n\t\treturn this.robot;\r\n\t}",
"public String getRobot() {\n return nombre;\n }",
"boolean findRobot();",
"public Robot choisitRobot() {\r\n List<Robot> indisponibles = new ArrayList<Robot>();\r\n List<Robot> disponibles = new ArrayList<Robot>();\r\n for (Robot robot : robots) {\r\n if (robot.initDep().isEmpty()) {\r\n indisponibles.add(robot);\r\n } else {\r\n disponibles.add(robot);\r\n }\r\n }\r\n for (Robot r : indisponibles) {\r\n System.out.println(r.toString() + \" ne peut pas se deplacer :(\");\r\n }\r\n int i = 1;\r\n for (Robot robot : disponibles) {\r\n System.out.println(\"\\t\" + i + \" : \" + robot.toString());\r\n i += 1;\r\n }\r\n i = secureInput(1, i - 1);\r\n if (disponibles.isEmpty()) {\r\n return null;\r\n }\r\n return disponibles.get(i - 1);\r\n }",
"public boolean isRobot() {\n\t\treturn isRobot;\n\t}",
"public VehicleType get(VehicleType t){\n\t\tfor(int i = 0; i < types.size(); i++){\n\t\t\tif(types.get(i).getVehicleType().equals(t.getVehicleType())){\n\t\t\t\treturn types.get(i);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public PlayerTypes getPlayerType();",
"public FreeColGameObjectType getType() {\n return this;\n }",
"public RoomType getRoomType() {\r\n\t\treturn this.type;\r\n\t}",
"public static BufferedImage getRobot(Robot r) {\n\t\t//a kulonbozo jatekosok robotjai kulonbozo szinuek\n\t\t//robot=ImageIO.read(new File(\"robot\"+(r.getID()-1)+\".png\"));\n\t\t//return robot;\n\t\t//return robot[r.getID()-1];\n\t\treturn robot[r.getID()];\n\t}",
"public Component getComponent(Class type) {\n for (Component component : components) {\n if (component.getClass().equals(type)) {\n return component;\n }\n }\n return null;\n }",
"SpawnType getLobbySpawnType();",
"public RoboPlatform platform() {\n return platform;\n }",
"public EnnemyType getType()\n\t{\n\t\treturn type;\n\t}",
"public void agregarRobot(Robot robot);",
"public boolean isBot() {\n \t\treturn (type == PLAYER_BOT);\n \t}",
"public RoomType getRoomType() {\n\t\treturn roomType;\n\t}",
"public Skill get(SkillType type) {\r\n\t\treturn this.skills.get(type);\r\n\t}",
"SpawnType getGameSpawnType();",
"public interface RobotConveyor {\n\n Robot createRobot();\n}",
"public static GameType getGameType() {\n\t\treturn type;\n\t}",
"public TYPE getType(){\n return this.type;\n }",
"public RoboticonCustomisation getRoboticon(){\r\n\t\treturn roboticon;\r\n\t}",
"@Override\n public NativeRobot getNativeRobot(GraphicsDevice screen) {\n return null;\n }",
"public int getPlayerType() {\r\n\t\treturn Player.RANDOM_PLAYER;\r\n\t}",
"public final Physique.TypeP getType() {\n return Physique.TypeP.tank;\n }",
"SpawnType getSpectatorSpawnType();",
"public void killRobot(String robotType) {\r\n\t\tif (robotType.toLowerCase().equals(\"scout\")) {\r\n\t\t\tkillRobot(0);\r\n\t\t} else if (robotType.toLowerCase().equals(\"sniper\")) {\r\n\t\t\tkillRobot(1);\r\n\t\t} else if (robotType.toLowerCase().equals(\"tank\")) {\r\n\t\t\tkillRobot(2);\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Invalid/unknown robot type.\");\r\n\t\t}\r\n\t}",
"@Override\n\tpublic Types getType() {\n\t\treturn GameObject.Types.PERSON;\n\t}",
"public Type getType() {\n \t\tif(type == null) {\n \t\t\ttry {\n \t\t\t\tsetType(B3BackendActivator.instance.getBundle().loadClass(getQualifiedName()));\n \t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t// TODO: ?? Need to handle this, so the \"not found\" surfaces to the user...\n\t\t\t\t// Handled via model validation - type can not be null\n \t\t\t}\n \t\t}\n \t\treturn type;\n \t}",
"public Kind findByType(String type) {\n\t\tString hql=\"from Kind k where k.type=:type\";\n\t\tKind kind = sessionFactory.getCurrentSession().createQuery(hql,Kind.class).setParameter(\"type\", type).uniqueResult();\t\t\n\t\treturn kind;\n\t}",
"public VehicleType getVehicleType() {\r\n VehicleType vt = new VehicleType(this.vehicleType.getCategory());\r\n return vt;\r\n }",
"public SmartDevice getDevice(String type) {\n\t\treturn null;\n\t}",
"public VehicleType getVehicleType() {\n\t\treturn vehicleType;\n\t}",
"public abstract Class<? extends Tower> getTower();",
"public String getPlayerType() {\r\n return playerType;\r\n\t}",
"private ParkingType getVehicleType() {\n LOGGER.info(\"Please select vehicle type from menu\");\n LOGGER.info(\"1 CAR\");\n LOGGER.info(\"2 BIKE\");\n int input = inputReaderUtil.readSelection();\n switch (input) {\n case 1:\n return ParkingType.CAR;\n case 2:\n return ParkingType.BIKE;\n default:\n LOGGER.error(\"Incorrect input provided\");\n throw new IllegalArgumentException(\"Entered input is invalid\");\n }\n }",
"DoorMat getType(boolean isPowered, boolean hingeOnRightSide);",
"public AngelType getType() {\n return type;\n }",
"@java.lang.Override\n public google.maps.fleetengine.v1.Vehicle.VehicleTypeOrBuilder getVehicleTypeOrBuilder() {\n return getVehicleType();\n }",
"@NonNull\n\t<T> Optional<T> get(@NonNull Class<T> type);",
"@Override\n\tpublic VehicleType getVehicleType() {\n\t\treturn vehicleType;\n\t}",
"@java.lang.Override\n public google.maps.fleetengine.v1.Vehicle.VehicleType getVehicleType() {\n return vehicleType_ == null ? google.maps.fleetengine.v1.Vehicle.VehicleType.getDefaultInstance() : vehicleType_;\n }",
"public int getType() {\n validify();\n return Client.INSTANCE.pieceGetType(ptr);\n }",
"public void killRobot(int robotType) {\r\n\t\trobots.get(robotType).setDead();\r\n\t\t++this.robotsDestroyed;\r\n\t}",
"public Object getType()\r\n {\r\n\treturn type;\r\n }",
"public Type getType() {\r\n return this.type;\r\n }",
"@Override\n public IronGolemType getType() {\n return IronGolemType.TYPE;\n }",
"public Type getType()\n {\n return type;\n }",
"public Direction getCorrectRobotDirection();",
"public static RobotInfo robotInfo(Robot r) throws GameActionException {\n return RC.senseRobotInfo(r);\n }",
"public Type getType() {\n return this.type;\n }",
"public Optional<String> getType() {\n return Optional.ofNullable(type);\n }",
"@java.lang.Override\n public speech.multilang.Params.ScoringControllerParams.Type getType() {\n @SuppressWarnings(\"deprecation\")\n speech.multilang.Params.ScoringControllerParams.Type result = speech.multilang.Params.ScoringControllerParams.Type.valueOf(type_);\n return result == null ? speech.multilang.Params.ScoringControllerParams.Type.UNKNOWN : result;\n }",
"public PlatformType getPlatformType();",
"public final ActorType getType() {\n return type;\n }",
"public BonjourService getProtocolFor(String type) {\n ProtocolMetadata metadata = types.get(type);\n if (metadata != null) {\n return metadata.getProtocol();\n } else {\n return null;\n }\n }",
"String getActorType();",
"<T extends Component> Optional<T> getExactComponent(Class<T> type);",
"public Equip getEquip(int type)\r\n {\r\n if (type==Equip.WEAPON)\r\n return weapon;\r\n else if (type == Equip.ARMOR)\r\n return armor;\r\n return null;\r\n }",
"public Class<?> getType() {\n return this.type;\n }",
"public TypeEnum getType() {\n return type;\n }",
"public PlaceType getType() {\n\t\treturn type;\n\t}",
"interface Robot {\n // Returns true if the cell in front is open and robot moves into the cell.\n // Returns false if the cell in front is blocked and robot stays in the current cell.\n public boolean move();\n\n // Robot will stay in the same cell after calling turnLeft/turnRight.\n // Each turn will be 90 degrees.\n public void turnLeft();\n\n public void turnRight();\n\n // Clean the current cell.\n public void clean();\n }",
"public Type getType() {\n return type;\n }",
"@Override\r\n \tprotected Robot getRobot() {\t\t\r\n \t\treturn null;\r\n \t}",
"public PlanNode findAtOrBelow( Type typeToFind ) {\n return findAtOrBelow(EnumSet.of(typeToFind));\n }",
"private static RemoteWebDriver getWebDriver(final Browsers type, Proxy proxy) {\n DesiredCapabilities capabilitiesProxy = new DesiredCapabilities();\n if (proxy != null) {\n capabilitiesProxy.setCapability(CapabilityType.PROXY, proxy);\n }\n switch (type) {\n case CHROME:\n return getChromeDriver(proxy);\n case FIREFOX:\n return getFirefoxDriver(capabilitiesProxy);\n case IEXPLORE:\n return getIEDriver(proxy);\n case OPERA:\n return getOperaDriver(capabilitiesProxy);\n case SAFARI:\n return getSafariDriver(capabilitiesProxy);\n case SELENDROID:\n return getSelendroidDriver();\n /**\n * Appium Android browser for testing with Android\n */\n case APPIUM_ANDROID:\n return getAppiumDriver();\n /**\n * Appium iOS Safari browser for testing with iOS Simulator\n */\n case IOS:\n return getIosDriver();\n default:\n return null;\n }\n }",
"public Point getRobotLocation();",
"public T caseRobot(Robot object) {\r\n\t\treturn null;\r\n\t}",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public ItineraryLegType journeyLegType() {\n if (walk != null) {\n return ItineraryLegType.WALK;\n } else {\n return ItineraryLegType.BUS;\n }\n }",
"public String getRoomtype() {\r\n\t\treturn roomtype;\r\n\t}",
"@java.lang.Override public speech.multilang.Params.ScoringControllerParams.Type getType() {\n @SuppressWarnings(\"deprecation\")\n speech.multilang.Params.ScoringControllerParams.Type result = speech.multilang.Params.ScoringControllerParams.Type.valueOf(type_);\n return result == null ? speech.multilang.Params.ScoringControllerParams.Type.UNKNOWN : result;\n }",
"public java.lang.Object getRobotOrientation() throws CallError, InterruptedException {\n return (java.lang.Object)service.call(\"getRobotOrientation\").get();\n }",
"public Type getType(){\n\t\treturn this.type;\n\t}",
"public Type getType() {\n return _type;\n }",
"public TypeMirror getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public List<Robot> getRobots();",
"public String getMovementType() {\n\t\treturn (String) get_Value(\"MovementType\");\n\t}",
"public Type getType () {\n\t\treturn type;\n\t}",
"Type getType();",
"Type getType();"
] | [
"0.77133924",
"0.6256085",
"0.6186607",
"0.6157678",
"0.6141048",
"0.60367876",
"0.5982508",
"0.59375024",
"0.54730374",
"0.5451307",
"0.5412805",
"0.5371345",
"0.5359089",
"0.52377874",
"0.52312547",
"0.518372",
"0.51501435",
"0.51132774",
"0.50798213",
"0.5079327",
"0.5064859",
"0.50580406",
"0.503914",
"0.50355464",
"0.50153464",
"0.49962983",
"0.49846977",
"0.4976908",
"0.49715912",
"0.49599662",
"0.4947401",
"0.4939694",
"0.49365413",
"0.49326402",
"0.49091375",
"0.49062806",
"0.49032795",
"0.49006128",
"0.48998615",
"0.48933813",
"0.48860317",
"0.48808888",
"0.48504063",
"0.4818806",
"0.48181498",
"0.4813468",
"0.48128825",
"0.48103055",
"0.4808862",
"0.48011583",
"0.4783923",
"0.47806188",
"0.477249",
"0.47699928",
"0.47642043",
"0.47629115",
"0.47625616",
"0.47625038",
"0.47595152",
"0.4747774",
"0.4747755",
"0.4745605",
"0.47445047",
"0.47444978",
"0.47403282",
"0.47363836",
"0.47320625",
"0.47315586",
"0.4731426",
"0.47291124",
"0.47262374",
"0.47216237",
"0.4711709",
"0.47082004",
"0.47074875",
"0.4706598",
"0.47000226",
"0.46971136",
"0.46971136",
"0.46971136",
"0.46971136",
"0.46971136",
"0.46971136",
"0.46971136",
"0.46971136",
"0.46971136",
"0.46971136",
"0.46965256",
"0.46920466",
"0.46895337",
"0.4689523",
"0.4689507",
"0.468609",
"0.46834707",
"0.46771908",
"0.46769798",
"0.46671525",
"0.46638614",
"0.46530193",
"0.46530193"
] | 0.8151462 | 0 |
Returns all robots that the player controls that are currently alive. | public List<Robot> getRobotsAlive() {
List<Robot> listOfAlive = new ArrayList<Robot>();
for(int x = 0; x < 3; ++x) {
if (robots.get(x).isAlive()) {
listOfAlive.add(robots.get(x));
}
}
return listOfAlive;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Robot> getMoveableRobots() {\r\n\t\tList<Robot> moveable = new ArrayList<Robot>();\r\n\r\n\t\tfor (Robot robot : this.getRobotsAlive()) {\r\n\t\t\tif (robot.getMovement() > 0) {\r\n\t\t\t\tmoveable.add(robot);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn moveable;\r\n\t}",
"public List<Robot> getRobots();",
"@Override\r\n\tpublic Set<Robot> getRobots(Board board)\r\n\t{\r\n\t\treturn board.getElements(Robot.class);\r\n\t}",
"public ArrayList<Bot> getAllBots() {\n final String errorMessage = \"Error getting all bots\";\n ResultSet retrievedBots = dbConnector.selectQuery(\"SELECT c.name, bot_id, active_time, probability, activity_status\" +\n \" FROM Bots as b, Company as c WHERE b.company_id = c.company_id;\");\n ArrayList<Bot> bots = null;\n try {\n bots = new ArrayList<Bot>();\n while (retrievedBots.next()) {\n bots.add(toBot(retrievedBots));\n }\n } catch (SQLException e) {\n System.out.println(errorMessage);\n }\n return bots;\n }",
"public ArrayList<String> getRobots() {\n return robotDiscovery.getRobots();\n }",
"public List<SpeedController> getMotors() {\n\t\treturn new ArrayList<>(motors);\n\t}",
"public final Array<DodlesActor> activeActors() {\n return activeActors(true);\n }",
"public BasicRobot getRobot() {\n\t\treturn robot;\n\t}",
"public void refreshRobots() {\r\n\t\tfor (Robot curRobot : this.robots) {\r\n\t\t\tif (curRobot.isAlive()) {\r\n\t\t\t\tcurRobot.setMovement(refSheet.getMovement(curRobot.getType()));\r\n\t\t\t\tcurRobot.setFired(false);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public NXTRegulatedMotor[] getMotors() {\n\t\treturn new NXTRegulatedMotor[] { leftMotor, rightMotor };\n\t}",
"@Override\r\n\tpublic ArrayList<PlayerPO> getAllPlayers() {\n\t\treturn playerController.getAllPlayers();\r\n\t}",
"public static List<Player> getTrackablePlayers() {\n\t\tPlayer[] players = Bukkit.getOnlinePlayers();\n\t\tList<Player> players1 = new ArrayList<Player>();\n\t\tfor (int i = 0; i < players.length; i++) {\n\t\t\tif (!players[i].hasMetadata(\"invisible\")) {\n\t\t\t\tplayers1.add(players[i]);\n\t\t\t}\n\n\t\t}\n\t\treturn players1;\n\t}",
"public void spawnRobots() {\n\t\tString robotName\t= \"\";\n\t\tPlayer newPlayer\t= null;\n\t\tint numberOfRobots \t= 0;\n\t\tint robotsPerPlayer = server.getRobotsPerPlayer();\n\t\tint numberOfPlayers = server.getPlayerCount();\n\t\tint robotsPerLevel\t= server.getRobotsPerLevel();\n\t\t\n\t\t// calculate how many robots that should be spawned\n\t\trobotsPerPlayer = robotsPerPlayer *\n\t\t\t\t\t\t (robotsPerLevel * \n\t\t\t\t\t\t currentLevel);\n\t\t\n\t\tnumberOfRobots \t= robotsPerPlayer *\n\t\t\t\t\t\t numberOfPlayers;\n\t\t\n\t\tfor(int i = 0; i < numberOfRobots; i++) {\n\t\t\trobotName \t\t\t= \"Robot\" + (i+1);\n\t\t\tnewPlayer = initPlayerToGameplane(robotName, \n\t\t\t\t\t\t\t\t \t\t\t PlayerType.Robot, \n\t\t\t\t\t\t\t\t \t\t\t 0, 0);\n\t\t\t\n\t\t\tHandleCommunication.broadcastToClient(null, \n\t\t\t\t\t\t\t\t\t\t\t\t server.getConnectedClientList(), \n\t\t\t\t\t\t\t\t\t\t\t\t SendSetting.AddPlayer, \n\t\t\t\t\t\t\t\t\t\t\t\t newPlayer, \n\t\t\t\t\t\t\t\t\t\t\t\t null);\n\t\t}\n\t}",
"private void initRobots() {\n\t\tthis.robots.clear();\n\t\tGraphRobot robot = new GraphRobot();\n\t\tString info = game.toString();\n\t\ttry {\n\t\t\tJSONObject line = new JSONObject(info);\n\t\t\tJSONObject ttt = line.getJSONObject(\"GameServer\");\n\t\t\tint rs = ttt.getInt(\"robots\");\n\t\t\tfor(int a = 0;a<rs;a++) {\n\t\t\t\tgame.addRobot(a);\n\t\t\t}\n\t\t}\n\t\tcatch (JSONException e) {e.printStackTrace();}\n\n\t\tList<String> r = game.getRobots();\n\t\tfor(String s : r) {\n\t\t\trobot.initRobot(s);\n\t\t\tthis.robots.add(robot);\n\t\t}\n\t}",
"@Override\n public List<Obstacle> getObstacals() {\n List<Obstacle> obstacles = new ArrayList<Obstacle>();\n for (Spatial s : obstacleNode.getChildren()) {\n if (s instanceof Vehicle) {\n Vehicle v = (Vehicle) s;\n obstacles.add(v.toObstacle());\n }\n }\n return obstacles;\n }",
"public DcMotor[] getMotors(){\n return this.motors;\n }",
"public List<Automotor> getAll()\n {\n\n CriteriaQuery<Automotor> criteria = this.entityManager.getCriteriaBuilder().createQuery(Automotor.class);\n return this.entityManager.createQuery(criteria.select(criteria.from(Automotor.class))).getResultList();\n }",
"public List<Computer> getAll(){\n\t\treturn getWithLimit(-1,-1);\n\t}",
"public Set<UUID> getAlivePlayers() {\n return new HashSet<>(players);\n }",
"public Robot getRobot() {\n\t\treturn this.robot;\n\t}",
"public final Collection<DodlesActor> allActors() {\n return all.values();\n }",
"public List<GameObject> getObjects () {\n\t\treturn objects;\n\t}",
"public ArrayList<Obstacle> getObstacles(){\n\t\treturn obstacles;\n\t}",
"protected ArrayList<Obstacle> getObstacles() {\n return obstacles;\n }",
"public List<OwnedWarp> getAll() {\n List<OwnedWarp> ret = new ArrayList<OwnedWarp>();\n Set<String> keyset = warps.keySet();\n for(String key : keyset)\n ret.addAll(warps.get(key));\n return ret;\n }",
"public List<PlayerInstance> getAllPlayers()\n\t{\n\t\tfinal List<PlayerInstance> players = new ArrayList<>();\n\t\tfor (Creature temp : getCharactersInside())\n\t\t{\n\t\t\tif (temp instanceof PlayerInstance)\n\t\t\t{\n\t\t\t\tplayers.add((PlayerInstance) temp);\n\t\t\t}\n\t\t}\n\t\treturn players;\n\t}",
"public ArrayList<PathBlockingObstacle> getStationaryObstacles(){\r\n ArrayList<PathBlockingObstacle> obstacles = (ArrayList)obstaclesMap.get(gameObjects.getMoveableObjectsList().get(0).getObjectRadius());\r\n return obstacles;\r\n }",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"public List<UsersRobots> findAll(){\n CriteriaBuilder cb = entityManager.getCriteriaBuilder();\n CriteriaQuery<UsersRobots> cq = cb.createQuery(UsersRobots.class);\n Root<UsersRobots> rootEntry = cq.from(UsersRobots.class);\n CriteriaQuery<UsersRobots> all = cq.select(rootEntry);\n TypedQuery<UsersRobots> allQuery = entityManager.createQuery(all);\n return allQuery.getResultList();\n }",
"public ArrayList<Obstacles> getObstaclesList() {\n\n\t\treturn obstaclesList;\n\t}",
"public ArrayList<WindowControl> getControls() {\n\t\treturn controls;\n\t}",
"public ArrayList<Actor> getActors(){\n\t\t\n\t\tArrayList<Location> occupiedLocations = getGrid().getOccupiedLocations();\n\t\toccupiedLocations.remove(getLocation());\n\t\tArrayList<Actor> actors = new ArrayList<Actor>();\n\t\t\n\t\tfor(int i = 0; i < occupiedLocations.size(); i++) {\n\t\t\tactors.add(getGrid().get(occupiedLocations.get(i)));\n\t\t}\n\t\t\n\t\treturn actors;\n\t}",
"public GUIPlayer[] getGUIPlayers() {\n return this.guiPlayers;\n }",
"public RobotID getRobot() {\n return robot;\n }",
"public List<OpenPlayer> getOpenPlayers() {\r\n if(actuelAktionators.isEmpty()){\r\n throw new IllegalStateException(\"In der Liste der Spieler muss mindestens ein Spieler sein (der Hoechtbietende)\");\r\n }\r\n return actuelAktionators;\r\n }",
"public List<REPoint> getObstacles();",
"public List<Objective> getObjectives() {\n return this.tracker.getObjectives();\n }",
"public List<Actor> getActors() {\n System.out.println(\"LENGTH:\"+actors.size());\n return actors;\n }",
"@Basic\r\n\tpublic Robot getRobot()\r\n\t{\r\n\t\treturn this.robot;\r\n\t}",
"public String toString() {\n return \"Robot motors\";\n }",
"public void findRobotPosition(){\n targetVisible = false;\n for (VuforiaTrackable trackable : allTrackables) {\n if (((VuforiaTrackableDefaultListener)trackable.getListener()).isVisible()) {\n telemetry.addData(\"Visible Target\", trackable.getName());\n targetVisible = true;\n\n // Get the position of the visible target and put the X & Y position in visTgtX and visTgtY\n // We will use these for determining bearing and range to the visible target\n OpenGLMatrix tgtLocation = trackable.getLocation();\n VectorF tgtTranslation = tgtLocation.getTranslation();\n visTgtX = tgtTranslation.get(0) / mmPerInch;\n visTgtY = tgtTranslation.get(1) / mmPerInch;\n //telemetry.addData(\"Tgt X & Y\", \"{X, Y} = %.1f, %.1f\", visTgtX, visTgtY);\n\n // getUpdatedRobotLocation() will return null if no new information is available since\n // the last time that call was made, or if the trackable is not currently visible.\n OpenGLMatrix robotLocationTransform = ((VuforiaTrackableDefaultListener)trackable.getListener()).getUpdatedRobotLocation();\n if (robotLocationTransform != null) {\n lastLocation = robotLocationTransform;\n }\n break;\n }\n }\n\n // Provide feedback as to where the robot is located (if we know).\n if (targetVisible) {\n // express position (translation) of robot in inches.\n VectorF translation = lastLocation.getTranslation();\n //telemetry.addData(\"Pos (in)\", \"{X, Y, Z} = %.1f, %.1f, %.1f\",\n // translation.get(0) / mmPerInch, translation.get(1) / mmPerInch, translation.get(2) / mmPerInch);\n\n // express the rotation of the robot in degrees.\n Orientation rotation = Orientation.getOrientation(lastLocation, EXTRINSIC, XYZ, DEGREES);\n //telemetry.addData(\"Rot (deg)\", \"{Roll, Pitch, Heading} = %.0f, %.0f, %.0f\", rotation.firstAngle, rotation.secondAngle, rotation.thirdAngle);\n\n // Robot position is defined by the standard Matrix translation (x and y)\n robotX = translation.get(0)/ mmPerInch;\n robotY = translation.get(1)/ mmPerInch;\n\n // Robot bearing (in +vc CCW cartesian system) is defined by the standard Matrix z rotation\n robotBearing = rotation.thirdAngle;\n\n // target range is based on distance from robot position to the visible target\n // Pythagorean Theorum\n targetRange = Math.sqrt((Math.pow(visTgtX - robotX, 2) + Math.pow(visTgtY - robotY, 2)));\n\n // target bearing is based on angle formed between the X axis to the target range line\n // Always use \"Head minus Tail\" when working with vectors\n targetBearing = Math.toDegrees(Math.atan((visTgtY - robotY)/(visTgtX - robotX)));\n\n // Target relative bearing is the target Heading relative to the direction the robot is pointing.\n // This can be used as an error signal to have the robot point the target\n relativeBearing = targetBearing - robotBearing;\n // Display the current visible target name, robot info, target info, and required robot action.\n\n telemetry.addData(\"Robot\", \"[X]:[Y] (Heading) [%5.0fin]:[%5.0fin] (%4.0f°)\",\n robotX, robotY, robotBearing);\n telemetry.addData(\"Target\", \"[TgtRange] (TgtBearing):(RelB) [%5.0fin] (%4.0f°):(%4.0f°)\",\n targetRange, targetBearing, relativeBearing);\n }\n else {\n telemetry.addData(\"Visible Target\", \"none\");\n }\n }",
"private void moveRobots() {\n\t\tfor(Player p : playerList) {\n\t\t\tif(p.getType() == Player.PlayerType.Robot) {\n\t\t\t\tPoint old = new Point(p.getX(), p.getY());\n\t\t\t\tPoint newPoint = new Point(p.getX(), p.getY());\n\t\t\t\t\n\t\t\t\toccupiedPositions.remove(old);\n\t\t\t\t\n\t\t\t\tint playerX = p.getPlayerToFollow().getX();\n\t\t\t\tint playerY = p.getPlayerToFollow().getY();\n\t\t\t\t\n\t\t\t\t//move towards the agent\n\t\t\t\tif(p.getX() < playerX)\n\t\t\t\t\tnewPoint.x += 1;\n\t\t\t\telse if(p.getX() > playerX)\n\t\t\t\t\tnewPoint.x -= 1;\n\t\t\t\t\n\t\t\t\tif(p.getY() < playerY)\n\t\t\t\t\tnewPoint.y += 1;\n\t\t\t\telse if(p.getY() > playerY)\n\t\t\t\t\tnewPoint.y -= 1;\n\t\t\t\t\n\t\t\t\tp.setPosition(newPoint);\n\t\t\t\t\n\t\t\t\t//check if the robot has moved on to something\n\t\t\t\tif(occupiedPositions.contains(newPoint)) { \t\t// check if the position is occupied\n\t\t\t\t\tfor(Player p2 : playerList) { \t\t\t\n\t\t\t\t\t\tif(!p.getName().equals(p2.getName())) {\t// check so it not is the robot itself\n\t\t\t\t\t\t\tif(newPoint.equals(p2.getPosition())) {\n\t\t\t\t\t\t\t\tif(p2.getType() == PlayerType.Robot) { // if it is a robot, both should be rubble\n\t\t\t\t\t\t\t\t\tp2.setType(PlayerType.Rubble);\n\t\t\t\t\t\t\t\t\tp2.getPlayerToFollow().decreaseRobotsFollowing();\n\t\t\t\t\t\t\t\t\tp.setType(PlayerType.Rubble);\n\t\t\t\t\t\t\t\t\tp.getPlayerToFollow().decreaseRobotsFollowing();\n\t\t\t\t\t\t\t\t\tHandleCommunication.broadcastToClient(null, server.getConnectedClientList(), SendSetting.ChangedType, p.getName(), p2.getName());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(p2.getType() == PlayerType.Rubble) { // if it is rubble\n\t\t\t\t\t\t\t\t\tp.setType(PlayerType.Rubble);\n\t\t\t\t\t\t\t\t\tp.getPlayerToFollow().decreaseRobotsFollowing();\n\t\t\t\t\t\t\t\t\tHandleCommunication.broadcastToClient(null, server.getConnectedClientList(), SendSetting.ChangedType, p.getName(), p2.getName());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if(p2.getType() == PlayerType.Agent) {\n\t\t\t\t\t\t\t\t\tString send = generateSendableHighscoreList();\n\t\t\t\t\t\t\t\t\tserver.sendMessageToClient(p2.getName(), \"@132@\" + highscore.size() + \"@\" + send);\n\t\t\t\t\t\t\t\t\tserver.addTextToLoggingWindow(\"Robot killed player (\" + p2.getName() + \")\");\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\toccupiedPositions.add(newPoint);\n\t\t\t\tserver.broadcastToClient(p.getName(), SendSetting.PlayerMoved, old, newPoint);\n\t\t\t}\t\n\t\t}\n\t\t\n\t\t//send that it is agents turn again\n\t\tserver.broadcastToClient(null, SendSetting.AgentsTurnToMove, null, null);\n\t}",
"public ArrayList<Vehicle> getVehicles() {\r\n ArrayList<Vehicle> allVehicles = new ArrayList<>();\r\n for (Lane lane : lanes) {\r\n allVehicles.addAll(lane.getVehicles());\r\n }\r\n return allVehicles;\r\n }",
"public World[] getAllWorlds() {\n\t\treturn levels.toArray(new World[levels.size()]);\n\t}",
"List<AgentReference> getCurrentAgents();",
"@Override\n\tpublic List<Control> findAll() throws Exception {\n\t\treturn controlMapper.findAll();\n\t}",
"public Door[] getDoors() {\n/* 927 */ if (this.doors != null && this.doors.size() > 0)\n/* 928 */ return this.doors.<Door>toArray(new Door[this.doors.size()]); \n/* 929 */ return emptyDoors;\n/* */ }",
"public List<Player> getAll() {\n PlayerDB pdb = new PlayerDB();\n return pdb.getAll();\n }",
"public List getTheObjects() {\r\n if (theObjects == null) {\r\n setTheObjects(new Vector());\r\n }\r\n return theObjects;\r\n }",
"public List<Expirator> getBusyExpirators()\n \t{\n \t\tList<Expirator> busy=new LinkedList<Expirator>();\n \t\tfor (Expirator current : this.expirators)\n \t\t{\n \t\t\tif (current.isBusy())\n \t\t\t{\n \t\t\t\tbusy.add(current);\n \t\t\t}\n \t\t}\n \t\treturn busy;\n \t}",
"static List<Player> getAllPlayers() {\n\t\treturn null;\r\n\t}",
"public List<Player> getPlayers() {\r\n\t\tList<Player> playerList = new ArrayList<Player>();\r\n\r\n\t\tfor (Player p : players.values()) {\r\n\t\t\tif (p != null)\r\n\t\t\t\tplayerList.add(p);\r\n\t\t}\r\n\r\n\t\treturn playerList;\r\n\t}",
"public ArrayList<Actor> getEnemies() {\n return getGrid().getNeighbors(getLocation());\n }",
"public VirtualZone[] getWatchers() {\n/* 3094 */ if (this.watchers != null) {\n/* 3095 */ return this.watchers.<VirtualZone>toArray(new VirtualZone[this.watchers.size()]);\n/* */ }\n/* 3097 */ return emptyWatchers;\n/* */ }",
"public List<Widget> getWidgets() {\n return widgets;\n }",
"public Node[] getInternalNodes() {\n return internalPins;\n }",
"public List<ObservateurGenerateurAsync> getListobs() {\n\t\treturn listobs;\n\t}",
"public void searchMotors() {\n\t\t\t\n\t\t// try to limit searching \n\t\tif(ports.contains(lights)) ports.remove(lights);\n\t\t\n\t\tUtil.debug(\"discovery for motors starting on \" + ports.size()+\" ports\", this); \n\t\n\t\t//for (int i = ports.size() - 1; i >= 0; i--) {\n\t\tfor (int i=0; i<ports.size(); i++) {\n\t\t\tif (state.get(State.values.serialport)!=null) { break; } // stop if find it\n\t\t\t//if (connect(ports.get(i), BAUD_RATES[1])) {\n\t\t\tif (connect(ports.get(i), 115200)) {\n\t\t\t\tUtil.delay(TIMEOUT*2);\n\t\t\t\tif (serialPort != null) { close(); }\n\t\t\t}\n\t\t}\n\t}",
"public ArrayList<Control> getControls() {\n\t\treturn controls;\n\t}",
"public ArrayList<Actor> getActors() {\n ArrayList<Actor> actors = new ArrayList<Actor>();\n Location loc = getLocation();\n for (int row = loc.getRow() - 2; row <= loc.getRow() + 2; row++) {\n for (int col = loc.getCol() - 2; col <= loc.getCol() + 2; col++) {\n if (getGrid().isValid(new Location(row, col))) {\n Actor temp = getGrid().get(new Location(row, col));\n if (temp != null && temp != this) {\n actors.add(temp);\n }\n }\n }\n }\n return actors;\n }",
"public List<Door> getDoors(){\n\t\treturn doors;\n\t}",
"public ArrayList<Door> getDoors() {\n return doors;\n }",
"public static List<World> getWorlds() {\n\t\treturn worlds;\n\t}",
"public static Collection<? extends Player> getOnlinePlayers() {\n return Bukkit.getServer().getOnlinePlayers();\n }",
"public List<Player> getAllPlayers() {\r\n // TODO fix actual order of players in the List.\r\n\r\n List<Player> players = new ArrayList<>();\r\n players.addAll(teamRed.getPlayers());\r\n players.addAll(teamBlue.getPlayers());\r\n\r\n return players;\r\n }",
"public List<Suspect> getNPCs() {\n return currentNPCs;\n }",
"public ArrayList<Actor> getActors()\n {\n ArrayList<Actor> a = new ArrayList<Actor>();\n Location loc = this.getLocation();\n for (int i = loc.getRow()-2; i < loc.getRow() + 2; i++) {\n for (int j = loc.getCol()-2; j < loc.getCol() + 2; j++) {\n Location tmpLoc = new Location(i,j);\n if (getGrid().isValid(tmpLoc)) {\n Actor tmpActor = getGrid().get(tmpLoc);\n if (tmpActor != null && tmpActor != this) {\n a.add(tmpActor);\n }\n }\n }\n }\n return a;\n }",
"Robot getRobot(Position pos);",
"public List<ControlAcceso> findAll() {\n\t\treturn controlA.findAll();\n\t}",
"@SimpleProperty(description = \"The motor ports that are used for driving: the left wheel's \" +\n \"motor port followed by the right wheel's motor port.\",\n category = PropertyCategory.BEHAVIOR, userVisible = false)\n public String DriveMotors() {\n return driveMotors;\n }",
"public Integer[] getAllPlayerVisible() {\n\t\treturn playerVisible.toArray(new Integer[playerVisible.size()]);\n\t}",
"protected ClientList getCurrentPlayers() {\r\n\t\treturn this.players;\r\n\t}",
"public List<Sprite> getEnnemies() {\r\n return ennemies.stream()\r\n .filter(c -> !SpriteStatusEnum.DEAD.equals(c.getStatus()))\r\n .collect(Collectors.toList());\r\n }",
"private void getObjects() {\n\t\tmeteors = go.getMeteors();\n\t\texplosions = go.getExplosions();\n\t\ttargets = go.getTargets();\n\t\tcrosses = go.getCrosses();\n\t\trockets = go.getRockets();\n\t\tearth = go.getEarth();\n\t}",
"public List<Actor> getAllActors() {\n\t\treturn actors.getAll();\n\t}",
"public Collection<Game> getAllActiveGames() {\n return gameRepository.findAllActive();\n }",
"public List controls(){\n return controls;\n }",
"public List<RWDCar> getCars() {\n return game.getCars();\n }",
"public List<Vehicle> getVehicles() {\n\t\treturn vehicles;\n\t\t\n\t}",
"public static ArrayList<Player> getOtherPlayers() {\n ArrayList<Player> all = getAllPlayingPlayers();\n all.remove(getCurrentPlayer());\n\n return all;\n }",
"public List<Player> findAllPlayers(){\n\t\treturn playerRepository.findAll();\n\t}",
"public Set<Agent> getAllAgents() {\n return agents.keySet();\n }",
"public List<HotspotClient> getHotspotClientsList() {\n List<HotspotClient> clients = new ArrayList<HotspotClient>();\n synchronized (mHotspotClients) {\n for (HotspotClient client : mHotspotClients.values()) {\n clients.add(new HotspotClient(client));\n }\n }\n return clients;\n }",
"public List<OwnedWarp> getWarps(String player) {\n return warps.get(player);\n }",
"public Player[] getPlayers() {\r\n return players;\r\n }",
"List<Motion> getMotions();",
"public Player[] getPlayers() {\n return players;\n }",
"public Set<Location> getPlayerLocations()\n\t{\n\t\tSet<Location> places = new HashSet<Location>();\n\t\tfor(Location place: playerLocations.values())\n\t\t{\n\t\t\tplaces.add(place);\n\t\t}\n\t\treturn places;\n\t}",
"@Override\n public List<Set<String>> getPlayersVisibleTo(){\n Set<String> players = new HashSet<String>();\n players.add(destination.getOwner().getName());\n for(Region adj : destination.getAdjRegions()){\n players.add(adj.getOwner().getName());\n }\n //All adjacent can see cloaking happened\n return Arrays.asList(players);\n }",
"public static ArrayList<Npc> getNearbyNpcList(ClientContext ctx) {\n ArrayList npcs = new ArrayList();\n\n for (Npc n : ctx.npcs.select().viewable()) {\n npcs.add(n);\n }\n\n return new ArrayList<>(new HashSet<>(npcs));\n\n\n }",
"public Robot choisitRobot() {\r\n List<Robot> indisponibles = new ArrayList<Robot>();\r\n List<Robot> disponibles = new ArrayList<Robot>();\r\n for (Robot robot : robots) {\r\n if (robot.initDep().isEmpty()) {\r\n indisponibles.add(robot);\r\n } else {\r\n disponibles.add(robot);\r\n }\r\n }\r\n for (Robot r : indisponibles) {\r\n System.out.println(r.toString() + \" ne peut pas se deplacer :(\");\r\n }\r\n int i = 1;\r\n for (Robot robot : disponibles) {\r\n System.out.println(\"\\t\" + i + \" : \" + robot.toString());\r\n i += 1;\r\n }\r\n i = secureInput(1, i - 1);\r\n if (disponibles.isEmpty()) {\r\n return null;\r\n }\r\n return disponibles.get(i - 1);\r\n }",
"@Nullable\n public static Collection<EnvoyContainer> getAllEnvoys(){\n return envoys.values();\n }",
"boolean findRobot();",
"private List getWaitingDoctors() {\n\t\tVector v = new Vector();\n\t\tfor (int i = 0; i < _doctors.length; ++i) {\n\t\t\tif (_doctors[i].isWaiting()) {\n\t\t\t\tv.add(_doctors[i]);\n\t\t\t}\n\t\t}\n\t\tCollections.shuffle(v);\n\t\treturn v;\n\t}",
"public List<String> getAllPlayerNames() {\n List<String> playerNames = new ArrayList<>(10);\n for (Player p : players) {\n playerNames.add(p.getName());\n }\n return playerNames;\n }",
"public static ArrayList<EntityPlayer> getAll() {\r\n\t\ttry {\r\n\t\t\tArrayList<EntityPlayer> players = new ArrayList<EntityPlayer>();\r\n\t\t\t\r\n\t\t\tfor (EntityPlayer player : mc.world.playerEntities) {\r\n\t\t\t\tif (!player.isEntityEqual(mc.player)) {\r\n\t\t\t\t\tplayers.add(player);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn players;\r\n\t\t} catch (NullPointerException ignored) {\r\n\t\t\treturn new ArrayList<EntityPlayer>();\r\n\t\t}\r\n\t}",
"List<Player> getPlayers();",
"public List<PlayerItem> getAll();",
"public List<String> getDisabledWorlds() {\n return disabledWorlds;\n }",
"public List<Player> getPlayers() {\r\n return players;\r\n }"
] | [
"0.69228876",
"0.6681041",
"0.630221",
"0.619413",
"0.61524594",
"0.61383283",
"0.5694566",
"0.5600985",
"0.55704176",
"0.55699563",
"0.556991",
"0.55162895",
"0.54696846",
"0.5465356",
"0.54459226",
"0.5441861",
"0.54173297",
"0.538702",
"0.5348028",
"0.5327958",
"0.5327909",
"0.52912545",
"0.5288267",
"0.5285884",
"0.5279684",
"0.5267428",
"0.5266271",
"0.5243218",
"0.5230329",
"0.52248466",
"0.52247983",
"0.52153224",
"0.5163536",
"0.5160904",
"0.5151682",
"0.51394725",
"0.5098777",
"0.5086956",
"0.5086747",
"0.50700194",
"0.5068425",
"0.50647545",
"0.5051408",
"0.5036268",
"0.5023845",
"0.502116",
"0.5004308",
"0.49930483",
"0.49821717",
"0.49792552",
"0.4972105",
"0.49678552",
"0.4949024",
"0.49447253",
"0.4942029",
"0.49236393",
"0.49186862",
"0.49179742",
"0.4917666",
"0.49132034",
"0.49107027",
"0.4909369",
"0.48995295",
"0.48976427",
"0.4897516",
"0.48921382",
"0.4887529",
"0.48852408",
"0.48824987",
"0.48751074",
"0.48654944",
"0.48461673",
"0.4840523",
"0.4833675",
"0.48315248",
"0.4827494",
"0.48216513",
"0.48208562",
"0.48196274",
"0.48128593",
"0.48058048",
"0.4801613",
"0.4799372",
"0.47980326",
"0.47961575",
"0.47909918",
"0.47866747",
"0.4765277",
"0.4764449",
"0.47577217",
"0.47525713",
"0.47518197",
"0.47499886",
"0.47492298",
"0.47390294",
"0.47371587",
"0.4734809",
"0.4731351",
"0.47279707",
"0.47218272"
] | 0.7731776 | 0 |
Returns all robots that are alive and able to move. | public List<Robot> getMoveableRobots() {
List<Robot> moveable = new ArrayList<Robot>();
for (Robot robot : this.getRobotsAlive()) {
if (robot.getMovement() > 0) {
moveable.add(robot);
}
}
return moveable;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Robot> getRobotsAlive() {\r\n\t\tList<Robot> listOfAlive = new ArrayList<Robot>();\r\n\r\n\t\tfor(int x = 0; x < 3; ++x) {\r\n\t\t\tif (robots.get(x).isAlive()) {\r\n\t\t\t\tlistOfAlive.add(robots.get(x));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn listOfAlive;\r\n\t}",
"public List<Robot> getRobots();",
"@Override\r\n\tpublic Set<Robot> getRobots(Board board)\r\n\t{\r\n\t\treturn board.getElements(Robot.class);\r\n\t}",
"public ArrayList<String> getRobots() {\n return robotDiscovery.getRobots();\n }",
"private void moveRobots() {\n\t\tfor(Player p : playerList) {\n\t\t\tif(p.getType() == Player.PlayerType.Robot) {\n\t\t\t\tPoint old = new Point(p.getX(), p.getY());\n\t\t\t\tPoint newPoint = new Point(p.getX(), p.getY());\n\t\t\t\t\n\t\t\t\toccupiedPositions.remove(old);\n\t\t\t\t\n\t\t\t\tint playerX = p.getPlayerToFollow().getX();\n\t\t\t\tint playerY = p.getPlayerToFollow().getY();\n\t\t\t\t\n\t\t\t\t//move towards the agent\n\t\t\t\tif(p.getX() < playerX)\n\t\t\t\t\tnewPoint.x += 1;\n\t\t\t\telse if(p.getX() > playerX)\n\t\t\t\t\tnewPoint.x -= 1;\n\t\t\t\t\n\t\t\t\tif(p.getY() < playerY)\n\t\t\t\t\tnewPoint.y += 1;\n\t\t\t\telse if(p.getY() > playerY)\n\t\t\t\t\tnewPoint.y -= 1;\n\t\t\t\t\n\t\t\t\tp.setPosition(newPoint);\n\t\t\t\t\n\t\t\t\t//check if the robot has moved on to something\n\t\t\t\tif(occupiedPositions.contains(newPoint)) { \t\t// check if the position is occupied\n\t\t\t\t\tfor(Player p2 : playerList) { \t\t\t\n\t\t\t\t\t\tif(!p.getName().equals(p2.getName())) {\t// check so it not is the robot itself\n\t\t\t\t\t\t\tif(newPoint.equals(p2.getPosition())) {\n\t\t\t\t\t\t\t\tif(p2.getType() == PlayerType.Robot) { // if it is a robot, both should be rubble\n\t\t\t\t\t\t\t\t\tp2.setType(PlayerType.Rubble);\n\t\t\t\t\t\t\t\t\tp2.getPlayerToFollow().decreaseRobotsFollowing();\n\t\t\t\t\t\t\t\t\tp.setType(PlayerType.Rubble);\n\t\t\t\t\t\t\t\t\tp.getPlayerToFollow().decreaseRobotsFollowing();\n\t\t\t\t\t\t\t\t\tHandleCommunication.broadcastToClient(null, server.getConnectedClientList(), SendSetting.ChangedType, p.getName(), p2.getName());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(p2.getType() == PlayerType.Rubble) { // if it is rubble\n\t\t\t\t\t\t\t\t\tp.setType(PlayerType.Rubble);\n\t\t\t\t\t\t\t\t\tp.getPlayerToFollow().decreaseRobotsFollowing();\n\t\t\t\t\t\t\t\t\tHandleCommunication.broadcastToClient(null, server.getConnectedClientList(), SendSetting.ChangedType, p.getName(), p2.getName());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if(p2.getType() == PlayerType.Agent) {\n\t\t\t\t\t\t\t\t\tString send = generateSendableHighscoreList();\n\t\t\t\t\t\t\t\t\tserver.sendMessageToClient(p2.getName(), \"@132@\" + highscore.size() + \"@\" + send);\n\t\t\t\t\t\t\t\t\tserver.addTextToLoggingWindow(\"Robot killed player (\" + p2.getName() + \")\");\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\toccupiedPositions.add(newPoint);\n\t\t\t\tserver.broadcastToClient(p.getName(), SendSetting.PlayerMoved, old, newPoint);\n\t\t\t}\t\n\t\t}\n\t\t\n\t\t//send that it is agents turn again\n\t\tserver.broadcastToClient(null, SendSetting.AgentsTurnToMove, null, null);\n\t}",
"public void refreshRobots() {\r\n\t\tfor (Robot curRobot : this.robots) {\r\n\t\t\tif (curRobot.isAlive()) {\r\n\t\t\t\tcurRobot.setMovement(refSheet.getMovement(curRobot.getType()));\r\n\t\t\t\tcurRobot.setFired(false);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public ArrayList<Bot> getAllBots() {\n final String errorMessage = \"Error getting all bots\";\n ResultSet retrievedBots = dbConnector.selectQuery(\"SELECT c.name, bot_id, active_time, probability, activity_status\" +\n \" FROM Bots as b, Company as c WHERE b.company_id = c.company_id;\");\n ArrayList<Bot> bots = null;\n try {\n bots = new ArrayList<Bot>();\n while (retrievedBots.next()) {\n bots.add(toBot(retrievedBots));\n }\n } catch (SQLException e) {\n System.out.println(errorMessage);\n }\n return bots;\n }",
"public List<SpeedController> getMotors() {\n\t\treturn new ArrayList<>(motors);\n\t}",
"boolean findRobot();",
"public void spawnRobots() {\n\t\tString robotName\t= \"\";\n\t\tPlayer newPlayer\t= null;\n\t\tint numberOfRobots \t= 0;\n\t\tint robotsPerPlayer = server.getRobotsPerPlayer();\n\t\tint numberOfPlayers = server.getPlayerCount();\n\t\tint robotsPerLevel\t= server.getRobotsPerLevel();\n\t\t\n\t\t// calculate how many robots that should be spawned\n\t\trobotsPerPlayer = robotsPerPlayer *\n\t\t\t\t\t\t (robotsPerLevel * \n\t\t\t\t\t\t currentLevel);\n\t\t\n\t\tnumberOfRobots \t= robotsPerPlayer *\n\t\t\t\t\t\t numberOfPlayers;\n\t\t\n\t\tfor(int i = 0; i < numberOfRobots; i++) {\n\t\t\trobotName \t\t\t= \"Robot\" + (i+1);\n\t\t\tnewPlayer = initPlayerToGameplane(robotName, \n\t\t\t\t\t\t\t\t \t\t\t PlayerType.Robot, \n\t\t\t\t\t\t\t\t \t\t\t 0, 0);\n\t\t\t\n\t\t\tHandleCommunication.broadcastToClient(null, \n\t\t\t\t\t\t\t\t\t\t\t\t server.getConnectedClientList(), \n\t\t\t\t\t\t\t\t\t\t\t\t SendSetting.AddPlayer, \n\t\t\t\t\t\t\t\t\t\t\t\t newPlayer, \n\t\t\t\t\t\t\t\t\t\t\t\t null);\n\t\t}\n\t}",
"public NXTRegulatedMotor[] getMotors() {\n\t\treturn new NXTRegulatedMotor[] { leftMotor, rightMotor };\n\t}",
"public List<Move> getAvailableSpaces() {\n List<Move> availableMoves = new ArrayList<>();\n for (int i = 0; i < LENGTH; i++) {\n for (int j = 0; j < LENGTH; j++) {\n Move move = new Move(i, j);\n if (isValidMove(move)) {\n availableMoves.add(move);\n }\n }\n }\n return availableMoves;\n }",
"private void initRobots() {\n\t\tthis.robots.clear();\n\t\tGraphRobot robot = new GraphRobot();\n\t\tString info = game.toString();\n\t\ttry {\n\t\t\tJSONObject line = new JSONObject(info);\n\t\t\tJSONObject ttt = line.getJSONObject(\"GameServer\");\n\t\t\tint rs = ttt.getInt(\"robots\");\n\t\t\tfor(int a = 0;a<rs;a++) {\n\t\t\t\tgame.addRobot(a);\n\t\t\t}\n\t\t}\n\t\tcatch (JSONException e) {e.printStackTrace();}\n\n\t\tList<String> r = game.getRobots();\n\t\tfor(String s : r) {\n\t\t\trobot.initRobot(s);\n\t\t\tthis.robots.add(robot);\n\t\t}\n\t}",
"public void findRobotPosition(){\n targetVisible = false;\n for (VuforiaTrackable trackable : allTrackables) {\n if (((VuforiaTrackableDefaultListener)trackable.getListener()).isVisible()) {\n telemetry.addData(\"Visible Target\", trackable.getName());\n targetVisible = true;\n\n // Get the position of the visible target and put the X & Y position in visTgtX and visTgtY\n // We will use these for determining bearing and range to the visible target\n OpenGLMatrix tgtLocation = trackable.getLocation();\n VectorF tgtTranslation = tgtLocation.getTranslation();\n visTgtX = tgtTranslation.get(0) / mmPerInch;\n visTgtY = tgtTranslation.get(1) / mmPerInch;\n //telemetry.addData(\"Tgt X & Y\", \"{X, Y} = %.1f, %.1f\", visTgtX, visTgtY);\n\n // getUpdatedRobotLocation() will return null if no new information is available since\n // the last time that call was made, or if the trackable is not currently visible.\n OpenGLMatrix robotLocationTransform = ((VuforiaTrackableDefaultListener)trackable.getListener()).getUpdatedRobotLocation();\n if (robotLocationTransform != null) {\n lastLocation = robotLocationTransform;\n }\n break;\n }\n }\n\n // Provide feedback as to where the robot is located (if we know).\n if (targetVisible) {\n // express position (translation) of robot in inches.\n VectorF translation = lastLocation.getTranslation();\n //telemetry.addData(\"Pos (in)\", \"{X, Y, Z} = %.1f, %.1f, %.1f\",\n // translation.get(0) / mmPerInch, translation.get(1) / mmPerInch, translation.get(2) / mmPerInch);\n\n // express the rotation of the robot in degrees.\n Orientation rotation = Orientation.getOrientation(lastLocation, EXTRINSIC, XYZ, DEGREES);\n //telemetry.addData(\"Rot (deg)\", \"{Roll, Pitch, Heading} = %.0f, %.0f, %.0f\", rotation.firstAngle, rotation.secondAngle, rotation.thirdAngle);\n\n // Robot position is defined by the standard Matrix translation (x and y)\n robotX = translation.get(0)/ mmPerInch;\n robotY = translation.get(1)/ mmPerInch;\n\n // Robot bearing (in +vc CCW cartesian system) is defined by the standard Matrix z rotation\n robotBearing = rotation.thirdAngle;\n\n // target range is based on distance from robot position to the visible target\n // Pythagorean Theorum\n targetRange = Math.sqrt((Math.pow(visTgtX - robotX, 2) + Math.pow(visTgtY - robotY, 2)));\n\n // target bearing is based on angle formed between the X axis to the target range line\n // Always use \"Head minus Tail\" when working with vectors\n targetBearing = Math.toDegrees(Math.atan((visTgtY - robotY)/(visTgtX - robotX)));\n\n // Target relative bearing is the target Heading relative to the direction the robot is pointing.\n // This can be used as an error signal to have the robot point the target\n relativeBearing = targetBearing - robotBearing;\n // Display the current visible target name, robot info, target info, and required robot action.\n\n telemetry.addData(\"Robot\", \"[X]:[Y] (Heading) [%5.0fin]:[%5.0fin] (%4.0f°)\",\n robotX, robotY, robotBearing);\n telemetry.addData(\"Target\", \"[TgtRange] (TgtBearing):(RelB) [%5.0fin] (%4.0f°):(%4.0f°)\",\n targetRange, targetBearing, relativeBearing);\n }\n else {\n telemetry.addData(\"Visible Target\", \"none\");\n }\n }",
"public ArrayList<Location> getMoveLocations()\n {\n ArrayList<Location> locs = new ArrayList<Location>();\n ArrayList<Location> validLocations = getGrid().getValidAdjacentLocations(getLocation());\n for (Location neighborLoc : validLocations)\n {\n if (getGrid().get(neighborLoc) == null || getGrid().get(neighborLoc) instanceof AbstractPokemon || getGrid().get(neighborLoc) instanceof PokemonTrainer)\n locs.add(neighborLoc);\n }\n return locs;\n }",
"public ArrayList<Actor> getActors(){\n\t\t\n\t\tArrayList<Location> occupiedLocations = getGrid().getOccupiedLocations();\n\t\toccupiedLocations.remove(getLocation());\n\t\tArrayList<Actor> actors = new ArrayList<Actor>();\n\t\t\n\t\tfor(int i = 0; i < occupiedLocations.size(); i++) {\n\t\t\tactors.add(getGrid().get(occupiedLocations.get(i)));\n\t\t}\n\t\t\n\t\treturn actors;\n\t}",
"public BasicRobot getRobot() {\n\t\treturn robot;\n\t}",
"public final Array<DodlesActor> activeActors() {\n return activeActors(true);\n }",
"public List<REPoint> getObstacles();",
"public ArrayList<Move> getPossibleMoves() \n\t{\n\t\tArrayList<Move> possibleMoves = new ArrayList<Move>();\n\t\t\n\t\tfor(int i = - 1; i <= 1; i += 2)\n\t\t{\n\t\t\tfor(int j = -1; j <= 1; j += 2)\n\t\t\t{\n\t\t\t\tLocation currentLoc = new Location(getLoc().getRow() + j, getLoc().getCol() + i);\n\t\t\t\t\n\t\t\t\tif(getBoard().isValid(currentLoc))\n\t\t\t\t{\n\t\t\t\t\tif(getBoard().getPiece(currentLoc) == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tArrayList<Node> move = new ArrayList<Node>();\n\t\t\t\t\t\tmove.add(getNode());\n\t\t\t\t\t\tmove.add(getBoard().getNode(currentLoc));\n\t\t\t\t\t\t\n\t\t\t\t\t\tpossibleMoves.add(new CheckersMove(move, getBoard(), getLoyalty()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(ArrayList<Node> move : getNextJumps(getLoc(), new ArrayList<Location>()))\n\t\t{\n\t\t\tif(move.size() > 1)\n\t\t\t{\n\t\t\t\tpossibleMoves.add(new CheckersMove(move, getBoard(), getLoyalty()));\n\t\t\t}\n\t\t}\n\t\t\n\t\tArrayList<Move> jumpMoves = new ArrayList<Move>();\n\t\t\n\t\tfor(Move possibleMove : possibleMoves)\n\t\t{\n\t\t\tif(!possibleMove.getJumped().isEmpty())\n\t\t\t{\n\t\t\t\tjumpMoves.add(possibleMove);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!jumpMoves.isEmpty())\n\t\t{\n\t\t\treturn jumpMoves;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn possibleMoves;\n\t\t}\n\t}",
"public List<UsersRobots> findAll(){\n CriteriaBuilder cb = entityManager.getCriteriaBuilder();\n CriteriaQuery<UsersRobots> cq = cb.createQuery(UsersRobots.class);\n Root<UsersRobots> rootEntry = cq.from(UsersRobots.class);\n CriteriaQuery<UsersRobots> all = cq.select(rootEntry);\n TypedQuery<UsersRobots> allQuery = entityManager.createQuery(all);\n return allQuery.getResultList();\n }",
"@Override\n public List<Obstacle> getObstacals() {\n List<Obstacle> obstacles = new ArrayList<Obstacle>();\n for (Spatial s : obstacleNode.getChildren()) {\n if (s instanceof Vehicle) {\n Vehicle v = (Vehicle) s;\n obstacles.add(v.toObstacle());\n }\n }\n return obstacles;\n }",
"List<Move> getLegalMoves(Player player);",
"List<AgentReference> getCurrentAgents();",
"Robot getRobot(Position pos);",
"abstract public List<Move> getPossibleMoves();",
"public List<OwnedWarp> getAll() {\n List<OwnedWarp> ret = new ArrayList<OwnedWarp>();\n Set<String> keyset = warps.keySet();\n for(String key : keyset)\n ret.addAll(warps.get(key));\n return ret;\n }",
"public Set<Agent> getAllAgents() {\n return agents.keySet();\n }",
"public ArrayList<Move> getLegalMoves() {\n return Logic.legalMoves(turn, this);\n }",
"private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }",
"public void searchMotors() {\n\t\t\t\n\t\t// try to limit searching \n\t\tif(ports.contains(lights)) ports.remove(lights);\n\t\t\n\t\tUtil.debug(\"discovery for motors starting on \" + ports.size()+\" ports\", this); \n\t\n\t\t//for (int i = ports.size() - 1; i >= 0; i--) {\n\t\tfor (int i=0; i<ports.size(); i++) {\n\t\t\tif (state.get(State.values.serialport)!=null) { break; } // stop if find it\n\t\t\t//if (connect(ports.get(i), BAUD_RATES[1])) {\n\t\t\tif (connect(ports.get(i), 115200)) {\n\t\t\t\tUtil.delay(TIMEOUT*2);\n\t\t\t\tif (serialPort != null) { close(); }\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic List<ESFInstructsShootingDirector> findAll()\n\t\tthrows SystemException {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}",
"public List<Tile> findTargets() {\n List<Tile> targets = new ArrayList<>(); // our return value\n int fearDistance = 2; // Ideally we're 2 spots away from their head, increases when we can't do that.\n int foodDistance = 3; // We look at a distance 3 for food.\n\n // If fearDistance gets this big, then its just GG i guess\n while (targets.size() == 0 && fearDistance < 15) {\n // Get the tiles around the Enemy's head\n targets = this.gb.nearByTiles(this.enemy_head_x, this.enemy_head_y, fearDistance);\n fearDistance += 1;\n }\n\n // Get the food tiles near us\n for (int i=0; i < foodDistance; i++) {\n List<Tile> nearBy = this.gb.nearByTiles(this.us_head_x, this.us_head_y, i);\n for (Tile t : nearBy) {\n if (t.isFood() && !targets.contains(t)) targets.add(t);\n }\n }\n return targets;\n }",
"public ArrayList<Actor> getEnemies() {\n return getGrid().getNeighbors(getLocation());\n }",
"public List<AttackNamesies> getLearnableMoves() {\n List<AttackNamesies> moves = new ArrayList<>();\n List<LevelUpMove> levelUpMoves = this.getPokemonInfo().getLevelUpMoves();\n for (LevelUpMove levelUpMove : levelUpMoves) {\n if (levelUpMove.getLevel() > level) {\n break;\n }\n\n AttackNamesies move = levelUpMove.getMove();\n if (!this.hasActualMove(move) && !moves.contains(move)) {\n moves.add(move);\n }\n }\n\n return moves;\n }",
"public final Collection<DodlesActor> allActors() {\n return all.values();\n }",
"ArrayList<Location> getMoveLocations();",
"@SuppressWarnings(\"unchecked\")\n\tpublic boolean canSeeNemesisRobot() {\n\t\tboolean isVisible= false;\n\t\tList<Wall> walls = (List<Wall>) (List<?>) getEngine()\n\t\t\t\t.requestSimObject(simo -> (simo instanceof Wall) && (((Wall) simo).getType() == 2||((Wall) simo).getType() == 3));\n\t\tList<Bounds> bounds = new ArrayList<Bounds>();\n\t\tfor (Wall w : walls) {\n\t\t\tbounds.addAll(w.getBounds());\n\t\t}\n\n\t\t\n\t\tRobot bad = null;\n\t\tList<Robot> objets = (List<Robot>) (List<?>) getEngine().requestSimObject(simo -> (simo instanceof Robot) && (simo != getParent()));\n\n\t\tif (objets.size() == 1) {\n\t\t\tbad = objets.get(0);\n\t\t\t\n\t\t\t//on cr�e donc un cylindre entre les deux positions\n\t\t\t//on pourra afficher le cylindre dans la vue 3D\n\t\t\tCylinder lineOfSight = BorderAndPathGenerator.generateCylinderBetween(bad.getPosition(), Util.rectifi(positionR()));\n\t\t\tlineOfSight.setMaterial(new PhongMaterial(Color.AQUA));\n\n\t\t\t//le robot gentil ne peut pas voire le mauvais robot à plus de 15m \n\t\t\tif(lineOfSight.getHeight() < 10){\n\t\t\t\t\n\t\t\t\tisVisible = BorderAndPathGenerator.intervisibilityBetween(bad.getPosition(), Util.rectifi(positionR()),bounds);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\treturn isVisible;\n\t\t} else\n\t\t\treturn false;\n\n\t}",
"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<Player> lookForShootPeople(Player player)\n {\n List<Player> playerList = new LinkedList<>();\n\n playerList.addAll(player.getSquare().getRoom().getPlayerRoomList()); //adds all the players in the room\n\n /*\n * Now i have to check if the player is close to a door. In this case i can see all the players in this adiacent room.\n * I will implement the method in this way:\n * 1. I check if the player can move to a different room with a distance 1 using the method squareReachableNoWall\n * 2. If the player can effectively move to a different room it means it is close to a door\n * 3. I will add to the list all the players in this different room\n */\n\n for (Square square : player.getSquare().getGameBoard().getArena().squareReachableNoWall(player.getSquare().getX(), player.getSquare().getY(), 1))\n {\n if (!(player.getSquare().getColor().equals(square.getColor()))) // if the color of the reachable square is different from the color of the square\n // where the player is this means player can see in a different room\n {\n playerList.addAll(player.getSquare().getRoom().getPlayerRoomList()); //adds all the players in the room\n }\n\n }\n\n Set<Player> playerSet = new HashSet<>();\n playerSet.addAll(playerList);\n\n playerList.clear();\n\n playerList.addAll(playerSet);\n playerList.remove(player);\n\n\n return playerList;\n }",
"protected ArrayList<Obstacle> getObstacles() {\n return obstacles;\n }",
"public boolean[] areObstaclesDetected()\n {\n return finchController.areObstaclesDetected();\n }",
"public List<Float> getRobotPosition() throws CallError, InterruptedException {\n return (List<Float>)service.call(\"getRobotPosition\").get();\n }",
"public List<Expirator> getBusyExpirators()\n \t{\n \t\tList<Expirator> busy=new LinkedList<Expirator>();\n \t\tfor (Expirator current : this.expirators)\n \t\t{\n \t\t\tif (current.isBusy())\n \t\t\t{\n \t\t\t\tbusy.add(current);\n \t\t\t}\n \t\t}\n \t\treturn busy;\n \t}",
"public Map<Actor, Location> getAllActors(GameMap gameMap) {\n\n Map<Actor, Location> dinosaursList = new HashMap<>();\n for (int x: gameMap.getXRange()) {\n for (int y: gameMap.getYRange()) {\n Location location = gameMap.at(x,y);\n Actor actor = gameMap.getActorAt(location);\n if (location.containsAnActor() ) {\n dinosaursList.put(actor,location);\n }\n }\n }\n return dinosaursList;\n }",
"public static void main(String[] args) {\n\t\t\n\t//2. create an array of 5 robots.\n\tRobot[] robs = new Robot[5];\n\t//3. use a for loop to initialize the robots.\n\tfor (int i = 0; i < robs.length; i++) {\n\t\t\trobs[i] = new Robot();\n\t\t\trobs[i].setX(100 * i + 100);\n\t\t\trobs[i].setY(500);\n\t\t\trobs[i].setSpeed(10);\n\t}\n\t\t//4. make each robot start at the bottom of the screen, side by side, facing up\n\t\t\n\t//5. use another for loop to iterate through the array and make each robot move \n\t// a random amount less than 50.\n\tfor (int i = 0; i < robs.length; i++) {\n\t\tRandom rnd = new Random();\n\t\trobs[i].move(rnd.nextInt(50)+1);\n\t}\n\t//6. use a while loop to repeat step 5 until a robot has reached the top of the screen.\n\tboolean notwon = true;\n\tint winner = -250;\n\twhile(notwon) {\n\t\tfor (int i = 0; i < robs.length; i++) {\n\t\t\tRandom rnd = new Random();\n\t\t\trobs[i].move(rnd.nextInt(50)+1);\n\t\t}\n\t\tfor (int i = 0; i < robs.length; i++) {\n\t\t\tif (notwon && winner == -250 && robs[i].getY() <= 72) {\n\t\t\t\twinner = i;\n\t\t\t\tnotwon = false;\n\t\t\t}\n\t\t}\n\t}\n\t\n\trobs[winner].sparkle();\n\t//7. declare that robot the winner and throw it a party!\n\t\n\t//8. try different races with different amounts of robots.\n\n\t//9. make the robots race around a circular track.\n}",
"public Robot getRobot() {\n\t\treturn this.robot;\n\t}",
"@Test\n void testAllLegalMoves() {\n \tplayer1 = new HumanPlayer(\"Arnold\");\n player2 = new HumanPlayer(\"Intelligent Twig\");\n gameState = new GameState(Arrays.asList(player1, player2));\n board = gameState.getBoard();\n \n Set<PlayableMove> moves = Move.allLegalMoves(gameState);\n\n assertTrue(moves.stream().allMatch(e -> e.isLegal()));\n assertEquals(44, moves.size());\n }",
"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 ArrayList<Obstacle> getObstacles(){\n\t\treturn obstacles;\n\t}",
"public Collection<Move> getLegalMoves(){\n return legalMoves;\n }",
"public DcMotor[] getMotors(){\n return this.motors;\n }",
"public ArrayList<Actor> getActors() {\n ArrayList<Actor> actors = new ArrayList<Actor>();\n Location loc = getLocation();\n for (int row = loc.getRow() - 2; row <= loc.getRow() + 2; row++) {\n for (int col = loc.getCol() - 2; col <= loc.getCol() + 2; col++) {\n if (getGrid().isValid(new Location(row, col))) {\n Actor temp = getGrid().get(new Location(row, col));\n if (temp != null && temp != this) {\n actors.add(temp);\n }\n }\n }\n }\n return actors;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic boolean canSeeBadRobot() {\n\t\tboolean isVisible= false;\n\t\tList<Wall> walls = (List<Wall>) (List<?>) getEngine()\n\t\t\t\t.requestSimObject(simo -> (simo instanceof Wall) && ((Wall) simo).getType() == 2);\n\t\tList<Bounds> bounds = new ArrayList<Bounds>();\n\t\tfor (Wall w : walls) {\n\t\t\tbounds.addAll(w.getBounds());\n\t\t}\n\n\t\t\n\t\tRobot bad = null;\n\t\tList<Robot> objets = (List<Robot>) (List<?>) getEngine().requestSimObject(simo -> (simo instanceof Robot) && (simo != getParent()));\n\n\t\tif (objets.size() == 1) {\n\t\t\tbad = objets.get(0);\n\t\t\t\n\t\t\t//on cr�e donc un cylindre entre les deux positions\n\t\t\t//on pourra afficher le cylindre dans la vue 3D\n\t\t\tCylinder lineOfSight = BorderAndPathGenerator.generateCylinderBetween(bad.getPosition(), Util.rectifi(positionR()));\n\t\t\tlineOfSight.setMaterial(new PhongMaterial(Color.AQUA));\n\n\t\t\t//le robot gentil ne peut pas voire le mauvais robot à plus de 15m \n\t\t\tif(lineOfSight.getHeight() < 15){\n\t\t\t\t\n\t\t\t\tisVisible = BorderAndPathGenerator.intervisibilityBetween(bad.getPosition(), Util.rectifi(positionR()),bounds);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\treturn isVisible;\n\t\t} else\n\t\t\treturn false;\n\n\t}",
"public List<Neighbour> getAvailableHosts() {\n return new ArrayList<>(routes.keySet());\n }",
"public ArrayList<PathBlockingObstacle> getStationaryObstacles(){\r\n ArrayList<PathBlockingObstacle> obstacles = (ArrayList)obstaclesMap.get(gameObjects.getMoveableObjectsList().get(0).getObjectRadius());\r\n return obstacles;\r\n }",
"public RobotID getRobot() {\n return robot;\n }",
"boolean shutdownIdleBots() {\n boolean allBotsIdle = true;\n LinkedList<String> names = new LinkedList<String>();\n\n for( ChildBot c : m_botStable.values() ) {\n if( c != null ) {\n if( c.getBot().getSubspaceBot().isIdle() )\n names.add( c.getBot().getBotName() );\n else\n allBotsIdle = false;\n }\n }\n\n for( String name : names ) {\n removeBot( name, \"idle bot shutdown\" );\n m_botAction.sendChatMessage( 1, name + \" logged off. (Idle bot shutdown.)\" );\n }\n\n return allBotsIdle;\n }",
"@Override\n public void run() {\n \n // For testing\n int maxFrontierLocations = 0;\n int maxOccupied = 0;\n \n while (true) {\n try {\n Thread.sleep(10);\n } catch (InterruptedException e) {\n e.printStackTrace();\n break;\n }\n if (paused){\n continue;\n }\n for (int i = 0; i < robotNames.size(); i++) {\n String name = robotNames.get(i);\n Robot robot = robotController.getRobot(name);\n if (measurementHandlers.get(name).updateMeasurement() == false) {\n continue;\n }\n\n Position robotPosition = measurementHandlers.get(name).getRobotPosition();\n Angle robotAngle = measurementHandlers.get(name).getRobotHeading();\n\n int[]position = {(int)Math.round(robotPosition.getXValue()), (int)Math.round(robotPosition.getYValue())};\n robot.setPosition(position);\n robot.setRobotOrientation((int)Math.round(robotAngle.getValue()));\n\n // Find the location of the robot in the map\n map.resize(robotPosition);\n MapLocation robotLocation = map.findLocationInMap(robotPosition);\n\n Sensor[] sensors = measurementHandlers.get(name).getIRSensorData();\n for(Sensor sensor: sensors){\n boolean tooClose = false;\n \n // Check the distance between the position of the measurement and all the other robots\n for(int j = 0; j < robotNames.size(); j++){\n String otherName = robotNames.get(j);\n int[] otherPositionInt = robotController.getRobot(otherName).getPosition();\n Position otherPosition = new Position(otherPositionInt[0], otherPositionInt[1]);\n if(Position.distanceBetween(otherPosition, sensor.getPosition()) < 10){\n tooClose = true;\n break;\n }\n }\n \n // The measurement is only added to the map if it is at a certain distance to the other robots\n if(!tooClose){\n map.resize(sensor.getPosition());\n MapLocation measurementLocation = map.findLocationInMap(sensor.getPosition());\n if(sensor.isMeasurement()){\n map.addMeasurement(measurementLocation, true);\n }\n \n // Create a measurements indicating no obstacle in the sensors line of sight\n ArrayList<MapLocation> lineOfSight = getLineBetweenPoints(robotLocation, measurementLocation);\n for (MapLocation location : lineOfSight) {\n map.addMeasurement(location, false);\n }\n }\n }\n }\n \n /*\n if (debug) {\n int frontierLocations = map.getFrontierLocations().size();\n if (frontierLocations > maxFrontierLocations) {\n maxFrontierLocations = frontierLocations;\n }\n System.out.println(\"Max frontier locations: \" + maxFrontierLocations);\n \n int cellCount = 0;\n for (int i = map.getBottomRow(); i <= map.getTopRow(); i++) {\n for (int j = map.getLeftColumn(); j <= map.getRightColumn(); j++) {\n MapLocation location = new MapLocation(i, j);\n Cell cell = map.findCell(location);\n if (cell.isOccupied()) {\n cellCount++;\n }\n }\n }\n if (cellCount > maxOccupied) {\n maxOccupied = cellCount;\n }\n System.out.println(\"Max occupied locations: \" + maxOccupied);\n }\n */\n }\n }",
"public List<Sprite> getEnnemies() {\r\n return ennemies.stream()\r\n .filter(c -> !SpriteStatusEnum.DEAD.equals(c.getStatus()))\r\n .collect(Collectors.toList());\r\n }",
"public List<Automotor> getAll()\n {\n\n CriteriaQuery<Automotor> criteria = this.entityManager.getCriteriaBuilder().createQuery(Automotor.class);\n return this.entityManager.createQuery(criteria.select(criteria.from(Automotor.class))).getResultList();\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 }",
"public List<boolean[]> getAllActions()\n\t{\n\t\t// initiate valid actions\n\t\tList<boolean[]> allActions = new ArrayList<boolean[]>();\n\t\t\n\t\tallActions.add(JUMP);\n\t\tallActions.add(SPEED);\n\t\tallActions.add(LEFT);\n\t\tallActions.add(LEFT_SPEED);\n\t\tallActions.add(LEFT_JUMP);\n\t\tallActions.add(LEFT_JUMP_SPEED);\n\t\tallActions.add(JUMP_SPEED);\n\t\tallActions.add(RIGHT);\n\t\tallActions.add(RIGHT_SPEED);\n\t\tallActions.add(RIGHT_JUMP);\n\t\tallActions.add(RIGHT_JUMP_SPEED);\n\t\t\n\t\treturn allActions;\n\t}",
"public void moveAllAgents() {\n\t\tPoint moveTo \t\t= null;\n\t\tGameClient client \t= null;\n\t\t\n\t\tfor(Player p : playerList) {\n\t\t\tif(p.getType() == PlayerType.Agent) {\n\t\t\t\tclient = HandleCommunication.findClient(p.getName(), server.getConnectedClientList());\n\t\t\t\tmoveTo = getSafeTeleportPosition();\n\t\t\t\tmovePlayer(p.getName(), p.getPosition(), moveTo, false);\n\t\t\t\tserver.sendMessageToClient(client.getClientSocket(), \"@124@\" + moveTo.x + \"@\" + moveTo.y + \"@\");\n\t\t\t}\n\t\t}\n\t}",
"public List<TicTacToeCoordinates> getAvailableSpots() {\n List<TicTacToeCoordinates> openSpots = new ArrayList<>();\n for (int x = 0; x < boardLength; x++) {\n for (int y = 0; y < boardWidth; y++) {\n if (board[x][y] == '\\u0000') {\n openSpots.add(new TicTacToeCoordinates(x, y));\n }\n }\n }\n return openSpots;\n }",
"public static ArrayList<Npc> getNearbyNpcList(ClientContext ctx) {\n ArrayList npcs = new ArrayList();\n\n for (Npc n : ctx.npcs.select().viewable()) {\n npcs.add(n);\n }\n\n return new ArrayList<>(new HashSet<>(npcs));\n\n\n }",
"protected List<Move> getMoves() {\n return moves;\n }",
"public static Robot[] nearbyAllies(int radiusSquared) {\n int i;\n switch (radiusSquared) {\n case 3: \n i = 0;\n break;\n case LC_RADIUS:\n i = 1;\n break;\n case Soldier.GL_RADIUS:\n i = 2;\n break;\n // We don't cache that radius\n default: return RC.senseNearbyGameObjects(Robot.class, radiusSquared, MY_TEAM);\n }\n \n if (nearby_allies[i] == null || nearby_allies_last_updated[i] < Clock.getRoundNum()) {\n nearby_allies[i] = RC.senseNearbyGameObjects(Robot.class, radiusSquared, MY_TEAM);\n nearby_allies_last_updated[i] = Clock.getRoundNum();\n }\n \n return nearby_allies[i];\n }",
"public EnumSet<Movement> movement() {\n return movement;\n }",
"private List getWaitingDoctors() {\n\t\tVector v = new Vector();\n\t\tfor (int i = 0; i < _doctors.length; ++i) {\n\t\t\tif (_doctors[i].isWaiting()) {\n\t\t\t\tv.add(_doctors[i]);\n\t\t\t}\n\t\t}\n\t\tCollections.shuffle(v);\n\t\treturn v;\n\t}",
"private void checkLost() {\n\t\tRobotStates state;\n\t\t\n\t\tif (attackRobots.isEmpty()) {\n\t\t\tsetLost();\n\t\t} else {\n\t\t\tfor (AttackRobot ar : attackRobots) {\n\t\t\t\tif (ar.getState() != RobotStates.INACTIVE && ar.getState() != RobotStates.DESTROYED) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (supportRobots.isEmpty()) {\n\t\t\tsetLost();\n\t\t} else {\n\t\t\tfor (int i = 0; i < supportRobots.size(); i++) {\n\t\t\t\tstate = supportRobots.get(i).getState();\n\t\t\t\tif (state != RobotStates.INACTIVE && state != RobotStates.DESTROYED) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsetLost();\n\t}",
"List<Motion> getMotions();",
"public ArrayList<Obstacles> getObstaclesList() {\n\n\t\treturn obstaclesList;\n\t}",
"void getDrivableLocations() {\n\t\t\tSystem.out.print(\"\\nPlaces you can drive to: \");\n\t\t\tfor (int i = 0; i < places.length; i++)\n\t\t\t\tif (places[i].drivable) //looks to see if you can drive there \n\t\t\t\t\tif ((places[i] != this)) //if it's not you're current location.\n\t\t\t\t\t\tSystem.out.print(places[i].locationName + \", \");\t//prints the name of the location\t\n\t\t\tSystem.out.println(\"\\n\");\n\t\t}",
"public Iterator<MahjongSolitaireTile> getMovingTiles()\n {\n return movingTiles.iterator();\n }",
"public ArrayList<Actor> getActors()\n {\n ArrayList<Actor> a = new ArrayList<Actor>();\n Location loc = this.getLocation();\n for (int i = loc.getRow()-2; i < loc.getRow() + 2; i++) {\n for (int j = loc.getCol()-2; j < loc.getCol() + 2; j++) {\n Location tmpLoc = new Location(i,j);\n if (getGrid().isValid(tmpLoc)) {\n Actor tmpActor = getGrid().get(tmpLoc);\n if (tmpActor != null && tmpActor != this) {\n a.add(tmpActor);\n }\n }\n }\n }\n return a;\n }",
"public Kinematics getTrustedRobotKinematics() {\n logger.info(\"Waiting for robot to acquire position.\");\n\n // Variable that will keep all data related to positioning and movement.\n Kinematics k;\n\n // Waiting until we get a trusted kinematics\n while (true) {\n // Get kinematics\n k = m_robot.getCurrentKinematics();\n\n // Is it good?\n if (k.getConfidence() == Kinematics.Confidence.GOOD)\n // Don't wait anymore, move on.\n break;\n\n // It's not good, wait a little bit and try again\n try {\n Thread.sleep(250);\n }\n catch (InterruptedException e) {\n logger.error(\"It was not possible to get a trusted kinematics.\");\n return null;\n }\n }\n\n return k;\n }",
"public static void main(String[] args) {\n\t\t\n\t\n\t\t//2. create an array of 5 robots.\n\tRobot[] robot = new Robot[5];\n\t\t//3. use a for loop to initialize the robots.\n\tfor (int i = 0; i < robot.length; i++) {\n\t\trobot[i]=new Robot();\n\t}\n\t\t\t//4. make each robot start at the bottom of the screen, side by side, facing up\nrobot[0].moveTo(50, 550);\nrobot[1].moveTo(150, 550);\nrobot[2].moveTo(250, 550);\nrobot[3].moveTo(350, 550);\nrobot[4].moveTo(450, 550);\n\t\t//5. use another for loop to iterate through the array and make each robot move \n\t // a random amount less than 50.\n \n\t\t//6. use a while loop to repeat step 5 until a robot has reached the top of the screen.\nboolean finished=false;\nwhile(!finished) {\n \tfor (int i = 0; i < robot.length; i++) {\n\tRandom random = new Random();\n\t\trandom.nextInt(50);\n\t\trobot[i].move(i);\n\t\tif(robot[i].getY()==0) {\n \t\tfinished=true;\n \t\trobot[i].sparkle();\n \t\tSystem.out.println(\"You are the winner!\");\n \t\t\n \t}\n \t}\n}\n\t}",
"public void getPossibleMoves() {\n\t\tGameWindow.potentialMoves.clear();\n\t}",
"public abstract Set<Genome> getAvailableGenomes();",
"private List<Enemy> filterEnemies(List<Enemy> enemies, Point towerPosition) {\n return enemies.stream().filter(e -> canReach(new Point((int) e.getX(), (int) e.getY()), towerPosition)).collect(Collectors.toList());\n }",
"public boolean[] isFightWinning() {\n RobotInfo[] nearbyEnemies = Cache.getEngagementEnemies();\n if (nearbyEnemies.length == 0) {\n return new boolean[] {true};\n }\n \n RobotInfo closestEngageable = null;\n double closestDist = Double.MAX_VALUE;\n double tempDist = 0;\n for (RobotInfo bot : nearbyEnemies) {\n switch (bot.type) {\n case HQ:\n case TOWER:\n // TODO figure out how to deal with towers that turn up...\n return new boolean[] {false, false};\n case BEAVER:\n case DRONE:\n case SOLDIER:\n case TANK:\n case COMMANDER:\n case MINER:\n case BASHER:\n case MISSILE:\n tempDist = curLoc.distanceSquaredTo(bot.location);\n if (tempDist < closestDist) {\n closestDist = tempDist;\n closestEngageable = bot;\n }\n break;\n default:\n break;\n }\n }\n \n if (closestEngageable == null) {\n return new boolean[] {true};\n }\n \n RobotInfo[] allies = rc.senseNearbyRobots(closestEngageable.location, ALLY_INLCUDE_RADIUS_SQ, myTeam);\n double allyScore = Util.getDangerScore(allies);\n double enemyScore = Util.getDangerScore(rc.senseNearbyRobots(closestEngageable.location, ENEMY_INCLUDE_RADIUS_SQ, theirTeam));\n // rc.setIndicatorString(2, \"Ally score: \" + allyScore + \", Enemy score: \" + enemyScore);\n if (allyScore > enemyScore) {\n return new boolean[] {true};\n } else {\n // Check if we are definitely going to die.\n double myHealth = rc.getHealth();\n int myID = rc.getID();\n boolean isAlone = true;\n for (int i = allies.length; i-- > 0;) {\n if (allies[i].ID != myID) {\n isAlone = false;\n if(allies[i].health < myHealth) {\n return new boolean[] {false, false};\n }\n }\n }\n // We didn't find any bots with lower health, so we are the lowest.\n // If we are alone, we should retreat anyways...\n return new boolean[] {false, !isAlone};\n }\n }",
"private ArrayList<Coordinates> freeMoves(Maze maze) {\n\t\tArrayList<Coordinates> dirs = new ArrayList<>();\n\n\t\tfor (int x = -1; x <= 1; x++) {\n\t\t\tfor (int y = -1; y <= 1; y++) {\n\t\t\t\tif (x == 0 ^ y == 0) {\n\t\t\t\t\tCoordinates move = find().add(x, y);\n\t\t\t\t\tif (!maze.outOfRange(move)) {\n\t\t\t\t\t\tif (!maze.getMCell(move).wall()) {\n\t\t\t\t\t\t\tdirs.add(new Coordinates(x, y));\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\treturn dirs;\n\t}",
"@Basic\r\n\tpublic Robot getRobot()\r\n\t{\r\n\t\treturn this.robot;\r\n\t}",
"public String toString() {\n return \"Robot motors\";\n }",
"private void removeRobot(Actor r) {\n\t\tfor (int i = 0; i < attackRobots.size(); i++) {\n\t\t\tif (attackRobots.get(i).equals(r)) {\n\t\t\t\tattackRobots.remove(i);\n\t\t\t\tcheckLost();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < supportRobots.size(); i++) {\n\t\t\tif (supportRobots.get(i).equals(r))\n\t\t\t\tsupportRobots.remove(i);\n\t\t}\n\t}",
"public boolean isRobot() {\n\t\treturn isRobot;\n\t}",
"public List<TroopToPlanetMovement> getTroopToPlanetMoves(Planet aPlanet){\r\n\t List<TroopToPlanetMovement> troopMoves = new LinkedList<TroopToPlanetMovement>();\r\n\t for (TroopToPlanetMovement aTroopToPlanetMove : troopToPlanetMoves) {\r\n\t\t if (aTroopToPlanetMove.isThisDestination(aPlanet)){\r\n\t\t\t troopMoves.add(aTroopToPlanetMove);\r\n\t\t }\r\n\t }\r\n\t return troopMoves;\r\n }",
"public List<RubiksMove> getSolutionMoves() {\n return solutionMoves;\n }",
"private void getObjects() {\n\t\tmeteors = go.getMeteors();\n\t\texplosions = go.getExplosions();\n\t\ttargets = go.getTargets();\n\t\tcrosses = go.getCrosses();\n\t\trockets = go.getRockets();\n\t\tearth = go.getEarth();\n\t}",
"@Override\n\tpublic List<Point> getAvailableMoves() {\n\t\treturn new ArrayList<Point>();\n\t}",
"public abstract HashSet<Location> getPossibleMovements(GameBoard board);",
"public List<Integer> GetMoves() {\n return GetMoves(true, true, true, Settings.MaxVolcanoLevel);\n }",
"public static List<Player> getTrackablePlayers() {\n\t\tPlayer[] players = Bukkit.getOnlinePlayers();\n\t\tList<Player> players1 = new ArrayList<Player>();\n\t\tfor (int i = 0; i < players.length; i++) {\n\t\t\tif (!players[i].hasMetadata(\"invisible\")) {\n\t\t\t\tplayers1.add(players[i]);\n\t\t\t}\n\n\t\t}\n\t\treturn players1;\n\t}",
"@Override\n public List<Building> allBuildings() {\n return dao.all(Building.class);\n }",
"public static List<World> getWorlds() {\n\t\treturn worlds;\n\t}",
"@Override\r\n\tpublic List<Agent> agentWhole() {\n\t\treturn agentMapper.agentWhole();\r\n\t}",
"List<Direction> getValidDirectionsForMovement();",
"public Set<GrouperProvisioningTarget> getViewableTargets() {\r\n \r\n GrouperObject grouperObject = null;\r\n \r\n GuiGroup guiGroup = GrouperRequestContainer.retrieveFromRequestOrCreate().getGroupContainer().getGuiGroup();\r\n GuiStem guiStem = GrouperRequestContainer.retrieveFromRequestOrCreate().getStemContainer().getGuiStem();\r\n \r\n if (guiGroup != null) {\r\n grouperObject = guiGroup.getGrouperObject();\r\n }\r\n if (guiStem != null) {\r\n grouperObject = guiStem.getGrouperObject();\r\n }\r\n \r\n Map<String, GrouperProvisioningTarget> targets = GrouperProvisioningSettings.getTargets(true);\r\n Subject loggedInSubject = GrouperUiFilter.retrieveSubjectLoggedIn();\r\n \r\n Set<GrouperProvisioningTarget> viewableTargets = new HashSet<GrouperProvisioningTarget>();\r\n \r\n for (GrouperProvisioningTarget target: targets.values()) {\r\n if (GrouperProvisioningService.isTargetViewable(target, loggedInSubject, grouperObject)) {\r\n viewableTargets.add(target);\r\n }\r\n }\r\n \r\n return viewableTargets;\r\n }",
"List<IMotion> getMotions();"
] | [
"0.7935253",
"0.69712263",
"0.6377476",
"0.6196043",
"0.59012765",
"0.5870709",
"0.5729373",
"0.5631548",
"0.55852735",
"0.5559076",
"0.5490868",
"0.5456608",
"0.54117566",
"0.5411261",
"0.53839475",
"0.5379539",
"0.5372957",
"0.536989",
"0.53632236",
"0.5361795",
"0.53587526",
"0.5337065",
"0.5330816",
"0.532751",
"0.53166676",
"0.5304501",
"0.53018785",
"0.52981156",
"0.5297545",
"0.5283863",
"0.5279165",
"0.5260492",
"0.52493966",
"0.521964",
"0.51890206",
"0.51846045",
"0.51796407",
"0.5176557",
"0.51729476",
"0.51683426",
"0.5147261",
"0.51467776",
"0.5129682",
"0.51259166",
"0.51253563",
"0.5120028",
"0.51099145",
"0.51094896",
"0.5097272",
"0.5094089",
"0.5089172",
"0.50837535",
"0.50832087",
"0.50496113",
"0.50481874",
"0.50430906",
"0.5034991",
"0.50325036",
"0.50267035",
"0.5019685",
"0.50189155",
"0.5016846",
"0.50085646",
"0.5005059",
"0.50018346",
"0.5000479",
"0.49964425",
"0.49906155",
"0.4978158",
"0.4968516",
"0.49633265",
"0.49612218",
"0.49545544",
"0.494535",
"0.49420452",
"0.4938113",
"0.4933351",
"0.49214992",
"0.49206308",
"0.49195305",
"0.49183524",
"0.4913846",
"0.49116537",
"0.49046257",
"0.48887488",
"0.48826018",
"0.48824826",
"0.48819098",
"0.48764122",
"0.48755246",
"0.48735583",
"0.48730078",
"0.4869502",
"0.48639867",
"0.48622146",
"0.48615855",
"0.4859041",
"0.48541698",
"0.48527175",
"0.48466724"
] | 0.77841175 | 1 |
Checks if the player is still in the game (at least 1 robot that is alive) | public boolean isPlayerAlive() {
return !(this.getRobotsAlive().isEmpty());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean userStillInGame() {\n return playersInGame.contains(humanPlayer);\n }",
"private boolean checkGameState() {\n\t\tint numberOfPlayers = this.manSys.lockedNavmap.size();\n\t\tfor (int i = 0; i < numberOfPlayers; i++) {\n\t\t\tif (!snakesList.get(i).isDestroyed()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public boolean gameStillActive() {\n boolean active = true;\n \n // Check max days is not reached.\n active = active && getCurrentDay() < maxDays;\n \n // Check there is still living crew members\n active = active && crewState.getLivingCrewCount() > 0;\n \n // Check ship is not destroyed\n active = active && crewState.getShip().getShieldLevel() > 0;\n \n // Check ship parts have not been found.\n active = active && crewState.getShipPartsFoundCount() < getShipPartsNeededCount();\n \n return active;\n }",
"public void isStillInCombat() {\n isInCombat = enemiesInCombat.size() > 0;\n }",
"public boolean gameIsOver() {\r\n int cpt = 0;\r\n for (Player p : players) {\r\n if (p.getLife() > 0) {\r\n cpt++;\r\n }\r\n }\r\n return cpt==1;\r\n }",
"private boolean isOver() {\r\n return players.size() == 1;\r\n }",
"public boolean isAlive() {\r\n return (lives() > 0);\r\n }",
"private boolean isAlive(){\n boolean alive = true;\n for(int i = 0; i < COLS; i++){\n if(grid[ROWS - 1][i].num != 0) {\n alive = false;\n }\n }\n return alive;\n }",
"public boolean isGameOver() {\n\t\treturn (lives <= 0);\n\t}",
"public boolean isGameOver() {\n return (hasHeWon(computer) || hasHeWon(user) || getAvailableStates().isEmpty());\n }",
"public boolean isAlive() {\r\n\t\treturn hp > 0;\r\n\t}",
"public boolean isAlive(){\r\n if (currHP > 0){\r\n return true;\r\n }\r\n return false;\r\n }",
"public boolean hasAnyoneLost()\n {\n gameOver = false;\n if(dw.isEmpty() || de.isEmpty())\n gameOver = true;\n \n return gameOver;\n }",
"public boolean isGameOver ()\n\t{\n\t\t return lives <= 0;\n\t}",
"public boolean isAlive(){\n\t\treturn lifeForce > 0;\n\t}",
"boolean playerExists() {\n return this.game.h != null;\n }",
"private boolean playerDetection() {\n\t\tAxisAlignedBB axisalignedbb = new AxisAlignedBB(posX, posY, posZ, posX + 1, posY + 1, posZ + 1).grow(DETECTION_RANGE);\n\t\tList<EntityPlayer> list = world.getEntitiesWithinAABB(EntityPlayer.class, axisalignedbb);\n\n\t\treturn !list.isEmpty();\n\t}",
"public boolean isAlive(){\n if(this.hp <= 0){\n return false;\n }\n else{\n return true;\n }\n }",
"public int canPoseBombAndStillBeSafe() {\n Player currentPlayer = state.getCurrentPlayer();\n List<Player> players = state.getPlayers();\n Maze maze = state.getMaze();\n Cell[][] tabcells = maze.getCells();\n for (Player p : players) {\n if (!p.equals(currentPlayer)) {\n if (canBombThisEnemyAndRunSafe(currentPlayer,p)) {\n return 1;\n }\n }\n }\n return 0;\n }",
"public boolean gameOver(){\n\t\treturn this.lives < 1;\n\t}",
"public boolean isAlive() {\r\n\t\treturn life > 0;\r\n\t}",
"boolean GameOver() {\n\t\treturn player.isDead();\n\t}",
"public boolean isOccupied(){\n \t\treturn occupiedSeconds > 0;\n \t}",
"boolean isGameSpedUp();",
"private void checkPlayerCondition()\n\t{\n\t\tif (playerExists() && PlayerAccess.getPlayer().isInExit())\n\t\t{\n\t\t\twon = true;\n\t\t}\n\t\tif (playerIsDead())\n\t\t{\n\t\t\tMapInstance.getInstance().levelRestart();\n\t\t}\n\t\tif (playerHasLost())\n\t\t{\n\t\t\tlost = true;\n\t\t}\n\t\tif (runOutOfTime())\n\t\t{\n\t\t\tPlayerAccess.getPlayer().die();\n\t\t}\n\t}",
"public void checkIfAlive()\n {\n if(this.health<=0)\n {\n targetable=false;\n monstersWalkDistanceX=0;\n monstersWalkDistanceY=0;\n this.health=0;\n new TextureChanger(this,0);\n isSelected=false;\n if(monsterType==1)\n {\n visible=false;\n }\n if(gaveResource==false) {\n int gameResource = Board.gameResources.getGameResources();\n Board.gameResources.setGameResources(gameResource + resourceReward);\n gaveResource=true;\n }\n }\n }",
"boolean stillAlive();",
"public void checkGameEndState() {\n\t\tfor(MapCharacter c : friendlyMissionCriticals) {\n\t\t\tif(!friendlies.contains(c))\n\t\t\t\tthrow new PlayerLosesException();\n\t\t}\n\t\tif(getEnemies().size() == 0)\n\t\t\tthrow new PlayerWinsException();\n\t}",
"public boolean isAlive(){\r\n\t\tif(dead==true){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}",
"void check_game_state() {\n // Game over\n if (lives <= 0){ // No lives left\n end_game();\n }\n for (Alien alien : aliens){ // Aliens reached bottom of screen\n if (alien.y_position + alien.alien_height >= ship.y_position) {\n end_game();\n break;\n }\n }\n\n // Empty board\n if (aliens.isEmpty()) { // All aliens defeated\n if (level < 3) { // Level up\n level_up();\n alien_setup();\n }\n else { // Victory\n end_game();\n }\n }\n }",
"public boolean isGameOver(){\n return checkKingReachedEnd() || checkNoDragonsLeft() || checkIfKingSurrounded();\n }",
"public boolean continueGame(){\n for (Player p : super.getPlayers()) {\n // check if p is dead\n if (p.isDead()) {\n return false;\n }\n }\n return true;\n }",
"public boolean isAlive() {\n return health > 0;\n }",
"public boolean isInGame() {\n return this.hasStarted;\n }",
"Boolean checkEndGame() {\n for (WarPlayer player : players) {\n if (player.getHand().size() == 0)\n return true;\n }\n return false;\n }",
"public int isSafe(){\n int nbEnnemies = 0;\n List<Player> players = state.getPlayers();\n Player currentPlayer = state.getCurrentPlayer();\n for(Player p : players){\n if(!p.equals(currentPlayer)) {\n nbEnnemies += currentPlayerReachable(state.getCurrentPlayer(), p);\n //nbEnnemies += manhattan(currentPlayer, p); //naive version\n }\n }\n return nbEnnemies;\n }",
"private boolean isStillAlive(WorldView world, Element element) {\n\t\treturn world.getManager().isAlive(element);\n\t}",
"public static boolean hasWonTheGame(Player player) {\r\n FloorTile pos = null;\r\n for (int i = 0; i < board.length; i++) {\r\n for (int j = 0; j < board[i].length; j++) {\r\n if (player.getPosition() == board[i][j]) {\r\n pos = board[i][j];\r\n }\r\n }\r\n }\r\n if (goalTile == pos) {\r\n for (int i = 0; i < numOfPlayers; i++) {\r\n players[i].getPlayerProfile().incGamesPlayed();\r\n if (player == players[i]) {\r\n players[i].getPlayerProfile().incWins();\r\n } else {\r\n players[i].getPlayerProfile().incLosses();\r\n }\r\n }\r\n\r\n return true;\r\n }\r\n return false;\r\n }",
"public boolean timeUp(){\n return timeAlive == pok.getSpawnTime(); \n }",
"public boolean isOnline()\n\t{\n\t\treturn PlayerManager.getPlayer(name)!=null;\n\t}",
"boolean isAlive(Unit unit);",
"private boolean inGameInvariant(){\n if (owner != null && troops >= 1)\n return true;\n else\n throw new IllegalStateException(\"A Territory is left without a Master or Troops\");\n }",
"public boolean isGameFinished() {\n if (listaJogadores.size() - listaJogadoresFalidos.size() == 1) {\n return true;\n } else {\n return false;\n }\n\n }",
"private boolean checkGameOver() {\n\t\tboolean singlePlayerWon = otherPlayer.getLife() == 0;\n\t\tboolean otherPlayerWon = singlePlayer.getLife() == 0;\n\n\t\tif (singlePlayerWon || otherPlayerWon) {\n\t\t\tthis.singlePlayer.createEndButton(singlePlayerWon);\n\t\t\tthis.singlePlayer.onGameOver();\n\t\t\tthis.otherPlayer.onGameOver();\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}",
"public static boolean stillInGame(Player[] players) {\n\t\tboolean stillPlaying = false;\n\t\tint playersLeft = 0;\n\t\t\n\t\t//Check if there's only one person left in the game. If there is, return false to stop BlackJack game.\n\t\tfor (int i = 0; i < players.length; i++) {\n\t\t\tif (players[i].getPlaying() == true){\n\t\t\t\tplayersLeft++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (playersLeft == 1){\n\t\t\tstillPlaying = false;\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tfor (int i = 0; i < players.length; i++) {\n\t\t\t\tif (players[i].getPlaying() == true){\n\t\t\t\t\tstillPlaying = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn stillPlaying;\n\t}",
"public boolean isGameRunning()\n\t{\n\t\treturn zegar.isRunning() || wToku;\n\t}",
"public boolean isGameOver() {\r\n\t\treturn !getCurrentPlayingSpace().isBallsLeftOnTable();\r\n\t}",
"public boolean endOfGame() {\n\t\tfor(CardGamePlayer player : playerList) {\n\t\t\tif(gameStarted && player.getNumOfCards() == 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public void checkWin() {\n if (rockList.isEmpty() && trackerRockList.isEmpty() && bigRockList.isEmpty() && bossRockList.isEmpty()) {\n if (ship.lives < 5) {\n ship.lives++;\n }\n Level++;\n LevelIntermission = true;\n LevelIntermissionCount = 0;\n }\n }",
"boolean isGameComplete();",
"public boolean gameOver(){\r\n if(isGame) return (currentPlayer.getChecks() == 0 || nextPlayer.getChecks() == 0 || currentPlayer.getQueens() == 4 || nextPlayer.getQueens() == 4 || (currentPlayer.cantMove() && nextPlayer.cantMove()));\r\n return getNumChecks(WHITE) == 0 || getNumChecks(BLACK) == 0 || getNumQueens(WHITE) == 4 || getNumQueens(BLACK) == 4;\r\n }",
"public boolean isOver() {\n \treturn status == GameStatus.victory || status == GameStatus.draw || status == GameStatus.quit;\n }",
"boolean isAlive();",
"boolean isAlive();",
"private void checkVictory()\n {\n if(throne.getEnemyHealth() <= 0)\n {\n System.out.println(\"Congrats! The land is now free from all chaos and destruction. You are now very rich and wealthy. Yay\");\n alive = false;\n }\n }",
"public boolean gameEnd(){\r\n return !hasMovements(model.getCurrentPlayer().getColor());\r\n }",
"private boolean allReady() {\n PlayerModel[] playersInLobby = this.lobbyModel.getPlayersInLobby();\n if (playersInLobby.length <= 1)\n return false;\n for (PlayerModel pl : playersInLobby) {\n if (!pl.isReady() && !(pl instanceof ClientPlayerModel))\n return false;\n }\n return true;\n }",
"private boolean isGameOver() {\n return Snake().isTouching(Wall()) || Snake().isTouching(Snake());\n }",
"public boolean alive() {\r\n\t\treturn myHP > 0;\r\n\t}",
"private boolean gameOver() {\r\n\t\treturn (lifeBar == null || mehran == null);\r\n\t}",
"public boolean hasWon(Player currentPlayer) {\n\t\treturn currentPlayer.hasVictim();\n\t}",
"public boolean playerLoses(){\n return (curPlayerRow == curTrollRow && curPlayerCol == curTrollCol);\n }",
"private void checkPlayerCollisions() {\r\n\t\tGObject left = getElementAt(player.getX() - 1, player.getY() + player.getHeight() / 2.0);\r\n\t\tGObject right = getElementAt(player.getX() + player.getWidth() + 1, player.getY() + player.getHeight() / 2.0);\r\n\t\tif(dragon1 != null && (left == dragon1 || right == dragon1)) {\r\n\t\t\tremove(lifeBar);\r\n\t\t\tlifeBar = null;\r\n\t\t}\r\n\t\tif(dragon2 != null && (left == dragon2 || right == dragon2)) {\r\n\t\t\tremove(lifeBar);\r\n\t\t\tlifeBar = null;\r\n\t\t}\r\n\t}",
"protected boolean isAlive()\n {\n return alive;\n }",
"protected boolean isAlive()\n {\n return alive;\n }",
"private boolean isGameOver() {\n\t\tfor (int i = 0; i < this.board.getHeight(); i++) {\n\t\t\tif (this.board.getModel(i, 0) instanceof AbstractZombie) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isAlive();",
"public boolean isGameOver()\n {\n if ( this.canMove(Direction.UP) || this.canMove(Direction.DOWN) ||\n this.canMove(Direction.LEFT) || this.canMove(Direction.RIGHT) ) { \n return false;\n }\n else {\n return true;\n } \n }",
"private boolean isGameOver() {\n // either all black or all white pieces don't have any moves left, save\n // to internal field so that a delayed status is available\n gameOver = longestAvailableMoves(1, true).isEmpty() ||\n longestAvailableMoves(1, false).isEmpty();\n return gameOver;\n }",
"@Override\n public boolean isAlive() {\n return health > 0f;\n }",
"public boolean isGameOver() {\n if (!isFirstTurn) {\n if (state.score().totalPoints(TeamId.TEAM_1)>=Jass.WINNING_POINTS||state.score().totalPoints(TeamId.TEAM_2)>=Jass.WINNING_POINTS) {\n return true;\n }\n else {\n return false;\n }\n } \n else {return false;}\n }",
"public boolean hasOnlinePlayers() {\n for (Player p : players) {\n if (p.isOnline())\n return true;\n }\n return false;\n }",
"public boolean isRunning()\n {\n WebElement box = driver.findElement(By.cssSelector(\"#box\"));\n String lv = box.getAttribute(\"class\");\n int level = lv.charAt(2) - 48;\n\n WebElement timeElem = driver.findElement(By.cssSelector(\"#room > header > span.time\"));\n String timeStr = timeElem.getText();\n int time = stringToInt(timeStr);\n\n return level != 1 && time != 1;\n }",
"public boolean avengersAlive() {\n\t\tif (avengersHp <= 0) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"private boolean playerAlive(int curPlayerRow, int curPlayerCol){\n return (gameBoard[curPlayerRow][curPlayerCol].isAlive());\n }",
"public boolean allPlayersReady() {\n // Si un jugador esta offline, lo ignora\n for (Player p : players) {\n if (p.isOnline() && !p.isReady())\n return false;\n }\n return true;\n }",
"public void checkGame(){\r\n\t\tif (foodCounter == 0){ // all food is gone, win\r\n\t\t\tSystem.out.println(\"You won!\");\r\n\t\t\t//stops ghosts and pacman\r\n\t\t\tpacman.speed = 0;\r\n\t\t\tg1.speed = 0;\r\n\t\t\tg2.speed = 0;\r\n\t\t\tg3.speed = 0;\r\n\t\t\tlost = true; // return to menu \r\n\t\t}\r\n\t\t// if pacman collide with ghost, lose\r\n\t\tif (collision2(pacmansprite,g1.sprite) || collision2(pacmansprite,g2.sprite) || collision2(pacmansprite,g3.sprite)){\r\n\t\t\tSystem.out.println(\"You lost\");\r\n\t\t\tlost = true;\r\n\t\t}\r\n\t}",
"public boolean hasGameEnded() {\n return winner != 0;\n }",
"public boolean checkGameOver() {\n return ((posIniPiece[piece.getKind()] == piece.getPos(0)) && iteration > 0);\n }",
"public boolean gameOver() \n {\n \treturn status() != GAME_NOT_OVER;\n }",
"public boolean isGameOver() {\n\t\treturn this.b.isGameOver();\n\t}",
"public boolean isPlayerInRoom() {\n return !(roomPlayer == null);\n }",
"public void checkGameStatus() {\n everyTenthGoalCongrats();\n randomPopUpBecauseICan();\n }",
"private void checkLoosePLayer(){\n if (hero.getHp()<=0){\n loose();\n }\n\n }",
"private boolean isGameOverAutomatico() {\n\t\tif(this.getEquipesAtivas().size() == 1)\n\t\t\treturn true;\n\t\t\n\t\tboolean temCosmo = false;\n\t\tfor(Equipe equipe : this.getEquipesAtivas()){\n\t\t\tif(equipe.getCosmo() > 0){\n\t\t\t\ttemCosmo = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn !temCosmo;\n\t}",
"public boolean gameOver() {\r\n return didPlayerLose() || didPlayerWin();\r\n }",
"public synchronized boolean isFull() {\r\n\t\treturn (this.players.size() == 6);\r\n\t}",
"public boolean isGameOver() {\n\t\treturn (movesLeft() == 0) || someoneQuit\n\t\t\t\t|| (winningPlayer != Game.GAME_NOT_OVER);\n\t}",
"public boolean isGameOver() {\r\n for (String player : this.playerIds) {\r\n\r\n //If player has an empty card\r\n if(hasEmptyHand(player)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"public void isGameOver() { \r\n myGameOver = true;\r\n myGamePaused = true; \r\n }",
"protected boolean isFinished() {\n \tif(timer.get()>.7)\n \t\treturn true;\n \tif(Robot.gearX==0)\n \t\treturn true;\n return (Math.abs(173 - Robot.gearX) <= 5);\n }",
"public boolean canSpawnMore() {\n for(int e: enemiesLeft) {\n if(e > 0) {\n return true;\n }\n }\n\n return false;\n }",
"public boolean isGameOver() {\n if (gameStatus == null || gameStatus.getPlayerOne() == null || gameStatus.getPlayerTwo() == null) return false;\n return gameStatus.isTie()\n || gameStatus.getPlayerOne().equals(gameStatus.getWinner())\n || gameStatus.getPlayerTwo().equals(gameStatus.getWinner())\n || gameStatus.getPlayerOnePoints() == 0\n || gameStatus.getPlayerTwoPoints() == 0\n || (getWhoseTurn() == 1 && isPlayerMoveImpossible(1))\n || (getWhoseTurn() == 2 && isPlayerMoveImpossible(2));\n }",
"public boolean isGameOver() {\r\n\treturn false;\r\n }",
"public boolean isGameWon(){\r\n for(Card c: this.cards){\r\n if (c.getFace() == false){\r\n return false;\r\n }\r\n }\r\n return true;\r\n }",
"public boolean taken() {\n return pawn.getLives() != 0;\n }",
"public boolean isGameOver() {\r\n if(timesAvoid == 3) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }",
"public boolean isAlive()\n\t{\n\t\treturn alive;\n\t}",
"public boolean isAlive()\n\t{\n\t\treturn alive;\n\t}",
"public boolean endOfGame() {\n\t\tfor (int i = 0; i < getNumOfPlayers(); i++) {\n\t\t\tif (this.getPlayerList().get(i).getCardsInHand().isEmpty()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}"
] | [
"0.7360506",
"0.6974189",
"0.6971553",
"0.6932879",
"0.6853032",
"0.68126494",
"0.6780878",
"0.6720772",
"0.67171",
"0.6694876",
"0.66733617",
"0.6670283",
"0.6670119",
"0.6658062",
"0.6626217",
"0.66168565",
"0.66122055",
"0.65898013",
"0.65822643",
"0.6570491",
"0.6564366",
"0.6556908",
"0.65385216",
"0.65306467",
"0.6519361",
"0.65191525",
"0.6447263",
"0.6441",
"0.6428018",
"0.6393333",
"0.6385991",
"0.63828874",
"0.63740414",
"0.63626873",
"0.6351915",
"0.63486624",
"0.6339874",
"0.63248205",
"0.6314926",
"0.6314653",
"0.6300543",
"0.6299497",
"0.62983155",
"0.62873393",
"0.6286345",
"0.6281887",
"0.62744987",
"0.62688017",
"0.62604773",
"0.62543654",
"0.6247318",
"0.62462986",
"0.62413216",
"0.62413216",
"0.6227512",
"0.6217265",
"0.6214479",
"0.6206188",
"0.6204534",
"0.62038445",
"0.6201009",
"0.6199099",
"0.61943626",
"0.61907244",
"0.61907244",
"0.61863023",
"0.6185844",
"0.6184946",
"0.6182673",
"0.6182067",
"0.6178512",
"0.61769104",
"0.6174164",
"0.61720055",
"0.61659056",
"0.61649555",
"0.61593705",
"0.61565423",
"0.61481184",
"0.61465275",
"0.61450315",
"0.6136911",
"0.61300415",
"0.6124292",
"0.61214894",
"0.611977",
"0.6118322",
"0.61174595",
"0.6107645",
"0.6107369",
"0.6106571",
"0.6106561",
"0.6103566",
"0.61006576",
"0.6099939",
"0.60979605",
"0.6097849",
"0.60914063",
"0.60914063",
"0.6086198"
] | 0.75371575 | 0 |
Gets the playerID field of the object. | public int getPlayerID() {
return playerID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getId() {\n\t\treturn this.playerid;\n\t}",
"public int getId() {\n return playerId;\n }",
"public PlayerID getID()\r\n\t{\r\n\t\treturn ID;\r\n\t}",
"public int getPlayerID() {\n\t\treturn playerID;\n\t}",
"public long getPlayerId() {\n return playerId_;\n }",
"public long getPlayerId() {\n return playerId_;\n }",
"public int getPlayerID() {\r\n return playerID;\r\n }",
"public String getPlayerID() {\n return playerID;\n }",
"public int getPlayerID() {\n return playerID;\n }",
"public Integer getPlayerId() {\n return PlayerId;\n }",
"public int getIdPlayer() {\n\t\treturn idPlayer;\n\t}",
"@java.lang.Override\n public java.lang.String getPlayerId() {\n java.lang.Object ref = playerId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n playerId_ = s;\n return s;\n }\n }",
"java.lang.String getPlayerId();",
"public int getPlayerId() {\r\n\t\treturn playerId;\r\n\t}",
"public String getPlayerId() {\n\t\treturn playerId;\n\t}",
"public java.lang.String getPlayerId() {\n java.lang.Object ref = playerId_;\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 playerId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"long getPlayerId();",
"public int getPlayerId();",
"int getPlayerId();",
"int getPlayerId();",
"public PlayerID getPlayer(){\n\t\treturn this.player;\n\t}",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getPlayerIdBytes() {\n java.lang.Object ref = playerId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n playerId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public byte getPlayerId() {\n return playerId;\n }",
"public com.google.protobuf.ByteString\n getPlayerIdBytes() {\n java.lang.Object ref = playerId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n playerId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public short getPlayerID() {\n\n return m_playerID;\n }",
"com.google.protobuf.ByteString\n getPlayerIdBytes();",
"public int getPlayerID(){\n\t\treturn 0;\n\t\t/*\n\t\ttry{\n\t\t\tint player_id=-1;\t\t\t//save player_id, start with -1 as unknown\n\t\t\tString request = \"{\\\"jsonrpc\\\": \\\"2.0\\\", \\\"method\\\": \\\"Player.GetActivePlayers\\\", \\\"id\\\": 1}\";\n\t\t\tString url = kodiURL + URLEncoder.encode(request, \"UTF-8\");\n\t\t\t//send request\n\t\t\tJSONObject result = Connectors.httpGET_JSON(url.trim());\n\t\t\tSystem.out.println(\"result: \" + result);\t\t//debug\n\t\t\t//connection error\n\t\t\tif (result.toJSONString().trim().matches(\".*<connection error>.*\")){\n\t\t\t\treturn -2;\n\t\t\t}\n\t\t\tplayer_id = Integer.parseInt(result.get(\"id\").toString());\n\t\t\treturn player_id;\t\t//return ID if found\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn -1;\n\t\t}\n\t\t*/\n\t}",
"public int getPlayerNumber() {\n\t\tif(this.player == null) return 0;\n\t\telse return this.player.number;\n\t}",
"public int getPlayer() {\r\n\t\treturn player;\r\n\t}",
"public JTextField getPlayerID() {\n return PlayerID;\n }",
"public int getPlayer() {\r\n\t\treturn myPlayer;\r\n\t}",
"public int getPlayerNumber() {\n\t\tint playerNumber=super.getPlayerNumber();\n\t\treturn playerNumber;\n\t}",
"public int getPlayerNumber() {\n return this.playerNumber;\n }",
"public int getPlayer()\n {\n return this.player;\n }",
"public int getPickedPlayerID()\n {\n return picked;\n }",
"protected String get_object_id()\r\n\t{\r\n\t\treturn id;\r\n\t}",
"protected String get_object_id()\r\n\t{\r\n\t\treturn id;\r\n\t}",
"protected String get_object_id()\r\n\t{\r\n\t\treturn id;\r\n\t}",
"public int getPlayerNumber() {\n return playerNumber;\n }",
"public Long getId() {\r\n\t\treturn objectId;\r\n\t}",
"public int getObjectId() {\n\t\treturn this.objectId;\n\t}",
"public int getPlayerNumber() {\n\t\treturn playerNumber;\n\t}",
"public int getPlayerNumber() {\n\t\treturn playerNumber;\n\t}",
"public Integer getPlayId() {\n return playId;\n }",
"public Object getID()\n {\n return data.siObjectID;\n }",
"public final int getObjectID() {\n\t\treturn objectID;\n\t}",
"public int getObjId() {\n return instance.getObjId();\n }",
"public int getObjId() {\n return instance.getObjId();\n }",
"public int getObjId() {\n return instance.getObjId();\n }",
"public int getObjId() {\n return instance.getObjId();\n }",
"public int getObjId() {\n return instance.getObjId();\n }",
"public int getObjId() {\n return instance.getObjId();\n }",
"public static Object getIdentificationFor(OfflinePlayer player) {\n return getIdentificationFor(player, true);\n }",
"public String getId() {\n return getObjectId();\n }",
"public static Object getIdentificationFor(String playerName) {\n try {\n return UUIDFetcher.getUUIDOf(playerName);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return playerName;\n }",
"public Integer getObjectId() {\n\t\treturn objectId;\n\t}",
"public String getId() {\n return _theId;\n }",
"public int getGameID() {\n return gameID;\n }",
"public String getObjectId()\r\n {\r\n /*\r\n * Author : DJ\r\n * Date : 02/04/2003\r\n * Notes :\r\n * History :\r\n */\r\n return _objectId;\r\n }",
"@Override\n public int getPlayerHashID() {\n return this.hashID;\n }",
"public final int getId() {\n\t\treturn this.accessor.getId();\n\t}",
"public Object getId() {\n return id;\n }",
"public Object getId() {\n return id;\n }",
"public int getObjId() {\n return objId_;\n }",
"public int getObjId() {\n return objId_;\n }",
"public int getObjId() {\n return objId_;\n }",
"public int getObjId() {\n return objId_;\n }",
"public int getObjId() {\n return objId_;\n }",
"public int getObjId() {\n return objId_;\n }",
"public int getId() {\n//\t\tif (!this.isCard())\n//\t\t\treturn 0;\n\t\treturn id;\n\t}",
"public Integer getGameId() {\n return gameId;\n }",
"public String getObjId()\n {\n return objId;\n }",
"public String getObjectId() {\r\n\t\treturn objectId;\r\n\t}",
"public long getId()\n {\n return m_id;\n }",
"public int getMyPlayerNumber() {\n if (gameStatus == null || userId == null) return -1;\n if (userId.equals(gameStatus.getPlayerOne())) return 1;\n if (userId.equals(gameStatus.getPlayerTwo())) return 2;\n return -2;\n }",
"@java.lang.Override\n public java.lang.String getPlayerExternalUaId() {\n java.lang.Object ref = playerExternalUaId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n playerExternalUaId_ = s;\n return s;\n }\n }",
"public int getID() {\n return(this.id);\n }",
"@Override\n\tpublic int getID()\n\t{\n\t\treturn this.m_id;\n\t}",
"public int getID() {\n return this._id;\n }",
"public WhoAmI getID() {\r\n\t\treturn myId;\r\n\t}",
"public long getID() {\n return _id;\n }",
"public String getPlayer(int id) {\n if(id == -1 || mdb == null) {\n return null;\n }\n \n Set<String> strings = mdb.getKeys(false);\n for (String key : strings) {\n List<Integer> messageids = mdb.getIntegerList(key + \".messageids\");\n if (messageids != null && messageids.contains(id)) {\n return key;\n }\n }\n return null;\n }",
"public long getId() {\r\n \treturn this.id;\r\n }",
"public int getObjectId() {\n\t\t\treturn objectId;\n\t\t}",
"public String getObjectId() {\n\t\treturn objectId;\n\t}",
"public int getGameID() {\n return GameID;\n }",
"@Override\n public long getID()\n {\n return this.id;\n }",
"public Object getObjectId() {\n\t\treturn null;\n\t}",
"public String getId()\n\t{\n\t\treturn m_sID;\t\n\t}",
"public FString objectID() {\n return this.key;\n }",
"public Number getPersonId() {\n return (Number)getAttributeInternal(PERSONID);\n }",
"public String getCurrentPlayer() {\r\n return this.playerIds[this.currentPlayer];\r\n }",
"@Override\n\tpublic Number getId() {\n\t\treturn this.id;\n\t}",
"protected int getID(){\r\n\t\treturn this.ID;\r\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 }",
"int getObjId();",
"int getObjId();",
"int getObjId();",
"int getObjId();"
] | [
"0.8045902",
"0.7933808",
"0.7824345",
"0.779128",
"0.778151",
"0.7780919",
"0.77472115",
"0.7744266",
"0.77328616",
"0.7717261",
"0.7705572",
"0.767735",
"0.7662445",
"0.7647246",
"0.7633788",
"0.7554774",
"0.74217755",
"0.7402593",
"0.73714197",
"0.73714197",
"0.730426",
"0.72622615",
"0.7225688",
"0.71868384",
"0.69915146",
"0.6956491",
"0.69486535",
"0.6817485",
"0.6776028",
"0.676691",
"0.671891",
"0.6685451",
"0.6627885",
"0.65999323",
"0.65799946",
"0.65704316",
"0.65704316",
"0.65704316",
"0.65675616",
"0.6539753",
"0.6482274",
"0.64765954",
"0.64765954",
"0.64292896",
"0.64153403",
"0.640933",
"0.6388172",
"0.6388172",
"0.6388172",
"0.6388172",
"0.6388172",
"0.6388172",
"0.6336631",
"0.63133186",
"0.6252977",
"0.62240833",
"0.61949617",
"0.6190236",
"0.6181522",
"0.6177979",
"0.6164635",
"0.6152208",
"0.6152208",
"0.61505926",
"0.61505926",
"0.61505926",
"0.61505926",
"0.61505926",
"0.61505926",
"0.61424977",
"0.61421615",
"0.6141536",
"0.614013",
"0.613833",
"0.61292154",
"0.6128786",
"0.6127854",
"0.6127611",
"0.6127106",
"0.6123857",
"0.6123734",
"0.61215866",
"0.6116274",
"0.61157596",
"0.6115259",
"0.6114955",
"0.61137646",
"0.6101155",
"0.6098752",
"0.60966986",
"0.60925645",
"0.6087048",
"0.60865825",
"0.60842323",
"0.60796785",
"0.6075184",
"0.6075184",
"0.6075184",
"0.6075184"
] | 0.782384 | 3 |
Sets the specified robot to dead. | public void killRobot(int robotType) {
robots.get(robotType).setDead();
++this.robotsDestroyed;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setDead()\n {\n alive = false;\n if(location != null) {\n field.clear(location);\n location = null;\n field = null;\n }\n }",
"protected void setDead()\n {\n alive = false;\n if(location != null) {\n field.clear(location);\n location = null;\n field = null;\n }\n }",
"public void setDead(){\n\t\t//queue this blood for cleanup\n\t\tvisible = false;\n\t\tDEAD = true;\n\t\tcleanUp();\n\t}",
"public void setDead(boolean dead) {\r\n this.dead = dead;\r\n }",
"public void setDead(boolean dead) {\n isDead = dead;\n }",
"public void setDead(boolean dead) {\n this.isDead = dead;\n }",
"public void setDead(boolean dead) {\n\t\tthis.dead = dead;\n\t}",
"public void setDead(boolean value);",
"void dead() { this.alive = false; }",
"public void setRobot(Robot robot) {\n\t\tthis.robot = robot;\n\t}",
"public void setRobot(Robot robot) {\n this.robot = robot;\n }",
"private void bringToLife(){\n this.dead = false;\n }",
"@Override\n\t\t\t\t\tpublic void onDisconnected(Robot arg0) {\n\t\t\t\t\t\tmRobot = null;\n\t\t\t\t\t}",
"public void markDead() {\r\n\t\tsetNodeWasContacted(0);\r\n\t}",
"private void killBullet() {\r\n this.dead = true;\r\n }",
"public void robotDestroy() {\n }",
"public void kill() throws RuntimeException {\n if (isDead == true)\n throw new RuntimeException(\"This player is already dead!\");\n this.isDead = true;\n }",
"@Override\n\tpublic void play(int robot) {\n\t\tSystem.out.println(\"Robot\"+ robot+ \" is Defending!\");\n\t}",
"protected void end() {\n \tRobot.driveBase.stopDead();\n }",
"public void stopRobot(){\n LAM.setPower(0);\n RAM.setPower(0);\n ILM.setPower(0);\n IRM.setPower(0);\n BLM.setPower(0);\n BRM.setPower(0);\n FLM.setPower(0);\n FRM.setPower(0);\n }",
"public void setIsDead(boolean isDead) {\n this.isDead = isDead;\n }",
"public void kill() {\r\n \t\tthis.isDead = true;\r\n \t}",
"public Atendiendo(Robot robot){\n this.robot = robot;\n }",
"public void setAlive(boolean alive){\n // make sure the enemy can be alive'nt\n this.alive = alive; \n }",
"public void setDead(boolean dead) {\n this.dead = dead;\n Graphics g = image.getGraphics();\n g.setColor(Color.BLACK);\n g.fillRect(0,0,pieceSize,pieceSize);\n g = getCoveredImage().getGraphics();\n g.setColor(Color.BLACK);\n g.fillRect(0,0,pieceSize,pieceSize);\n }",
"public void setAlive() {\n\t\tif(alive)\n\t\t\talive = false;\n\t\telse\n\t\t\talive = true;\n\t}",
"public void die() {\n\t\tdead = true;\n\t\tthis.notifyStatChangeObservers(new StatChange(StatType.LIVES_LEFT, -1));\n\t\tif (getStat(StatType.LIVES_LEFT) == 0) {\n\t\t\tmodel.setState(GameStateType.GAME_OVER);\n\t\t} else {\n\t\t\tthis.setLocation(getStartingLocation());\n\t\t\tdead = false;\n\t\t}\n\t}",
"public void robotFini(int indiceRobot) {\n\t\tetatsRobots[indiceRobot] = false;\n\t}",
"public void setAlive() {\n\t\tif (this.alive == true) {\n\t\t\tthis.alive = false;\n\t\t} else {\n\t\t\tthis.alive = true;\n\t\t}\n\t}",
"private void Dead() {\n\t\thunger -= 5;\n\t\tthirst -= 5;\n\t\tif ((thirst < 25) && (hunger < 25)){\t\t\t// Player is very weak\n\t\t\thealth -= 15;\n\t\t}else if ((thirst < 25) || (hunger < 25)){\t\t// Player is kinda weak\n\t\t\thealth -= 5;\n\t\t}\n\t\tif (health <= 0){\t\t\t\t\t\t\t\t// Player is dead\n\t\t\taddMessage(\"Overcome by your weakness you succumb.\", \"AI\");\n\t \t\taddMessage(\"You have died\", \"AI\");\n\t \t\tmenu = MENU.GAME_OVER;\n\t\t}\n\t}",
"public void die()\n\t{\n\t\talive = false;\n\t}",
"public void setSpecimenDead(long killed) {\n specimenDead = killed;\n }",
"void robotStop();",
"@Override\n\t\tpublic void driveRobot(double power, double pivot) {\n\t\t\tclosedLoopArcade(power, pivot);\n\t\t}",
"public void setDead()\r\n/* 107: */ {\r\n/* 108:128 */ if (this.b) {\r\n/* 109:129 */ vs.a(this.world, this, this);\r\n/* 110: */ }\r\n/* 111:132 */ super.setDead();\r\n/* 112: */ }",
"public void setDied();",
"@Override\n public void Die() {\n this.setAlive(false);\n }",
"public void robotDeath(RobotDeathEvent e) {\r\n\r\n\t\tif (gotTarget && e.getName().equals(radarTarget.getName())) {\r\n\t\t\tradarTarget = newRadarTarget();\r\n\t\t\tmrRobot.sendMessage(6, \"2\");\r\n\r\n\t\t}\r\n\t\tif (getIndexForName(e.getName()) != -1) {\r\n\t\t\ttargetTracking.remove(getIndexForName(e.getName()));\r\n\t\t}\r\n\r\n\t}",
"public DriveWithVelocityManual (double deadband) {\n requires(Robot.getDrivetrain());\n this.deadband = deadband;\n }",
"protected void end() {\n \t//Robot.motor.disable();\n \tRobot.motor.disable();\n }",
"public abstract void setPercentDead(double percent);",
"@Override\r\n\tpublic void move(Robot robot)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif(robot.canMoveOneStep())\r\n\t\t\t{\r\n\t\t\t\trobot.moveOneStep();\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"This robot cannot move in its current state.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(IllegalStateException exc)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"A terminated robot cannot be moved.\");\r\n\t\t}\r\n\t}",
"@Override\n protected void execute() {\n Robot.elevator.elevatorDown();\n }",
"public void changeDeadband(double deadband) {\n\t\tDEAD_BAND = deadband;\n\t}",
"private void setAlive(boolean value) {\n \n alive_ = value;\n }",
"public Main(Robot robot) {\n\t\tthis.robot = robot;\n\n\t\twhile (true) {\n\t\t\tif(Robot.safeState) continue;\n\t\t\trobot.getPilot().forward();\n\n\t\t\twhile (robot.getPilot().isMoving()) {\n\t\t\t\tif(!robot.getSensor().isGroundValid()){\n\t\t\t\t\trobot.moveBackward();\n\t\t\t\t}\n\n//\t\t\t\t\n\n\t\t\t}\n\t\t}\n\t}",
"public void setAlive(boolean alive)\n {\n this.alive = alive;\n }",
"public void setAlive(boolean alive){\r\n\t\tthis.alive = alive;\r\n\t}",
"protected void die()\n\t{\n\t\tdead = true;\n\t\tcurrentCell.setOccupant(null);\n\t\tcurrentCell = null;\n\t}",
"void removeRobot(Position pos);",
"private void physicsTickDead() {\n\t\t// Check the round end counter\n\t\tif (checkRoundEndCounter()) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Physics stuff\n\t\tsetThrusts();\n\t\tmoveEverything(deltaTimeDead);\n\t\tageScoreMarkers(deltaTimeAlive);\n\t\tshootBullets();\n\t\t\n\t\tcollideTankToWall();\n\t\tcollideBulletToWall();\n\t}",
"public void turnToDead(int x, int y){\n if(isInsideBoard(x, y))\n getBoard()[x][y] = false;\n }",
"@Override\r\n\tpublic void setRobot(Robot r) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\trobot = (BasicRobot) r;\r\n\t\t//robot.setMaze(this.mC);\r\n\t\t\r\n\t}",
"Lift(final Robot ROBOT)\n {\n _robot = ROBOT;\n }",
"public void kill() { _isAlive = false; }",
"@Override\r\n public void setDead()\r\n {\r\n if (!worldObj.isRemote && !this.isDead)\r\n {\r\n if (blocks != null)\r\n {\r\n for (ItemStack[][] barrarr : blocks)\r\n {\r\n for (ItemStack[] barr : barrarr)\r\n for (ItemStack b : barr)\r\n {\r\n if (b != null) this.entityDropItem(b, 0.5f);\r\n }\r\n }\r\n if (this.getHeldItem() != null) this.entityDropItem(getHeldItem(), 1);\r\n }\r\n }\r\n super.setDead();\r\n }",
"public void setAlive(boolean alive) {\r\n\t\tthis.alive = alive;\r\n\t}",
"@Override\n public void kill() {\n alive = false;\n Board.getInstance().setPoints(points);\n }",
"@Override\n public void die() {\n// System.out.println(\"STATE = dead\");\n state = ENEMY_DEAD;\n stateTime = 0;\n velocity.x = 0;\n }",
"private void die() {\r\n\t\tisAlive = false;\r\n\t}",
"public void setAlive(boolean x){\n \talive = x;\r\n }",
"void die() {\n alive = false;\n setChanged();\n notifyObservers(new Pair<>(\"increaseLives\", -1));\n }",
"public void kill() {\n this.hp = 0;\n }",
"public void setAlive(boolean alive) {\n\t\tthis.alive = alive;\n\t}",
"public void setAlive(boolean alive) {\n\t\tthis.alive = alive;\n\t}",
"@Override\r\n\tpublic void turn(Robot robot)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif(robot.canTurn(Direction.CLOCKWISE))\r\n\t\t\t{\r\n\t\t\t\trobot.turnClockwise();\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"This robot cannot turn in its current state.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(IllegalStateException exc)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"A terminated robot cannot be turned.\");\r\n\t\t}\r\n\t}",
"public void kill()\n\t{\n\t\tthis.isDead = true;\n\t\tSystem.out.println(name + \" died!\");\n\t\t//GamePanel.player.playerCombatant.awardXP(this.getXP());\n\n\t\t//TODO: Reload last save or Exit\n\t}",
"public void killRobot(String robotType) {\r\n\t\tif (robotType.toLowerCase().equals(\"scout\")) {\r\n\t\t\tkillRobot(0);\r\n\t\t} else if (robotType.toLowerCase().equals(\"sniper\")) {\r\n\t\t\tkillRobot(1);\r\n\t\t} else if (robotType.toLowerCase().equals(\"tank\")) {\r\n\t\t\tkillRobot(2);\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Invalid/unknown robot type.\");\r\n\t\t}\r\n\t}",
"public void deadMonster() {\r\n\t\tthis.nbMonster --;\r\n\t}",
"protected void end()\n {\n Robot.drivetrain.getAngleGyroController().disable();\n Robot.drivetrain.holonomicDrive(0, 0, 0);\n timer.stop();\n }",
"public void abortBuilding() {\n buildTarget = null;\n buildStep = 0;\n buildInstructions = null;\n buildLocation = null;\n buildHeight = null;\n\n knowledge.myState = RobotState.IDLE;\n }",
"public void toggleAlive() {\n\t\tthis.isAlive = !isAlive;\n\t}",
"public void stopWheel()\n {\n setVectorTarget(Vector2D.ZERO);\n\n turnMotor.setPosition(0.5);\n\n if (driveMotor != null)\n driveMotor.setVelocity(0);\n }",
"private void stopMotors() {\n pidDrive.disable();\n pidRotate.disable();\n robot.rightDrive.setPower(0);\n robot.leftDrive.setPower(0);\n }",
"private void clearAlive() {\n \n alive_ = false;\n }",
"@Override\n protected void end() {\n Robot.m_drive.SetPower(0);\n }",
"private void halt() {\n robot.leftFront.setPower(0);\n robot.leftBack.setPower(0);\n robot.rightFront.setPower(0);\n robot.rightBack.setPower(0);\n }",
"public void setBoulderLockOff(){\r\n\t\tservoTarget = Constants.BALL_HOLDER_RETRACTED;\r\n\t}",
"@Test\n\tpublic void testSetRobot() {\n\t\tController control = new Controller();\n\t\tBasicRobot robot = new BasicRobot();\n\t\tExplorer explorer = new Explorer();\n\t\tcontrol.setBuilder(Order.Builder.DFS);\n\t\tcontrol.setRobotAndDriver(robot, explorer);\n\t\trobot.setMaze(control);\n\t\tcontrol.turnOffGraphics();\n\t\tcontrol.switchFromTitleToGenerating(0);\n\t\tcontrol.waitForPlayingState();\n\t\texplorer.setRobot(robot);\n\t\tassertNotNull(explorer.getRobot());\n\t}",
"public void setDeadCount(String deadCount) {\n this.deadCount = deadCount;\n }",
"public void stop()\n {\n robot.FL_drive.setPower(0);\n robot.FR_drive.setPower(0);\n robot.BL_drive.setPower(0);\n robot.BR_drive.setPower(0);\n }",
"@Override\n\tpublic boolean isDead() {\n\t\treturn dead;\n\t}",
"public void deadPlayer() {\r\n\t\tthis.nbPlayer --;\r\n\t}",
"public void agregarRobot(Robot robot);",
"private void deathRoom()\n {\n if(currentRoom.equals(deathRoom4))\n {\n alive = false;\n }\n }",
"public boolean isRobotDead(int currentTurn, int lastTurn) {\r\n\t\treturn (currentTurn - lastTurn > declareDeadInterval * 2 );\r\n\t}",
"protected void end() {\n \tRobot.drivetrain.leftDrive1.set(0); \n \tRobot.drivetrain.leftDrive2.set(0);\n \tRobot.drivetrain.leftDrive3.set(0);\n \t\n \tRobot.drivetrain.rightDrive1.set(0);\n \tRobot.drivetrain.rightDrive2.set(0);\n \tRobot.drivetrain.rightDrive3.set(0);\n \tRobot.twoGearAngle = Robot.drivetrain.gyro.getYaw();\n }",
"public void lifeLost() {\n\n\t\tif (invincipleTimer <= currentTickCount) {\n\t\t\tSystem.out.println(\"Life Lost!\");\n\n\t\t\thealth--;\n\t\t\tinvincipleTimer = currentTickCount + invicibleLength;\n\t\t}\n\t}",
"void setAlive(boolean isAlive);",
"protected void end() {\n \tRobot.m_elevator.disable();\n \tRobot.m_elevator.free();\n }",
"protected void end() {\n \tRobot.gearIntake.setIsDown(false);\n \tRobot.gearIntake.setGearRollerSpeed(0);\n }",
"@Override\n\tprotected void takeOff(){\n\t\tgvh.log.i(TAG, \"Drone taking off\");\n\t\tsetControlInput(0, 0, 0, 1);\n\t}",
"public void pleaseStop()\n {\n\t this.doorgaan_thread = false;\n\t this.doorgaan_wheel = true;\n draad = null; // waarom? \n }",
"public void setDeath(boolean d) {\r\n\t\tdeath = d;\r\n\t}",
"protected void end() {\n \tRobot.chassisSubsystem.setShootingMotors(0);\n }",
"private void playerKilledRobot(Player p) {\n\t\tint currentScore, newScore;\n\t\tp.decreaseRobotsFollowing();\n\t\tp.addScore(killRobotScore);\n\t\t\n\t\tcurrentScore \t= highscore.get(p.getName());\n\t\tnewScore \t\t= currentScore + killRobotScore;\n\t\t\n\t\thighscore.put(p.getName(), newScore);\n\t\tserver.updateHighscoreList();\n\t\tserver.addTextToLoggingWindow(\"Player (\" + p.getName() + \") killed a robot\");\n\t}",
"@Override\n\tprotected void execute() {\n\t\tRobot.arm.armDown();\n\t}",
"default public boolean dead() {\n return life().dead();\n }",
"public void isShot() {\r\n\t\tlives -=1;\r\n\t\tif(isDead())\r\n\t\t{\r\n\t\t\tthis.erase();\r\n\t\t}\r\n\t}",
"void driveStop() {\n flMotor.setPower(0);\n frMotor.setPower(0);\n blMotor.setPower(0);\n brMotor.setPower(0);\n }"
] | [
"0.68241733",
"0.68241733",
"0.6696548",
"0.6498666",
"0.6486234",
"0.63830453",
"0.62719345",
"0.62262297",
"0.61641234",
"0.613515",
"0.6086841",
"0.5973277",
"0.5936716",
"0.57911974",
"0.5724196",
"0.5674123",
"0.5625472",
"0.56224",
"0.56058955",
"0.5576218",
"0.5567746",
"0.5532399",
"0.5502791",
"0.54755056",
"0.54716367",
"0.5465406",
"0.5453567",
"0.5440147",
"0.54307693",
"0.54280555",
"0.5313177",
"0.52932996",
"0.527311",
"0.5264629",
"0.5261629",
"0.52477854",
"0.52453774",
"0.5238031",
"0.5228094",
"0.52105325",
"0.52090144",
"0.5177442",
"0.5175002",
"0.51695806",
"0.51440847",
"0.5136875",
"0.5114663",
"0.5105774",
"0.51026064",
"0.5086823",
"0.50858593",
"0.50786895",
"0.5076147",
"0.5075171",
"0.5073382",
"0.50723267",
"0.50673634",
"0.50616866",
"0.5031136",
"0.50199187",
"0.5015501",
"0.50042415",
"0.49986288",
"0.49628267",
"0.49628267",
"0.4952153",
"0.49514943",
"0.49422747",
"0.49394202",
"0.49316946",
"0.49298307",
"0.4917617",
"0.49103957",
"0.489838",
"0.48942864",
"0.48879546",
"0.48868734",
"0.48835847",
"0.48825967",
"0.48801184",
"0.48679996",
"0.48595572",
"0.48593503",
"0.48529747",
"0.48452193",
"0.48340574",
"0.48211607",
"0.48187202",
"0.4817466",
"0.48155487",
"0.48104128",
"0.48011452",
"0.47987866",
"0.479532",
"0.47952062",
"0.47864535",
"0.47800857",
"0.47680944",
"0.47639632",
"0.47622955"
] | 0.59086674 | 13 |
Overloaded killRobot to receive String as input. | public void killRobot(String robotType) {
if (robotType.toLowerCase().equals("scout")) {
killRobot(0);
} else if (robotType.toLowerCase().equals("sniper")) {
killRobot(1);
} else if (robotType.toLowerCase().equals("tank")) {
killRobot(2);
} else {
System.out.println("Invalid/unknown robot type.");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void kill();",
"public void kill();",
"protected abstract void doKill();",
"@Override \n public void commandKill(int id) {\n\n }",
"public void Kill();",
"@Override\n\tpublic void kill() {\n\n\t}",
"@Override\n public void kill()\n {\n }",
"void robotStop();",
"public final void kill() {\n doKill();\n }",
"public void stopEchoTester();",
"public void arm_kill() {\n arm_analog(0);\n }",
"public void stop (String message);",
"public void stopRobot(){\n LAM.setPower(0);\n RAM.setPower(0);\n ILM.setPower(0);\n IRM.setPower(0);\n BLM.setPower(0);\n BRM.setPower(0);\n FLM.setPower(0);\n FRM.setPower(0);\n }",
"public void cmdKill(User teller) {\n exit(3, \"Quitting at the request of {0}. Bye!\", teller);\n }",
"@Override\r\n public void executeCommand() {\r\n shell.stopRunning();\r\n }",
"public void killRobot(int robotType) {\r\n\t\trobots.get(robotType).setDead();\r\n\t\t++this.robotsDestroyed;\r\n\t}",
"void kill(long procid);",
"@Override protected void pathStop() {\r\n\r\n // stop your robot here\r\n\r\n }",
"public boolean kill(final String title, final String text) {\n\t\treturn AutoItXImpl.autoItX.AU3_WinKill(AutoItUtils.stringToWString(AutoItUtils.defaultString(title)),\n\t\t\t\tAutoItUtils.stringToWString(text)) == AutoItX.SUCCESS_RETURN_VALUE;\n\t}",
"protected void handleInput(String input) {}",
"public void agregarRobot(String nombre);",
"public void stopDriver();",
"void removeRobot(Position pos);",
"@Override\r\n protected void executeCommand(MyRobot robot) {\n }",
"public boolean kill(final String title) {\n\t\treturn kill(title, null);\n\t}",
"private static void go_stop()throws AWTException {\n\t\ttry{\r\n\t\t\t//Robot robot = new Robot();\r\n\r\n\t\t\trobot.keyPress(KeyEvent.VK_S);\r\n\t\t\trobot.keyPress(KeyEvent.VK_S);\r\n\t\t}\r\n\t\tcatch(IllegalArgumentException e1) {\r\n\t\t\tSystem.err.println(\"Use: java Renderer <Local IPAddress> <Localport> <Remote IPAddress> <Remote Port>\");\r\n\t\t}\r\n\r\n\t}",
"void unsetString();",
"void doKill() throws IOException\n\t{\n\t\tif (m_session == null)\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"programNotBeingRun\")); //$NON-NLS-1$\n\t\telse\n\t\t{\n\t\t\tif (yesNoQuery(getLocalizationManager().getLocalizedTextString(\"askKillProgram\"))) //$NON-NLS-1$\n\t\t\t\texitSession();\n\t\t}\n\t}",
"private void safeStop() {\n getRobotDrive().stop();\n //pneumatics.stop();\n }",
"abstract protected void cancelCommands();",
"public static void kill(long id) throws IOException {\n String command = \"kill -9\";\n if (isSoWindows()) {\n command = \"taskkill /F /PID\";\n }\n runCommandInSo(command + \" \" + id);\n }",
"public static void handle ( String input, JTextPane console ) {\r\n GUI.commandHistory.add ( input ) ;\r\n GUI.commandHistoryLocation = GUI.commandHistory.size ( ) ;\r\n\r\n GUI.write ( \"Processing... [ \"\r\n + console.getText ( ).replaceAll ( \"\\r\", \"\" ).replaceAll ( \"\\n\", \"\" )\r\n + \" ]\" ) ;\r\n console.setText ( \"\" ) ;\r\n\r\n input = input.replaceAll ( \"\\r\", \"\" ).replaceAll ( \"\\n\", \"\" ) ;\r\n try {\r\n if ( input.equalsIgnoreCase ( \"quit\" )\r\n || input.equalsIgnoreCase ( \"exit\" )\r\n || input.equalsIgnoreCase ( \"close\" ) ) {\r\n Core.fileLogger.flush ( ) ;\r\n System.exit ( 0 ) ;\r\n } else {\r\n final String inp[] = input.split ( \"(\\\\s)+\" ) ;\r\n if ( inp.length == 0 ) { return ; }\r\n final Class<?> cmdClass = Class.forName ( \"net.mokon.scrabble.cmd.CMD_\"\r\n + inp[ 0 ].toLowerCase ( ) ) ;\r\n final Constructor<?> cmdConstructor = cmdClass\r\n .getDeclaredConstructors ( )[ 0 ] ;\r\n final Command toRun = (Command) cmdConstructor.newInstance ( inp,\r\n console, Core.scrabbleBoard, Core.main, Core.moves,\r\n Core.scrabbleBoard.bag ) ;\r\n if ( inp[ 0 ].equalsIgnoreCase ( \"word\" ) ) {\r\n final Method method = cmdClass.getMethod ( \"setFrame\", JFrame.class ) ;\r\n method.invoke ( toRun, Core.showWorkingScreen ( ) ) ;\r\n }\r\n toRun.start ( ) ;\r\n }\r\n } catch ( final ClassNotFoundException e ) {\r\n GUI.write ( \"Unknown Command - Valid are [ help, word, use, draw,\"\r\n + \" place, set, unset, grid, size, fill, lookup ]\" ) ;\r\n } catch ( final Throwable e ) {\r\n GUI.write ( \"An error has been enountered [ \" + e.toString ( )\r\n + \" ]. Attempting to continue...\" ) ;\r\n e.printStackTrace ( ) ;\r\n e.printStackTrace ( Core.fileLogger ) ;\r\n }\r\n }",
"public void sendInput(String input) throws IOException {\n\t\tmShell.sendCommand(\"INPUT:\" + mStag + \":\" + input + \":\");\n\t}",
"public void killExecution() {\n \n \t\tcancelOrKillExecution(false);\n \t}",
"public void kill(int seq) throws IOException {\n\t\ttry {\n\t\t\tThread.sleep(300);\n\t\t} catch (InterruptedException ex) {\n\t\t\tLogger.getLogger(PacketSender.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\t\tSR.getFlyingPart(seq).setSelected(false);\n\t\tSR.getFlyingPart(seq).setY(0);\n\t\tSR.getFlyingPart(seq).setAck(false);\n\t\tSR.getFlyingPart(seq).setVisible(false);\n\t\tSR.getBufferSlotTimerReceiver(seq).startTimerTimeout(new TimerTask() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\n\t\t\t\ttry {\n\t\t\t\t\tSR.retransmit();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.out.println(\"Kill process failedat packet sender: \" +e);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tSR.repaint();\n\t}",
"public T caseRobot(Robot object) {\r\n\t\treturn null;\r\n\t}",
"public void robotDestroy() {\n }",
"public abstract void stop();",
"public abstract void stop();",
"public abstract void stop();",
"public abstract void stop();",
"public abstract void stop();",
"@Override\n\tpublic void stopWork() {\n\t\tSystem.out.println(\"Robot stopped working\");\n\t}",
"@Override\n public void onKill() {\n }",
"public ExitCommand(String input) {\n super(input);\n }",
"public void processInput(String text);",
"protected void kill() {\n disconnect = true;\n }",
"public void kill(int tk, int ts) {\n\t\tSystem.out.println(\"Total kills: \"+tk);\r\n\t\tSystem.out.println(\"Total Score: \"+ts);\r\n\t}",
"public void sendString(String string) throws RemoteException, IOException, InterruptedException;",
"abstract public void stop();",
"public boolean killAgent(String agName, String byAg, int deadline);",
"public Robot getRobot(String nombre);",
"public abstract void interagir (Robot robot);",
"public void type(String string) {\n\t\tthis.search.sendKeys(string);;\r\n\t}",
"public abstract void stopMsg();",
"public void kill()\n\t{\n\t\tisKilled = true;\n\t}",
"abstract protected String performAction(String input);",
"private void nativeKill()\n {\n if (process == null)\n {\n return;\n }\n for (Field f : process.getClass().getDeclaredFields())\n {\n if (\"pid\".equals(f.getName()))\n {\n if (makeFieldAccessible(f))\n {\n try\n {\n int pid = f.getInt(process);\n Runtime.getRuntime().exec(\n new String[] {\"kill\", \"-9\", Integer.toString(pid)});\n }\n catch (Throwable e)\n {\n // Ignore, we tried our best\n }\n }\n break;\n }\n else if (\"handle\".equals(f.getName()))\n {\n if (makeFieldAccessible(f))\n {\n try\n {\n long handleId = f.getLong(process);\n\n Kernel32 kernel = Kernel32.INSTANCE;\n HANDLE handle = new HANDLE();\n handle.setPointer(Pointer.createConstant(handleId));\n int pid = kernel.GetProcessId(handle);\n Runtime.getRuntime().exec(\n new String[] {\"taskkill\", \"/PID\", Integer.toString(pid), \"/F\"});\n }\n catch (Throwable e)\n {\n // Ignore, we tried our best\n }\n }\n break;\n }\n }\n }",
"public abstract void interagir(Robot robot);",
"public void run() {\n\t\t\t\t\t\tcmd.killProcess(deviceId, \"monkey\");\n\t\t\t\t\t}",
"public void run() {\n\t\t\t\t\t\tcmd.killProcess(deviceId, \"monkey\");\n\t\t\t\t\t}",
"public void kill() {\n this.hp = 0;\n }",
"public void stop() throws CoreHunterException;",
"protected void kill() {\n\t\tsetDeathTime(0.6);\n\t}",
"public void quit(String dummy) {\n System.exit(1);\n }",
"public void endCommand();",
"public void stopSending ();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void kill() {\n\t\tif (combox == null){\n\t\t\treturn;\n\t\t}\n\t\tPOPBuffer popBuffer = combox.getBufferFactory().createBuffer();\n\t\tMessageHeader messageHeader = new MessageHeader(0,\n\t\t\t\tMessageHeader.KILL_ALL, Semantic.SYNCHRONOUS);\n\t\tmessageHeader.setRequestID(requestID.incrementAndGet());\n\t\tpopBuffer.setHeader(messageHeader);\n\n\t\tpopDispatch(popBuffer);\n\t\ttry {\n\t\t\tPOPBuffer responseBuffer = combox.getBufferFactory().createBuffer();\n\t\t\tpopResponse(responseBuffer, messageHeader.getRequestID());\n\t\t} catch (POPException e) {\n\t\t\treturn;\n\t\t}\n\t}",
"public void killThread(String nodeName, String thingName) {\n String threadKey = null;\n if (!TextUtils.isEmpty(nodeName) && !TextUtils.isEmpty(thingName)) {\n threadKey = nodeName + \":\" + thingName;\n }\n if (!TextUtils.isEmpty(threadKey) && threadControl.containsKey(threadKey)) {\n threadControl.get(threadKey).stopThread();\n threadControl.remove(threadKey);\n }\n }",
"public void quitProgram(){}",
"public void terminateDriver() {\n }",
"public void kill() {\n this.server.stop();\n }",
"@Override\n\tpublic void execute(Robot robot) {\n\t}",
"public void kill() {\r\n \t\tthis.isDead = true;\r\n \t}",
"public void kill (String uuid, String version, MetaType execType) {\n\t\tBaseRuleExec baseRuleExec = null;\n\t\ttry {\n\t\t\tbaseRuleExec = (BaseRuleExec) commonServiceImpl.getOneByUuidAndVersion(uuid, version, execType.toString(), \"N\");\n\t\t} catch (JsonProcessingException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t\tif (baseRuleExec == null) {\n\t\t\tlogger.info(\"RuleExec not found. Exiting...\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tlogger.info(\"Before kill - Rule - \" + baseRuleExec.getUuid());\n\t\t\tsynchronized (baseRuleExec.getUuid()) {\n\t\t\t\tbaseRuleExec = (BaseRuleExec) commonServiceImpl.setMetaStatus(baseRuleExec, execType, Status.Stage.TERMINATING);\n\t\t\t\tif (!Helper.getLatestStatus(baseRuleExec.getStatusList()).equals(new Status(Status.Stage.TERMINATING, new Date()))) {\n\t\t\t\t\tlogger.info(\"Latest Status is not in TERMINATING. Exiting...\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tFutureTask<TaskHolder> futureTask = (FutureTask<TaskHolder>) taskThreadMap.get(execType+\"_\"+baseRuleExec.getUuid()+\"_\"+baseRuleExec.getVersion());\n\t\t\tif (futureTask != null) {\n\t\t\t\tfutureTask.cancel(true);\n\t\t\t}\n\t\t\tsynchronized (baseRuleExec.getUuid()) {\n\t\t\t\tcommonServiceImpl.setMetaStatus(baseRuleExec, execType, Status.Stage.KILLED);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.info(\"FAILED to kill. uuid : \" + uuid + \" version : \" + version);\n\t\t\ttry {\n\t\t\t\tsynchronized (baseRuleExec.getUuid()) {\n\t\t\t\t\tcommonServiceImpl.setMetaStatus(baseRuleExec, execType, Status.Stage.KILLED);\n\t\t\t\t}\n\t\t\t} catch (Exception e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\ttaskThreadMap.remove(execType+\"_\"+baseRuleExec.getUuid()+\"_\"+baseRuleExec.getVersion());\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void killThread(String threadName) {\n\t\tthis.toSlave.println(MasterProcessInterface.KILL_THREAD_COMMAND + ((threadName == null) ? \"\" : (\":\" + threadName)));\n\t\tif (threadName == null)\n\t\t\tthis.slave.destroy();\n\t}",
"public void kill()\r\n {\n if(isTouching(TopDownPlayer.class))\r\n {\r\n health(1);\r\n\r\n getWorld().removeObject(player);\r\n //getWorld().addObject (new Test(), 20, 20);\r\n\r\n }\r\n // if(healthCount >= 1)\r\n // {\r\n // World world;\r\n // world = getWorld();\r\n // getWorld().removeObject(player);\r\n // \r\n // getWorld().addObject (new Test(), 20, 20);\r\n // }\r\n }",
"public void killStarCraft() {\n\t\ttry {\t \t\t\r\n \t\tProcess kill = Runtime.getRuntime().exec(new String[] {\"TASKKILL\", \"/IM\", \"StarCraft.exe\"});\r\n \t\tkill.waitFor();\r\n \t\tSystem.out.println(\"StarCraft exit code: \" + kill.exitValue());\r\n \t\tThread.sleep(5000);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\t\t\t\r\n\t}",
"void unlockDoor(String s) {\n }",
"public void stop() {}",
"String cancelHarvesting(String dsID) throws RepoxException;",
"@Override\n\tpublic void stopMachine() {\n\t\t\n\t}",
"private void inputHandler(String input) throws Exception{\n\n switch (input) {\n\n case \"/quit\":\n done = true;\n break;\n\n default:\n PduMess mess = new PduMess(input);\n outStream.writeToServer(mess.getByteArray());\n break;\n }\n }",
"@Override\n public void userStoppedTyping(){\n }",
"void stopHelloSender();"
] | [
"0.62453204",
"0.62453204",
"0.6059961",
"0.60104775",
"0.5796582",
"0.5795734",
"0.5791517",
"0.56604093",
"0.55348253",
"0.54951626",
"0.54883784",
"0.5272203",
"0.527157",
"0.5246611",
"0.52260923",
"0.5224533",
"0.5221546",
"0.51986796",
"0.5167746",
"0.51608926",
"0.51220036",
"0.509817",
"0.50875705",
"0.5086695",
"0.50866383",
"0.5080334",
"0.5021307",
"0.5018581",
"0.50132567",
"0.5000935",
"0.4987331",
"0.49751708",
"0.49598104",
"0.49356574",
"0.492174",
"0.49165842",
"0.4914498",
"0.49007863",
"0.49007863",
"0.49007863",
"0.49007863",
"0.49007863",
"0.48845977",
"0.4875043",
"0.48703337",
"0.4852953",
"0.48469678",
"0.48251176",
"0.482139",
"0.48125345",
"0.480827",
"0.47879037",
"0.47822568",
"0.47753656",
"0.47632733",
"0.4757021",
"0.47353318",
"0.47341403",
"0.47298488",
"0.47270125",
"0.47270125",
"0.47099096",
"0.47068292",
"0.47066015",
"0.46977246",
"0.46915776",
"0.46725067",
"0.46722695",
"0.46722695",
"0.46722695",
"0.46722695",
"0.46722695",
"0.46722695",
"0.46722695",
"0.46722695",
"0.46722695",
"0.46722695",
"0.46722695",
"0.46722695",
"0.46722695",
"0.46722695",
"0.46722695",
"0.46712005",
"0.4652542",
"0.4651212",
"0.46465102",
"0.4643401",
"0.4638369",
"0.46310103",
"0.46087983",
"0.45906162",
"0.45747003",
"0.45698172",
"0.45647138",
"0.45498317",
"0.45495045",
"0.45429477",
"0.45371613",
"0.4536387",
"0.4535684"
] | 0.6200231 | 2 |
Refreshes the movement points of all robots. | public void refreshRobots() {
for (Robot curRobot : this.robots) {
if (curRobot.isAlive()) {
curRobot.setMovement(refSheet.getMovement(curRobot.getType()));
curRobot.setFired(false);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void refresh() {\n \t\tphysics.physik();\n \t\tcycleTest();\n \t}",
"private void recalculateAllRoutes() {\n robotModels.parallelStream().forEach(m -> m.recalculateRoute(target, obstacles));\n }",
"private void moveRobots() {\n\t\tfor(Player p : playerList) {\n\t\t\tif(p.getType() == Player.PlayerType.Robot) {\n\t\t\t\tPoint old = new Point(p.getX(), p.getY());\n\t\t\t\tPoint newPoint = new Point(p.getX(), p.getY());\n\t\t\t\t\n\t\t\t\toccupiedPositions.remove(old);\n\t\t\t\t\n\t\t\t\tint playerX = p.getPlayerToFollow().getX();\n\t\t\t\tint playerY = p.getPlayerToFollow().getY();\n\t\t\t\t\n\t\t\t\t//move towards the agent\n\t\t\t\tif(p.getX() < playerX)\n\t\t\t\t\tnewPoint.x += 1;\n\t\t\t\telse if(p.getX() > playerX)\n\t\t\t\t\tnewPoint.x -= 1;\n\t\t\t\t\n\t\t\t\tif(p.getY() < playerY)\n\t\t\t\t\tnewPoint.y += 1;\n\t\t\t\telse if(p.getY() > playerY)\n\t\t\t\t\tnewPoint.y -= 1;\n\t\t\t\t\n\t\t\t\tp.setPosition(newPoint);\n\t\t\t\t\n\t\t\t\t//check if the robot has moved on to something\n\t\t\t\tif(occupiedPositions.contains(newPoint)) { \t\t// check if the position is occupied\n\t\t\t\t\tfor(Player p2 : playerList) { \t\t\t\n\t\t\t\t\t\tif(!p.getName().equals(p2.getName())) {\t// check so it not is the robot itself\n\t\t\t\t\t\t\tif(newPoint.equals(p2.getPosition())) {\n\t\t\t\t\t\t\t\tif(p2.getType() == PlayerType.Robot) { // if it is a robot, both should be rubble\n\t\t\t\t\t\t\t\t\tp2.setType(PlayerType.Rubble);\n\t\t\t\t\t\t\t\t\tp2.getPlayerToFollow().decreaseRobotsFollowing();\n\t\t\t\t\t\t\t\t\tp.setType(PlayerType.Rubble);\n\t\t\t\t\t\t\t\t\tp.getPlayerToFollow().decreaseRobotsFollowing();\n\t\t\t\t\t\t\t\t\tHandleCommunication.broadcastToClient(null, server.getConnectedClientList(), SendSetting.ChangedType, p.getName(), p2.getName());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(p2.getType() == PlayerType.Rubble) { // if it is rubble\n\t\t\t\t\t\t\t\t\tp.setType(PlayerType.Rubble);\n\t\t\t\t\t\t\t\t\tp.getPlayerToFollow().decreaseRobotsFollowing();\n\t\t\t\t\t\t\t\t\tHandleCommunication.broadcastToClient(null, server.getConnectedClientList(), SendSetting.ChangedType, p.getName(), p2.getName());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if(p2.getType() == PlayerType.Agent) {\n\t\t\t\t\t\t\t\t\tString send = generateSendableHighscoreList();\n\t\t\t\t\t\t\t\t\tserver.sendMessageToClient(p2.getName(), \"@132@\" + highscore.size() + \"@\" + send);\n\t\t\t\t\t\t\t\t\tserver.addTextToLoggingWindow(\"Robot killed player (\" + p2.getName() + \")\");\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\toccupiedPositions.add(newPoint);\n\t\t\t\tserver.broadcastToClient(p.getName(), SendSetting.PlayerMoved, old, newPoint);\n\t\t\t}\t\n\t\t}\n\t\t\n\t\t//send that it is agents turn again\n\t\tserver.broadcastToClient(null, SendSetting.AgentsTurnToMove, null, null);\n\t}",
"public void refreshAll() {\n\t\tdrawingPanel.repaint();\n\t}",
"public void refresh(){\n getDpad();\n \tgetLeftStick();\n \tgetRightStick();\n \tgetTrigger();\n \tgetButtons();\n }",
"private void reload() {\n if (running == false) {\n agentsOnSpawn = new String[][]{{\"random\", \"random\", \"random\"}, {\"random\", \"random\", \"random\"}, {\"random\", \"random\", \"random\"}};\n PlayerPanel.reset();\n playersAgentsMap.clear();\n agentList.clear();\n playerCount = 0;\n playerList.removeAll();\n iPlayerList.entrySet().forEach((pair) -> {\n IPlayer player = pair.getValue();\n try {\n player.setPoints(0);\n player.resetStrategy();\n addNewAgent(player, player.getStrategy());\n } catch (RemoteException ex) {\n Logger.getLogger(ServerFrame.class.getName()).log(Level.SEVERE, null, ex);\n }\n });\n\n }\n\n }",
"public void refreshMovementSpeed(){\n\t\tif(orientation==ORIENTATION.RIGHT) moveRight();\n\t\telse if(orientation==ORIENTATION.LEFT) moveLeft();\n\t\telse if(orientation==ORIENTATION.UP) moveUp();\n\t\telse if(orientation==ORIENTATION.DOWN) moveDown();\n\t}",
"public void update(){\r\n\t\tList<Point> list = new ArrayList<Point>();\r\n\t\t\r\n\t\tlist.addAll(Arrays.asList(points));\r\n\t\t\r\n\t\tsetPoints(list);\r\n\t}",
"public void update() {\n\t\t\n\t\t// Calculating all forces to apply to the physics shapes\n\t\tArrayList<Object[]> forces = new ArrayList<Object[]>();\n\t\tfor(PhysicsShape shape : shapes) {\n\t\t\tfor(PhysicsShape shape2 : shapes) {\n\t\t\t\tif(!(shape == shape2))\n\t\t\t\t\tforces.addAll(shape.allForcesFromShape(shape2));\n\t\t\t}\n\t\t}\n\n\t\t// Adding force of gravity to each shape, directly downward.\n\t\tfor(PhysicsShape shape : shapes) {\n\t\t\tif(!shape.equals(ground))\n\t\t\t\tforces.add(new Object[] {shape, shape.getX(), shape.getY(), shape.getMass() * 9.81f, 0 - (float) (Math.PI / 2.0) } );\n\t\t}\n\t\t\n\t\t// tester, applies sideways force to the left\n\t\tif(shapes.get(1).getY() == 200.0f) {\n\t\t\tforces.add(new Object[] {shapes.get(1), 300f, 125f, 1000f, (float) Math.PI});\n\t\t}\n\t\t\n\t\t// Applying each force to the shapes to set new vX, vY and omega values for this tick.\n\t\t// Force array is in format [PhysicsShape, x, y, magnitude, direction]\n\t\tfor(Object[] force : forces) {\n\t\t\t\n\t\t\tPhysicsShape shape = (PhysicsShape) force[0];\n\t\t\tfloat x = (float) force[1];\n\t\t\tfloat y = (float) force[2];\n\t\t\tfloat magnitude = (float) force[3];\n\t\t\tfloat direction = (float) force[4];\n\t\t\t\n\t\t\tshape.applyForce(x, y, magnitude, direction);\n\t\t}\n\t\t\n\t\t// Tells each PhysicsShape to move one tick forwards with the new vX, vY and omega values\n\t\tfor(PhysicsShape shape : shapes) {\n\t\t\tshape.act();\n\t\t}\n\t\t\n\t}",
"protected void refresh()\n {\n refresh(System.currentTimeMillis());\n }",
"public void update() {\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < columns; j++) {\n Point point = getPointAtLocation(i, j);\n WorldItem item = point.getContainedItem();\n calculatePointTemp(point);\n point.update();\n if (item instanceof FlammableItem) {\n updateIgnition(point);\n } else if (item instanceof SimulatedSensor) {\n updateAlarm(point);\n }\n }\n }\n }",
"public void resetAll() {\r\n for (PropertyChangeListener pcl : pcs.getPropertyChangeListeners()) {\r\n pcs.removePropertyChangeListener(pcl);\r\n }\r\n GameInfo.getInstance().init();\r\n MazeMap.getInstance().init();\r\n addListener(Constants.MAZE, MazeMap.getInstance());\r\n addListener(Constants.GAMEINFO, GameInfo.getInstance());\r\n PacMan pacMan = initPacMan();\r\n initGhosts(pacMan);\r\n }",
"public void moveObjsToGoals() {\n\t\tMap<Integer, MovingFObject> map = sc.getInitPos();\r\n\t\tfor(int i = 0; i < map.size(); i++) {\r\n\t\t\tMovingFObject temp = map.get(i);\r\n\t\t\tsc.moveAtVelAtTimeToLoc(i, sc.getMaxVelocity(), 0, (Location)temp.getGoal());\r\n\t\t}\r\n\t}",
"public void refresh() {\n\t\t\tif(keys[KeyEvent.VK_RIGHT]){//if it is to the right, the sliderVX is 1\n\t\t\t\tsliderVX = 1;\n\t\t\t\t//System.out.println(\"Called\");\n\t\t\t}\n\t\t\telse if(keys[KeyEvent.VK_LEFT]){//if it moves to the left, it is -1\n\t\t\t\tsliderVX =- 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsliderVX = 0;//not moving = 0\n\t\t\t}\n\t\t\t\n\t\t}",
"public void reassignAllAgents() {\n\t\tPoint safePosition = null;\n\t\tfor(Player p : playerList) {\n\t\t\tif(p.getType() == PlayerType.Agent) {\n\t\t\t\tremovePosition(p.getPosition());\n\t\t\t\tsafePosition = getSafeTeleportPosition();\n\t\t\t\tp.setPosition(safePosition);\n\t\t\t\toccupiedPositions.add(safePosition);\n\t\t\t}\n\t\t}\n\t}",
"public void update()\r\n {\n for (MapObject mo : gameData.getMap().getObjects())\r\n {\r\n mo.getAI().advance();\r\n }\r\n \r\n // update the UI\r\n for (UIElement uiEl : ui.getUIElements())\r\n {\r\n uiEl.update();\r\n }\r\n\r\n // Move the map objects\r\n movHandler.moveObjects();\r\n\r\n // Refresh the screen position\r\n Player player = gameData.getPlayer();\r\n this.centerScreen((int) player.getX() + Tile.TILESIZE / 2, (int) player.getY() + Tile.TILESIZE / 2);\r\n }",
"protected void refreshAll() {\n refreshProperties();\n\t}",
"private void update()\r\n\t{\r\n\t\tfor (Agent agent : agents)\r\n\t\t{\r\n\t\t\tint i = agent.getIndex();\r\n\t\t\tp.setEntry(i, agent.getP());\r\n\t\t\tq.setEntry(i, agent.getQ());\r\n\t\t\tvabs.setEntry(i, agent.getVabs());\r\n\t\t\tvarg.setEntry(i, agent.getVarg());\r\n\t\t\tlambdaP.setEntry(i, agent.getLambdaP());\r\n\t\t\tlambdaQ.setEntry(i, agent.getLambdaQ());\r\n\t\t}\r\n\t}",
"public static void updatePositions() {\n\t\tfor(Square s1 : ChessBoard.BOARD_SQUARES) {\n\t\t\tif(s1.hasPiece()) {\n\t\t\t\t(s1.getPiece()).setPosition(s1.getPosition());\n\t\t\t\t(s1.getPiece()).updatePossibleMoves();\n\t\t\t}\n\t\t}\n\t}",
"public void update()\n {\n if (frames_since_update++ < UPDATE_AFTER_FRAMES)\n return;\n frames_since_update = 0;\n\n //For each vehicle in the world, determine which station is the closest.\n Actor[] actors = world.getActors();\n for (Actor actor: actors)\n {\n if (!(actor instanceof Vehicle))\n continue;\n Vehicle vehicle = (Vehicle) actor;\n\n //Iterate over each station until the closest one is found.\n Station closest_station = null;\n float closest_station_distance = Float.MAX_VALUE;\n for (Station station : stations)\n {\n if (station == null)\n continue;\n\n float new_distance = vehicle.distance(station);\n if (new_distance < closest_station_distance)\n {\n closest_station = station;\n closest_station_distance = new_distance;\n }\n }\n\n vehicle.setClosestStation(closest_station);\n }\n }",
"@Override\n public void periodic() {\n m_odometry.update(\n Rotation2d.fromDegrees(m_gyro.getAngle()),\n new SwerveModulePosition[] {\n m_frontLeft.getPosition(),\n m_frontRight.getPosition(),\n m_rearLeft.getPosition(),\n m_rearRight.getPosition()\n });\n }",
"public void update() {\n\t\tfor (GameObject gameObject : objects) {\n\t\t\tgameObject.update();\n\t\t}\n\t}",
"public void updateObjects()\r\n {\r\n //update states\r\n for (Ball ball : balls) {\r\n \tif(ball!=null)\r\n \t{\r\n\t \tif(ball.GetVisible()) ball.MoveDown();\r\n\r\n \t}\r\n \telse ball=null;\r\n }\r\n \r\n }",
"public void refreshPosition() {\n\n this.setTransform(getTransform());\n }",
"public void update(){\n\t\tint lasers[] = new int[activePointers()];\n\t\tPVector positions[] = new PVector[activePointers()];\n\t\tfor (int i = 0; i < activePointers(); i++) {\n\t\t\tpositions[i].set(parent.mouseX,parent.mouseY);\n\t\t\tlasers[i] = pointers.get(i).laser;\n\t\t}\n\n\t\tupdate( positions, lasers);\n\t}",
"public void Obstaclemove() {\n for (int i = 0; i < getNumberObstacles(); i++) {\n if (ObstacleDeplace.class.isInstance(getObstacle()[i])) {\n getObstacle()[i].setX(getObstacle()[i].getX() - getObstacle()[i].getSpeed());\n\n if (getObstacle()[i].getX() < -200) {\n getObstacle()[i].setX(600);\n getObstacle()[i].setSpeed(randomGenerator.nextFloat());\n }\n }\n setChanged();\n notifyObstacle(i, getObstacle()[i].getX(), getObstacle()[i].getY());\n }\n }",
"private synchronized void refresh() {\n \t\t\tlastChangeStamp = changeStamp;\n \t\t\tlastFeaturesChangeStamp = featuresChangeStamp;\n \t\t\tlastPluginsChangeStamp = pluginsChangeStamp;\n \t\t\tchangeStampIsValid = false;\n \t\t\tfeaturesChangeStampIsValid = false;\n \t\t\tpluginsChangeStampIsValid = false;\n \t\t\tfeatures = null;\n \t\t\tplugins = null;\n \t\t}",
"@Override\n\tpublic void teleopPeriodic() {\n\t\tm_robotDrive.driveCartesian(m_stick.getX(), m_stick.getY(),\n\t\t\t\tm_stick.getZ(), 0.0);\n\t}",
"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}",
"public void update()\n\t{\n\t\tif(currentState == moving)\n\t\t{\n\t\t\tx += xSpeed;\n\t\t\ty += ySpeed;\n\t\t\t\n\t\t\tif(x < 0 || x > world.getSIMULATION_WIDTH() - individualSize)\n\t\t\t\trandomizeDirection();\n\t\t\tif(y < 0 || y > world.getSIMULATION_HEIGHT() - individualSize)\n\t\t\t\trandomizeDirection();\n\t\t\t\n\t\t\tif(x < 0)\n\t\t\t\tx = 0;\n\t\t\tif(x > world.getSIMULATION_WIDTH() - individualSize)\n\t\t\t\tx = world.getSIMULATION_WIDTH() - individualSize;\n\t\t\t\n\t\t\tif(y < 0)\n\t\t\t\ty = 0;\n\t\t\tif(y > world.getSIMULATION_HEIGHT() - individualSize)\n\t\t\t\ty = world.getSIMULATION_HEIGHT() - individualSize;\n\t\t}\n\t\tfor(PlayPauseTimer timer: timerList)\n\t\t\ttimer.update();\n\t\tworld.locationUpdate(this);\n\t}",
"public void move() {\n\t\tmoveX();\n\t\tmoveY();\n\t}",
"public void moveAllAgents() {\n\t\tPoint moveTo \t\t= null;\n\t\tGameClient client \t= null;\n\t\t\n\t\tfor(Player p : playerList) {\n\t\t\tif(p.getType() == PlayerType.Agent) {\n\t\t\t\tclient = HandleCommunication.findClient(p.getName(), server.getConnectedClientList());\n\t\t\t\tmoveTo = getSafeTeleportPosition();\n\t\t\t\tmovePlayer(p.getName(), p.getPosition(), moveTo, false);\n\t\t\t\tserver.sendMessageToClient(client.getClientSocket(), \"@124@\" + moveTo.x + \"@\" + moveTo.y + \"@\");\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void update() {\n\t\tmove();\n\t\tplace();\n\t}",
"private void updateSensors()\r\n\t{\t\t\r\n\t\tthis.lineSensorRight\t\t= perception.getRightLineSensor();\r\n\t\tthis.lineSensorLeft \t\t= perception.getLeftLineSensor();\r\n\t\t\r\n\t\tthis.angleMeasurementLeft \t= this.encoderLeft.getEncoderMeasurement();\r\n\t\tthis.angleMeasurementRight \t= this.encoderRight.getEncoderMeasurement();\r\n\r\n\t\tthis.mouseOdoMeasurement\t= this.mouseodo.getOdoMeasurement();\r\n\r\n\t\tthis.frontSensorDistance\t= perception.getFrontSensorDistance();\r\n\t\tthis.frontSideSensorDistance = perception.getFrontSideSensorDistance();\r\n\t\tthis.backSensorDistance\t\t= perception.getBackSensorDistance();\r\n\t\tthis.backSideSensorDistance\t= perception.getBackSideSensorDistance();\r\n\t}",
"public void refresh() {\n\t\tscroll.refresh();\n\n\t}",
"private void update() {\n gsm.update();\n }",
"@Override\n public void robotPeriodic() {\n }",
"@Override\n public void robotPeriodic() {\n }",
"@Override\n public void robotPeriodic() {\n }",
"@Override\n public void robotPeriodic() {\n }",
"@Override\n public void robotPeriodic() {\n }",
"@Override\n public void robotPeriodic() {\n }",
"private void refreshView() {\n this.view.updateRobots();\n }",
"public void refreshBoard(final ShipType ships[][], final ShotField shots[][]) {\n shotsBoard = shots;\n shipsBoard = ships;\n repaint();\n }",
"public void refresh() {\n\t\t\n\t\t// init\n\t\tthis.refreshInit();\n\t\t\n\t\t// composite events refresh\n\t\tfor ( EventsProviderAbstract composite : this.getEventsProviders()) {\n\t\t\tcomposite.refreshEvents();\n\t\t}\n\t\t\n\t\t// provided events\n\t\tthis.refreshProvidedEvents();\n\t\t\n\t\t// event sequence (and moments)\n\t\tfor ( DistributionEvent event : this.getProvidedEvents()) {\n\t\t\tevent.refreshMoment();\n\t\t}\n\t\tthis.refreshSequence();\n\t\t\n\t\t// slope\n\t\tfor ( DistributionEvent event : this.getSequenceEvents()) {\n\t\t\tif ( event instanceof SlopeAbsolute ) {\n\t\t\t\tSlopeAbsolute slope_absolute = (SlopeAbsolute)event;\n\t\t\t\tslope_absolute.refreshSlopeAbsolute();\n\t\t\t} else if ( event instanceof SlopeDelta) {\n\t\t\t\tSlopeDelta slope_delta = (SlopeDelta)event;\n\t\t\t\tslope_delta.refreshSlopeDelta();\n\t\t\t}\n\t\t\tevent.refreshSlopeBefore();\n\t\t\tevent.refreshSlopeAfter();\n\t\t}\n\t\t\n\t\t// amounts\n\t\tfor ( DistributionEvent event : this.getSequenceEvents()) {\n\t\t\tif ( event instanceof AmountAbsolute ) {\n\t\t\t\tAmountAbsolute amount_absolute = (AmountAbsolute)event;\n\t\t\t\tamount_absolute.refreshAmountAbsolute();\n\t\t\t} else if ( event instanceof AmountDelta) {\n\t\t\t\tAmountDelta amount_delta = (AmountDelta)event;\n\t\t\t\tamount_delta.refreshAmountDelta();\n\t\t\t}\n\t\t\tevent.refreshAmountBefore();\n\t\t\tevent.refreshAmountAfter();\n\t\t}\n\t}",
"public void autonomousPeriodic() {\n // RobotMap.helmsman.trackPosition();\n Scheduler.getInstance().run();\n }",
"public void move() {\n for (int i = 0; i < Vampiro.getNumVamp(); i++) {\n\n lista[i].move();\n }\n }",
"public void update() {\n\t\tmrRoboto.move();\n\t\tobsMatrix.updateSensor(mrRoboto.x, mrRoboto.y);\n\t\thmm.updateProb(obsMatrix.getSensorReading());\n\t}",
"public void update()\n\t{\n\t\tgameTime++;\n\t\tfor(int i = 0; i<gameObj.length; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < gameObj[i].size(); j++)\n\t\t\t{\n\t\t\t\t/*If the object implements movable\n\t\t\t\t * call the move method in each object\n\t\t\t\t */\n\t\t\t\tif(gameObj[i].get(j) instanceof Imovable)\n\t\t\t\t\t((MovableObject)gameObj[i].get(j)).move();\n\t\t\t\t/*call CheckBlink() method in SpaceStation\n\t\t\t\t * if the time % blinkRate == 0\n\t\t\t\t * the visibility with be switched\n\t\t\t\t */\n\t\t\t\tif(gameObj[i].get(j) instanceof SpaceStation)\n\t\t\t\t\t((SpaceStation)gameObj[i].get(j)).checkBlink(gameTime);\n\t\t\t\t/*check if missiles are out of fuel\n\t\t\t\tand remove if fuel = 0\n\t\t\t\t*/\n\t\t\t\tif(gameObj[i].get(j) instanceof Missile)\n\t\t\t\t\tif(((Missile)gameObj[i].get(j)).getFuel() <= 0)\n\t\t\t\t\t\tgameObj[i].remove(j);\n\t\t\t}\n\t\t}\t\t\n\t\tSystem.out.println(\"World updated\");\n\t}",
"public void move()\n\t{\n time++;\n\t\tif (time % 10 == 0)\n\t\t{\n\t\t\thistogramFrame.clearData();\n\t\t}\n\t\tfor (int i = 0; i < nwalkers; i++)\n\t\t{\n\t\t\tdouble r = random.nextDouble();\n\t\t\tif (r <= pRight)\n\t\t\t{\n\t\t\t\txpositions[i] = xpositions[i] + 1;\n\t\t\t}\n\t\t\telse if (r < pRight + pLeft)\n\t\t\t{\n\t\t\t\txpositions[i] = xpositions[i] - 1;\n\t\t\t}\n\t\t\telse if (r < pRight + pLeft + pDown)\n\t\t\t{\n\t\t\t\typositions[i] = ypositions[i] - 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\typositions[i] = ypositions[i] + 1;\n\t\t\t}\n\t\t\tif (time % 10 == 0)\n\t\t\t{\n\t\t\t\thistogramFrame.append(Math.sqrt(xpositions[i] * xpositions[i]\n\t\t\t\t\t\t+ ypositions[i] * ypositions[i]));\n\t\t\t}\n\t\t\txmax = Math.max(xpositions[i], xmax);\n\t\t\tymax = Math.max(ypositions[i], ymax);\n\t\t\txmin = Math.min(xpositions[i], xmin);\n\t\t\tymin = Math.min(ypositions[i], ymin);\n\t\t}\n\t}",
"public void refresh() {\n\t\tdisp.refresh();\n\t\tdisp.repaint();\n\t}",
"public void update()\n {\n //Update the asteroids\n for (int i = 0; i < numAsteroids; i++)\n {\n asteroids[i].update(i);\n }\n }",
"public void update() {\n\t\toldButtons = currentButtons;\n\t\tcurrentButtons = DriverStation.getInstance().getStickButtons(getPort());\n\t\tif (axisCount != DriverStation.getInstance().getStickAxisCount(getPort())) {\n\t\t\taxisCount = DriverStation.getInstance().getStickAxisCount(getPort());\n\t\t\toldAxis = new double[axisCount];\n\t\t\tcurrentAxis = new double[axisCount];\n\t\t}\n\t\tif (povCount != DriverStation.getInstance().getStickPOVCount(getPort())) {\n\t\t\tpovCount = DriverStation.getInstance().getStickPOVCount(getPort());\n\t\t\toldPOV = new int[povCount];\n\t\t\tcurrentPOV = new int[povCount];\n\t\t}\n\t\toldAxis = currentAxis;\n\t\tfor (int i = 0; i < axisCount; i++) {\n\t\t\tcurrentAxis[i] = DriverStation.getInstance().getStickAxis(getPort(), i);\n\t\t}\n\n\t\toldPOV = currentPOV;\n\t\tfor (int i = 0; i < povCount; i++) {\n\t\t\tcurrentPOV[i] = DriverStation.getInstance().getStickPOV(getPort(), i);\n\t\t}\n\t}",
"private void updatePointSpeeds() {\n\t\tfor (int i = 0; i < locations.size(); i++) {\n\t\t\tLocationStructure loc = locations.get(i);\t\t\n\t\t\tDouble dist = Double.MIN_VALUE;\n\t\t\tDouble lat1 = loc.getLatitude().doubleValue();\n\t\t\tDouble lon1 = loc.getLongitude().doubleValue();\n\t\t\t\n\t\t\tDate d = times.get(i);\n\t\t\t\n\t\t\tif( i+1 < locations.size()) {\n\t\t\t\tloc = locations.get(i+1);\n\t\t\t\tDouble lat2 = loc.getLatitude().doubleValue();\n\t\t\t\tDouble lon2 = loc.getLongitude().doubleValue();\n\t\t\t\tdist = calculateDistance(lat1, lon1, lat2, lon2);\n\t\t\t\t\n\t\t\t\tDate d1 = times.get(i+1);\n\t\t\t\tDateTime dt1 = new DateTime(d);\n\t\t\t\tDateTime dt2 = new DateTime(d1);\n\t\t\t\tint seconds = Seconds.secondsBetween(dt1, dt2).getSeconds();\t\t\t\n\t\t\t\tDouble pd = (dist/seconds)*60;\n\t\t\t\tif(!pd.isNaN()) {\n\t\t\t\t\tpointSpeed.add(pd);\t\t\n\t\t\t\t\tSystem.out.println(\"BUS STATE-- Added point speed of \"+ (dist/seconds)*60 + \" for \" +this.vehicleRef);\n\t\t\t\t}\n\t\t\t} else break;\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public void refresh() {\n\t\tdrawingPanel.repaint();\n\t}",
"@Override\n\t\tpublic void updateVariables(){\n\t\t\tthis.currentX = odometer.getCurrentX();\n\t\t\tthis.currentY = odometer.getCurrentY();\n\t\t\tthis.currentAngle = odometer.getHeadingAngle();\n\t\t\tthis.currentAverageVelocity = odometer.getCurrentAverageVelocity();\n\t\t}",
"@Override\n public void robotPeriodic() {\n // Runs the Scheduler. This is responsible for polling buttons, adding newly-scheduled\n // commands, running already-scheduled commands, removing finished or interrupted commands,\n // and running subsystem periodic() methods. This must be called from the robot's periodic\n // block in order for anything in the Command-based framework to work.\n CommandScheduler.getInstance().run();\n getRobotContainer().getTecbotSensors().sensorsPeriodic();\n }",
"public void move(){\n super.move();\n load.updateCoordinates(this.x,this.y);\n }",
"public void enleverTousLesObs() {\n\n\t\tobstaclesList.removeAll(obstaclesList);\n\t}",
"private void move() {\n acceleration.accelerate(velocity, position);\r\n }",
"private void refresh() {\n updatePopulationInfo();\n\n // Update current production info\n updateProductionInfo();\n\n // Update the building grid\n updateBuildingInfo();\n\n // Update the warehouse display\n updateWarehouse();\n\n // Update the list of ships/carriers in port\n updateInPortInfo();\n\n // Update the list of cargo on the selected carrier\n updateCargoInfo();\n }",
"@Override\n public void robotPeriodic() {\n putTelemetry();\n }",
"public void refresh()\n {\n refresh( null );\n }",
"public void refreshAll(){\n\t\tNodeController.getNodeController().refreshHubVMintrfces();\n\t\tdraw(canvas, contextMenu);\n\t\tConfigFile.writeOutput(outputConfig);\n\t}",
"void moveVehicles() {\n for (int i = roads.size() - 1; i >= 0; i--) {\n roads.get(i).moveVehicles();\n checkTurns(i);\n\n\n }\n\n }",
"public void update( int[] lasers ){\n\t\tPVector positions[] = new PVector[activePointers()];\n\t\t//for (int i = 0; i < activePointers(); i++) {\n\t\tfor (int i = 0; i < pointers.size(); i++) {\n\t\t\tfloat _x = pointers.get(i).x;\n\t\t\tfloat _y = pointers.get(i).y;\n\t\t\t//System.out.println(\"pointer \" + i + \": position:\" + _x + \",\" + _y );\n\t\t\tpositions[i] = new PVector(_x,_y);\n\t\t}\n\t\tupdate( positions, lasers, false); //retransmiting position with no transformation\n\t}",
"private void refreshMouseMap() {\r\n Point currentMousePos = MouseInfo.getPointerInfo().getLocation();\r\n int iMax = 5;\r\n this.mousePositions.clear();\r\n for (int i = 0; i < iMax; i++)\r\n this.mousePositions.add(currentMousePos);\r\n }",
"@Override\n\tpublic void robotPeriodic() {\n\t}",
"@Override\n\tpublic void robotPeriodic() {\n\t}",
"private void notificarSensores() {\n\t\tmvmSensorsObservers.forEach(sensorObserver -> sensorObserver.update());\n\t}",
"public void resetNewDirBots() {\r\n \r\n this.north = new BotSimpleDirection(this.getBoard(), BotSimpleDirection.DIR_NORTH);\r\n this.south = new BotSimpleDirection(this.getBoard(), BotSimpleDirection.DIR_SOUTH);\r\n this.east = new BotSimpleDirection(this.getBoard(), BotSimpleDirection.DIR_EAST);\r\n this.west = new BotSimpleDirection(this.getBoard(), BotSimpleDirection.DIR_WEST);\r\n \r\n // At this point, we can do a clone\r\n this.initDirBotMove(north);\r\n this.initDirBotMove(south);\r\n this.initDirBotMove(east);\r\n this.initDirBotMove(west);\r\n }",
"private void notifyidiots() {\n\t\tfor(Observ g:obslist) {\n\t\t\tg.update();\n\t\t}\n\t}",
"public void update() {\n\t\tupdateController();\n\t\tupdateTimer();\n\t\tupdateTrifecta();\n\t\tupdateGyro();\n\t\tupdateGameTime();\n\t\t//updateTilt();\n\t}",
"public void updateSprites() {\n this.model.getSprites().values().forEach(x -> x.setPosition(this.x, this.y));\n }",
"public void refresh() {\r\n\t\tinit();\r\n\t}",
"public void refresh() {\n\n odp.refresh();\n\n\n }",
"@Override\n public void run() {\n updateMovement();\n }",
"public void update() {\n\t\tupdateParticles();\n\t\tupdateSprings();\n\n\t\tif (groups != null) {\n\t\t\tfor (VParticleGroup g : groups) {\n\t\t\t\tg.update();\n\t\t\t}\n\t\t}\n\t}",
"public static void resetAll() {\n\t\tfor (int x = 0; x < mSensors.size(); x++) {\n\t\t\tmSensors.get(x).reset();\n\t\t}\n\t}",
"private void updatePosition(){\n updateXPosition(true);\n updateYPosition(true);\n }",
"public void tick() {\n\t\tfor(GameObject object : gameObject) {\n\t\t\tif(object instanceof Opponents) {\n\t\t\t\t((Opponents) object).move(tickTime);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Game has advanced by \" + tickTime + \" ms = \" + tickTime/1000 + \" ticks.\");\n\t}",
"private void updateVehicles() {\n OffloaderSyncAdapter.syncImmediately(getContext());\n Log.w(LOG_TAG, \"updateVehicles: \");\n }",
"public void update()\n\t{\n\t\tfor(Block b:blocks1)\n\t\t{\n\t\t\tb.movement();\n\t\t}\n\t\taddOne();\n\t}",
"public void refresh(){\n\t\tint i=0;\n\t\tEntity editedEntity=getEditedEntity();\n\t\tfor(FloatTrait t:swat.dk.getTraits(tt)){\n\t\t\t((Swat.Slider)((JComponent)slidersPanel.getComponent(i)).getComponent(1)).mSetValue(toSlider(getValue(editedEntity,t)));\n\t\t\ti++;\n\t\t}\n\t}",
"void resetGame() {\r\n if (GameInfo.getInstance().isWin()) {\r\n GameInfo.getInstance().resetDots();\r\n MazeMap.getInstance().init();\r\n GameInfo.getInstance().resetFruitDisappearTime();\r\n MazeMap.getInstance().updateMaze(GameInfo.getInstance().getMode());\r\n }\r\n for (PropertyChangeListener pcl : pcs.getPropertyChangeListeners(Constants.PACMAN)) {\r\n pcs.removePropertyChangeListener(Constants.PACMAN, pcl);\r\n }\r\n for (PropertyChangeListener pcl : pcs.getPropertyChangeListeners(Constants.GHOSTS)) {\r\n pcs.removePropertyChangeListener(Constants.GHOSTS, pcl);\r\n }\r\n PacMan pacMan = initPacMan();\r\n initGhosts(pacMan);\r\n }",
"void resetPositions() {\n position = new PVector(Constants.width/2, Constants.height/2);\n velocity = new PVector();\n acceleration = new PVector();\n bullets = new ArrayList<Bullet>();\n rotation = 0;\n }",
"public void updatemove() {\n\t\tmove = new Movement(getX(), getY(),dungeon,this);\n\t\t//System.out.println(\"Updated\");\n\t\tnotifys();\n\t\tif(this.getInvincible()) {\n\t\t\tsteptracer++;\n\t\t}\n\t\tdungeon.checkGoal();\n\t}",
"public void clearAllPoints() {\n\t\tpoints.clear();\n\t\tnotifyListeners();\n\t}",
"void updatePosition() {\n\t\t\n\t\tcoords.x = body.getPosition().x*Simulation.meterToPixel;\n\t\tcoords.y = body.getPosition().y*Simulation.meterToPixel;\n\t\tspeed.x = body.m_linearVelocity.x;\n\t\tspeed.y = body.m_linearVelocity.y;\n\t}",
"public void update() {\n vel.add(acc);\n vel.limit(max_vel);\n loc.add(vel);\n acc.mult(0);\n }",
"public void notifyObservers()\n\t{\n\t\tsetChanged();\n\t\tnotifyObservers(new GameWorldProxy(this));\n\t}",
"private static void fireMazeChanged() {\r\n\t\tfor (ATEListener l : listeners) {\r\n\t\t\tl.mazeChanged(currentMaze);\r\n\t\t}\r\n\t}",
"@Override\n public void execute() {\n double leftStickY = Robot.m_oi.GetDriverRawAxis(Constants.LEFT_STICK_Y);\n double rightStickY = Robot.m_oi.GetDriverRawAxis(Constants.RIGHT_STICK_Y);\n\n Robot.tankdrive.setLeftMotors(leftStickY);\n Robot.tankdrive.setRightMotors(rightStickY);\n }",
"public void updatePosition(){\n\t\t//maps the position to the closest \"grid\"\n\t\tif(y-curY>=GameSystem.GRID_SIZE/2){\n\t\t\tcurY=curY+GameSystem.GRID_SIZE;\n\t\t\tyGridNearest++;\n\t\t}\n\t\telse if(curX-x>=GameSystem.GRID_SIZE/2){\n\t\t\tcurX=curX-GameSystem.GRID_SIZE;\n\t\t\txGridNearest--;\n\t\t}\n\t\telse if(x-curX>=GameSystem.GRID_SIZE/2){\n\t\t\tcurX=curX+GameSystem.GRID_SIZE;\n\t\t\txGridNearest++;\n\t\t}\n\t\telse if(curY-y>=GameSystem.GRID_SIZE/2){\n\t\t\tcurY=curY-GameSystem.GRID_SIZE;\n\t\t\tyGridNearest--;\n\t\t}\n\t\t//sets the last completely arrived location grid\n\t\tif(y-yTemp>=GameSystem.GRID_SIZE){\n\t\t\tyTemp=yTemp+GameSystem.GRID_SIZE;\n\t\t\ty=yTemp;\n\t\t\tlastY++;\n\t\t}\n\t\telse if(xTemp-x>=GameSystem.GRID_SIZE){\n\t\t\txTemp=xTemp-GameSystem.GRID_SIZE;\n\t\t\tx=xTemp;\n\t\t\tlastX--;\n\t\t}\n\t\telse if(x-xTemp>=GameSystem.GRID_SIZE){\n\t\t\txTemp=xTemp+GameSystem.GRID_SIZE;\n\t\t\tx=xTemp;\n\t\t\tlastX++;\n\t\t}\n\t\telse if(yTemp-y>=GameSystem.GRID_SIZE){\n\t\t\tyTemp=yTemp-GameSystem.GRID_SIZE;\n\t\t\ty=yTemp;\n\t\t\tlastY--;\n\t\t}\n\t\t//only updates nextX and nextY when the move buttons are being pressed down\n\t\t/*\n\t\tif(movable){\n\t\t\tif(direction.equals(\"right\")){\n\t\t\t\t\tnextX=lastX+1;\n\t\t\t\t\tnextY=lastY;\n\t\t\t}\n\t\t\telse if(direction.equals(\"left\")){\n\t\t\t\tnextX=lastX-1;\n\t\t\t\tnextY=lastY;\n\t\t\t}\n\t\t\telse if(direction.equals(\"up\")){\n\t\t\t\tnextY=lastY-1;\n\t\t\t\tnextX=lastX;\n\t\t\t}\n\t\t\telse if(direction.equals(\"down\")){\n\t\t\t\tnextY=lastY+1;\n\t\t\t\tnextX=lastX;\n\t\t\t}\n\t\t}\n\t\t*/\n\t\t\n\t}",
"public void refresh(){\n totalSpace = drv.getTotalSpace();\n freeSpace = drv.getUsableSpace();\n checkSetup();\n }",
"public void refresh() {\n\t\tthis.repaint();\n\t}",
"public void update()\n {\n reinit(viewer.getScene().getActors());\n\n list.invalidate();\n invalidate();\n repaint();\n }",
"public void move() {\n switch (dir) {\n case 1:\n this.setX(getX() + this.speed);\n moveHistory.add(new int[] {getX() - this.speed, getY()});\n moveHistory.add(new int[] {getX(), getY()});\n break;\n case 2:\n this.setY(getY() - this.speed);\n moveHistory.add(new int[] {getX(), getY() + this.speed});\n moveHistory.add(new int[] {getX(), getY()});\n break;\n case 3:\n this.setX(getX() - this.speed);\n moveHistory.add(new int[] {getX() + this.speed, getY()});\n moveHistory.add(new int[] {getX(), getY()});\n break;\n case 4:\n this.setY(getY() + this.speed);\n moveHistory.add(new int[] {getX(), getY() - this.speed});\n moveHistory.add(new int[] {getX(), getY()});\n break;\n default:\n break;\n }\n }",
"public void move() {\n\t\tthis.move(velocity.x, velocity.y);\n\t}",
"public void refreshBoard() {\n\t\tif (_board.checkGameWon()) {\n\t\t\t_blinkList = new ArrayList<TokenGUI>();\n\t\t}\n\t\tfor (SingleColumnGUI e : _allColumnsGUI) {\n\t\t\te.refresh();\n\t\t}\n\t\tif (_board.checkGameWon()) {\n\t\t\tstartBlink();\n\t\t}\n\t\telse if (_timer != null && _timer.isRunning()) {\n\t\t\t_timer.stop();\n\t\t}\n\t\t_mainGameGUI.updateStatus();\n\t}"
] | [
"0.6420213",
"0.63776183",
"0.62927175",
"0.6197937",
"0.6155242",
"0.6118237",
"0.6088242",
"0.60790807",
"0.604208",
"0.5952823",
"0.59299463",
"0.5898422",
"0.5884714",
"0.5872628",
"0.5845982",
"0.5817892",
"0.58081776",
"0.5807897",
"0.5790711",
"0.57710946",
"0.57658905",
"0.5737288",
"0.57204133",
"0.571733",
"0.57165796",
"0.5705796",
"0.5704208",
"0.5695916",
"0.5680153",
"0.5677303",
"0.5675326",
"0.56577903",
"0.5656221",
"0.5648005",
"0.56450063",
"0.56339896",
"0.56289226",
"0.56289226",
"0.56289226",
"0.56289226",
"0.56289226",
"0.56289226",
"0.56250787",
"0.56236327",
"0.5618872",
"0.5617865",
"0.5615899",
"0.5608979",
"0.56057554",
"0.5603439",
"0.5591936",
"0.55897695",
"0.5589497",
"0.55862343",
"0.55827427",
"0.5581731",
"0.558118",
"0.5564417",
"0.5561802",
"0.5558037",
"0.5557183",
"0.5556812",
"0.55538577",
"0.5549185",
"0.553663",
"0.55320156",
"0.5528403",
"0.55208874",
"0.55208874",
"0.5516613",
"0.55162996",
"0.5515058",
"0.5511825",
"0.55077857",
"0.55015236",
"0.5496205",
"0.5494284",
"0.5491949",
"0.54859376",
"0.5485232",
"0.5470159",
"0.54687226",
"0.5462778",
"0.5460467",
"0.5455801",
"0.5452325",
"0.5448659",
"0.5437343",
"0.5433877",
"0.54320896",
"0.54257256",
"0.5424567",
"0.5417684",
"0.54151416",
"0.54124093",
"0.5407323",
"0.53962004",
"0.5393964",
"0.5391315",
"0.53878975"
] | 0.7897569 | 0 |
Returns the total damage dealt statistic. | public int getDamageDealt () {
return this.damageDealt;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getDamage () {\n\t\treturn (this.puissance + stuff.getDegat());\n\t}",
"public int getDamage() {\n \t\treturn damage + ((int) 0.5*level);\n \t}",
"public double getDamage() {\r\n\t\treturn damage;\r\n\t}",
"int getDamage();",
"int getDamage();",
"int getDamage();",
"int getDamage();",
"int getDamage();",
"public int getDamageTaken() {\n return this.damageTaken;\n }",
"public double getDamage() {\n return damage;\n }",
"public int getDamage() {\r\n\t\treturn damage;\r\n\t}",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n //TODO\n return 1;\n }",
"public int getDamageTaken () {\r\n\t\treturn this.damageTaken;\r\n\t}",
"public float getHungerDamage();",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage;\n }",
"public double getDpa(){\n double dpa = 0;\n try{\n //noinspection IntegerDivisionInFloatingPointContext\n dpa = this.damage / this.attacks;\n } catch (ArithmeticException ignored){\n }\n return dpa;\n }",
"@Override\n\tpublic int calculateDamage() \n\t{\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}",
"public int getWeaponDamage()\n {\n \t\treturn mystuff.getWepDmg();\n }",
"public float getDamage() {\n return damage;\n }",
"public int getDamage() {\n\t\t\treturn damage;\n\t\t}",
"public int getDamage() {\r\n\t\treturn myDamage;\r\n\t}",
"public int getDamage()\n\t{\n\t\treturn Damage;\n\t}",
"public int getDamage() {\n\t\treturn this.damage;\n\t}",
"public int getDamage() {\n\t\treturn (int) (Math.random() * damageVariance) + damage;\n\t}",
"@Override\n public double getDamageAmount() {\n return this.getStrength().getAbilityValue();\n }",
"public int getGetDamage() {\r\n\t\treturn getDamage;\r\n\t}",
"public int getWeaponDamage() {\n return Math.round(type.getWeaponDamage()*type.getItemLevelMultipliers()\n\t\t\t\t[level - 1]);\n }",
"public double getTotalDustAverage() {\n return StatisticsHelper.getDivision(getTotalDust(), getTotalDeckAmount());\n }",
"public int getEquippedWeaponDamage() {\n return 0;\n }",
"public int computeDamageTo(Combatant opponent) { return 0; }",
"private static int playerDamageDealt(int playerAttack, int monsterDefense){\r\n int playerDamageDealt;\r\n playerDamageDealt = (playerAttack - monsterDefense);\r\n return playerDamageDealt;\r\n }",
"public short getSiegeWeaponDamage();",
"public void getDamaged(float dmg) {\n\t\tStagePanel.addValueLabel(parentGP,dmg,Commons.cAttack);\n\t\tif(shield - dmg >= 0) {\n\t\t\tshield-=dmg;\n\t\t\tdmg = 0;\n\t\t}else {\n\t\t\tdmg-=shield;\n\t\t\tshield = 0;\n\t\t}\n\t\tif(health-dmg > 0) {\n\t\t\thealth-=dmg;\n\t\t}else {\n\t\t\thealth = 0;\n\t\t}\n\t\tSoundEffect.play(\"Hurt.wav\");\n\t}",
"public int getTotalOfdefeats() {\n return statistics.get(TypeOfGames.SIMGAME).getNumberOfDefeats()\n + statistics.get(TypeOfGames.EASYCOMPUTERGAME).getNumberOfDefeats()\n + statistics.get(TypeOfGames.HARDCOMPUTERGAME).getNumberOfDefeats();\n }",
"public int damageDropped(IBlockState state)\n {\n return ((TreeOresLogs2.EnumType)state.getValue(TYPE)).getMetadata();\n }",
"@Override\n public double getDefenseAmount() {\n return this.getDefense().getAbilityValue();\n }",
"@Override\n\tpublic int getDamageVsEntity(Entity e){\n\t\treturn 0;\n\t}",
"@Override\n\tpublic float desireability() {\n\t\tAgentSpace agentSpace = Blackboard.inst().getSpace(AgentSpace.class, _obj.getName());\n\t\tMap<String,FoodEntry> map = agentSpace.getScentMemories().getFirst();\n\t\tif (map == null || map.size() == 0) { \n\t\t\t// we don't smell anything\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\tAgentSpace space = Blackboard.inst().getSpace(AgentSpace.class, _obj.getName());\n\t\tBoundedEntry bounded = space.getBounded(Variable.energy);\n\t\tfloat pct = bounded.getValue() / bounded.getMax();\n\t\treturn 1 - (pct*pct);\n\t}",
"private static int monsterDamageDealt(int monsterAttack, int playerDefense){\r\n int monsterDamageDealt;\r\n monsterDamageDealt = (monsterAttack - playerDefense);\r\n if(monsterDamageDealt < 0){\r\n monsterDamageDealt = 0;\r\n return monsterDamageDealt;\r\n }else{\r\n return monsterDamageDealt;\r\n }\r\n }",
"String getDamage() {\n return damage;\n }",
"public int getDiceTotal()\r\n {\r\n return diceTotal;\r\n }",
"public int getTotalDust() {\n return StatisticsHelper.sumMapValueIntegers(statistics.getDustByWins());\n }",
"public int getCombatDensityRate() {\n return combatDensityRate;\n }",
"public abstract double getPercentDead();",
"public int getWeaponDamage()\n\t{\n\t\treturn weaponDamage;\n\t}",
"public DamageType getDamagetype();",
"public int getDamage() {\n\t\treturn itemDamage;\n\t}",
"public int getDmg(){\r\n return enemyDmg;\r\n }",
"float getBonusPercentHP();",
"public int getTotalGold() {\n\t\treturn total_gold;\n\t}",
"public double damageCalculation(NPC mob, Player player) {\r\n double weapon = mob.getWeapon().getDamage();\r\n double attack = mob.getStats().getAttack();\r\n double defence = player.getStats().getDefence();\r\n\r\n return ((weapon + attack) * 2 - defence);\r\n }",
"public int calculateDamage(Player enemyPlayer)\n\t{\n\t\tint damage = 0;\n\t\tPokemon enemyPokemon = enemyPlayer.getActivePokemon();\n\t\tif(enemyPokemon.getClass() == FirePokemon.class)\n\t\t{\n\t\t\tdamage = move.getBaseDamage() * 2;\n\t\t}\n\t\tif(enemyPokemon.getClass() == GrassPokemon.class)\n\t\t{\n\t\t\tdamage = (int)Math.round((move.getBaseDamage() * .5));\n\t\t}\n\t\tif(enemyPokemon.getClass() == WaterPokemon.class)\n\t\t{\n\t\t\tdamage = move.getBaseDamage();\n\t\t}\n\t\treturn damage;\n\t}",
"public int getTempDmg(){\r\n return tDmg;\r\n }",
"public double getTotalGoldAverage() {\n return StatisticsHelper.getDivision(getTotalGold(), getTotalDeckAmount());\n }",
"@Override\n\tpublic int getMetricInternal() {\n// Util.runToAddressNoLimit(0, 0, 0x3d702, 0x3e77f);\n// missed_ = curGb.readMemory(curGb.pokemon.fightAttackMissedAddress);\n// System.out.println(\"missed: \" + missed_);\n\n\t\tEflUtil.runToAddressNoLimit(0, 0, curGb.pokemon.fightBattleCommand0a);\n\t\tint crit = curGb.readMemory(curGb.pokemon.fightCriticalHitAddress);\n\t\tint missed = curGb.readMemory(curGb.pokemon.fightAttackMissedAddress);\n//\t\tSystem.out.println(\"EflCheckMoveDamage crit: \" + crit + \" missed: \" + missed);\n\t\tif (missed != 0 || criticalHit != (crit != 0))\n\t\t return Integer.MIN_VALUE;\n\t\tif (thrashAdditionalTurns > 0 && curGb.readMemory(curGb.pokemon.thrashNumTurnsAddress) < thrashAdditionalTurns) {\n\t\t\tSystem.out.println(\"caught bad thrash \"+ curGb.readMemory(curGb.pokemon.thrashNumTurnsAddress));\n return Integer.MIN_VALUE;\n\t\t}\n\t\tif (PokemonUtil.isGen2()) {\n\t\t\tint effectMissed = curGb.readMemory(curGb.pokemon.fightEffectMissedAddress);\n\t\t\tif (this.effectMiss != (effectMissed != 0))\n\t\t\t return Integer.MIN_VALUE;\n\t\t}\n\t\tint dmg = Util.getMemoryWordBE(curGb.pokemon.fightCurDamageAddress);\n// System.out.println(\"EflCheckMoveDamage dmg: \" + dmg);\n\t\tif (dmg < minDamage || dmg > maxDamage)\n return Integer.MIN_VALUE;\n//\t\t\tSystem.out.println(crit+\" \"+missed+\" \"+effectMissed+\" \"+dmg);\n//\t\tSystem.out.println(\"atk: \"+atk+\", def: \"+def+\", pow: \"+pow+\", lvl: \"+lvl);\n//\t\tSystem.out.println(\"max damage: \"+maxdmg+\", dmg: \"+dmg);\n\t\treturn negateOutputDamage ? -dmg : dmg;\n\t}",
"public double getOverhitDamage()\n\t{\n\t\treturn overhitDamage;\n\t}",
"public int getMetadata(int damage) {\n/* 50 */ return damage;\n/* */ }",
"float getPercentHealth();",
"AbilityDamage getAbilityDamage();",
"@Basic @Immutable\n\tpublic int getDamage() {\n\t\treturn this.damage;\n\t}",
"private void damage(){\n\n LevelMap.getLevel().damage(dmg);\n //System.out.println(\"died\");\n setDie();\n }",
"public double getLastDamage ( ) {\n\t\treturn extract ( handle -> handle.getLastDamage ( ) );\n\t}",
"int getDefense();",
"int getDefense();",
"int getDefense();",
"int getDefense();",
"int getDefense();",
"int getDefense();",
"@Override\n\tpublic int calculateCustomDamageTaken(Entity attacker, Entity defender, int damage, int attackType) {\n\t\treturn damage;\n\t}",
"private void calculateTotalStats() {\n int totHp = calculateHp(baseStats.hp, ivStats.hp, evStats.hp);\n int totAtk = calculateStat(baseStats.atk, ivStats.atk, evStats.atk, natureStats.atk);\n int totDef = calculateStat(baseStats.def, ivStats.def, evStats.def, natureStats.def);\n int totSpAtk = calculateStat(baseStats.spAtk, ivStats.spAtk, evStats.spAtk, natureStats.spAtk);\n int totSpDef = calculateStat(baseStats.spDef, ivStats.spDef, evStats.spDef, natureStats.spDef);\n int totSpd = calculateStat(baseStats.spd, ivStats.spd, evStats.spd, natureStats.spd);\n totalStats = new Stats(totHp, totAtk, totDef, totSpAtk, totSpDef, totSpd);\n combatStats = new Stats(totHp, 0, 0, 0, 0, 0);\n }",
"private int calculateHeroDamageDone(Hero h, GenericMonster m){\n\t\t// Take into account armor, magic resist, thoughness, that kind of thing..\n\t\thDmg = h.getWeapon().calculateDamageDelt();\n\t\tcalcDef = new CalculateDefence(h.getWeapon(), m);\n\t\tint def = calcDef.getMonsterDefense();\n\t\t// Getting the defense value and type\n\t\tmResistance = calcDef.getMonsterDefType();\n\t\tmResistanceValue = calcDef.getMonsterDefValue();\n\t\treturn (hDmg - def);\n\t}",
"@Override\n\tpublic double getDefense() {\n\t\treturn 0;\n\t}",
"public double getHpns(){\r\n switch(this.grlType){\r\n case \"The Choosy\":\r\n return this.chGrlfrnd.iLevel;\r\n case \"The Normal\":\r\n return this.nGrlfrnd.iLevel;\r\n case \"The Desperate\":\r\n return this.dsGrlfrnd.iLevel;\r\n \r\n }\r\n return 0;\r\n }",
"public int calculateAttack() {\n int attack = 0;\n for (Weapon w : equippedWeapons) {\n attack += w.getType().getDamage();\n }\n return attack;\n }",
"@Override\n\tpublic void getCosts() {\n\t\tString renterIDString = String.valueOf(this.renter.getRenterID());\n\t\tString damageChargeString = String.valueOf(this.damageCharge);\n\t\tSystem.out.print(\"The amount owed in damages for renter with ID of: \" + renterIDString + \" is: \" + damageChargeString+\"\\n\");\n\t}",
"public int getHealth() {\n return getStat(health);\n }",
"@ZenCodeType.Method\n @ZenCodeType.Getter(\"itemDamage\")\n public static int getItemDamage(ItemFishedEvent internal) {\n \n return internal.getRodDamage();\n }",
"public float getDefense()\n {\n return defense;\n }",
"public int getTotalGold() {\n return StatisticsHelper.sumMapValueIntegers(statistics.getGoldByWins());\n }",
"int getSuperEffectiveChargeAttacksUsed();",
"public int giveDamage();",
"private int calculateTotalDamage(double baseAttack, double moveDamage, int totalHealth, double statBonus) {\n\t\tint totalDamage = 0;\n\t\tRandom rand = new Random();\n\t\tfloat accuracy = rand.nextFloat();\n\t\t\n\t\ttotalDamage = (int) Math.round(((double) totalHealth) * ((baseAttack*statBonus) + moveDamage) * ((double) accuracy));\n\t\t\n\t\treturn totalDamage;\n\t}",
"public int[] getDamage(){\n\t\treturn shipDamage;\n\t}",
"public int getDeaths() {\n return deaths;\n }",
"double getDeathFactor();",
"public double getDodgeChance() {\n return Math.min((this.getAgility().getAbilityValue() / 4.0) * 0.01, 1);\n }",
"public int getHealthCost();",
"@Override\n public int doDamage() {\n if (difficulty <5)\n return damage;\n else \n return damage*2;\n }",
"public double getAmountEarned(){\r\n return getSalary() + getBonus() + getCommission() * getNumSales();\r\n }",
"public BigDecimal getLossDs() {\r\n return lossDs;\r\n }"
] | [
"0.7292929",
"0.69942164",
"0.6969192",
"0.692031",
"0.692031",
"0.692031",
"0.692031",
"0.692031",
"0.6909442",
"0.68706644",
"0.6870062",
"0.6839083",
"0.6839083",
"0.6839083",
"0.6839083",
"0.6839083",
"0.6831608",
"0.68084735",
"0.67999583",
"0.6797216",
"0.6797216",
"0.6797216",
"0.6797216",
"0.6797216",
"0.67864484",
"0.67862785",
"0.67842895",
"0.6781054",
"0.67467266",
"0.67211336",
"0.67106414",
"0.67061657",
"0.669545",
"0.6637106",
"0.66350704",
"0.65738237",
"0.6504872",
"0.6501282",
"0.6496732",
"0.649668",
"0.64804804",
"0.64590424",
"0.64345205",
"0.64225864",
"0.64147055",
"0.64060736",
"0.63804597",
"0.6356929",
"0.63127345",
"0.62887645",
"0.6250562",
"0.62440574",
"0.6213223",
"0.61998117",
"0.6196692",
"0.61926335",
"0.6190194",
"0.6186791",
"0.6172867",
"0.61465734",
"0.61422074",
"0.61174315",
"0.60987943",
"0.6094806",
"0.6073511",
"0.60690755",
"0.6051464",
"0.6045551",
"0.604015",
"0.60369384",
"0.6033235",
"0.60276175",
"0.6021745",
"0.6021745",
"0.6021745",
"0.6021745",
"0.6021745",
"0.6021745",
"0.6018841",
"0.60150677",
"0.6006436",
"0.59987885",
"0.5998293",
"0.59909695",
"0.5986035",
"0.59713686",
"0.5948972",
"0.59349763",
"0.59339076",
"0.5921884",
"0.5917939",
"0.5907",
"0.59008414",
"0.58998376",
"0.58981085",
"0.58977437",
"0.5892292",
"0.5876425",
"0.58758897",
"0.5873727"
] | 0.7540221 | 0 |
Relocates the given robot to the given destination | public void setRobotLocation(int robotType, Point destination) {
this.getRobot(robotType).setLocation(destination);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void moveRobber(HexLocation loc) {\n\n\t}",
"private void move() {\n\n if(currentPosition.getX() == -1 && currentPosition.getY() == -1) {\n System.out.println(\"Robot is not placed, yet.\");\n return;\n }\n\n Position.Direction direction = currentPosition.getDirection();\n int newX = -1;\n int newY = -1;\n switch (direction) {\n case EAST:\n newX = currentPosition.getX() + 1;\n newY = currentPosition.getY();\n break;\n case WEST:\n newX = currentPosition.getX() - 1;\n newY = currentPosition.getY();\n break;\n case NORTH:\n newX = currentPosition.getX();\n newY = currentPosition.getY() + 1;\n break;\n case SOUTH:\n newX = currentPosition.getX();\n newY = currentPosition.getY() - 1;\n break;\n }\n\n if(newX < lowerBound.getX() || newY < lowerBound.getY()\n || newX > upperBound.getX() || newY > upperBound.getY()) {\n System.out.println(\"Cannot move to \" + direction);\n return;\n }\n\n currentPosition.setX(newX);\n currentPosition.setY(newY);\n }",
"public void move() {\n if(Objects.nonNull(this.position)) {\n Position position = this.getPosition();\n Function<Position, Position> move = moveRobotInDirectionMap.get(position.getDirection());\n this.position = move.apply(position);\n }\n }",
"void makeMove(Location loc);",
"public void setRobotLocation(Point p);",
"protected void move()\n {\n // Find a location to move to.\n Debug.print(\"Fish \" + toString() + \" attempting to move. \");\n Location nextLoc = nextLocation();\n\n // If the next location is different, move there.\n if ( ! nextLoc.equals(location()) )\n {\n // Move to new location.\n Location oldLoc = location();\n changeLocation(nextLoc);\n\n // Update direction in case fish had to turn to move.\n Direction newDir = environment().getDirection(oldLoc, nextLoc);\n changeDirection(newDir);\n Debug.println(\" Moves to \" + location() + direction());\n }\n else\n Debug.println(\" Does not move.\");\n }",
"public void move() {\n\n\tGrid<Actor> gr = getGrid();\n\tif (gr == null) {\n\n\t return;\n\t}\n\n\tLocation loc = getLocation();\n\tif (gr.isValid(next)) {\n\n\t setDirection(loc.getDirectionToward(next));\n\t moveTo(next);\n\n\t int counter = dirCounter.get(getDirection());\n\t dirCounter.put(getDirection(), ++counter);\n\n\t if (!crossLocation.isEmpty()) {\n\t\t\n\t\t//reset the node of previously occupied location\n\t\tArrayList<Location> lastNode = crossLocation.pop();\n\t\tlastNode.add(next);\n\t\tcrossLocation.push(lastNode);\t\n\t\t\n\t\t//push the node of current location\n\t\tArrayList<Location> currentNode = new ArrayList<Location>();\n\t\tcurrentNode.add(getLocation());\n\t\tcurrentNode.add(loc);\n\n\t\tcrossLocation.push(currentNode);\t\n\t }\n\n\t} else {\n\t removeSelfFromGrid();\n\t}\n\n\tFlower flower = new Flower(getColor());\n\tflower.putSelfInGrid(gr, loc);\n\t\n\tlast = loc;\n\t\t\n }",
"public void move(String direction) {\n \n }",
"public void move(String direction);",
"public void move() {\n\n if (_currentFloor == Floor.FIRST) {\n _directionOfTravel = DirectionOfTravel.UP;\n }\n if (_currentFloor == Floor.SEVENTH) {\n _directionOfTravel = DirectionOfTravel.DOWN;\n }\n\n\n if (_directionOfTravel == DirectionOfTravel.UP) {\n _currentFloor = _currentFloor.nextFloorUp();\n } else if (_directionOfTravel == DirectionOfTravel.DOWN) {\n _currentFloor = _currentFloor.nextFloorDown();\n }\n\n if(_currentFloor.hasDestinationRequests()){\n stop();\n } \n\n }",
"private static void applyRelocationMove(RelocationMove rm, Solution s, double[][] distanceMatrix) \n\t{\n\t\t//This is the node to be relocated\n\t\tCustomer relocatedNode = s.routes.get(rm.fromRoute).customers.get(rm.positionOfRelocated);\n\n\t\t//Take out the relocated node\n\t\ts.routes.get(rm.fromRoute).customers.remove(rm.positionOfRelocated);\n\n\t\t//Reinsert the relocated node into the appropriate position\n\t\t//Where??? -> after the node that WAS (!!!!) located in the rm.positionToBeInserted of the route\n\n\t\t//Watch out!!! \n\t\t//If the relocated customer is reinserted backwards we have to re-insert it in (rm.positionToBeInserted + 1)\n\t\tif (((rm.positionToBeInserted < rm.positionOfRelocated) && (rm.toRoute == rm.fromRoute))||(rm.toRoute!=rm.fromRoute))\n\t\t{\n\t\t\ts.routes.get(rm.toRoute).customers.add(rm.positionToBeInserted + 1, relocatedNode);\n\t\t}\n\t\t////else (if it is reinserted forward) we have to re-insert it in (rm.positionToBeInserted)\n\t\telse\n\t\t{\n\t\t\ts.routes.get(rm.toRoute).customers.add(rm.positionToBeInserted, relocatedNode);\n\t\t}\n\n\t\tSystem.out.println(\"FROM: Vehicle #\" + (rm.fromRoute+1) + \" Position: \" + (rm.positionOfRelocated+1) + \" --> Updated Load = \" + rm.fromUpdLoad);\n\t\tSystem.out.println(\"TO: Vehicle #\" + (rm.toRoute+1) + \" Position: \" + (rm.positionToBeInserted+1) + \" --> Updated Load = \" + rm.toUpdLoad);\n\t\tSystem.out.println(\"--------------------------------------------------\");\n\t\n\t\t\n\t\t//update the cost of the solution and the corresponding cost of the route object in the solution\n\t\ts.cost = s.cost + rm.moveCost;\n\t\ts.routes.get(rm.toRoute).cost = s.routes.get(rm.toRoute).cost + rm.toMoveCost;\n\t\ts.routes.get(rm.fromRoute).cost = s.routes.get(rm.fromRoute).cost + rm.fromMoveCost;\n\t\tif (rm.toRoute != rm.fromRoute) {\n\t\t\ts.routes.get(rm.toRoute).load = rm.toUpdLoad;\n\t\t\ts.routes.get(rm.fromRoute).load = rm.fromUpdLoad;\n\t\t}\n\t\telse {\n\t\t\ts.routes.get(rm.toRoute).load = rm.toUpdLoad;\t\t\t\n\t\t}\n\n\t}",
"public void move(GeoCoordFine geoCoord) throws ARDInstanceException;",
"public void move() {\n\t\t// Override move so we don't move, then get location set by owner.\n\t}",
"public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tLocation next = loc.getAdjacentLocation(getDirection());\n\t\t\n\t\tLocation next2 = next.getAdjacentLocation(getDirection());\n\t\tif (gr.isValid(next2)) {\n\t\t\tmoveTo(next2);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t}",
"@Override\r\n\tpublic void move(Robot robot)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif(robot.canMoveOneStep())\r\n\t\t\t{\r\n\t\t\t\trobot.moveOneStep();\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"This robot cannot move in its current state.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(IllegalStateException exc)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"A terminated robot cannot be moved.\");\r\n\t\t}\r\n\t}",
"public void move()\n {\n move(WALKING_SPEED);\n }",
"@Override\n\tprotected boolean moveRobot(boolean printEachStep) {\n\t\tboolean move=true;\n\t\tint incOrDecR = destRow > curRow ? 1 : -1, \n\t\t\tincOrDecC = destCol > curCol ? 1 : -1, \n\t\t\tcount = diagonalCount();\n\t\t\t// Move diagonally as close to the destination it can get to\n\t\t\tfor(int i=0; i<count; ++i) {\n\t\t\t\tif(move=grid.moveFromTo(this, curRow, curCol, \n\t\t\t\t\t\tblockedRow=curRow+incOrDecR, \n\t\t\t\t\t\tblockedCol=curCol+incOrDecC)) { \n\t\t\t\t\tcurRow+=incOrDecR; \n\t\t\t\t\tcurCol+=incOrDecC;\n\t\t\t\t\t--energyUnits;\n\t\t\t\t\tif(printEachStep)\n\t\t\t\t\t\tgrid.printGrid();\n\t\t\t\t} else {\n\t\t\t\t\treturn move; \n\t\t\t\t}\n\t\t\t}\n\t\tmove=super.moveRobot(printEachStep);\n\t\treturn move;\n\t}",
"public void move(Pawn pawn, Point destination) {\n\t\tPoint lastLocation = pawn.getLocation();\r\n\t\tboard[lastLocation.x][lastLocation.y].setEmpty();\r\n\t\tboard[destination.x][destination.y].setTaken();\r\n\t\tpawn.setLocation(destination);\r\n\t\tpawn.setLastLocation(lastLocation);\r\n\t\t\r\n\t\tif(isNeighbor(lastLocation, destination)) {\r\n\t\t\tpawn.setAfterStep();\r\n\t\t}\r\n\t\t\r\n\t\tif(board[destination.x][destination.y].getFieldType().equals(pawn.getTarget())) {\r\n\t\t\tpawn.setInTarget();\r\n\t\t}\r\n\t}",
"private void turnRight() {\n\n if(currentPosition.getX() == -1 && currentPosition.getY() == -1) {\n System.out.println(\"Robot is not placed, yet.\");\n return;\n }\n\n Position.Direction direction = currentPosition.getDirection();\n switch (direction) {\n case EAST:\n direction = Position.Direction.SOUTH;\n break;\n case WEST:\n direction = Position.Direction.NORTH;\n break;\n case NORTH:\n direction = Position.Direction.EAST;\n break;\n case SOUTH:\n direction = Position.Direction.WEST;\n break;\n }\n\n currentPosition.setDirection(direction);\n }",
"@Override\n\tpublic void move() {\n\t\theading = Heading.randHeading();\n\t\tif (heading == Heading.NORTH) {\n\t\t\tthis.location.y -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.EAST) {\n\t\t\tthis.location.x += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.SOUTH) {\n\t\t\tthis.location.y += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.WEST) {\n\t\t\tthis.location.x -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t}\n\t\tadjustPos();\n\t\tinfect();\n\t}",
"@Override\r\n\tpublic void moveNextTo(Robot robot, Robot other)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\trobot.moveNextTo(other);\r\n\t\t}\r\n\t\tcatch(IllegalBoardException exc)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Both robots are not placed on the same board\");\r\n\t\t}\r\n\t\tcatch(IllegalStateException exc)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"One or both robots is either terminated or does not have a board.\");\r\n\t\t}\r\n\t}",
"public void moveToDestination(Move move) {\r\n\t\tx = move.getToX();\r\n\t\ty = move.getToY();\r\n\r\n\t}",
"public void move() { \n\t\tSystem.out.println(\"MOVING\");\n\t\tswitch(direction) {\n\t\t\tcase NORTH: {\n\t\t\t\tyloc -= ySpeed;\n\t\t\t}\n\t\t\tcase SOUTH: {\n\t\t\t\tyloc+= xSpeed;\n\t\t\t}\n\t\t\tcase EAST: {\n\t\t\t\txloc+= xSpeed;\n\t\t\t}\n\t\t\tcase WEST: {\n\t\t\t\txloc-= xSpeed;\n\t\t\t}\n\t\t\tcase NORTHEAST: {\n\t\t\t\txloc+=xSpeed;\n\t\t\t\tyloc-=ySpeed;\n\t\t\t}\n\t\t\tcase NORTHWEST: {\n\t\t\t\txloc-=xSpeed;\n\t\t\t\tyloc-=ySpeed;\n\t\t\t}\n\t\t\tcase SOUTHEAST: {\n\t\t\t\txloc+=xSpeed;\n\t\t\t\tyloc+=ySpeed;\n\t\t\t}\n\t\t\tcase SOUTHWEST: {\n\t\t\t\txloc-=xSpeed;\n\t\t\t\tyloc+= ySpeed;\n\t\t\t}\n\t\t}\n\t}",
"public void go_to_reverse_position() {\n stop_hold_arm();\n Pneumatics.get_instance().set_solenoids(false);\n Dispatcher.get_instance().add_job(new JMoveArm(RobotMap.Arm.pot_value_reverse, 0.9, 0.7, 0.7, 0.2, 0.8, false, false));\n hold_arm();\n }",
"void moveTurtle(int turtleIndex, Coordinate start, Coordinate end);",
"public void moveRight() {\n locX = locX + 1;\n }",
"public void move() {\n\t\tthis.position.stepForwad();\n\t\tthis.position.spin();\n\t}",
"public void moveTo(Actor actor, Location newLocation)\n\t {\n\t\t \t//creating the variables to make the code easier to read\n\t\t \tGrid<Actor> grid = actor.getGrid();\n\t\t \tLocation location = actor.getLocation();\n\t\t \n\t if (grid == null)\n\t throw new IllegalStateException(\"This actor is not in a grid.\");\n\t if (grid.get(location) != actor)\n\t throw new IllegalStateException(\n\t \"The grid contains a different actor at location \"\n\t + location + \".\");\n\t if (!grid.isValid(newLocation))\n\t throw new IllegalArgumentException(\"Location \" + newLocation\n\t + \" is not valid.\");\n\n\t if (newLocation.equals(location))\n\t return;\n\t \n\t //this line below was added\n\t actor.removeSelfFromGrid();\n\t //changed the code slightly to make sure now that not being called from within the actor that we refer to the\n\t //actor itself when removing and placing actor on grid\n\t //grid.remove(location);\n\t Actor other = grid.get(newLocation);\n\t if (other != null)\n\t other.removeSelfFromGrid();\n\t location = newLocation;\n\t actor.putSelfInGrid(grid, location);\n\t //grid.put(location, actor);\n\t }",
"private void setEndLocation() {\n switch (direction) {\n case UP:\n case DOWN:\n componentToMove.setLocation(posX, Direction.UP == direction ? Math.min(endPosition, posY) : Math.max(endPosition, posY));\n break;\n default:\n componentToMove.setLocation(Direction.LEFT == direction ? Math.min(endPosition, posX) : Math.max(endPosition, posX), posY);\n }\n }",
"public void moveInDirection(Direction dir, Unit unit){\n\t\t if(dir!=null){\n\t\t\t if(debug){\n\t\t\t\t System.out.println(\"about to move unit \"+unitID+\" \"+dir.name());\n\t\t\t\t System.out.println(\"currentLocation \"+unit.location().mapLocation());\n\t\t\t }\n if(dir.equals(Direction.Southwest)){\n \tif (gc.canMove(unitID, Direction.Southwest)) {\n gc.moveRobot(unitID, Direction.Southwest);\n System.out.println(\"moving south west\");\n \t}\n }else if(dir.equals(Direction.Southeast)){\n \tif (gc.canMove(unitID, Direction.Southeast)) {\n gc.moveRobot(unitID, Direction.Southeast);\n System.out.println(\"moving south east\");\n \t}\n }else if(dir.equals(Direction.South)){\n \tif (gc.canMove(unitID, Direction.South)) {\n gc.moveRobot(unitID, Direction.South);\n System.out.println(\"moving south\");\n \t}\n }\n else if(dir.equals(Direction.East)){\n \tif (gc.canMove(unitID, Direction.East)) {\n gc.moveRobot(unitID, Direction.East);\n System.out.println(\"moving east\");\n \t}\n }\n else if(dir.equals(Direction.West)){\n \tif (gc.canMove(unitID, Direction.West)) {\n gc.moveRobot(unitID, Direction.West);\n System.out.println(\"moving west\");\n \t}\n }else if(dir.equals(Direction.Northeast)){\n \tif (gc.canMove(unitID, Direction.Northeast)) {\n gc.moveRobot(unitID, Direction.Northeast);\n System.out.println(\"moving north east\");\n \t}\n }else if(dir.equals(Direction.Northwest)){\n \tif (gc.canMove(unitID, Direction.Northwest)) {\n gc.moveRobot(unitID, Direction.Northwest);\n System.out.println(\"moving north west\");\n \t}\n }else if(dir.equals(Direction.North)){\n \tif (gc.canMove(unitID, Direction.North)) {\n gc.moveRobot(unitID, Direction.North);\n System.out.println(\"moving north\");\n \t}\n }\n }\n\t\t\n\t}",
"public void moveAllRobotsOneStep(Map<IGridRobot, GridCell> robot2dest){\n\t\t// If the passed map were contained GridRobots, we could count the longest delay and sleep this thread\n\t\t// But I'm not doing it to stay consistent with all the other methods (and to stay flexible)\n\t\t// This requires the tests to sleep themselves\n\t\t//long longestDelay = 0;\n\t\tPathPlanner planner = new PathPlanner();\n\t\tfor (Map.Entry<IGridRobot, GridCell> entry: robot2dest.entrySet()){\n\t\t\tEntry<IGridRobot, Direction> dir = planner.nextStepOneRobot(this, entry);\n\t\t\tif (dir != null){\n\t\t\t\tdir.getKey().step(dir.getValue());\n\t\t\t}\n\t\t}\n\t}",
"public void move (View view){\n\n if (toyRobotIsActive){//only run code after PLACE is DONE\n\n if (orientation == 0) {//Move while Facing North\n\n if((robot.getTranslationY()/perUnitY*(-1)) >=4) {\n System.out.println(\"Out of Bounds\");//Chk Error in Logs\n errorMessage(\"Out of Bounds\");//Error display to user via Toast\n } else {\n robot.animate().translationYBy(-perUnitY).setDuration(50);\n } //move robot 1 unit\n\n } else if (orientation == 3 || orientation == -1) {//Facing West\n if((robot.getTranslationX()/perUnitX) <= 0) {\n System.out.println(\"Out of Bounds\");\n errorMessage(\"Out of Bounds\");\n } else {\n robot.animate().translationXBy(-perUnitX).setDuration(50);\n }\n\n\n } else if (orientation == 2 || orientation == -2) {//Facing South\n if((robot.getTranslationY()/perUnitY)*(-1) <= 0){\n System.out.println(\"Out of Bounds\");\n errorMessage(\"Out of Bounds\");\n } else {\n robot.animate().translationYBy(perUnitY).setDuration(50);\n }\n\n\n } else if (orientation == 1 || orientation == -3) {//Facing East\n if((robot.getTranslationX()/perUnitX) >=4){\n System.out.println(\"Out of Bounds\");\n errorMessage(\"Out of Bounds\");\n } else {\n robot.animate().translationXBy(perUnitX).setDuration(50);\n }\n }\n } else errorMessage(\"Please place toy robot\"); //button not active if\n }",
"public void move();",
"public void move();",
"void setDestination(Locations destination);",
"public void makeMove(Location loc)\n {\n \tLocation curLoc = getLocation();\n \tint curDirection = getDirection();\n // get 2 left locations\n\t\tLocation leftNeighborLoc = curLoc.getAdjacentLocation(curDirection + Location.LEFT);\n Location leftNextNeighborLoc = leftNeighborLoc.getAdjacentLocation(curDirection + Location.LEFT);\n // get 2 right locations\n Location rightNeighborLoc = curLoc.getAdjacentLocation(curDirection + Location.RIGHT);\n Location rightNextNeighborLoc = rightNeighborLoc.getAdjacentLocation(curDirection + Location.RIGHT);\n // initial a null\n Actor leftNeighborActor = null;\n Actor leftNextNeighborActor = null;\n Actor rightNeighborActor = null;\n Actor rightNextNeighborActor = null;\n\n boolean isLeftValid = false;\n boolean isRightValid = false;\n\n Grid<Actor> grid = getGrid();\n // if left valid\n if (grid.isValid(leftNeighborLoc) && grid.isValid(leftNextNeighborLoc))\n {\n \tleftNeighborActor = grid.get(leftNeighborLoc);\n \tleftNextNeighborActor = grid.get(leftNextNeighborLoc);\n \t\n \tif (leftNeighborActor == null && leftNextNeighborActor == null) {\n \t\tisLeftValid = true;\n }\n }\n // if right valid\n if (grid.isValid(rightNeighborLoc) && grid.isValid(rightNextNeighborLoc))\n {\n \trightNeighborActor = grid.get(rightNeighborLoc);\n \trightNextNeighborActor = grid.get(rightNextNeighborLoc);\n\n \tif (rightNeighborActor == null && leftNextNeighborActor == null) {\n \t\tisRightValid = true;\n }\n }\n // if both valid\n if (isLeftValid && isRightValid)\n {\n\t // move ramdonly\n if (Math.random() < 0.5)\n\t {\n\t \tmoveTo(leftNextNeighborLoc);\n\t \n\t }\n\t else{\n\t \tmoveTo(rightNextNeighborLoc);\n\t }\n }\n // right valid only\n else if (isRightValid && !isLeftValid)\n {\n \tmoveTo(rightNextNeighborLoc);\n }\n // left valid only\n else if (!isRightValid && isLeftValid)\n {\n \tmoveTo(leftNextNeighborLoc);\n }\n else\n {\n \tsuper.makeMove(loc);\n }\n \n }",
"public void makeMove(Location loc)\n {\n if (loc == null)\n removeSelfFromGrid();\n else\n {\n int newDirection = getLocation().getDirectionToward(loc);\n Location nextLocation = getLocation().getAdjacentLocation(newDirection);\n Actor otherActor = getGrid().get(nextLocation);\n if(otherActor != null)\n {\n if(otherActor instanceof AbstractPokemon)\n {\n AbstractPokemon otherPokemon = (AbstractPokemon) otherActor;\n battle(otherPokemon);\n }\n else\n {\n PokemonTrainer otherTrainer = (PokemonTrainer) otherActor;\n battleTrainer(otherTrainer);\n }\n }\n if(getGrid() != null)\n moveTo(loc);\n }\n }",
"public void move() throws InstructionExecutionException\r\n\t{\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\tStreet street=this.getHeadingStreet();\r\n\t\t\tif(street==null){\r\n\t\t\t\tString err=\"WALL·E says: There is no street in direction \"+this.getCurrentHeading();\r\n\t\t\t\tif(isSwing()){\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, err);\r\n\t\t\t\t}\r\n\t\t\t\tthrow new InstructionExecutionException(err);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tPlace nextPlace=street.nextPlace(this.currentPlace);\r\n\t\t\tif (street.isOpen()){\r\n\t\t\t\tthis.currentPlace=nextPlace;\r\n\t\t\t\tif(isSwing()){\r\n\t\t\t\t\tthis.navigationPanel.updateCell(currentDirection, nextPlace);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}else{\r\n\t\t\t\tString err=\"WALL·E says: Arrggg, there is a street but it is closed!\";\r\n\t\t\t\tif(isSwing()){\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, err);\r\n\t\t\t\t}\r\n\t\t\t\tthrow new InstructionExecutionException(err);\r\n\t\t\t}\r\n\t\t}catch (Exception e){\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t}",
"@Override\n\tvoid setMove(RobotStatus status, ITargetManager targetMan)\n\t{\n\t}",
"public void move() {\n\t\t\tar.setAhead(10 * fahrtrichtung);\n\n\t\t\t// Wie schnell sich der Roboter drehen soll\n\t\t\tar.setTurnRight(45 * drehrichtung);\n\t\t\tar.execute();\n\t\t\tfarbschema = farbschema * (-1);\n\t\t}",
"public void moveUp() {\n locY = locY + 1;\n }",
"public void move(){\n\t\t\n\t}",
"public void move(Vector start,Vector dist);",
"void move();",
"public void RotateRight(double speed, int distance) {\n // Reset Encoders\n robot2.DriveRightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot2.DriveLeftFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot2.DriveRightRear.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot2.DriveLeftRear.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n sleep(500);\n\n robot2.DriveRightFront.setTargetPosition(0);\n robot2.DriveRightRear.setTargetPosition(0);\n robot2.DriveLeftFront.setTargetPosition(0);\n robot2.DriveLeftRear.setTargetPosition(0);\n\n // Set RUN_TO_POSITION\n\n robot2.DriveRightFront.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot2.DriveLeftFront.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot2.DriveRightRear.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot2.DriveLeftRear.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // Set Motor Power to 0\n robot2.DriveRightFront.setPower(0);\n robot2.DriveRightRear.setPower(0);\n robot2.DriveLeftFront.setPower(0);\n robot2.DriveLeftRear.setPower(0);\n\n\n double InchesMoving = (distance * COUNTS_PER_INCH);\n\n // Set Target to RotateRight\n robot2.DriveRightFront.setTargetPosition((int) -InchesMoving);\n robot2.DriveRightRear.setTargetPosition((int) -InchesMoving);\n robot2.DriveLeftRear.setTargetPosition((int) InchesMoving);\n robot2.DriveLeftFront.setTargetPosition((int) InchesMoving);\n\n while (robot2.DriveRightFront.isBusy() && robot2.DriveRightRear.isBusy() && robot2.DriveLeftRear.isBusy() && robot2.DriveLeftFront.isBusy()) {\n\n // wait for robot to move to RUN_TO_POSITION setting\n\n double MoveSpeed = speed;\n\n // Set Motor Power\n robot2.DriveRightFront.setPower(MoveSpeed);\n robot2.DriveRightRear.setPower(MoveSpeed);\n robot2.DriveLeftFront.setPower(MoveSpeed);\n robot2.DriveLeftRear.setPower(MoveSpeed);\n\n } // THis brace close out the while Loop\n\n //Reset Encoders\n robot2.DriveRightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot2.DriveLeftFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot2.DriveRightRear.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot2.DriveLeftRear.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n\n\n robot2.DriveRightFront.setPower(0);\n robot2.DriveRightRear.setPower(0);\n robot2.DriveLeftFront.setPower(0);\n robot2.DriveLeftRear.setPower(0);\n }",
"public void move(Cell[][] board) {\n Cell[] nextCells = generateNeighbors(this.x, this.y);\n Cell nextCell = nextCells[rand.nextInt(4)];\n if (!this.objectFound) {\n if (nextCell != null && nextCell.isOccupied() && nextCell.occupiedBy instanceof Integer) {\n this.objectFound = true;\n this.goal = nextCell;\n } else if (nextCell != null && !nextCell.isOccupied()) {\n synchronized (board[this.x][this.y]) {\n board[this.x][this.y].resetCell();\n nextCell.occupiedBy = this;\n }\n }\n } else {\n // bfs to location\n System.out.println(\"BFS to goal\");\n }\n }",
"void doneMoving();",
"private void move() throws Exception{\r\n\t switch (direction) {\r\n\t case Constants.DIRECTION_NORTH:\r\n\t y += 1;\r\n\t break;\r\n\t case Constants.DIRECTION_EAST:\r\n\t x += 1;\r\n\t break;\r\n\t case Constants.DIRECTION_SOUTH:\r\n\t y -= 1;\r\n\t break;\r\n\t case Constants.DIRECTION_WEST:\r\n\t x -= 1;\r\n\t break;\r\n\t }\r\n\t if(!verifyBounds()){\r\n\t throw new Exception(\"Rover exceeding range!!!\");\r\n\t }\r\n\t }",
"@Override\r\n\tpublic void setRobot(Robot r) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\trobot = (BasicRobot) r;\r\n\t\t//robot.setMaze(this.mC);\r\n\t\t\r\n\t}",
"private void placeRobot(List<String> args) {\n int x;\n int y;\n Position.Direction direction;\n\n try {\n x = Integer.parseInt(args.get(0));\n y = Integer.parseInt(args.get(1));\n direction = Position.Direction.valueOf(args.get(2));\n } catch (NumberFormatException e) {\n System.out.println(\"x and y accept only numbers\");\n return;\n } catch (IllegalArgumentException e) {\n System.out.println(args.get(2) + \" looks an unsupported direction\");\n return;\n }\n\n if(x >= lowerBound.getX() && y >= lowerBound.getY() &&\n x <= upperBound.getX() && y <= upperBound.getY() ) {\n currentPosition.setX(x);\n currentPosition.setY(y);\n currentPosition.setDirection(direction);\n } else {\n System.out.println(\"Cannot position the robot outside the table\");\n }\n }",
"@Test\n public void southMoveTest() {\n int southInitialX = 3;\n Robot southRobot = new Robot(southInitialX, 0, Direction.S);\n southRobot.move(testBounds);\n Assert.assertEquals(1, southRobot.getY());\n Assert.assertEquals(southInitialX, southRobot.getX());\n\n southRobot.move(testBounds);\n Assert.assertEquals(2, southRobot.getY());\n Assert.assertEquals(southInitialX, southRobot.getX());\n\n southRobot.move(testBounds);\n Assert.assertEquals(3, southRobot.getY());\n Assert.assertEquals(southInitialX, southRobot.getX());\n\n southRobot.move(testBounds);\n Assert.assertEquals(4, southRobot.getY());\n Assert.assertEquals(southInitialX, southRobot.getX());\n\n southRobot.move(testBounds);\n Assert.assertEquals(4, southRobot.getY());\n Assert.assertEquals(southInitialX, southRobot.getX());\n }",
"public void moveToLastAcceptableLocation(){\n\t\tthis.x=this.xTemp;\n\t\tthis.y=this.yTemp;\n\t}",
"@Override\n public void move(){\n setDirectionSpeed(180, 7);\n this.moveTowardsAPoint(target.getCenterX(), target.getCenterY());\n }",
"public final void move(Direction direction) throws Exception {\n move(getCoordinatesRelative(direction));\n }",
"public void move() {\n\t\tif (type.equals(\"Fast\")) {\n\t\t\tspeed = 2;\n\t\t}else if (type.equals(\"Slow\")){\n\t\t\tspeed = 4;\n\t\t}\n\t\t\n\t\tif (rand.nextInt(speed) == 1){\n\t\t\tif (currentLocation.x - ChristopherColumbusLocation.x < 0) {\n\t\t\t\tif (currentLocation.x + 1 < oceanMap.getDimensions()) {\n\t\t\t\t\tcurrentLocation.x++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentLocation.x != 0) {\t\t\t\t\n\t\t\t\t\tcurrentLocation.x--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (currentLocation.y - ChristopherColumbusLocation.y < 0) {\n\t\t\t\tif (currentLocation.y + 1 < oceanMap.getDimensions()) {\n\t\t\t\t\tcurrentLocation.y++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentLocation.y != 0) {\n\t\t\t\t\tcurrentLocation.y--;\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\t}",
"void moveTo(int dx, int dy);",
"public void moveDown() {\n locY = locY - 1;\n }",
"public void move() {\n\r\n\t}",
"public abstract void move(Position position);",
"public void move(){\n x+=xDirection;\n y+=yDirection;\n }",
"public void move() {\n\t\tmoveX();\n\t\tmoveY();\n\t}",
"public void setToMove(Place destination) throws IllegalOrderException {\n if (destination instanceof Land) {\n if (((Land) destination).isLandlocked()) throw new IllegalOrderException(\"Cannot move Fleet to Landlocked Land\");\n if (destination instanceof Exceptional_Capital_City) throw new IllegalOrderException(\"Must specific the Coast to Move\");\n }\n if (destination.equals(location)) throw new IllegalOrderException(\"This is not a move, make a hold order instead.\");\n if (!location.isAdjacentTo(destination)) throw new IllegalOrderException(\"Destination is not Adjacent to Current Location.\");\n order = new Move(destination);\n }",
"public boolean moveUnit(Position from, Position to);",
"protected void moveToDestination(){\n\t\tqueue.clear();\n\t\twhile (destination[0] < 0){\n\t\t\tqueue.add(\"MOVE S\");\n\t\t\tdestination[0] += 1;\n\t\t}\n\t\twhile (destination[0] > 0){\n\t\t\tqueue.add(\"MOVE N\");\n\t\t\tdestination[0] -= 1;\n\t\t}\n\t\twhile (destination[1] < 0){\n\t\t\tqueue.add(\"MOVE E\");\n\t\t\tdestination[1] += 1;\n\t\t}\n\t\twhile (destination[1] > 0){\n\t\t\tqueue.add(\"MOVE W\");\n\t\t\tdestination[1] -= 1;\n\t\t}\n\t\tdestination = null;\n\t}",
"public void move(int distance);",
"RelocationMove() \n\t{\n\t}",
"public void move() {\n if (this.nextMove.equals(\"a\")) { // move down\n this.row = row + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"b\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"b\")) { // move right\n this.col = col + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"c\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"c\")) { // move up\n this.row = row - 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"a\";\n progress = 0;\n }\n }\n }",
"public void move()\n {\n double angle = Math.toRadians( getRotation() );\n int x = (int) Math.round(getX() + Math.cos(angle) * WALKING_SPEED);\n int y = (int) Math.round(getY() + Math.sin(angle) * WALKING_SPEED);\n setLocation(x, y);\n }",
"void move(double dx, double dy);",
"public void setDirectionMove(double direction);",
"public void move(){\n \n currentFloor = currentFloor + ( 1 * this.direction);\n //if we're at the bottom or top after move, flip the bit\n if(Elevator.MIN_FLOOR == currentFloor \n || currentFloor == Elevator.MAX_FLOOR)\n this.direction *= -1;\n \n if(destinedPassengers[ currentFloor ] > 0)\n elevatorStop( currentFloor, true );\n \n if(building.floor(currentFloor).passengersWaiting() > 0)\n elevatorStop(currentFloor, false);\n \n }",
"public void move() {\n this.pposX = this.posX;\n this.pposY = this.posY;\n this.posX = newPosX;\n this.posY = newPosY;\n }",
"public abstract void move(int direction, double speed);",
"public void move(String direction) {\n\tpreviousMove = direction;\n\tout.println(\"MOVE \" + direction);\n}",
"public void movePiece(Coordinate from, Coordinate to);",
"public abstract void moveTo(double x, double y);",
"public void setTargetPosition2(int position,\n HwDevice[] motorArry)\n throws InterruptedException\n {\n motors.setTargetPosition(position,\n motorArry);\n }",
"private boolean moveTo(AntArea.Cell dest) throws AntArtException {\n if (dest.isAntPresent()) {\n return false;\n }\n\n getCurrentCell().leave(this);\n dest.move(this);\n\n //Update the ant location\n Pair<Integer, Integer> newLoc = dest.getLocation();\n location = new Pair<>(newLoc.getKey(), newLoc.getValue());\n\n return true;\n }",
"public void move() {\n\t\t// tolerance of angle at which the Base starts moving\n\t\tint tolerance = 10;\n\t\tif(Math.abs(angle) < Math.abs(angleDesired)+tolerance && Math.abs(angleDesired)-tolerance < Math.abs(angle)) {\n\t\t\tdouble vX = Math.cos(Math.toRadians(this.angle + 90)) * v;\n\t\t\tdouble vY = Math.sin(Math.toRadians(this.angle + 90)) * v;\n\t\t\t\n\t\t\tthis.x += vX;\n\t\t\tthis.y += vY;\t\n\t\t\tthis.rectHitbox = new Rectangle((int)(x-rectHitbox.width/2),(int)(y-rectHitbox.height/2),rectHitbox.width,rectHitbox.height);\n\t\t}\n\t\t// curTargetPathBoardRectangle\n\t\tRectangle curTPBR = pathBoardRectangles.get(curTargetPathCellIndex).rect;\n\t\tRectangle rectSmallerBR = new Rectangle((int)curTPBR.getCenterX()-5,(int)curTPBR.getCenterY()-5,10,10);\n\t\t// updates the index when it crosses a pathCell so it counts down from pathCell to pathCell,\n\t\t// always having the next pathCell in the array as the target until the end is reached then it stops\n\t\tif(rectSmallerBR.contains(new Point((int)x,(int)y))) {\n\t\t\tif(curTargetPathCellIndex < pathBoardRectangles.size()-1) {\n\t\t\t\tcurTargetPathCellIndex++;\n\t\t\t\tparentGP.boardRect = pathBoardRectangles.get(curTargetPathCellIndex-1);\n\t\t\t\ttAutoDirectionCorrection.restart();\n\t\t\t}else {\n\t\t\t\tparentGP.isMoving = false;\n\t\t\t\tparentGP.boardRect = pathBoardRectangles.get(curTargetPathCellIndex);\n\t\t\t\tpathBoardRectangles.clear();\n\t\t\t\ttAutoDirectionCorrection.stop();\n\t\t\t\tStagePanel.tryCaptureGoldMine(parentGP);\n\t\t\t}\n\t\t}\n\t}",
"public void move(FightCell cell);",
"public int startMoving() throws RobotCrashException{\n \t//holds direction to step in\n \tDirection direction;\n \t//holds the robot about to move\n \tIGridRobot robot;\n \t//holds the return of pathplanner\n \tEntry<IGridRobot, Direction> toMove;\n \t//The task that will be run in a new thread\n \tTask runnable;\n \t//Pool of threads\n \tExecutorService es = \n \t\t\tnew ScheduledThreadPoolExecutor(this.robot2dest.size());\n \t\n \t//Holds the gridcell a robot is about to step to\n \tGridCell newCell;\n \t//A map of currently moving robots\n \tMap<IGridRobot, Direction> movingBots;\n \tint steps = 0;\n \t\n \t//Keep moving robots until the number that reached the destination\n \t//is equal to the number of robots we are moving\n \twhile(this.c.getCount() < this.robot2dest.size()){\n \t\ttoMove = \n \t\t\t\tthis.pathplanner.nextStep(this.warehouse, this.robot2dest);\n \t\t\n \t\tif(toMove != null){\n \t\t\trobot = toMove.getKey();\n \t\tdirection = toMove.getValue();\n \t\tnewCell = GridRobot.oneCellOver(robot.getLocation(),\n \t\t\t\tdirection);\n \t\t\n \t\t//Check if the robot is about to crash into another robot\n \t\tfor(IGridRobot r : this.robot2dest.keySet()){\n \t\t\tif(newCell.equals(r.getLocation())){\n \t\t\t\tthrow new RobotCrashException();\n \t\t\t}\n \t\t}\n \t\t//Check if they are stepping onto where another robot is stepping\n \t\tmovingBots = warehouse.getRobotsInMotion();\n \t\tfor(IGridRobot r : movingBots.keySet()){\n \t\t\tif(GridRobot.oneCellOver(r.getLocation(),\n \t\t\t\t\tmovingBots.get(r)).equals(newCell)){\n \t\t\t\t\n \t\t\t\tthrow new RobotCrashException();\n \t\t\t}\n \t\t}\n \t\t\n \t\t//Move the robot in a new thread\n \t\tthis.warehouse.addMovingRobot(robot, direction);\n \t\tsteps++;\n \t\trunnable = new Task(robot, direction);\n \t\tCompletableFuture.runAsync(runnable, es);\n \t\t}\n \t}\n \treturn steps;\n }",
"private void updateMovement() {\n if (_movementTask == null) {\n return;\n }\n\n if (getOwner().isDead() || _followTarget != null && _followTarget.isDead()) {\n cancelMoveTask2(true);\n return;\n }\n\n // Movement is invalid! Queue a new movement and wait again!\n if (_destinationLocation == null)\n {\n if (_waypoints.peek() != null) {\n _destinationLocation = _waypoints.poll();\n\n if (getOwner().getLocation().getGameSector() != null && getOwner().getLocation().getGameSector().hasActiveNeighbours()) {\n double validatedZ = GeoService.getInstance().validateZ(_destinationLocation.getX(), _destinationLocation.getY(), _destinationLocation.getZ());\n if (validatedZ == Double.MIN_VALUE) {\n _movementTick = System.currentTimeMillis();\n getOwner().getAi().setFindPathCompleted(false);\n cancelMoveTask2(true);\n onMovementComplete();\n return;\n }\n\n if (_destinationLocation != null) {\n _destinationLocation.setZ(validatedZ);\n }\n else {\n _movementTick = System.currentTimeMillis();\n getOwner().getAi().setFindPathCompleted(false);\n cancelMoveTask2(true);\n onMovementComplete();\n return;\n }\n _isSectorActive = true;\n }\n else {\n _isSectorActive = false;\n }\n notifySector(true);\n }\n else\n {\n _movementTick = System.currentTimeMillis();\n getOwner().getAi().setFindPathCompleted(true);\n cancelMoveTask2(true);\n onMovementComplete();\n return;\n }\n }\n\n if (_destinationLocation != null) {\n // Update current character movement, the location.\n float deltaTime = (System.currentTimeMillis() - _movementTick) / 1000.0f;\n float movementSpeed = getOwner().getActionStorage().getMoveSpeed();\n if (getOwner().getActionStorage().getAction().getActionChartActionT().getApplySpeedBuffType().isMove()) {\n movementSpeed *= (getOwner().getGameStats().getMoveSpeedRate().getMoveSpeedRate() + 1_000_000.0f) / 1_000_000.0f;\n }\n\n Location ownerLocation = getOwner().getLocation();\n\n double movementDirectionX = _destinationLocation.getX() - ownerLocation.getX();\n double movementDirectionY = _destinationLocation.getY() - ownerLocation.getY();\n double movementDirectionZ = _destinationLocation.getZ() - ownerLocation.getZ();\n\n double directionLength = Math.sqrt(Math.pow(movementDirectionX, 2) + Math.pow(movementDirectionY, 2) + Math.pow(movementDirectionZ, 2));\n movementDirectionX /= directionLength;\n movementDirectionY /= directionLength;\n movementDirectionZ /= directionLength;\n\n ownerLocation.setXYZ(\n ownerLocation.getX() + movementDirectionX * movementSpeed * deltaTime,\n ownerLocation.getY() + movementDirectionY * movementSpeed * deltaTime,\n ownerLocation.getZ() + movementDirectionZ * movementSpeed * deltaTime\n );\n\n if (_isSectorActive && !_navigationType.isAir()) {\n double validatedZ = GeoService.getInstance().validateZ(ownerLocation.getX(), ownerLocation.getY(), ownerLocation.getZ());\n if (validatedZ == Double.MIN_VALUE) {\n getOwner().getAi().setFindPathCompleted(false);\n cancelMoveTask2(true);\n onMovementComplete();\n return;\n }\n\n ownerLocation.setZ(validatedZ);\n }\n\n if (ownerLocation.isValid() && World.getInstance().getWorldMap().updateLocation(getOwner(), ownerLocation.getX(), ownerLocation.getY())) {\n double distanceToPoint = MathUtils.getDistance(ownerLocation, _destinationLocation) - getOwner().getTemplate().getBodySize();\n notifyVehicleMovement();\n\n if (_followTarget != null) {\n distanceToPoint -= _followTarget.getTemplate().getBodySize();\n\n if (!MathUtils.isInRange(_destinationLocation, _followTarget.getLocation(), 150)) {\n _destinationLocation.setLocation(_followTarget.getLocation());\n notifySector(true);\n } else { // No more waypoint's available. Send movement stop and events.\n if (distanceToPoint < 75 || distanceToPoint < getOwner().getTemplate().getAttackRange() && getOwner().getAi().getBehavior().isChase()) {\n getOwner().getAi().setFindPathCompleted(true);\n cancelMoveTask2(false);\n onMovementComplete();\n }\n }\n } else {\n // Check if we are near another destination, then we will\n // switch to another waypoint instead to continue our journey.\n Location nextWaypoint = _waypoints.peek();\n if (nextWaypoint != null) {\n if (distanceToPoint < 100) {\n _destinationLocation = null;\n }\n } else { // No more waypoint's available. Send movement stop and events.\n if (distanceToPoint < 75 || distanceToPoint < getOwner().getTemplate().getAttackRange() && getOwner().getAi().getBehavior().isChase()) {\n getOwner().getAi().setFindPathCompleted(true);\n cancelMoveTask2(false);\n onMovementComplete();\n }\n }\n }\n } else {\n getOwner().getAi().setFindPathCompleted(false);\n cancelMoveTask2(true);\n onMovementComplete();\n }\n }\n _movementTick = System.currentTimeMillis();\n }",
"public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tif (gr.isValid(next)) {\n\t\t\tsetDirection(getLocation().getDirectionToward(next));\n\t\t\tmoveTo(next);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t\tFlower flower = new Flower(getColor());\n\t\tflower.putSelfInGrid(gr, loc);\n\t}",
"public void go_to_base_position() {\n stop_hold_arm();\n Dispatcher.get_instance().add_job(new JMoveArm(RobotMap.Arm.pot_value_base, 0.9, 0.7, 0.7, 0.2, 0.8, false, false));\n // Extend the arm after getting to the base position\n Dispatcher.get_instance().add_job(new JRunnable(() -> Pneumatics.get_instance().set_solenoids(true), this));\n hold_arm();\n }",
"public abstract Field.RadioData move(Field.RadioData radioData, Location newLoc);",
"@NotNull\n void move(Direction direction) {\n this.position.move(direction);\n lookingDirection = direction;\n }",
"public void go_to_switch_position() {\n stop_hold_arm();\n Dispatcher.get_instance().add_job(new JMoveArm(RobotMap.Arm.pot_value_switch, 0.9, 0.7, 0.7, 0.2, 0.8, false, false));\n hold_arm();\n }",
"@Override\r\n\tpublic void move() {\n\t\tPoint target = strategy.search(this.getLocation(), new Point(0,0));\r\n\r\n\t\tint tries = 0;\r\n\t\t\r\n\t\twhile(!state.equals(\"Inactive\") && !game.movement(this, target.x, target.y)){\r\n\t\t\ttarget = strategy.search(new Point(x,y),playerLocation);\r\n\t\t\ttries++;\r\n\t\t\tif(tries > 4) return; // the search strategy has 4 tries to pick a valid location to move to\r\n\t\t}\r\n\t\t\r\n\t\tx = target.x;\r\n\t\ty = target.y;\r\n\r\n\t\tmoveSprite();\r\n\t}",
"protected void updateMobilityMove(CommandHelper cmdHelp, PlanState planState) {\r\n ParameterList params = cmdHelp.getParameters();\r\n double[] xyt = params.getVec3d(MOBILITY_METHOD_MOVE_PARAM_END_LOCATION.VALUE).userData;\r\n double[] xytTolerance = params.getVec3d(MOBILITY_METHOD_MOVE_PARAM_END_LOCATION_TOLERANCE.VALUE).userData;\r\n //String refFrame = params.getString(MOBILITY_METHOD_MOVE_PARAM_FRAME_NAME.VALUE);\r\n // FIXME we will assume site frame for now\r\n //Matrix3 wpRot = new Matrix3();\r\n Vector3 wpXyz = new Vector3(xyt[0], xyt[1], 0);\r\n double theta = xyt[2];\r\n float tolerance = 0.5f*(float)(xytTolerance[0]+xytTolerance[1]);\r\n boolean isDirectional = Math.abs(xytTolerance[2]) <= Math.PI;\r\n\r\n //-- get z from terrain\r\n ReadOnlyTransform siteToWorld = planState.getSiteToWorldTransform();\r\n siteToWorld.applyForward(wpXyz, t_world);\r\n VerveBaseMap.setZFromMap(t_world, 0);\r\n siteToWorld.applyInverse(t_world, wpXyz);\r\n\r\n setIsDirectional(isDirectional);\r\n setTolerance(tolerance);\r\n setDirection(theta);\r\n\r\n planState.setXyz(wpXyz);\r\n planState.setYaw(theta);\r\n }",
"public void move() {\n\n }",
"@Test\n\tpublic final void testMoveTo() {\n\t\tRoom testRoom = new Room(\"247\", 2, \"Computer Lab\");\n\t\t\n\t\tanimal.moveTo(testForest);\n\t\tassertEquals(\"Move To Forest\", animal.location(), testForest);\n\t\t\n\t\tanimal.moveTo(testRoom);\n\t\tassertEquals(\"Move To Room\", animal.location(), testForest);\t\n\t\t\n\t}",
"@Override\n public void move() {\n switch (direction){\n case SOUTH:\n position.setY(position.getY() + currentSpeed);\n break;\n case NORTH:\n position.setY(position.getY() - currentSpeed);\n break;\n case WEST:\n position.setX(position.getX() - currentSpeed);\n break;\n case EAST:\n position.setX(position.getX() + currentSpeed);\n }\n }",
"void moveRobot(RobotConnectionManager robotConnectionManager, int toX, int toY) {\n int numberTry = 0; // number of attempts\n boolean isSuccessConnection = false; // successful connection and movement\n RobotConnection robotConnection = null;\n while ((isSuccessConnection != true) & (numberTry < 3)) {\n try {\n robotConnection = robotConnectionManager.getConnection();\n robotConnection.moveRobotTo(toX, toY);\n isSuccessConnection = true;\n } catch (RobotConnectionException e) {\n isSuccessConnection = false;\n } catch (Throwable e1) {\n isSuccessConnection = false;\n throw e1;\n } finally {\n if (robotConnection != null) {\n try {\n robotConnection.close();\n } catch (RobotConnectionException e3) {\n //throw e3;\n } finally {\n if (isSuccessConnection == false) numberTry++;\n }\n } else numberTry++;\n }\n }\n if ((isSuccessConnection == false) & (numberTry == 3)) {\n throw new RobotConnectionException(\"Connection failure\");\n }\n }",
"private static Activity moveInDirection(int x, int y) {\n return Activity.newBuilder()\n .addSubActivity(() -> {\n Position pos = Players.getLocal().getPosition();\n while(pos.isPositionWalkable()) {\n pos = pos.translate(x, y);\n }\n pos = pos.translate(-x, -y);\n while(!Movement.setWalkFlagWithConfirm(pos)) {\n pos = pos.translate(-x, -y);\n }\n Time.sleepUntil(() -> !Movement.isDestinationSet(), 1000 * 10);\n })\n .build();\n }",
"public void move() {\n super.move(DIRECTION.getRandom());\n }",
"public abstract void move();",
"public abstract void move();",
"public abstract void move();",
"public abstract void move();",
"public abstract void move();"
] | [
"0.68645954",
"0.66285336",
"0.65667045",
"0.6520033",
"0.64327484",
"0.6408185",
"0.6246999",
"0.6243179",
"0.6237689",
"0.6208378",
"0.61832297",
"0.61492085",
"0.6126665",
"0.6102054",
"0.60916513",
"0.6085215",
"0.6082548",
"0.60788554",
"0.6078768",
"0.6023804",
"0.6019451",
"0.60125977",
"0.5996017",
"0.5995656",
"0.59949934",
"0.59674287",
"0.59624916",
"0.5932985",
"0.5929533",
"0.59228003",
"0.5914244",
"0.5907828",
"0.58998996",
"0.58998996",
"0.5892617",
"0.5859692",
"0.5838656",
"0.58349025",
"0.5824527",
"0.5811228",
"0.5794188",
"0.57779425",
"0.57774335",
"0.57682854",
"0.57646",
"0.57547194",
"0.57495224",
"0.5721221",
"0.571657",
"0.57157207",
"0.57099503",
"0.5699289",
"0.5697231",
"0.56938714",
"0.56932396",
"0.56789446",
"0.5671649",
"0.56701523",
"0.56554306",
"0.56519544",
"0.56497043",
"0.564803",
"0.5631047",
"0.5627085",
"0.56067455",
"0.56058365",
"0.5604638",
"0.56011605",
"0.5599869",
"0.55908203",
"0.558627",
"0.5577604",
"0.55726653",
"0.5561662",
"0.5559755",
"0.55557084",
"0.55465794",
"0.55399144",
"0.5539194",
"0.5533393",
"0.5532636",
"0.5532114",
"0.5528688",
"0.5523582",
"0.55166084",
"0.5511365",
"0.5503783",
"0.5502915",
"0.55015075",
"0.54997265",
"0.5498532",
"0.549356",
"0.5488211",
"0.54830515",
"0.5482511",
"0.5482492",
"0.5482492",
"0.5482492",
"0.5482492",
"0.5482492"
] | 0.62502915 | 6 |
/ Player stat getters Returns the current total damage taken stat. | public int getDamageTaken () {
return this.damageTaken;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getDamageTaken() {\n return this.damageTaken;\n }",
"public int getHealth() {\n return getStat(health);\n }",
"@Override\n public PlayerStatistics getPlayerStats() {\n return this.playerStats;\n }",
"public double getPlayerFullHP();",
"public int getDamage () {\n\t\treturn (this.puissance + stuff.getDegat());\n\t}",
"@Override\r\n public int getSpecialValue() {\n int num = this.getCombatLevel();\r\n num += this.levelChangeAgainstCultistPlayer;\r\n \r\n return num;\r\n }",
"public Integer getStat() {\r\n return stat;\r\n }",
"public Integer getStat() {\n return stat;\n }",
"public Integer getStat() {\n return stat;\n }",
"public PlayerStats getPlayerStats() {\n /* Get score and kills */\n String score = String.valueOf(this.getScoreCounter().getScore());\n String kills = Integer.toString(this.killCount);\n \n playerStats.setScoreId(\"1\"); /* This will be changed in SavePlayerStats */\n playerStats.setUserId(\"\"); /* This will be changed when SavePlayerStats */\n playerStats.setScore(score);\n playerStats.setKills(kills);\n playerStats.setNewTimestamp();\n \n return playerStats;\n }",
"public int getDamage() {\n \t\treturn damage + ((int) 0.5*level);\n \t}",
"public int getPlayerTotal() {\n\t\t\treturn playerTotal;\n\t\t}",
"public PokemonStats getStats() {\n\t\treturn this.stats;\n\t}",
"public int getPotion() {\n return getStat(potion);\n }",
"public HashMap<String, Double> getStats() {\n return playerStats; // stub\n }",
"public double getHealth() {\n return classData.getHealth(level);\n }",
"float getPercentHealth();",
"float getBonusPercentHP();",
"@Override\n public double getDamageAmount() {\n return this.getStrength().getAbilityValue();\n }",
"public int getDamage() {\n //TODO\n return 1;\n }",
"public int getStat() {\n return statUse.getNumerator();\n }",
"public int getBaseHealth()\r\n {\r\n return mBaseHealth;\r\n }",
"public float getHealth(){\n return health.getHealth();\n }",
"public int getWeaponDamage() {\n return Math.round(type.getWeaponDamage()*type.getItemLevelMultipliers()\n\t\t\t\t[level - 1]);\n }",
"public int getHealth()\r\n {\r\n return health;\r\n }",
"public static int getHealth()\r\n\t{\r\n\t\treturn health;\r\n\t}",
"public int getDifficulty() {\n return getStat(difficulty);\n }",
"public int getDamage() {\n return damage;\n }",
"public double getHealthRelative() {\n\t\treturn getHealth() / (double) getMaxHealth();\n\t}",
"public int getWeaponDamage()\n {\n \t\treturn mystuff.getWepDmg();\n }",
"public int getGoalTally(Player player){\r\n return player.getGoal();\r\n }",
"int getDamage();",
"int getDamage();",
"int getDamage();",
"int getDamage();",
"int getDamage();",
"@Override\r\n public int getBasicValue() {\n return this.getCombatLevel();\r\n }",
"public int getTotalValue() {\n return getTotalOfwins()+getTotalOfGames()+getTotalOfdefeats()+getTotalOftimePlayed();\n }",
"public int getHealth()\r\n {\r\n return this.health;\r\n }",
"public int getHumanPlayerHits() {\n return humanPlayerHits;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public String getStat() {\r\n\t\treturn stat;\r\n\t}",
"public int getCurHealth() {\n return this.curHealth;\n }",
"int getHealth() {\n return health;\n }",
"public float getBonusPercentHP() {\n return bonusPercentHP_;\n }",
"public int getDamage() {\r\n\t\treturn myDamage;\r\n\t}",
"public int getCurrentHealth() {\r\n return currentHealth;\r\n }",
"public int getHP()\n\t{\n\t\tUnit u = this;\n\t\tint hp = 0;\n\t\tfor(Command c : u.race.unitcommands)\n\t\t\tif(c.command.equals(\"#hp\"))\n\t\t\t\thp += Integer.parseInt(c.args.get(0));\n\t\t\n\t\tfor(Command c : u.getSlot(\"basesprite\").commands)\n\t\t\tif(c.command.equals(\"#hp\"))\n\t\t\t{\n\t\t\t\tString arg = c.args.get(0);\n\t\t\t\tif(c.args.get(0).startsWith(\"+\"))\n\t\t\t\t\targ = arg.substring(1);\n\t\t\t\t\n\t\t\t\thp += Integer.parseInt(arg);\n\t\t\t}\n\t\t\n\t\tif(hp > 0)\n\t\t\treturn hp;\n\t\telse\n\t\t\treturn 10;\n\t}",
"public int getDamage() {\r\n\t\treturn damage;\r\n\t}",
"public int getPlayermoney() {\n\t\treturn playermoney;\n\t}",
"public double getDamage() {\n return damage;\n }",
"int getHealth();",
"public int getHealth() {\n \t\treturn health;\n \t}",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getHealth();",
"public void updateStats( ) {\r\n\t\tperseverance = owner.perseverance;\r\n\t\tobservation = owner.observation;\r\n\t\tintellect = owner.intellect;\r\n\t\tnegotiation = owner.negotiation;\r\n\t\ttact = owner.tact;\r\n\t\tstrength = owner.strength;\r\n\r\n\t\txCoord = owner.xCoord;\r\n\t\tyCoord = owner.yCoord;\r\n\r\n\t\tmaxHealth = 2400 + ( perseverance * 200 );\r\n\r\n\t\thealth = maxHealth;\r\n\r\n\t\tsetDamages( );\r\n\t}",
"public int getHealth() {\n return this.health;\n }",
"public double getAStat() {\n\t\treturn aStatM;\n\t}",
"public double getDamage() {\r\n\t\treturn damage;\r\n\t}",
"public int getCurrentHealth() {\n return currentHealth;\n }",
"public float getDamage() {\n return damage;\n }",
"Float getHealth();",
"public short getSiegeWeaponDamage();",
"public String playerStatsToString() {\r\n\t\t\tString stats = \"\";\r\n\t\t\tstats = stats + username + \"\\n\";\r\n\t\t\tstats = stats + numberOfWins + \"\\n\";\r\n\t\t\tstats = stats + numberOfGames + \"\\n\";\r\n\t\t\tstats = stats + numberOfAttacks + \"\\n\";\r\n\t\t\tstats = stats + numberOfSPAttacks + \"\\n\";\r\n\t\t\tstats = stats + numberOfMeals + \"\\n\";\r\n\t\t\treturn stats;\r\n\t\t}",
"public float getBonusPercentHP() {\n return bonusPercentHP_;\n }",
"@Override\r\n\tpublic int getHealth() {\n\t\treturn health;\r\n\t}",
"public int getStat(Stat stat) {\n return stats.get(stat);\n }",
"public int getHealth() { return this.health; }",
"public int getHealth(){\n return health;\n }",
"public double damageCalculation(NPC mob, Player player) {\r\n double weapon = mob.getWeapon().getDamage();\r\n double attack = mob.getStats().getAttack();\r\n double defence = player.getStats().getDefence();\r\n\r\n return ((weapon + attack) * 2 - defence);\r\n }",
"public int getDamage() {\n\t\treturn this.damage;\n\t}",
"public String currStats(){\n\t\treturn String.format(\"Damage: %f\\nRange (in tiles): %f\\nFire\"\n\t\t\t\t+ \" speed (shots per second): %d\\nUpgrade cost: %d\", damage,\n\t\t\t\trange / MainFrame.TILE_SIZE, initCooldown, getCostToUpgrade());\n\t}",
"public double damageCalculation(Player player, NPC mob) {\r\n double weapon = player.getWeapon().getDamage();\r\n double attack = player.getStats().getAttack();\r\n double defence = mob.getStats().getDefence();\r\n double critMulti = 1;\r\n\r\n// Chance chance = new Chance(player.getLevel(), player.getStats().getDexterity(), player.getCharacterClass());\r\n Chance chance = new Chance(player.getStats().getCritChance());\r\n boolean crit = chance.getSuccess();\r\n\r\n if (crit) {\r\n critMulti = 2;\r\n System.out.println(\"CRIT!\");\r\n } else {\r\n// System.out.println(\"No crit\");\r\n }\r\n\r\n return ((weapon + attack) * 2 - defence) * critMulti;\r\n }",
"public double getHealth() { return health; }",
"public int getEquippedWeaponDamage() {\n return 0;\n }",
"public int getDamage()\n\t{\n\t\treturn Damage;\n\t}",
"public double getHealth() {\r\n\t\treturn health;\r\n\t}",
"public int getHealth() {\r\n\t\treturn health;\r\n\t}",
"public float getTotalEffect(Player player)\n {\n return leastAmount + BONUS_MULTIPLIER * player.getIntelligence();\n }",
"public int getCurHealth()\n\t{\n\t\treturn this.curHealth;\n\t}",
"public int getCurHealth() {\n\t\treturn curHealth;\n\t}",
"public double getHealth(){\r\n return health;\r\n }",
"public int getPlayerOnePoints() {\n if (gameStatus == null) return -1;\n return gameStatus.getPlayerOnePoints();\n }",
"public Integer getHealth();",
"@Override\n public int getTotalHumanPlayers() {\n return totalHumanPlayers;\n }",
"public int getHealth() {\n\t\treturn this.Health;\n\t}",
"public float getHealth()\n {\n return health;\n }",
"public int getWeaponDamage()\n\t{\n\t\treturn weaponDamage;\n\t}",
"public String stats() { \r\n String stats; \r\n stats = getWins() + \" wins, \" + getLosses() + \" losses, \" \r\n + getSaves() + \" saves, \" + getEra() + \" ERA\"; \r\n return stats;\r\n }",
"public int getGetDamage() {\r\n\t\treturn getDamage;\r\n\t}",
"public int getDamage() {\n\t\t\treturn damage;\n\t\t}",
"public int getHealth() {\n\t\treturn currentHealth;\n\t}"
] | [
"0.7228532",
"0.7182784",
"0.71791816",
"0.7105291",
"0.69933575",
"0.6965577",
"0.68701655",
"0.68668985",
"0.68668985",
"0.6858302",
"0.68388206",
"0.68031484",
"0.6797355",
"0.676726",
"0.6742608",
"0.6689952",
"0.6678383",
"0.66590834",
"0.66122234",
"0.6604258",
"0.6581413",
"0.6571727",
"0.6567445",
"0.65478414",
"0.6527964",
"0.6515704",
"0.6507898",
"0.64930457",
"0.64926296",
"0.64909625",
"0.6484326",
"0.6467668",
"0.6467668",
"0.6467668",
"0.6467668",
"0.6467668",
"0.64605397",
"0.64582753",
"0.64572704",
"0.64530706",
"0.64511824",
"0.64511824",
"0.64511824",
"0.64511824",
"0.64511824",
"0.6431852",
"0.64307624",
"0.6425107",
"0.6414069",
"0.64030373",
"0.64007056",
"0.63997424",
"0.6394816",
"0.6386405",
"0.63828593",
"0.6379297",
"0.63783383",
"0.6375403",
"0.6375403",
"0.6375403",
"0.6375403",
"0.6375403",
"0.63692707",
"0.63683516",
"0.63651717",
"0.63645935",
"0.6359186",
"0.6353002",
"0.63516515",
"0.63460237",
"0.6341953",
"0.6335723",
"0.63304484",
"0.6319529",
"0.63106877",
"0.63045174",
"0.6303755",
"0.630027",
"0.6296789",
"0.6289693",
"0.6288834",
"0.62884283",
"0.62849236",
"0.62796164",
"0.62672395",
"0.6266522",
"0.62654203",
"0.6263096",
"0.6260097",
"0.6259528",
"0.6248662",
"0.62483996",
"0.62417126",
"0.6241428",
"0.6240191",
"0.62307745",
"0.6230146",
"0.621883",
"0.62172097",
"0.6215864"
] | 0.7128847 | 3 |
Returns the total number of robots destroyed. | public int getRobotsDestroyed () {
return this.robotsDestroyed;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final int getDeponentCount() {\r\n synchronized (f_seaLock) {\r\n return f_deponents.size();\r\n }\r\n }",
"public int howManyHeroDead() {\r\n int count;\r\n count = 0;\r\n for (Hero h: team) {\r\n if (h.isDead()) {\r\n count = count + 1;\r\n }\r\n }\r\n return count;\r\n }",
"public int nbEnemiesAlive(){\n return state.getPlayers().size()-1;\n }",
"public int getAvailDoorCount() {\n int count = 0;\n for (Door d: getDoors()) {\n if (!d.getUsed()) {\n count++;\n }\n }\n return count;\n }",
"public long getVehicleCount() {\n return send(\"\", HttpMethod.GET, VEHICLES_GET_URL, Map.of(), Long.class);\n }",
"public int getNumDeaths() {\n\t\treturn this.numDeaths;\n\t}",
"int senseActualRobotCount(RobotController rc, Robot[] alliedRobots) throws GameActionException {\r\n\t\t\r\n\t\tRobotCount counter = new RobotCount(alliedRobots,rc);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\treturn counter.getTotalRobotCount();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public int sizeOfAgentArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(AGENT$0);\r\n }\r\n }",
"public int size() {\n\t\treturn vehicles.size();\n\t}",
"public static int getPatientsesCount()\n throws com.liferay.portal.kernel.exception.SystemException {\n return getService().getPatientsesCount();\n }",
"public int getNumDead() {\n int count = 0;\n for (Map.Entry<Integer, Enemy> entry :enemies.entrySet()) {\n if (entry.getValue().isDead()) {\n count++;\n }\n }\n return count;\n }",
"public int getNumRoads() {\n \t\treturn roads.size();\n \t}",
"public int getNumeroVuelos() {\r\n\t\treturn vuelos.size();\r\n\t}",
"public int getVehicleCount() {\r\n return vehicleCount;\r\n }",
"public int getNumAlive() {\n return numAlive;\n }",
"public int getLosses() {\n return losses;\n }",
"public static final int getCameraCount(){\n if( !libraryLoaded() )\n return -1;\n return LIBRARY.CLEyeGetCameraCount();\n }",
"public int numberOfBalls() {\n this.numberOfBalls = 4;\n return 4;\n }",
"public int getVdusCount() {\n return vdus_.size();\n }",
"public int numAlivePokemon() {\r\n\t\tint count = 0;\r\n\t\tfor (Pokemon p : ownedPokemon) {\r\n\t\t\tif (p.getCurrentHP() > 0) {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}",
"public int rodCount ();",
"public int getLosses() {\n return losses;\n }",
"@Override\n\tpublic int countAll() throws SystemException {\n\t\tLong count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_ESFINSTRUCTSSHOOTINGDIRECTOR);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}",
"protected int numberRemainingTickets()\n\t{\n\t\treturn tickets.size();\n\t}",
"public int sizeOfGuardianArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(GUARDIAN$22);\n }\n }",
"public int sizeOfTimingArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(TIMING$2);\r\n }\r\n }",
"public int getBallsCount() {\n return balls.size();\n }",
"public int getMotorCount() {\n\t\treturn motors.size();\n\t}",
"public int size() {\n\t\t\treturn gameObjects.size();\n\t\t}",
"public static int findNumberOfCreatedComputers() {\n return objCounter;\n }",
"public int numWorlds(){\n return worlds.size();\n }",
"public int sizeOfDosageArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DOSAGE$14);\n }\n }",
"public static int numberOfStops() {\n return getAllStops().size();\n }",
"public int sizeOfTurnSpeedArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(TURNSPEED$6);\r\n }\r\n }",
"public int lives() {\r\n return lives;\r\n }",
"@Exported\n public int getNumberOfSlaves() {\n if (this.slaves == null) {\n return 0;\n }\n return this.slaves.size();\n }",
"public int getAmountOfVideosThatWillBeSaved(){\n\t\treturn (int) (Math.ceil((videoLength/videoIterationLength)));\n\t}",
"public int getNumMoving() {\n int numMoving = 0;\n for (BaseSingle single : aliveTroopsMap.keySet()) {\n if (single.getState() == SingleState.MOVING ||\n single.getState() == SingleState.CATCHING_UP ||\n single.getState() == SingleState.ROUTING) {\n numMoving += 1;\n }\n }\n return numMoving;\n }",
"public int getVdusCount() {\n if (vdusBuilder_ == null) {\n return vdus_.size();\n } else {\n return vdusBuilder_.getCount();\n }\n }",
"public int getAgentsCount() {\n return agents_.size();\n }",
"@Exported\n public int getNumberOfOfflineSlaves() {\n int count = 0;\n for (Slave s : slaves) {\n if (s.getComputer().isOffline()) {\n count++;\n }\n }\n return count;\n }",
"public int size() {\n return enemies.size();\n }",
"public int countPlayers(){\n return players.size();\n }",
"public long getNumElementsToRemove() {\n return elementsToRemove;\n }",
"int getTrucksCount();",
"public int numberOfBalls() {\r\n return 3;\r\n }",
"public double getLastPhotonCount() {\r\n return photoncount;\r\n }",
"public int getNumElementsRemoved() {\n return elementsRemoved;\n }",
"public int getTutorsCount() {\n return mTutorsCount;\n }",
"int getReaultCount();",
"public int getCountOfFreeDevices() {\n int count = 0;\n for (TestDevice td : mDevices) {\n if (td.getStatus() == TestDevice.STATUS_IDLE) {\n count++;\n }\n }\n return count;\n }",
"@Override\n\tpublic int numOfCollisions() {\n\n\t\treturn this.collision;\n\t}",
"int getDeleteUserMonsterUuidsCount();",
"public int nrOfPlayers() {\n int playerCount = 0;\n for (Player player : players) {\n if (player.getName() != null) {\n playerCount++;\n }\n }\n\n return playerCount;\n }",
"public int getNumberOfPlayers() {\n return listaJogadores.size() - listaJogadoresFalidos.size();\n }",
"public int getDeaths() {\n return deaths;\n }",
"public int getObjectCount() {\n\t\treturn objects.size(); // Replace with your code\n\t}",
"@Override\n public int getLibrosCount() throws SystemException {\n return libroPersistence.countAll();\n }",
"public int getActorsSize() {\r\n\t\treturn actors.size();\r\n\t}",
"public int getNumOfDoors() {\r\n\t\treturn this.numOfDoors;\r\n\t}",
"public int getNumberUnplayedRoads() {\n\t\t return playerPieces.getNumberUnplayedRoads();\n\t }",
"public int getNumExits() {\n return mySize.getNumExits();\n }",
"public int size() {\r\n return team.size();\r\n }",
"public int getDeleteUserMonsterUuidsCount() {\n return deleteUserMonsterUuids_.size();\n }",
"public int getStatsCount() {\n return stats_.size();\n }",
"public int getTotalCollisions(){\r\n return totalCollisions;\r\n }",
"public int getReaultCount() {\n return reault_.size();\n }",
"@Exported\n public int getNumberOfOnlineSlaves() {\n int count = 0;\n for (Slave s : slaves) {\n if (s.getComputer().isOnline()) {\n count++;\n }\n }\n return count;\n }",
"public static int numberObjects()\r\n\t{\r\n\t\treturn(no_of_obj);\r\n\t}",
"public int getNumTroops(){\n return this.troops;\n }",
"public int playersCount(){\r\n\t\treturn players.size();\r\n\t}",
"public long count() {\n\t\treturn 0;\n\t}",
"public long count() {\n\t\treturn 0;\n\t}",
"public int getNbVehicles() {\n\t\t\treturn K;\r\n\t\t}",
"public int size()\n\t{\n\t\treturn creatures.size();\n\t}",
"public int getAgentsCount() {\n if (agentsBuilder_ == null) {\n return agents_.size();\n } else {\n return agentsBuilder_.getCount();\n }\n }",
"public int getWheels() {\n\t\treturn this.numOfWheels;\n\t}",
"public int getTotalEnemies() {\n\t\treturn totalEnemies;\n\t}",
"public int getNumMotorCycles() {\r\n\t\treturn numMotorCycles;\r\n\t}",
"public int checkNoOfRapelPlayerHolds () { return noOfRapels; }",
"public int getDeleteUserMonsterUuidsCount() {\n return deleteUserMonsterUuids_.size();\n }",
"int getMonstersCount();",
"int getMonstersCount();",
"public int getTrucksCount() {\n if (trucksBuilder_ == null) {\n return trucks_.size();\n } else {\n return trucksBuilder_.getCount();\n }\n }",
"public void updateNumberOfVehicles() {\r\n numberOfVehicles = getVehicles().size();\r\n }",
"public int getRemainingAmount() {\n\t\treturn mVehicles.size();\n\t}",
"@Override\n\tpublic int countTeam() {\n\t\treturn 0;\n\t}",
"int getCameraCount();",
"public int getNumRobots() {\n return ((Integer)numRobotsSpinner.getValue()).intValue();\n }",
"public int numHunks() {\n return jniNumHunks(getRawPointer());\n }",
"public int getNumHurtboxes() {\n return this.weapon.getNumHurtboxes();\n }",
"public synchronized int countBaseObservers() {\n return obs.size();\n }",
"private static int getNumLiveUnits(ArrayList<Unit> party){\n\t\tint count=0;\n\t\tfor(Unit u:party){\n\t\t\tif(!u.getPokemon().isFainted())\n\t\t\t\tcount++;\n\t\t}\n\t\treturn count;\n\t}",
"public int getKillCount(){\n return killCount;\n }",
"public int numOfEmptyRooms() {\n return (int) IntStream.rangeClosed(0, numOfRooms - 1)\n .mapToObj(x -> internalList.get(x)).filter(room -> !room.isOccupied()).count();\n }",
"int getTotalBotCount() {\n int t = 0;\n\n for (Integer i : m_botTypes.values())\n t += i;\n\n return t;\n }",
"public int getOrcCount() {\n\t\tcounter = 0;\n\t\tfor (int row = 0; row < battlefield.length; row++) {\n\t\t\tfor (int column = 0; column < battlefield[row].length; column++) {\n\t\t\t\tif (battlefield[row][column].getOrc() != null) {\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn counter;\n\t}",
"public int losses(String team) {\n\n return 0;\n }",
"int numberOfBalls();",
"int getStatsCount();"
] | [
"0.63739014",
"0.6300302",
"0.6286165",
"0.60302985",
"0.5999212",
"0.5994575",
"0.5917951",
"0.59037125",
"0.5894288",
"0.5881899",
"0.5868408",
"0.5803729",
"0.5796102",
"0.57862467",
"0.57723135",
"0.5745216",
"0.5732841",
"0.5729875",
"0.57205826",
"0.57155496",
"0.5713998",
"0.5707711",
"0.5688077",
"0.5670772",
"0.56630486",
"0.565265",
"0.5643247",
"0.5639548",
"0.56390595",
"0.56343836",
"0.563178",
"0.5631776",
"0.5627571",
"0.56154186",
"0.5611914",
"0.5611874",
"0.5610229",
"0.5606038",
"0.5605393",
"0.56041783",
"0.5591908",
"0.55827516",
"0.5578602",
"0.55749434",
"0.55668575",
"0.55608875",
"0.55608827",
"0.5555659",
"0.55472547",
"0.5547043",
"0.5545484",
"0.5535181",
"0.5528744",
"0.5523168",
"0.55165833",
"0.55081195",
"0.55039996",
"0.550263",
"0.5500995",
"0.550025",
"0.54992664",
"0.54954267",
"0.5482622",
"0.5480822",
"0.5479192",
"0.54788536",
"0.5477787",
"0.5475702",
"0.54753983",
"0.5474983",
"0.54748106",
"0.54740906",
"0.54740906",
"0.5471479",
"0.54642195",
"0.54593",
"0.54587924",
"0.54483956",
"0.54400736",
"0.54320216",
"0.5425144",
"0.5423284",
"0.5423284",
"0.5421247",
"0.5418331",
"0.5409407",
"0.54028094",
"0.54007035",
"0.54004085",
"0.5399082",
"0.53964555",
"0.5395394",
"0.53947896",
"0.5385928",
"0.53826565",
"0.5374926",
"0.53657335",
"0.53640693",
"0.53608066",
"0.53595424"
] | 0.77745795 | 0 |
Returns the current number of tiles moved statistic. | public int getTilesMoved () {
return this.tilesMoved;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNumMoving() {\n int numMoving = 0;\n for (BaseSingle single : aliveTroopsMap.keySet()) {\n if (single.getState() == SingleState.MOVING ||\n single.getState() == SingleState.CATCHING_UP ||\n single.getState() == SingleState.ROUTING) {\n numMoving += 1;\n }\n }\n return numMoving;\n }",
"public int moves()\n {\n return numberOfMoves;\n }",
"int moveCount() {\r\n return _moveCount;\r\n }",
"public int getNumberOfMoves();",
"public int getNumMoves() {\n\t\treturn numMoves;\n\t}",
"public int getMoveCount() {\r\n return this.moveCount;\r\n }",
"public int getMoveCount() {\r\n\t\treturn moveCount;\r\n\r\n\t}",
"public int getNumberOfMoves() {\r\n return numberOfMoves;\r\n }",
"public int getMoveCount() {\n\t\treturn moveCount;\n\t}",
"public int tilesRemain() {\n return tiles.size();\n }",
"public int totalSteps() {\n return moves.size();\n }",
"@Override\n public int getNumXTiles() {\n return getMaxTileX() - getMinTileX() + 1;\n }",
"int movesMade() {\n return _moves.size();\n }",
"public int moves() {\n return moves;\n }",
"public int moves() {\n return moves;\n }",
"public int moves() {\n return moveMin;\n }",
"public int getHasMoved() {\n validify();\n return Client.INSTANCE.pieceGetHasMoved(ptr);\n }",
"public int moves()\n {\n return moves;\n }",
"public int size()\r\n\t{\r\n\t\treturn _tiles.size();\r\n\t}",
"public int getHexesMoved() {\n if (getLastStep() == null) {\n return 0;\n }\n return getLastStep().getDistance();\n }",
"public int moveScore(long move) {\r\n return popcount(compute_winning_position(bitboard | move, mask));\r\n }",
"public int moves() {\n return goal == null ? -1 : goal.numMoves;\n }",
"public int moves() {\n\n return initialSolvable ? solutionNode.numberOfMovesMade : -1;\n }",
"int moves() {\n return moves;\n }",
"public int getTurnsSinceLastMove () {\r\n\t\treturn this.turnsSinceLastMove;\r\n\t}",
"public int moves() {\n\t\tif (goal == null)\n\t\t\treturn -1;\n\t\telse\n\t\t\treturn goal.moves;\n\t}",
"int movesMade() {\n return _moveMade;\n }",
"public int getShotsFiredOfLoadedMap() {\r\n\t\t\r\n\t\t//TODO\r\n\t\t\r\n\t\treturn -1;\r\n\t}",
"public int getNumMissiles(){\n return this.nunMissiles;\n }",
"public int moves() {\n return isSolvable() ? finalMove.moves : -1;\n }",
"@Override\n public int getNumYTiles() {\n return getMaxTileY() - getMinTileY() + 1;\n }",
"public int moves() {\r\n if (!isSolvable) return -1;\r\n return goal.previousMoves;\r\n }",
"public int getNumNotHit()\n {\n return shipCoordinates.size() - hitCoordinates.size();\n }",
"public int moves() {\n return solution.size() - 1;\n }",
"public int moves()\n {\n\n if (goalNode!=null && goalNode.board.isGoal()){\n return goalNode.moves;\n }\n return -1;\n }",
"public int getMoves(){\r\n return moves;\r\n }",
"public static int getCount()\n\t{\n\t\treturn projectileCount;\n\t}",
"public int moves() {\n if (!isSolvable()) return -1;\n return realMoves;\n }",
"int getMonstersCount();",
"int getMonstersCount();",
"int getNumYTiles(Long id) throws RemoteException;",
"public void incrementNumMoves() {\n\t\tthis.moveMade = true;\n\t\tthis.numMoves++;\n\t}",
"public int moves() {\r\n if (solution != null) {\r\n return solution.size() - 1;\r\n } else {\r\n return -1;\r\n }\r\n }",
"public int getD_CurrentNumberOfTurns() {\n return d_CurrentNumberOfTurns;\n }",
"public int moves() {\n if (!isSolvable()) {\n return -1;\n } else {\n return minNode.getMove();\n }\n\n }",
"public int howManyUnitsUp(){\n return undoStack.size();\n }",
"public int getMoves(){\n return moves;\n }",
"int getStatsCount();",
"int getStatsCount();",
"int getStatsCount();",
"public int moves() {\n if (isSolvable())\n return _moves;\n else\n return -1;\n }",
"public int moves() {\n\t\tif (!isSolvable())\n\t\t\treturn -1;\n\t\telse\n\t\t\treturn result.size() - 1;\n\t}",
"private void getTileNumber() {\r\n int xtile = (int) Math.floor((coordinates.getLon() + 180) / 360 * (1 << zoom));\r\n int ytile = (int) Math.floor((1 - Math.log(Math.tan(Math.toRadians(coordinates.getLat())) + 1 / Math.cos(Math.toRadians(coordinates.getLat()))) / Math.PI) / 2 * (1 << zoom));\r\n\r\n if (xtile < 0) xtile = 0;\r\n\r\n if (xtile >= (1 << zoom)) xtile = ((1 << zoom) - 1);\r\n\r\n if (ytile < 0) ytile = 0;\r\n\r\n if (ytile >= (1 << zoom)) ytile = ((1 << zoom) - 1);\r\n\r\n this.xtile = xtile;\r\n this.ytile = ytile;\r\n }",
"public void updateMoves(){\r\n\t\tthis.moves = getMoves() + 1;\r\n\t}",
"public int getNumYTiles() { \r\n return numRows;\r\n }",
"public int moves() {\n \tif (!isSolvable) return -1;\n \treturn solutionNode.getMoves();\n }",
"public int total_maps() {\r\n\t\tcheck( 1 );\r\n\r\n\t\treturn total_maps;\r\n\t}",
"public int getStatsCount() {\n return stats_.size();\n }",
"public int getWidth() {\n return getTileWidth() * getWidthInTiles();\n }",
"int getNumberOfStonesOnBoard();",
"public void incrementMoves()\n {\n moves ++;\n }",
"public int tourSize() {\n return tour.size();\n }",
"int updateCount(double dist);",
"protected int getMove(){\r\n\t\treturn this.move;\r\n\t}",
"public int getNumTimesEntered() {\n return numTimesEntered;\n }",
"int getNumberOfStonesLeftToPlace();",
"ArrayList<Integer> getStepCounterTileX();",
"public int getMovectr() {\n\t\t\n\t\treturn moveCtr;\n\t}",
"public int getWhoseMove() {\n\t\treturn playerToMove;\n\t}",
"public int getTurnCount() {\n return turnEncoder.getCount();\n }",
"public static int totalClicks() {\n return counterClicks;\n }",
"public double getLastMoved();",
"int getTileSize();",
"public int getActualWidthInTiles() {\n return getWidth() / getActualTileWidth();\n }",
"public Integer getScannedCount() {\n return this.scannedCount;\n }",
"public int getHitsLeft(){\n return hitsLeft;\n }",
"public int getPlayerMoveAmount() {\n return 3;\n }",
"ArrayList<Integer> getStepCounterTileY();",
"public int getTotalMaps() {\r\n\t\treturn total_maps;\r\n\t}",
"public final int getTilesXSize() {\n\t\treturn xSize;\n\t}",
"public Vector2i getActualSizeInTiles() {\n return new Vector2i(getActualWidthInTiles(), getActualHeightInTiles());\n }",
"public int getNumOfActionTaken() {\n return numOfActionTaken;\n }",
"public void move() {\r\n\t\tmoveCount++;\r\n\t}",
"public int getMMSCount(){\r\n\t\t//if(_debug) Log.v(_context, \"NotificationViewFlipper.getMMSCount() MMSCount: \" + _mmsCount);\r\n\t\treturn _mmsCount;\r\n\t}",
"public int getNumWins() {\n\t\treturn this.numWins;\n\t}",
"public int getTileSize() {\r\n\t\treturn this.tileSize;\r\n\t}",
"public int getTotalDust() {\n return StatisticsHelper.sumMapValueIntegers(statistics.getDustByWins());\n }",
"public int getXWins() {\n return xWins;\n }",
"public int getSize()\r\n {\r\n return pile.size();\r\n }",
"public int totalNum(){\n return wp.size();\n }",
"public int getTotalNumberOfSprites() {\n return this.getRows() * this.getColumns();\n }",
"public int getSMSCount(){\r\n\t\t//if(_debug) Log.v(_context, \"NotificationViewFlipper.getSMSCount() SMSCount: \" + _smsCount);\r\n\t\treturn _smsCount;\r\n\t}",
"public int getMonstersCount() {\n return monsters_.size();\n }",
"public int getMonstersCount() {\n return monsters_.size();\n }",
"public int getStatsCount() {\n return instance.getStatsCount();\n }",
"public int updateBoard() {\n clearTemporaryData();\n setUsedValuesbyRow();\n setUsedValuesByColumns();\n setUsedValueInBoxes();\n findUniqueInBoxes();\n updateValues();\n\n return numbers.stream()\n .filter(n -> n.getValue() == 0)\n .collect(Collectors.toList()).size();\n }",
"public int getMountainCount() {\n\t\tcounter = 0;\n\t\tfor (int row = 0; row < battlefield.length; row++) {\n\t\t\tfor (int column = 0; column < battlefield[row].length; column++) {\n\t\t\t\tif (battlefield[row][column].getTerrain().getIcon() == \"M\") {\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn counter;\n\t}",
"Integer getTotalStepCount();",
"public int getMoveCost(Environment tile)\n {\n return getMoveCost(tile.weatherType, tile.terrainType);\n }",
"public int getMovement() {\n return tempUnit.getMovement();\n }"
] | [
"0.7052691",
"0.70163125",
"0.69140476",
"0.6903939",
"0.68990344",
"0.6876059",
"0.6846903",
"0.6842931",
"0.6836943",
"0.6768245",
"0.6678302",
"0.66217774",
"0.6543246",
"0.65335006",
"0.65335006",
"0.6506031",
"0.6491263",
"0.6457213",
"0.6453603",
"0.6408994",
"0.63761485",
"0.63731176",
"0.63468593",
"0.62340343",
"0.62030196",
"0.61630166",
"0.61502296",
"0.61185",
"0.61103916",
"0.60975033",
"0.60941815",
"0.6080954",
"0.6062545",
"0.60524476",
"0.6031668",
"0.6020201",
"0.60103697",
"0.6000037",
"0.5988497",
"0.5988497",
"0.5985693",
"0.597673",
"0.59749943",
"0.5968688",
"0.5956035",
"0.5950872",
"0.5938206",
"0.5922629",
"0.5922629",
"0.5922629",
"0.59014714",
"0.589106",
"0.5886794",
"0.58754283",
"0.5868378",
"0.5859728",
"0.5838798",
"0.58238775",
"0.5810482",
"0.5793171",
"0.5780767",
"0.57697636",
"0.5745618",
"0.57433146",
"0.5740893",
"0.5733937",
"0.572398",
"0.570688",
"0.5706176",
"0.57003087",
"0.5693257",
"0.5684069",
"0.5682289",
"0.56791115",
"0.5678143",
"0.5665292",
"0.56577075",
"0.5656465",
"0.5644675",
"0.5632383",
"0.5625164",
"0.56110346",
"0.56014884",
"0.55996895",
"0.5594551",
"0.559018",
"0.558875",
"0.5583194",
"0.55795854",
"0.55772096",
"0.5571518",
"0.5569859",
"0.55698305",
"0.556974",
"0.5564626",
"0.5563545",
"0.5562903",
"0.55548716",
"0.55502355",
"0.55448055"
] | 0.80971855 | 0 |
Get the number of turns since the player last moved. | public int getTurnsSinceLastMove () {
return this.turnsSinceLastMove;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getD_CurrentNumberOfTurns() {\n return d_CurrentNumberOfTurns;\n }",
"public int getTurnCount() {\n return turnEncoder.getCount();\n }",
"public int getWhoseTurn() {\n if (gameStatus == null || gameStatus.getActivePlayer() == null) return -1;\n if (gameStatus.getActivePlayer().equals(gameStatus.getPlayerOne())) return 1;\n if (gameStatus.getActivePlayer().equals(gameStatus.getPlayerTwo())) return 2;\n return -2;\n }",
"public int numTurnsUntilMove(GameState gm, Player p) {\n\t\tint count = 0;\n\t\t\n\t\tcount = gm.getPlayers().indexOf(p)-gm.getPlayers().indexOf(this);\n\t\tif (count < 0) {\n\t\t\treturn count + gm.getPlayers().size();\n\t\t}\n\t\telse {\n\t\t\treturn count;\n\t\t}\n\t}",
"int getLastUpdatedTurn();",
"public int moves()\n {\n return numberOfMoves;\n }",
"public int getTimesPlayed() {\r\n\t\treturn timesPlayed;\r\n\t}",
"public int getTurnsSinceLastFire () {\r\n\t\treturn this.turnsSinceLastFire;\r\n\t}",
"public int moves() {\n return goal == null ? -1 : goal.numMoves;\n }",
"public int getNumberOfMoves();",
"public int getTurnCount(){\n return this.turn;\n }",
"public int getNumMoves() {\n\t\treturn numMoves;\n\t}",
"public int getNumberOfMoves() {\r\n return numberOfMoves;\r\n }",
"public int playerTurn() {\n\t\treturn partita.getPlayerTurnNumber();\n\t}",
"public int moves() {\r\n if (!isSolvable) return -1;\r\n return goal.previousMoves;\r\n }",
"private int getAttemptsPerTurn() {\n return attemptsPerTurn;\n }",
"public int getNumPlayed()\n\t{\n\t\treturn numPlayed;\n\t}",
"public int getNumMoving() {\n int numMoving = 0;\n for (BaseSingle single : aliveTroopsMap.keySet()) {\n if (single.getState() == SingleState.MOVING ||\n single.getState() == SingleState.CATCHING_UP ||\n single.getState() == SingleState.ROUTING) {\n numMoving += 1;\n }\n }\n return numMoving;\n }",
"public int getPlayerTurn() {\r\n\t\treturn this.playerTurn;\r\n\t}",
"public int moves() {\n\t\tif (goal == null)\n\t\t\treturn -1;\n\t\telse\n\t\t\treturn goal.moves;\n\t}",
"@java.lang.Override\n public int getLastUpdatedTurn() {\n return lastUpdatedTurn_;\n }",
"@java.lang.Override\n public int getLastUpdatedTurn() {\n return lastUpdatedTurn_;\n }",
"public int incrementPlayerTurn() {\r\n\t\tthis.playerTurn++;\r\n\t\tif ( playerTurn >= 3 ) {\r\n\t\t\tthis.playerTurn = 0;\r\n\t\t}\r\n\t\t\r\n\t\treturn this.playerTurn;\r\n\t}",
"public int totalGames() {\n return wins + losses + draws;\n }",
"public int playerCount()\r\n\t{\r\n\t\tint count = 0;\r\n\t\tfor(Player player: this.players)\r\n\t\t{\r\n\t\t\tif(player != null)\r\n\t\t\t{\r\n\t\t\t\t++count;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}",
"public int getMoveCount() {\r\n\t\treturn moveCount;\r\n\r\n\t}",
"public int getTotalOftimePlayed() {\n return secToMin(statistics.get(TypeOfGames.SIMGAME).getTotalOfTime()\n + statistics.get(TypeOfGames.EASYCOMPUTERGAME).getTotalOfTime()\n + statistics.get(TypeOfGames.HARDCOMPUTERGAME).getTotalOfTime());\n }",
"public int getWhoseMove() {\n\t\treturn playerToMove;\n\t}",
"public int moves() {\n\n return initialSolvable ? solutionNode.numberOfMovesMade : -1;\n }",
"public int getMoveCount() {\n\t\treturn moveCount;\n\t}",
"public int totalSteps() {\n return moves.size();\n }",
"public int getMoveCount() {\r\n return this.moveCount;\r\n }",
"public int getTurnaround (){\n return finishingTime-arrival_time;\n }",
"public int getTurn() {\n\t\treturn 0;\r\n\t}",
"int getCurrentTurn();",
"public static int getNumPlayers(){\n\t\treturn numPlayers;\n\t}",
"public int getNumTimesEntered() {\n return numTimesEntered;\n }",
"public int moves() {\n if (!isSolvable()) return -1;\n return realMoves;\n }",
"public int getPlayedTimes() {\n return playedTimes;\n }",
"int moveCount() {\r\n return _moveCount;\r\n }",
"int movesMade() {\n return _moves.size();\n }",
"public int moves() {\n return moves;\n }",
"public int moves() {\n return moves;\n }",
"public int moves()\n {\n return moves;\n }",
"public int getTotalOfwins() {\n return statistics.get(TypeOfGames.SIMGAME).getNumberOfWins()\n + statistics.get(TypeOfGames.EASYCOMPUTERGAME).getNumberOfWins()\n + statistics.get(TypeOfGames.HARDCOMPUTERGAME).getNumberOfWins();\n }",
"public int getMovementAttempts() {\r\n\t\treturn movementAttempts;\r\n\t}",
"public int getNumWins() {\n\t\treturn this.numWins;\n\t}",
"public int playersCount(){\r\n\t\treturn players.size();\r\n\t}",
"public int moves() {\n return isSolvable() ? finalMove.moves : -1;\n }",
"public int moves()\n {\n\n if (goalNode!=null && goalNode.board.isGoal()){\n return goalNode.moves;\n }\n return -1;\n }",
"public int getPlayerCount() {\n \n \treturn playerCount;\n \t\n }",
"public int getPlayerMoveAmount() {\n return 3;\n }",
"public int getNumPlayers() {\n return numPlayers;\n }",
"public int playerCount() {\n\t\treturn playerList.size();\n\t}",
"public int getPlayerCount() {\n\t\treturn playerCount;\n\t}",
"public void incrementD_CurrentNumberOfTurns() {\n d_CurrentNumberOfTurns++;\n }",
"public int getCurrentTurn()\r\n {\r\n return currentTurn;\r\n }",
"public int numPlayers() {\n return playerList.size();\n }",
"public int getWins() {\n return wins;\n }",
"int getTurn();",
"public int getTime() {\n\t\tif(player == null) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn player.getPosition();\n\t}",
"public int getNumPlayers(){\n\t\treturn this.players.size();\n\t}",
"public int getNumberOfPlayers() {\n return listaJogadores.size() - listaJogadoresFalidos.size();\n }",
"public static int GetPlayersLeft () {\n int players_left = 0;\r\n\r\n // LOOK AT EACH PLAYER AND CHECK IF THEY HAVEN'T LOST\r\n for (int i = 0; i < player_count; i++) {\r\n if (!player[i].lost)\r\n players_left++;\r\n }\r\n\r\n // RETURN THE RESULTS\r\n return players_left;\r\n }",
"public int getWins() {\n return wins;\n }",
"public int getNumberUnplayedRoads() {\n\t\t return playerPieces.getNumberUnplayedRoads();\n\t }",
"public int countPlayers(){\n return players.size();\n }",
"public int getCurrentTurn() {\n return currentTurn;\n }",
"public int getNumPlayers() {\n\n\t\treturn this.playerCount;\n\t}",
"public int moves() {\n if (isSolvable())\n return _moves;\n else\n return -1;\n }",
"private int getTotalPlayerCount() {\n String baseUrl = \"https://www.runescape.com/player_count.js?varname=iPlayerCount\";\n String url = baseUrl + \"&callback=jQuery33102792551319766081_1618634108386&_=\" + System.currentTimeMillis();\n try {\n String response = new NetworkRequest(url, false).get().body;\n Matcher matcher = Pattern.compile(\"\\\\(\\\\d+\\\\)\").matcher(response);\n if(!matcher.find()) {\n throw new Exception();\n }\n return Integer.parseInt(response.substring(matcher.start() + 1, matcher.end() - 1));\n }\n catch(Exception e) {\n return 0;\n }\n }",
"public int getGuessesLeft() {\r\n return this.numGuesses;\r\n }",
"public int getNumPlayers(){\n return m_numPlayers;\n }",
"public int getSecondsPassed()\n {\n return this.seconds;\n }",
"public int getTilesMoved () {\r\n\t\treturn this.tilesMoved;\r\n\t}",
"public int getUserTurn() {\n\t\treturn userTurn;\n\t}",
"public int getNumOfPlayers() {\n\t\treturn numOfPlayers;\n\t}",
"int moves() {\n return moves;\n }",
"public int getHasMoved() {\n validify();\n return Client.INSTANCE.pieceGetHasMoved(ptr);\n }",
"@Override\n public int getTotalHumanPlayers() {\n return totalHumanPlayers;\n }",
"public int numPlayers(){\n return this.members.size();\n }",
"public int getTurn()\n {\n return m_turn;\n }",
"@java.lang.Override\n public int getTimesCombatActionsCalled() {\n return timesCombatActionsCalled_;\n }",
"public int getRound() {\n\t\treturn myHistory.size() + opponentHistory.size();\n\t}",
"public int getGamesPlayed() {\n return gamesPlayed;\n }",
"int getWins() {return _wins;}",
"@java.lang.Override\n public int getTimesCombatActionsCalled() {\n return timesCombatActionsCalled_;\n }",
"public int getTurn() {\n\t\treturn turn;\n\t}",
"public int getTotalWins() {\n int sum = 0;\n for (int i = 0; i < 13; i++) {\n sum += i * this.statistics.getDecksByWins().get(i);\n }\n return sum;\n }",
"public int moves() {\r\n if (solution != null) {\r\n return solution.size() - 1;\r\n } else {\r\n return -1;\r\n }\r\n }",
"public int addWinningGame() {\n\t\tgamesWon++;\n\t\treturn gamesWon;\n\t}",
"public int nbEnemiesAlive(){\n return state.getPlayers().size()-1;\n }",
"int getNumOfPlayers() {\n return this.numOfPlayers;\n }",
"public int getWinnings() {\n\t\tBufferedReader reader;\n\t\ttry {\n\t\t\treader = new BufferedReader(new FileReader(\"data/winnings\"));\n\t\t\tString line = reader.readLine();\n\t\t\t_winnings = Integer.parseInt(line.trim());\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn _winnings;\n\t}",
"public int moves() {\n return moveMin;\n }",
"public int nrOfPlayers() {\n int playerCount = 0;\n for (Player player : players) {\n if (player.getName() != null) {\n playerCount++;\n }\n }\n\n return playerCount;\n }",
"public int moves() {\n\t\tif (!isSolvable())\n\t\t\treturn -1;\n\t\telse\n\t\t\treturn result.size() - 1;\n\t}",
"public int getGoalTally(Player player){\r\n return player.getGoal();\r\n }",
"public int getNumberOfSoldiersPlayed() {\n\t\t\treturn developmentCardHand.getNumberOfSoldiersPlayed();\n\t\t}",
"public Tuple<Integer, Integer> getPlayersPlayedCardsCount() {\n\t int player1Count = players[0].totalPlayedCards();\n\t int player2Count = players[1].totalPlayedCards();\n\n\t\treturn new Tuple<>(player1Count, player2Count);\n\t}"
] | [
"0.7178824",
"0.71333814",
"0.69422394",
"0.6923436",
"0.6848267",
"0.6839275",
"0.67748797",
"0.67499244",
"0.6748947",
"0.674782",
"0.6661963",
"0.6652158",
"0.66418374",
"0.66390115",
"0.663576",
"0.6634035",
"0.66197735",
"0.65736026",
"0.652996",
"0.6525816",
"0.64899665",
"0.6446235",
"0.6421607",
"0.6412668",
"0.63933057",
"0.6387334",
"0.6386313",
"0.638165",
"0.637825",
"0.6374047",
"0.63669497",
"0.6357321",
"0.6347166",
"0.63433135",
"0.632142",
"0.6320725",
"0.63196796",
"0.63192993",
"0.63187015",
"0.630703",
"0.63063645",
"0.6272851",
"0.6272851",
"0.6269364",
"0.6244743",
"0.6231099",
"0.6229577",
"0.62081885",
"0.61854976",
"0.6178328",
"0.6177149",
"0.6167216",
"0.6153946",
"0.61520255",
"0.6148323",
"0.6139439",
"0.6136034",
"0.6124533",
"0.61088085",
"0.6108627",
"0.60927594",
"0.6082136",
"0.6080588",
"0.6075435",
"0.60729194",
"0.60713315",
"0.6069407",
"0.6068196",
"0.60646695",
"0.6046813",
"0.60313976",
"0.6023205",
"0.60170037",
"0.599647",
"0.5992056",
"0.59911907",
"0.5981169",
"0.59809995",
"0.5980458",
"0.5976876",
"0.5975512",
"0.5964129",
"0.59640634",
"0.5956728",
"0.5936176",
"0.5918974",
"0.5914928",
"0.591435",
"0.5904583",
"0.5904022",
"0.58984256",
"0.5897733",
"0.5894326",
"0.5893811",
"0.58851063",
"0.5882919",
"0.5873186",
"0.58731663",
"0.58719575",
"0.5870357"
] | 0.7876973 | 0 |
Get the number of turns since the player last attacked. | public int getTurnsSinceLastFire () {
return this.turnsSinceLastFire;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getTurnsSinceLastMove () {\r\n\t\treturn this.turnsSinceLastMove;\r\n\t}",
"public int getTurnCount() {\n return turnEncoder.getCount();\n }",
"public int getWhoseTurn() {\n if (gameStatus == null || gameStatus.getActivePlayer() == null) return -1;\n if (gameStatus.getActivePlayer().equals(gameStatus.getPlayerOne())) return 1;\n if (gameStatus.getActivePlayer().equals(gameStatus.getPlayerTwo())) return 2;\n return -2;\n }",
"private int getAttemptsPerTurn() {\n return attemptsPerTurn;\n }",
"public int getNumAttacked() {\n return this.numAttacked;\n }",
"public int getAttackAttempts() {\r\n\t\treturn attackAttempts;\r\n\t}",
"public int getD_CurrentNumberOfTurns() {\n return d_CurrentNumberOfTurns;\n }",
"@java.lang.Override\n public int getTimesCombatActionsCalled() {\n return timesCombatActionsCalled_;\n }",
"public int getTimesPlayed() {\r\n\t\treturn timesPlayed;\r\n\t}",
"public Integer getAttackWins()\n\t{\n\t\treturn attackWins;\n\t}",
"@java.lang.Override\n public int getTimesCombatActionsCalled() {\n return timesCombatActionsCalled_;\n }",
"private int timeToNextAttack() {\n return ATTACK_SPEED - mAttacker.getSpeed();\n }",
"int getLastUpdatedTurn();",
"int getTimesCombatActionsCalled();",
"int getAttackRoll();",
"public int getGoalTally(Player player){\r\n return player.getGoal();\r\n }",
"public int getTurnCount(){\n return this.turn;\n }",
"public int getTotalOftimePlayed() {\n return secToMin(statistics.get(TypeOfGames.SIMGAME).getTotalOfTime()\n + statistics.get(TypeOfGames.EASYCOMPUTERGAME).getTotalOfTime()\n + statistics.get(TypeOfGames.HARDCOMPUTERGAME).getTotalOfTime());\n }",
"public int totalGames() {\n return wins + losses + draws;\n }",
"public int numTurnsUntilMove(GameState gm, Player p) {\n\t\tint count = 0;\n\t\t\n\t\tcount = gm.getPlayers().indexOf(p)-gm.getPlayers().indexOf(this);\n\t\tif (count < 0) {\n\t\t\treturn count + gm.getPlayers().size();\n\t\t}\n\t\telse {\n\t\t\treturn count;\n\t\t}\n\t}",
"private int getTotalPlayerCount() {\n String baseUrl = \"https://www.runescape.com/player_count.js?varname=iPlayerCount\";\n String url = baseUrl + \"&callback=jQuery33102792551319766081_1618634108386&_=\" + System.currentTimeMillis();\n try {\n String response = new NetworkRequest(url, false).get().body;\n Matcher matcher = Pattern.compile(\"\\\\(\\\\d+\\\\)\").matcher(response);\n if(!matcher.find()) {\n throw new Exception();\n }\n return Integer.parseInt(response.substring(matcher.start() + 1, matcher.end() - 1));\n }\n catch(Exception e) {\n return 0;\n }\n }",
"public int playerTurn() {\n\t\treturn partita.getPlayerTurnNumber();\n\t}",
"public int getTotalOfwins() {\n return statistics.get(TypeOfGames.SIMGAME).getNumberOfWins()\n + statistics.get(TypeOfGames.EASYCOMPUTERGAME).getNumberOfWins()\n + statistics.get(TypeOfGames.HARDCOMPUTERGAME).getNumberOfWins();\n }",
"public int playerCount()\r\n\t{\r\n\t\tint count = 0;\r\n\t\tfor(Player player: this.players)\r\n\t\t{\r\n\t\t\tif(player != null)\r\n\t\t\t{\r\n\t\t\t\t++count;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}",
"public int getTurnaround (){\n return finishingTime-arrival_time;\n }",
"public int getPlayerTurn() {\r\n\t\treturn this.playerTurn;\r\n\t}",
"public int getNumPlayed()\n\t{\n\t\treturn numPlayed;\n\t}",
"public Integer getOpponentAttacks()\n\t{\n\t\treturn opponentAttacks;\n\t}",
"public int getPlayedTimes() {\n return playedTimes;\n }",
"public static int GetPlayersLeft () {\n int players_left = 0;\r\n\r\n // LOOK AT EACH PLAYER AND CHECK IF THEY HAVEN'T LOST\r\n for (int i = 0; i < player_count; i++) {\r\n if (!player[i].lost)\r\n players_left++;\r\n }\r\n\r\n // RETURN THE RESULTS\r\n return players_left;\r\n }",
"public long getLastAttackTime() {\r\n\t\treturn lastAttackTime;\r\n\t}",
"public int getTurn() {\n\t\treturn 0;\r\n\t}",
"public int getNumTimesEntered() {\n return numTimesEntered;\n }",
"public int getTotalWins() {\n int sum = 0;\n for (int i = 0; i < 13; i++) {\n sum += i * this.statistics.getDecksByWins().get(i);\n }\n return sum;\n }",
"int getCurrentTurn();",
"@java.lang.Override\n public int getLastUpdatedTurn() {\n return lastUpdatedTurn_;\n }",
"@java.lang.Override\n public int getLastUpdatedTurn() {\n return lastUpdatedTurn_;\n }",
"public int getPlayerCount() {\n \n \treturn playerCount;\n \t\n }",
"public int getCurAttack() {\n\t\treturn curAttack;\n\t}",
"public int getWins() {\n return wins;\n }",
"public int incrementPlayerTurn() {\r\n\t\tthis.playerTurn++;\r\n\t\tif ( playerTurn >= 3 ) {\r\n\t\t\tthis.playerTurn = 0;\r\n\t\t}\r\n\t\t\r\n\t\treturn this.playerTurn;\r\n\t}",
"public int getWins() {\n return wins;\n }",
"public int getNumWins() {\n\t\treturn this.numWins;\n\t}",
"public int getPlayerCount() {\n\t\treturn playerCount;\n\t}",
"public int getMovementAttempts() {\r\n\t\treturn movementAttempts;\r\n\t}",
"int getCardsRemaining(int player) {\n return players[player].getHand().size();\n }",
"public int getTotalGoldenCards() {\n return StatisticsHelper.sumMapValueIntegers(statistics.getGoldCardsByWins());\n }",
"public int nbEnemiesAlive(){\n return state.getPlayers().size()-1;\n }",
"public int getGuessesLeft() {\r\n return (guessesAllowed - numWrongGuesses);\r\n }",
"int getTurn();",
"Integer totalRetryAttempts();",
"public int getUserWonNumber() {\n\t\tint result = -1;\n\t\ttry {\n\t\t\tthis.rs = smt.executeQuery(\"SELECT count(id) FROM tp.gamerecord WHERE winner = (SELECT id FROM tp.player WHERE isAI = false)\");\n\t\t\tif(this.rs.next()) {\n\t\t\t\tresult = rs.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"Query is Failed!\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}",
"public int getGamesPlayed() {\n return gamesPlayed;\n }",
"public int getNumberOfMonumentsPlayed() {\n\t\tint numberPlayed = 0;\n\t\t// Iterate through all the player owned soldier cards to check, which of these have been played\n\t\tfor(DevelopmentCard card: victoryPointCards) {\n\t\t\tif(card.hasBeenPlayed()) {\n\t\t\t\tnumberPlayed++;\n\t\t\t}\n\t\t}\n\t\treturn numberPlayed;\n\t}",
"public static int getNumPlayers(){\n\t\treturn numPlayers;\n\t}",
"public static int totalClicks() {\n return counterClicks;\n }",
"public int getCurrentTurn()\r\n {\r\n return currentTurn;\r\n }",
"public int getTotalValue() {\n return getTotalOfwins()+getTotalOfGames()+getTotalOfdefeats()+getTotalOftimePlayed();\n }",
"public int moves()\n {\n return numberOfMoves;\n }",
"public int playerCount() {\n\t\treturn playerList.size();\n\t}",
"@Override\n public int getTotalHumanPlayers() {\n return totalHumanPlayers;\n }",
"public int playersCount(){\r\n\t\treturn players.size();\r\n\t}",
"public int getGuessesLeft() {\r\n return this.numGuesses;\r\n }",
"public int getUserTurn() {\n\t\treturn userTurn;\n\t}",
"int getWins() {return _wins;}",
"public Long get_cachetotflashcachehits() throws Exception {\n\t\treturn this.cachetotflashcachehits;\n\t}",
"public int getNumberOfMoves();",
"public int getHitsLeft(){\n return hitsLeft;\n }",
"public int moves() {\n return goal == null ? -1 : goal.numMoves;\n }",
"public int getHumanPlayerHits() {\n return humanPlayerHits;\n }",
"public long getTimeRemaining() {\n int timer = 180000; //3 minutes for the game in milliseconds\n long timeElapsed = System.currentTimeMillis() - startTime;\n long timeRemaining = timer - timeElapsed + bonusTime;\n long timeInSeconds = timeRemaining / 1000;\n long seconds = timeInSeconds % 60;\n long minutes = timeInSeconds / 60;\n if (seconds < 0 || minutes < 0) { //so negative numbers don't show\n seconds = 0;\n minutes = 0;\n }\n return timeInSeconds;\n }",
"public int getLivesRemaining();",
"public int getCurrentTurn() {\n return currentTurn;\n }",
"public int getRemainingEnemies(){\n return mNumberOfEnemies - (mEnemyIndex + 1);\n }",
"public int getNumberOfPlayers() {\n return listaJogadores.size() - listaJogadoresFalidos.size();\n }",
"public int numPlayers() {\n return playerList.size();\n }",
"public int moves() {\r\n if (!isSolvable) return -1;\r\n return goal.previousMoves;\r\n }",
"public int getAttempts() {\n return attempts;\n }",
"public int getAttempts() {\n return attempts;\n }",
"public int getAttempts() {\n return attempts;\n }",
"public int countPlayers(){\n return players.size();\n }",
"public int getNumberOfLastHourEvents() {\n return getNumberOfEventsByMinuteOrHour(false);\n }",
"public int getSessionAverageAliveTime();",
"public int getLosses() {\n return losses;\n }",
"public int getTime() {\n\t\tif(player == null) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn player.getPosition();\n\t}",
"public int calculateAttack() {\n int attack = 0;\n for (Weapon w : equippedWeapons) {\n attack += w.getType().getDamage();\n }\n return attack;\n }",
"public int getLosses() {\n return losses;\n }",
"public int getNumOfActionTaken() {\n return numOfActionTaken;\n }",
"public int getDamageTaken () {\r\n\t\treturn this.damageTaken;\r\n\t}",
"public int getSecondsPassed()\n {\n return this.seconds;\n }",
"public int getAttempts() {\n return attempts;\n }",
"public int getDeaths()\n\t{\n \treturn currentDeath;\n\t}",
"public static int getDeadPlayersAmount(List<Player> players) {\n long count = players.stream()\n .filter(player -> !player.isAlive())\n .count();\n\n int result = (int) count;\n\n return result;\n\n }",
"public int getPlayerOnePoints() {\n if (gameStatus == null) return -1;\n return gameStatus.getPlayerOnePoints();\n }",
"public int diffScore() {\n\t\treturn getWin() - getLose();\n\t}",
"public static double doAvgTurnAroundTime() {\n if (count >= 1) {\n return turnaroundTimeTotal / count;\n } else {\n return -1;\n }\n }",
"public int attackRoll(){\r\n\t\treturn (int) (Math.random() * 100);\r\n\t}",
"public int getTotalWaitTime() {\n return totalWaitTime;\n }",
"public int getNumDeaths() {\n\t\treturn this.numDeaths;\n\t}",
"public int getNumPlayers() {\n return numPlayers;\n }"
] | [
"0.6998997",
"0.68305486",
"0.6823136",
"0.6804439",
"0.67855155",
"0.67005956",
"0.66410315",
"0.6580368",
"0.6572337",
"0.6558404",
"0.6544224",
"0.649191",
"0.6476895",
"0.64589345",
"0.6446657",
"0.6426002",
"0.6364566",
"0.6357666",
"0.6325322",
"0.6289231",
"0.6286607",
"0.6279496",
"0.62375987",
"0.6219193",
"0.6214312",
"0.62027097",
"0.6186648",
"0.6185509",
"0.6161091",
"0.61171526",
"0.6115464",
"0.6087469",
"0.607933",
"0.6062761",
"0.6062312",
"0.6053104",
"0.60106426",
"0.6008741",
"0.600312",
"0.59955704",
"0.59902406",
"0.5985034",
"0.5978391",
"0.5962875",
"0.5962409",
"0.5955904",
"0.5952978",
"0.5943692",
"0.5927316",
"0.5898179",
"0.58942354",
"0.5894162",
"0.5890595",
"0.58889127",
"0.5886989",
"0.58783734",
"0.58772117",
"0.5874717",
"0.58646804",
"0.58646655",
"0.58561254",
"0.5844829",
"0.5828632",
"0.58278537",
"0.5822129",
"0.5820339",
"0.5817125",
"0.5814291",
"0.5800068",
"0.5797449",
"0.57920104",
"0.57842153",
"0.5782885",
"0.5778531",
"0.57778305",
"0.5757281",
"0.5756005",
"0.5743888",
"0.5743888",
"0.5743888",
"0.57391095",
"0.5734704",
"0.572376",
"0.5723428",
"0.57204986",
"0.5717813",
"0.57156473",
"0.57142085",
"0.57125276",
"0.5703209",
"0.5689625",
"0.56891906",
"0.5685561",
"0.5684426",
"0.5684077",
"0.5680246",
"0.56783116",
"0.5676808",
"0.56707233",
"0.56705195"
] | 0.65469736 | 10 |
The main method to perform a series of tests to verify that each method has the correct pre & post conditions. | public static void main(String args[]) {
PlayerInfo pInfo = new PlayerInfo(1,true);
String errorLog = "";
int errorCount = 0;
if (pInfo.getRobotsAlive().size() != 3) {
errorLog = errorLog + "Size of list after construction should be == 3";
errorCount++;
}
if (pInfo.getPlayerID() != 1) {
errorLog = errorLog + "PlayerID should be == 1";
errorCount++;
}
if (errorLog.length() > 0 && errorCount > 0) {
System.out.println("Total number of errors found in PlayerInfo static main: " + errorCount);
System.out.println(errorLog);
} else {
System.out.println("PlayerInfo static main: 0 errors found");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String args[]) {\n\t\tSystem.out.println(\"\\r\\ngetGameSituationTest()\");\n\t\tgetGameSituationTest();\n\n\t\tSystem.out.println(\"\\r\\nstateCheckerboardConvertionTest()\");\n\t\tstateCheckerboardConvertionTest();\n\n\t\tSystem.out.println(\"\\r\\ngetValidActionsTest()\");\n\t\tgetValidActionsTest();\n\t}",
"public static void main (String[] args){\n\t\tincPieceCountTest();\n\t\tdecPieceCountTest();\n\t\tsetPieceTest();\n\t\tmoveTest();\n\t\tanyMoveTest();\n\t\tgetPiecesTest();\n\t\tsetPieceTest2();\n\t}",
"public static void main(String[] args) {\n testFactorial();\n testFibonacci();\n testMissing();\n testPrime();\n\n\n }",
"public static void main ( String [] args ) {\n test_containsVowel(); // 3 tests\n test_isPalindrome(); // 7 tests\n test_evensOnly(); // 8 tests\n test_oddsOnly(); // 8 tests\n test_evensOnlyNoDupes(); // 2 tests\n test_oddsOnlyNoDupes(); // 2 tests\n test_reverse(); // 2 tests\n\n }",
"public static void run() {\n testAlgorithmOptimality();\n// BenchmarkGraphSets.testMapLoading();\n //testAgainstReferenceAlgorithm();\n //countTautPaths();\n// other();\n// testLOSScan();\n //testRPSScan();\n }",
"public static void main(String[] args) {\n\t\t\n\t\tglobalTest();\n//\t\ttimeTest();\n//\t\ttestPrefixSearch();\n//\t\ttestSearch();\n//\t\ttestPrediction();\n//\t\ttestTrieSearch();\n//\t\ttestRebuid();\n//\t\ttest13();\n//\t\ttest14();\n\t}",
"public static void main(String[] args) {\n\t\ttest1();\n\t\ttest2();\n\t\tdivision();\n\t\tdivision_nullexception();\n\t\n\t}",
"public static void main(String[] args) {\r\n // 2. Call your method in various ways to test it here.\r\n }",
"public static void main (String args[]) {\n\t\tteste01();\n\t\tteste02();\n\t\tteste03();\n\t\t//teste04();\n\t}",
"public static void run()\n {\n String[] testInput = FileIO.readAsStrings(\"2020/src/day17/Day17TestInput.txt\");\n String[] realInput = FileIO.readAsStrings(\"2020/src/day17/Day17Input.txt\");\n\n Test.assertEqual(\"Day 17 - Part A - Test input\", partA(testInput), 112);\n Test.assertEqual(\"Day 17 - Part A - Challenge input\", partA(realInput), 384);\n Test.assertEqual(\"Day 17 - Part B - Test input\", partB(testInput), 848);\n Test.assertEqual(\"Day 17 - Part B - Challenge input\", partB(realInput), 2012);\n }",
"@Test\n public void test() {\n\n testBookExample();\n // testK5();\n // testK3_3();\n }",
"public static void main(String argv[]) {\n \r\n PolicyTest bmt = new PolicyTest();\r\n\r\n bmt.create_minibase();\r\n\r\n // run all the test cases\r\n System.out.println(\"\\n\" + \"Running \" + TEST_NAME + \"...\");\r\n boolean status = PASS;\r\n status &= bmt.test1();\r\n \r\n bmt = new PolicyTest();\r\n bmt.create_minibase();\r\n status &= bmt.test2();\r\n\r\n // display the final results\r\n System.out.println();\r\n if (status != PASS) {\r\n System.out.println(\"Error(s) encountered during \" + TEST_NAME + \".\");\r\n } else {\r\n System.out.println(\"All \" + TEST_NAME + \" completed successfully!\");\r\n }\r\n\r\n }",
"private void runAllTests(){\n System.out.println(\"------ RUNNING TESTS ------\\n\");\n testAdd(); // call tests for add(int element)\n testGet(); // tests if the values were inserted correctly\n testSize(); // call tests for size()\n testRemove(); // call tests for remove(int index)\n testAddAtIndex(); // call tests for add(int index, int element)\n\n // This code below will test that the program can read the file\n // and store the values into an array. This array will then be sorted\n // by the insertionSort and it should write the sorted data back into the file\n\n testReadFile(); // call tests for readFile(String filename)\n testInsertionSort(); // call tests for insertionSort()\n testSaveFile(); // call tests for saveFile(String filename)\n System.out.println(\"\\n----- TESTING COMPLETE ----- \");\n }",
"public static void main(String... args) throws Exception {\n //testHelloWorld();\n //testExchange();\n //testParentChild();\n //testLinking();\n //testListener();\n //testParse(\"1\");\n //testOuterInner();\n //testResourceARM();\n //testExecuteAround();\n testExecuteAroundARM();\n }",
"public static void main(String[] args) {\n\t\tdebutTest();\n\t\t\tinstancePerson();\n\t\t\tmodifier1Personne();\n\t\t\t//modifier2Personne();\n\t\t\n\t\tfinTest();\n\t}",
"public static void runAllTheTests() {\n\t\ttestConstructorAndGetters();\n\t}",
"public static void runAllTheTests() {\n\t\ttestConstructorAndGetters();\n\t}",
"public static void main(String args[]){\n\t\tTestingUtils.runTests();\n\t\t\n\t}",
"public static void main(String[] args) {\n \tif(testInsert()) \n \t\tSystem.out.println(\"testInsert: succeeded\");\n \telse\n \t\tSystem.out.println(\"testInsert: failed\");\n if(testSearch()) \n System.out.println(\"testSearch: succeeded\");\n else\n System.out.println(\"testSearch: failed\");\n }",
"public static void main(String arg[]) {\n System.out.println(\"testGuset(): \" + testGuset());\n System.out.println(\"testServingQueue(): \" + testServingQueue());\n System.out.println(\"testDessertSolvers(): \" + testDessertSolvers());\n testCapicity();\n }",
"public static void main(String[] args) {\n\t\ttest4();\n//\t\ttest7();\n//\t\ttest8();\n//\t\ttest9();\n//\t\ttest10();\n//\t\ttest11();\n//\t\t test13() ;\n\t}",
"public static void main(String [] args) {\r\n\t\ttestOne(); //adds items to WH; tests getNumItems method & toString method\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\ttestTwo(); //tests getItem(String) method\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\ttestThree(); //test getItem(Item) method\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\ttestFour(); //tests total cost method\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\ttestFive(); //this will test the getRefrigeratedItems method\r\n\t\tSystem.out.print(\"\\n\"); \r\n\t\ttestSix(); //tests getTotalCostRefrigerated method\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\ttestSeven(); //tests remove method\r\n\t}",
"public static void main(String[] args) {\n\t\ttestStreamMapReduce();\r\n\t\t//testMethodReference();\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\t testMid();\n\t\t testCircular();\n\t\n\t}",
"public void testPreConditions() {\r\n\t //fail(\"Precondition check not implemented!\");\r\n\t assertEquals(true,true);\r\n\t }",
"public static void main(String[] args) {\n\t\tint numTests = 5;\n\t\tint numPassed = 0;\n\t\t\n\t\t// Test Inputs\n\t\tString[] testInputs1 = {\"abcde\",\n\t\t\t\t\t\t\t \"abcde\",\n\t\t\t\t\t\t\t \"xyz\",\n\t\t\t\t\t\t\t \"a\",\n\t\t\t\t\t\t\t \"aaabc\"};\n\t\t\n\t\tString[] testInputs2 = {\"abfde\",\n\t\t\t\t \t\t\t\t\"abde\",\n\t\t\t\t \t\t\t\t\"xyaz\",\n\t\t\t\t \t\t\t\t\"\",\n\t\t\t\t \t\t\t\t\"aabb\"};\n\t\n\n\t\t// Expected outputs\n\t\tboolean[] expOut = {true, true, true, true, false};\n\t\t\n\t\t// Actual outputs \n\t\tboolean[] actOut = new boolean[numTests];\n\n\t\t\n\t\t// for each test (1-3)\n\t\tfor (int i = 0; i < numTests; i++) {\n\t\t\t\n\t\t\tactOut[i] = oneAway(testInputs1[i], testInputs2[i]);\n\t\t\t\t\n\t\t\t// check if matches expected for method 1\n\t\t\tif (expOut[i] == actOut[i]) {\n\t\t\t\tnumPassed++;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"oneAwayTest0\" + i + \"FAILED\");\n\t\t\t\tSystem.out.println(\"-Input String1: \" + testInputs1[i]);\n\t\t\t\tSystem.out.println(\"-Input String2: \" + testInputs2[i]);\n\t\t\t\tSystem.out.println(\"-Expected Result: \" + expOut[i]);\n\t\t\t\tSystem.out.println(\"-Actual Result: \" + actOut[i]);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t// Print Results - method \n\t\tSystem.out.println(\"oneAway Test Results:\");\n\t\tSystem.out.println(\"- # Passed: \" + numPassed);\n\t\tSystem.out.println(\"- # Tests: \" + numTests);\n\n\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\ttestQuery();\n\t\t//testInsert();\n\t\t\n\t}",
"@Test\n\tpublic static void runAllTheTests() {\n\t\ttestGetters();\n\t}",
"public static void main(String[] args) {\n\t\ttest1();\r\n\t\ttest2();\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\t \n\t\tResult result1 = JUnitCore.runClasses(TestUnitForCreate.class);\n\t for (Failure failure : result1.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result1.wasSuccessful());\n\n\t Result result2 = JUnitCore.runClasses(TestUnitForReadByCalimNumber.class);\n\t for (Failure failure : result2.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result2.wasSuccessful());\n\t \n\t Result result3 = JUnitCore.runClasses(TestUnitForReadByLossDate.class);\n\t for (Failure failure : result3.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result3.wasSuccessful());\n\t \n\t\tResult result4 = JUnitCore.runClasses(TestUnitForUpdate.class);\n\t\tfor (Failure failure : result4.getFailures()) {\n\t\t\tSystem.out.println(failure.toString());\n\t\t}\n\t\tSystem.out.println(result4.wasSuccessful());\n\t \n\t Result result5 = JUnitCore.runClasses(TestUnitForReadVehicle.class);\n\t for (Failure failure : result5.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result5.wasSuccessful());\n \n\t Result result6 = JUnitCore.runClasses(TestUnitForDelete.class);\n\t for (Failure failure : result6.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result6.wasSuccessful());\n\t \n\t}",
"public static void main(String[] args){\n new Testing().runTests();\r\n \r\n }",
"static void executeTest() {\n int[] param1 = { // Checkpoint 1\n 12, 11, 10, -1, -15,};\n boolean[] expect = { // Checkpoint 2\n true, false,true, false, true,}; \n System.out.printf(\"課題番号:%s, 学籍番号:%s, 氏名:%s\\n\",\n question, gakuban, yourname);\n int passed = 0;\n for (int i = 0; i < param1.length; i++) {\n String info1 = \"\", info2 = \"\";\n Exception ex = null;\n boolean returned = false; //3\n try {\n returned = isDivable(param1[i]); //4\n if (expect[i] == (returned)) { //5\n info1 = \"OK\";\n passed++;\n } else {\n info1 = \"NG\";\n info2 = String.format(\" <= SHOULD BE %s\", expect[i]);\n }\n } catch (Exception e) {\n info1 = \"NG\";\n info2 = \"EXCEPTION!!\";\n ex = e;\n } finally {\n String line = String.format(\"*** Test#%d %s %s(%s) => \",\n i + 1, info1, method, param1[i]);\n if (ex == null) {\n System.out.println(line + returned + info2);\n } else {\n System.out.println(line + info2);\n ex.printStackTrace();\n return;\n }\n }\n }\n System.out.printf(\"Summary: %s,%s,%s,%d/%d\\n\",\n question, gakuban, yourname, passed, param1.length);\n }",
"public static void main(String[] args) {\r\n\t\tSystem.out.println(\"Testing Calculator\");\r\n\t\ttestConstructors();\r\n\t\ttestSetters();\r\n\t\ttestGetters();\r\n\t\ttestToString();\r\n\t}",
"public static void main(String[] args) {\n List<SortBase<Integer>> list = Arrays.asList(new Select<>(), new Insert<>(), new Shell<>(), new MergeImpl2<>(), new Quick<>(),new HeapSort<>());\n for (SortBase<Integer> sort : list) {\n StdOut.print(sort.getClass().getSimpleName()+\"\\n\");\n sort.testCorrectness(new Integer[]{3, 2, 1, 5, 7, 8, 32, 12, 0, -4, -12});\n }\n }",
"public static void main(String[] args) \r\n\t{\r\n\t\tShouldGetSize();\r\n\t\tShouldFindIfContains();\r\n\t\tShouldFindRange();\r\n\t}",
"public static void main(String[] args) {\n System.out.println(testLibraryParseCardBarCode());\n System.out.println(testLibraryParseRunLibrarianCheckoutBookCommand());\n System.out.println(testLibraryParseRunSubscriberReturnBookCommand());\n System.out.println(testparseBookId());\n System.out.println(testparseRunSubscriberCheckoutBookCommand());\n }",
"@Test\r\n\tpublic void testSanity() {\n\t}",
"public static void main(String[] args)\n {\n int numErrors = 0;\n\n // testing all the methods with one instance of the class\n BasicDoctor d = new BasicDoctor(\"Joe\");\n if(! d.getName().equals(\"Joe\")) {\n System.out.println(\"The constructor or getName failed\");\n numErrors++;\n }\n d.setName(\"Dr. Joe\");\n if(! d.getName().equals(\"Dr. Joe\")) {\n System.out.println(\"The constructor or setName failed\");\n numErrors++;\n }\n String expected = \"\\nName: Dr. Joe\\n\";\n if(!d.toString().equals(expected)) {\n System.out.println(\"The constructor or toString failed\");\n numErrors++;\n }\n\n // testing all the methods with a second instance of the class\n d = new BasicDoctor(\"Mary\");\n if(! d.getName().equals(\"Mary\")) {\n System.out.println(\"The constructor or getName failed\");\n numErrors++;\n }\n d.setName(\"Dr. Mary\");\n if(! d.getName().equals(\"Dr. Mary\")) {\n System.out.println(\"The constructor or setName failed\");\n numErrors++;\n }\n expected = \"\\nName: Dr. Mary\\n\";\n if(!d.toString().equals(expected)) {\n System.out.println(\"The constructor or toString failed\");\n numErrors++;\n }\n\n System.out.println(\"The number of errors found is \" + numErrors);\n }",
"@Test\n\tpublic void testMain() {\n\t\t// TODO: test output streams for various IO methods, emulating a user's\n\t\t// input - kinda like Joel did for CSSE2310\n\t\tAssert.fail();\n\t}",
"public static void main(String[] args) {\n final int t = SYS_IN.nextInt(); // total test cases\n SYS_IN.nextLine();\n for (int ti = 0; ti < t; ti++) {\n evaluateCase();\n }\n SYS_IN.close();\n }",
"public static void main(String[] args) {\n // PUT YOUR TEST CODE HERE\n }",
"public static void main(String[] args) {\n Part2_2 part2_2 = new Part2_2();\n part2_2.testHowMany();\n Part2_3 part_23 = new Part2_3();\n part_23.testHowManyGenes();\n Part3_1 part3_1 = new Part3_1();\n part3_1.testCgRatio();\n }",
"@Test\n public void verifyPathsInSequence() {\n LOG.debug(\"### Executing \"+ Thread.currentThread().getStackTrace()[1].getMethodName() +\" ####\");\n testGetCompanyHome();\n testGetCabinetFolder();\n testGetCaseFolder();\n testGetDocumentLibraryFolder();\n testEvidenceBankFolder();\n\n }",
"@Test\n public void testAll() throws ParseException {\n testCreate();\n testExists(true);\n testGetInfo(false);\n testUpdate();\n testGetInfo(true);\n testDelete();\n testExists(false);\n }",
"@Test\n public void testIndependentPostTest() {\n // GIVEN\n Owner owner = new Owner(\"Bela\", \"Bp, Parlament\", dog, cat);\n\n // WHEN - THEN\n assertTrue(owner.hasDog());\n }",
"@Test\n public void testMain() throws Exception {\n //main function cannot be tested as it is dependant on user input\n System.out.println(\"main\");\n }",
"public static void main(String[] args) {\n\n\n for (int i = 0; i < 3; i++) {\n System.out.println(\"\\n********* TEST \" + (i+1) + \" *********\");\n experimentOne(false);\n experimentOne(true);\n\n experimentTwo(false);\n experimentTwo(true);\n\n experimentThree(false);\n experimentThree(true);\n }\n }",
"public static void main(String[] args) {\n\t\tDifferentMethods di = new DifferentMethods();\r\n\t\tdi.ReadNumber();\r\n\t\tint isEven = di.Verify();\r\n\t di.Print(isEven);\r\n\t\r\n\t\t\r\n\r\n\t}",
"public static boolean runAllTests() {\r\n\r\n return testLinkedCart() && testAlphabetListConstructorIsEmpty()\r\n && testAlphabetListConstructorBadInput() && testAlphabetListAddBadInput1()&&\r\n testAlphabetListAddBadInput2()&&testAlphabetListAddBadInput2()&&\r\n testAlphabetListAdd() && testAlphabetListRemove();\r\n }",
"public static void main(String[] args) throws IOException {\n\t\t testType1();\n\n\t\t// testMatrix();\n//\t\ttestKening();\n\t\t\n//\t\ttestOutline();\n\t}",
"public static void main(String[] arg) {\n testSingleLowRate();\n testSingleHighRate();\n testMarriedLowRate();\n testMarriedHighRate();\n System.out.println(doesPass ? \"PASS\" : \"FAIL\");\n }",
"private void doTests()\n {\n doDeleteTest(); // doSelectTest();\n }",
"private static void postCheck(String condition, HashMap<String, Object> preParams, HashMap<String, Object> postParams, HashMap<String, Object> preFields, HashMap<String, Object> postFields, Object result) throws ContractException {\n Bindings bind = engine.createBindings(); //A binding is used to link java and javascript.\n\n bind.putAll(preParams); //This adds the hashmaps of parameters to the engine.\n bind.putAll(postParams);\n bind.putAll(preFields); //This adds the fields.\n bind.putAll(postFields);\n\n bind.put(\"result\", result); //This adds the result to the script engine.\n\n engine.setBindings(bind, ScriptContext.ENGINE_SCOPE);\n\n testSimpleAssertion(condition, \"Post condition\"); //This runs the test.\n }",
"@Test public void runCommonTests() {\n\t\trunAllTests();\n\t}",
"public static void main (String[] args) {\n \n doTest (\"hello\");\n doTest (\"query\");\n doTest (\"Mississippi\");\n doTest (\"elephant\");\n doTest (\"Qatar\");\n System.out.println();\n \n }",
"public static void main(String[] args) {\r\n\t\t// test method\r\n\t\tNewFeatures newFeatures = new NewFeatures();\r\n\t\tnewFeatures.testingArrayList();\r\n\t\tnewFeatures.testingTryCatch();\r\n\t\tnewFeatures.testingNumericValues();\r\n\t\tnewFeatures.testingSwitchWithStringStatemant();\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\trun();\n\t\t//runTest();\n\n\t}",
"public static void main(String[] args) {\r\n System.out.println(runAllTests());\r\n }",
"public static void main(String[] args) {\n //init\n Client.getLayerIntersectDao().getConfig().getIntersectionFile(null);\n\n //tests\n TestLayers();\n// TestFields();\n// TestObjects();\n// TestDistributions();\n// TestDistributionData();\n// TestDistributionShapes();\n// TestObjNames();\n }",
"public void TestMain(){\n SampleStatements();\n TestMyPow();\n }",
"public void testMain(Object[] args) \n\t{\n\t\t//----------------------------------------------------------------------\n\t\t// Verify SUCCESS of Journey\n\t\t// Grab Inspection Details and Report\n\t\t//----------------------------------------------------------------------\n\t\ttry {\t\t\t\n\t\t\t//----------------------------------------------------------------------\t\t\t\t\n\t\t\thtml_thankYou().waitForExistence(20.0, 0.25);\n\t\t\t//----------------------------------------------------------------------\t\t\t\t\n\t\t\tString sPaymentSuccess_Text = (String)html_thankYou().getProperty(\".text\");\t\t\n\t\t\t//----------------------------------------------------------------------\t\t\t\t\n\t\t\tSystem.out.println(\" PAYMENT SUCCESS * * * \"+sPaymentSuccess_Text+\"* * * \");\n\t\t\tlogTestResult(\" PAYMENT SUCCESS * * * \"+sPaymentSuccess_Text+\"* * * \", true);\t\t\n\t\t\t//----------------------------------------------------------------------\t\t\t\t\n\t\t} catch (Exception e) {\t\t\t\n\t\t\tlogTestResult(\" There Is A Problem WIth The CONFIRMATION Page - Quote Text Is NULL, Payment Gateway Issue or The Page Structure Changed?\", false);\t\t\n\t\t}\n\t\t//----------------------------------------------------------------------\t\n\t\tSystem.out.println(\"Test Journey Completed\");\n\t\tSystem.out.println(\"---------------------------------------------------\");\n\t\tiE().close();\n\t\t//stop();\n\t\t//----------------------------------------------------------------------\t\n\t}",
"public static void main(String args[]) {\n\t\ttestFindStop();\n\t\ttestFindGene() ;\n\t\ttestAllGenes();\n\t}",
"public static void main(String[] args) {\n\t\t//Test\n\t\tTestEulerLibrary.testPrimeFactors();\n\t\tTestEulerLibrary.testNumDivisors();\n\t\tTestEulerLibrary.testSumDivisors();\n\t\t\n\t\t//run Euler solutions\n\t\tnew p020().run();\n\t}",
"public static void main(String[] args) {\n\ttest(tests);\n }",
"public static void main(String[] args){\n for(String s : args){\n boolean a = validateGroup(\"team2\",s);\n boolean b = validateEIT(\"kate\",\"team2\",s);\n boolean c = validateFellow(\"kate\");\n boolean d = checkGroupSize(1);\n\n System.out.println(\"The validateGroup test (expecting false) \" + a);\n System.out.println(\"The validateEIT test (expecting false) \" + b);\n System.out.println(\"The validateFellow test (expecting false) \" + c);\n System.out.println(\"The checkGroupSize test (expecting false) \" + d);\n\n }\n }",
"@Test\n void testCalculations() {\n double addition = calculator.add(10, 2);\n double subtraction = calculator.sub(10, 2);\n double multiplication = calculator.mul(10, 2);\n double division = calculator.div(10, 2);\n\n //Then\n assertEquals(12, addition);\n assertEquals(8, subtraction);\n assertEquals(20, multiplication);\n assertEquals(5, division);\n }",
"public static void main(String[] args) throws Exception {\n\n\t\t testDistance();\n\n\t\t //functionFitting();\n\t\t //testFunction();\n\t}",
"protected void preTest() {\n\t\tprintTestParmas();\n\t\tif (attenuatorSetUnderTest != null) {\n\t\t\tperipheralsConfig.setAttenuatorSetValue(attenuatorSetUnderTest,\n\t\t\t\t\tattenuatorSetUnderTest.getDefaultValueAttenuation());\n\t\t} else {\n\t\t\treport.report(\"There is no attenuator set \");\n\t\t}\n\t\tchangeOtherENBsToOOS();\n\n\t\t/*if (runWithDynamicCFI)\n\t\t\tenbConfig.enableDynamicCFI(this.dut);\n\t\telse\n\t\t\tenbConfig.disableDynamicCFI(this.dut);*/\n\t\t\n\t\tgetRadioProfile();\n\n\t\tprintResultsForTest = true;\n\t\tresetTestBol = false;\n\t\texceptionThrown = false;\n\t}",
"public static void runAllTests() {\n\t\trunClientCode(SimpleRESTClientUtils.getCToFServiceURL());\n\t\trunClientCode(SimpleRESTClientUtils.getCToFServiceURL(new String [] {\"100\"}));\n\t}",
"@Test\n\tpublic void testMain() {\n\t}",
"public static void main(String[] args)\r\n\t{\n\t\tMyStringBuilder msb;\r\n\t\tStringBuilder sb;\r\n\t\tString s;\r\n\t\t//Loop iterating 3 times testing each method for all types one by one\r\n\t\tfor(int i = 0; i < 3; i++)\r\n\t\t{\r\n\t\t\t//Initialize variables\r\n\t\t\tmsb = new MyStringBuilder(\"\");\r\n\t\t\tsb = new StringBuilder(\"\");\r\n\t\t\ts = new String(\"\");\r\n\t\t\t//Test fill, delete, and insert with each iteration of the loop respectively\r\n\t\t\tswitch(i)\r\n\t\t\t{\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tfill(msb, args[0]);\r\n\t\t\t\t\tfill(sb, args[0]);\r\n\t\t\t\t\tfill(s, args[0]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tdelete(msb, args[0]);\r\n\t\t\t\t\tdelete(sb, args[0]);\r\n\t\t\t\t\tdelete(s, args[0]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tinsert(msb, args[0]);\r\n\t\t\t\t\tinsert(sb, args[0]);\r\n\t\t\t\t\tinsert(s, args[0]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\t\r\n\t}",
"public static void main(String[] args) {\n\t\t\tmeth(args);\r\n\t\t\targument_test:meth(args);\r\n\t}",
"public static void main(String[] args) {\n\r\n // action\r\n // - nothing\r\n\r\n // check\r\n // - nothing\r\n }",
"public static void main(String[] args){\n verseOne();\n verseTwo();\n verseThree();\n verseFour();\n verseFive();\n verseSix();\n verseSeven(); \n }",
"public static void main(String[] args) {\n Assert.assertEquals(true,true);\n System.out.println(\"Anagram class is passed\");\n\n //DetermineLargestWord class result....\n Assert.assertEquals(10,10);\n System.out.println(\"DeterMindLargestWord class is passed\");\n\n }",
"public static void main(String[] args) {\n\t\t\n\t\t\n\t\ttest01();\n\t}",
"public static void main(String[] args) throws InterruptedException {\n signin();\n\n\n //test case 4\n searchProduct();\n //test case 5:\n //searchInvalidProduct();\n\n }",
"public static void main(String[] args) {\n\t\tList<String> productionIssues = AllTestMethodNames.getTestSuiteProductionIssuesMethods(product);\n\t\tList<String> obsolete = AllTestMethodNames.getTestSuiteObsoleteMethods(product);\n\t\tproductionIssues.addAll(obsolete);\n\t\tList<String> productionIssuesAndObsoleteTestCases = productionIssues;\n\n\t\tList<String> logNew;\n\t\tList<String> logOld;\n\t\tLogAnalyzer tool;\n\n\t\tinitializeToolPaths();\n\t\tlogNew = LogAnalyzerReader.readJenkinsLogFromFile(LOG_ANALYZER_LOG_NEW);\n\t\tlogOld = LogAnalyzerReader.readJenkinsLogFromFile(LOG_ANALYZER_LOG_OLD);\n\t\ttool = new LogAnalyzer(logNew);\n\t\tcreateFullReport(tool, logOld, productionIssuesAndObsoleteTestCases);\n\n\t\t// generate xml file with test cases which were started during an automation run but never finished\n\t\t// createXMLWithUnfinishedTestCases(tool, productionIssuesAndObsoleteTestCases);\n\n\t\t// generate xml file with test cases which were not started at all because for instance test run failed before finishing. (eg Java Heap)\n\t\t// Place log contents of complete full recent run into C:\\Automation_artifacts\\LogAnalyzer\\LogAnalyzer-LogOld.log\n\t\t// createXMLWithTestCasesThatNeverStartedFromLog(tool, logOld, productionIssuesAndObsoleteTestCases);\n\n\t\t// Change to which group test cases belong to.\n\t\t// Options below will add additional group to the @Test(groups = {\"\"}) the test cases belong to or if non exist then it will add a new one. This will make the change in the\n\t\t// source code.\n\t\t// In the test case file each test case is separated by a new line, 2 test case file would be ex:\n\t\t// c158643\n\t\t// c256486\n\t\t// Uncomment the option you want below. Place testCaseList.txt file containing test cases needing update in C:\\Automation_artifacts\\LogAnalyzer\\ directory.\n\t\t// Update the product variable value above if its different than cpm\n\n\t\t// AllTestMethodNames.addTestCaseToObsoleteTestCasesGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.addTestCaseToProductionIssuesGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.addTestCaseToExternalExecGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.addTestCaseToDateTimeChangeGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\",product);\n\t\t// AllTestMethodNames.addTestCaseToCustomGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", \"EnterCustomGroupNameHere\", product); // enter your custom group name as the 2nd parameter.\n\n\t\t// Remove to which group test cases belong to.\n\t\t// AllTestMethodNames.removeTestCaseFromObsoleteTestCasesGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.removeTestCaseFromProductionIssuesGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.removeTestCaseFromExternalExecGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.removeTestCaseFromDateTimeChangeGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.removeTestCaseFromCustomGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\",\"EnterCustomGroupNameHere\", product ); // enter your custom group name as the 2nd parameter.\n\n\t}",
"@Test\n public void testingTheTwoPlane2016Order() {\n }",
"public static void main(String[] args) {\n\n System.out.println(\"Before the method\");\n // Call exampleMethod\n exampleMethod();\n\n System.out.println(\"Between the method calls\");\n // Call it again\n exampleMethod();\n\n System.out.println(\"After the method\");\n }",
"public static void main(String[] args) throws Exception {\n testPost();\n }",
"TestClassExecutionResult assertTestsExecuted(TestCase... testCases);",
"public static void main(String[] args){\n //The driver of the methods created above\n //first display homeowork header\n homeworkHeader();\n //calls driver method\n System.out.println(\"Calling driver method:\");\n driver(true);//runs choice driver\n //when prompted for a choice input 9 to see test driver\n System.out.println(\"End calling of driver method\");\n \n }",
"public static void main(String[] args) {\r\n\t\tnew Test0().tc1() ;\r\n\t\tnew Test0().tc2() ;\r\n\t\tnew Test0().tc3() ;\r\n\t\tnew Test0().tc4() ;\r\n\t\tnew Test0().tc5() ;\r\n\t\tnew Test0().tc6() ;\r\n\t}",
"@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = null;\n CashRegister.main(args);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }",
"@Test\n public void baseCommandTests_part1() throws Exception {\n ExecutionSummary executionSummary = testViaExcel(\"unitTest_base_part1.xlsx\");\n assertPassFail(executionSummary, \"base_showcase\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"function_projectfile\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"function_array\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"function_count\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"function_date\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"actual_in_output\", TestOutcomeStats.allPassed());\n }",
"public static void main(String[] args) {\n\t\tTestGeneric t=new TestGeneric();\n\t\tt.testAdd();\n\t\tt.testForEach();\n\t\tt.testChild();\n\t\tt.testForEach();\n\t\tt.testBasicType();\n\t\t\n\n\t}",
"@Test// to tell jUnit that method with @Test annotation has to be run. \n\tvoid testAdd() {\n\t\tSystem.out.println(\"Before assumption method: Add Method\");\n\t\tboolean isServerUp = false;\n\t\tassumeTrue(isServerUp,\"If this method ran without skipping, my assumption is right\"); //Eg: This is used in occasions like run only when server is up.\n\t\t\n\t\tint expected = 2;\n\t\tint actual = mathUtils.add(0, 2);\n\t\t//\t\tassertEquals(expected, actual);\n\t\t// can add a string message to log \n\t\tassertEquals(expected, actual,\"add method mathUtils\");\n\t}",
"public static void main(String[] args) {\r\n \tScanner scan = new Scanner(System.in);\r\n \tint testCases = scan.nextInt();\r\n \tString[] str = new String[testCases];\r\n \tscan.skip(\"(\\r\\n|[\\n\\r\\u2028\\u2029\\u0085])?\");\r\n \t// first constraint\r\n \tif ((testCases >= 1) && (testCases <= 10)) {\r\n \t\tfor (int j = 0; j < testCases; j++) {\r\n \t\t\tstr[j] = scan.next();\r\n \t\t}\r\n \t\tfor (int k = 0; k < str.length; k++) {\r\n \t\t\ttest(str[k]);\r\n \t\t}\r\n \t} else {\r\n \t\tSystem.out.println(\"The number of test cases must be between 1 and 10.\");\r\n \t}\r\n \tscan.close();\r\n \t\r\n }",
"public void testMain() throws ClassNotFoundException, IOException \r\n {\r\n String[] args = new String[1];\r\n args[0] = \"SyntaxTest\";\r\n \r\n System.out.println(\"Filename: SyntaxTest:\\n\");\r\n Rectangle1.main(args);\r\n \r\n\r\n\r\n String[] args2 = new String[1];\r\n args2[0] = \"SimpleInsertionTest\";\r\n \r\n System.out.println(\"\\n\\nFilename: SimpleInsertionTest:\\n\");\r\n Rectangle1.main(args2);\r\n \r\n String[] args3 = new String[1];\r\n args3[0] = \"RegionSearchTest\";\r\n \r\n System.out.println(\"\\n\\nFilename: RegionSearchTest:\\n\");\r\n Rectangle1.main(args3);\r\n \r\n String[] args4 = new String[1];\r\n args4[0] = \"WebCatTests\";\r\n \r\n System.out.println(\"\\n\\nFilename: WebCatTests:\\n\");\r\n Rectangle1.main(args4);\r\n \r\n String[] args5 = new String[1];\r\n args5[0] = \"RemoveTest\";\r\n \r\n System.out.println(\"\\n\\nFilename: RemoveTest:\\n\");\r\n Rectangle1.main(args5);\r\n \r\n String[] args6 = new String[1];\r\n args6[0] = \"MoreCommands\";\r\n \r\n System.out.println(\"\\n\\nFilename: MoreCommands:\\n\");\r\n Rectangle1.main(args6);\r\n \r\n assertEquals(\"RegionSearchTest\", args3[0]);\r\n }",
"public static void main(String[] args) {\r\n\r\n\t\ttry {\r\n\t\t\tDatabaseManager.setPatternNumber(1);\r\n\t\t\tDatabaseManager.getSingleton().openConnection();\r\n\r\n\t\t\tSingleTableCreator.dropAllTables();\r\n\t\t\tSingleTableCreator.createTables();\r\n\t\t\tSingleTableCreator.addTestRows();\r\n\r\n\t\t\tTestEVERYTHING.testRunAllTheTests();\r\n\r\n\t\t\tSystem.out.println(\"ya done diddly did it\");\r\n\r\n\t\t\tDatabaseManager.getSingleton().closeConnection();\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tDatabaseException.detectError(e, \"Runnable - Single\");\r\n\t\t}\r\n\t}",
"public static void main(String[] args) throws Exception {\n\n\t\t// nodeProbeTester();\n\n\t\tpathSortTester();\n\n\t}",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n drunkardTest(TEST_STEP_TIMES_1, TEST_STEP_SIZE_1);\n drunkardTest(TEST_STEP_TIMES_2, TEST_STEP_SIZE_2);\n\t}",
"public static void main(String[] args) throws Exception {\n yeepayCallBack();\n// refund();\n// URLConnectionTool.readContentFromPost(\"http://117.78.45.101:8083/pay/lycheepay/reconfileDownload\",\"startDate=20170210&endDate=20170224\",\"60000\",\"60000\");\n// testWhiteListUpload();\n// testWhiteListOneQuery();\n// testWhiteListBatcheQuery();\n// onePayRequest();\n// callBack();\n// onePayCheckBookQuery();\n// payWithRouter();\n// batchPayRequest();\n// batchPayStatQuery();\n// batchPayDetailQuery();\n }",
"public static void main(String[] args) {\n AbstractFactory engineFactory = getFactory(\"ENGINE\");\n IEngines engine1 = engineFactory.getEngine(\"DIESEL\");\n engine1.installEngine();\n IEngines engine2 = engineFactory.getEngine(\"OTTO\");\n engine2.installEngine();\n IEngines engine3 = engineFactory.getEngine(\"ELECTRIC\");\n engine3.installEngine();\n IEngines engine4 = engineFactory.getEngine(\"TURBO\");\n engine4.installEngine();\n\n // This part of code checks the installation procedure of all types of tires which have been implemented;\n // Several variables are being declared and initialized;\n AbstractFactory tireFactory = getFactory(\"TIRES\");\n ITires tire1 = tireFactory.getTires(\"WINTER\");\n tire1.installTires();\n ITires tire2 = tireFactory.getTires(\"CASUAL\");\n tire2.installTires();\n ITires tire3 = tireFactory.getTires(\"RACING\");\n tire3.installTires();\n\n\n }",
"public static void main(String[] args) {\n inOrbitDestinationControllerTest();\n// inOrbitReplayControllerTest();\n\n }",
"@Test\n\t/**\n\t * Testing the conditional statements.\n\t * Testing:\n\t * - A correct sample program.\n\t * - A sample program containing spelling and context free errors.\n\t * - A sample program containing context errors.\n\t * - A sample program containing runtime errors.\n\t * \n\t * @throws ParseException\n\t * @throws IOException\n\t */\n\tpublic void conditionalTest() throws ParseException, IOException{\n\t\tint[] input = {5, 4, 10, 6, 99};\n\t\tint[] output = {1, -1, 5, 5, 99, 5, -1, 99};\n\t\tcheckRuntime(\"conditionalCorrect\", input, output);\n\t\t\n\t\t/** Check whether a program contains syntax errors. */\n\t\tcheckFail(\"conditionalSpellingContextFreeSyntaxError\");\n\t\t\n\t\t/** Check whether a program contains the given errors. */\n\t\tSet<String> errors = new HashSet<String>();\n\t\terrors.add(\"Line 36:24 - Expected type 'Boolean' but found 'Char'\");\n\t\terrors.add(\"Line 34:10 - Expected type 'Boolean' but found 'Integer'\");\n\t\terrors.add(\"Line 39:9 - Expected type not null but found 'null'\");\n\t\terrors.add(\"Line 44:10 - Expected type not null but found 'null'\");\n\t\terrors.add(\"Line 58:10 - 'ivar4' not defined in scope\");\n\t\terrors.add(\"Line 61:9 - 'ivar3' not defined in scope\");\n\t\terrors.add(\"Line 65:1 - Expected type 'Boolean' but found 'Integer'\");\n\t\terrors.add(\"Line 103:1 - Expected type 'Char' but found 'Boolean'\");\n\t\terrors.add(\"Line 132:1 - Expected type 'Integer' but found 'Char'\");\n\t\tcheckContextFail(\"conditionalContextError\", errors);\n\t\t\n\t\t/** Check whether a program gives a runtime error. */\n\t\tcheckRuntimeFail(\"conditionalRuntimeError\", 1);\n\t}",
"public static void main(String args[]) {\n new CreateJavaDBDatabaseOperator().verify();\n System.out.println(\"CreateJavaDBDatabaseOperator verification finished.\");\n }",
"@Test\r\n\t public void hasSubmitted3() {\n\t \tthis.admin.createClass(\"ecs60\",2017,\"sean\",50);\r\n\t \tthis.student.registerForClass(\"gurender\", \"ecs60\", 2017);\r\n\t this.instructor.addHomework(\"sean\", \"ecs60\", 2017, \"p1\");\r\n\t this.student.submitHomework(\"gurender\", \"p1\", \"abc\", \"ecs60\", 2017);\r\n\t this.student.dropClass(\"gurender\", \"ecs60\", 2017);\r\n\t assertTrue(this.student.hasSubmitted(\"gurender\", \"p1\", \"ecs60\", 2017));\r\n\t }",
"@Test\n public void verifyPost2Corporate_EVENT_TYPE_RULE()\n {\n\n String clauseStatement =\"EVENT_TYPE = 'C2CORP'\";\n\n //The aim is to use a List for each Event Types. Each Event Type Data should have its onw list\n //And on each Test below we will use the Lists accordingly\n objSUB_EVN_LIST_DATA = new T_C3D_SUBSCR_SUB_EVN_LIST_DATA(clauseStatement);\n objtestSUB_EVN_LIST = objSUB_EVN_LIST_DATA.getData();\n\n objSUB_ATR_LIST_DATA = new T_C3D_SUBSCR_SUB_ATR_LIST_DATA();\n objSUB_ATR_LIST = objSUB_ATR_LIST_DATA.getData();\n\n // Log the Start of the Test\n logger = report.startTest(\"EVENT_TYPE = DEAL_SWAP \",\n \"TO VERIFY THAT EVENT_TYPE ACT MANDATORY FIELDS ARE POPULATED WITH CORRECT DATA\");\n\n int numberOfSubsWithCorrectValues = 0;\n int numberOfSubsWithIncorrectValues= 0;\n int totalNumberOfSubs = 0;\n int failedSubs = 0;\n int passedSubs = 0;\n\n try {\n\n String busEventTypeStr = null;\n String eventDateStr = null;\n String eventTypeStr = null;\n String eventSubsId = null;\n String strCUSTOMER_ID = null;\n String strMSIN = null;\n String strICC_ID = null;\n Object PROFILE_START_DATE_VALUE = null;\n Object strPROFILE_END_DATE;\n String strSUBSCRIBER_ID;\n String strT11_MSISDN;\n String strEXTERNAL_ID;\n String strACTIVATION_DATE;\n String strEVENT_SEQ;\n String strCONNECTION_DATE;\n Object strDISCONNECTION_DATE;\n Object strEvent_Date;\n\n\n TRANSLATION_LAYER_MANDATORY_FIELDS Function = new TRANSLATION_LAYER_MANDATORY_FIELDS();\n\n for(T_C3D_SUBSCR_SUB_EVN_LIST objSUB_EVN_LIST : objtestSUB_EVN_LIST){\n\n listOfNullValues.clear();\n listOfIncorrectValues.clear();\n listOfCorrectValues.clear();\n\n try {\n eventSubsId = objSUB_EVN_LIST.getSUBSCRIBER_ID().toString();\n\n } catch (Exception e) {\n\n isSubsIdNotNull = false;\n listOfNullValues.add(\" SUBS_ID '\"+objSUB_EVN_LIST.getSUBSCRIBER_ID()+\"'\");\n }\n\n try {\n strCUSTOMER_ID = objSUB_EVN_LIST.getCUSTOMER_ID().trim().toString();\n\n } catch (Exception e) {\n\n if(checkDuplication(listOfDuplicationRecord,eventSubsId) == false) {\n\n listOfNullValues.add(\" CUSTOMER_ID: '\"+objSUB_EVN_LIST.getCUSTOMER_ID()+\"'\");\n }\n else\n {\n listOfDuplicationRecord.add(eventSubsId);\n }\n }\n\n\n try {\n\n strEvent_Date = objSUB_EVN_LIST.getEVENT_DATE().toString();\n\n\n\n } catch (Exception e) {\n\n listOfNullValues.add(\" EVENT_DATE: '\"+objSUB_EVN_LIST.getEVENT_DATE()+\"'\");\n }\n\n try {\n if (objSUB_EVN_LIST.getBUS_EVENT_TYPE().equals(\"DI\")) {\n\n isSuspen_BusEventType_Null = true;\n listOfCorrectValues.add(\" BUS_EVENT_TYPE: '\"+objSUB_EVN_LIST.getBUS_EVENT_TYPE()+\"'\");\n\n } else\n {\n isSuspen_BusEventType_Null = false;\n listOfIncorrectValues.add(\" BUS_EVENT_TYPE: '\"+objSUB_EVN_LIST.getBUS_EVENT_TYPE()+\"'\");\n }\n } catch (Exception e) {\n isBusEventTypeNotNull = false;\n listOfNullValues.add(\" BUS_EVENT_TYPE: '\"+objSUB_EVN_LIST.getBUS_EVENT_TYPE()+\"\");\n\n }\n\n Function.TRANSLATION_LAYER_MONDATORY_FIELDS();\n\n\n if(listOfNullValues.size() > 0 && listOfIncorrectValues.size() > 0 ) {\n logger.log(LogStatus.FAIL, \"FOR SUBS_ID = [\" + objSUB_EVN_LIST.getSUBSCRIBER_ID() + \"]\", \" FIELDS WITH NULLS : \" + listOfNullValues+//errorMessageOfNull+\n \" FIELDS WITH INCORRECT VALUES : \" + listOfIncorrectValues);\n numberOfSubsWithNullValues++; numberOfSubsWithIncorrectValues++; totalNumberOfSubs++; failedSubs++;\n //isCheckAllAttr = false;\n }\n else if(listOfNullValues.size() > 0 && listOfIncorrectValues.size() == 0 ) {\n logger.log(LogStatus.FAIL, \"FOR SUBS_ID = [\" + objSUB_EVN_LIST.getSUBSCRIBER_ID() + \"]\", \" FIELDS WITH NULLS : \" +listOfNullValues);//+ errorMessageOfNull);\n //isCheckAllAttr = false;\n numberOfSubsWithNullValues++; totalNumberOfSubs++; failedSubs++;\n }\n else if(listOfNullValues.size() == 0 && listOfIncorrectValues.size() > 0 ) {\n logger.log(LogStatus.FAIL, \"FOR SUBS_ID = [\" + objSUB_EVN_LIST.getSUBSCRIBER_ID() + \"]\",\" FIELDS WITH INCORRECT VALUES : \" +listOfIncorrectValues);//+ errorMessageOfIncorrect);\n numberOfSubsWithIncorrectValues++; totalNumberOfSubs++; failedSubs++;\n }else if(listOfCorrectValues.size()>0){\n\n logger.log(LogStatus.PASS, \"FOR SUBS_ID = [\" + objSUB_EVN_LIST.getSUBSCRIBER_ID() + \"]\",\"EVENT_TYPE: '\" + objSUB_EVN_LIST.getEVENT_TYPE()+\"' \"+\"BUSINESS EVENT_TYPE: '\" + objSUB_EVN_LIST.getBUS_EVENT_TYPE()+\"' \"+\" EVENT_DATE: '\"+ objSUB_EVN_LIST.getEVENT_DATE()+\"'\");numberOfSubsWithCorrectValues++; totalNumberOfSubs++; passedSubs++;\n }\n\n }\n\n logger.log(LogStatus.INFO,\"STATISTICS \");\n logger.log(LogStatus.INFO,\"\"+numberOfSubsWithNullValues,\" SUBSCRIBERS WITH NULLS \");\n logger.log(LogStatus.INFO,\"\"+numberOfSubsWithCorrectValues,\" SUBSCRIBERS WITH CORRECT VALUES \");\n logger.log(LogStatus.INFO,\"\"+numberOfSubsWithIncorrectValues,\" SUBSCRIBERS WITH INCORRECT VALUES \");\n logger.log(LogStatus.INFO,\"\"+failedSubs,\" FAILED SUBSCRIBERS \");\n logger.log(LogStatus.INFO,\"\"+passedSubs,\" PASSED SUBSCRIBERS \");\n logger.log(LogStatus.INFO,\"\"+totalNumberOfSubs,\" TOTAL NUMBER OF SUBSCRIBERS \");\n\n\n }catch (Exception e)\n {\n logger.log(LogStatus.FAIL,\"ALL SUBS HAVE NULL EVENT_TYPE\");\n // System.out.println(\"EVENT_TYPE have NULLS for ALL SUBS\");\n }\n\n }",
"private static void forAllCheck(String condition, HashMap<String, Object> preParams, HashMap<String, Object> postParams, HashMap<String, Object> preFields, HashMap<String, Object> postFields, Object result) throws ContractException {\n //This is the generalised looped post check, which changes depends on who called it.\n loopedCheck(condition, preParams, postParams, preFields, postFields, result, false, \"ForAll(Post)\");\n }"
] | [
"0.6976199",
"0.67463934",
"0.67404693",
"0.6669134",
"0.66367006",
"0.6579784",
"0.65115744",
"0.6466774",
"0.6455016",
"0.64229995",
"0.64049363",
"0.63954556",
"0.6387314",
"0.6352921",
"0.63405645",
"0.6335968",
"0.6335968",
"0.63158077",
"0.6314938",
"0.62886983",
"0.6274654",
"0.6271901",
"0.626488",
"0.6263765",
"0.62472975",
"0.6239293",
"0.6237844",
"0.62335366",
"0.6229509",
"0.6205882",
"0.61944747",
"0.6182361",
"0.61806357",
"0.6175329",
"0.6174172",
"0.61714125",
"0.6150092",
"0.61396605",
"0.6129876",
"0.6126494",
"0.6112152",
"0.61108816",
"0.609039",
"0.6080914",
"0.60692215",
"0.6059518",
"0.60574955",
"0.60508716",
"0.60447717",
"0.60261875",
"0.6023868",
"0.6023503",
"0.60207736",
"0.60176027",
"0.6016324",
"0.601498",
"0.60001636",
"0.5987817",
"0.59756356",
"0.5975234",
"0.59691596",
"0.5961683",
"0.5943296",
"0.5942117",
"0.5941889",
"0.5933125",
"0.5919527",
"0.59131235",
"0.5909455",
"0.59091336",
"0.5894381",
"0.58868176",
"0.5886767",
"0.58802885",
"0.5871073",
"0.58581376",
"0.5849788",
"0.5849214",
"0.5845167",
"0.58238053",
"0.5819409",
"0.58187246",
"0.58118874",
"0.58098954",
"0.5809837",
"0.57998985",
"0.5799535",
"0.57940423",
"0.5789187",
"0.5789056",
"0.5787844",
"0.57872784",
"0.57803005",
"0.5776188",
"0.57743806",
"0.5773945",
"0.57713723",
"0.5767068",
"0.57518923",
"0.5750597",
"0.57473487"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View arg0) {
listView.setAdapter(urgentTodosAdapter);
urgentTodosAdapter.loadObjects();
Toast.makeText(getApplication(), "แสดงรายการ"+dayofmonth,
Toast.LENGTH_SHORT).show();
} | {
"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 |
Returns the characters 'H' or 'T' randomly, each with probability 0.5. This is equivalent to flipping a fair coin. | public static char coinFlip() {
int coin = 0;
Random rand = new Random();
coin = rand.nextInt(2);
if (coin == 0) {
return 'T';
} else {
return 'H';
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public char compChoice ()\n {\n\tint num = (int) (Math.random () * 5) + 1;\n\tif (num == 1)\n\t return 's';\n\telse if (num == 2)\n\t return 'd';\n\telse if (num == 3)\n\t return 'p';\n\telse if (num == 4)\n\t return 'h';\n\telse\n\t return 'w';\n }",
"public char randomChar() {\n\t\tRandom r = new Random();\n\t\tint threshold = r.nextInt(total);\n\t\tint current = 0;\n\t\t\n\t\tfor (char c : letters.keySet()) {\n\t\t\tcurrent += letters.get(c);\n\t\t\tif (current > threshold) {\n\t\t\t\treturn c;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn ' ';\n\t}",
"public char compChoice ()\n {\n\tint num = (int) (Math.random () * 3) + 1;\n\tif (num == 1)\n\t return 'F';\n\telse if (num == 2)\n\t return 'W';\n\telse\n\t return 'G';\n }",
"public static char casillaRandom() {\r\n char pool[] = {'b', 'p', 's', 'd'};\r\n\r\n int indiceRandom = (int) (Math.random() * 4);\r\n\r\n char selected = pool[indiceRandom];\r\n\r\n return selected;\r\n }",
"public void shuffle () {\n this.lives = 6;\n this.attempts.clear();\n this.victory = false;\n this.lose = false;\n Random r = new Random ();\n this._word = _dictionary[r.nextInt(_dictionary.length)];\n // this._word = _dictionary[2]; // Testing purposes\n this.hint.setLength(0);\n for (int i = 0; i < _word.length(); i++) {\n this.hint.append(\"_ \");\n } \n }",
"public void toss()\n {\n rand = new Random();//create an object\n num = rand.nextInt(2);//randomly generate two numbers\n if(num == 0)\n sideUp = \"heads\";\n else\n sideUp = \"tails\";//decide what up side is\n }",
"public String getRandomCharecter(){\n\n\tif (!dataprepared){\n\t prepareData();\n\t}\n\t\n\tAssert.pre(table!=null,\"data must be prepared\");\n\n\treturn (String)table.get(r.nextInt(total));\n\n\t\n }",
"@Override\n public String next() {\n Random random = new Random();\n return fruits[random.nextInt(3)];\n }",
"public void toss()//method to flip a coin object\r\n {//opening code for the toss method\r\n Random coinflip = new Random();//creating a new object of the random class named coinflip\r\n int rng = coinflip.nextInt(2);//assigning an integer rng using the random, to get an int between of 0 or 1\r\n if (rng == 0)//if statement saying if that rng integer comes out as 0 do the following\r\n {//opening code for if statement\r\n sideUp = \"Heads\";//if the integer is 0 assign the sideUp to the string Heads\r\n }//closing code for if statement\r\n else //if the integer comes up as anything that isn't 0 (which can only be 1)\r\n {//opening code for else statement\r\n sideUp = \"Tails\";//assigning the sideUp variable to a string called Tails\r\n }//closing code for else statement\r\n \r\n }",
"@Override\r\n\tpublic String getFortune() {\n\t\tString[] s= {\"have a nice day :)\",\r\n\t\t\t\t\"attaboy!\",\r\n\t\t\t\t\"good fortune to you <3\"\r\n\t\t};\r\n\t\tint x;\r\n\t\tx=((int)(Math.random()*9))%3;\r\n\t\t\r\n\t\treturn s[x] ;\r\n\t}",
"public static char randomLetter(){\n\t\t//char A-Z\n\t\tint r1 = (int) (Math.random()*26+65);\n\n\t\t//char a-z\n\t\tint r2 = (int) (Math.random()*26+97);\n\n\t\t//choose one of the two\n\t\tif(Math.random() < 0.5)\n\t\t\treturn (char) r1;\n\t\treturn (char) r2;\n\t}",
"public void generatePlate(){\r\n\t\tfor(int i = 0; i<3; i++){ // Using math random to generate three upper case letter \r\n\t\t\tSystem.out.print((char)((int)'A'+Math.random()*((int)'Z'-(int)'A'+1)));\r\n\t\t}\r\n\t\tSystem.out.print(\"-\");\r\n\t\tfor(int i=0; i<4; i++){ // using math random to generate four integers\r\n\t\t\tSystem.out.print((int)(Math.random()*10));\r\n\t\t}\r\n\t}",
"public static String[] randStrings()\r\n\t{\n\t\t\r\n\t\t\t\tlong start = System.nanoTime();\r\n\t\t\t\tchallengeTwo;\r\n\t\t\t\tlong end = System.nanoTime();\r\n\t\t\t\tlong time = end - start;\r\n\t\t\t\t//Challenge 3 >75% Sorted Int Test\r\n\t}",
"public void generateCharacters() {\n for(int i = 0; i < 3; i++) {\n this.characters.add(getRandomCharacter());\n }\n }",
"Randomizer getRandomizer();",
"public static TradeGood getRandom() {\n TradeGood[] options = new TradeGood[] {WATER, FURS, ORE, FOOD, GAMES, FIREARMS,\n MEDICINE, NARCOTICS, ROBOTS, MACHINES};\n int index = GameState.getState().rng.nextInt(10);\n return options[index];\n }",
"private static int coinFlip() {\n\t\tint num = (Math.random() <= 0.5) ? 1 : 2; \n\t\tString answer;\n\t\tif ( num == 1) {\n\t\t\tanswer = \"h\";\n\t\t}else {\n\t\t\tanswer = \"t\";\n\t\t}\n\t\t\n\t\t\n\t\tScanner input = new Scanner(System.in);\n\t\t\n System.out.print(\"Enter you guess (h = heads, t = tails):\");\n String guess = input.next();\n //change the guess to lower case to accept both capital or lower case answer\n guess.toLowerCase();\n \n //gain 50 points if win the toss\n if ( guess.equals(answer)) {\n \t//System.out.println(\"You won the toss, congratulation! +50 points\");\n \treturn 50;\n }else {\n \t //System.out.println(\"Wrong guess! 0 points\");\n \t return 0;\n }\n \n\t}",
"private char getRandomCharacter() {\n Random r = new Random();\n char c = (char)(r.nextInt(26) + 'A');\n if(characters.contains(c)) {\n return getRandomCharacter();\n } else {\n return c;\n }\n }",
"public static String randChar(){\n int n = rand.nextInt(52);\n return String.valueOf(KEYBOARD.charAt(n));\n }",
"public char throwDie() {\r\n return _chars.charAt(RAND.nextInt(DIE_SIDES));\r\n }",
"public String repeatCharacters(String word) {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n sb.append(c);\n if (random.nextFloat() <= 0.5) {\n for (int j = 0; j < random.nextInt(MAX_REPEAT_TIMES); j++) {\n sb.append(c);\n }\n }\n }\n return sb.toString();\n }",
"private void randomBehavior() {\n\t\trandom = rand.nextInt(50);\n\t\tif (random == 0) {\n\t\t\trandom = rand.nextInt(4);\n\t\t\tswitch (random) {\n\t\t\t\tcase 0:\n\t\t\t\t\tchangeFacing(ACTION.DOWN);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tchangeFacing(ACTION.RIGHT);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tchangeFacing(ACTION.UP);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tchangeFacing(ACTION.LEFT);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public static String generateCoupon() {\n \t\t// choose a Character random from this String\n\t\tString availableCharacters = \"ABCDEFGHIJKLMNPQRSTUVWXYZ\" + \"123456789\";\n\t\t// create StringBuffer \n\t\tStringBuilder sb = new StringBuilder(5);\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\t// generate a random number\n\t\t\tdouble indexDouble = availableCharacters.length() * Math.random();\n\t\t\tint index = (int)Math.round(indexDouble);\n\t\t\tif(index > 0 && index < 33) {\n\t\t\t\tsb.append(availableCharacters.charAt(index));\n\t\t\t}\n\t\t}\n\t\treturn sb.toString().substring(0,10);\t\t\n\t}",
"float genChance();",
"public static String randomize(char[] list) {\n for (int j = 0; j < list.length; j++) {\n int index = (int) (Math.random() * list.length);\n char temp = list[j];\n list[j] = list[index];\n list[index] = temp;\n }\n String randomKey = \"\";\n for (int x = 0; x < list.length; x++) {\n randomKey += (list[x]);\n } \n return randomKey;\n }",
"public static String randChar(int l) {\n char [] replacement = {'&','#','%','!','@','?'};\n String out=\"\";\n var r=new Random();\n for(int i = 0; i <l;i++) {\n out+= replacement[r.nextInt(replacement.length)];\n }\n return out;\n }",
"private char getRandomCharacter() {\n int min = 0;\n int max = ALPHABET.length-1;\n int randomPos;\n\n // Could possibly have used ASCII numbers 61-95\n randomPos = min + (int)(Math.random() * ((max - min) + 1));\n\n return ALPHABET[randomPos];\n }",
"public String getRandom() {\n\t return word.get(new Random().nextInt(word.size()));}",
"public String getRandomText(int numChars)\n {\n if (myText == null) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n int randomIndex = myRandom.nextInt(myText.length() - myNum);\n String randomLetter = myText.substring(randomIndex, randomIndex + myNum);\n sb.append(randomLetter);\n for (int k = 0; k < numChars - myNum; k++) {\n ArrayList<String> letters = getFollows(randomLetter);\n if (letters.size() == 0)\n break;\n randomIndex = myRandom.nextInt(letters.size());\n String ourTab = letters.get(randomIndex);\n sb.append(ourTab);\n //updated the random letter by adding a new letter to it\n randomLetter = (sb.toString()).substring((sb.toString()).length()-myNum);\n }\n return sb.toString();\n }",
"public void attack(String spell, character opponent){\n Random rand = new Random();\n int prob;\n String attack;\n \n prob = rand.nextInt(2); //we need two random numbers to allow us to use the two attacks:\n if(prob==0){\n attack = \"punch\";\n opponent.setHealth(opponent.getHealth() - 10);\n System.out.println(getName() + \" has landed \" + attack);\n System.out.println(opponent.getName() + \" health now \" + opponent.getHealth());\n }\n \n else if(prob==1){\n attack = \"kick\";\n opponent.setHealth(opponent.getHealth() - 15);\n System.out.println(getName() + \" has landed \" + attack);\n System.out.println(opponent.getName() + \" health now \" + opponent.getHealth());\n }\n \n \n }",
"private String RandomGoal() {\n\t\tList<String> list = Arrays.asList(\"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"t\", \"t\");\n\t\tRandom rand = new Random();\n\t\tString randomgoal = list.get(rand.nextInt(list.size()));\n\n\t\treturn randomgoal;\n\t}",
"private static char rndChar() {\n\t\tRandom rnd = new Random();\n\t\treturn (char)rnd.nextInt(10);\n\t}",
"public static String ranLetterString() {\n ArrayList<Character> ranCharArr = new ArrayList<Character>();\n ArrayList<Character> letter = new ArrayList<Character>();\n for (char i = 'a'; i <= 'z'; i++) {\n letter.add(i);\n }\n Collections.shuffle(letter);\n for ( int i = 0; i < 5; i++) {\n ranCharArr.add(letter.get(i));\n }\n System.out.println(ranCharArr);\n StringBuilder ranString = new StringBuilder();\n for(char ranChar : ranCharArr) {\n ranString.append(ranChar);\n }\n return ranString.toString();\n }",
"static public int getHobgoblinStr(){\n str = rand.nextInt(3) + 3;\n return str;\n }",
"public static String randLower(){\n int n = rand.nextInt(26)*2 + 1;\n return String.valueOf(KEYBOARD.charAt(n));\n }",
"private static char[] shuffle(char[] array) {\n\t\tRandom rand = new Random();\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tint randIndex = rand.nextInt(array.length - 1);\n\t\t\tchar temp = array[i];\n\t\t\tarray[i] = array[randIndex];\n\t\t\tarray[randIndex] = temp;\n\t\t}\n\t\treturn array;\n\t}",
"T getRandomKey();",
"public static void letterShuff() {\n ArrayList<Character> letter = new ArrayList<Character>();\n for (char i = 'a'; i <= 'z'; i++) {\n letter.add(i);\n }\n Collections.shuffle(letter);\n System.out.println(letter);\n System.out.println(letter.get(letter.size()-1));\n System.out.println(letter.get(0));\n if(letter.get(0) == 'a' || letter.get(0) == 'e' || letter.get(0) == 'i' || letter.get(0) == 'o' || letter.get(0) == 'u') {\n System.out.println(\"I'm a vowel!\");\n }\n }",
"Boolean getRandomize();",
"void shuffle();",
"void shuffle();",
"static public String hobNameGen(){\n int i = rand.nextInt(8);\n String hName = name[i];\n return hName;\n }",
"public String generateRandomString(){\n \n StringBuffer randStr = new StringBuffer();\n for(int i=0; i<RANDOM_STRING_LENGTH; i++){\n int number = getRandomNumber();\n char ch = CHAR_LIST.charAt(number);\n randStr.append(ch);\n }\n return randStr.toString();\n }",
"public static String randUpper(){\n int n = rand.nextInt(26)*2;\n return String.valueOf(KEYBOARD.charAt(n));\n }",
"public static String rndLetterString() {\r\n int spLen = RBytes.rndInt(10, 20);\r\n char[] c = RBytes.rndCharArray('a', 'z');\r\n char[] C = RBytes.rndCharArray('A', 'Z');\r\n char[] d = RBytes.rndCharArray('0', '9');\r\n String special = \"\";\r\n for (int s = 0; s < spLen; s++) {\r\n special += \"!@#$%^&*()-_~`=+:;.,\";\r\n }\r\n String s1 = new String(c) + new String(d) + new String(C) + special;\r\n return shaffleString(s1);\r\n }",
"public void shuffle();",
"private String getRandomName(){\n return rndString.nextString();\n }",
"public String randomText(int Length) {\n\t\t\t\t\tString s = \"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz \";\n\t\t\t\t\tRandom rand = new Random();\n\t\t\t\t\tStringBuilder sb = new StringBuilder(Length);\n\t\t\t\t\tfor (int i = 0; i < Length; i++) {\n char a = s.charAt(rand.nextInt(s.length()));\n String c = String.valueOf(a);\n\t\t\t\t\t\t if ((i == (Length - 1)) && c.equals(\" \")) { sb.append(\".\"); } \n\t\t\t\t\t\t else { sb.append(a); }\n\t\t\t\t\t\t }\n\t\t\t\t\treturn sb.toString();\n\t\t\t\t}",
"public void scramble(){\r\n for (int i = 0; i < data.length / 2; i++){\r\n int randomIndex1 = (int)(Math.random()*(data.length - 1));\r\n int randomIndex2 = (int)(Math.random()*(data.length - 1));\r\n swap(randomIndex1, randomIndex2);\r\n }\r\n }",
"private String generateRandomWord()\n {\t\n\tRandom randomNb = new Random(System.currentTimeMillis());\n\tchar [] word = new char[randomNb.nextInt(3)+5];\n\tfor(int i=0; i<word.length; i++)\n\t word[i] = letters[randomNb.nextInt(letters.length)];\n\treturn new String(word);\n }",
"public void randomizeHaplotype() {\n if (rand == null) {\n log.error(\"Cannot randomize haplotype\");\n log.error(toString());\n System.exit(1);\n }\n\n isPhased = true;\n if (rand.nextDouble() > 0.5) {\n return;\n }\n byte tmp = paternal;\n paternal = maternal;\n maternal = tmp;\n }",
"Chromosome getRandom();",
"private String getChallenge() {\n String challenge = null;\n\n int freq = getRandomNumberInRange(1, 5);\n\n if (freq == 1) {\n challenge = getString(R.string.challenge_box_jumps) + getRandomNumberInRange(1,5) + getString(R.string.times_suffix);\n }\n else if (freq == 2) {\n challenge = getString(R.string.challenge_push_ups) + getRandomNumberInRange(1,5) + getString(R.string.times_suffix);\n }\n else if (freq == 3) {\n challenge = getString(R.string.challenge_sit_ups) + getRandomNumberInRange(1,5) + getString(R.string.times_suffix);\n }\n else if (freq == 4) {\n challenge = getString(R.string.challenge_squats) + getRandomNumberInRange(1,5) + getString(R.string.times_suffix);\n }\n else if (freq == 5) {\n challenge = getString(R.string.challenge_planking) + getRandomNumberInRange(1,5) + getString(R.string.minutes_suffix);\n }\n return challenge;\n }",
"private static String RandomCash() {\n\t\tint max = 0;\n\t\tint min = 100000;\n\t\tint range = max - min + 1;\n\t\t\n\t\tString text=null;\n\t\ttry {\n\t\t\t\n\t\t\tint random = (int) (Math.random() * (range) + min);\n\t\t\ttext = formatted(\"###,###\", random)+\" VNĐ\";\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn text;\n\t}",
"String selectRandomSecretWord();",
"private void shuffleCharacters(int maxChars) {\n\t\tRandom randGen = new Random();\n\t\tint rand = 0;\n\t\t\n\t\t// Reset String\n\t\tmCharDisp = \"\";\n\t\t\n\t\tfor (int i = 0; i<maxChars; i ++) {\n\t\t\trand = randGen.nextInt(2);\n\t\t\tmCharDisp = mCharDisp + (i+1) + \". \" + mCharacterDB[2*i+rand].name;\n\t\t\t// Add comma if not the last one\n\t\t\tif (i<maxChars-1) mCharDisp = mCharDisp + \"\\n\";\n\t\t}\n\t\tupdateDisplayChars();\n\t}",
"@Override\r\n\tpublic String rollString() {\r\n\t\treturn \"\"+Randomizer.getRandomNumber(possibleValues);\r\n\t}",
"public abstract int getRandomDamage();",
"private int getRandomPiece() {\r\n return new Random().nextInt(Constants.NUM_PIECES);\r\n }",
"void randomize() {\r\n\t\trandomize(1, this.length());\r\n\t}",
"public static char generateLetter() {\n\t\t\n\t\treturn (char)((int)('A' + Math.random() * ('Z' - 'A' + 1)));\n\t}",
"@Override\n public String generateRoshambo(String input) {\n\n return \"Rock\";\n\n }",
"public void flipCoin() {\n\t\tfaceUp = (int) (Math.random() * ((1 - 0 + 1) + 0));\n\n\t}",
"protected String random(String value) {\n \t\treturn value + new Random().nextInt(100);\n \t}",
"public static Character[] shuffle(Character[] list) {\n int x;\n Character[] shuffle2 = new Character[list.length];\n ArrayList<Integer> safety = new ArrayList<Integer>();\n for (int i = 0; i < list.length; i++) {\n x = randint(0, list.length - 1);\n while (safety.contains(x)) {\n x = randint(0, list.length - 1);\n }\n shuffle2[i] = list[x];\n safety.add(x);\n }\n return shuffle2;\n }",
"public static void main(String[] args) {\r\n long randomNumber = System.currentTimeMillis();\r\n // Get number less than 26\r\n randomNumber = randomNumber % 26;\r\n \r\n // add 65 to the number\r\n randomNumber += 65;\r\n System.out.println((char) randomNumber);\r\n }",
"private static void chaotic(int lines) {\n Random rand = new Random();\r\n //prints out a random amout of * from 1 to 5 for every line\r\n for (int i = 0; i < lines; i++) {\r\n int length = rand.nextInt(5) + 1;\r\n for(int o = 0; o < length; o++)\r\n System.out.print(\"* \");\r\n //new line to separate lines of *\r\n System.out.println(\"\");\r\n }\r\n }",
"public abstract void randomize();",
"static char[] generateAZBothCasesAndSpecial(int length) {\n charArray = new char[length];\n int k;\n for (int i = 0; i < length; i++) {\n k = (int) (Math.random() * 3);\n if (k == 0) {\n charArray[i] = RandomChar.generateAZLowerRangeChar();\n } else if (k == 1) {\n charArray[i] = RandomChar.generateAZUpperRangeChar();\n } else if (k == 2) {\n charArray[i] = RandomChar.generateSpecChar();\n }\n }\n return charArray;\n }",
"private static char[] generateAlphabet() {\n char[] bet = new char[26];\n\n int i = 0;\n for(char alpha = 'A'; alpha <= 'Z'; alpha++) {\n bet[i] = alpha;\n i++;\n }\n\n return bet;\n }",
"private char generateRandomCharacter(){\n String alphabets = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n Random rand = new Random();\n int randomNumber = rand.nextInt(26);\n return alphabets.charAt(randomNumber);\n }",
"public void randomize()\n {\n a = (int)(Math.random()*(1110/15))*15 + 150; \n b = (int)(Math.random()*(480/15))*15 + 150; \n \n if(!specials || difficult.equals(\"GHOST\"))\n {\n dotColor = \"RED\";\n }\n else\n { \n double c = Math.random(); \n if(c < .65 || powerupTimer > 0 || hasItem)\n {\n dotColor = \"RED\";\n }\n else if(c>=.65 && c<.70 )\n \n {\n //dotColor = \"RED SHELL\";\n dotColor = \"RED\";\n }\n else if(c>=.70 && c<.75)\n {\n dotColor = \"TROLL\";\n }\n else if(c>=.75 && c <=.8)\n {\n dotColor = \"DOUBLE\";\n }\n else if(c>.8 && c<=.85 && powerupTimer <= 0)\n {\n dotColor = \"BLUE\"; \n }\n else if(c>.85 && c<=.90 && powerupTimer <= 0)\n {\n if(!difficult.equalsIgnoreCase(\"YOU WILL NOT SURVIVE\"))\n { \n if(modeT)\n dotColor = \"CRYSTAL\";\n else\n dotColor = \"BLACK\";\n }\n else\n dotColor = \"RED\";\n }\n else if(c>.90 && c<=.93 && powerupTimer <= 0)\n {\n dotColor = \"RAINBOW\"; \n }\n else if(c>.93 && c<=.97 && powerupTimer <= 0)\n {\n dotColor = \"YELLOW\"; \n }\n else if(c>.97 && c<=1.0 && powerupTimer <= 0)\n {\n dotColor = \"WHITE\"; \n } \n else if(c>1.0 && c<=1.0 && powerupTimer <= 0)\n {\n dotColor = \"PURPLE\";\n } \n }\n }",
"public String CPUDepartProb()\r\n\t{\r\n\t\tdouble prob = Math.random();\r\n\t\t//System.out.println(\"prob: \" + prob);\r\n\t\t\r\n\t\tif(prob<=0.5) //0.5 chance\r\n\t\t{\r\n\t\t\treturn (\"Leave system\");\r\n\t\t}\r\n\t\telse if(prob>0.5 && prob<=(0.5+0.1)) //0.1 chance\r\n\t\t{\r\n\t\t\treturn (\"To Disk\");\r\n\t\t}\r\n\t\telse\t//0.4 chance\r\n\t\t{\r\n\t\t\treturn (\"To network\");\r\n\t\t}\r\n\t}",
"public char[] randomCompMoveSelection() {\n\t\treturn null;\n\t}",
"int tournament() {\r\n \tint ch1,ch2;\r\n\t\tch1 = (int)Math.floor(Math.random()*SIZE);\r\n\t\tdo {\r\n\t\t\tch2 = (int)Math.floor(Math.random()*SIZE);\r\n\t\t} while (ch1==ch2);\r\n\t\tif (fit[ch1]<fit[ch2]) return ch1;\r\n\t\telse return ch2;\r\n }",
"private String createRandCode() {\n final String ALPHA_STRING = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\n StringBuilder builder = new StringBuilder();\n int cnt = CODE_LEN;\n while (cnt-- != 0) {\n int charPos = (int) (Math.random()*ALPHA_STRING.length());\n builder.append(ALPHA_STRING.charAt(charPos));\n }\n Log.i(\"GameCode\", \"createRandCode: \" + builder.toString());\n return builder.toString();\n }",
"public static char[] getWord() {\n\t\t\n\t\tString[] words = {\"cookie\", \"bacon\", \"steak\", \"apple\", \"doughnut\"};\n\t\tString choice = words[(int)(Math.random() * words.length)];\n\t\tchar[] word = new char[choice.length()];\n\n\t\tfor (int i = 0; i < word.length; i++) {\n\t\t\tword[i] = choice.charAt(i); // Convert Word into charArray\n\t\t}\n\t\treturn word;\n\t}",
"public static String generateHalfKey(){\n return randomChars(HALF_KEY_LENGTH);\n }",
"private void random() {\n\n\t}",
"public static void playRandomChicken() {\n\t\t\n\t\tString[] chickenSoundArray = {\"chicken1\", \"chicken2\", \"chicken3\"};\n\t\t\n\t\tint rnd = new Random().nextInt(chickenSoundArray.length);\n\t\tplaySound(chickenSoundArray[rnd],0.5f);\n\t}",
"public void Shuffle() {\n int i = 0;\n while (i < 52) {\n int rando = (int) (5.0 * (Math.random()));\n Cards temp = deck[rando];\n deck[rando] = deck[i];\n deck[i] = temp;\n i++;\n }\n\n Arrays.stream(deck).forEach(c -> System.out.format(\"%s,\",c));\n }",
"private int randomWeight()\n {\n return dice.nextInt(1000000);\n }",
"public static void chaotic (int numbers){\n for (int n = 0 ; n < numbers ; n++){\r\n // to return a value from 0 up to, but not including 1 use the equation below\r\n int randNum = (int)(Math.random()*(5 - 1 + 1)) + 1;\r\n //use an if loop to find if the answer from the equation equals to 5 \r\n if (randNum == 5){\r\n // the computer will print out five asterisks\r\n System.out.println(\"*****\");\r\n }\r\n // if the random number equals to 4\r\n if (randNum == 4){\r\n // the computer will print out four asterisks\r\n System.out.println(\"****\");\r\n }\r\n // if the random number is equal to 3\r\n if (randNum == 3){\r\n // the computer will print out three asterisks\r\n System.out.println(\"***\");\r\n }\r\n // if the random number is equal to 2\r\n if (randNum == 2){\r\n // the computer will print out two asterisks\r\n System.out.println(\"**\");\r\n }\r\n // if the random number is equal to 1\r\n if (randNum == 1)\r\n // the computer will print out one asterisks\r\n System.out.println(\"*\");\r\n }\r\n }",
"private String getRandomString() {\n\t\tStringBuilder salt = new StringBuilder();\n\t\tRandom rnd = new Random();\n\t\twhile (salt.length() <= 5) {\n\t\t\tint index = (int) (rnd.nextFloat() * SALTCHARS.length());\n\t\t\tsalt.append(SALTCHARS.charAt(index));\n\t\t}\n\t\tString saltStr = salt.toString();\n\t\treturn saltStr;\n\t}",
"public String randomGenertateContent(){\n\t\tString []temp = {\"This\",\"Is\",\"Random\",\"Randomize\",\"Content\",\"Random\",\"Randomize\",\"Random\",\"Randomly\",\"Random Text\"};\n\t\tRandom random = new Random();\n\t\tint numOfWord = (int) (random.nextInt(20 - 1 + 1) + 1);\n\t\tString output = \"\";\n\t\tfor(int i=0;i<numOfWord;i++){\n\t\t\tint index = (int) (random.nextInt(temp.length - 2 + 1));\n\t\t\toutput+= temp[index] + \" \";\n\t\t}\n\t\treturn output;\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\t\r\n\t\tint input = 0;\r\n\t\tint ai = 0;\r\n\t\tint win = 0;\r\n\t\tint defeat = 0;\r\n\t\tint draw = 0;\r\n\t\t\r\n\t\tString me = \"\";\r\n\t\tString com = \"\";\r\n\t\tSystem.out.println(\"★☆★☆★☆★☆가위바위보 게임입니다!★☆★☆★☆★☆\");\r\n\t\tfor(int i = 1 ; i < 4 ; i++) {\r\n\t\t\tSystem.out.println(\"\\t\\t\\t\\t\\t 최대횟수/남은횟수\");\r\n\t\t\tSystem.out.println(\"가위(1), 바위(2), 보(3) 중 하나를 입력하세요>>>\\t\\t3 / \" + i);\r\n\t\t\tinput = scan.nextInt();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tai = (int)(Math.random()*3) + 1;\r\n\t\t\t\r\n\t\t\tif (input == 1) me = \"가위\";\r\n\t\t\telse if (input == 2) me = \"바위\";\r\n\t\t\telse if (input == 3) me = \"보\";\r\n\t\t\telse System.out.println(\"잘못 입력하셨습니다\");\r\n\t\t\tif (ai == 1) com = \"가위\";\r\n\t\t\telse if (ai == 2) com = \"바위\";\r\n\t\t\telse if (ai == 3) com = \"보\";\r\n\t\t\t\r\n\t\t\tif(me != \"\") {\r\n\t\t\t\tSystem.out.println(\"컴퓨터도 선택 했습니다.\");\r\n\t\t\t\tSystem.out.println(\"당신은 \\\"\" + me + \"\\\" 상대는 \\\"\" + com + \"\\\" 을 선택했습니다\");\r\n\t\t\t\r\n\t\t\t\tswitch (input - ai) {\r\n\t\t\t\tcase -1 : case 2 : \r\n\t\t\t\t\tSystem.out.println(\"★☆저런~~ 졌네요★☆\\n\"); defeat += 1; \r\n\t\t\t\t\tSystem.out.println(\"전적 => 승리 [ \" + win + \" ]\\t패배 [ \" + defeat + \" ]\\t무승부 [ \" + draw + \" ]\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase -2 : case 1 : \r\n\t\t\t\t\tSystem.out.println(\"★☆오~~ 이겼네요★☆\\n\"); win += 1; \r\n\t\t\t\t\tSystem.out.println(\"전적 => 승리 [ \" + win + \" ]\\t패배 [ \" + defeat + \" ]\\t무승부 [ \" + draw + \" ]\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 0 : \r\n\t\t\t\t\tSystem.out.println(\"★☆이런! 비겼네요★☆\\n\"); draw += 1;\r\n\t\t\t\t\tSystem.out.println(\"전적 => 승리 [ \" + win + \" ]\\t패배 [ \" + defeat + \" ]\\t무승부 [ \" + draw + \" ]\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tdefault : System.out.println(\"오류 입니다\"); \r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(win==defeat) {\r\n\t\t\tSystem.out.println(\"최종 결과 => 무승부 입니다\");\r\n\t\t} else if(win > defeat) {\r\n\t\t\tSystem.out.println(\"최종 결과 => 당신의 승리입니다\");\r\n\t\t} else if(win < defeat) {\r\n\t\t\tSystem.out.println(\"최종 결과 => 당신의 패배입니다\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"오류 입니다\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"public static String rndString() {\r\n char[] c = RBytes.rndCharArray();\r\n return new String(c);\r\n\r\n }",
"private String decideLetter(Cell c) {\n String s = \"\";\n if (!c.getHasBoat() && !c.getShotAt()) {\n s = \"-\";\n } else if (!c.getHasBoat() && c.getShotAt()) {\n s = \"M\";\n } else if (c.getHasBoat() && !c.getShotAt()) {\n s = \"B\";\n } else {\n s = \"H\";\n }\n return s;\n }",
"private TetrisPiece randomPiece() {\n\t\tint rand = Math.abs(random.nextInt());\n\t\treturn new TetrisPiece(rand % (PIECE_COLORS.length));\n\t}",
"String getNewRandomTag() {\n\t\tbyte t[] = new byte[tagLength];\n\t\tfor (int i = 0; i < tagLength; i++) {\n\t\t\tt[i] = (byte) rand('a', 'z');\n\t\t}\n\t\treturn new String(t);\n\t}",
"public int dmg(){\r\n dmg = rand.nextInt(att);\r\n if(att == 1)\r\n dmg = 1;\r\n return dmg;\r\n }",
"public static String randomThrow() {\n\t\tString cpuThrow = \"default\";\n\t\trandomNum = ThreadLocalRandom.current().nextInt(min, max + 1);\n\t\tif(randomNum == 0) {\n\t\t\tcpuThrow = \"rock\";\n\t\t} else if (randomNum == 1) {\n\t\t\tcpuThrow = \"paper\";\n\t\t} else if (randomNum == 2) {\n\t\t\tcpuThrow = \"scissors\";\n\t\t} else if (randomNum == 3) {\n\t\t\tcpuThrow = \"lizard\";\n\t\t} else if (randomNum == 4) {\n\t\t\tcpuThrow = \"spock\";\n\t\t}\n\t\treturn cpuThrow;\n\t}",
"public static Ally getRandomRep () {\n return republican[(int) (Math.random() * republican.length)];\n }",
"public int drawpseudocard(){\n Random random = new Random();\n return random.nextInt(9)+1;\n }",
"public MultipleStrings(int num, double probabilityOfControl) {\n r = new Random(42);\n str = new String[num];\n for (int i = 0; i < num; i++)\n str[i] = generateString(r.nextDouble() < probabilityOfControl);\n last = -1;\n }",
"public int eDmg(){\r\n eDmg = rand.nextInt(13);\r\n return eDmg;\r\n }",
"static char[] generateAZLowercaseAndNumbersAndSpecial(int length) {\n charArray = new char[length];\n int k;\n for (int i = 0; i < length; i++) {\n k = (int) (Math.random() * 3);\n if (k == 0) {\n charArray[i] = RandomChar.generateAZLowerRangeChar();\n } else if (k == 1) {\n charArray[i] = RandomChar.generateNumberChar();\n } else if (k == 2) {\n charArray[i] = RandomChar.generateSpecChar();\n }\n }\n return charArray;\n }",
"public void shuffle()\r\n\t{\r\n\t\tRandom rand = ThreadLocalRandom.current();\r\n\t\t\r\n\t\tfor (int i = topCard; i > 0; i--)\r\n\t\t{\r\n\t\t\tint index = rand.nextInt(i + 1);\r\n\t\t\tString temp = cards[index];\r\n\t\t\tcards[index] = cards[i];\r\n\t\t\tcards[i] = temp;\r\n\t\t}\r\n\t}",
"public static String randAlnumSym(){\n int n;\n String result = null;\n switch (CAPS){\n case 0:\n n = rand.nextInt(94);\n if (n>83){\n result = String.valueOf(n-84);\n }else {\n result = String.valueOf(KEYBOARD.charAt(rand.nextInt(84))); //both\n }\n break;\n case 1:\n n = rand.nextInt(68);\n if (n>57){\n result = String.valueOf(n-58);\n }else if (n > 25){\n result = randSym();\n }else {\n result = randLower();\n }\n break;\n case 2:\n n = rand.nextInt(68);\n if (n>57){\n result = String.valueOf(n-58);\n }else if (n > 25){\n result = randSym();\n }else {\n result = randUpper();\n }\n break;\n }\n return result;\n }",
"public List<IrregularVerb> getRandomVerbs(int count);"
] | [
"0.6426786",
"0.633588",
"0.62987894",
"0.6277827",
"0.62570614",
"0.6069896",
"0.5914756",
"0.5895181",
"0.5874916",
"0.5874608",
"0.58702886",
"0.5843806",
"0.5826472",
"0.5819627",
"0.5801887",
"0.5781572",
"0.5769899",
"0.5743877",
"0.57266265",
"0.5719022",
"0.5706092",
"0.5705909",
"0.5699877",
"0.56990176",
"0.56836945",
"0.5670525",
"0.56663793",
"0.5662258",
"0.5629324",
"0.5623056",
"0.56171674",
"0.56149256",
"0.56044626",
"0.55839145",
"0.55702066",
"0.55695224",
"0.5566903",
"0.55469537",
"0.5545711",
"0.55388105",
"0.55388105",
"0.5531172",
"0.55238014",
"0.5518073",
"0.55150187",
"0.5509123",
"0.5499487",
"0.5489819",
"0.5465744",
"0.5465646",
"0.54651827",
"0.54551363",
"0.5449891",
"0.5448623",
"0.5439098",
"0.5437094",
"0.54295456",
"0.54086846",
"0.54081804",
"0.539783",
"0.5394354",
"0.5384294",
"0.5374783",
"0.53709126",
"0.536594",
"0.53624934",
"0.53608525",
"0.5359962",
"0.53590614",
"0.53574747",
"0.53533834",
"0.5347251",
"0.53415996",
"0.5339357",
"0.53358877",
"0.5333849",
"0.5323744",
"0.53237087",
"0.5323251",
"0.5314504",
"0.53112674",
"0.53084844",
"0.5306933",
"0.5304568",
"0.529725",
"0.52899903",
"0.52882266",
"0.5285949",
"0.5285055",
"0.5283556",
"0.52798116",
"0.52584416",
"0.5255594",
"0.525163",
"0.5244277",
"0.524412",
"0.52411765",
"0.5238495",
"0.52314204",
"0.52307105"
] | 0.7061051 | 0 |
TODO Autogenerated method stub | @Override
public int getColumnCount() {
return 4;
} | {
"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 boolean isCellEditable(int rowIndex, int columnIndex) {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void removeTableModelListener(TableModelListener l) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
} | {
"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
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(layoutId);
} | {
"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 |
will this work? Trying to use principal to verify that specific organizer is updating their information | @Override
public void updateOrganizerInfo(Organizer organizer) {
String sql = "UPDATE organizer SET organizer_first_name = ?, organizer_last_name = ?, organizer_phone = ?, organizer_email = ? " +
"WHERE organizer_id = ?";
jdbcTemplate.update(sql, organizer.getFirstName(), organizer.getLastName(), organizer.getPhone(), organizer.getEmail(), organizer.getOrganizerId());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasPrincipal();",
"public void checkAuthority() {\n }",
"protected abstract void applyPrinciple();",
"public boolean setPrincipal(Principal user);",
"@Test\n public void testUpdatePerson() {\n final AuthenticationToken myToken = login(\"[email protected]\", \"finland\");\n final Group memberGroup = findMemberGroup(myToken);\n final FetchGroupRequest groupRequest = new FetchGroupRequest(memberGroup.getGroupId());\n groupRequest.setUsersToFetch(FetchGroupRequest.UserFetchType.ACTIVE);\n final FetchGroupResponse groupResponse1 = administration.fetchGroup(myToken, groupRequest);\n assertThat(groupResponse1.isOk(), is(true));\n assertThat(groupResponse1.getMembers().size(), is(1));\n\n // Now, let's update the Object, and send it into the IWS\n final User myself = groupResponse1.getMembers().get(0).getUser();\n final Person person = myself.getPerson();\n final Address address = new Address();\n address.setStreet1(\"Mainstreet 1\");\n address.setPostalCode(\"12345\");\n address.setCity(\"Cooltown\");\n address.setState(\"Coolstate\");\n person.setAddress(address);\n person.setFax(\"My fax\");\n person.setBirthday(new Date(\"01-JAN-1980\"));\n person.setMobile(\"+1 1234567890\");\n person.setGender(Gender.UNKNOWN);\n person.setPhone(\"+1 0987654321\");\n person.setUnderstoodPrivacySettings(true);\n person.setAcceptNewsletters(false);\n myself.setPerson(person);\n final UserRequest updateRequest = new UserRequest();\n updateRequest.setUser(myself);\n final Response updateResult = administration.controlUserAccount(myToken, updateRequest);\n assertThat(updateResult.isOk(), is(true));\n\n // Let's find the account again, and verify that the updates were applied\n final FetchUserRequest userRequest = new FetchUserRequest();\n userRequest.setUserId(myself.getUserId());\n final FetchUserResponse userResponse = administration.fetchUser(myToken, userRequest);\n assertThat(userResponse.isOk(), is(true));\n final User myUpdate = userResponse.getUser();\n final Person updatedPerson = myUpdate.getPerson();\n assertThat(updatedPerson.getAlternateEmail(), is(person.getAlternateEmail()));\n assertThat(updatedPerson.getBirthday(), is(person.getBirthday()));\n assertThat(updatedPerson.getFax(), is(person.getFax()));\n assertThat(updatedPerson.getGender(), is(person.getGender()));\n assertThat(updatedPerson.getMobile(), is(person.getMobile()));\n assertThat(updatedPerson.getPhone(), is(person.getPhone()));\n assertThat(updatedPerson.getUnderstoodPrivacySettings(), is(person.getUnderstoodPrivacySettings()));\n assertThat(updatedPerson.getAcceptNewsletters(), is(person.getAcceptNewsletters()));\n\n final Address updatedAddress = updatedPerson.getAddress();\n assertThat(updatedAddress.getStreet1(), is(address.getStreet1()));\n assertThat(updatedAddress.getStreet2(), is(address.getStreet2()));\n assertThat(updatedAddress.getPostalCode(), is(address.getPostalCode()));\n assertThat(updatedAddress.getCity(), is(address.getCity()));\n assertThat(updatedAddress.getState(), is(address.getState()));\n\n // Wrapup... logout\n logout(myToken);\n }",
"public void updateAuthorizationInfo(PrincipalCollection principals) {\n clearCachedAuthorizationInfo(principals);\n }",
"private void checkUserAuthorities() {\n\t\tAuthority auth = authorityRepository.findTop1ByName(AuthorityType.ROLE_ADMIN);\n\t\tif (null == auth) {\n\t\t\tauth = Authority.createAdmin();\n\t\t\tauthorityRepository.save(auth);\n\t\t}\n\t\tAuthority authUser = authorityRepository.findTop1ByName(AuthorityType.ROLE_USER);\n\t\tif (null == authUser) {\n\t\t\tauthUser = Authority.createUser();\n\t\t\tauthorityRepository.save(authUser);\n\t\t}\n\t}",
"@Test\n\tpublic void testUpdateActionIsPerformedWhenPermissionInheritedAndUserAuthenticatedAndAllowed()\n\t\t\tthrows Throwable {\n\t\tcheck(getAllowedUser(), HttpStatus.SC_OK);\n\t}",
"@Test\n\tvoid grantScholarshipApproved() {\n\t\tScholarship scholarship= iScholarshipService.getById(1000).orElse(null);\n\t\tStudent student= iStudentService.findByStudentId(166);\n\t\tassertEquals(scholarship,iOfficerService.grantApproval(scholarship, student));\n\t\t\n\t}",
"@Test\r\n\tpublic void testUpdateOwnerTest() {\r\n\t\tString status = \"accept\";\r\n\t\twhen(backgroundVerificationAndLeaseAdminRepository.findByEmail(\"[email protected]\"))\r\n\t\t\t\t.thenReturn(backgroundverification1);\r\n\t\twhen(backgroundVerificationAndLeaseAdminRepository.save(backgroundverification1))\r\n\t\t\t\t.thenReturn(backgroundverification1);\r\n\t\tBackgroundverification backgroundverification = backgroundVerificationAndLeaseAdmnServiceImpl\r\n\t\t\t\t.updateOwnerSign(\"[email protected]\", status);\r\n\t\tassertEquals(\"accept\", backgroundverification.getOwnerSign());\r\n\t}",
"@Test\n void checkTheManagerGetAlertAfterOwnerChangeTheBid() {\n String guest= tradingSystem.ConnectSystem().returnConnID();\n tradingSystem.Register(guest, \"Manager2\", \"123\");\n Response res= tradingSystem.Login(guest, \"Manager2\", \"123\");\n tradingSystem.AddNewManager(EuserId,EconnID,storeID,res.returnUserID());\n tradingSystem.subscriberBidding(NofetID,NconnID,storeID,4,20,2);\n store.changeSubmissionBid(EuserId,NofetID,4,30,1);\n }",
"public void testUserIsBlogOwner() {\n rootBlog.setProperty(SimpleBlog.BLOG_OWNERS_KEY, \"user1\");\n assertTrue(rootBlog.isUserInRole(Constants.BLOG_OWNER_ROLE, \"user1\"));\n assertFalse(rootBlog.isUserInRole(Constants.BLOG_OWNER_ROLE, \"user2\"));\n }",
"@Test\n public void test_access_to_modify_team_success() {\n try {\n Assert.assertTrue(authBO.hasAccessToModifyTeam(1, 1));\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n }",
"public void addMSCAdminToPR(ApprovalRequest ar, Approvable lic) {\r\n\t\tLog.customer.debug(\"%s ::: addMSCAdminToPR - %s\", className, lic);\r\n\t\tProcureLineItemCollection plic = (ProcureLineItemCollection) lic;\r\n\t\tString TaxRole = \"MSC Administrator\";\r\n\t\tString TaxReason = \"Tax Reason\";\r\n\t\tboolean flag1 = true;\r\n\t\tObject obj = Role.getRole(TaxRole);\r\n\t\t// plic.setFieldValue(\"ProjectID\",\"F\");\r\n\t\tLog.customer.debug(\"%s ::: isMSCAdminRequired - plic bfore create %s\",\r\n\t\t\t\tclassName, plic.toString());\r\n\t\tApprovalRequest approvalrequest1 = ApprovalRequest.create(plic,\r\n\t\t\t\t((ariba.user.core.Approver) (obj)), flag1, \"RuleReasons\",\r\n\t\t\t\tTaxReason);\r\n\t\tLog.customer.debug(\"%s ::: approvalrequest1 got activated- %s\",\r\n\t\t\t\tclassName);\r\n\r\n\t\tBaseVector basevector1 = plic.getApprovalRequests();\r\n\t\tLog.customer.debug(\"%s ::: basevector1 got activated- %s\", className);\r\n\r\n\t\tBaseVector basevector2 = approvalrequest1.getDependencies();\r\n\t\tLog.customer.debug(\"%s ::: basevector2 got activated- %s\", className);\r\n\r\n\t\tbasevector2.add(0, ar);\r\n\t\tLog.customer.debug(\"%s ::: ar added to basevector2 %s\", className);\r\n\r\n\t\tapprovalrequest1.setFieldValue(\"Dependencies\", basevector2);\r\n\t\tar.setState(2);\r\n\t\tLog.customer.debug(\"%s ::: ar.setState- %s\", className);\r\n\r\n\t\tar.updateLastModified();\r\n\t\tLog.customer.debug(\"%s ::: ar.updatelastmodified- %s\", className);\r\n\r\n\t\tbasevector1.removeAll(ar);\r\n\t\tLog.customer.debug(\"%s ::: basevecotr1 .removeall %s\", className);\r\n\r\n\t\tbasevector1.add(0, approvalrequest1);\r\n\t\tLog.customer.debug(\"%s ::: basevector1 .add- %s\", className);\r\n\r\n\t\tplic.setApprovalRequests(basevector1);\r\n\t\tLog.customer.debug(\"%s ::: ir .setApprovalRequests got activated- %s\",\r\n\t\t\t\tclassName);\r\n\r\n\t\tjava.util.List list = ListUtil.list();\r\n\t\tjava.util.Map map = MapUtil.map();\r\n\t\tboolean flag6 = approvalrequest1.activate(list, map);\r\n\r\n\t\tLog.customer.debug(\"%s ::: New TaxAR Activated - %s\", className);\r\n\t\tLog.customer.debug(\"%s ::: State (AFTER): %s\", className);\r\n\t\tLog.customer.debug(\"%s ::: Approved By: %s\", className);\r\n\r\n\t}",
"public void interactWhenApproaching() {\r\n\t\t\r\n\t}",
"public Principal getPrincipal();",
"public boolean assignManuscript(Manuscript theManuscript){\r\n\t\tboolean wasAssigned = true;\r\n\t\t\r\n\t\t//Condition 1: check if Reviewer is a coauthor on this manuscript \r\n\t\t//Condition 2: check if Reviewer is over review limit\r\n\t\t\r\n\t\t//separate these tests and throw exceptions\r\n\t\t//also need to add a check for if this reviewer is already assigned to this manuscript.\r\n\t\tif ((isReviewerAnAuthor(theManuscript) != true) || (isOverReviewLimit(theManuscript.getConferenceID()) == true)) {\r\n\t\t\twasAssigned = false;\t\t\t\r\n\t\t} else {\r\n\t\t\tif(isReviewerAssignedToConference(theManuscript.getConferenceID()) == false) {\r\n\t\t\t\tHashSet<UUID> currentManuList = this.myConferencesAndAssignedManuscriptsList.get(theManuscript.getConferenceID());\r\n\t\t\t\t// TODO: check if manuscript already exists within list\r\n\t\t\t\tcurrentManuList.add(theManuscript.getMyID());\r\n\t\t\t\t// save manuscript to DB\r\n\t\t\t\tnew ManuscriptDatabase().saveManuscriptToDatabase(theManuscript);\r\n\t\t\t\t// add manuscript to associated conference of manuscript and save to DB, save account to DB as well\r\n\t\t\t\tthis.myConferencesAndAssignedManuscriptsList.put(theManuscript.getConferenceID(), currentManuList);\r\n\t\t\t\tAccount updatedAcct = new AccountDatabase().getAccountByReviewer(this);\r\n\t\t\t\tupdatedAcct.setReviewer(this);\r\n\t\t\t\twasAssigned = true;\r\n\r\n\t\t\t} else {\r\n\t\t\t\tHashSet<UUID> newManuList = new HashSet<UUID>();\r\n\t\t\t\tnewManuList.add(theManuscript.getMyID());\r\n\t\t\t\t// save manuscript to DB\r\n\t\t\t\tnew ManuscriptDatabase().saveManuscriptToDatabase(theManuscript);\r\n\t\t\t\t// add manuscript to associated conference of manuscript and save to DB, save account to DB as well\r\n\t\t\t\tthis.myConferencesAndAssignedManuscriptsList.put(theManuscript.getConferenceID(), newManuList);\r\n\t\t\t\tAccount updatedAcct = new AccountDatabase().getAccountByReviewer(this);\r\n\t\t\t\tupdatedAcct.setReviewer(this);\r\n\t\t\t\twasAssigned = true;\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn wasAssigned;\r\n\t}",
"@Test\n\tpublic void editFolderAsUserTest() {\n\t\tauthenticate(\"agent1\");\n\t\tint principalId = actorService.findByPrincipal().getId();\n\t\tFolderForm folderFormAux = new FolderForm();\n\t\tfolderFormAux.setName(\"New auditor5 folder for testing its edition\");\n\t\tFolder folder = folderService.reconstruct(folderFormAux,0);\n\t\tfolderService.save(folder);\n\t\t\n\t\tFolder folderToEdit = folderService.nonSystemFoldersOfActor(principalId).iterator().next();\n\t\tString actualName = folderToEdit.getName();\n\t\tFolderForm folderFormAux2 = new FolderForm();\n\t\tfolderFormAux2.setName(\"New folder name\");\n\t\tFolder folderToSave = folderService.reconstruct(folderFormAux2, folderToEdit.getId());\n\t\tfolderService.save(folderToSave);\n\t\tFolder editedFolder = folderService.nonSystemFoldersOfActor(principalId).iterator().next();\n\t\tString expectedName = editedFolder.getName();\n\t\tAssert.isTrue(!actualName.equals(expectedName));\n\t\tunauthenticate();\t\t\n\t}",
"public void grantAdminOnIndividualToSystemUser(Individual i, SystemUser user);",
"@Test\n public void changeOwnership() {\n final String itemName = context.getFullName(\"ownership\");\n final String contributor = \"AutoTest\";\n final String newOwner = \"AutoLogin\";\n\n logon(contributor, \"automated\");\n\n WizardPageTab wizard =\n new ContributePage(context).load().openWizard(GENERIC_TESTING_COLLECTION);\n wizard.editbox(1, itemName);\n ChangeOwnershipPage cop = wizard.save().publish().changeOwnership();\n\n // Ensure the owner control and summary details say the contributor.\n assertEquals(cop.getOwner(), contributor);\n assertEquals(cop.getSelectedOwner(), contributor);\n assertTrue(cop.getCollaborators().isEmpty());\n\n cop = cop.changeOwner(newOwner);\n\n // Ensure the owner control and summary details have updated.\n assertEquals(cop.getOwner(), newOwner);\n assertEquals(cop.getSelectedOwner(), newOwner);\n assertTrue(cop.getCollaborators().isEmpty());\n\n // Add some collaborators and check things are updated.\n List<String> expectedCollabs = Lists.newArrayList(contributor, \"PasswordTest\");\n for (String nc : expectedCollabs) {\n cop = cop.addCollaborator(nc);\n }\n assertCollaborators(cop, expectedCollabs);\n\n expectedCollabs.remove(contributor);\n cop.removeCollaborator(contributor);\n assertCollaborators(cop, expectedCollabs);\n\n // Ensure that other AutoLogin user **can't** change ownership.\n logout();\n logon(\"AutoLogin\", \"automated\");\n SummaryPage summary =\n new SearchPage(context)\n .load()\n .exactQuery(itemName)\n .getResultForTitle(itemName, 1)\n .viewSummary();\n assertFalse(summary.canChangeOwnership());\n logout();\n }",
"@Ignore\n @Test\n public void testAdminUsers() {\n Map<String, Object> map = new HashMap<>();\n map.put(\"uid\", \"duckart\");\n map.put(\"uhUuid\", \"89999999\");\n AttributePrincipal principal = new AttributePrincipalImpl(\"duckart\", map);\n Assertion assertion = new AssertionImpl(principal);\n CasUserDetailsServiceImplj userDetailsService = new CasUserDetailsServiceImplj(userBuilder);\n User user = (User) userDetailsService.loadUserDetails(assertion);\n\n // Basics.\n assertThat(user.getUsername(), is(\"duckart\"));\n assertThat(user.getUid(), is(\"duckart\"));\n assertThat(user.getUhUuid(), is(\"89999999\"));\n\n // Granted Authorities.\n assertTrue(user.getAuthorities().size() > 0);\n assertTrue(user.hasRole(Role.ANONYMOUS));\n assertTrue(user.hasRole(Role.UH));\n assertTrue(user.hasRole(Role.EMPLOYEE));\n assertTrue(user.hasRole(Role.ADMIN));\n\n // Check a made-up junky role name.\n\n map = new HashMap<>();\n map.put(\"uid\", \"someuser\");\n map.put(\"uhUuid\", \"10000001\");\n principal = new AttributePrincipalImpl(\"someuser\", map);\n assertion = new AssertionImpl(principal);\n user = (User) userDetailsService.loadUserDetails(assertion);\n\n assertThat(user.getUsername(), is(\"someuser\"));\n assertThat(user.getUid(), is(\"someuser\"));\n assertThat(user.getUhUuid(), is(\"10000001\"));\n\n assertTrue(user.getAuthorities().size() > 0);\n assertTrue(user.hasRole(Role.ANONYMOUS));\n assertTrue(user.hasRole(Role.UH));\n assertTrue(user.hasRole(Role.EMPLOYEE));\n assertTrue(user.hasRole(Role.ADMIN));\n }",
"@Override\n protected Object execute0() throws Exception {\n String msg = \"requestor \" + name;\n\n String conf = Base64.encodeToString(X509Util.parseCert(IoUtil.read(certFile)).getEncoded());\n\n try {\n caManager.changeRequestor(name, RequestorEntry.TYPE_CERT, conf);\n println(\"updated \" + msg);\n return null;\n } catch (CaMgmtException ex) {\n throw new CmdFailure(\"could not update \" + msg + \", error: \" + ex.getMessage(), ex);\n }\n }",
"@Override\n\tpublic Object getPrincipal() {\n\t\treturn principal;\n\t}",
"@Override\n\tpublic Object getPrincipal() {\n\t\treturn principal;\n\t}",
"@Override\n public Object getPrincipal() {\n return null;\n }",
"Authorizor createAuthorizor();",
"public void testAssignBlogOwners() {\n rootBlog.setProperty(SimpleBlog.BLOG_OWNERS_KEY, \"user1\");\n assertEquals(\"user1\", rootBlog.getProperty(SimpleBlog.BLOG_OWNERS_KEY));\n assertEquals(\"user1\", rootBlog.getBlogOwners());\n\n Collection users = rootBlog.getUsersInRole(Constants.BLOG_OWNER_ROLE);\n assertEquals(1, users.size());\n assertTrue(users.contains(\"user1\"));\n\n rootBlog.setProperty(SimpleBlog.BLOG_OWNERS_KEY, \"user1,user2\");\n assertEquals(\"user1,user2\", rootBlog.getProperty(SimpleBlog.BLOG_OWNERS_KEY));\n assertEquals(\"user1,user2\", rootBlog.getBlogOwners());\n\n users = rootBlog.getUsersInRole(Constants.BLOG_OWNER_ROLE);\n assertEquals(2, users.size());\n assertTrue(users.contains(\"user1\"));\n assertTrue(users.contains(\"user2\"));\n }",
"@Override\n\tpublic void runAs(ISubject subject,Collection<String> principals) {\n\t\t((Subject)subject.getSubject()).runAs(new SimplePrincipalCollection(principals,getRealmName()));\n if(jvmSecurityManager!=null){\n \tjvmSecurityManager.setSubject(subject);\n }\n\n\t}",
"@Override\n protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) {\n return null;\n }",
"public void authSucess(BundleDescriptor desc, Endpoint ep, Principal principal) {\n // all the data is collected by Message listener for the success case\n }",
"@Override\n protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) {\n \n LOG.debug(\"Authorization info\");\n AuthorizationInfo authorizationInfo = new SimpleAccount();\n\n LOG.info(\"AuthInfo() details: {}\", authorizationInfo.getRoles().size());\n return authorizationInfo;\n }",
"@Override\r\n\tprotected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) {\n\t\treturn null;\r\n\t}",
"@Override\n protected AuthorizationInfo doGetAuthorizationInfo(\n PrincipalCollection principals) {\n return null;\n }",
"public boolean checkUniqueLoginOnUpdate(Object objectOfRole) {\n \tif(objectOfRole instanceof Patient) {\n \t\tPatient patient = (Patient) objectOfRole;\n \t\tOptional<User> updatingUser = userRepository.findById(patient.getUser().getId());\n// If username/login is not change\n \t\tif (updatingUser.get().getUsername().equals(patient.getUser().getUsername())) {\n \t\t\treturn true;\n \t\t} else {\n \t\t\tUser findUser = userRepository.findByUsername(patient.getUser().getUsername());\n \t\t\tif (findUser == null) {\n \t\t\t\treturn true;\n \t\t\t}\n \t\t}\n \t} else if(objectOfRole instanceof Employee) {\n \t\tEmployee employee = (Employee) objectOfRole;\n \t\tOptional<User> updatingUser = userRepository.findById(employee.getUser().getId());\n// If username/login is not change\n \t\tif (updatingUser.get().getUsername().equals(employee.getUser().getUsername())) {\n \t\t\treturn true;\n \t\t} else {\n \t\t\tUser findUser = userRepository.findByUsername(employee.getUser().getUsername());\n \t\t\tif (findUser == null) {\n \t\t\t\treturn true;\n \t\t\t}\n \t\t}\n \t} else if(objectOfRole instanceof Doctor) {\n \t\tDoctor doctor = (Doctor) objectOfRole;\n \t\tOptional<User> updatingUser = userRepository.findById(doctor.getUser().getId());\n// If username/login is not change\n \t\tif (updatingUser.get().getUsername().equals(doctor.getUser().getUsername())) {\n \t\t\treturn true;\n \t\t} else {\n \t\t\tUser findUser = userRepository.findByUsername(doctor.getUser().getUsername());\n \t\t\tif (findUser == null) {\n \t\t\t\treturn true;\n \t\t\t}\n \t\t}\n \t} else if(objectOfRole instanceof Owner) {\n \t\tOwner owner = (Owner) objectOfRole;\n \t\tOptional<User> updatingUser = userRepository.findById(owner.getUser().getId());\n// If username/login is not change\n \t\tif (updatingUser.get().getUsername().equals(owner.getUser().getUsername())) {\n \t\t\treturn true;\n \t\t} else {\n \t\t\tUser findUser = userRepository.findByUsername(owner.getUser().getUsername());\n \t\t\tif (findUser == null) {\n \t\t\t\treturn true;\n \t\t\t}\n \t\t}\n \t} \n return false;\n }",
"@Given(\"^El usuario quiere acceder al sistema$\")\n\tpublic void El_usuario_quiere_acceder_al_sistema() throws Throwable {\n\t\tdao = new DAOPersona();\n\t p=new Persona(\"Carlos\", \"Delgado\", \"carlitos93\", \"[email protected]\", \"a1Zs7s2DM\", \"Calle Jane Doe\", \"0\", \"photo\", false, null, null, null);\n\t assert(true);\n\t}",
"@Override\n public Principal getUserPrincipal() {\n return principal;\n }",
"@Test\n public void testAuthenticatedCall() throws Exception {\n final Callable<Void> callable = () -> {\n try {\n final Principal principal = whoAmIBean.getCallerPrincipal();\n Assert.assertNotNull(\"EJB 3.1 FR 17.6.5 The container must never return a null from the getCallerPrincipal method.\", principal);\n Assert.assertEquals(\"user1\", principal.getName());\n } catch (RuntimeException e) {\n e.printStackTrace();\n Assert.fail(((\"EJB 3.1 FR 17.6.5 The EJB container must provide the caller?s security context information during the execution of a business method (\" + (e.getMessage())) + \")\"));\n }\n return null;\n };\n Util.switchIdentitySCF(\"user1\", \"password1\", callable);\n }",
"User getUserUnderValidation();",
"private boolean askForSuperviser(Person p) throws Exception {\n\n\t\treturn p.isResearcher() && (p.getInstitutionalRoleId() > 1);\n\t}",
"@Test public void testAuthorityRefs() throws Exception {\n \t\tStorage ss=makeServicesStorage(base+\"/cspace-services/\");\n\t\tJSONObject person=makePerson();\n \t\tString p=ss.autocreateJSON(\"person/person\",person);\n \t\tlog.info(\"p=\"+p);\n \t\tJSONObject po=ss.retrieveJSON(\"person/person/\"+p);\n \t\tlog.info(\"po=\"+po);\n \t\tString pname=po.getString(\"refid\");\n \t\tJSONObject data=getJSON(\"int4.json\");\n \t\tdata.remove(\"valuer\");\n \t\tdata.put(\"valuer\",pname);\n \t\tString p1=ss.autocreateJSON(\"intake/\",data);\n \t\tlog.info(\"p1=\"+p1);\n \t\tJSONObject mini=ss.retrieveJSON(\"intake/\"+p1+\"/refs\");\n \t\tlog.info(\"mini=\"+mini);\n \t\tJSONObject member=mini.getJSONObject(\"valuer\");\t\t\n \t\tassertNotNull(member);\n \t\tassertEquals(\"Dic Penderyn\",member.getString(\"displayName\"));\n \t\t\n \t\t// XXX retrieve by authority\n \t\t// XXX also authorities\n \t}",
"public void testGetSetOwner() {\n exp = new Experiment(\"10\");\n Profile owner = new Profile(\"id1\", \"owner\", \"contact\");\n exp.setOwner(owner);\n assertEquals(\"get/setOwner does not work\", \"owner\", exp.getOwner().getUsername());\n }",
"@Test\n void testGetRegistrarForUser_inContacts_isAdmin() throws Exception {\n expectGetRegistrarSuccess(\n CLIENT_ID_WITH_CONTACT,\n GAE_ADMIN,\n \"admin [email protected] has [OWNER, ADMIN] access to registrar TheRegistrar\");\n verifyNoInteractions(lazyGroupsConnection);\n }",
"@Test\n public void checkUpdateCampaignTest() {\n ObjectIdentityData buyer = ObjectIdentityData.getAnyObjectFromList(buyers);\n // select any not own campaign\n ObjectIdentityData campaign = ObjectIdentityData.getAnyObjectFromList(campaigns);\n RequestData requestData = new CampaignRequestData(campaign, buyer, false);\n GrantsVerification.checkUpdateRequest(requestData, isAdmin());\n }",
"@Override\n\tpublic void approveForm(Context ctx) {\n\t\t//Authentication\n\t\tUser approver = ctx.sessionAttribute(\"loggedUser\");\n\t\tif (approver == null) {\n\t\t\tctx.status(401);\n\t\t\treturn;\n\t\t}\n\t\tString username = ctx.pathParam(\"username\");\n\t\tif (!approver.getUsername().equals(username)) {\n\t\t\tctx.status(403);\n\t\t\treturn;\n\t\t}\n\t\t// Implementation\n\t\tString id = ctx.pathParam(\"id\");\n\t\tForm form = fs.getForm(UUID.fromString(id));\n\t\tapprover.getAwaitingApproval().remove(form);\n\t\tus.updateUser(approver);\n\t\t// If approver is just the direct supervisor\n\t\tif (!approver.getType().equals(UserType.DEPARTMENT_HEAD) && !approver.getType().equals(UserType.BENCO)) {\n\t\t\tform.setSupervisorApproval(true);\n\t\t\tUser departmentHead = us.getUserByName(approver.getDepartmentHead());\n\t\t\tdepartmentHead.getAwaitingApproval().add(form);\n\t\t\tus.updateUser(departmentHead);\n\t\t}\n\t\t// If the approver is a department head but not a benco\n\t\tif (approver.getType().equals(UserType.DEPARTMENT_HEAD) && !approver.getType().equals(UserType.BENCO)) {\n\t\t\tform.setDepartmentApproval(true);\n\t\t\tUser benco = us.getUser(\"sol\");\n\t\t\tbenco.getAwaitingApproval().add(form);\n\t\t\tus.updateUser(benco);\n\t\t}\n\t\t// if the approver is a BenCo\n\t\tif (approver.getType().equals(UserType.BENCO)) {\n\t\t\tform.setBencoApproval(true);\n\t\t\tUser formSubmitter = us.getUserByName(form.getName());\n\t\t\tif (formSubmitter.getAvailableReimbursement() >= form.getCompensation()) {\n\t\t\t\tformSubmitter.setAvailableReimbursement(formSubmitter.getAvailableReimbursement() - form.getCompensation());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tformSubmitter.setAvailableReimbursement(0.00);\n\t\t\t}\n\t\t\tformSubmitter.getAwaitingApproval().remove(form);\n\t\t\tformSubmitter.getCompletedForms().add(form);\n\t\t\tus.updateUser(formSubmitter);\n\t\t}\n\t\t\n\t\tfs.updateForm(form);\n\t\tctx.json(form);\n\t}",
"public void testUserIsBlogOwnerByDefault() {\n rootBlog.removeProperty(SimpleBlog.BLOG_OWNERS_KEY);\n assertTrue(rootBlog.isUserInRole(Constants.BLOG_OWNER_ROLE, \"user1\"));\n assertTrue(rootBlog.isUserInRole(Constants.BLOG_OWNER_ROLE, \"usern\"));\n }",
"private EditPlanDirectToManaged signUpAndReachEditPlan() throws Exception{\n //Initializing investment strategy object used to keep track of Glidepath investment strategy in relation to age to retirement and RTQ\n //Default User has age of 35 and 30 years to retirement\n InvestmentStrategyObject.initAllStrategies();\n //Login and create Premium Gaslamp User\n AdvisorSplashPage advisorSplashPage = new AdvisorSplashPage(getDriver());\n DetermineInvestmentStrategyPage displayPage = signupAndOnboard(advisorSplashPage,\n Constants.LastName.PREMIUM_INDIVIDUAL);\n //Enter Random RTQ Selections\n gaslamp.directToManaged.InvestmentStrategyPage investmentStrategyPage = EnterAndEditRTQ(RTQAnswerTypes.RANDOM,displayPage);\n PortfolioAnalysisPage portfolioAnalysisPage = investmentStrategyPage.navigateToPortfolioAnalysisPage();\n\n LinkedAccountsPage linkedAccountsPage = linkDAGAccount(portfolioAnalysisPage);\n portfolioAnalysisPage = linkedAccountsPage.clickOnNextButton();\n verifyPortfolioElements(portfolioAnalysisPage);\n\n //Edit the plan and re-do the RTQ\n Reporter.log(\"Editing Plan and Assumptions.\", true);\n EditPlanDirectToManaged editPlanPage = portfolioAnalysisPage.clickOnEditInPlaceTrigger();\n softAssert.assertTrue(editPlanPage.verifyEditPlanElements());\n return editPlanPage;\n }",
"public void testGetOwner_1_accuracy() {\n instance.setOwner(owner);\n assertTrue(\"Owner is not set properly.\", owner == instance.getOwner());\n }",
"void setPrincipal(@NotNull TBItem item) {\n synchronized (this) {\n NST.setPrincipal(myNativePeer, item.getUid());\n }\n }",
"@Override\r\n\tprotected AuthorizationInfo doGetAuthorizationInfo\r\n\t(PrincipalCollection principals) {\n\t\treturn null;\r\n\t}",
"public void testVotersRequiredMembersOk() {\n Group citizens = RoleFactory.createGroup(\"citizen\");\n citizens.addRequiredMember(m_anyone);\n \n Group adults = RoleFactory.createGroup(\"adult\");\n adults.addRequiredMember(m_anyone);\n \n Group voters = RoleFactory.createGroup(\"voter\");\n voters.addRequiredMember(citizens);\n voters.addRequiredMember(adults);\n voters.addMember(m_anyone);\n \n \n // Elmer belongs to the citizens and adults...\n User elmer = RoleFactory.createUser(\"elmer\");\n citizens.addMember(elmer);\n adults.addMember(elmer);\n \n // Pepe belongs to the citizens, but is not an adult...\n User pepe = RoleFactory.createUser(\"pepe\");\n citizens.addMember(pepe);\n \n // Bugs is an adult, but is not a citizen...\n User bugs = RoleFactory.createUser(\"bugs\");\n adults.addMember(bugs);\n \n // Daffy is not an adult, neither a citizen...\n User daffy = RoleFactory.createUser(\"daffy\");\n\n assertTrue(m_roleChecker.isImpliedBy(voters, elmer));\n assertFalse(m_roleChecker.isImpliedBy(voters, pepe));\n assertFalse(m_roleChecker.isImpliedBy(voters, bugs));\n assertFalse(m_roleChecker.isImpliedBy(voters, daffy));\n }",
"void approveSelf() throws IllegalAccessException {\n\t\tif (this.secOpFlag)\n\t\t\tthrow new IllegalAccessException(\"Diagnose requires second opinion and can't be self approved.\");\n\t\tthis.approved = true;\n\t\tthis.secOpFlag = false;\n\t}",
"@Override\r\n\tpublic Principal getOwner() {\n\t\treturn null;\r\n\t}",
"@Test\n\tpublic void testUpdateActionIsNotPerformedWhenPermissionInheritedAndUserNotAuthenticated()\n\t\t\tthrows Throwable {\n\t\tcheck(getNonAuthenticatedUser(), HttpStatus.SC_UNAUTHORIZED);\n\t}",
"@Override\n\tpublic Object getPrincipal() {\n\t\treturn null;\n\t}",
"public static void main(String[] args) {\n \n Manager manager = new Manager(\"[email protected]\", \"Sally Manager\", \"mgrPass\");\n \n BookAndCancelAppointment bookAndCancelAppointment = new BookAndCancelAppointment();\n \n\n ManageAppointments ma = new ManageAppointments();\n bookAndCancelAppointment.set_ma(ma);\n ma.set_bookAndCancelAppointment(bookAndCancelAppointment);\n\n ManageSystem ms = new ManageSystem();\n ma.set_ms(ms);\n ms.set_ma(ma);\n ms.set_manager(manager);\n \n // Create Subjects\n Subject sub0 = new Subject(\"Intro to Programming\");\n Subject sub1 = new Subject(\"Operating Systems and Networks\");\n Subject sub2 = new Subject(\"Web and Mobile Applications\");\n Subject sub3 = new Subject(\"Computer Architecture\");\n \n // Add subjects to Manager (chosen to only put this uni directional in the implementation since the subject does not need to know the manager, but could be added)\n ms.add_subject(sub0);\n ms.add_subject(sub1);\n ms.add_subject(sub2);\n ms.add_subject(sub3);\n \n // Create Tutors\n TutorData t0 = new TutorData(\"[email protected]\", \"John Tutor\", \"tutpass\");\n TutorData t1 = new TutorData(\"[email protected]\", \"Tutor May\", \"password\");\n TutorData t2 = new TutorData(\"[email protected]\", \"Dave Tutor\", \"tutpassword\");\n TutorData t3 = new TutorData(\"[email protected]\", \"Jane Tutor\", \"passtutor\");\n \n // Add subjects to Manager (needed based on diagram - only implemented uni directional since both directions are not needed)\n ms.add_tutor(t0);\n ms.add_tutor(t1);\n ms.add_tutor(t2);\n ms.add_tutor(t3);\n \n // Add Subjects to Tutors\n t0.add_subject(sub0);\n t0.add_subject(sub1);\n t1.add_subject(sub1);\n t2.add_subject(sub2);\n t2.add_subject(sub3);\n t3.add_subject(sub3);\n t3.add_subject(sub0);\n \n // Create Appointments and add to Tutors\n Date date0 = new Date();\n Date date1 = new Date();\n Date date2 = new Date();\n Date date3 = new Date();\n Date date4 = new Date();\n Date date5 = new Date();\n for(int i = 0; i < 100000; i++){\n int x = 0;\n }\n Date date6 = new Date();\n /*\n String response0 = ma.create_appointment(date0, t0.get_email());\n String response1 = ma.create_appointment(date1, t0.get_email());\n String response2 = ma.create_appointment(date2, t1.get_email());\n String response3 = ma.create_appointment(date3, t2.get_email());\n String response4 = ma.create_appointment(date4, t2.get_email());\n String response5 = ma.create_appointment(date5, t2.get_email());\n String response6 = ma.create_appointment(date6, t2.get_email());\n */\n /* \n Appointment appt0 = new Appointment(date0, 0, t0);\n Appointment appt1 = new Appointment(date1, 1, t0);\n Appointment appt2 = new Appointment(date2, 2, t1);\n Appointment appt3 = new Appointment(date3, 3, t2);\n Appointment appt4 = new Appointment(date4, 4, t2);\n Appointment appt5 = new Appointment(date5, 5, t2);\n Appointment appt6 = new Appointment(date6, 6, t2);\n */\n /* \n // Add appointments to appointment list\n ma.add_appointment(appt0);\n ma.add_appointment(appt1);\n ma.add_appointment(appt2);\n ma.add_appointment(appt3);\n ma.add_appointment(appt4);\n ma.add_appointment(appt5);\n ma.add_appointment(appt6);\n */\n \n /*\n // Create Students\n StudentData s0 = new StudentData(\"[email protected]\", \"John Student\", \"studpass\", 5);\n StudentData s1 = new StudentData(\"[email protected]\", \"Jane Student\", \"pass\", 2);\n StudentData s2 = new StudentData(\"[email protected]\", \"Jack Student\", \"passwo\", 1);\n StudentData s3 = new StudentData(\"[email protected]\", \"Bob Student\", \"studentpass\", 0);\n */\n /* \n // Add students to list\n bookAndCancelAppointment.add_student(s0);\n bookAndCancelAppointment.add_student(s1);\n bookAndCancelAppointment.add_student(s2);\n bookAndCancelAppointment.add_student(s3);\n */\n //test create appointment\n //pass\n System.out.println(ma.create_appointment(date0, t0.get_email()));\n //fail\n System.out.println(ma.create_appointment(date0, t0.get_email()));\n //pass\n System.out.println(ma.create_appointment(date0, t1.get_email()));\n //pass\n System.out.println(ma.create_appointment(date6, t0.get_email()));\n // Add Appointments to Students\n //appt0.student = s1;\n //appt0.booked = true;\n //s1.appointments.add(appt0);\n /* \n // Test Book Appointment method\n \n // Not enough credits case\n System.out.println(bookAndCancelAppointment.bookAppointmentBySubjectAndTime(\"[email protected]\", \"Computer Architecture\", date0));\n \n // Already an appointment booked\n System.out.println(bookAndCancelAppointment.bookAppointmentBySubjectAndTime(\"[email protected]\", \"Web and Mobile Applications\", date1));\n \n // No available tutor case\n System.out.println(bookAndCancelAppointment.bookAppointmentBySubjectAndTime(\"[email protected]\", \"Intro to Programming\", date2));\n \n // Appointment can be booked case\n int s2Credits = s2.numCredits;\n assert(appt4.student == null);\n System.out.println(bookAndCancelAppointment.bookAppointmentBySubjectAndTime(\"[email protected]\", \"Web and Mobile Applications\", date3));\n assert(s2Credits - 1 == s2.numCredits);\n assert(appt4.student == s2);\n // test book by id\n // Not enough credits case\n //System.out.println(bookAndCancelAppointments.BookAppointmentByID(\"[email protected]\", 0));\n \n // Already an appointment booked\n //System.out.println(bookAndCancelAppointments.BookAppointmentByID(\"[email protected]\", 6));\n \n // No available tutor case\n //System.out.println(bookAndCancelAppointments.BookAppointmentByID(\"[email protected]\", 0));\n \n // Appointment can be booked case\n //System.out.println(bookAndCancelAppointments.BookAppointmentByID(\"[email protected]\", 1));\n */\n }",
"public double getPrincipal ()\n {\n return principal;\n }",
"private void testAclConstraints007() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints007\");\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.LEAF_NODE, DmtConstants.PRINCIPAL_2, Acl.GET );\n tbc.openSessionAndSetNodeAcl(TestExecPluginActivator.INTERIOR_NODE, DmtConstants.PRINCIPAL, Acl.REPLACE );\n\t\t\ttbc.setPermissions(new PermissionInfo(DmtPrincipalPermission.class.getName(),DmtConstants.PRINCIPAL,\"*\"));\n\t\t\tsession = tbc.getDmtAdmin().getSession(DmtConstants.PRINCIPAL,TestExecPluginActivator.ROOT,DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tsession.setNodeAcl(TestExecPluginActivator.LEAF_NODE,new org.osgi.service.dmt.Acl(\"Get=*\"));\n\t\t\t\n\t\t\tDefaultTestBundleControl.pass(\"If a principal has Replace access to a node, the principal is permitted to change the ACL of all its child nodes\");\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.cleanUp(session,TestExecPluginActivator.LEAF_NODE);\n\t\t\ttbc.cleanAcl(TestExecPluginActivator.INTERIOR_NODE);\n\t\t\t\n\t\t}\n\t}",
"public void candidateDetails(Author authorObject);",
"@Override\r\n protected void mayProceed() throws InsufficientPermissionException {\n if (ub.isSysAdmin() || ub.isTechAdmin()) {\r\n return;\r\n }\r\n// if (currentRole.getRole().equals(Role.STUDYDIRECTOR) || currentRole.getRole().equals(Role.COORDINATOR)) {// ?\r\n// ?\r\n// return;\r\n// }\r\n\r\n addPageMessage(respage.getString(\"no_have_correct_privilege_current_study\") + respage.getString(\"change_study_contact_sysadmin\"));\r\n throw new InsufficientPermissionException(Page.MENU_SERVLET, resexception.getString(\"not_allowed_access_extract_data_servlet\"), \"1\");// TODO\r\n // above copied from create dataset servlet, needs to be changed to\r\n // allow only admin-level users\r\n\r\n }",
"@Override\n public boolean auth(String email, String pseudonyme) {\n Properties props = new Properties();\n props.setProperty(\"org.omg.CORBA.ORBInitialHost\", \"localhost\");\n props.setProperty(\"org.omg.CORBA.ORBInitialPort\", \"3700\");\n props.setProperty(\"java.naming.factory.initial\", \"com.sun.enterprise.naming.SerialInitContextFactory\");\n props.setProperty(\"java.naming.factory.url.pkgs\", \"com.sun.enterprise.naming\");\n props.setProperty(\"java.naming.factory.state\", \"com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl\");\n \n StatelessDirectoryManagerBeanRemote sb = null;\n InitialContext ic;\n \n try {\n ic = new InitialContext(props);\n sb = (StatelessDirectoryManagerBeanRemote)ic.lookup(\"com.master2.datascale.directorymanager.bean.StatelessDirectoryManagerBeanRemote\");\n\t\t\t\n } catch (NamingException ex) {\n Logger.getLogger(StatefulAuctionManagerBean.class.getName()).log(Level.SEVERE, null, ex);\n }\n\t\t\t\n return sb.auth(email, pseudonyme);\n }",
"@Override\n public IPerson getPrincipal() {\n return this.person;\n }",
"int updateAccountInfo(Account account);",
"@Test\n public void testUpdateOwnPassword() throws Exception\n {\n authenticate(\"user1\");\n\n // As user1, change his own password.\n actorService.updateOwnPassword(\"user1\", \"user1newpassword\");\n\n flushTransaction();\n\n // Test that user1's password was changed.\n userAccountService.passwordMatchesAccount(getPrincipal().getUserAccount(), \"user1newpassword\");\n\n authenticate(\"admin\");\n\n // As admin, change his own password.\n actorService.updateOwnPassword(\"admin\", \"adminnewpassword\");\n\n flushTransaction();\n\n // Test that admin's password was changed.\n userAccountService.passwordMatchesAccount(getPrincipal().getUserAccount(), \"adminnewpassword\");\n }",
"void perform(Context context, ResearcherProfile researcherProfile, EPerson owner) throws SQLException;",
"public Resp revalidate(CachedPrincipal prin) {\n\t\treturn Resp.NOT_MINE;\n\t}",
"@Test\n\tvoid update() {\n\t\tfinal UserOrgEditionVo userEdit = new UserOrgEditionVo();\n\t\tuserEdit.setId(\"flast1\");\n\t\tuserEdit.setFirstName(\"FirstA\");\n\t\tuserEdit.setLastName(\"LastA\");\n\t\tuserEdit.setCompany(\"ing\");\n\t\tuserEdit.setMail(\"[email protected]\");\n\t\tfinal List<String> groups = new ArrayList<>();\n\t\tgroups.add(\"dig rha\");\n\t\tuserEdit.setGroups(groups);\n\t\tinitSpringSecurityContext(\"fdaugan\");\n\t\tresource.update(userEdit);\n\t\tfinal TableItem<UserOrgVo> tableItem = resource.findAll(null, null, \"flast1\", newUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, tableItem.getRecordsTotal());\n\t\tAssertions.assertEquals(1, tableItem.getRecordsFiltered());\n\t\tAssertions.assertEquals(1, tableItem.getData().size());\n\n\t\tfinal UserOrgVo user = tableItem.getData().get(0);\n\t\tAssertions.assertEquals(\"flast1\", user.getId());\n\t\tAssertions.assertEquals(\"Firsta\", user.getFirstName());\n\t\tAssertions.assertEquals(\"Lasta\", user.getLastName());\n\t\tAssertions.assertEquals(\"ing\", user.getCompany());\n\t\tAssertions.assertEquals(\"[email protected]\", user.getMails().get(0));\n\t\tAssertions.assertEquals(1, user.getGroups().size());\n\t\tAssertions.assertEquals(\"DIG RHA\", user.getGroups().get(0).getName());\n\n\t\t// Rollback attributes\n\t\tuserEdit.setId(\"flast1\");\n\t\tuserEdit.setFirstName(\"First1\");\n\t\tuserEdit.setLastName(\"Last1\");\n\t\tuserEdit.setCompany(\"ing\");\n\t\tuserEdit.setMail(\"[email protected]\");\n\t\tuserEdit.setGroups(null);\n\t\tresource.update(userEdit);\n\t}",
"@Test(expected = IllegalArgumentException.class)\r\n\tpublic void testFindOneIfPrincipalNegative3() {\r\n\t\tauthenticate(\"admin\");\r\n\r\n\t\t// ID de la brotherhood 2\r\n\t\tbrotherhoodService.findOneIfPrincipal(34);\r\n\r\n\t\tunauthenticate();\r\n\t}",
"AuthenticInfo doAuthentic(AuthorToken token) throws KeeperException;",
"private void authorize() {\r\n\r\n\t}",
"@java.lang.Override\n public boolean hasPrincipal() {\n return principal_ != null;\n }",
"private boolean isReviewerAnAuthor(Manuscript theManuscript) {\r\n\t\tboolean isAuthor = false;\r\n\t\tTreeMap<UUID, Account> acctList = new AccountDatabase().deserializeAccountList();\r\n\t\tArrayList<Account> validAccountList = new ArrayList<Account>();\r\n\t\t\r\n\t\tList<UUID> authorlist = theManuscript.getAuthors();\r\n\t\t\r\n\t\tfor(Account anAcct : acctList.values()) {\r\n\t\t\tif (anAcct.getMyReviewer() != null) {\r\n\t\t\t\tif(anAcct.getMyReviewer().getMyID().equals(this.getMyID())) {\r\n\t\t\t\t\tvalidAccountList.add(anAcct);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor(Account anAcct : validAccountList) {\r\n\t\t\tif(theManuscript.doesAuthorBelongToManuscript(anAcct.getMyAuthor())) {\r\n\t\t\t\tisAuthor = true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\treturn isAuthor;\r\n\t\t\r\n\t}",
"public boolean updateOptrAuth (java.lang.String[][] oprauthInfoobj, \n java.lang.String[][] oprdptinfoobj) throws com.mcip.orb.CoException {\n return this._delegate.updateOptrAuth(oprauthInfoobj, oprdptinfoobj);\n }",
"@Override\r\n\tprotected void verificaUtentePrivilegiato() {\n\r\n\t}",
"@Test\n\tvoid grantScholarshipRejected() {\n\t\tScholarship scholarship= iScholarshipService.getById(1000).orElse(null);\n\t\tStudent student= iStudentService.findByStudentId(168);\n\t\tassertEquals(null,iOfficerService.grantApproval(scholarship, student));\n\t\t\n\t}",
"@Test\n public void testGetUsersForOrganization_SubMgr() throws Exception {\n\n // given\n container.login(customerUser.getKey(), ROLE_ORGANIZATION_ADMIN);\n List<VOUserDetails> oldList = idService.getUsersForOrganization();\n\n // execute\n container.login(supplierAdminUser.getKey(), ROLE_SUBSCRIPTION_MANAGER);\n List<VOUserDetails> newList = idService.getUsersForOrganization();\n\n assertEquals(oldList.size(), newList.size());\n }",
"@Override\n protected AuthorizationInfo doGetAuthorizationInfo(final PrincipalCollection principals) {\n return new SimpleAuthorizationInfo();\n }",
"protected void retirePreviousAuthorizations() {\n List<Document> relatedDocs = getTravelDocumentService().getDocumentsRelatedTo(this, TravelDocTypes.TRAVEL_AUTHORIZATION_DOCUMENT,\n TravelDocTypes.TRAVEL_AUTHORIZATION_AMEND_DOCUMENT);\n\n //updating the related's document appDocStatus to be retired\n final DocumentAttributeIndexingQueue documentAttributeIndexingQueue = KewApiServiceLocator.getDocumentAttributeIndexingQueue();\n try {\n for (Document document : relatedDocs){\n if (!document.getDocumentNumber().equals(this.getDocumentNumber())) {\n ((TravelAuthorizationDocument) document).updateAndSaveAppDocStatus(TravelAuthorizationStatusCodeKeys.RETIRED_VERSION);\n documentAttributeIndexingQueue.indexDocument(document.getDocumentNumber());\n }\n }\n }\n catch (WorkflowException we) {\n throw new RuntimeException(\"Workflow document exception while updating related documents\", we);\n }\n }",
"public boolean setOrganization(String organize)\n {\n this.organization = organize;\n System.out.print(\"Publishing organization information written successfully\\n\");\n return true;\n }",
"public VentanaPrincipal() {\n initComponents();\n editar = false;\n }",
"private boolean isInstructor(User user)\r\n {\r\n if (LOG.isDebugEnabled())\r\n {\r\n LOG.debug(\"isInstructor(User \" + user + \")\");\r\n }\r\n if (user != null)\r\n return SecurityService.unlock(user, \"site.upd\", getContextSiteId());\r\n else\r\n return false;\r\n }",
"@Override\r\n\tprotected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) {\r\n\t\t// Merge authorized string(roles/permission)\r\n\t\treturn mergeAuthorizedString(principals, new SimpleAuthorizationInfo());\r\n\t}",
"protected void objAdded(UserId principal, ObjLoc objLoc, ObjectMeta objectMeta) {\r\n\r\n }",
"@SystemAPI\n\tboolean needsApproval();",
"public Agent getOwner(){\n return owner;\n }",
"private boolean checkAppInstanceOwnership(){\n\n\t\ttry {\n\t\t\t\n\t\t\t\n\t \tif(getUser() != null){\n\t \t\t\n\t \t\tif(getUser().getRole().equalsIgnoreCase(UserRoles.admin.toString()))\n\t \t\t\treturn true;\n\t \t\telse{\n\t \t\t\t\n\t\t\t\t\tAppInstance app = AHEEngine.getAppInstanceEntity(Long.valueOf(appinst));\n\t \t\t\t\t\t\t\t\t\n\t \t\t\tif(app != null){\n\t \t\t\t\t\n\t \t\t\t\tif(app.getOwner().getId() == getUser().getId())\n\t \t\t\t\t\treturn true;\n\t \t\t\t\telse{\n\t \t\t\t\t\tsetStatus(Status.CLIENT_ERROR_FORBIDDEN);\n\t \t\t\t\t\treturn false;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\t\t\n\t \t\t\t\n\t \t\t}\n\t \t\t\n\t \t}\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (AHEException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tsetStatus(Status.CLIENT_ERROR_FORBIDDEN);\n \treturn false;\n }",
"public void verifyToDoAssignToBackend(String engagementField, String engagementValue, String todoName, String assigneeName) {\n try {\n getLogger().info(\"Verify To-Do delete status on database.\");\n String idAssignee = MongoDBService.getUserObjectByFirstNameLastName(getUserCollection(), assigneeName);\n //System.out.println(\"+++++++++++++++++++++++++++++++++++++++++++idAssignee = \" + idAssignee);\n\n JSONObject jsonObject = MongoDBService.getToDoObject(getEngagementCollection(), engagementField, engagementValue, todoName);\n //System.out.println(\"+++++++++++++++++++++++++++++++++++++++++++auditorAssignee = \" + jsonObject.get(\"auditorAssignee\").toString());\n\n //TODO get from properties file\n if (jsonObject.get(\"auditorAssignee\").toString().contains(idAssignee)) {\n NXGReports.addStep(\"Verify To-Do complete status on database.\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"Verify To-Do complete status on database.\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n } catch (Exception ex) {\n NXGReports.addStep(\"Verify To-Do complete status on database.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n ex.printStackTrace();\n }\n }",
"@Test\n public void canSetOwnedOnVertecBy() {\n Long salesTeamOwnedOrgId = 709814L;\n Long nonZUKOrg = 1359817L; //actually exists\n Long subTeamOrg = 15158065L; //actually exists\n List<Long> orgids = new ArrayList<>();\n\n orgids.add(salesTeamOwnedOrgId);\n orgids.add(subTeamOrg);\n orgids.add(TESTVertecOrganisation2);\n orgids.add(nonZUKOrg);\n\n String idsAsString = \"\";\n for (int i = 0; i < orgids.size(); i++) {\n if (i < orgids.size() - 1) {\n idsAsString += orgids.get(i) + \",\";\n } else {\n idsAsString += orgids.get(i);\n }\n }\n\n String uri = baseURI + \"/organisations/\" + idsAsString;\n\n OrganisationList organisationList = getFromVertec(uri, OrganisationList.class).getBody();\n List<Organisation> orgs = organisationList.getOrganisations();\n\n System.out.println(orgs.get(0).getOwnedOnVertecBy());\n System.out.println(orgs.get(1).getOwnedOnVertecBy());\n System.out.println(orgs.get(2).getOwnedOnVertecBy());\n System.out.println(orgs.get(3).getOwnedOnVertecBy());\n assertTrue(orgs.get(0).getOwnedOnVertecBy().equals(\"Sales Team\"));\n assertTrue(orgs.get(1).getOwnedOnVertecBy().equals(\"Not ZUK\"));\n assertTrue(orgs.get(2).getOwnedOnVertecBy().equals(\"ZUK Sub Team\"));\n assertTrue(orgs.get(3).getOwnedOnVertecBy().equals(\"No Owner\"));\n }",
"ISSeedModifications createISSeedModifications();",
"@Test\n\tpublic void testIsPermitted_6()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tPermission permission = new AllPermission();\n\n\t\tboolean result = fixture.isPermitted(permission);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}",
"@Test\n public void approveGrant() {\n /*\n * Given\n */\n var uid = UID.apply();\n var grantFor = UserAuthorization.random();\n var privilege = DatasetPrivilege.CONSUMER;\n\n var executed = Executed.now(UserId.random());\n var request = AccessRequest.apply(executed, Markdown.lorem());\n var grant = DatasetGrant.createRequested(uid, grantFor, privilege, request);\n\n var approvedBy = UserId.random();\n var approvedAt = Instant.now();\n var justification = Markdown.lorem();\n\n var grantedAuth = GrantedAuthorization.apply(approvedBy, approvedAt, grantFor);\n var member = DatasetMember.apply(grantedAuth, privilege);\n\n /*\n * When\n */\n grant = grant\n .approve(approvedBy, approvedAt, justification)\n .map(g -> g, e -> null);\n\n /*\n * Then\n */\n assertThat(grant.getRequest())\n .as(\"The request should be available in the grant.\")\n .isPresent()\n .satisfies(ro -> ro.ifPresent(r -> {\n assertThat(r).isEqualTo(request);\n }));\n\n assertThat(grant.getRequestResponse())\n .as(\"The request response should be set and it should be approved\")\n .isPresent()\n .satisfies(ro -> ro.ifPresent(r -> {\n assertThat(r)\n .extracting(\n o -> o.getExecuted().getBy(),\n o -> o.getExecuted().getAt(),\n AccessRequestResponse::isApproved)\n .containsExactly(approvedBy, approvedAt, true);\n }));\n\n assertThat(grant)\n .as(\"Since the request is approved, the grant should be active\")\n .satisfies(g -> {\n assertThat(g.asDatasetMember())\n .isPresent()\n .get()\n .isEqualTo(member);\n\n assertThat(g.isOpen()).isFalse();\n assertThat(g.isActive()).isTrue();\n assertThat(g.isClosed()).isFalse();\n });\n }",
"@Test\n\tpublic void testIsPermitted_7()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\t\tPermission permission = new AllPermission();\n\n\t\tboolean result = fixture.isPermitted(permission);\n\n\t\t// add additional test code here\n\t\tassertTrue(result);\n\t}",
"public void Case9(){\n System.out.println(\"Testing Case 9\");\n byPrincipal();\n clear();\n System.out.println(\"Case 9 Done\");\n }",
"@Test\n public void testProjectRolesChanges() {\n coiPerson.setContactRole(ContactRoleFixtureFactory.MOCK_KEY_PERSON);\n Assert.assertFalse(\"Key Person Role not checked for\", rule.checkForKeyPersonProjectRoles(award.getProjectPersons()));\n coiPerson.setKeyPersonRole(\"fromCOI\");\n Assert.assertTrue(\"Key Person Role not checked for\", rule.checkForKeyPersonProjectRoles(award.getProjectPersons()));\n \n // when a key person is changed to coi\n kpPerson.setContactRole(ContactRoleFixtureFactory.MOCK_COI);\n Assert.assertTrue(\"rule should return true\", rule.processSaveAwardProjectPersonsBusinessRules(award.getProjectPersons()));\n }",
"public String getPrincipal() {\n\t\treturn this.principal;\n\t}",
"@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 }",
"@Test\n public void testGetOwner()\n {\n System.out.println(\"getOwner\");\n Party instance = null;\n Account expResult = null;\n Account result = instance.getOwner();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"@Test(expected = IllegalArgumentException.class)\r\n\tpublic void testFindOneIfPrincipalNegative1() {\r\n\t\tauthenticate(\"brother1\");\r\n\r\n\t\t// ID de la brotherhood 2\r\n\t\tbrotherhoodService.findOneIfPrincipal(34);\r\n\r\n\t\tunauthenticate();\r\n\t}",
"public void testUpdateExistingAuthor() {\r\n //given\r\n /*System.out.println(\"updateExistingAuthor\");\r\n int authorID = 31;\r\n String newDescription = \"\";\r\n AuthorHibernateDao instance = new AuthorHibernateDao();\r\n boolean expResult = true;\r\n \r\n //when \r\n boolean result = instance.updateExistingAuthor(authorID, newDescription);\r\n \r\n //then\r\n assertEquals(expResult, result);*/ \r\n }",
"public void createIndividualAcl(Individual i);",
"public interface AuthManager\n{\n void checkAuthAnnounce(Id<Node> nodeId, DynamicAnnouncement announcement, HttpServletRequest request);\n\n void checkAuthDelete(Id<Node> nodeId, HttpServletRequest request);\n\n void checkAuthReplicate(HttpServletRequest request);\n}"
] | [
"0.61806357",
"0.6098168",
"0.59900373",
"0.59028226",
"0.5856752",
"0.58085924",
"0.57621026",
"0.5753491",
"0.5723225",
"0.5711024",
"0.569993",
"0.5688514",
"0.5637491",
"0.56359726",
"0.563073",
"0.5616837",
"0.5579985",
"0.5553063",
"0.5532886",
"0.5527695",
"0.5520672",
"0.5501131",
"0.54933137",
"0.54933137",
"0.54915553",
"0.5484664",
"0.546454",
"0.5446211",
"0.5435848",
"0.543218",
"0.541918",
"0.541756",
"0.54169875",
"0.541331",
"0.5406821",
"0.5387687",
"0.53767735",
"0.5376169",
"0.5353686",
"0.5350176",
"0.5346996",
"0.5330917",
"0.53257996",
"0.531009",
"0.5303797",
"0.5275681",
"0.52678436",
"0.526746",
"0.5264116",
"0.5262963",
"0.5262421",
"0.5254125",
"0.5253288",
"0.52524483",
"0.5251001",
"0.52439713",
"0.52402705",
"0.5237233",
"0.52231103",
"0.5220796",
"0.52161235",
"0.5210918",
"0.520835",
"0.5192218",
"0.51908654",
"0.51862687",
"0.5185792",
"0.517961",
"0.5178831",
"0.5174944",
"0.5169934",
"0.51644146",
"0.5161777",
"0.51567924",
"0.5154581",
"0.5154439",
"0.5153177",
"0.5152428",
"0.51465344",
"0.5146315",
"0.5143131",
"0.513867",
"0.5134241",
"0.51328725",
"0.51308167",
"0.5127092",
"0.51245356",
"0.51237714",
"0.51221603",
"0.51211804",
"0.5119874",
"0.51178706",
"0.5115178",
"0.51103115",
"0.51094323",
"0.51091594",
"0.51084834",
"0.51080054",
"0.51058173",
"0.5103182"
] | 0.5401039 | 35 |
TODO Autogenerated method stub | @Override
public TileEntity createTileEntity(World world, int metadata) {
return null;
} | {
"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 Integer getGui(World world, int x, int y, int z,
EntityPlayer entityplayer) {
return null;
} | {
"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 getModInstance() {
return null;
} | {
"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 String[] getTextureNames() {
return null;
} | {
"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 |
make a random list | public static void main(String...args){
int[] whitelist = new int[10];
for(int i=0; i<10; i++){
whitelist[i] = new Random().nextInt(1000);
}
//sort the list
Arrays.sort(whitelist);
for(int i=0; i<10; i++){
System.out.print(whitelist[i]+", ");
}
int key = new Random().nextInt(1000);
int res = binarySearch(key, whitelist);
System.out.println("\n二分搜索数字" + key + ",得:" + res);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void randomize()\n {\n for (int i=0; i<list.length; i++)\n list[i] = (int)(Math.random() * 100) + 1;\n }",
"public ArrayList<RandomItem> getRandomItems();",
"private void fillRandomList()\n\t{\n\t\trandomList.add(\"I like cheese.\");\n\t\trandomList.add(\"Tortoise can move faster than slow rodent.\");\n\t\trandomList.add(\"I enjoy sitting on the ground.\");\n\t\trandomList.add(\"I like cereal.\");\n\t\trandomList.add(\"This is random.\");\n\t\trandomList.add(\"I like typing\");\n\t\trandomList.add(\"FLdlsjejf is my favorite word.\");\n\t\trandomList.add(\"I have two left toes.\");\n\t\trandomList.add(\"Sqrt(2) = 1.414213562 ...\");\n\t\trandomList.add(\"Hi mom.\");\n\t}",
"public void randomize()\n {\n int max = list.length;\n for (int i=0; i<list.length; i++)\n list[i] = (int)(Math.random() * max) + 1;\n }",
"public static Integer[] randList(int size){\r\n Random generator = new Random();\r\n Integer[] list = new Integer[size];\r\n for(int i=0; i<size; i++){\r\n list[i]=generator.nextInt(10);\r\n }\r\n System.out.println(\"random list of \" + size + \" items\");\r\n for(Integer i: list){\r\n System.out.print(i + \" \");\r\n }\r\n System.out.println(\"\\n\");\r\n return list;\r\n }",
"public List<Integer> getRandomElement(List<Integer> list) {\n\t\t//Random rand = new Random(); \n\t\tList<Integer> newList = new ArrayList<>();\n\t\t//newList.add(10);\n\n//\t\tfor(int i=0;i<5;i++) {\n//\t\tif(newList.size()<4) {\n//\t\t\tint n=Random(list);\n//\t\t\tif(newList.contains(n)) {\n//\t\t\t\t\n//\t\t\t}else {\n//\t\t\t\tnewList.add(n);\n//\t\t\t}\n//\t\t}\n//\t\t}\n\t\twhile(newList.size()<=2) {\n\t\t\tint n=Random(list);\n\t\t\tif(newList.contains(n)) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tnewList.add(n);\n\t\t\t}\n\t\t}\t\n\t\t\n\t\t\n\t\treturn newList;\n\t}",
"public List<Vec> sample(int count, Random rand);",
"@Override\n public <T> T getRandomElement(List<T> list) {\n return super.getRandomElement(list);\n }",
"private IUnit getRandomListUnit(){\n\t\treturn unitList.get(rnd.nextInt(unitListSize()));\n\t}",
"private static List<Integer> initLista(int tamanho) {\r\n\t\tList<Integer> lista = new ArrayList<Integer>();\r\n\t\tRandom rand = new Random();\r\n\r\n\t\tfor (int i = 0; i < tamanho; i++) {\r\n\t\t\tlista.add(rand.nextInt(tamanho - (tamanho / 10) + 1)\r\n\t\t\t\t\t+ (tamanho / 10));\r\n\t\t}\r\n\t\treturn lista;\r\n\t}",
"public void generateRandomQuestions(){\r\n numberHolder = new ArrayList<>(NUMBER_OF_QUESTIONS);\r\n for (int i = 0; i < NUMBER_OF_QUESTIONS; i++)\r\n numberHolder.add(i);\r\n\r\n Collections.shuffle(numberHolder);\r\n System.out.println(numberHolder);\r\n\r\n }",
"public List<Fruit> generateShuffled(int listType) {\r\n final List<Fruit> list = innerGenerate(listType);\r\n Collections.shuffle(list);\r\n return Collections.unmodifiableList(list);\r\n }",
"List<User> getRandomUsers(List<User> uList, int num);",
"public <T> T of(List<T> list) {\n return list.get(random.nextInt(list.size() - 1));\n }",
"public static String[] getRandomElements(ArrayList<String> list, \n int totalItems) \n { \n Random rand = new Random(); \n \n ArrayList<String> oldList = new ArrayList<>();\n for (int i = 0; i < list.size(); i++) {\n \toldList.add(list.get(i));\n }\n \n String[] out = new String[totalItems];\n for (int i = 0; i < totalItems; i++) { \n \n // take a random index between 0 to size \n // of given List \n int randomIndex = rand.nextInt(oldList.size()); \n \n // add element in temporary list \n out[i] = oldList.get(randomIndex); \n \n // Remove selected element from original list \n oldList.remove(randomIndex); \n } \n \n return out; \n }",
"protected static ArrayList<String> GenNumber() {\n\n ArrayList<String> initialList = new ArrayList<>();\n\n initialList.add(\"1\"); //Add element\n initialList.add(\"2\");\n initialList.add(\"3\");\n initialList.add(\"4\");\n initialList.add(\"5\");\n initialList.add(\"6\");\n initialList.add(\"7\");\n initialList.add(\"8\");\n initialList.add(\"9\");\n\n Collections.shuffle(initialList); //Random the position\n\n return initialList;\n }",
"@BeforeEach\n public void createList() {\n myListOfInts = new ArrayListDIY<>(LIST_SIZE);\n listOfInts = new ArrayList<>(LIST_SIZE);\n\n getRandomIntStream(0,10).limit(LIST_SIZE)\n .forEach(elem -> {\n listOfInts.add(elem);\n myListOfInts.add(elem);\n });\n }",
"public int getRandom() {\n return lst.get(rand.nextInt(lst.size()));\n }",
"private List<Integer> generateRandom() {\n Integer[] randArr = new Integer[numCols*numRows];\n\n int start = 0;\n int end;\n for(int i = 0; i < myStateMap.size(); i++) {\n int amt = myStateMap.get(i).getAmount();\n end = amt + start;\n for(int j = start; j < end; j++) {\n if(end > randArr.length) {\n break;\n }\n randArr[j] = myStateMap.get(i).getType();\n }\n start = end;\n }\n\n List<Integer> arr = new ArrayList<>(Arrays.asList(randArr));\n Collections.shuffle(arr);\n return arr;\n }",
"public int getRandom() {\n return _list.get( rand.nextInt(_list.size()) );\n }",
"private int[] makeRandomList(){\n\t\t\n\t\t//Create array and variables to track the index and whether it repeats\n\t\tint[] list = new int[ 9 ];\n\t\tint x = 0;\n\t\tboolean rep = false;\n\t\t\n\t\t//Until the last element is initialized and not a repeat...\n\t\twhile( list[ 8 ] == 0 || rep)\n\t\t{\n\t\t\t//Generate a random number between 1 and 9\n\t\t\tlist[ x ]= (int)(Math.random()*9) + 1;\n\t\t\trep = false;\n\t\t\t\n\t\t\t//Check prior values to check for repetition\n\t\t\tfor(int y = 0; y < x; y++)\n\t\t\tif( list[x] == list[y] ) rep = true;\n\t\t\t\n\t\t\t//Move on to the next element if there is no repeat\n\t\t\tif( !rep ) x++;\n\t\t}\n\t\t\n\t\t//return the array\n\t\treturn list;\n\t}",
"public ListNode createList(int len) {\r\n\t\tListNode head = null;\r\n\t\tRandom r = new Random(10);\r\n\t\tfor (int i = 0; i < len; ++i) {\r\n\r\n\t\t\thead = createNode(head, r.nextInt(20) + 1);\r\n\t\t}\r\n\r\n\t\treturn head;\r\n\t}",
"private <T> T getRandomElement(List<T> list) {\n return list.get(randomInt(0, list.size()));\n }",
"public static ArrayList<Integer> createRandomList(int n) {\n\n\t\tArrayList<Integer> list = new ArrayList<>();\n\t\tRandom rand = new Random();\n\n\t\tint max = 1000000;\n\t\tint min = -1000000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint value = (int) ((Math.random() * (max - min)) + min);\n\t\t\tlist.add(value);\n\t\t}\n\t\treturn list;\n\t}",
"private static <T> ImmutableList<T> shuffleImmutableList(List<T> sourceList, Random random) {\n List<T> mutableList = new ArrayList<>(sourceList);\n Collections.shuffle(mutableList, random);\n return ImmutableList.copyOf(mutableList);\n }",
"private ArrayList _getRandomList(int num, int min, int max) {\n ArrayList list = new ArrayList();\n ArrayList tmp = new ArrayList();\n for (int i = min; i <= max; i++) {\n tmp.add(new Integer(i));\n }\n \n for (int i = 0; i < num; i++) {\n \tif(tmp.size() > 1){\n\t int pos = _getRandomFromRange(0, tmp.size() - 1);\n\t list.add( (Integer) tmp.get(pos));\n\t tmp.remove(pos);\n \t}\n }\n\n return list;\n }",
"public int getRandom() {\n int x=rand.nextInt(li.size());\n return li.get(x);\n }",
"public Vector<String> getRandom(){\n\t\t\n\t\tAssert.pre(size()>0, \"data must be initialized\");\n\t\t\n\t\tint n = r.nextInt(size());\n\t\t\n\t\treturn get(n);\n\t}",
"private static void InitRandBag()\n {\n int k=(int)Math.floor(Math.random()*50);\n R[0]=k;\n\n //Generate the rest of the numbers\n for(int i=1;i<950;i++)\n {\n k=k+(int)Math.floor(Math.random()*50);\n R[i]=k;\n }\n\n //Shuffle the list\n for(int i=0;i<950;i++)\n {\n int temp = R[i];\n k = (int)Math.floor(Math.random()*950);\n R[i]=R[k];\n R[k]=temp;\n }\n }",
"public static void randomize(List<String> list) {\n\t\tfor (int i = list.size() - 1; i > 0; i--) {\n\t\t\tint rand = (int)( Math.random() * i );\n\t\t\tString temp = list.get(i);\n\t\t\tlist.set(i, list.get(rand));\n\t\t\tlist.set(rand, temp);\n\t\t}\n\t}",
"public static List<Integer> makeList(int size) {\r\n List<Integer> result = new ArrayList<>();\r\n /** \r\n * taking input from the user \r\n * by using Random class. \r\n * \r\n */\r\n for (int i = 0; i < size; i++) {\r\n int n = 10 + rng.nextInt(90);\r\n result.add(n);\r\n } // for\r\n\r\n return result;\r\n /**\r\n * @return result \r\n */\r\n }",
"public void setRandomItems(ArrayList<RandomItem> items);",
"public static void main(String[] args) {\n ArrayList<String>colors= new ArrayList<>();\n colors.add(\"red\");\n colors.add(\"green\");\n colors.add(\"Orange\");\n colors.add(\"white\");\n colors.add(\"black\");\n System.out.println(\"list before shuffling: \" + colors );\n Collections.shuffle(colors);\n System.out.println(\"list after shuffling:\" + colors);\n\n\n\n }",
"public int getRandom() {\n int n = l.size();\n Random rand = new Random();\n return l.get(rand.nextInt(n));\n }",
"@Override\n\tpublic List<BookVO> randomList() {\n\t\tList<BookVO> randomList =bookDAO.randomList();\n\t\treturn randomList;\n\t}",
"@Override\n public void run() {\n list.add(new Random().nextInt(11)+ 6);\n }",
"public int getRandom() {\n int i = random.nextInt(list.size());\n return list.get(i);\n }",
"private void random() {\n\n\t}",
"public ArrayList<PrizeCard> scramble() {\n java.util.Random rand1 = new java.util.Random();\n ArrayList<PrizeCard> scrambled = new ArrayList<PrizeCard>();\n scrambled = prizeCards;\n /* write your code here */\n\n\n\n for (int i = 0; i < 40; i++) {\n if (i % 10 == 0) {\n int rand = rand1.nextInt(39 / 10) * 10;\n PrizeCard temp = prizeCards.get(i);\n scrambled.set(i, prizeCards.get(rand));\n scrambled.set(rand, temp);\n } else if (i % 2 == 0) {\n int rand = rand1.nextInt(39 / 2) * 2;\n PrizeCard temp = prizeCards.get(i);\n scrambled.set(i, prizeCards.get(rand));\n scrambled.set(rand, temp);\n } else {\n int rand = (rand1.nextInt(38 / 2) * 2) + 1;\n PrizeCard temp = prizeCards.get(i);\n scrambled.set(i, prizeCards.get(rand));\n scrambled.set(rand, temp);\n }\n }\n\n return scrambled;\n }",
"public RandomizedCollection() {\n map=new HashMap();\n li=new ArrayList();\n rand=new Random();\n }",
"public List<Integer> generateLine() {\r\n\t\tList<Integer> tempLine = new ArrayList<Integer>();\r\n\t\tfor (int j=0; j <3; j++) {\r\n\t\t\tint randomNum = ThreadLocalRandom.current().nextInt(0,3);\r\n\t\t\ttempLine.add(randomNum);\r\n\t\t}\r\n\t\treturn tempLine;\r\n\t}",
"public static void shuffle(java.util.List arg0, java.util.Random arg1)\n { return; }",
"public void produceRandomBookList(int numOfBooks) {\n\t\tfor (int i = 0; i < numOfBooks; i++) {\n\t\t\tdouble rand = (Math.random() * bookList.size());\n\t\t\tSystem.out.println(bookList.get((int) rand));\n\t\t}\n\t}",
"public int getRandom() {\n Iterator<Integer> it = list.iterator();\n int i = (int) (Math.random()*list.size());\n for (int j = 0; j < i; j++) {\n it.next();\n }\n return it.next();\n }",
"@GetMapping(\"random-list/{id}\")\n\tpublic List<Movie> getRandomList(@PathVariable(\"id\") int limit){\n\t\tRandom rand = new Random();\n\t\tList<Movie> list1 = repo.findAll();\n\t\tList<Movie> list = new ArrayList<Movie>();\n\t\tfor (int i = 0; i <= limit; i++) {\n\t\t\tint num1 = rand.nextInt(list1.size()) + 1;\n\t\t\tlist.add(repo.findById(num1));\n\t\t\t\n\t\t}\n\t\treturn list;\n\t}",
"public final void rand() {\n\t\tpush(randomNumberGenerator.nextDouble());\n\t}",
"public int getRandom() {\n ListNode curr = head2;\n int r = rand.nextInt(size);\n for (int i=0; i<r; i++) {\n if (curr!= null){\n curr = curr.next;\n }\n }\n return curr.val;\n }",
"private ArrayList<String> getRandQuestion() \n\t{\t\n\t\tquestionUsed = true;\n\t\t\n\t\tRandom randomizer = new Random();\n\t\tint randIdx = 0;\n\t\t\n\t\tif(questionsUsed.isEmpty())\n\t\t\trandIdx = randomizer.nextInt(allQuestions.size());\n\t\telse\n\t\t{\n\t\t\twhile(questionUsed)\n\t\t\t{\n\t\t\t\trandIdx = randomizer.nextInt(allQuestions.size());\n\t\t\t\tcheckIfQuestionUsed(randIdx);\n\t\t\t}\n\t\t}\n\t\t\n\t\tquestionsUsed.add(randIdx);\n\t\t\n\t\treturn allQuestions.get(randIdx);\n\t}",
"public int getRandom() {\n Random random = new Random();\n int i = random.nextInt(list.size());\n return list.get(i);\n }",
"private List<Card> getRandomCardMocksAsList(final int argAmountOfCards)\r\n\t{\r\n\t\tList<Card> mocks = new LinkedList<>();\r\n\r\n\t\tint amountOfCards = argAmountOfCards;\r\n\r\n\t\tif (amountOfCards < 0)\r\n\t\t{\r\n\t\t\tamountOfCards = 0;\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < amountOfCards; i++)\r\n\t\t{\r\n\t\t\tmocks.add(TestUtils.getRandomCardMock());\r\n\t\t}\r\n\r\n\t\treturn mocks;\r\n\t}",
"public static List<Integer> prepareRandomIntegeArrayList(int size) {\n\t\tList<Integer> arrayList = new ArrayList<>(size);\n\t\tfor (int j = 0; j < size; j++) {\n\t\t\tarrayList.add(j, (int) ((Math.random() * 1000000)));\n\t\t}\n\t\treturn arrayList;\n\t}",
"public int getRandom() {\n int index = rnd.nextInt(list.size());\n return list.get(index).val;\n }",
"public void makePathList() {\r\n\t\tPath p = new Path(false,false,false,false);\r\n\t\tfor(int i=0; i<15; i++) {\r\n\t\t\tp = p.randomizePath(p.makeCornerPath());\r\n\t\t\t_list.add(p);\r\n\t\t}\r\n\t\tfor(int i=0; i<13; i++) {\r\n\t\t\tp = p.randomizePath(p.makeStraightPath());\r\n\t\t\t_list.add(p);\r\n\t\t}\r\n\t\tfor(int i=0; i<6; i++) {\r\n\t\t\tp = p.randomizePath(p.makeTPath());\r\n\t\t\t_list.add(p);\r\n\t\t}\r\n\t\tCollections.shuffle(_list);\r\n\t}",
"public static ArrayList<Integer> genRandomArray(int s) {\n\t\t// TODO Auto-generated method stub\n\t\tArrayList<Integer> R = new ArrayList<Integer>();\n\t\tint i = 0;\n\t\tRandom randNum = new Random();\n\t\tfor (i = 0; i < s; i++) {\n\t\t\tint randNumber = MurmurHash.hashLong(i);\n\t\t\tR.add(randNumber);\n\n\t\t}\n\n\t\treturn R;\n\t}",
"public static <T> T getRandomElement(List<T> list) {\n \tint index = (int) (Math.random() * list.size());\n \treturn list.get(index);\n }",
"public ArrayList<PuzzleState> getRandomNeighbors() {\n\t\tArrayList<PuzzleState> ns = getNeighbors();\n\t\tCollections.shuffle(ns);\n\t\treturn ns;\t\n\t}",
"public int getRandom() {\n return elementsList.get(rand.nextInt(elementsList.size()));\n }",
"private Random rand()\n\t{\n\t\treturn new Random();\n\t}",
"public int getRandom() {\n int index = (int) Math.round(Math.random()*(list.size()-1));\n return list.get(index);\n }",
"public static IntArrayList shuffle(IntArrayList list, Random random) {\n int maxHalf = list.size() / 2;\n for (int x1 = 0; x1 < maxHalf; x1++) {\n int x2 = random.nextInt(maxHalf) + maxHalf;\n int tmp = list.buffer[x1];\n list.buffer[x1] = list.buffer[x2];\n list.buffer[x2] = tmp;\n }\n return list;\n }",
"public int[] randomize(int inputSize){\n int[] list = new int[inputSize];\n for(int i = 0; i < inputSize; i++){\n // generate numbers within absolute range of input size to increase the chance to get distinct elements\n list[i] = ThreadLocalRandom.current().nextInt(0, inputSize + 1);\n }\n// System.out.println(Arrays.toString(list));\n return list;\n }",
"public List<Integer> randomAD() {\n\t\tList<Integer> ads = new ArrayList<Integer>();\n\t\tads.add(getRandomInteger(0, 100));\n\t\treturn(ads);\n\t}",
"public List<IrregularVerb> getRandomVerbs(int count);",
"@Override\n\tpublic List<URL> getRandomPhotoURL() {\n\t\tif (this.images.isEmpty()) { this.getPhotos(); } //s'assurer que la liste d'image est pleine\n\t\tList<URL> randomPhotosURL = images; \n\t\tCollections.shuffle(randomPhotosURL); \n\t\treturn randomPhotosURL;\n\t}",
"private void addRandomPremiereCard(List<CardCollection.Item> result, int count) {\n List<String> possibleCards = new ArrayList<String>();\n possibleCards.addAll(_premiereSetRarity.getAllCards());\n filterNonExistingCards(possibleCards);\n Collections.shuffle(possibleCards, _random);\n addCards(result, possibleCards.subList(0, Math.min(possibleCards.size(), count)), false);\n }",
"public int getRandom() {\n Random rand = new Random();\n return list.get(rand.nextInt(linklist.size()));\n }",
"public RandomizedCollection() {\n nums = new ArrayList<>();\n num2Index = new HashMap<>();\n rand = new Random();\n }",
"public ArrayList<Player> genRecruits( int number ) {\n ArrayList<Player> PlayerList = new ArrayList<>();\n int basePrestige = 25;\n int randPrestige = 75;\n for (int i = 0; i < number/5; ++i) {\n Player genPG = genPlayer(1, basePrestige + (int)(Math.random()*randPrestige), 1);\n Player genSG = genPlayer(2, basePrestige + (int)(Math.random()*randPrestige), 1);\n Player genSF = genPlayer(3, basePrestige + (int)(Math.random()*randPrestige), 1);\n Player genPF = genPlayer(4, basePrestige + (int)(Math.random()*randPrestige), 1);\n Player genC = genPlayer(5, basePrestige + (int)(Math.random()*randPrestige), 1);\n PlayerList.add(genPG);\n PlayerList.add(genSG);\n PlayerList.add(genSF);\n PlayerList.add(genPF);\n PlayerList.add(genC);\n }\n \n return PlayerList;\n }",
"public void randomize(){\r\n\t\tfor(int i = 0;i<this.myQuestions.size();i++){\r\n\t\t\tthis.myQuestions.get(i).randomize();\r\n\t\t}\r\n\t\tCollections.shuffle(this.myQuestions);\r\n\t}",
"private static ListNode initializeListNode() {\n\n\t\tRandom rand = new Random();\n\t\tListNode result = new ListNode(rand.nextInt(10)+1);\n\t\t\n\t\tresult.next = new ListNode(rand.nextInt(10)+1);\n\t\tresult.next.next = new ListNode(rand.nextInt(10)+1);\n\t\tresult.next.next.next = new ListNode(rand.nextInt(10)+1);\n\t\tresult.next.next.next.next = new ListNode(rand.nextInt(10)+1);\n\t\t\n\t\treturn result;\n\t}",
"public void remove() {\n if (count == 0) {\n return;\n }\n \n Random rand = new Random();\n int index = rand.nextInt(count);\n for (int i = index; i < count - 1; i++) {\n list[i] = list[i+1];\n }\n count--; \n }",
"public int getRandom() {\n Random random = new Random();\n return list.get(random.nextInt(list.size()));\n }",
"public List<Float> randomLikelihood() {\n\t\tList<Float> likelihood = new ArrayList<Float>();\n\t\tlikelihood.add((float) getRandomInteger(-200, 0));\n\t\treturn(likelihood);\n\t}",
"public static int getRandomNumbers(ArrayList simList) {\r\n return r.nextInt(simList.size());\r\n }",
"private static void createPlayfulSet() {\n\n\t\trandomKeys = new ArrayList<>();\n\n\t\trandomKeys.add(GuessRevealerConstants.RANDOM_TEXT1);\n\t\trandomKeys.add(GuessRevealerConstants.RANDOM_TEXT2);\n\t\trandomKeys.add(GuessRevealerConstants.RANDOM_TEXT3);\n\t\trandomKeys.add(GuessRevealerConstants.RANDOM_TEXT4);\n\t\trandomKeys.add(GuessRevealerConstants.RANDOM_TEXT5);\n\t\trandomKeys.add(GuessRevealerConstants.RANDOM_TEXT6);\n\t\trandomKeys.add(GuessRevealerConstants.RANDOM_TEXT7);\n\t\trandomKeys.add(GuessRevealerConstants.END);\n\n\t\trandomCount = randomKeys.size();\n\n\t}",
"public ArrayList<Integer> generateWinner() {\n if (winner.size() == 7) {\n if (!sorted) {\n Collections.sort(winner);\n sorted = true;\n }\n return winner;\n }\n if (numbers.size() == 32 || winner.size() != 0) {\n init();\n }\n\n for (int i = 0; i < 7; i++) {\n winner.add(numbers.get(random.nextInt(numbers.size())));\n numbers.remove(winner.get(i));\n }\n Collections.sort(winner);\n return winner;\n }",
"public Integer[] randomizeObject(int inputSize){\n Integer[] list = new Integer[inputSize];\n for(int i = 0; i < inputSize; i++){\n // generate numbers within absolute range of input size to increase the chance to get distinct elements\n list[i] = ThreadLocalRandom.current().nextInt(-inputSize, inputSize + 1);\n }\n // System.out.println(Arrays.toString(list));\n return list;\n }",
"private void collectRandomRIDs(){\n\t\tint numRIDs = iterations + 1;\n\t\trandomRID_list = new String[numRIDs];\n\t\tString randomClusterName;\n\t\tint clusterID, randomPosition;\n\t\t\n\t\t// Collect #iterations of random RID's\n\t\tfor(int i=0; i < numRIDs; i++){\n\t\t\trandomClusterName = env.VERTEX_PREFIX + (int) (Math.random() * env.NUM_VERTEX_TYPE);\n\t\t\tclusterID = db.getClusterIdByName(randomClusterName); \n\t\t\tOClusterPosition [] range = db.getStorage().getClusterDataRange(clusterID);\n\t\t\t\n\t\t\trandomPosition = (int) (Math.random() * range[1].intValue()) + range[0].intValue();\n\t\t\trandomRID_list[i] = \"#\" + clusterID + \":\" + randomPosition;\n\t\t}\n\t\t\n\t}",
"public int getRandom() {\n ListNode pick = null;\n ListNode p = head;\n int count = 1;\n while (p != null) {\n if (rand.nextInt(count) == 0) {\n pick = p;\n }\n p = p.next;\n count++;\n }\n return pick.val;\n }",
"public void shuffle() {\n\t\tCollections.shuffle(Arrays.asList(reel));\n\t}",
"public Item sample() {\n \t if (size==0){\n \t \tthrow new NoSuchElementException();\n \t }\n \t int index = StdRandom.uniform(size);\n // System.out.println(\"The index of the number is: \" + index);\n int k = 0;\n \t Node p=sentinel.next.next;\n \t for (int i = 0; i < index; i++){\n p = p.next; \n \t }\n \t return p.item;\n }",
"public List<MExampleCall> getRandomExampleCalls();",
"public abstract void randomize();",
"private void addRandomANewHopeOrHothCard(List<CardCollection.Item> result, int count) {\n List<String> possibleCards = new ArrayList<String>();\n possibleCards.addAll(_aNewHopeSetRarity.getAllCards());\n possibleCards.addAll(_hothSetRarity.getAllCards());\n filterNonExistingCards(possibleCards);\n Collections.shuffle(possibleCards, _random);\n addCards(result, possibleCards.subList(0, Math.min(possibleCards.size(), count)), false);\n }",
"public static List<Integer> randomData(final int size) {\n\t\tfinal List<Integer> output = new ArrayList<Integer>();\n\n\t\tfor (int i = 0; i < size; i++)\n\t\t\toutput.add((int)(Math.random() * MAX_VALUE));\n\n\t\treturn output;\n\t}",
"public void clearRandomItems();",
"public Item generateItem()\n {\n Random rand = new Random();\n int item = rand.nextInt(itemList.size());\n return itemList.get(item);\n }",
"public RandomListNode copyRandomList2(RandomListNode head){\n RandomListNode currP = head;\n \n //copy the node\n while(currP != null){\n RandomListNode tmp = new RandomListNode(currP.label);\n tmp.next = currP.next;\n currP.next = tmp;\n currP = tmp.next;\n }\n \n currP = head;\n //copy the random pointer\n while(currP != null){\n \n if(currP.random != null){\n currP.next.random = currP.random.next; \n }\n \n currP = currP.next.next;\n }\n \n //decouple the list\n RandomListNode safehead = new RandomListNode(0);\n RandomListNode p = safehead;\n currP = head;\n \n while(currP != null){\n p.next = currP.next;\n currP.next = currP.next.next;\n currP = currP.next;\n p = p.next;\n }\n \n return safehead.next;\n }",
"public int getRandom() {\n Random random = new Random();\n int val = list.get( random.nextInt(list.size()));\n return val;\n }",
"Randomizer getRandomizer();",
"private ArrayList<AdventurerEnum> getRandomisedRoles() {\n\t\tArrayList<AdventurerEnum> allRoles = new ArrayList<AdventurerEnum>();\n\t\tArrayList<AdventurerEnum> randomRoles = new ArrayList<AdventurerEnum>();\n\t\t\n\t\tallRoles.add(AdventurerEnum.DIVER);\n\t\tallRoles.add(AdventurerEnum.ENGINEER);\n\t\tallRoles.add(AdventurerEnum.EXPLORER);\n\t\tallRoles.add(AdventurerEnum.MESSENGER);\n\t\tallRoles.add(AdventurerEnum.NAVIGATOR);\n\t\tCollections.shuffle(allRoles);\t\t // Shuffle roles so not always picking same roles to be added\n\t\t\n\t\trandomRoles.add(AdventurerEnum.PILOT); // Always need a pilot\n\t\tfor(int i=1; i<numPlayers; i++)\n\t\t\trandomRoles.add( allRoles.remove(0) );\n\t\tCollections.shuffle(randomRoles);\t // Shuffle again so that Pilot isn't always the first player \n\t\t\n\t\treturn randomRoles;\n\t}",
"public static void shufleArray(ArrayList<Number> list) {\r\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\t// generisemo prvi indeks.\r\n\t\t\tint indx1 = (int) (Math.random() * list.size());\r\n\t\t\t// generisemo drugi index.\r\n\t\t\tint indx2 = (int) (Math.random() * list.size());\r\n\t\t\t// cuvamo elemenat sa prvog indeksa.\r\n\t\t\tNumber temp = list.get(indx1);\r\n\t\t\t// Kopiramo elemenat sa drugog indeksa preko prvog elementa.\r\n\t\t\tlist.set(indx1, list.get(indx2));\r\n\t\t\t// Kopiramo temp (prvi elemenat) preko drugog elementa.\r\n\t\t\tlist.set(indx2, temp);\r\n\t\t}\r\n\t}",
"public void creatList()\n\t{\n\t\tbowlers.add(new Bowler(\"A\",44));\n\t\tbowlers.add(new Bowler(\"B\",25));\n\t\tbowlers.add(new Bowler(\"C\",2));\n\t\tbowlers.add(new Bowler(\"D\",10));\n\t\tbowlers.add(new Bowler(\"E\",6));\n\t}",
"public static ArrayList<Integer> randomIntegerList(int size, int range)\n {\n ArrayList<Integer> list = new ArrayList<Integer>();\n //int size = list.size();\n \n /*\n * The add method adds the specified object to the end of the list\n * \n * Autoboxing:\n * Primitve values are automatically converted to the \n * wrapper class. However, the type promotion\n * does not occur.\n */\n for (int i = 0; i<size; i++)\n {\n int value = (int)(Math.random() * range) +1;\n list.add(value);\n }\n \n return list;\n }",
"private void addRandomSpecialEditionCard(List<CardCollection.Item> result, int count) {\n List<String> possibleCards = new ArrayList<String>();\n possibleCards.addAll(_specialEditionSetRarity.getAllCards());\n filterNonExistingCards(possibleCards);\n Collections.shuffle(possibleCards, _random);\n addCards(result, possibleCards.subList(0, Math.min(possibleCards.size(), count)), false);\n }",
"private void createShuffleAndAddCards() {\n //Creating all 108 cards and saving them into an arraylist\n ArrayList<Card> cards = new ArrayList<>();\n String[] colors = {\"red\", \"blue\", \"yellow\", \"green\"};\n for (String color : colors) {\n for (int i = 1; i < 10; i++) {\n for (int j = 0; j < 2; j++) {\n cards.add(new Card(\"Numeric\", color, i));\n }\n }\n cards.add(new Card(\"Numeric\", color, 0));\n for (int i = 0; i < 2; i++) {\n cards.add(new Card(\"Skip\", color, 20));\n cards.add(new Card(\"Draw2\", color, 20));\n cards.add(new Card(\"Reverse\", color, 20));\n }\n }\n for (int i = 0; i < 4; i++) {\n cards.add(new Card(\"WildDraw4\", \"none\", 50));\n cards.add(new Card(\"WildColorChanger\", \"none\", 50));\n }\n //shuffling cards and adding them into the storageCards main list\n Collections.shuffle(cards);\n for (Card card : cards) {\n storageCards.add(card);\n }\n cards.clear();\n }",
"public T getRandom()\n\t{\n\t\tDLLNode<T> newNode = head;\n\t\tint randomNum = (int)(Math.random()*size);\n\t\tfor(int i =0; i<randomNum; i++){\n\t\t\tnewNode= newNode.getNext();\n\t\t}\n\t\treturn newNode.getData();\n\t}",
"public static <E> void shuffle(ArrayList<E> list) {\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tint index = (int)(Math.random() * list.size());\n\t\t\tE temp = list.get(i);\n\t\t\tlist.set(i, list.get(index));\n\t\t\tlist.set(index, temp);\n\t\t}\n\t}",
"private int getRandNumber() {\n int randNum = 0;\n Random generator = new Random();\n randNum = generator.nextInt(LIST.length()-1);\n return randNum;\n }",
"public static ArrayList<Integer> barajar(int n){\n ArrayList<Integer> orden = new ArrayList<>();\n Random r = new Random();\n int ng;\n for(int i=0;i<n;i++){\n ng = r.nextInt(n);\n if(!orden.contains(ng)){\n orden.add(ng);\n }\n else{\n i--;\n }\n }\n return orden;\n }",
"public int getRandom() {\n if(list.size() <= 0) return -1;\n return list.get(new Random().nextInt(list.size()));\n }"
] | [
"0.7563077",
"0.75324285",
"0.7357179",
"0.72958845",
"0.72696716",
"0.71856725",
"0.7033902",
"0.69322574",
"0.6844657",
"0.68426746",
"0.6830104",
"0.6805782",
"0.6765234",
"0.6742684",
"0.67268455",
"0.67264277",
"0.67129105",
"0.670924",
"0.66969883",
"0.6676685",
"0.66677934",
"0.66583455",
"0.660117",
"0.6584536",
"0.6570979",
"0.65573287",
"0.6541963",
"0.6499193",
"0.6489119",
"0.6429799",
"0.63762826",
"0.6362576",
"0.634898",
"0.634843",
"0.6341623",
"0.63061285",
"0.63052917",
"0.6291362",
"0.62879115",
"0.627795",
"0.62756777",
"0.627074",
"0.6257517",
"0.624201",
"0.62299347",
"0.6217405",
"0.6208615",
"0.62038463",
"0.62024206",
"0.62017494",
"0.6184743",
"0.61832535",
"0.6182318",
"0.6182234",
"0.6180299",
"0.61630625",
"0.6157437",
"0.61468047",
"0.61398953",
"0.6129432",
"0.61196536",
"0.61022675",
"0.609567",
"0.60920125",
"0.60812795",
"0.6065616",
"0.6063651",
"0.604449",
"0.60339636",
"0.60336244",
"0.60332936",
"0.6030111",
"0.60286283",
"0.6026833",
"0.60246223",
"0.60174",
"0.60092103",
"0.60006464",
"0.59996986",
"0.5994831",
"0.5990718",
"0.5984324",
"0.5981122",
"0.5977215",
"0.59760094",
"0.59748745",
"0.5974132",
"0.5963811",
"0.59588444",
"0.5958272",
"0.59362763",
"0.5932356",
"0.5926842",
"0.5925558",
"0.5924537",
"0.5921522",
"0.5919845",
"0.59138787",
"0.5904187",
"0.5897165",
"0.5895525"
] | 0.0 | -1 |
/ Used by index provider to create/update/delete index items. Note: indexProviderId should never appear in the method parameters, since the IndexProvider already holds a indexProviderId when created. Example: IndexService: "component_.index_service.indexer" AppStore: "component.appstore.indexer" ConfigRegisry: "component.configregistry.indexer" FileSystem: "component.filesystem.indexer" | public interface IndexProviderClient extends IndexServiceClient {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SingleElasticIndexCsdlEdmProvider(MappingMetaDataProvider metaDataProvider,\r\n String index) {\r\n super(metaDataProvider);\r\n this.index = index;\r\n }",
"@Override\n public void updateItemSearchIndex() {\n try {\n // all item IDs that don't have a search index yet\n int[] allMissingIds = mDatabaseAccess.itemsDAO().selectMissingSearchIndexIds();\n // Selects the item to the id, extract all parts of the item name to create the\n // search index (all ItemSearchEntity's) and insert them into the database\n for (int missingId : allMissingIds) {\n try {\n ItemEntity item = mDatabaseAccess.itemsDAO().selectItem(missingId);\n List<ItemSearchEntity> searchEntities = createItemSearchIndex(item);\n mDatabaseAccess.itemsDAO().insertItemSearchParts(searchEntities);\n } catch (Exception ex) {\n Log.e(TAG, \"An error occurred trying to create the search index to the id\" +\n missingId, ex);\n }\n }\n } catch (Exception ex) {\n Log.e(TAG, \"A general failure has occurred while trying to load and process all \" +\n \"item IDs to generate a search index\", ex);\n }\n }",
"void addIndexForRepository(long repositoryId);",
"InstAssignIndex createInstAssignIndex();",
"public abstract void updateIndex();",
"public interface IndexRegistry\n{\n void registerIndex(Index index);\n void unregisterIndex(Index index);\n\n Index getIndex(IndexMetadata indexMetadata);\n Collection<Index> listIndexes();\n}",
"private void indexItem(IndexDocument indexDoc) {\n if(bDebug) System.out.println(\"\\n*** document to index - \" + indexDoc);\n Indexer indexer=null;\n try {\n indexer=new Indexer(PetstoreConstants.PETSTORE_INDEX_DIRECTORY, false);\n PetstoreUtil.getLogger().log(Level.FINE, \"Adding document to index: \" + indexDoc.toString());\n indexer.addDocument(indexDoc);\n } catch (Exception e) {\n PetstoreUtil.getLogger().log(Level.WARNING, \"index.exception\", e);\n e.printStackTrace();\n } finally {\n try {\n // must close file or will not be able to reindex\n if(indexer != null) {\n indexer.close();\n }\n } catch (Exception ee) {\n ee.printStackTrace();\n }\n }\n }",
"public interface IndexBuilder {\n\n /**\n * Rebuilds the index only when the existing index is not populated.\n */\n void rebuildIfNecessary();\n\n}",
"public void onIndexUpdate();",
"Update withIdProvider(String idProvider);",
"public void createIndex(Configuration configuration){\n }",
"public interface IExchangeDataIndexer {\n\t/**\n\t * Get the exchange indexed by this indexer.\n\t * \n\t * @return {@link Exchange}\n\t */\n\tpublic Exchange getExchange();\n\t\n\t/**\n\t * Get the list of indexes managed by this indexer.\n\t * \n\t * @return The list of names of indexes managed by this indexer.\n\t */\n\tpublic List<String> getExchangeIndexes();\n\t\n\t/**\n\t * Updates the list of stocks in this index, by fetching latest data from the source. \n\t * \n\t * @return Updated list of the stocks.\n\t */\n\tList<MarketData> getMarketDataItems(String index);\n\t\n\t/**\n\t * Synchronizes the recently fetched stock data(of a single index) to the data store.\n\t * \n\t * @param exchangeCode Code for this exchange.\n\t * @param items Recently fetched stock data.\n\t */\n\tpublic void syncToDataStore(String exchangeCode, Collection<MarketData> items);\n}",
"public interface ElasticSearchClientService {\n\n public void add(TodoItem todoItem);\n\n public String search(String searchString);\n\n public void update(String id, TodoItem todoItem);\n\n public void delete(String id);\n\n}",
"public interface IndexDocsInES {\n\n void indexDocs(Client client, String index_name, String type_name, List<Pair> docs);\n}",
"public interface Index {\n\t\n\tvoid index(AddOnInfoAndVersions infoAndVersions) throws Exception;\n\t\n\tCollection<AddOnInfoSummary> search(AddOnType type, String query) throws Exception;\n\t\n\tCollection<AddOnInfoAndVersions> getAllByType(AddOnType type) throws Exception;\n\t\n\tCollection<AddOnInfoAndVersions> getByTag(String tag) throws Exception;\n\t\n\tAddOnInfoAndVersions getByUid(String uid) throws Exception;\n}",
"@ZenCodeType.Method\n @ZenCodeType.Operator(ZenCodeType.OperatorType.INDEXSET)\n default void put(String index, @ZenCodeType.Nullable IData value) {\n \n notSupportedOperator(OperatorType.INDEXSET);\n }",
"public interface IIndexerDAO {\n\t\n\t/**\n\t * Inizializzazione dell'indicizzatore.\n\t * @param dir La cartella locale contenitore dei dati persistenti.\n\t * @throws ApsSystemException In caso di errori.\n\t */\n\tpublic void init(File dir) throws ApsSystemException;\n\t\n\t/**\n\t * Aggiunge un contenuto nel db del motore di ricerca.\n * @param entity Il contenuto da aggiungere.\n\t * @throws ApsSystemException In caso di errori.\n\t */\n\tpublic void add(IApsEntity entity) throws ApsSystemException;\n\t\n\t/**\n * Cancella un documento indicizzato.\n * @param name Il nome del campo Field da utilizzare per recupero del documento.\n * @param value La chiave mediante il quale è stato indicizzato il documento.\n * @throws ApsSystemException In caso di errori.\n */\n public void delete(String name, String value) throws ApsSystemException;\n \n public void close();\n\t\n\tpublic void setLangManager(ILangManager langManager);\n \n\tpublic static final String FIELD_PREFIX = \"entity:\"; \n public static final String CONTENT_ID_FIELD_NAME = FIELD_PREFIX + \"id\";\n public static final String CONTENT_TYPE_FIELD_NAME = FIELD_PREFIX + \"type\";\n public static final String CONTENT_GROUP_FIELD_NAME = FIELD_PREFIX + \"group\";\n public static final String CONTENT_CATEGORY_FIELD_NAME = FIELD_PREFIX + \"category\";\n\tpublic static final String CONTENT_CATEGORY_SEPARATOR = \"/\";\n\tpublic static final String ATTACHMENT_FIELD_SUFFIX = \"_attachment\";\n\t\n}",
"public interface IndexService {\n @Async\n public void indexAll(String fileName);\n\n public void deleteDoc(String accession) throws Exception;\n\n public void clearIndex(boolean commit) throws IOException;\n\n public void copySourceFile(String jsonFileName) throws IOException;\n\n}",
"public void afterIndexCreated(IndexService indexService) {\n\n }",
"public void testCreIdx(){\r\n\t \r\n\t String dataDir = \"C:\\\\study\\\\Lucene\\\\Data\";\r\n\t String idxDir = \"C:\\\\study\\\\Lucene\\\\Index\";\r\n\t \r\n\t LuceneUtils.delAll(idxDir);\r\n\t \r\n\t CreateIndex ci = new CreateIndex();\r\n\t \r\n\t ci.Indexer(new File(idxDir), new File(dataDir));\r\n\t \r\n\t\t\r\n\t}",
"String createIndex() {\n\t\tboolean res = indexExists();\n\t\t@SuppressWarnings(\"unused\")\n\t\tint resCode;\n\t\tif (!res) {\n\t\t\tresCode = doHttpOperation(esIndexUrl, HTTP_PUT, null);\n\t\t}\n\t\treturn lastResponse;\n\t}",
"IndexNameReference createIndexNameReference();",
"boolean createIndex(String indexName);",
"private void syncIndex(FundamentalData fd) throws Exception {\n\n List<MarketIndex> indexes = marketIndexService.findBySymbol(fd.getSymbol());\n if(indexes.size()>1){\n throw new Exception(\"Multiple instances (\"+indexes.size()+\") of symbol \"+fd.getSymbol()+\" present in the database.\");\n }\n\n MarketIndex index;\n if(indexes.size()==0){ // does not exist in db\n index=new MarketIndex();\n index.setSymbol(fd.getSymbol());\n index.setName(fd.getName());\n index.setCategory(fd.getType().getCode());\n\n }else{ // index exists in db\n index = indexes.get(0);\n if(fd.getName()!=null){\n index.setName(fd.getName());\n }\n if(fd.getType()!=null){\n index.setCategory(fd.getType().getCode());\n }\n\n }\n\n updateIcon(index);\n marketIndexService.update(index);\n\n }",
"public interface ILuceneIndexDAO extends IStatefulIndexerSession {\n // ===================================================================\n // The domain of indexing creates a separation between\n // readers and writers. In lucene, these are searchers\n // and writers. This DAO creates the more familiar DAO-ish interface\n // for developers to use and attempts to hide the details of\n // the searcher and write.\n // Calls are stateless meaning calling a find after a save does\n // not guarantee data will be reflected for the instance of the DAO\n // ===================================================================\n\n /**\n * Updates a document by first deleting the document(s) containing a term and then adding the new document. A Term is created by termFieldName, termFieldValue.\n *\n * @param termFieldName - Field name of the index.\n * @param termFieldValue - Field value of the index.\n * @param document - Lucene document to be updated.\n * @return - True for successful addition.\n */\n boolean saveDocument(String termFieldName, String termFieldValue, Document document);\n\n /**\n * Generates a BooleanQuery from the given fields Map and uses it to delete the documents matching in the IndexWriter.\n *\n * @param fields - A Map data structure containing a field(Key) and text(value) pair.\n * @return - True for successful deletion.\n */\n boolean deleteDocuments(Map<String, String> fields);\n\n /**\n * Find the documents in the IndexSearcher matching the Terms generated from fields.\n *\n * @param fields - A Map data structure contains the field(Key) and text(value).\n * @return - Collection of Documents obtained from the search.\n */\n Set<Document> findDocuments(Map<String, String> fields);\n\n /**\n * Find the documents in the IndexSearcher matching the Terms generated from fields. Offset is the starting position for the search and numberOfResults\n * is the length from offset position.\n *\n * @param fields - A Map data structure containing a field(Key) and text(value) pair.\n * @param offset - Starting position of the search.\n * @param numberOfResults - Number of documents to be searched from an offset position.\n * @return - Collection of Documents obtained from the search.\n */\n Set<Document> findDocuments(Map<String, String> fields, int offset, int numberOfResults);\n\n /**\n * Return the count of the documents present in the IndexSearcher.\n *\n * @return - Integer representing the count of documents.\n */\n int getDocumentCount();\n\n}",
"public <K> IRepositoryIndex<K, V> configureIndex(\n\t\tshort index,\n\t\tboolean mutable,\n\t\tFunction<K, V> defaultSupplier,\n\t\tFunction<V, K> getKeyFromValue, \n\t\tFunction <K, byte[]> getKeyBytesFromKey\n\t) throws Exception;",
"public interface FieldIndex<T> extends GenericIndex<T> \r\n{ \r\n /**\r\n * Put new object in the index. \r\n * @param obj object to be inserted in index. Object should contain indexed field. \r\n * Object can be not yet peristent, in this case\r\n * its forced to become persistent by assigning OID to it.\r\n * @return <code>true</code> if object is successfully inserted in the index, \r\n * <code>false</code> if index was declared as unique and there is already object with such value\r\n * of the key in the index. \r\n */\r\n public boolean put(T obj);\r\n\r\n /**\r\n * Associate new object with the key specified by object field value. \r\n * If there is already object with such key in the index, \r\n * then it will be removed from the index and new value associated with this key.\r\n * @param obj object to be inserted in index. Object should contain indexed field. \r\n * Object can be not yet peristent, in this case\r\n * its forced to become persistent by assigning OID to it.\r\n * @return object previously associated with this key, <code>null</code> if there was no such object\r\n */\r\n public T set(T obj);\r\n\r\n /**\r\n * Assign to the integer indexed field unique autoicremented value and \r\n * insert object in the index. \r\n * @param obj object to be inserted in index. Object should contain indexed field\r\n * of integer (<code>int</code> or <code>long</code>) type.\r\n * This field is assigned unique value (which will not be reused while \r\n * this index exists) and object is marked as modified.\r\n * Object can be not yet peristent, in this case\r\n * its forced to become persistent by assigning OID to it.\r\n * @exception StorageError(StorageError.INCOMPATIBLE_KEY_TYPE) when indexed field\r\n * has type other than <code>int</code> or <code>long</code>\r\n */\r\n public void append(T obj);\r\n\r\n /**\r\n * Remove object with specified key from the unique index\r\n * @param key value of removed key\r\n * @return removed object\r\n * @exception StorageError(StorageError.KEY_NOT_FOUND) exception if there is no such key in the index,\r\n * or StorageError(StorageError.KEY_NOT_UNIQUE) if index is not unique.\r\n */\r\n public T remove(Key key);\r\n\r\n /**\r\n * Remove object with specified key from the unique index\r\n * @param key value of removed key\r\n * @return removed object\r\n * @exception StorageError(StorageError.KEY_NOT_FOUND) exception if there is no such key in the index,\r\n * or StorageError(StorageError.KEY_NOT_UNIQUE) if index is not unique.\r\n */\r\n public T removeKey(Object key);\r\n\r\n /**\r\n * Check if index contains specified object instance.\r\n * @param obj object to be searched in the index. Object should contain indexed field. \r\n * @return <code>true</code> if object is present in the index, <code>false</code> otherwise\r\n */\r\n public boolean containsObject(T obj);\r\n\r\n /**\r\n * Locate objects with the same value of the key as specified object\r\n * @param obj object specifying search key value\r\n * @return selection iterator\r\n */\r\n public IterableIterator<T> queryByExample(T obj);\r\n\r\n /**\r\n * Get class obejct objects which can be inserted in this index\r\n * @return class specified in Storage.createFielIndex method\r\n */\r\n public Class getIndexedClass();\r\n\r\n /**\r\n * Get fields used as a key\r\n * @return array of index key fields\r\n */\r\n public Field[] getKeyFields();\r\n\r\n /**\r\n * Select members of the collection using search predicate\r\n * This iterator doesn't support remove() method.\r\n * To make it possible to update, remove or add members to the index \r\n * during iteration it is necessary to set \"perst.concurrent.iterator\"\r\n * property (by default it is not supported because it cause extra overhead during iteration)\r\n * @param predicate JSQL condition\r\n * @return iterator through members of the collection matching search condition\r\n */\r\n public IterableIterator<T> select(String predicate);\r\n\r\n /**\r\n * Check if field index is case insensitive\r\n * @return true if index ignore case of string keys\r\n */\r\n boolean isCaseInsensitive(); \r\n}",
"public void setIndexObjectFactory(BLIndexObjectFactory factory) {\n this.indexObjectFactory = factory;\n }",
"public <T> String add(Client client, T sourceObject, String indexName, String indexType, String indexId) {\n\n logger.debug(\"Indexing the object : \" + sourceObject.getClass().getName() + \" with id \" + indexId);\n\n String jsonSource = JsonObj.getJsonFromObject(sourceObject);\n\n IndexResponse indexResponse = client.prepareIndex(indexName, indexType, indexId)\n .setRefresh(true)\n .setSource(jsonSource)\n .execute()\n .actionGet();\n\n logger.debug(\"Object indexed under \" + indexName + \".\" + indexType + \" as id \" + indexResponse.getId());\n\n\n return indexResponse.getId();\n }",
"public interface IndexListener {\n\t/**\n\t * Index has been reset.\n\t */\n\tvoid indexReset();\n\n\t/**\n\t * Item has been added to the index.\n\t *\n\t * @param key Object key.\n\t * @param o Object o.\n\t */\n\tvoid itemAddedToIndex(Object key, Object o);\n}",
"public void createIndex() throws IOException {\n\t\tindexWriter.commit();\n\t\ttaxoWriter.commit();\n\n\t\t// categories\n\t\tfor (Article.Facets f : Article.Facets.values()) {\n\t\t\ttaxoWriter.addCategory(new CategoryPath(f.toString()));\n\t\t}\n\t\ttaxoWriter.commit();\n\n\t\tfinal Iterable<Article> articles = articleRepository.findAll();\n\t\tint c = 0;\n\t\tfor (Article article : articles) {\n\t\t\taddArticle(indexWriter, taxoWriter, article);\n\t\t\tc++;\n\t\t}\n\t\t// commit\n\t\ttaxoWriter.commit();\n\t\tindexWriter.commit();\n\n\t\ttaxoWriter.close();\n\t\tindexWriter.close();\n\n\t\ttaxoDirectory.close();\n\t\tindexDirectory.close();\n\t\tLOGGER.debug(\"{} articles indexed\", c);\n\t}",
"public static IndexExpression makeIndex(Expression instance, PropertyInfo indexer, Iterable<Expression> arguments) { throw Extensions.todo(); }",
"public interface IndexChangeListener\n\t{\n\t\t/** Index was updated with files or files were removed */\n\t\tpublic void onIndexUpdate();\n\n\t\t/** Index was reset - created or deleted */\n\t\tpublic void onIndexReset();\n\t}",
"public interface IIndexBuilder {\n\n public IIndex getIndex( Class<?> searchable ) throws BuilderException;\n\n public IFieldVisitor getFieldVisitor();\n\n public void setFieldVisitor( IFieldVisitor visitor );\n\n}",
"@Test\n public void testIndexMaintenanceWithIndexOnMethodEntrySet() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"entries.value.getID\",\n SEPARATOR + \"portfolio.entrySet() entries\");\n CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForEntries(ri);\n }",
"boolean isNewIndex();",
"interface CoordinateIndexUpdater {\n void updateIndex();\n }",
"private IndexerModelEvent refreshIndex(final String indexName) throws InterruptedException, KeeperException {\n try {\n IndexDefinitionImpl index = loadIndex(indexName);\n index.makeImmutable();\n final boolean isNew = !indexes.containsKey(indexName);\n indexes.put(indexName, index);\n \n return new IndexerModelEvent(isNew ? IndexerModelEventType.INDEX_ADDED : IndexerModelEventType.INDEX_UPDATED, indexName);\n \n } catch (IndexNotFoundException e) {\n indexes.remove(indexName);\n \n return new IndexerModelEvent(IndexerModelEventType.INDEX_REMOVED, indexName);\n }\n }",
"public interface IndexMessageService {\n\n /**\n * Sends cluster message to inform nodes that subversion index\n * needs to be removed for a repository with given id\n *\n * @param repositoryId\n */\n void removeIndexForRepository(long repositoryId);\n\n /**\n * Sends cluster message to inform nodes that subversion index\n * needs to be created for a repository with given id\n *\n * @param repositoryId\n */\n void addIndexForRepository(long repositoryId);\n\n /**\n * Registers listener that handles cluster messages related to indexing\n */\n void registerListeners();\n\n /**\n * Unregisters listener that handles cluster messages related to indexing\n */\n void unregisterListeners();\n}",
"public interface SupplierIndexService {\n\n /**\n * 供应商全量脚本\n */\n @Export\n Response<Boolean> fullDump();\n\n /**\n * 供应商增量脚本\n * @param interval 时间间隔,单位分钟,一般为15分钟\n */\n @Export(paramNames = {\"interval\"})\n Response<Boolean> deltaDump(int interval);\n\n /**\n *\n * @param ids 供应商id列表\n * @param status 供应商状态\n */\n Response<Boolean> realTimeIndex(List<Long> ids, User.SearchStatus status);\n}",
"protected synchronized void updateIndex(DirectoryManagerIndex newIndex) {\n \n // Sanity check.\n if ((newIndex == null) && (index == null))\n throw new DirectoryManagerConfigurationException(\"Index not initialized but file \" + configuration.getIndexFilename() + \" still marked as outdated\");\n \n // Update existing index.\n index = newIndex;\n \n }",
"public <T> String edit(Client client, T sourceObject, String indexName, String indexType, String indexId) {\n\n\n logger.debug(\"Editing the indexed object : \" + sourceObject.getClass().getName() + \" with id \" + indexId);\n\n String jsonSource = JsonObj.getJsonFromObject(sourceObject);\n\n IndexResponse indexResponse = client.prepareIndex(indexName, indexType, indexId)\n .setRefresh(true)\n .setSource(jsonSource)\n .execute()\n .actionGet();\n\n logger.debug(\"Object re-indexed under \" + indexName + \".\" + indexType + \" as id \" + indexResponse.getId());\n\n return indexResponse.getId();\n }",
"@Ignore\n @Test\n public void testCreateIndex() {\n System.out.println(\"createIndex\");\n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityManager em=Util.getEntityManagerFactory(100).createEntityManager();\n EntityManager platformEm = Util.getPlatformEntityManagerFactory().createEntityManager();\n \n Client client = ESUtil.getClient(em,platformEm,1,false);\n \n RuntimeContext.dataobjectTypes = Util.getDataobjectTypes();\n String indexName = \"test000000\";\n try {\n ESUtil.createIndex(platformEm, client, indexName, true);\n }\n catch(Exception e)\n {\n \n }\n \n\n }",
"public void addIndex() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"index\",\n null,\n childrenNames());\n }",
"private Reindex() {}",
"private Reindex() {}",
"indexSet createindexSet();",
"@Override\n @Nullable\n public IndexService indexService(Index index) {\n return indices.get(index.getUUID());\n }",
"public interface Indexed {\n\n /**\n * index keyword and resource\n * @param resourceId keyword KAD id\n * @param entry published entry with keyword information\n * @param lastActivityTime current time from external system\n * @return percent of taken place in storage\n */\n int addKeyword(final KadId resourceId, final KadSearchEntry entry, long lastActivityTime);\n\n /**\n *\n * @param resourceId file KAD id\n * @param entry published entry with source information\n * @return true if source was indexed\n */\n int addSource(final KadId resourceId, final KadSearchEntry entry, long lastActivityTime);\n}",
"void itemAddedToIndex(Object key, Object o);",
"IndexCreated createIndex(String name, Index index) throws ElasticException;",
"@Test\n @Ignore\n public void testDelete_Index() throws Exception {\n System.out.println(\"delete\");\n Index entity = TestUtils.getTestIndex();\n Identifier identifier = entity.getId();\n instance.create(entity);\n assertTrue(instance.exists(identifier));\n instance.delete(entity);\n assertFalse(instance.exists(identifier));\n }",
"@Override\n public void setupIndex() {\n List lst = DBClient.getList(\"SELECT a FROM AppMenu a WHERE a.moduleName='MyBranchMemberExt'\");\n if (lst!=null && !lst.isEmpty()) {\n return;\n }\n AppMenu.createAppMenuObj(\"MyBranchMemberExt\", \"Main\", \"Branch Member\", 110).save();\n AppMenu.createAppMenuObj(\"MyCenterMemberExt\", \"Main\", \"Center Member\", 120).save();\n AppMenu.createAppMenuObj(\"SearchAllMembersOnlyExt\", \"Main\", \"Search Member\", 130).save();\n AppMenu.createAppMenuObj(\"ReferenceForm\", \"Reference\", \"Reference\", 200).save();\n runUniqueIndex(8, \"firstName\", \"lastName\");\n }",
"@Test\n public void testIndexMaintenanceWithIndexOnMethodKeys() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"ks.toString\",\n SEPARATOR + \"portfolio.keys() ks\");\n CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForKeys(ri);\n }",
"@Test\n public void testIndexMaintenanceWithIndexOnMethodKeySet() throws Exception {\n Index i1 =\n qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"ks.toString\",\n SEPARATOR + \"portfolio.keySet() ks\");\n CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForKeys(ri);\n }",
"public createIndex_args(createIndex_args other) {\n }",
"public void index(List<Entity> entities) {\n\t\t\n\t}",
"public void createIndexOnProcessName() throws ServiceFailureException;",
"private void updateIndex() throws IOException {\n // maintain the document store (corpus) - if there is one\n if (currentMemoryIndex.containsPart(\"corpus\")) {\n // get all corpora + shove into document store\n ArrayList<DocumentReader> readers = new ArrayList<>();\n readers.add((DocumentReader) currentMemoryIndex.getIndexPart(\"corpus\"));\n for (String path : geometricParts.getAllShards().getBinPaths()) {\n String corpus = path + File.separator + \"corpus\";\n readers.add(new CorpusReader(corpus));\n }\n }\n // finally write new checkpointing data (checkpoints the disk indexes)\n Parameters checkpoint = createCheckpoint();\n this.checkpointer.saveCheckpoint(checkpoint);\n }",
"private IndexOperations getIndexOperations() {\n return elasticsearchOperations.indexOps(itemClazz);\n }",
"public synchronized void recreateIndex()\n throws InterruptedException, CancellationException, ExecutionException, IOException, IndexServiceException {\n // Clear index first\n clear();\n recreateService(IndexRecreateObject.Service.Groups);\n recreateService(IndexRecreateObject.Service.Acl);\n recreateService(IndexRecreateObject.Service.Themes);\n recreateService(IndexRecreateObject.Service.Series);\n recreateService(IndexRecreateObject.Service.Scheduler);\n recreateService(IndexRecreateObject.Service.Workflow);\n recreateService(IndexRecreateObject.Service.AssetManager);\n recreateService(IndexRecreateObject.Service.Comments);\n }",
"java.lang.String getDeployedIndexId();",
"public IndexAlreadyExistsException(Index index) {\n\t\tsuper(index, \"Already exists\");\n\t}",
"@Override\n @Secured(SecurityRoles.ADMINISTRATOR)\n public void reindex() {\n revisionDao.deleteAll();\n // OK, launches a new indexation\n indexFromLatest();\n }",
"public void setIndex(int index) { this.index = index; }",
"@Test\n public void testCreateIndexMapping() throws Exception {\n String json = EsJsonUtils.generateItemMapping();\n System.out.println(json);\n elasticSearchDao.createIndexMapping(TENANT_ID+Constants.INDEX_SPLIT+ Constants.ITEM,json);\n }",
"public synchronized int resize(int newBytesPerId, int newBytesPerType, int newBytesPerPath)\n throws IOException {\n if (this.bytesPerId > newBytesPerId && this.entries > 0)\n throw new IllegalStateException(\"Cannot reduce the number of bytes per id when there are entries in the index\");\n if (this.bytesPerType > newBytesPerType && this.entries > 0)\n throw new IllegalStateException(\"Cannot reduce the number of bytes per type when there are entries in the index\");\n if (this.bytesPerPath > newBytesPerPath && this.entries > 0)\n throw new IllegalStateException(\"Cannot reduce the number of bytes per path when there are entries in the index\");\n if (this.isReadOnly)\n throw new IllegalStateException(\"This index is readonly\");\n \n int newBytesPerSlot = newBytesPerId + newBytesPerType + newBytesPerPath;\n \n logger.info(\"Resizing uri index to {} ({}) slots and {} ({}) bytes per entry\", new Object[] { slots, this.slots, newBytesPerSlot, this.bytesPerSlot });\n \n String fileName = FilenameUtils.getBaseName(idxFile.getName());\n String fileExtension = FilenameUtils.getExtension(idxFile.getName());\n String idxFilenameNew = fileName + \"_resized.\" + fileExtension;\n File idxNewFile = new File(idxFile.getParentFile(), idxFilenameNew);\n long time = System.currentTimeMillis();\n \n logger.debug(\"Creating resized index at \" + idxNewFile);\n \n // Create the new index\n RandomAccessFile idxNew = null;\n try {\n idxNew = new RandomAccessFile(idxNewFile, \"rwd\");\n } catch (FileNotFoundException e) {\n throw new IllegalArgumentException(\"Index file \" + idxNewFile + \" cannot be created: \" + e.getMessage(), e);\n }\n \n // Write header\n idxNew.seek(IDX_START_OF_HEADER);\n idxNew.writeInt(indexVersion);\n idxNew.writeInt(newBytesPerId);\n idxNew.writeInt(newBytesPerType);\n idxNew.writeInt(newBytesPerPath);\n idxNew.writeLong(slots);\n idxNew.writeLong(entries);\n \n // Position to read the whole content\n idx.seek(IDX_START_OF_CONTENT);\n \n // Write entries\n for (int i = 0; i < slots; i++) {\n byte[] bytes = new byte[newBytesPerSlot];\n if (i < this.slots) {\n idx.read(bytes, 0, this.bytesPerSlot);\n idxNew.write(bytes);\n } else {\n // Write an empty line\n idxNew.write(bytes);\n }\n }\n \n logger.debug(\"Removing old index at \" + idxFile);\n \n // Close and delete the old index\n idx.close();\n if (!idxFile.delete())\n throw new IOException(\"Unable to delete old index file \" + idxFile);\n \n // Close the new index, and move it into the old index' place\n logger.debug(\"Moving resized index into regular position at \" + idxFile);\n idxNew.close();\n if (!idxNewFile.renameTo(idxFile))\n throw new IOException(\"Unable to move new index file to \" + idxFile);\n \n try {\n idx = new RandomAccessFile(idxFile, \"rwd\");\n } catch (FileNotFoundException e) {\n throw new IllegalArgumentException(\"Index file \" + idxNewFile + \" cannot be created: \" + e.getMessage(), e);\n }\n \n this.bytesPerSlot = newBytesPerSlot;\n this.bytesPerId = newBytesPerId;\n this.bytesPerType = newBytesPerType;\n this.bytesPerPath = newBytesPerPath;\n \n time = System.currentTimeMillis() - time;\n logger.info(\"Uri index resized in {}\", ConfigurationUtils.toHumanReadableDuration(time));\n return newBytesPerSlot;\n }",
"@Test\n public void testIndexMaintenanceWithIndexOnMethodValues() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID\",\n SEPARATOR + \"portfolio.values() pf\");\n assertTrue(i1 instanceof CompactRangeIndex);\n Cache cache = CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForValues(ri);\n }",
"public void setItemIndex(int itemIndex) {\n this.itemIndex = itemIndex;\n }",
"protected synchronized void overrideEntityIndex(String entity, int index) { ent_2_i.put(entity,index); }",
"public void createIndex(Index index) {\n Span span = this.tracer.buildSpan(\"Client.CreateIndex\").start();\n try {\n String path = String.format(\"/index/%s\", index.getName());\n String body = index.getOptions().toString();\n ByteArrayEntity data = new ByteArrayEntity(body.getBytes(StandardCharsets.UTF_8));\n clientExecute(\"POST\", path, data, null, \"Error while creating index\");\n } finally {\n span.finish();\n }\n }",
"@Test\n public void testIndexMaintenanceWithIndexOnMethodAsList() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID\",\n SEPARATOR + \"portfolio.asList() pf\");\n CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForValues(ri);\n }",
"protected void onAdd( E entity, int index )\r\n\t{\r\n\t\t\r\n\t}",
"@Test\n public void testIndexMaintenanceWithIndexOnMethodGetEntries() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"entries.value.getID\",\n SEPARATOR + \"portfolio.getEntries() entries\");\n CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForEntries(ri);\n }",
"public interface IIndexer {\n /**\n * Returns the file types the <code>IIndexer</code> handles.\n */\n String[] getFileTypes();\n /**\n * Indexes the given document, adding the document name and the word references \n * to this document to the given <code>IIndex</code>.The caller should use \n * <code>shouldIndex()</code> first to determine whether this indexer handles \n * the given type of file, and only call this method if so. \n */\n void index(IDocument document, IIndexerOutput output) throws java.io.IOException;\n /**\n * Sets the document types the <code>IIndexer</code> handles.\n */\n public void setFileTypes(String[] fileTypes);\n /**\n * Returns whether the <code>IIndexer</code> can index the given document or not.\n */\n public boolean shouldIndex(IDocument document); }",
"public SimpleIndexFactory() {\n\t}",
"@Override\n public void buildIndexes(Properties props)\n {\n Statement statement;\n try\n {\n statement = connection.createStatement();\n \n //Create Indexes\n statement.executeUpdate(\"CREATE INDEX CONFFRIENDSHIP_INVITEEID ON CONFFRIENDSHIP (INVITEEID)\");\n statement.executeUpdate(\"CREATE INDEX CONFFRIENDSHIP_INVITERID ON CONFFRIENDSHIP (INVITERID)\");\n statement.executeUpdate(\"CREATE INDEX PENDFRIENDSHIP_INVITEEID ON PENDFRIENDSHIP (INVITEEID)\");\n statement.executeUpdate(\"CREATE INDEX PENDFRIENDSHIP_INVITERID ON PENDFRIENDSHIP (INVITERID)\");\n statement.executeUpdate(\"CREATE INDEX MANIPULATION_RID ON MANIPULATION (RID)\");\n statement.executeUpdate(\"CREATE INDEX MANIPULATION_CREATORID ON MANIPULATION (CREATORID)\");\n statement.executeUpdate(\"CREATE INDEX RESOURCES_WALLUSERID ON RESOURCES (WALLUSERID)\");\n statement.executeUpdate(\"CREATE INDEX RESOURCE_CREATORID ON RESOURCES (CREATORID)\");\n \n System.out.println(\"Indexes Built\");\n }\n catch (Exception ex)\n {\n Logger.getLogger(WindowsAzureClientInit.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Error in building indexes!\");\n }\n }",
"@Inject\n\tpublic MetaDataCreateIndexService(Settings settings, Environment environment, ThreadPool threadPool,\n\t\t\tClusterService clusterService, IndicesService indicesService, AllocationService allocationService,\n\t\t\tNodeIndexCreatedAction nodeIndexCreatedAction, MetaDataService metaDataService,\n\t\t\t@RiverIndexName String riverIndexName) {\n\t\tsuper(settings);\n\t\tthis.environment = environment;\n\t\tthis.threadPool = threadPool;\n\t\tthis.clusterService = clusterService;\n\t\tthis.indicesService = indicesService;\n\t\tthis.allocationService = allocationService;\n\t\tthis.nodeIndexCreatedAction = nodeIndexCreatedAction;\n\t\tthis.metaDataService = metaDataService;\n\t\tthis.riverIndexName = riverIndexName;\n\t}",
"void commit() throws IndexTransactionException;",
"public void openIndex(String indexPath) throws IOException {\n\n }",
"public boolean createIndex() {\n RestClient client = esrResource.getClient();\n\n try {\n Response r = client.performRequest(\"HEAD\", \"/\" + index);\n\n if (r.getStatusLine().getStatusCode() != 200) {\n client.performRequest(\"PUT\", \"/\" + index);\n\n return true;\n }\n } catch (IOException ioe) {\n getMonitor().error(\"Unable to create index\", ioe);\n }\n\n return false;\n }",
"com.google.firestore.admin.v1beta1.Index getIndex();",
"@ProjectSingleton\npublic interface DeprecatedEntitiesByEntityIndex extends Index {\n\n boolean isDeprecated(@Nonnull OWLEntity entity);\n}",
"interface WithIdProvider {\n /**\n * Specifies the idProvider property: The URL of this trusted identity provider..\n *\n * @param idProvider The URL of this trusted identity provider.\n * @return the next definition stage.\n */\n Update withIdProvider(String idProvider);\n }",
"public void deleteIndex() throws Exception {\n\n\t\tRetryingRunnable runnable = new RetryingRunnable() \n\t\t{\t\n\t\t\tpublic void run() throws Exception \n\t\t\t{\n\t\t\t\tIndexWriter w = createIndexWriter(true); // open for writing and close (make empty)\n\t\t\t\tw.deleteAll();\n\t\t\t\tw.commit();\n\t\t\t\tw.close(true);\n\t\t\t\t\n\t\t\t\tDirectory dir = getIndexDir();\n\t\t\t\tfor(String file: dir.listAll())\n\t\t\t\t{\n\t\t\t\t\tif( dir.fileExists(file) ) // still exits\n\t\t\t\t\t{\n\t\t\t\t\t\tdir.sync(file);\n\t\t\t\t\t\tdir.deleteFile(file);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdir.close();\n\t\t\t}\n\t\t\t\n\t\t\tpublic boolean handleException(Throwable e) \n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t};\n\t\t\n\t\tchangeListener.onIndexReset(); // close searcher because index is deleted\n\t\t\n\t\trunRetryingRunnable(runnable); // delete index with retry\n\t}",
"private synchronized IndexService createIndexService(\n IndexService.IndexCreationContext indexCreationContext,\n IndexMetadata indexMetadata,\n IndicesQueryCache indicesQueryCache,\n IndicesFieldDataCache indicesFieldDataCache,\n List<IndexEventListener> builtInListeners,\n IndexingOperationListener... indexingOperationListeners\n ) throws IOException {\n final IndexSettings idxSettings = new IndexSettings(indexMetadata, settings, indexScopedSettings);\n if (EngineConfig.INDEX_OPTIMIZE_AUTO_GENERATED_IDS.exists(idxSettings.getSettings())) {\n throw new IllegalArgumentException(\n \"Setting [\" + EngineConfig.INDEX_OPTIMIZE_AUTO_GENERATED_IDS.getKey() + \"] was removed in version 7.0.0\"\n );\n }\n // we ignore private settings since they are not registered settings\n indexScopedSettings.validate(indexMetadata.getSettings(), true, true, true);\n logger.debug(\n \"creating Index [{}], shards [{}]/[{}] - reason [{}]\",\n indexMetadata.getIndex(),\n idxSettings.getNumberOfShards(),\n idxSettings.getNumberOfReplicas(),\n indexCreationContext\n );\n\n final IndexModule indexModule = new IndexModule(\n idxSettings,\n analysisRegistry,\n getEngineFactory(idxSettings),\n getEngineConfigFactory(idxSettings),\n directoryFactories,\n () -> allowExpensiveQueries,\n indexNameExpressionResolver,\n recoveryStateFactories\n );\n for (IndexingOperationListener operationListener : indexingOperationListeners) {\n indexModule.addIndexOperationListener(operationListener);\n }\n pluginsService.onIndexModule(indexModule);\n for (IndexEventListener listener : builtInListeners) {\n indexModule.addIndexEventListener(listener);\n }\n return indexModule.newIndexService(\n indexCreationContext,\n nodeEnv,\n xContentRegistry,\n this,\n circuitBreakerService,\n bigArrays,\n threadPool,\n scriptService,\n clusterService,\n client,\n indicesQueryCache,\n mapperRegistry,\n indicesFieldDataCache,\n namedWriteableRegistry,\n this::isIdFieldDataEnabled,\n valuesSourceRegistry,\n remoteDirectoryFactory,\n translogFactorySupplier,\n this::getClusterDefaultRefreshInterval,\n this::getClusterRemoteTranslogBufferInterval\n );\n }",
"private void createProductIndex() {\n\t\tLinkedList<String> ids = new LinkedList<>(productIds.keySet());\n\t\tArrayList<ArrayList<Integer>> vals = new ArrayList<>(productIds.values());\n\t\tint k = 8;\n\t\tKFront kf = new KFront();\n\t\tkf.createKFront(k, ids);\n\t\tfor (int i = 0; i < vals.size(); i++) {\n\t\t\tkf.getTable().get(i).addAll(vals.get(i));\n\t\t}\n\n\t\tProductIndex pIndex = new ProductIndex(k);\n\t\tpIndex.insertData(kf.getTable(), kf.getConcatString());\n\t\tsaveToDir(PRODUCT_INDEX_FILE, pIndex);\n\t}",
"public PSAppIndexedItemIdContext(int type, int index)\n {\n if (!validateType(type))\n throw new IllegalArgumentException(\"invalid type\");\n \n if (!validateIndex(index))\n throw new IllegalArgumentException(\"index is invalid\");\n \n m_type = type;\n m_index = index;\n }",
"private void addIndex(Partition partition, String... attrs) throws Exception {\n for (String attribute : attrs) {\n factory.addIndex(partition, attribute, 100);\n }\n }",
"public interface BoostingIndexer {\r\n\t/**\r\n\t * Add a new {@link Document} to the Index or update an existing one.<br> \r\n\t * When adding a document, its dynamic boosts values must be set. Specifying the values is accomplished by\r\n\t * passing the dynamicBoosts parameter with a Map from the boost index (zero based) to the boost value (a <code>double</code>).\r\n\t * In this map, no index can be larger than the number of available boosts the {@link IndexEngine}'s {@link Scorer} has, minus one (since it is zero based).\r\n\t * The value for any available boost index not specified in the map is defaulted to zero. \r\n\t * \r\n\t * @param docId external (customer) identifier of the document to add\r\n\t * @param document the {@link Document} to add\r\n\t * @param timestampBoost a <code>float</code> representing the time of the document (the younger the document, the larger the boost should be)\r\n\t * @param dynamicBoosts a Map from the boost index (zero based) to the boost value (a <code>double</code>).\r\n\t * @throws {@link IllegalArgumentException} if an invalid index is passed for a boost \r\n\t */\r\n\tpublic void add(String docId, Document document, int timestampBoost, Map<Integer, Double> dynamicBoosts);\r\n\r\n\t/**\r\n\t * Remove a document from the index.\r\n\t * \r\n\t * @param docId external (customer) identifier of the document to remove\r\n\t */\r\n\tpublic void del(String docId);\r\n\t\r\n\t/**\r\n\t * Update the special boost for the timestamp\r\n\t * \r\n\t * @param docId external (customer) identifier of the document\r\n\t * @param timestampBoost a <code>float</code> representing the time of the document (the younger the document, the larger the boost should be)\r\n\t */\r\n\tpublic void updateTimestamp(String docId, int timestampBoost);\r\n\t\r\n\t/**\r\n\t * Update one or more of the dynamic boosts values.\r\n\t * \r\n\t * @param docId external (customer) identifier of the document\r\n\t * @param updatedBoosts a Map from the boost index (zero based) to the boost value (a <code>double</code>). No index can be larger than the available boosts the {@link IndexEngine}'s {@link Scorer} has, minus one (since it is zero based)\r\n\t * @throws {@link IllegalArgumentException} if an invalid index is passed for a boost \r\n\t */\r\n\tpublic void updateBoosts(String docId, Map<Integer, Double> updatedBoosts);\r\n\r\n public void updateCategories(String docId, Map<String, String> categories);\r\n\t/**\r\n\t * Promote a document to be the first result for a specific query.\r\n\t * \r\n\t * @param docId external (customer) identifier of the document\r\n\t * @param query the exact query the document must be promoted to the first result for\r\n\t */\r\n public void promoteResult(String docId, String query);\r\n\r\n /**\r\n * Dumps the current state to disk.\r\n */\r\n public void dump() throws IOException;\r\n\r\n public void addScoreFunction(int functionIndex, String definition) throws Exception;\r\n\r\n public void removeScoreFunction(int functionIndex);\r\n\r\n public Map<Integer,String> listScoreFunctions();\r\n \r\n public Map<String, String> getStats();\r\n\r\n}",
"void delete (int index);",
"public interface ItemService {\n\n /**\n * 导入商品数据到索引库\n * @return\n */\n TaotaoResult importAllItems() throws SolrServerException, IOException;\n}",
"void put(Object indexedKey, Object key);",
"public void add(int index, String value){\n add(value);\n }",
"void setProvider(modelProvidersI IDProvider);",
"private void ensureIndexes() throws Exception {\n LOGGER.info(\"Ensuring all Indexes are created.\");\n\n QueryResult indexResult = bucket.query(\n Query.simple(select(\"indexes.*\").from(\"system:indexes\").where(i(\"keyspace_id\").eq(s(bucket.name()))))\n );\n\n\n List<String> indexesToCreate = new ArrayList<String>();\n indexesToCreate.addAll(Arrays.asList(\n \"def_sourceairport\", \"def_airportname\", \"def_type\", \"def_faa\", \"def_icao\", \"def_city\"\n ));\n\n boolean hasPrimary = false;\n List<String> foundIndexes = new ArrayList<String>();\n for (QueryRow indexRow : indexResult) {\n String name = indexRow.value().getString(\"name\");\n if (name.equals(\"#primary\")) {\n hasPrimary = true;\n } else {\n foundIndexes.add(name);\n }\n }\n indexesToCreate.removeAll(foundIndexes);\n\n if (!hasPrimary) {\n String query = \"CREATE PRIMARY INDEX def_primary ON `\" + bucket.name() + \"` WITH {\\\"defer_build\\\":true}\";\n LOGGER.info(\"Executing index query: {}\", query);\n QueryResult result = bucket.query(Query.simple(query));\n if (result.finalSuccess()) {\n LOGGER.info(\"Successfully created primary index.\");\n } else {\n LOGGER.warn(\"Could not create primary index: {}\", result.errors());\n }\n }\n\n for (String name : indexesToCreate) {\n String query = \"CREATE INDEX \" + name + \" ON `\" + bucket.name() + \"` (\" + name.replace(\"def_\", \"\") + \") \"\n + \"WITH {\\\"defer_build\\\":true}\\\"\";\n LOGGER.info(\"Executing index query: {}\", query);\n QueryResult result = bucket.query(Query.simple(query));\n if (result.finalSuccess()) {\n LOGGER.info(\"Successfully created index with name {}.\", name);\n } else {\n LOGGER.warn(\"Could not create index {}: {}\", name, result.errors());\n }\n }\n\n LOGGER.info(\"Waiting 5 seconds before building the indexes.\");\n\n Thread.sleep(5000);\n\n StringBuilder indexes = new StringBuilder();\n boolean first = true;\n for (String name : indexesToCreate) {\n if (first) {\n first = false;\n } else {\n indexes.append(\",\");\n }\n indexes.append(name);\n }\n\n if (!hasPrimary) {\n indexes.append(\",\").append(\"def_primary\");\n }\n\n String query = \"BUILD INDEX ON `\" + bucket.name() + \"` (\" + indexes.toString() + \")\";\n LOGGER.info(\"Executing index query: {}\", query);\n QueryResult result = bucket.query(Query.simple(query));\n if (result.finalSuccess()) {\n LOGGER.info(\"Successfully executed build index query.\");\n } else {\n LOGGER.warn(\"Could not execute build index query {}.\", result.errors());\n }\n }",
"@Test\n public void testIndexMaintenanceOnPutAll() throws Exception {\n IndexManager.TEST_RANGEINDEX_ONLY = true;\n Cache cache = CacheUtils.getCache();\n qs = cache.getQueryService();\n region = CacheUtils.createRegion(\"portfolio1\", null);\n region.put(\"1\", new Portfolio(1));\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"posvals.secId\",\n SEPARATOR + \"portfolio1 pf, pf.positions.values posvals \");\n Map data = new HashMap();\n for (int i = 1; i < 11; ++i) {\n data.put(\"\" + i, new Portfolio(i + 2));\n }\n\n region.putAll(data);\n }",
"public void add(int index, String value){\n\tadd(value);\n }",
"public void addIndex(String collectionName, DBObject index){\n DBCollection collection =this.getDBCollection(collectionName);\n collection.createIndex(index);\n }",
"public DeleteCommand(int index) {\n this.index = index;\n }"
] | [
"0.587279",
"0.57256347",
"0.56549644",
"0.56319714",
"0.56226796",
"0.55592453",
"0.55424637",
"0.5491434",
"0.5432886",
"0.5390065",
"0.5385413",
"0.53701717",
"0.5331443",
"0.52743477",
"0.52602994",
"0.52414995",
"0.52368355",
"0.520977",
"0.52080125",
"0.51957005",
"0.5180243",
"0.5164797",
"0.5164316",
"0.514673",
"0.5145993",
"0.5145162",
"0.51183784",
"0.51128554",
"0.50730395",
"0.50656974",
"0.5055908",
"0.50452185",
"0.5021995",
"0.5011111",
"0.501002",
"0.50063103",
"0.49844527",
"0.49809486",
"0.49660328",
"0.49655226",
"0.4956395",
"0.49542218",
"0.49443045",
"0.49406755",
"0.49375716",
"0.49375716",
"0.49299672",
"0.49179986",
"0.49081227",
"0.49055967",
"0.489744",
"0.48725462",
"0.4871532",
"0.487057",
"0.486545",
"0.48501062",
"0.48376706",
"0.48278463",
"0.4827515",
"0.48252186",
"0.48211244",
"0.48153162",
"0.48130345",
"0.481039",
"0.4803022",
"0.47924918",
"0.47920007",
"0.47883084",
"0.47805232",
"0.47797248",
"0.47770244",
"0.47731856",
"0.476467",
"0.47519556",
"0.47453183",
"0.47452602",
"0.47319132",
"0.4726812",
"0.47247478",
"0.47242078",
"0.47119954",
"0.47030163",
"0.47009572",
"0.46947274",
"0.4690373",
"0.4684579",
"0.46731186",
"0.46713907",
"0.46691763",
"0.46616682",
"0.46534294",
"0.46457636",
"0.46428958",
"0.4635929",
"0.4631835",
"0.46301982",
"0.46250367",
"0.46231622",
"0.4600885",
"0.45996085"
] | 0.5236582 | 17 |
TODO Autogenerated method stub | public static void main(String[] args) {
int number = 1;
printNumbers(number);
} | {
"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 |
check if index on full array within stack boundries stack can wrap around to start of array. | public boolean isWithinStackCapacity(int index)
{
// if outside of bound of array, return false
if(index < 0 || index >= values.length)
{
return false;
}
// if index wraps around adjust it.
int contiguousIndex = index < start ? index + values.length : index;
int end = start + capacity;
return start <= contiguousIndex && contiguousIndex < end;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isWithinStack(int index, int total_size){\n\t\tif(start <= index && index < start + capacity){ //index在start和start + capacity之间\n\t\t\t//no wrapping, or \"head\" (right size) of wrapping case\n\t\t\treturn true;\n\t\t} else if(start + capacity > total_size && index < (start + capacity)%total_size){ //start+capacity大于总长度,并且index < ..\n\t\t\t//tail of wrapping case\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"private boolean checkFull() {\n\t\treturn this.array.length - 1 == this.lastNotNull();\n\t}",
"public boolean isFull(){\n return this.top==this.maxLength-1;\n }",
"@Override\r\n\tpublic boolean isFull() {\r\n\t\tif(topIndex == stack.length -1) {\r\n\t\t\treturn true;\r\n\t\t}else {\r\n\t\t\treturn false;\r\n\t\t}\t\r\n\t}",
"public static boolean canJump(int[] nums){\n int mostLeftCanReachIndex = nums.length-1;\n for(int i = nums.length-2; i >= 0; i--){\n // can we reach mostLeftCanReachIndex from current index i.e. are there enough jumps available\n if(i + nums[i] >= mostLeftCanReachIndex){\n mostLeftCanReachIndex = i;\n }\n }\n return mostLeftCanReachIndex==0;\n }",
"public int checkIsEndState() {\n if (higherIndex - lowerIndex <= 1) {\n if (checkIsLeftBound(inputArray, lowerIndex)) {\n return lowerIndex;\n } else if (checkIsRightBound(inputArray, higherIndex)) {\n return higherIndex;\n }\n }\n return -1;\n }",
"public boolean isFull() {\n return (this.top == this.stack.length);\n }",
"public boolean isFull() {\n\t\treturn (rear+1)%total_size == front;\r\n\t}",
"public boolean hasUnderflow() {\r\n\t\t\treturn (data.size() <= 0);\r\n\t\t}",
"public boolean isUnderflow() {\n\t\treturn (dataSize() < Math.ceil(degree / 2.0) - 1);\n\t}",
"private boolean checkIndexBounds(int idx) {\n return (idx >= 0) && (idx <= this.length);\n }",
"private Location[] overrunsTop () {\n Location nextLocation;\n Location nextCenter;\n \n // exact calculation for exact 90 degree heading directions (don't want trig functions\n // handling this)\n if (getHeading() == THREE_QUARTER_TURN_DEGREES) {\n nextLocation = new Location(getX(), 0);\n nextCenter = new Location(getX(), myCanvasBounds.getHeight());\n return new Location[] { nextLocation, nextCenter };\n }\n \n double angle = FULL_TURN_DEGREES - getHeading();\n if (getHeading() < THREE_QUARTER_TURN_DEGREES) {\n angle = -(getHeading() - HALF_TURN_DEGREES);\n }\n angle = Math.toRadians(angle);\n nextLocation = new Location(getX() + getY() / Math.tan(angle), 0);\n nextCenter = new Location(getX() + getY() / Math.tan(angle),\n myCanvasBounds.getHeight());\n \n // eliminates race condition - if next location overruns left/right AND top/bottom it checks\n // to see which is overrun first and corrects\n if (nextLocation.getX() > myCanvasBounds.getWidth())\n // right\n return overrunRight();\n else if (nextLocation.getX() < 0) // left\n return overrunLeft();\n \n return new Location[] { nextLocation, nextCenter };\n }",
"public boolean underfull() {\n\t\treturn lastindex < minkeys(); // ptrs number: Math.ceil(degree / 2.0) ~ n\n\t}",
"public boolean isFull(){\n return (top == employeeStack.length);\n }",
"public boolean isFull() {\n if(this.top==(size - 1)) {\n return true;\n }\n return false;\n }",
"public boolean isOverflow() {\n\t\treturn (children.size() >= degree + 1) || (data.size() >= degree);\n\t}",
"public boolean canJump(int[] A) {\n if (A.length <= 1) {\n return true;\n }\n \n int curr = 0;\n int max = 0;\n \n for (int i = 0; i < A.length - 1; i++) {\n //If i is faster than max, that means curr falls into 0, return false.\n if (i > max) return false;\n \n curr = i + A[i];\n max = Math.max(max, curr);\n if (max >= A.length - 1) {\n return true;\n }\n }\n return false;\n }",
"public boolean hasOverflow() {\r\n\t\t\treturn (data.size() > 3);\r\n\t\t}",
"@Override\r\n\tpublic boolean isFull() {\r\n\t\treturn stack.size() == size;\r\n\t}",
"private boolean isElementIndex(final long index) {\r\n\t\treturn index >= 0 && index < size;\r\n\t}",
"boolean validateOffset() {\n\t\t\tint num = entriesByIndex.size() + 1; // assuming 0, plus 1-N)\n\t\t\tfor (int index : entriesByIndex.keySet()) {\n\t\t\t\tif (index > num || index < 0) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}",
"public boolean isFull() {\r\n return placeCounter == dimension * dimension;\r\n }",
"boolean isFull(Stack stack){\n\t\tif(stack.getStackSize() >= 100) return true;\r\n\t\telse return false;\t\r\n\t}",
"private boolean isFullMidwest()\r\n\t{\r\n\t\treturn (midwestElem == maxSize);\r\n\t}",
"@Override\r\n\tpublic boolean isFull() {\r\n\t\tif (this.front == 0 && this.rear == this.size - 1) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (this.front == this.rear + 1) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean isFull() {\n return (tail + 1) % k == front;\n }",
"private static boolean areOverlapping( int a[], int sz, int pos, int len )\n {\n \tfor( int i=0; i<sz; i++ ){\n \t if( areOverlapping( a[i], pos, len ) ){\n \t\treturn true;\n \t }\n \t}\n \treturn false;\n }",
"HRESULT SafeArrayGetLBound(SAFEARRAY psa, UINT nDim, WinDef.LONGByReference bound);",
"boolean isFull()\n\t{\n\t\treturn rear==size-1;\n\t}",
"public boolean isFull() {\n return (e+1)%buf.length == b;\n }",
"private static boolean sliceIsValid(final int[] slice, final int flowOrderLength) {\n int consecutiveZeros = 0;\n for ( int key : slice ) {\n if ( key != 0 ) {\n consecutiveZeros = 0;\n } else {\n consecutiveZeros++;\n if ( consecutiveZeros >= (flowOrderLength - 1) ) {\n return false;\n }\n }\n }\n\n // if here, not found -> valid\n return true;\n }",
"boolean isFull()\n {\n return ((front == 0 && end == size-1) || front == end+1);\n }",
"private static boolean checkHalfway(int[] arr, int searchValue, int begin, int end) {\r\n\t\treturn searchValue < arr[(begin+end+1)/2];\r\n\t}",
"public boolean atPosition() {\n return m_X.getClosedLoopError() < Constants.k_ToleranceX;\n }",
"@Override\r\n\tpublic boolean isFull() {\r\n\t\treturn ((front == 0 && rear == MAX_LENGTH - 1) || rear == front - 1);\r\n\t}",
"public boolean isFull() {\r\n\t\treturn cur_index == size;\r\n\t}",
"public boolean invariantHolds() {\n \t\t// Check that all bits will fit in byte array\n \t\tfinal int arrayLengthAsBits = value.length*8;\n \t\tif (lengthAsBits > arrayLengthAsBits) { return false; }\n \n \t\t// Check consistency of 'lengthAsBits' and 'bitsInLastByte'\n \t\tfinal int partialByteIndex = (lengthAsBits-1)/8;\n \t\tif (bitsInLastByte != (lengthAsBits - (8*partialByteIndex))) {\n \t\t\treturn false;\n \t\t}\n \t\t// Special case for empty bitsets since they will have\n \t\t// 'partialByteIndex'==0, but this isn't a legal index into\n \t\t// the byte array\n \t\tif (value.length==0) { return true; }\n \n \t\t// Check that the last used (possibly partial) byte doesn't\n \t\t// contain any unused bit positions that are set.\n \t\tbyte partialByte = value[partialByteIndex];\n \t\tpartialByte <<= bitsInLastByte; // must be zero after shift\n \n \t\t// Check the remaining completely unused bytes (if any)\n \t\tfor (int i = partialByteIndex+1; i < value.length; ++i) {\n \t\t\tpartialByte |= value[i];\n \t\t}\n \t\treturn (partialByte==0);\n \t}",
"public boolean canShift() {\n\t\treturn marker < getRhs().length;\n\t}",
"private static boolean areOverlapping( int ix0, int ix1, int len )\n {\n if( ix0<ix1 ){\n return ix0+len>ix1;\n }\n else {\n return ix1+len>ix0;\n }\n }",
"private boolean isFullWest()\r\n\t{\r\n\t\treturn (westElem == maxSize);\r\n\t}",
"public boolean outOfBounds()\n {\n if((lastpowerUp.equals(\"BLUE\") || lastpowerUp.equals(\"RAINBOW\")) && powerupTimer > 0)\n {\n return false;\n }\n \n if(head.getA() < 150 || head.getA() >= 1260)\n return true;\n else if(head.getB() <150 || head.getB() >=630)\n return true;\n else \n return false;\n \n \n }",
"private boolean isPositionIndex(final long index) {\r\n\t\treturn index >= 0 && index <= size;\r\n\t}",
"public boolean isFull() {\r\n\t\treturn (rear+1)%maxSize==front;\r\n\t}",
"private boolean outOfBounds(long n) {\n return n < 0 || n >= getSize();\n }",
"public boolean isFull() { return front == (rear + 1) % MAX_QUEUE_SIZE; }",
"boolean isFull() {return pointer==size;}",
"private static boolean arrayAccess_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"arrayAccess_0\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NOT_);\n r = !arrayAccess_0_0(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }",
"private boolean zzRefill() {\r\n\t\treturn zzCurrentPos>=s.offset+s.count;\r\n\t}",
"public boolean isFull() {\n\t\treturn markCount == 9;\n\t}",
"boolean isOverflow() {\r\n\r\n if (values.size() > branchingFactor - 1) {\r\n return true;\r\n }\r\n return false;\r\n }",
"private boolean arrayBounds (int index, int max) {\n\t\treturn (index >= 0 && index < max );\n\t}",
"private boolean rightBoundsReached(float delta) {\n return (textureRegionBounds2.x - (delta * speed)) > Constants.APP_WIDTH;\n }",
"protected boolean advance()\n/* */ {\n/* 66 */ while (++this.m_offset < this.m_array.length) {\n/* 67 */ if (this.m_array[this.m_offset] != null) {\n/* 68 */ return true;\n/* */ }\n/* */ }\n/* 71 */ return false;\n/* */ }",
"boolean isBound();",
"private boolean isOutOfBounds(int index) {\n return index < 0 || index >= this.size();\n }",
"private boolean leftBoundsReached(float delta) {\n return (textureRegionBounds2.x - (delta * speed)) <= 0;\n }",
"private boolean zzRefill() {\n\t\treturn zzCurrentPos>=s.offset+s.count;\n\t}",
"private boolean zzRefill() {\n\t\treturn zzCurrentPos>=s.offset+s.count;\n\t}",
"public Integer checkDown()\r\n\t{\r\n\t\t// array bound\r\n\t\treturn this.Y + 1;\r\n\t}",
"public boolean checkFrameValid() {\n return explosionFrame < explosions.length;\n }",
"private boolean isFull() {\n\t\treturn (size == bq.length);\n\t}",
"private boolean checkOverlap(int row, int col, int length){\n \tif(!inBounds(row,col)){\n \t\treturn false;\n \t}\n \tfor(int i = row; i < row + length; i++ ){\n\t\t\tfor(int j = col; j < col + length; j++){\n\t\t\t\tif(grid[i][col] == 1 || row + length >= 10)\n\t\t\t\t\treturn false;\n\t\t\t\tif(grid[row][j] == 1 || col + length >= 10)\n\t\t\t\t\treturn false;\n\t\t\t}\n \t\t\n \t}\n \treturn true;\n }",
"public boolean hasArray()\r\n/* 122: */ {\r\n/* 123:151 */ return true;\r\n/* 124: */ }",
"public Boolean isDead(int[][] array, int[] current) {\n\t\tif(current[0]==0) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tfor(int j=0; j<array.length; j++) {\n\t\t\t\t\tif(array[i][j]==0) {\n\t\t\t\t\t\tcurrent = null;\n\t\t\t\t\t\tarray = null;\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tfor(int j=0; j<array.length; j++) {\n\t\t\t\t\tif(array[i][j]==0) {\n\t\t\t\t\t\tif(i==0 && j==0) {\n\t\t\t\t\t\t\tif(array[i+1][j]==0 || array[i][j+1]==0) {\n\t\t\t\t\t\t\t\tcurrent = null;\n\t\t\t\t\t\t\t\tarray = null;\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(i==array.length-1 && j==0) {\n\t\t\t\t\t\t\tif(array[i-1][j]==0 || array[i][j+1]==0) {\n\t\t\t\t\t\t\t\tcurrent = null;\n\t\t\t\t\t\t\t\tarray = null;\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(i==0 && j==array.length-1) {\n\t\t\t\t\t\t\tif(array[i+1][j]==0 || array[i][j-1]==0) {\n\t\t\t\t\t\t\t\tcurrent = null;\n\t\t\t\t\t\t\t\tarray = null;\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(i==array.length-1 && j==array.length-1) {\n\t\t\t\t\t\t\tif(array[i-1][j]==0 || array[i][j-1]==0) {\n\t\t\t\t\t\t\t\tcurrent = null;\n\t\t\t\t\t\t\t\tarray = null;\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(i==0) {\n\t\t\t\t\t\t\tif(array[i+1][j]==0 || array[i][j-1]==0 || array[i][j+1]==0) {\n\t\t\t\t\t\t\t\tcurrent = null;\n\t\t\t\t\t\t\t\tarray = null;\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(j==0) {\n\t\t\t\t\t\t\tif(array[i+1][j]==0 || array[i-1][j]==0 || array[i][j+1]==0) {\n\t\t\t\t\t\t\t\tcurrent = null;\n\t\t\t\t\t\t\t\tarray = null;\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(i==array.length-1) {\n\t\t\t\t\t\t\tif(array[i-1][j]==0 || array[i][j-1]==0 || array[i][j+1]==0) {\n\t\t\t\t\t\t\t\tcurrent = null;\n\t\t\t\t\t\t\t\tarray = null;\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(j==array.length-1) {\n\t\t\t\t\t\t\tif(array[i+1][j]==0 || array[i-1][j]==0 || array[i][j-1]==0) {\n\t\t\t\t\t\t\t\tcurrent = null;\n\t\t\t\t\t\t\t\tarray = null;\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(array[i+1][j]==0 || array[i-1][j]==0 || array[i][j-1]==0 || array[i][j+1]==0) {\n\t\t\t\t\t\t\tcurrent = null;\n\t\t\t\t\t\t\tarray = null;\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcurrent = null;\n\t\tarray = null;\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean outOfBounds() {\n\t\treturn this.getY() < 0;\n\t}",
"public static boolean canJump(int[] A) {\n // Start typing your Java solution below\r\n // DO NOT write main() function\r\n int flag = A.length-1;\r\n for(int i=A.length -2; i>=0; i--){\r\n System.out.println(A[i] + \" \" + (flag-i));\r\n if(A[i] >= flag -i)//reachacle from A[i] to flag\r\n flag = i;\r\n }\r\n return flag == 0;\r\n\r\n }",
"private boolean checkCachedRegions(ArrayList<int[]> list) {\n int lastend=Integer.MIN_VALUE;\n for (int[] loc:list) {\n if (loc[0]>loc[1]) return false; // this will probably not happen\n if (loc[0]<=lastend) return false; // next segment prior to end of last (or overlapping even 1 pos)\n lastend=loc[1];\n }\n return true;\n }",
"private Location[] overrunBottom () {\n Location nextLocation;\n Location nextCenter;\n \n // exact calculation for exact 90 degree heading directions (don't want trig functions\n // handling this)\n if (getHeading() == ONE_QUARTER_TURN_DEGREES) {\n nextLocation = new Location(getX(), myCanvasBounds.getHeight());\n nextCenter = new Location(getX(), 0);\n return new Location[] { nextLocation, nextCenter };\n }\n \n double angle = getHeading();\n if (getHeading() > ONE_QUARTER_TURN_DEGREES) {\n angle = -(HALF_TURN_DEGREES - getHeading());\n }\n angle = Math.toRadians(angle);\n nextLocation =\n new Location(getX() + (myCanvasBounds.getHeight() - getY()) / Math.tan(angle),\n myCanvasBounds.getHeight());\n nextCenter = new Location(getX() + (myCanvasBounds.getHeight() - getY()) / Math.tan(angle),\n 0);\n \n // eliminates race condition - if next location overruns left/right AND top/bottom it checks\n // to see which is overrun first and corrects\n if (nextLocation.getX() > myCanvasBounds.getWidth())\n // right\n return overrunRight();\n else if (nextLocation.getX() < 0) // left\n return overrunLeft();\n return new Location[] { nextLocation, nextCenter };\n }",
"public boolean canJump(int[] nums, int index){\n if(index>=nums.length-1)\n return true;\n\n if(memo[index]!=null)\n return memo[index];\n\n boolean flag=false;\n // for(int i=1;i<=nums[index];i++){\n for(int i=nums[index];i>=1;i--){\n flag=canJump(nums,index+i);\n if(flag)\n break;\n }\n memo[index]=flag;\n return flag;\n }",
"private boolean check(int[] bestPoint) {\n\t\tif (bestPoint[0] > Mirror.spec || bestPoint[1] > Mirror.spec || bestPoint[0] < width - Mirror.spec\n\t\t\t\t|| bestPoint[1] < width - Mirror.spec) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\n\t}",
"public boolean isInOverflow() {\n \tif (overflow == true){\n \t\treturn true;\n \t}\n \telse{\n \t\treturn false;\n \t}\n }",
"private boolean check(SparseFractalSubTree reciver){\r\n boolean reciverPast = false;\r\n\r\n SparseFractalSubTree prev = reciver;\r\n for(int i = 0; i < subTrees.length-1; i++){\r\n if(!reciverPast) {\r\n if(subTrees[i] == reciver) {\r\n //(i+1)*h\r\n reciverPast = true;\r\n } else {\r\n //h+1\r\n assert (subTrees[i].getTailHeight() >= subTrees[i].getMinLevel()-1);\r\n }\r\n } else {\r\n SparseFractalSubTree subTree = subTrees[i];\r\n //2h\r\n assert(prev.getTailHeight() == Byte.MAX_VALUE ||\r\n (\r\n (subTree.getTailHeight() >= prev.getTailHeight()) &&\r\n (subTree.getTailHeight() >= prev.getMinLevel())\r\n )\r\n );\r\n\r\n prev = subTree;\r\n }\r\n\r\n }\r\n return true;\r\n }",
"public boolean isCarStackFull() {\n boolean carStackFull = false;\n if(top >= 4) {\n carStackFull = true;\n }\n return carStackFull;\n }",
"private boolean findNumSafeLandHelper(int[][] array, int[][] visited, int row, int col) {\n\t\tif (array[row][col] == 0 || visited[row][col] == 1) {\n\t\t\treturn false;\n\t\t}\n\t\t// if the currnet square is at the border and its not visited and its\n\t\t// not sea then it means this is a safe land\n\t\tif (row == 0 || (row == array.length - 1) || col == 0 || (col == array.length - 1)) {\n\t\t\treturn true;\n\t\t}\n\t\t// backtrack to all four directions and find is there any safe land path\n\t\t// present\n\t\tboolean isPathPresent = false;\n\t\tvisited[row][col] = 1;\n\t\t// check all four direction from the currnet square\n\t\tisPathPresent = (row > 0 ? findNumSafeLandHelper(array, visited, row - 1, col) : false)\n\t\t\t\t|| (row < (array.length - 1) ? findNumSafeLandHelper(array, visited, row + 1, col) : false)\n\t\t\t\t|| (col > 0 ? findNumSafeLandHelper(array, visited, row, col - 1) : false)\n\t\t\t\t|| (col < (array.length - 1) ? findNumSafeLandHelper(array, visited, row, col + 1) : false);\n\t\tvisited[row][col] = 0;\n\t\treturn isPathPresent;\n\t}",
"private boolean hasHitBoundry() {\r\n if (snake[HEAD].row < 0 || \r\n snake[HEAD].row >= maxRows ||\r\n snake[HEAD].column < 0 ||\r\n snake[HEAD].column >= maxColumns) {\r\n gameOver();\r\n return true;\r\n }\r\n return false;\r\n }",
"private boolean calculateMaximumLengthBitonicSubarray() {\n\n boolean found = false; // does any BSA found\n\n boolean directionChange = false; //does direction numberOfWays increase to decrease\n\n int countOfChange = 0;\n\n int i = 0;\n directionChange = false;\n int start = i;\n i++;\n for (; i < input.length; i++) {\n if (countOfChange != 0 && countOfChange % 2 == 0) {\n if (this.length < (i - 2 - start + 1)) {\n this.i = start;\n this.j = i - 2;\n this.length = this.j - this.i + 1;\n }\n start = i - 2;\n countOfChange = 0;\n }\n\n if (input[i] > input[i - 1]) {\n if (directionChange == true) {\n countOfChange++;\n }\n directionChange = false;\n }\n if (input[i] < input[i - 1]) {\n if (directionChange == false) {\n countOfChange++;\n }\n directionChange = true;\n }\n\n\n }\n\n if (directionChange == true) {\n if (this.length < (i - 1 - start + 1)) {\n this.i = start;\n this.j = i - 1;\n this.length = this.j - this.i + 1;\n }\n }\n return directionChange;\n }",
"public boolean isFull() {\n return size == k;\n}",
"private boolean rightLeftFull(int i, int j) { // part of isfull1\n if (j != 0 && j != count) { // not edges\n if (id[i][j - 1] == 1 && ic[i][j - 1] != 1 && !targetReached) { // and not marked as old patern in ic a N*N array\n ic[i][j - 1] = 1;\n isFull1(i + 1, j);\n }\n if (id[i][j + 1] == 1 && ic[i][j + 1] != 1 && !targetReached) { // and not marked as old patern in ic a N*N array\n ic[i][j + 1] = 1;\n isFull1(i + 1, j + 2);\n }\n\n } else if (j == 0) { // right site\n if (id[i][j + 1] == 1 && ic[i][j + 1] != 1 && !targetReached) { // and not marked as old patern in ic a N*N array\n ic[i][j + 1] = 1;\n isFull1(i + 1, j + 2);\n }\n\n } else { // left site\n if (id[i][j - 1] == 1 && ic[i][j - 1] != 1 && !targetReached) { // and not marked as old patern in ic a N*N array\n ic[i][j - 1] = 1;\n isFull1(i + 1, j);\n }\n }\n\n\n return false;\n }",
"public boolean checkInvariants() {\n\t\tRunningLengthWord rlw, prev;\n\n\t\ttry {\n\t\t\tEWAHIterator i =\n\t\t\t\t\tnew EWAHIterator(this.buffer, this.actualsizeinwords);\n\t\t\t// test that actualsizeinwords complies with info in headers and\n\t\t\t// test that literal number is not > max\n\t\t\twhile (i.hasNext()) {\n\t\t\t\tRunningLengthWord w = i.next();\n\t\t\t\tif (i.dirtyWords() > actualsizeinwords) {\n\t\t\t\t\tlog.error(i.dirtyWords() + \" larger than actual \"\n\t\t\t\t\t\t\t+ actualsizeinwords);\n\t\t\t\t\tlog.error(toDebugString());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (i.pointer > actualsizeinwords) {\n\t\t\t\t\tlog.error(\"pointer \" + i.pointer + \" larger than actual \"\n\t\t\t\t\t\t\t+ actualsizeinwords);\n\t\t\t\t\tlog.error(toDebugString());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (w.getNumberOfLiteralWords() > RunningLengthWord.largestrunninglengthcount) {\n\t\t\t\t\tlog.error(\"larger than max literals\"\n\t\t\t\t\t\t\t+ w.getNumberOfLiteralWords());\n\t\t\t\t\tlog.error(toDebugString());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (w.getRunningLength() > RunningLengthWord.largestrunninglengthcount) {\n\t\t\t\t\tlog.error(\"larger than max running length \"\n\t\t\t\t\t\t\t+ w.getRunningLength());\n\t\t\t\t\tlog.error(toDebugString());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// check adjacent words for errors\n\t\t\trlw = new RunningLengthWord(buffer, 0);\n\t\t\tprev = rlw;\n\t\t\trlw = rlw.getNext();\n\n\t\t\twhile (rlw.position < actualsizeinwords\n\t\t\t\t\t&& rlw.position + rlw.getNumberOfLiteralWords() < actualsizeinwords) {\n\t\t\t\t// case 1) second word has no running length -> first one should\n\t\t\t\t// have max literal count\n\t\t\t\tif (rlw.getRunningLength() == 0\n\t\t\t\t\t\t&& prev.getNumberOfLiteralWords() < RunningLengthWord.largestliteralcount) {\n\t\t\t\t\tlog.error(prev.getNumberOfLiteralWords()\n\t\t\t\t\t\t\t+ \" dirty words followed by \"\n\t\t\t\t\t\t\t+ rlw.getNumberOfLiteralWords()\n\t\t\t\t\t\t\t+ \" number of dirty words \" + \"\\n\\n\"\n\t\t\t\t\t\t\t+ toDebugString());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t// case 2) both have running length for same bit and first one\n\t\t\t\t// has\n\t\t\t\t// no literals -> first one should have max running length\n\t\t\t\tif (prev.getRunningLength() > 0\n\t\t\t\t\t\t&& rlw.getRunningLength() > 0\n\t\t\t\t\t\t&& prev.getNumberOfLiteralWords() == 0\n\t\t\t\t\t\t&& prev.getRunningBit() == rlw.getRunningBit()\n\t\t\t\t\t\t&& prev.getRunningLength() < RunningLengthWord.largestrunninglengthcount) {\n\t\t\t\t\tlog.error(\"Two running length for same bit of length \"\n\t\t\t\t\t\t\t+ prev.getRunningLength() + \" and \"\n\t\t\t\t\t\t\t+ rlw.getRunningLength() + \"\\n\\n\" + toDebugString());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tprev = rlw;\n\t\t\t\trlw = rlw.getNext();\n\t\t\t}\n\n\t\t\tif (!prev.equals(this.rlw)) {\n\t\t\t\tlog.error(\"Last word should have been \" + prev.toString()\n\t\t\t\t\t\t+ \" but was \" + this.rlw.toString());\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// the largest bit set == sizeinbits\n\t\t\tIntIterator it = intIterator();\n\t\t\tint greatest = -1;\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tgreatest = it.next();\n\t\t\t}\n\t\t\tif (this.sizeinbits != greatest + 1) {\n\t\t\t\tlog.error(\"sizein bits \" + sizeinbits\n\t\t\t\t\t\t+ \" but largest value is \" + greatest + \"\\n\\n\"\n\t\t\t\t\t\t+ toDebugString());\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tLoggerUtil.logException(e, log);\n\t\t\tlog.error(bufferToString());\n\t\t}\n\n\t\treturn true;\n\t}",
"abstract boolean isOverflow();",
"public boolean isFull()\n\t{\n\t return (front==0 && rear==queueArray.length-1 || (front==rear+1));\n\t}",
"private boolean checkRange(final int index) {\n if ((index > size) || (index < 0)) {\n return false;\n }\n return true;\n }",
"private void checkIfArrayFull() {\n\n if(this.arrayList.length == this.elementsInArray) {\n size *= 2;\n arrayList = Arrays.copyOf(arrayList, size);\n }\n }",
"public boolean isSelfCrossing(int[] x) {\n for(int i = 0; i <= x.length - 1; i ++){\n // Case 1 where arrow i goes across arrow i - 3\n if(i >= 3 && x[i] >= x[i - 2] && x[i - 1] <= x[i - 3]) return true;\n // Case 2 where arrow i goes across arrow i - 4\n if(i >= 4 && x[i] + x[i - 4] >= x[i - 2] && x[i - 1] == x[i - 3]) return true;\n // Case 3 where arrow goes across arrow i - 5\n if(i >= 5 && x[i - 1] + x[i - 5] >= x[i - 3] && x[i] + x[i - 4] >= x[i - 2]\n && x[i - 2] >= x[i - 4] && x[i - 1] <= x[i - 3]) return true;\n }\n return false;\n }",
"public abstract boolean fragmentStackUnderFlow();",
"public boolean isFull() {\n return (rear + 1) % n == head;\n }",
"static private boolean isFirstOfArray(Token.Code code) {\r\n \t\t\t\treturn code == Token.Code.LEFT_BRACKET;\r\n \t\t\t}",
"public static boolean shouldProcessSlice(OBSlice x) throws Exception {\n return x.size() <= maxSliceSize;\n }",
"protected static boolean isBackedBySimpleArray(Buffer b) {\n return b.hasArray() && (b.arrayOffset() == 0);\n }",
"public boolean isInBoundaries() {\n\t return Referee.playfield.isInBoundaries(this);\n }",
"public boolean percolates() {\n for (int i = 0; i < size; i++) {\r\n if (flowGrid[size * (size - 1) + i] < size) { // if any of the bottom row points at any of the index in the top row\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"private boolean horizontalCrash(@NotNull Wall wallToCheck) {\n ArrayList<Coordinate> wallCoordinates = wallToCheck.getPointsArray();\n return wallCoordinates.get(0).getXCoordinate() <= coordinates.get(1).getXCoordinate() && coordinates.get(0).getXCoordinate() <= wallCoordinates.get(1).getXCoordinate();\n }",
"public boolean canJump(int[] nums) {\n int[] memo = new int[nums.length];\n return canJumpFrom(0, nums, memo);\n }",
"static int [][] checkPreventer( int[][]MultiArray,int CurrentX, int CurrentY, int[] ComXY, String CurrentTitle){\n\t\touterloop_TopLeftTiles:\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\n\t\t\tNewXY[0] = CurrentX - j;\n\t\t\tNewXY[1] = CurrentY - j;\n\t\t\t\n\t\t\tif (NewXY[0] < 0 || NewXY[1] < 0 ){\n\t\t\t\t//break due to out of bounds\n\t\t\t\tbreak outerloop_TopLeftTiles;\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < aggregateBlacksEXKing(CurrentTitle,ComXY).length ; i++) {\n\t\t\t\tint[] Coordinate = aggregateBlacksEXKing(CurrentTitle,ComXY)[i];\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_TopLeftTiles;\n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\n\n\t\t\tfor(int[] i: aggregateWhitesForCheck(CurrentTitle, ComXY)){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_TopLeftTiles;\n\t\t\t\t}\t \n\t\t\t}\n\t\t\t\n\t\t\tif(Arrays.equals(NewXY,ComXY) && CurrentTitle != \"Black King (E8)\"){\n\t\t\t\t//this if statement is necessary to allow pieces to block bishop's line of sight\n\t\t\t\t////System.out.println(\"Outerbreak3.3\");\n\t\t\t\tbreak outerloop_TopLeftTiles;\n\t\t\t}\n\n\t\t\tfor(int i = 0 ; i < MultiArray.length ; i++) {\n\t\t\t\tif(Arrays.equals(MultiArray[i], NewXY)){\n\t\t\t\t\t//System.out.println(\"White Bishop threatining check from the bottom right\");\n\t\t\t\t\tMultiArray[i]=null;\t\n\t\t\t\t\tbreak outerloop_TopLeftTiles; \n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t}\n\t\t\n\t\t//top right tiles\n\t\touterloop_TopRightTiles:\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\n\t\t\tNewXY[0] = CurrentX + j;\n\t\t\tNewXY[1] = CurrentY - j;\n\t\t\t\n\t\t\tif (NewXY[0] > 7 || NewXY[1] < 0 ){\n\t\t\t\t//break due to out of bounds\n\t\t\t\tbreak outerloop_TopRightTiles;\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < aggregateBlacksEXKing(CurrentTitle,ComXY).length ; i++) {\n\t\t\t\tint[] Coordinate = aggregateBlacksEXKing(CurrentTitle,ComXY)[i];\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_TopRightTiles;\n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t\t\n\n\t\t\tfor(int[] i: aggregateWhitesForCheck(CurrentTitle, ComXY)){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_TopRightTiles;\n\t\t\t\t}\t \n\t\t\t}\n\t\t\tif(Arrays.equals(NewXY,ComXY) && CurrentTitle != \"Black King (E8)\"){\n\t\t\t\t//this if statement is necessary to allow pieces to block rook's line of sight\n\t\t\t\tbreak outerloop_TopRightTiles;\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < MultiArray.length ; i++) {\n\t\t\t\tif(Arrays.equals(MultiArray[i], NewXY)){\n\t\t\t\t\t//System.out.println(\"White Bishop threatining check from the bottom left\");\n\t\t\t\t\tMultiArray[i]=null;\t\n\t\t\t\t\tbreak outerloop_TopRightTiles; \n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t}\n\t\t\n\t\t//bottom left tiles\n\t\touterloop_BottomLeftTiles:\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\n\t\t\tNewXY[0] = CurrentX - j;\n\t\t\tNewXY[1] = CurrentY + j;\n\n\t\t\tif (NewXY[0] < 0 || NewXY[1] > 7 ){\n\t\t\t\t//break due to out of bounds\n\t\t\t\tbreak outerloop_BottomLeftTiles;\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0 ; i < aggregateBlacksEXKing(CurrentTitle,ComXY).length ; i++) {\n\t\t\t\tint[] Coordinate = aggregateBlacksEXKing(CurrentTitle,ComXY)[i];\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_BottomLeftTiles;\n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t\n\n\t\t\tfor(int[] i: aggregateWhitesForCheck(CurrentTitle, ComXY)){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t////System.out.println(\"Outerbreak3.2\");\n\t\t\t\t\tbreak outerloop_BottomLeftTiles;\n\t\t\t\t}\t\t \n\t\t\t}\n\t\t\tif(Arrays.equals(NewXY,ComXY) && CurrentTitle != \"Black King (E8)\"){\n\t\t\t\t//this if statement is necessary to allow pieces to block rook's line of sight\n\t\t\t\t////System.out.println(\"Outerbreak3.3\");\n\t\t\t\tbreak outerloop_BottomLeftTiles;\n\t\t\t}\n\n\t\t\tfor(int i = 0 ; i < MultiArray.length ; i++) {\n\t\t\t\tif(Arrays.equals(MultiArray[i], NewXY)){\n\t\t\t\t\t////System.out.println(\"Outerbreak3.4\");\n\t\t\t\t\t//System.out.println(\"White Bishop threatining check from the top right\");\n\t\t\t\t\tMultiArray[i]=null;\t\n\t\t\t\t\tbreak outerloop_BottomLeftTiles; \n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t}\n\t\t//bottom right tiles\n\t\touterloop_BottomRightTiles:\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\n\t\t\tNewXY[0] = CurrentX + j;\n\t\t\tNewXY[1] = CurrentY + j;\n\t\t\t\n\t\t\tif (NewXY[0] > 7 || NewXY[1] > 7 ){\n\t\t\t\t//break due to out of bounds\n\t\t\t\tbreak outerloop_BottomRightTiles;\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < aggregateBlacksEXKing(CurrentTitle,ComXY).length ; i++) {\n\t\t\t\tint[] Coordinate = aggregateBlacksEXKing(CurrentTitle,ComXY)[i];\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_BottomRightTiles;\n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t\t\n\n\t\t\tfor(int[] i: aggregateWhitesForCheck(CurrentTitle, ComXY)){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_BottomRightTiles;\n\t\t\t\t}\t\t \n\t\t\t}\n\t\t\tif(Arrays.equals(NewXY,ComXY) && CurrentTitle != \"Black King (E8)\"){\n\t\t\t\t//this if statement is necessary to allow pieces to block rook's line of sight\n\t\t\t\tbreak outerloop_BottomRightTiles;\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < MultiArray.length ; i++) {\n\t\t\t\tif(Arrays.equals(MultiArray[i], NewXY)){\n\t\t\t\t\t//System.out.println(\"White Bishop threatining check from the top left\");\n\t\t\t\t\tMultiArray[i]=null;\t\n\t\t\t\t\tbreak outerloop_BottomRightTiles;\n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t}\n\t\t\n\t\treturn MultiArray;\n\t}",
"public boolean indexCheck(int index) {\n return (index >= 0 && index <= size) ? true : false;\n }",
"public boolean outOfRange(){\r\n\t\t\treturn (shape.x <=0 ? true : false);\r\n\t\t}",
"boolean isOverflow() {\r\n\r\n if (children.size() > branchingFactor) {\r\n return true;\r\n }\r\n return false;\r\n }",
"private static boolean arrayAccess_0_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"arrayAccess_0_0\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeTokens(b, 0, QUEST, LBRACKET);\n r = r && arrayAccess_0_0_2(b, l + 1);\n r = r && consumeTokens(b, 0, RBRACKET, COLON);\n exit_section_(b, m, null, r);\n return r;\n }",
"private boolean isInBound(int current, int bound){\n return (current >= 0 && current < bound);\n }",
"@Override\n\tpublic boolean isValidIndex(long index) {\n\t\ttry {\n\t\t\tif (isEmtpy || Long.compareUnsigned(index, maxOffset) > 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn memory.contains(getAddress(index));\n\t\t}\n\t\tcatch (IOException | AddressOutOfBoundsException e) {\n\t\t\treturn false;\n\t\t}\n\t}"
] | [
"0.665345",
"0.66449064",
"0.6301773",
"0.62398386",
"0.61781937",
"0.6047705",
"0.59588563",
"0.59092057",
"0.58426607",
"0.5836141",
"0.5758926",
"0.5754943",
"0.57023436",
"0.5678478",
"0.5672509",
"0.5667142",
"0.56622356",
"0.5647103",
"0.5633301",
"0.5620607",
"0.5617737",
"0.55629814",
"0.55597436",
"0.5546012",
"0.55432814",
"0.55407363",
"0.5523024",
"0.55205405",
"0.55142885",
"0.550646",
"0.5498263",
"0.5495545",
"0.54751307",
"0.54714745",
"0.5470162",
"0.5462833",
"0.54621685",
"0.5459034",
"0.5457822",
"0.5440839",
"0.54156816",
"0.5399121",
"0.53907484",
"0.5389268",
"0.53735477",
"0.5360971",
"0.5358968",
"0.5354685",
"0.53535783",
"0.5352702",
"0.53523314",
"0.5351461",
"0.53450924",
"0.5338446",
"0.5333619",
"0.53329784",
"0.5323787",
"0.5323787",
"0.5293832",
"0.529116",
"0.5286619",
"0.5285673",
"0.5270822",
"0.5270438",
"0.52679133",
"0.526364",
"0.5263098",
"0.5252354",
"0.5250201",
"0.52497154",
"0.52486265",
"0.5242374",
"0.52298707",
"0.5226746",
"0.521794",
"0.52168757",
"0.5208233",
"0.5196306",
"0.5192341",
"0.5186047",
"0.5185683",
"0.51844925",
"0.5172004",
"0.5168684",
"0.51681376",
"0.51677346",
"0.51648057",
"0.51629496",
"0.5159756",
"0.5156423",
"0.51542497",
"0.5149755",
"0.5143406",
"0.5138746",
"0.5134612",
"0.5134099",
"0.5130588",
"0.5110729",
"0.5101032",
"0.50977397"
] | 0.67425954 | 0 |
java mod for ve > (11 % 4) = 1, not 4 | private int adjustIndex(int index)
{
int max = values.length;
return ((index % max) + max) % max;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void helloHelloModulo() {\n int a = 1;\n int b = 10;\n int c = 1 / 10;\n\n int d = 1 % 10;\n\n\n System.out.println(\" Result deleniya \" + c);\n System.out.println(\" Result deleniya \" + d);\n\n\n int делимое = 75;\n int делитель = 13;\n int f = делимое % делитель;\n\n int остаток = делимое - (делимое / делитель) * делитель;\n int j = 7 % 2;\n\n System.out.println(f);\n System.out.println(остаток);\n\n\n }",
"private static int cprModFunction(int a, int b) {\n\t\tint res = a % b;\n\t\tif (res < 0)\n\t\t\tres += b;\n\t\treturn res;\n\t}",
"public static int mod(int x, int y) {\n return x % y;\n }",
"public int modulo(int a, int b) {\n return a % b;\n }",
"static int modulo(int x, int y) {\n return (x%y);\n }",
"public static void main(String args[])\n {\n int a=8%3; //Finding the reminder of 8 when divided by 3 using the modulus operator '%'\n\n System.out.println(\"a=\"+a);\n\n }",
"public static double modulo(double val, double mod) {\n double n = Math.floor(val / mod);\n double r = val - n * mod;\n return Util.almost_equals(r,mod) ? 0.0 : r;\n }",
"int pacemodulator() {\n int buckpacedirector = ((rand.nextInt() >> rightshift) & 7);\n int rbuckpacedirector = 0;\n\n rbuckpacedirector = switch (buckpacedirector)\n {\n case 0 -> 2;\n case 1 -> 3;\n case 2 -> 4;\n case 3 -> 5;\n case 4 -> 6;\n case 5 -> 7;\n case 6 -> 8;\n default -> 1;\n };\n return rbuckpacedirector;\n }",
"protected final double mod(double value, double modulus) {\n return (value % modulus + modulus) % modulus;\n }",
"public int getModCount() {\n return 1;\n }",
"public boolean or35 (int n) {\n if ( (n % 3 == 0) || (n % 5 == 0)){\n return true;\n }\n return false;\n}",
"private static boolean checkBy3 (int a) {\n return a % 3 == 0;\n }",
"private static int wrap(int a, int b)\n {\n return (a < 0) ? (a % b + b) : (a % b);\n }",
"private static long modPow(long a, long b, long c) {\n long res = 1;\n for (int i = 0; i < b; i++)\n {\n res *= a;\n res %= c;\n }\n return res % c;\n }",
"public static boolean isPowerof4(int num){\n\t\tif (Math.pow(4,16) % num == 0 && (num-1) % 3 == 0){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"static int random(int mod)\n {\n Random rand = new Random();\n int l= (rand.nextInt());\n if(l<0)\n l=l*-1;\n l=l%mod;\n return l;\n }",
"private boolean isDivisibleBy4(int year) {\n\t\treturn checkDivisibility(year,4);\n\t}",
"private static int modExp(int a, int b, int n) {\n\n // get a char array of the bits in b\n char[] k = (Integer.toBinaryString(b)).toCharArray();\n\n // initialize variables\n int c = 0, f = 1;\n // loop over every bit in k\n for (int i = 0; i < k.length; i ++) {\n\n // for every bit, i.e. if 0 or 1, do this\n c *= 2;\n f = (f * f) % n;\n\n // If current bit is equal to 1, then do this\n if (k[i] == '1') {\n c += 1;\n f = (f * a) % n;\n }\n }\n\n // returns the remainder\n return f;\n }",
"public static void main(String[] args) {\nint a = 4;\n\na += 2;\na -= 2;\na %= 2;\n\n\nSystem.out.println(a);\n\t\t\n\t\t\n\t\t\n\t}",
"public void modulo(MyDouble val) {\n this.setValue(this.getValue() % val.getValue());\n }",
"public static void main(String[] args) {\n long number = 6857;\n long i = 2;\n while ((number / i != 1) || (number % i != 0)) {\n if (number % i == 0) {\n number = number / i;\n } else {\n i++;\n }\n }\n System.out.println(i);\n\n }",
"public boolean or35(int n) {\n return (n % 3 == 0 || n % 5 == 0);\n}",
"private String calcMod(double val) {\n double vall = (val - 10) / 2;\n if (vall < 0) {\n val = Math.floor(vall);\n return String.valueOf((int)val);\n }\n else {\n val = Math.ceil(vall);\n return \"+\" + String.valueOf((int)val);\n }\n }",
"@Test\n public void testModulo() {\n System.out.println(\"modulo\");\n int x = 0;\n int y = 0;\n int expResult = 0;\n int result = utilsHill.modulo(x, y);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"public void operacionletradni(int dni, int result){\n this.result=dni%23;}",
"@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}",
"void milestone3(){\n for(int i = 2; i <= 100; i++){\n int count = 0;\n for(int j = 1; j <= i; j++)\n if(i % j == 0) count += 1;\n if(count > 2) continue;\n else System.out.print(i + \" \");\n }\n System.out.println();\n }",
"public void incrementCount () {\n count = count + 1; // == count++ == count += 1 \n if (count == modulus) {\n count = 0;\n }\n }",
"private int getIndex(int val){\n return val%bucket;\n }",
"@Test\n public void testPowerMod_0_0_2() {\n NaturalNumber n = new NaturalNumber2(0);\n NaturalNumber p = new NaturalNumber2(0);\n NaturalNumber m = new NaturalNumber2(2);\n CryptoUtilities.powerMod(n, p, m);\n assertEquals(\"1\", n.toString());\n assertEquals(\"0\", p.toString());\n assertEquals(\"2\", m.toString());\n }",
"public void testModulusValue() throws Exception {\r\n // Create key pair using java.security\r\n KeyPairGenerator keyGen = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\r\n keyGen.initialize(1024, new SecureRandom());\r\n KeyPair keyPair = keyGen.generateKeyPair();\r\n \r\n PublicKeyRSA rsaKey = (PublicKeyRSA)KeyFactory.createInstance(keyPair.getPublic(), \"SHA1WITHRSA\", null);\r\n byte[] modulusData = ((ByteField)rsaKey.getSubfield(CVCTagEnum.MODULUS)).getData();\r\n assertTrue(\"Leading zero found in modulus\", modulusData[0]!=0);\r\n }",
"public static int mod(int a,int b) {\n\t\tif (b == 0) return 0;\n\t\tif (b<0) {\n\t\t\treturn -mod(-a,-b);\n\t\t} else if(a<0) {\n\t\t\twhile (Math.abs(a-b)>b)a+=b;\n\t\t\treturn a;\n\t\t} else {\n\t\t\twhile (a-b>=0) a-=b;\n\t\t\treturn a;\n\t\t}\n\t\t\n\t}",
"public final void mod() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (topMostValue > 0) {\n\t\t\t\tpush(secondTopMostValue % topMostValue);\n\t\t\t}\n\t\t}\n\t}",
"void solve() {\n num = new ArrayList<>();\n num.add(BigInteger.valueOf(4));\n for (int len = 2; len <= 100; len++)\n generate(\"4\", 1, len, false);\n Collections.sort(num);\n for (int tc = ii(); tc > 0; tc--) {\n long x = il();\n BigInteger X = BigInteger.valueOf(x);\n for (int i = 0; i < num.size(); i++) {\n if (num.get(i).mod(X).equals(BigInteger.ZERO)) {\n String z = num.get(i).toString();\n int end = z.lastIndexOf('4');\n int len = z.length();\n int a = 2 * (end+1);\n int b = len - end;\n out.println(a + b);\n break;\n }\n }\n }\n }",
"public int getMod() {\n return (int) Math.floor((base + bonus - 10) / 2);\n }",
"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}",
"private boolean checkDivisibility(int year, int num) {\n\t\treturn (year%num==0);\n\t}",
"protected final int computeSlot(int paramInt)\n/* */ {\n/* 149 */ return (paramInt * 517 & 0x7FFFFFFF) % this.m_flagTable.length;\n/* */ }",
"@Test\n public void test(){\n int a = 3;\n int b = 6;\n System.out.println(a % b);\n System.out.println(Long.MAX_VALUE);\n }",
"public int mo4308c(int i, int i2) {\n return i % i2;\n }",
"static void pregenFact() \n\t{ \n\t\tfact[0] = fact[1] = 1; \n\t\tfor (int i = 1; i <= 1000000; ++i) \n\t\t{ \n\t\t\tfact[i] = (int) ((long) fact[i - 1] * i % mod); \n\t\t} \n\t}",
"static int modInverse(int a, int m) \n\t{ \n\t\tint m0 = m; \n\t\tint y = 0, x = 1; \n\t\tif (m == 1) \n\t\t{ \n\t\t\treturn 0; \n\t\t} \n\n\t\twhile (a > 1) \n\t\t{ \n\n\t\t\t// q is quotient \n\t\t\tint q = a / m; \n\t\t\tint t = m; \n\n\t\t\t// m is remainder now, process \n\t\t\t// same as Euclid's algo \n\t\t\tm = a % m; \n\t\t\ta = t; \n\t\t\tt = y; \n\n\t\t\t// Update y and x \n\t\t\ty = x - q * y; \n\t\t\tx = t; \n\t\t} \n\n\t\t// Make x positive \n\t\tif (x < 0) \n\t\t{ \n\t\t\tx += m0; \n\t\t} \n\n\t\treturn x; \n\t}",
"public static float modulus(float a, float b)\n\t{\n\t\treturn (a % b + b) % b;\n\t}",
"long perm(int n, int m, long mod) {\n long result = 1;\n for (int i = n - m + 1; i <= n; ++i) {\n result = result * i % mod;\n }\n return result;\n }",
"public static int modulo(int iValue, int modulus) {\n assert Validate.positive(modulus, \"modulus\");\n\n int remainder = iValue % modulus;\n int result;\n if (iValue >= 0) {\n result = remainder;\n } else {\n result = (remainder + modulus) % modulus;\n }\n\n assert result >= 0f : result;\n assert result < modulus : result;\n return result;\n }",
"private void m27461a() {\n if (this.f25303r >= 2) {\n if (this.f25303r % 2 == 0) {\n this.f25303r++;\n }\n this.f25304s = this.f25303r + 2;\n this.f25305t = this.f25304s / 2;\n return;\n }\n throw new ArithmeticException(\"Wheel's visible item count can not be less than 2!\");\n }",
"final int wrap(int p) {\n int r = p % size();\n if (r < 0) {\n r += size();\n }\n return r;\n }",
"private int getExpansionCount(int ce)\n {\n return ce & 0xF;\n }",
"private static long fibMod(long n, long m) {\n return fib(n % pisano(m), m) % m;\n }",
"@Test\n public void checkDivisibilityByFourHundred() {\n LeapYear leapYear = new LeapYear();\n boolean flag = leapYear.isItDivisibleByFourHundred(1600);\n assertTrue(flag);\n }",
"@Test\n public void testModulus10() {\n System.out.println(\"modulus10\");\n int pz = 7;\n AbstractMethod instance = new AbstractMethodImpl();\n int expResult = 3;\n int result = instance.modulus10(pz);\n assertEquals(expResult, result);\n pz = 5;\n expResult = 5;\n result = instance.modulus10(pz);\n assertEquals(expResult, result);\n\n pz = 17;\n expResult = 3;\n result = instance.modulus10(pz);\n assertEquals(expResult, result);\n\n }",
"private int m10275g(int i) {\r\n return (i >>> 1) ^ (-(i & 1));\r\n }",
"if(x%2)\r\n\r\n\tpublic static void main(String[] args) {\r\n\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\tint x=25;\n\tSystem.out.println(x%=2);\n\n\t\t\t\n\t}",
"long modInverse(long a, long m) \r\n { \r\n\t\t long m0 = m; \r\n long y = 0, x = 1; \r\n \r\n if (m == 1) \r\n return 0; \r\n \r\n while (a > 1) \r\n { \r\n // q is quotient \r\n \tlong q = a / m; \r\n \r\n \tlong t = m; \r\n \r\n // m is remainder now, process \r\n // same as Euclid's algo \r\n m = a % m; \r\n a = t; \r\n t = y; \r\n \r\n // Update x and y \r\n y = x - q * y; \r\n x = t; \r\n } \r\n \r\n // Make x positive \r\n if (x < 0) \r\n x += m0; \r\n \r\n return x; \r\n }",
"public static float modulo(float fValue, float modulus) {\n assert Validate.positive(modulus, \"modulus\");\n\n float remainder = fValue % modulus;\n float result;\n if (fValue >= 0) {\n result = remainder;\n } else {\n result = (remainder + modulus) % modulus;\n }\n\n assert result >= 0f : result;\n assert result < modulus : result;\n return result;\n }",
"static int modPow(int b, int p, int m) {\n b = b % m;\n int res = 1;\n\n while (p > 0) {\n if (p % 2 == 1)\n res = (res * b) % m;\n p /= 2;\n b = b * b % m;\n }\n return res;\n }",
"public static int RepetidorFor(int numero){\n\t\tint suma=0;\n\t\tint resultado=0;\n\t\tfor(int i=1;i<numero;i++){\n\t\t\tresultado=(numero%i);\n\t\t\tif(resultado==0){\n\t\t\t\tsuma=suma+i;\n\t\t\t}\n\t\t}\n\t\treturn suma;\n\t}",
"public HugeUInt mod(int b) {\r\n return mod(new HugeUInt(b));\r\n }",
"public String getModulo11(String campo, int type) {\n\n int multiplicador = 2;\n int multiplicacao = 0;\n int soma_campo = 0;\n\n for (int i = campo.length(); i > 0; i--) {\n multiplicacao = Integer.parseInt(campo.substring(i - 1, i)) * multiplicador;\n\n soma_campo = soma_campo + multiplicacao;\n\n multiplicador++;\n if (multiplicador > 7 && type == 7) {\n multiplicador = 2;\n } else if (multiplicador > 9 && type == 9) {\n multiplicador = 2;\n }\n }\n\n int dac = 11 - (soma_campo % 11);\n\n if (dac > 9 && type == 7) {\n dac = 0;\n } else if ((dac > 9) && type == 9) {\n dac = 0;\n }\n \n return ((Integer) dac).toString();\n }",
"int compFunction(int code) {\n return Math.abs(((3 * code + 8) % largePrime) % buckets.length);\n }",
"public HugeUInt mod(HugeUInt b) {\r\n \t HugeUInt q = new HugeUInt(this);\r\n HugeUInt t;\r\n HugeUInt m;\r\n int lenA = q.getSize();\r\n int lenB = b.getSize();\r\n int sh = lenA - lenB;\r\n int d; \r\n while (b.compareTo(q) <= 0) {\r\n \tsh = lenA - lenB;\r\n t = q.shiftRight(sh);\r\n if (t.compareTo(b) < 0) {\r\n sh--;\r\n }\r\n d = 9;\r\n m = b.multiply(d).shiftLeft(sh);\r\n while (q.compareTo(m) < 0) {\r\n d--;\r\n m = b.multiply(d).shiftLeft(sh);\r\n }\r\n q = q.subtract(m);\r\n q.trim();\r\n lenA = q.getSize();\r\n }\r\n q.trim();\r\n return q;\r\n }",
"@Test\n public void checkDivisibilityByFour() {\n LeapYear leapYear = new LeapYear();\n boolean flag = leapYear.isItDivisibleByFour(1600);\n assertTrue(flag);\n }",
"public boolean isPowerOfFour(int num) {\n \n if(num <= 0) return false;\n while(num != 1)\n {\n if(num % 4 !=0) return false;\n num /= 4;\n }\n return true;\n }",
"private static boolean m26009a(long j, long j2, long j3) {\n if (j2 >= 0 && j3 > 0) {\n if ((j >= 0 ? j % j3 : (((Long.MAX_VALUE % j3) + 1) + ((j & Long.MAX_VALUE) % j3)) % j3) >= j2) {\n return false;\n }\n }\n return true;\n }",
"public static void main(String[] arrr){\n\t\tlong mod = 10000000011L;\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] arr = new int[n];\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tarr[i]=sc.nextInt();\n\t\t}\n\t\tlong total=0;\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\ttotal = (total+((long)Math.pow((countBit(arr[i])),(i+1))%mod))%mod;\n\t\t}\n\t\tSystem.out.println(total);\n\t}",
"private String getModulo(){\n int lenghtOfInput = String.valueOf(modulo).length();\n String even = new String();\n String odd = new String();\n\n if (lenghtOfInput != 8){\n return modulo + getString(R.string.notValidMatrikelNotePt1) + lenghtOfInput + getString(R.string.notValidMatrikelNotePt2);\n } else {\n int[] arr = new int[lenghtOfInput];\n\n //make an array of digits\n int i = 0;\n do {\n arr[i] = modulo % 10;\n modulo = modulo / 10;\n i++;\n } while (modulo != 0);\n\n //seperate even digits from odd ones\n for (int runner = 0; runner < lenghtOfInput; runner++){\n if(arr[runner] % 2 == 0){\n even += arr[runner];\n } else {\n odd += arr[runner];\n }\n }\n\n //Sorting of the char-rays which are numbers\n char[] evenSorted = even.toCharArray();\n Arrays.sort(evenSorted);\n String evenSortedString = new String(evenSorted);\n char[] oddSorted = odd.toCharArray();\n Arrays.sort(oddSorted);\n String oddSortedString = new String(oddSorted);\n\n return getString(R.string.solutionTxt) + \"\\n\" + evenSortedString + oddSortedString;\n }\n }",
"boolean multipleOf2(int num)\n {\n return (num & 0b1) != 1;\n }",
"public static int calculateRemainderPart(int a)\n\t\t\t{\n\t\t\t\tint remainderPart = a % 10;\t\t\t\t\n\t\t\t\treturn remainderPart;\t\t\t\t\n\t\t\t}",
"public static void main(String[] args) {\n int digito = 3;\n int numeroDigitos = 0;\n if (digito <= 0) {\n System.out.println(\"Ingrese como parámetro, un numero de digitos correcto (mayor que 0): \");\n }\n for (int i = 1; i <= 99999; i++) {\n int aux = i;\n\n int contador = 0;\n\n numeroDigitos = devolverContador(aux, contador);\n\n if (numeroDigitos == digito) {\n if (i < 4) {\n primo = true;\n } else {\n if (i % 2 == 0) {\n primo = false;\n } else {\n int contador1 = 0;\n int i1 = 1;\n int k = (i - 1) / 2;\n if (k % 2 == 0) {\n k--;\n }\n\n contador1 = primoDivisible(i1, k, i, contador1);\n\n if (contador1 == 1) {\n primo = true;\n }\n }\n }\n\n if (primo == true) {\n System.out.println(i);\n }\n }\n }\n }",
"public int mediansMod(int mod) {\n int sum = 0;\n for (int mid : medians) {\n sum += mid;\n }\n return sum % mod;\n }",
"private int m10266c(int i) {\r\n return (i << 1) ^ (i >> 31);\r\n }",
"private static boolean isDivisibeby3or5(int a){\n\t\treturn a%3 == 0 || a%5 == 0;\n\t}",
"public static void main(String[] args) {\n\n long a_i3 = 3;\n long a_i2 = 4;\n long a_i1 = 10;\n\n int MOD = 1000_000_000 + 7;\n\n for (int i = 4; i < 30; i++) {\n long a_i = (a_i1 + 2 * a_i2 + 4 * a_i3) % MOD;\n System.out.println(\"N: \" + i + \" --> \" + a_i);\n\n a_i3 = a_i2;\n a_i2 = a_i1;\n a_i1 = a_i;\n }\n\n old1();\n }",
"private boolean isDivisibleBy100(int year) {\n\t\treturn checkDivisibility(year, 100);\n\t}",
"public static NumberP Modulo(NumberP first, NumberP second)\n {\n return OperationsManaged.PerformArithmeticOperation\n (\n first, second, ExistingOperations.Modulo\n ); \t\n }",
"public void MOD( ){\n String tipo1 = pilhaVerificacaoTipos.pop().toString();\n String tipo2 = pilhaVerificacaoTipos.pop().toString();\n String val1 = dads.pop().toString();\n float fresult = -1;\n String val2 = dads.pop().toString();\n if(val1 != null && val2 != null){\n if (tipo1 != null && tipo2 != null){\n if(tipo1 == \"inteiro\" && tipo2 == \"real\"){\n if(Float.parseFloat(val2) != 0){\n fresult = Integer.parseInt(val1) % Float.parseFloat(val2);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n }\n }else if(tipo1 == \"real\" && tipo2 ==\"inteiro\"){\n if(Float.parseFloat(val1) != 0){\n fresult = Integer.parseInt(val2) % Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n }\n }else if(tipo1 == \"real\" && tipo2 ==\"real\"){\n if(Float.parseFloat(val1) != 0){\n fresult = Float.parseFloat(val2) % Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n }\n }else if(tipo1 == \"inteiro\" && tipo2 ==\"inteiro\"){\n if(Integer.parseInt(val1) != 0){\n fresult = Integer.parseInt(val2) % Integer.parseInt(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n return;\n }\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(1): essa instrução é válida apenas para valores inteiros ou reais.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(2): não foi possível executar a instrução, tipo null encontrado.\";\n numErrVM += 1;\n return;\n }\n }else {\n mensagensErrosVM += \"\\nRUNTIME ERROR(3): não foi possível executar a instrução, valor null encontrado.\";\n numErrVM += 1;\n return;\n }\n\n\n topo += -1;\n ponteiro += 1;\n }",
"public static int fourthBit(int num) {\n String s = Integer.toString(num, 2);\n if(s.charAt(s.length()-4)=='0'){\n return 0;\n }\n //System.out.println(c);\n return 1;\n }",
"public static void main(String[] args) {\n int a = 1;\r\n int b = 2;\r\n int c = 3;\r\n int d = 4;\r\n int e = 5;\r\n \r\n boolean aa = a%3 == 0;\r\n boolean bb = b%3 == 0;\r\n boolean cc = c%3 == 0;\r\n boolean dd = d%3 == 0;\r\n boolean ee = e%3 == 0;\r\n \r\n System.out.println(aa);\r\n System.out.println(bb);\r\n System.out.println(cc);\r\n System.out.println(dd);\r\n System.out.println(ee);\r\n\t}",
"public void ex() {\n int inches = 86; \n int pie = 12; //1 pie = 12 inches \n //Operaciones para obtener la cantidad de pies e inches\n int cant = inches / pie; \n int res = inches % pie;\n //Muestra de resultados\n System.out.println(inches + \" pulgadas es equivalente a\\n \" + \n cant + \" pies \\n \" + res + \" pulgadas \");\n }",
"public int contadorPares(int[] vector)\r\n\t{\r\n\t\tint pares=0;\r\n\t\tfor(int i=0;i<vector.length;i++)\r\n\t\t{\r\n\t\t\tif(vector[i]%2==0)\r\n\t\t\t{\r\n\t\t\t\tpares+=1;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn pares;\r\n\t}",
"@Test\n public void testLargeM() {\n assertEquals(32, PiGenerator.powerMod(2, 5, 42423131));\n }",
"public void smallestMultiple(){\n outerLoop: for( int i = 2; i < Integer.MAX_VALUE; i++ ){\n for( int j = 3; j <= 20; j++ )\n if( i % j != 0 )\n continue outerLoop;\n System.out.println( i );\n break;\n }\n }",
"private void check4(){\n \n if (errorCode == 0){\n int sum = 0;\n \n for(int i = 0; i < number.length();){\n sum += Integer.parseInt(number.substring(i, ++i));\n }\n \n if (sum % 4 != 0){\n valid = false;\n errorCode = 4;\n }\n }\n\t}",
"public static void multipleReplacement() {\r\n\t\tfor (int i = 1; i <= 100; i++) {\r\n\t\t\tif (i % 3 == 0) {\r\n\t\t\t\tSystem.out.println(i + \" is a multiple of 3\");\r\n\t\t\t} else if (i % 7 == 0) {\r\n\t\t\t\tSystem.out.println(i + \" is a multiple of 7\");\r\n\t\t\t} else\r\n\t\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\t}",
"@Test\n public void testNegativeA() {\n assertEquals(-1, PiGenerator.powerMod(-1, 2, 23));\n }",
"private static long modInverse64(long d)\n {\n long x = d + (((d + 1L) & 4L) << 1); // d.x == 1 mod 2**4\n x *= 2 - d * x; // d.x == 1 mod 2**8\n x *= 2 - d * x; // d.x == 1 mod 2**16\n x *= 2 - d * x; // d.x == 1 mod 2**32\n x *= 2 - d * x; // d.x == 1 mod 2**64\n// assert d * x == 1L;\n return x;\n }",
"public static double modulo(double dValue, double modulus) {\n assert Validate.positive(modulus, \"modulus\");\n\n double remainder = dValue % modulus;\n double result;\n if (dValue >= 0) {\n result = remainder;\n } else {\n result = (remainder + modulus) % modulus;\n }\n\n assert result >= 0.0 : result;\n assert result < modulus : result;\n return result;\n }",
"private void handleIndivisible() {\n\t\n}",
"public static void main(String[] args) {\n System.out.println(32>>2);// 0010 0000>>2= 0000 1000=8\n\n System.out.println(32/4);//32除以2的2次幂\n\n System.out.println(8<<2);// 0000 1000<<2=0010 0000=32\n System.out.println(8*4);//8 乘以2的2次幂\n\n System.out.println(2<<2);//2*2(2)=8\n\n System.out.println(-32>>>2);//32除以2的2次幂\n\n\n }",
"long select(int n, int m, long mod) {\n long[][] dp = new long[n + 1][m + 1];\n for (int i = 1; i <= n; ++i) {\n dp[i][0] = 1;\n if (i <= m) {\n dp[i][i] = 1;\n }\n for (int j = 1; j < i && j <= m; ++j) {\n dp[i][j] = (dp[i - 1][j] + dp[i - 1][j - 1]) % mod;\n }\n }\n return dp[n][m];\n }",
"private int checkRange(int number,int range){\n return (number+range)%range;\n }",
"private static String mod10(String code) {\n if (!code.matches(\"\\\\d+\")) {\n return null;\n }\n if (code.length() > 5) {\n return null;\n }\n // if length < 5, add leading \"0\"\n StringBuffer input = new StringBuffer(code);\n while (input.length() < 5) {\n input.insert(0, \"0\");\n }\n\n // 1. Using the number 12345, assign positions to the digits, from right\n // to left.\n\n // 2. Take the odd digit positions counting from the right (1st, 3rd,\n // 5th, etc.)\n StringBuffer odd = new StringBuffer();\n for (int i = 0; 2 * i < input.length(); i++) {\n odd.insert(0, input.charAt(2 * i));\n }\n\n // 3.Multiply by 2.\n int odd2 = Integer.parseInt(odd.toString()) * 2;\n\n // 4. Take the even digit positions starting from the right (2nd, 4th,\n // etc.).\n StringBuffer even = new StringBuffer();\n for (int i = 0; 2 * i + 1 < input.length(); i++) {\n even.insert(0, input.charAt(2 * i + 1));\n }\n\n // 5.Append (4) to the front of the results of (3).\n even.append(odd2);\n\n // 6. Add the digits of (5) together.\n double add = 0;\n for (int i = 0; i < even.length(); i++) {\n add = add + Integer.parseInt(even.substring(i, i + 1));\n }\n\n // 7. Find the next highest multiple of 10.\n double multiple = Math.ceil(add / 10) * 10;\n\n // 8. Subtract (6) from (7).\n Long result = Math.round(multiple - add);\n\n return result.toString();\n }",
"static long mpow(long x, int k) {\n\t long result = 1;\n\t for(; k > 0; k >>= 1) {\n\t if(k % 2 == 1) {\n\t result = mod(result * x ,511);\n\t }\n\t x = mod(x * x , 511);\n\t }\n\t return result;\n\t}",
"public static void main(String[] args) {\nint no=38;\n//using for loop\n/*for(int i=3;i<=no;i++) {\n\tif(no==i) {\n\t\tSystem.out.println(no+ \" number is multiple of 3\");\n\t}\n\ti=i+3;\n}*/\n//using while loop\n/*int i=3;\nwhile(i<=no) {\n\tif(no==i) {\n\t\tSystem.out.println(no+\" number is multiple of 3\");\n\t}\n\ti=i+3;\n}*/\n//using do while loop\n/*int i=3;\ndo {\nif(no==i) {\n\tSystem.out.println(no+\" number is multiple of 3\");\n}\ni=i+3;\n}while(i<=no);*/\n//using recursion method\nint i=3;\n\nint result=FindNumberMunltipleOf3WithoutusingdivandmodOperator.print(i,no);\nif(result==-1) {\n\tSystem.out.println(no+\" number is multiple of 3 \");\n}\nSystem.out.println(no+\" number is not multiple of 3\");\n\n\t}",
"private int convertX(int i) {\n return i % width;\n }",
"private int m690g(int i) {\n return (-(i & 1)) ^ (i >>> 1);\n }",
"public static int calculateSyndrome4(int[] inputArray) {\n return (inputArray[0] +\n 8 * inputArray[1] +\n 5 * inputArray[2] +\n 9 * inputArray[3] +\n 4 * inputArray[4] +\n 7 * inputArray[5] +\n 2 * inputArray[6] +\n 6 * inputArray[7] +\n 3 * inputArray[8] +\n 10 * inputArray[9]) % 11;\n }",
"public static int method_2711(int var0) {\r\n return var0 & 3;\r\n }",
"private int next(int index) {\n return (index + 2) & mask;\n }",
"public double wrapper(double n) {\n return -1 + (n + 1) % 2;\n }"
] | [
"0.67628896",
"0.66871893",
"0.64616966",
"0.64079404",
"0.6396509",
"0.6296189",
"0.6242035",
"0.61982423",
"0.6163757",
"0.6081585",
"0.6033838",
"0.60281765",
"0.6025952",
"0.5999121",
"0.59448165",
"0.5915215",
"0.58959466",
"0.5891087",
"0.5823554",
"0.5805677",
"0.5802605",
"0.5801436",
"0.5793874",
"0.579383",
"0.57873565",
"0.5762171",
"0.57545805",
"0.5743516",
"0.5737733",
"0.5725891",
"0.5721155",
"0.569246",
"0.5685626",
"0.5646885",
"0.56460625",
"0.5639567",
"0.5636709",
"0.563303",
"0.5610502",
"0.55935425",
"0.5591724",
"0.55890566",
"0.55707276",
"0.5559697",
"0.55541974",
"0.5541108",
"0.55399895",
"0.55274343",
"0.55182964",
"0.55171317",
"0.5513228",
"0.55127376",
"0.5511898",
"0.5511881",
"0.5510101",
"0.5493115",
"0.5486902",
"0.54802233",
"0.54801613",
"0.5459305",
"0.5443218",
"0.5424428",
"0.5419487",
"0.53979254",
"0.5396444",
"0.5388325",
"0.53702956",
"0.53669995",
"0.53657657",
"0.5357586",
"0.535209",
"0.5344993",
"0.53313696",
"0.53275913",
"0.53097117",
"0.530679",
"0.5300158",
"0.52836865",
"0.5278848",
"0.5268387",
"0.5266406",
"0.5248738",
"0.5244963",
"0.52438974",
"0.5240558",
"0.5240056",
"0.52382946",
"0.52377766",
"0.52377415",
"0.5236812",
"0.52292526",
"0.5223863",
"0.52160746",
"0.52105004",
"0.5208665",
"0.51981145",
"0.51972765",
"0.5192279",
"0.5187356",
"0.5184824",
"0.5182581"
] | 0.0 | -1 |
which routes this Station is a stop for protected L04Station [] neighbour; // neighbour Stations | public L04Station(String name) {
if (findByName(name)==null) {
setName(name);
stationList.add(this);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ArrayList<TTC> generateSegments() {\n if ((START_STATION instanceof Station) && (endStation instanceof Station)) {\n ArrayList<TTC> route = TTC.SUBWAY_LIST.get(NUMBER);\n if (route.contains(START_STATION) && route.contains(endStation)) {\n return generateSegmentsHelper(route);\n } else {\n return new ArrayList<>();\n }\n } else {\n ArrayList<TTC> route = TTC.BUS_MAP.get((START_STATION).getNUMBER());\n if (route.contains(START_STATION) && route.contains(endStation)) {\n return generateSegmentsHelper(route);\n } else {\n return new ArrayList<>();\n }\n }\n }",
"public ArrayList<Coordinate> transportLinePath()\r\n {\r\n Coordinate next_street1 = null;\r\n Coordinate next_street2 = null;\r\n Street next_street = null;\r\n ArrayList<Coordinate> line_coordinates = new ArrayList<Coordinate>();\r\n\r\n for (int i = 0; i < getStreetsMap().size(); i++)\r\n {\r\n Street s = getStreetsMap().get(i);\r\n Coordinate this_street1 = s.getCoordinates().get(0);\r\n Coordinate this_street2 = s.getCoordinates().get(2);\r\n\r\n if (i + 1 < getStreetsMap().size())\r\n {\r\n next_street = getStreetsMap().get(i+1);\r\n next_street1 = next_street.getCoordinates().get(0);\r\n next_street2 = next_street.getCoordinates().get(2);\r\n }\r\n else\r\n {\r\n break;\r\n }\r\n\r\n for (Stop stop : getStopsMap())\r\n {\r\n if (stop.getStreet().equals(s))\r\n {\r\n line_coordinates.add(stop.getCoordinate());\r\n }\r\n }\r\n\r\n if (s.getCoordinates().get(1) != null)\r\n {\r\n line_coordinates.add(s.getCoordinates().get(1));\r\n }\r\n\r\n //11\r\n if (this_street1.getX() == next_street1.getX() && this_street1.getY() == next_street1.getY())\r\n {\r\n line_coordinates.add(this_street1);\r\n }\r\n //12\r\n else if (this_street1.getX() == next_street2.getX() && this_street1.getY() == next_street2.getY())\r\n {\r\n line_coordinates.add(this_street1);\r\n }\r\n // 21\r\n else if (this_street2.getX() == next_street1.getX() && this_street2.getY() == next_street1.getY())\r\n {\r\n line_coordinates.add(this_street2);\r\n }\r\n //22\r\n else if (this_street2.getX() == next_street2.getX() && this_street2.getY() == next_street2.getY())\r\n {\r\n line_coordinates.add(this_street2);\r\n }\r\n\r\n }\r\n\r\n line_coordinates.add(getStopsMap().get(getStopsMap().size()-1).getCoordinate());\r\n return line_coordinates;\r\n }",
"@Test\r\n void findRouteDifferentLine() {\r\n List<Station> route = model.findRoute(9, 60);\r\n assertNotNull(route);\r\n assertEquals(10, route.size());\r\n assertEquals(\"SuffolkDowns\", route.get(0).getName());\r\n assertEquals(\"Broadway\", route.get(9).getName());\r\n }",
"public List<String> getNeighbors(String stationId) {\r\n\t\tList<String> res = new ArrayList<>();\r\n\t\tres.add(stationId);\r\n\t\t\r\n\t\tfor (int j = 1; j < edges.size(); j++) {\r\n\t\t\tString source = mapBuilder.getSubwayGraph().getEdgeSource(edges.get(j));\r\n\t\t\tString target = mapBuilder.getSubwayGraph().getEdgeTarget(edges.get(j));\r\n\t\t\t\r\n\t\t\tif(source.equals(stationId)) {\r\n\t\t\t\tres.add(target);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn res;\t\r\n\t}",
"private static int RouteAnalysis(int maxDistance, int finalDestination, ArrayList<Integer> gasStations) {\n\n int numStops = 0;\n int max = maxDistance;\n\n /*\n If the distance between the last gas station and the destination is greater than the maximum\n distance that the car can travel, the trip is considered to be impossible along this route and/or\n in this car. \n */\n if (finalDestination - gasStations.get(gasStations.size() - 1) > maxDistance) {\n return -1;\n }\n\n /*\n This process checks to see if there are any consecutive gas stations that are separated by a distance\n greater than the maximum distance that the car can travel on a single fill-up. If such a gap\n is found, the trip is considered to be impossible. \n */\n int x = 0;\n while (x + 1 < gasStations.size()) {\n if (gasStations.get(x + 1) - gasStations.get(x) > max) {\n return -1;\n }\n x++;\n }\n\n /*\n By this point, the trip is assumed to be possible. With this process the car will stop at the gas station\n before the gas station whose distance from the car's current location is greater than the car can travel\n on a single fill-up. \n */\n for (int i = 0; i < gasStations.size(); i++) {\n\n if (gasStations.get(i) > maxDistance) {\n /*\n Since all of the input data is relative to the car's starting position, the maximum distance\n that the car can travel is updated by adding to it the number of miles that the car has already\n traveled. For instance, if the car travels from mile 0 to a gas station located at mile 290, and\n the maximum distance that the car can travel is 400 miles, then from mile 290 the car can travel\n to mile 690. \n */\n maxDistance += gasStations.get(i - 1);\n numStops++;\n }\n\n }\n\n /*\n This last process essentially checks to see if the distance between the last gas station where the driver stopped\n and the final destination is greater than the maximum distance the car can travel. If it is, then the driver should\n stop at the last gas station on the route to fill up before proceeding to the final destination. \n */\n if (finalDestination - maxDistance > max) {\n maxDistance += gasStations.get(gasStations.size() - 1);\n numStops++;\n }\n\n return numStops;\n\n }",
"private Route calculate(String fromStation, String toStation) {\n\t\tif (stations==null){\r\n\t\t\tSystem.out.println(\"DEBUG RUN OF DIJKSTRA.\");\r\n\t\t\tstations = new ArrayList<Station>();\r\n\t\t\tcreateDebugMap(stations);\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Check if the stations exists\r\n\t\t */\r\n\t\tStation startStation = null, endStation = null;\r\n\r\n\t\t// Find starting station\r\n\t\tfor (Station thisStation : stations) {\r\n\t\t\tif (thisStation.stationName.equals(fromStation)) {\r\n\t\t\t\tSystem.out.println(\"Found startStaion in the Database\");\r\n\t\t\t\tstartStation = thisStation;\r\n\t\t\t}\r\n\t\t\tif (thisStation.stationName.equals(toStation)) {\r\n\t\t\t\tSystem.out.println(\"Found endStation in the Database\");\r\n\t\t\t\tendStation = thisStation;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Station not found. Break\r\n\t\tif (startStation == null || endStation == null) {\r\n\t\t\tSystem.out.println(\"Shit! One of the stations could not be found\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Declare the variables for the algorithm\r\n\t\t */\r\n\r\n\t\t// ArrayList for keeping track of stations we have visited.\r\n\t\tArrayList<Station> visitedStations = new ArrayList<Station>();\r\n\t\t// Array for the DijkstraStations. This type holds the current best cost and best link to it.\r\n\t\tArrayList<DijkstraStation> dijkstraStations = new ArrayList<DijkstraStation>();\r\n\r\n\t\t// The station we are examining neighbors from.\r\n\t\tDijkstraStation currentStation = new DijkstraStation(new Neighbor(startStation, 0, 0), 0, startStation);\r\n\r\n\t\t// PriorityQueue for sorting unvisited DijkstraStations.\r\n\t\tNeighBorDijktstraComparetor Dijkcomparator = new NeighBorDijktstraComparetor();\r\n\t\tPriorityQueue<DijkstraStation> unvisitedDijkstraStations;\r\n\t\tunvisitedDijkstraStations = new PriorityQueue<DijkstraStation>(100, Dijkcomparator);\r\n\r\n\t\t// Variable to keep track of the goal\r\n\t\tboolean goalFound = false; // did we find the goal yet\r\n\t\tint goalBestCost = Integer.MAX_VALUE; // did we find the goal yet\r\n\r\n\t\t// Add the start staion to the queue so that the loop will start with this staiton\r\n\t\tunvisitedDijkstraStations.add(currentStation);\r\n\t\tdijkstraStations.add(currentStation);\r\n\r\n\t\t/***************************\r\n\t\t * The Dijkstra algorithm loop.\r\n\t\t ***************************/\r\n\r\n\t\twhile (!unvisitedDijkstraStations.isEmpty()) {\r\n\t\t\t// Take the next station to examine from the queue and set the next station as the currentStation\r\n\t\t\tcurrentStation = unvisitedDijkstraStations.poll();\r\n\r\n\t\t\tSystem.out.println(\"\\n============= New loop passtrough =============\");\r\n\t\t\tSystem.out.println(\"Analysing neighbors of \" + currentStation.stationRef.stationName + \". Cost to this station is: \" + currentStation.totalCost);\r\n\r\n\t\t\t// Add visited so we dont visit again.\r\n\t\t\tvisitedStations.add(currentStation.stationRef);\r\n\r\n\t\t\t// break the algorithm if the current stations totalcost if bigger than the best cost of the goal\r\n\t\t\tif (goalBestCost < currentStation.totalCost) {\r\n\t\t\t\tSystem.out.println(\"Best route to the goal has been found. Best cost is: \" + goalBestCost\r\n\t\t\t\t\t\t+ \" (To reach current station is: \" + currentStation.totalCost + \")\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Check all neighbors from the currentStation to the neighBorQueue so we can examine them\r\n\t\t\tfor (Neighbor thisNeighbor : currentStation.stationRef.neighbors) {\r\n\r\n\t\t\t\t// Skip stations we have already visited\r\n\t\t\t\tif (!visitedStations.contains(thisNeighbor.stationRef)) {\r\n\t\t\t\t\t// If we havent seen this station before\r\n\t\t\t\t\t// Add it to the list of Dijkstrastations and to the PriorityQueue of unvisited stations\r\n\t\t\t\t\tif (getDijkstraStationByID(thisNeighbor.stationRef.stationid, dijkstraStations) == null) {\r\n\t\t\t\t\t\tDijkstraStation thisDijkstraStation = new DijkstraStation(thisNeighbor, currentStation.totalCost\r\n\t\t\t\t\t\t\t\t+ thisNeighbor.cost, currentStation.stationRef);\r\n\t\t\t\t\t\tdijkstraStations.add(thisDijkstraStation);\r\n\t\t\t\t\t\tunvisitedDijkstraStations.offer(thisDijkstraStation);\r\n\r\n\t\t\t\t\t\tif (thisNeighbor.stationRef.equals(endStation)) {\r\n\t\t\t\t\t\t\tgoalFound = true;\r\n\t\t\t\t\t\t\tgoalBestCost = (int) thisDijkstraStation.totalCost;\r\n\t\t\t\t\t\t\tSystem.out.println(\"Goal station found :) Cost to goal is: \" + goalBestCost);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tSystem.out.println(\"New station seen: \" + thisDijkstraStation);\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// Station has been seen before.\r\n\r\n\t\t\t\t\t\t// Get the station as a DijkstraStation from the array\r\n\t\t\t\t\t\tDijkstraStation thisDijkstraStation = getDijkstraStationByID(thisNeighbor.stationRef.stationid,\r\n\t\t\t\t\t\t\t\tdijkstraStations);\r\n\r\n\t\t\t\t\t\t// Check if the connection is better than the one we already know\r\n\t\t\t\t\t\tif (currentStation.totalCost + thisNeighbor.cost < thisDijkstraStation.totalCost) {\r\n\r\n\t\t\t\t\t\t\t// New best link found\r\n\t\t\t\t\t\t\tSystem.out.println(\"New best route found for \" + thisNeighbor.stationRef.stationName);\r\n\t\t\t\t\t\t\tSystem.out.println(\"Old cost:\" + thisDijkstraStation.totalCost + \", New cost: \"\r\n\t\t\t\t\t\t\t\t\t+ (currentStation.totalCost + thisNeighbor.cost));\r\n\r\n\t\t\t\t\t\t\t// update the cost and via station on the DijkstraStation\r\n\t\t\t\t\t\t\tthisDijkstraStation.updateBestLink((int) (currentStation.totalCost + thisNeighbor.cost),\r\n\t\t\t\t\t\t\t\t\tcurrentStation.stationRef, thisNeighbor);\r\n\r\n\t\t\t\t\t\t\t// if this is the goal station, update the totalCost\r\n\t\t\t\t\t\t\tif (thisNeighbor.stationRef.equals(endStation)) {\r\n\t\t\t\t\t\t\t\tgoalBestCost = (int) thisDijkstraStation.totalCost;\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Updated cost for the goal to : \" + goalBestCost);\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\r\n\t\t}// End while\r\n\r\n\t\t// Print the World:\r\n//\t\t System.out.println();\r\n//\t\t System.out.println(\"################# Printing the world ###################\");\r\n//\t\t for (DijkstraStation thisDijkstraStation : dijkstraStations) {\r\n//\t\t System.out.println(thisDijkstraStation.toString());\r\n//\t\t DijkstraStation tempStation = thisDijkstraStation;\r\n//\t\t System.out.print(\"BackTracking route =>\");\r\n//\t\t while (!tempStation.stationRef.equals(startStation)) {\r\n//\t\t System.out.print(\" \" + tempStation.cost + \" to \" + tempStation.viaStation.stationName + \" #\");\r\n//\t\t\r\n//\t\t tempStation = getDijkstraStationByID(tempStation.viaStation.stationid, dijkstraStations);\r\n//\t\t }\r\n//\t\t System.out.print(\" End\");\r\n//\t\t System.out.print(\"\\n\\n\");\r\n//\t\t }\r\n//\r\n\t\tif (goalFound) {\r\n\t\t\tSystem.out.println(\"Generating route to goal\");\r\n\t\t\t// create a route object with all the stations.\r\n\t\t\tRoute routeToGoal = new Route(fromStation, toStation);\r\n\t\t\t// get the goalStation as a DijkstraStation Type\r\n\t\t\tDijkstraStation goalStation = getDijkstraStationByID(endStation.stationid, dijkstraStations);\r\n\r\n\t\t\trouteToGoal.cost = goalStation.totalCost;\r\n\t\t\trouteToGoal.price = (int) goalStation.totalCost;\r\n\r\n\t\t\t// Find the route to the goal\r\n\t\t\tDijkstraStation tempStation = goalStation;\r\n\r\n\t\t\twhile (!tempStation.stationRef.equals(startStation)) {\r\n\t\t\t\t// Add the station to the route table\r\n\t\t\t\tSerializableStation thisStation = new SerializableStation(tempStation.cost, tempStation.cost,\r\n\t\t\t\t\t\ttempStation.stationRef.stationName, tempStation.stationRef.stationid);\r\n\t\t\t\t\r\n\t\t\t\t//Fix region string\r\n\t\t\t\tString regionString=\"\";\r\n\t\t\t\tfor (Integer regionID : tempStation.stationRef.region) {\r\n\t\t\t\t\tregionString.concat(regionID+ \",\");\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t\tthisStation.region = regionString.substring(0, regionString.length() - 1);\r\n\t\t\t\t\r\n\t\t\t\t//Add the station\r\n\t\t\t\trouteToGoal.route.add(0, thisStation);\r\n\t\t\t\t// Go to the previous station\r\n\t\t\t\ttempStation = getDijkstraStationByID(tempStation.viaStation.stationid, dijkstraStations);\r\n\t\t\t}\r\n\t\t\t// add the starting station\r\n\t\t\tSerializableStation thisStation = new SerializableStation(tempStation.stationRef.latitude, tempStation.stationRef.longitude, tempStation.stationRef.stationName,\r\n\t\t\t\t\ttempStation.stationRef.stationid);\r\n\t\t\trouteToGoal.route.add(0, thisStation);\r\n\r\n\t\t\t// print the route\r\n\t\t\t//System.out.println(\"Printing best route to the Goal:\\n\" + routeToGoal.toString());\r\n\r\n\t\t\treturn routeToGoal;\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}",
"public java.util.List<java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>> getRoute()\r\n {\r\n List<java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>> roads_map = new ArrayList<java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>>();\r\n java.util.AbstractMap.SimpleImmutableEntry<Street,Stop> entry = new java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>(null, null);\r\n\r\n for (Street s : streets_map)\r\n {\r\n if (s.getStops().isEmpty() == false)\r\n {\r\n for (int i = 0; i < s.getStops().size(); i++)\r\n {\r\n entry = new java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>(s,s.getStops().get(i));\r\n }\r\n\r\n }\r\n else\r\n {\r\n entry = new java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>(s,null);\r\n }\r\n\r\n roads_map.add(entry);\r\n\r\n }\r\n\r\n return roads_map;\r\n\r\n }",
"@Override public ArrayList<Location> neighbors(final Location id) {\n ArrayList<Location> neighbours = new ArrayList<>();\n for (Location direction : directions){\n\n Location position = new Location(direction.x + id.x, direction.y + id.y);\n\n if (inBounds(position) && isPassable(position))\n neighbours.add(position);\n }\n return neighbours;\n }",
"public Station[] getAdjacentStations(Station station)\n {\n //Locate the station's index in the list of stations.\n int station_index = -1;\n for (int i = 0; i < stations.length; ++i)\n {\n if (station == stations[i])\n {\n station_index = i;\n break;\n }\n }\n //If nothing found, return null. This station does not exist in the graph.\n if (station_index == -1)\n return null;\n\n //Iterate over the row in the matrix containing edges from this station.\n //Extract all stations to which edges extend.\n LinkedList<Station> adjacent_stations = new LinkedList<Station>();\n for (int i = 0; i < edges[station_index].length; ++i)\n {\n if (edges[station_index][i] && stations[i] != null)\n adjacent_stations.add(stations[i]);\n }\n\n return adjacent_stations.toArray(new Station[0]);\n }",
"List<ConnectingFlights> getPossibleRoutes(int loc_start_id, int loc_end_id);",
"public ArrayList<String> transportLinePathIDs()\r\n {\r\n Coordinate next_street1 = null;\r\n Coordinate next_street2 = null;\r\n Street next_street = null;\r\n ArrayList<String> line_coordinates_ids = new ArrayList<String>();\r\n\r\n for (int i = 0; i < getStreetsMap().size(); i++)\r\n {\r\n Street s = getStreetsMap().get(i);\r\n Coordinate this_street1 = s.getCoordinates().get(0);\r\n Coordinate this_street2 = s.getCoordinates().get(2);\r\n\r\n if (i + 1 < getStreetsMap().size())\r\n {\r\n next_street = getStreetsMap().get(i+1);\r\n next_street1 = next_street.getCoordinates().get(0);\r\n next_street2 = next_street.getCoordinates().get(2);\r\n }\r\n else\r\n {\r\n break;\r\n }\r\n\r\n for (Stop stop : getStopsMap())\r\n {\r\n if (stop.getStreet().equals(s))\r\n {\r\n line_coordinates_ids.add(stop.getId());\r\n }\r\n }\r\n\r\n if (s.getCoordinates().get(1) != null)\r\n {\r\n line_coordinates_ids.add(s.getId());\r\n }\r\n\r\n //11\r\n if (this_street1.getX() == next_street1.getX() && this_street1.getY() == next_street1.getY())\r\n {\r\n line_coordinates_ids.add(s.getId());\r\n }\r\n //12\r\n else if (this_street1.getX() == next_street2.getX() && this_street1.getY() == next_street2.getY())\r\n {\r\n line_coordinates_ids.add(s.getId());\r\n }\r\n // 21\r\n else if (this_street2.getX() == next_street1.getX() && this_street2.getY() == next_street1.getY())\r\n {\r\n line_coordinates_ids.add(s.getId());\r\n }\r\n //22\r\n else if (this_street2.getX() == next_street2.getX() && this_street2.getY() == next_street2.getY())\r\n {\r\n line_coordinates_ids.add(s.getId());\r\n }\r\n }\r\n\r\n line_coordinates_ids.add(getStopsMap().get(getStopsMap().size()-1).getId());\r\n return line_coordinates_ids;\r\n }",
"public String printRouteStops()\r\n {\r\n String route_output = \"-> \";\r\n for (Stop s : stops_map)\r\n {\r\n route_output = route_output + s.getId() + \" ->\";\r\n }\r\n\r\n return route_output;\r\n }",
"private void findStop(Airport departAPT, double distanceNeed, double maxRange){\n\t\t\tint stopIndex=-1;\r\n\t\t\tdouble stopDist=0;\r\n\t\t\tdouble stopToDestnDistance=999999999; //distance from depart to destination\r\n\t\t\tdouble startToStopDistance; //depart to stop distance\r\n\t\t\tdouble testDistance;\r\n\t\t\tString id;\r\n\r\n\t\t\tfor(int i=0; i<apt.size();++i){ //test every airport\r\n\t\t\t\t//cannot be destination or departing airport or dead end airport;\r\n\t\t\t\tid=apt.get(i).getID();\r\n\t\t\t\tif(id!=departAPT.getID() && id!=destnAPT.getID() && !deadEnd.contains(id)){\r\n\t\t\t\t\t//test avaliable fuel for this airplane type\r\n\t\t\t\t\tif(apt.get(i).getFuelType().contains(usePlane.getMatchType())){\r\n\t\t\t\t\t\tstartToStopDistance=findDistance(departAPT.getLat(),departAPT.getLon(),apt.get(i).getLat(),apt.get(i).getLon());\r\n\t\t\t\t\t\t//test if distance between depart and stop is in airplane's max travel range and if not same range as previous stop\r\n\t\t\t\t\t\tif(startToStopDistance<=maxRange && !stopAPTDist.contains(startToStopDistance)){\r\n\t\t\t\t\t\t\ttestDistance=findDistance(apt.get(i).getLat(),apt.get(i).getLon(),destnAPT.getLat(),destnAPT.getLon());\r\n\t\t\t\t\t\t\tif(testDistance<stopToDestnDistance){\r\n\t\t\t\t\t\t\t\tstopDist=startToStopDistance;\r\n\t\t\t\t\t\t\t\tstopIndex=i;\r\n\t\t\t\t\t\t\t\tstopToDestnDistance=testDistance;\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\tif(stopIndex!=-1){ //when stop is avaliable add this stop to info list\r\n\t\t\t\tstopAPT.add(apt.get(stopIndex));\r\n\t\t\t\tstopAPTDist.add(stopDist);\r\n\t\t\t\tif(stopToDestnDistance<=usePlane.getMaxRange()){ //if stop can reach destination, add final round and return to plan method\r\n\t\t\t\t\tstopAPT.add(destnAPT);\r\n\t\t\t\t\tstopAPTDist.add(findDistance(apt.get(stopIndex).getLat(),apt.get(stopIndex).getLon(),destnAPT.getLat(),destnAPT.getLon()));\r\n\t\t\t\t\tdeadEnd.clear();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse findStop(apt.get(stopIndex),stopToDestnDistance, usePlane.getMaxRange());\r\n\t\t\t}\r\n\t\t\telse { //when no stop is find, break the plan and clear everything\r\n\t\t\t\tif(stopAPT.isEmpty() || deadEnd.size()>5){\r\n\t\t\t\t\tstopAPT.clear();\r\n\t\t\t\t\tstopAPTDist.clear();\r\n\t\t\t\t\tdeadEnd.clear();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse{ //when stops routine cannot reach destination, clear all and start another path\r\n\t\t\t\tdeadEnd.add(departAPT.getID());\r\n\t\t\t\tstopAPT.clear();\r\n\t\t\t\tstopAPTDist.clear();\r\n\t\t\t\tif(startAPT.getFuelType().contains(usePlane.getMatchType())){\r\n\t\t\t\t\tfindStop(startAPT,dist,usePlane.getMaxRange());\r\n\t\t\t\t}else findStop(startAPT,dist,((fuelTank/usePlane.getFuelTank())*usePlane.getMaxRange()));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t\t}",
"public String[] obtainStops() {\n\n String[] stopsNone = { \"No stops found\" };\n String[] stopsArbutus = { \"Commons Dr. & Park Rd.\", \"Park Rd. & Poplar Ave.\", \"Hilltop Cir. & Commons Dr.\", \"Administration Dr. Bus Shelter\", \"Hilltop Cir. & Hilltop Rd.\", \"Hilltop Cir. & Walker Ave.\", \"Hilltop Cir. & Center Rd.\", \"Poplar Ave. & Stadium Lot\", \"TRC @ Linden Ave\", \"Westland Blvd. & Circle Dr.\", \"Westland Blvd. & Courtney Rd.\", \"Maiden Choice La. & Westland Blvd\", \"Maiden Choice La. & Warren Tree\", \"Maiden Choice La. & Wilkens Ave\", \"Maiden Choice La. & Grouse Ct\", \"Maiden Choice La. & Symmington Aven.\"};\n String[] stopsArundel = { \"Commons Dr. & Park Rd.\", \"Park Rd. & Poplar Ave.\", \"Hilltop Cir. & Commons Dr.\", \"BWI Marc Station\", \"Arundel Mills Mall Visitor Entrace #5\", \"BWI Marc Station\", \"Administration Dr. Bus Shelter\", \"Hilltop Circle & Hilltop Rd.\" };\n String[] stopsCatonsville = { \"Commons Dr. & Park Rd.\", \"Park Rd. & Poplar Ave.\", \"Hilltop Cir. & Commons Dr.\", \"Administration Dr. Bus Shelter\", \"Rolling Rd @YMCA\", \"Rolling Rd @Valley Rd (CCBC)\", \"Catonsville High @Bloomsbury Ave\", \"Mellor Ave & Bloomsbury Ave\" };\n String[] stopsDowntownA = { \"Commons Dr. & Park Rd\", \"Park Rd. & Poplar Ave.\", \"Hilltop Cir. & Commons Dr.\", \"Greyhound Station @ Haines\",\"MLK Blvd & Pratt St (UMB)\", \"Green St & Fayette St\", \"Green St & Lombard St (UMB)\" };\n\n if ( this.longName.toLowerCase().contains(\"Arbutus\".toLowerCase()) ) {\n return stopsArbutus;\n }\n if ( this.longName.contains(\"Arundel\") ) {\n return stopsArundel;\n }\n if ( this.longName.contains(\"Catonsville\") ) {\n return stopsCatonsville;\n }\n if ( this.longName.contains(\"Downtown\") ) {\n return stopsDowntownA;\n }\n\n return stopsNone;\n\n }",
"public Obs findStops(String[] towers, String[] tstamps, Hashtable<Integer, Vertex> towersXY) {\n\n\t\tDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t/**\n\t\t * Stops sets and time stamps for these stops\n\t\t */\n\t\tString stops = \"\";\n\t\tString tstops = \"\";\n\n\t\t/**\n\t\t * Buffers: <\\n buffer holds sequence of observations that did not meet\n\t\t * buffer clearance criterias.> <\\n tbuffer holds time stamps values\n\t\t * corresponding to those in the buffer.>\n\t\t */\n\t\tArrayList<String> buffer = new ArrayList<>();\n\t\tArrayList<String> tbuffer = new ArrayList<>();\n\n\t\tdouble max_distance = 0;\n\t\tint time_diff = 0;\n\t\tfor (int i = 0; i < towers.length; i++) {\n\t\t\tVertex a = towersXY.get(Integer.parseInt(towers[i]));\n\t\t\tfor (int j = 0; j < buffer.size(); j++) {\n\t\t\t\tVertex b = towersXY.get(Integer.parseInt(buffer.get(j)));\n\t\t\t\t// System.out.println(\"b\"+Integer.parseInt(buffer.get(j)));\n\t\t\t\tdouble tmp_distance = eculidean(a.getX(), b.getX(), a.getY(), b.getY());\n\t\t\t\tif (tmp_distance > max_distance) {\n\t\t\t\t\tmax_distance = tmp_distance;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tbuffer.add(towers[i]);\n\t\t\ttbuffer.add(tstamps[i]);\n\n\t\t\tif (max_distance > dist_th) {\n\n\t\t\t\ttry {\n\t\t\t\t\t/**\n\t\t\t\t\t * if the time exceeds timing threshold, then check the\n\t\t\t\t\t * distance between towers. If this distance less than the\n\t\t\t\t\t * distance threshold, then previous tower is the end of the\n\t\t\t\t\t * current trip.\n\t\t\t\t\t *\n\t\t\t\t\t */\n\t\t\t\t\tjava.util.Date sTime = formatter.parse(tbuffer.get(0));\n\t\t\t\t\tjava.util.Date eTime = formatter.parse(tbuffer.get(tbuffer.size() - 1));\n\t\t\t\t\tcal.setTime(sTime);\n\t\t\t\t\tint hour = cal.get(Calendar.HOUR);\n\t\t\t\t\tint minute = cal.get(Calendar.MINUTE);\n\n\t\t\t\t\tcal.setTime(eTime);\n\t\t\t\t\tint ehour = cal.get(Calendar.HOUR);\n\t\t\t\t\tint eminute = cal.get(Calendar.MINUTE);\n\n\t\t\t\t\ttime_diff = Math.abs((ehour - hour)) * HOUR + (eminute - minute);\n\n\t\t\t\t\tif (time_diff > time_th) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Add buffer mode to the stops\n\t\t\t\t\t\t */\n\t\t\t\t\t\tint index = modeIndex(buffer);\n\t\t\t\t\t\tif (index != -1) {\n\t\t\t\t\t\t\t// System.out.println(\"Find stop\");\n\t\t\t\t\t\t\tif (!stops.isEmpty()) {\n\t\t\t\t\t\t\t\tstops += CLM;\n\t\t\t\t\t\t\t\ttstops += CLM;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tstops += buffer.get(index);\n\t\t\t\t\t\t\ttstops += tbuffer.get(index);\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// else {\n\t\t\t\t\tbuffer = new ArrayList<>();\n\t\t\t\t\ttbuffer = new ArrayList<>();\n\t\t\t\t\t/**\n\t\t\t\t\t * Reset maximum distances\n\t\t\t\t\t */\n\t\t\t\t\tmax_distance = 0;\n\t\t\t\t\t// }\n\t\t\t\t} catch (ParseException ex) {\n\t\t\t\t\tLogger.getLogger(ObsTripsBuilder.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tif (!buffer.isEmpty()) {\n\t\t\t/**\n\t\t\t * Add buffer mode to the stops\n\t\t\t */\n\t\t\tint index = modeIndex(buffer);\n\t\t\tif (index != -1) {\n\t\t\t\t// System.out.println(\"Find from the remaining buffer\");\n\t\t\t\tif (!stops.isEmpty()) {\n\t\t\t\t\tstops += CLM;\n\t\t\t\t\ttstops += CLM;\n\t\t\t\t}\n\t\t\t\tstops += buffer.get(index);\n\t\t\t\ttstops += tbuffer.get(index);\n\n\t\t\t}\n\n\t\t}\n\n\t\t// System.out.println(\"stops:\\t\" + stops);\n\t\t// System.out.println(\"time stamps:\\t\" + tstops);\n\t\treturn new Obs(stops, tstops);\n\n\t}",
"public int getNumberInboundStops(){\n\t \treturn 0;\n\t \t\n\t }",
"@Test\r\n void findRouteSameLine() {\r\n List<Station> route = model.findRoute(1, 20);\r\n assertNotNull(route);\r\n assertEquals(6, route.size());\r\n assertEquals(\"OakGrove\", route.get(0).getName());\r\n assertEquals(\"NorthStation\", route.get(5).getName());\r\n }",
"public HashSet<String> getTrainsWithFinishedRoutes() {\n\t\tHashSet<String> finishedTrains = new HashSet<String>();\n\t\tfor (Train t : trains) {\n\t\t\tif (t.currentBlock == t.destination) {\n\t\t\t\tif (t.distanceTraveledOnBlock == ((DefaultBlock)blockData.get(t.currentBlock)).blockLength/2) { // it is at the station\n\t\t\t\t\tif ((t.remainingTravelTime == 0) && (t.currSpeed == 0)) {\n\t\t\t\t\t\tfinishedTrains.add(t.trainName);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (finishedTrains.size() > 0) {\n\t\t\treturn finishedTrains;\n\t\t}\n\t\treturn null;\n\t}",
"public MapCell[] getNeighbors(){\n\t\tMapCell[] neighbors = new MapCell[4];\n\t\tneighbors[0] = getNeighbor(\"east\");\n\t\tneighbors[1] = getNeighbor(\"north\");;\n\t\tneighbors[2] = getNeighbor(\"west\");\n\t\tneighbors[3] = getNeighbor(\"south\");\n\t\treturn neighbors;\n\t}",
"public ArrayList<Location> destinations()\n {\n ArrayList<Location> arr = new ArrayList<Location>();\n for(int i = 0; i < 360; i += 45)\n {\n sweep(arr, i);\n }\n return arr;\n }",
"public int[] djekstra(Router root, Router destination){\n //if router and destination same\n if (root.getID() == destination.getID()){\n int[] result = new int[2];\n result[0] = root.getID();\n result[1] = 0;\n hops.add(0);\n return result;\n }\n\n //Storing shortest path currently known\n int[] shortestPath = new int[size];\n //Storing the weights of the current router's connection to neighbors\n int[] currentNeighborConnectionWeight = new int[size];\n\n //First set all of the positions to 9999 (pseudo infinity)\n for (int i = 0; i < shortestPath.length;i++){\n shortestPath[i] = 9999;\n }\n\n // Set the distance to itself as 0, mark as visited\n shortestPath[root.getID()-1] = 0;\n root.visit();\n\n //For each connection the root has, set the shortestPath available to the weight to the neighbor\n for (Connection c : root.getConnections()){\n shortestPath[c.getDestination().getID()-1] = c.getWeight();\n }\n\n //Find the smallest router to start the algorithm\n //ID of smallest router, start the value with the first available option\n int smallestRouterID = 0;\n int smallestRouterWeight = 9999;\n //Router used for iterating\n Router current = null;\n //Storing path length\n int totalPathLength = 0;\n\n\n //Find the shortest available path link to start with\n for (int k = 0; k < shortestPath.length; k++){\n if ((shortestPath[k] < smallestRouterWeight) && (shortestPath[k] != 0)){\n // Check to see if dead end\n if (routers.get(k).getConnections().size() > 1){\n // id is pos+1\n smallestRouterID = k + 1;\n smallestRouterWeight = shortestPath[k];\n } else if (routers.get(k).getID() == destination.getID()){ //edge case\n // id is pos+1\n smallestRouterID = k + 1;\n smallestRouterWeight = shortestPath[k];\n }\n }\n }\n // add its weight\n totalPathLength += smallestRouterWeight;\n\n //This is where we start our first step\n current = getRouter(smallestRouterID);\n hops.add(current.getID());\n current.visit();\n //System.out.println(\"First step--> Router:\" + smallestRouterID + \" Weight to router from root:\" + smallestRouterWeight);\n //Now we loop\n Router firstRouter = current;\n boolean done = false;\n while (done == false){\n //Break case 1, we found the router\n if (current.getID() == destination.getID()){\n // check if root has available connections\n\n // set current to root and store totalPathLength to new variable && store hops in new array ArrayList\n // compare totals and store the one that's lower ++ hops list too\n // could we recursively call djekstra?\n done = true;\n // System.out.println(\"Router found\");\n break;\n }\n\n //Break case 2, all of the connections have been visited already\n boolean destinationAvailable = hasAvailableConnections(current);\n if (destinationAvailable == false){\n if(hasAvailableConnections(root)){\n current = root;\n hops.clear();\n totalPathLength= 0;\n } else {\n done = true;\n // System.out.println(\"v-- No more routers available\");\n break;\n }\n }\n\n //set all to 9999 to assume we cant see\n for (int a = 0; a < currentNeighborConnectionWeight.length; a++){\n currentNeighborConnectionWeight[a] = 9999;\n }\n\n //Recalculate for new path lengths\n for (Connection c : current.getConnections()){\n //Only calculate path for routers that havent been visited\n if (c.getDestination().getVisit() == false){\n currentNeighborConnectionWeight[c.getDestination().getID()-1] = c.getWeight();\n }\n }\n\n //Find the next step to take\n //Find the shortest available path link to start with\n smallestRouterID = 0;\n smallestRouterWeight = 9999;\n for (int b = 0; b < currentNeighborConnectionWeight.length; b++){\n if ((currentNeighborConnectionWeight[b] < smallestRouterWeight)){\n // id is pos+1\n smallestRouterID = b + 1;\n smallestRouterWeight = currentNeighborConnectionWeight[b];\n }\n }\n\n // add its weight\n totalPathLength += smallestRouterWeight;\n current = getRouter(smallestRouterID);\n hops.add(current.getID());\n current.visit();\n // System.out.println(\"Next shortest path--> Router: \" + current.getID() + \" Length from root:\" + totalPathLength);\n\n\n } // <--------------------------------------------------------------------------------End of while loop\n\n // returns <lasthop, pathcost>\n int[] result = new int[2];\n //Check and see if the path length is smaller then the original\n if (totalPathLength <= shortestPath[destination.getID()-1]){\n //System.out.println(\"Case new \" + firstRouter.getID());\n shortestPath[destination.getID()-1] = totalPathLength;\n result[0] = firstRouter.getID();\n result[1] = shortestPath[destination.getID()-1];\n } else {\n //root was shorter\n //System.out.println(\"Case old \" + root.getID());\n result[0] = root.getID();\n result[1] = shortestPath[destination.getID()-1];\n }\n // System.out.println(\"Next hop:\" + current.getID() + \" Total Distance:\" + shortestPath[destination.getID()-1]);\n\n //reset the visited list\n for (Router r: routers){\n r.unvisit();\n }\n return result;\n }",
"public void findNeighbours(ArrayList<int[]> visited , Grid curMap) {\r\n\t\tArrayList<int[]> visitd = visited;\r\n\r\n\t\t//System.out.println(\"FROM FIND NEIGHBOURS cur pos:\" +Arrays.toString(nodePos));\r\n\t\t//for(int j=0; j<visitd.size();j++) {\r\n\t\t\t//System.out.println(\"FROM FIND NEIGHBOURS\" +Arrays.toString(visited.get(j)));\r\n\t\t\t//System.out.println(\"FROM FIND NEIGHBOURS getvstd\" +Arrays.toString(visited.get(j)));\r\n\t\t//}\r\n\t\t//System.out.println(\"FROM FIND NEIGHBOURS\" +visited);\r\n\t\tCell left=curMap.getCell(0, 0);\r\n\t\tCell right=curMap.getCell(0, 0);\r\n\t\tCell upper=curMap.getCell(0, 0);\r\n\t\tCell down=curMap.getCell(0, 0);\r\n\t\t//the getStart() method returns x,y coordinates representing the point in x,y axes\r\n\t\t//so if either of [0] or [1] coordinate is zero then we have one less neighbor\r\n\t\tif (nodePos[1]> 0) {\r\n\t\t\tupper=curMap.getCell(nodePos[0], nodePos[1]-1) ; \r\n\t\t}\r\n\t\tif (nodePos[1] < M-1) {\r\n\t\t\tdown=curMap.getCell(nodePos[0], nodePos[1]+1);\r\n\t\t}\r\n\t\tif (nodePos[0] > 0) {\r\n\t\t\tleft=curMap.getCell(nodePos[0] - 1, nodePos[1]);\r\n\t\t}\r\n\t\tif (nodePos[0] < N-1) {\r\n\t\t\tright=curMap.getCell(nodePos[0]+1, nodePos[1]);\r\n\t\t}\r\n\t\t//for(int i=0;i<visitd.size();i++) {\r\n\t\t\t//System.out.println(Arrays.toString(visitd.get(i)));\t\r\n\t\t//}\r\n\t\t\r\n\t\t//check if the neighbor is wall,if its not add to the list\r\n\t\tif(nodePos[1]>0 && !upper.isWall() && (!exists(visitd,new int[] {nodePos[0], nodePos[1] - 1}))) {\r\n\t\t\t//Node e=new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] - 1},curMap);\r\n\t\t\t//if(e.getVisited()!=true) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] - 1}, curMap)); // father of the new nodes is this node\r\n\t\t\t//}\r\n\t\t}\r\n\t\tif(nodePos[1]<M-1 &&!down.isWall() && (!exists(visitd,new int[] {nodePos[0], nodePos[1] + 1}))){\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] + 1}, curMap));\r\n\t\t}\r\n\t\tif(nodePos[0]>0 && !left.isWall() && (!exists(visitd,new int[] {nodePos[0] - 1, nodePos[1]}))) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0] - 1, nodePos[1]}, curMap));\r\n\t\t}\r\n\t\tif(nodePos[0]<N-1 && !right.isWall() && (!exists(visitd,new int[] {nodePos[0] + 1, nodePos[1]}))) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0] + 1, nodePos[1]}, curMap));\r\n\t\t}\r\n\t\t//for(int i=0; i<NodeChildren.size();i++) {\r\n\t\t\t//System.out.println(\"Paidia sth find:\" + Arrays.toString(NodeChildren.get(i).getNodePos()));\r\n\t\t//}\r\n\t\t\t\t\t\t\r\n\t}",
"private void QueryDirections() {\n\t\tshowProgress(true, \"正在搜索导航路线...\");\n\t\t// Spawn the request off in a new thread to keep UI responsive\n\t\tfor (final FloorInfo floorInfo : floorList) {\n\t\t\tif (floorInfo.getPoints() != null\n\t\t\t\t\t&& floorInfo.getPoints().length >= 2) {\n\n\t\t\t\tThread t = new Thread() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t// Start building up routing parameters\n\t\t\t\t\t\t\tRouteTask routeTask = RouteTask\n\t\t\t\t\t\t\t\t\t.createOnlineRouteTask(\n\t\t\t\t\t\t\t\t\t\t\tfloorInfo.getRouteServerPath(),\n\t\t\t\t\t\t\t\t\t\t\tnull);\n\n\t\t\t\t\t\t\tRouteParameters rp = routeTask\n\t\t\t\t\t\t\t\t\t.retrieveDefaultRouteTaskParameters();\n\t\t\t\t\t\t\tNAFeaturesAsFeature rfaf = new NAFeaturesAsFeature();\n\t\t\t\t\t\t\t// Convert point to EGS (decimal degrees)\n\t\t\t\t\t\t\t// Create the stop points (start at our location, go\n\t\t\t\t\t\t\t// to pressed location)\n\t\t\t\t\t\t\t// StopGraphic point1 = new StopGraphic(mLocation);\n\t\t\t\t\t\t\t// StopGraphic point2 = new StopGraphic(p);\n\t\t\t\t\t\t\trfaf.setFeatures(floorInfo.getPoints());\n\t\t\t\t\t\t\trfaf.setCompressedRequest(true);\n\t\t\t\t\t\t\trp.setStops(rfaf);\n\n\t\t\t\t\t\t\t// Set the routing service output SR to our map\n\t\t\t\t\t\t\t// service's SR\n\t\t\t\t\t\t\trp.setOutSpatialReference(wm);\n\t\t\t\t\t\t\trp.setFindBestSequence(true);\n\t\t\t\t\t\t\trp.setPreserveFirstStop(true);\n\t\t\t\t\t\t\tif (floorInfo.getEndPoint() != null) {\n\t\t\t\t\t\t\t\trp.setPreserveLastStop(true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Solve the route and use the results to update UI\n\t\t\t\t\t\t\t// when received\n\t\t\t\t\t\t\tfloorInfo.setRouteResult(routeTask.solve(rp));\n\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tmException = e;\n\t\t\t\t\t\t\t// mHandler.post(mUpdateResults);\n\t\t\t\t\t\t}\n\t\t\t\t\t\trouteIndex++;\n\t\t\t\t\t\tif (routeIndex >= routeCount) {\n\t\t\t\t\t\t\tmHandler.post(mSetCheckMap);\n\t\t\t\t\t\t\tmHandler.post(mUpdateResults);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\t// Start the operation\n\t\t\t\tt.start();\n\t\t\t}\n\t\t}\n\n\t}",
"private int findAllRoutesBetweenTowns(Town origin, \n\t\t\tTown destination, int weight, \n\t\t\tint maxDistance) {\n\t\tint routes = 0;\n\t\tif (this.routingTable.containsKey(origin) && \n\t\t\t\tthis.routingTable.containsKey(\n\t\t\t\t\t\tdestination)) {\n\n\t\t\tEdge edge = this.routingTable.get(origin);\n\t\t\twhile (edge != null) {\n\t\t\t\tweight += edge.weight;\n\t\t\t\tif (weight <= maxDistance) {\n\t\t\t\t\tif (edge.destination.equals(\n\t\t\t\t\t\t\tdestination)) {\n\t\t\t\t\t\troutes++;\n\t\t\t\t\t\troutes += \n\t\t\t\t\t\t\tfindAllRoutesBetweenTowns(\n\t\t\t\t\t\t\t\tedge.destination, \n\t\t\t\t\t\t\t\tdestination, weight, \n\t\t\t\t\t\t\t\tmaxDistance);\n\t\t\t\t\t\tedge = edge.next;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\troutes += \n\t\t\t\t\t\t\tfindAllRoutesBetweenTowns(\n\t\t\t\t\t\t\t\tedge.destination, \n\t\t\t\t\t\t\t\tdestination, weight, \n\t\t\t\t\t\t\t\tmaxDistance);\n\t\t\t\t\t\tweight -= edge.weight;\n\t\t\t\t\t}\n\t\t\t\t} else\n\t\t\t\t\tweight -= edge.weight;\n\n\t\t\t\tedge = edge.next;\n\t\t\t}\n\t\t} else {\n\t\t\tnoRouteException();\n\n\t\t}\n\t\treturn routes;\n\n\t}",
"public ArrayList<ArrayList<ModuleElement>> getAllShortestRoutes(Biochip grid, ModuleElement dest){\n\t\tArrayList<ArrayList<ModuleElement>> route_list = new ArrayList<ArrayList<ModuleElement>>(); \n\t\tArrayList<ModuleElement> crt_route = new ArrayList<ModuleElement>();\n\t\tdouble crt_value = grid.getCell(dest.x, dest.y).value; \n\t\tcrt_route.add(dest);\n\t\troute_list.add(crt_route);\n\t\t//this.printGrid(grid);\n\t\t//System.out.println(grid.getCell(dest.x, dest.y).value); \n\t\t//System.out.println(\"Get sh_route for dest = \" + dest.x + dest.y + \"crt_value=\" + crt_value); \n\n\t\twhile(crt_value>0){\n\t\t\tArrayList<ArrayList<ModuleElement>> new_route_list = new ArrayList<ArrayList<ModuleElement>>(); \n\t\t\tcrt_value --; \n\t\t\tfor (int k=0; k<route_list.size();k++){\n\t\t\t\t//System.out.println(\"k=\" + k); \n\t\t\t\tcrt_route = route_list.get(k); \n\t\t\t\tint i = crt_route.get(crt_route.size()-1).x;\n\t\t\t\tint j = crt_route.get(crt_route.size()-1).y;\n\t\t\t\t// neighbors\n\t\t\t\tif (j+1<grid.width){\n\t\t\t\t\tCell right_n = grid.getCell(i, j+1);\n\t\t\t\t\tArrayList<ModuleElement> r_route = this.createNewRoute(grid, crt_route, right_n, crt_value); \n\t\t\t\t\tif (r_route!=null) new_route_list.add(r_route); \t\n\t\t\t\t}\n\t\t\t\tif (j-1>=0) {\n\t\t\t\t\tCell left_n = grid.getCell(i, j-1);\n\t\t\t\t\tArrayList<ModuleElement> l_route = this.createNewRoute(grid, crt_route, left_n, crt_value); \n\t\t\t\t\tif (l_route!=null) new_route_list.add(l_route); \n\t\t\t\t} \n\t\t\t\tif (i-1>=0) {\n\t\t\t\t\tCell up_n = grid.getCell(i-1, j);\n\t\t\t\t\tArrayList<ModuleElement> u_route = this.createNewRoute(grid, crt_route, up_n, crt_value); \n\t\t\t\t\tif (u_route!=null) new_route_list.add(u_route); \n\t\t\t\t} \n\t\t\t\tif (i+1<grid.height) {\n\t\t\t\t\tCell down_n = grid.getCell(i+1, j);\n\t\t\t\t\tArrayList<ModuleElement> d_route = this.createNewRoute(grid, crt_route, down_n, crt_value); \n\t\t\t\t\tif (d_route!=null) new_route_list.add(d_route); \t\n\t\t\t\t} \n\t\t\t\t//System.out.println(\"new_route_list = \" + new_route_list); \n\t\t\t}\n\t\t\troute_list = new_route_list; \n\t\t}\n\t\t\n\t\treturn route_list; \n\t}",
"LaneController getStraightLaneController();",
"public int getNumberOutboundStops(){\n\t \treturn 0;\n\t \t\n\t \t\n\t }",
"public void trimRoutes(){\n Station firstStation = null;\n Station s = null;\n Link link = null;\n if (trainState instanceof TrainReady)\n s = ((TrainReady) trainState).getStation();\n if (trainState instanceof TrainArrive)\n link = ((TrainArrive) trainState).getLink();\n if (trainState instanceof TrainDepart)\n link = ((TrainDepart) trainState).getLink();\n\n if (trainState instanceof TrainReady){\n firstStation = s;\n } else if (trainState instanceof TrainArrive){\n firstStation = link.getTo();\n } else if (trainState instanceof TrainDepart){\n firstStation = link.getFrom();\n }\n\n Iterator<Route> routeIterator = routes.iterator();\n while (routeIterator.hasNext()) {\n Route route = routeIterator.next();\n Iterator<Link> iter = route.getLinkList().iterator();\n while (iter.hasNext()){\n Link track = iter.next();\n if (!track.getFrom().equals(firstStation))\n iter.remove();\n else\n break;\n }\n if (route.getLinkList().size() == 0) {\n routeIterator.remove();\n }\n }\n }",
"private static int numBusesToDestination(int[][] routes, int S, int T) {\n if (routes == null || routes.length == 0) {\n return 0;\n }\n\n if (S == T) {\n return 0;\n }\n\n // map a stop to routes\n // 1 -> 0, stop 1 belongs to route 0\n // 7 -> 0, 1 stop 7 belongs to route 0 and 1\n Map<Integer, List<Integer>> graph = new HashMap<>();\n for (int i = 0; i < routes.length; i++) {\n for (int stop: routes[i]) {\n if (!graph.containsKey(stop)) {\n graph.put(stop, new ArrayList<>());\n }\n graph.get(stop).add(i); // stop, routeid\n }\n }\n\n Queue<Integer> queue = new LinkedList<>(); // bus stop\n Set<Integer> visited = new HashSet<>(); // visited routes\n\n queue.offer(S);\n\n int level = 1;\n\n while (!queue.isEmpty()) {\n int size = queue.size();\n\n for (int i = 0; i < size; i++) {\n int cur = queue.poll(); // current stop\n\n // get all routes available from the current stop\n for (int routeId: graph.get(cur)) {\n if (!visited.contains(routeId)) {\n visited.add(routeId);\n\n // get all stops from this route\n for (int stop: routes[routeId]) {\n if (stop == T) {\n return level;\n }\n queue.offer(stop);\n }\n }\n }\n }\n level++;\n }\n\n return -1;\n }",
"public RoadInterface getConnectedRoad (Direction dir) {\n if (dirOne == dir) {\n return (interOne);\n } else if (dirTwo == dir) {\n return (interTwo);\n } else {\n return (null);\n }\n }",
"public static ArrayList<Position> mapRoute(ArrayList<Port> ports, Robot robot) {\n\t\t// temporary ArrayList\n\t\tArrayList<Position> route = new ArrayList<Position>();\n\t\t// Create copy of port array\n\t\tArrayList<Port> portsTemp = new ArrayList<Port>();\n\t\tportsTemp.addAll(ports);\n\t\t// Add start position to the \"route list\"\n\t\troute.add(robot.getMiddle());\n\t\t// variables to store distance measurements \n\t \tint d0, d1; \n\t\t// index on the array of the closest point\n\t\tint index = 0; \n\n\t\tfor (int i = 0; i < ports.size(); i++) {\n\t\t\t// distance between latest added position, and first in position in the portTemp array - base case\n\t\t\td0 = route.get(route.size()-1).calculateDistance(portsTemp.get(0).getIn());\n\t\t\t// index of the first element\n\t\t\tindex = 0;\n\n\t\t\t// find the index of the closest in position\n\t\t\tfor(int j = 1; j < portsTemp.size(); j++) {\n\t\t\t\t// distance between the latest added position in the route list and next in position in the portsTemp array\n\t\t\t\td1 = route.get(route.size()-1).calculateDistance(portsTemp.get(j).getIn());\n\n\t\t\t\tif (d1 < d0) {\n\t\t\t\t\td0 = d1;\n\t\t\t\t\tindex = j;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// add the in position and out position to the \"route list\"\n\t\t\troute.add(portsTemp.get(index).getIn());\n\t\t\troute.add(portsTemp.get(index).getOut());\n\t\t\t// remove the port (in and out) from the list - it should only appear in the \"route list\" once\n\t\t\tportsTemp.remove(index);\n\t\t}\n\t\tif (robot.getBack().calculateDistance(route.get(1)) < robot.getFront().calculateDistance(route.get(1))) {\n\t\t\troute.remove(1);\n\t\t\troute.remove(2);\n\t\t}\n\t\tif (robot.getFront().calculateDistance(route.get(1)) < 25) {\n\t\t\troute.remove(1);\n\t\t} \n\t\t\n\t\treturn route;\n\t}",
"List<Direction> getValidDirectionsForMovement();",
"private void findWay(MazeCell[] surrounds) {\r\n for (int i = 0; i < surrounds.length; i++) {\r\n if (surrounds[i].isMovable && surrounds[i].getFootprint()) {\r\n int d = faceDir.ordinal();\r\n faceDir = Direction.values()[(d + i) % 4];\r\n }\r\n }\r\n }",
"protected abstract Deque<Vertex<AtomicReference>> getVehicleRoute(int entry, int exit);",
"private SkeletonNode [][] getStationaryNodes() {\r\n\r\n\t\t/**-------------------------------------------------------------**/\r\n\t\t/**=============================================================**/\r\n\t\t/**Get the skeleton centroid for each frame**/\r\n\t\tcentroid_per_frame = new double[skeletonNodes.length][3];\r\n\t\tfor(int i = 0; i < skeletonNodes.length; i++) {\r\n\t\t\tdouble [] centroid_i = new double[]{0,0,0};\r\n\t\t\tdouble node_counter = 0;\r\n\t\t\t\r\n\t\t\tSkeletonNode[] root_iter = skeletonNodes[i].getIterator();\r\n\t\t\tfor(int j = 0; j < root_iter.length; j++) {\r\n\t\t\t\tcentroid_i = VectorTools.add(centroid_i, root_iter[j].getPoint());\r\n\t\t\t\tnode_counter++;\r\n\t\t\t}\r\n\r\n\t\t\tcentroid_i = VectorTools.mult((1.0/node_counter), centroid_i);\r\n\t\t\tcentroid_per_frame[i] = centroid_i;\r\n\t\t}\r\n\t\t/**-------------------------------------------------------------**/\r\n\t\t/**=============================================================**/\r\n\t\t/**=============================================================**/\r\n\t\t/**-------------------------------------------------------------**/\r\n\t\t/**Modify the skeletons within each frame,\r\n\t\t * subtracting the centroid from each point**/\r\n\t\tfor(int i = 0; i < skeletonNodes.length; i++) {\r\n\t\t\tSkeletonNode[] root_iter = skeletonNodes[i].getIterator();\r\n\t\t\tfor(int j = 0; j < root_iter.length; j++) {\r\n\t\t\t\tdouble [] temp_point = root_iter[j].getPoint();\r\n\t\t\t\tdouble [] mod_point = VectorTools.sub(temp_point, centroid_per_frame[i]);\r\n\t\t\t\troot_iter[j].setPoint(mod_point);\r\n\t\t\t}\r\n\t\t}\r\n\t\t/**-------------------------------------------------------------**/\r\n\t\t/**=============================================================**/\r\n\t\t/**=============================================================**/\r\n\t\t/**-------------------------------------------------------------**/\r\n\t\t/**Calculate the displacement of each node in each\r\n\t\t * skeleton in each frame. Displacement is based\r\n\t\t * on the node in current frame, nodes in two previous\r\n\t\t * frames, and nodes in two upcoming frames**/\r\n\t\tint group_size = ControlVariables.third_level_disp_filter_size;\r\n\t\tint group_size_half = (group_size/2)+(group_size % 2);\r\n\t\tfor(int i = 0; i < skeletonNodes.length; i++) {\r\n\r\n\t\t\t/**-----------------------------------------------------**/\r\n\t\t\t/**|||||||||||||||||||||||||||||||||||||||||||||||||||||**/\r\n\t\t\tSkeletonNode [] root_iter = skeletonNodes[i].getIterator();\r\n\t\t\tint total_filter_size_i =\r\n\t\t\t\t\t(group_size_half*2) +\r\n\t\t\t\t\t(Math.min(i-group_size_half, 0)) +\r\n\t\t\t\t\t(Math.min(skeletonNodes.length - (i+group_size_half+1), 0));\r\n\t\t\t/**-----------------------------------------------------**/\r\n\t\t\t/**|||||||||||||||||||||||||||||||||||||||||||||||||||||**/\r\n\t\t\t/**-----------------------------------------------------**/\r\n\t\t\tfor(int k = 0; k < root_iter.length; k++) {\r\n\r\n\t\t\t\t/**---------------------------------------------**/\r\n\t\t\t\t/**<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<**/\r\n\t\t\t\tString next_root_name = root_iter[k].getName();\r\n\r\n\t\t\t\tint filter_spread_counter = 0;\r\n\t\t\t\tdouble [] disp_sum = new double[]{0,0,0};\r\n\t\t\t\t/**---------------------------------------------**/\r\n\t\t\t\t/**<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<**/\r\n\t\t\t\t/**---------------------------------------------**/\r\n\t\t\t\tfor(int j = i-group_size_half; j < i; j++) {\r\n\t\t\t\t\tif(j < 0) continue;\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tdouble [] temp_point_a = skeletonWrappers[j].getFromHash(next_root_name).getPoint();\r\n\t\t\t\t\t\tdouble [] temp_point_b = skeletonWrappers[j+1].getFromHash(next_root_name).getPoint();\r\n\t\t\t\t\t\tdouble [] temp_disp = VectorTools.sub(temp_point_b,temp_point_a);\r\n\r\n\t\t\t\t\t\tdisp_sum = VectorTools.add(disp_sum, temp_disp);\r\n\t\t\t\t\t\tfilter_spread_counter++;\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/**<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<**/\r\n\t\t\t\t/**---------------------------------------------**/\r\n\t\t\t\tfor(int j = i; j < i+group_size_half; j++) {\r\n\t\t\t\t\tif((j+1) >= skeletonWrappers.length) continue;\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tdouble [] temp_point_a = skeletonWrappers[j].getFromHash(next_root_name).getPoint();\r\n\t\t\t\t\t\tdouble [] temp_point_b = skeletonWrappers[j+1].getFromHash(next_root_name).getPoint();\r\n\t\t\t\t\t\tdouble [] temp_disp = VectorTools.sub(temp_point_b,temp_point_a);\r\n\r\n\t\t\t\t\t\tdisp_sum = VectorTools.add(disp_sum, temp_disp);\r\n\t\t\t\t\t\tfilter_spread_counter++;\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/**<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<**/\r\n\t\t\t\t/**---------------------------------------------**/\r\n\t\t\t\tif(total_filter_size_i != filter_spread_counter) {\r\n\t\t\t\t\tSystem.out.println(\"A1278\");System.exit(1);\r\n\t\t\t\t}\r\n\t\t\t\tdisp_sum = VectorTools.mult((1.0/(filter_spread_counter+0.0)), disp_sum);\r\n\t\t\t\troot_iter[k].setDisplacement(disp_sum);\r\n\t\t\t\t/**<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<**/\r\n\t\t\t\t/**---------------------------------------------**/\r\n\t\t\t}\r\n\t\t\t/**|||||||||||||||||||||||||||||||||||||||||||||||||||||**/\r\n\t\t\t/**-----------------------------------------------------**/\r\n\t\t}\r\n\t\t/**-------------------------------------------------------------**/\r\n\t\t/**=============================================================**/\r\n\t\t/**=============================================================**/\r\n\t\t/**-------------------------------------------------------------**/\r\n\t\t/**Go through all the skeletons and store all the displacement in\r\n\t\t * one array, to be later used for standard deviation calculation*/\r\n\t\tFileWriter f = null;\r\n\t\ttry {f = new FileWriter(\"x.txt\");} \r\n\t\tcatch (IOException e1) {e1.printStackTrace();}\r\n\t\tBufferedWriter bf = new BufferedWriter(f);\r\n\t\t\r\n\t\tdouble [] stds_per_frame = new double[skeletonNodes.length];\r\n\t\tfor(int i = 0; i < skeletonNodes.length; i++) {\r\n\r\n\t\t\tSkeletonNode [] root_iter = skeletonNodes[i].getIterator();\r\n\t\t\tdouble [] i_displacements = new double[root_iter.length];\r\n\r\n\t\t\tfor(int j = 0; j < root_iter.length; j++){\r\n\t\t\t\ttry {bf.write(VectorTools.mag(root_iter[j].getDisplacement())+\"\\t\\t\");}\r\n\t\t\t\tcatch (IOException e) {e.printStackTrace();System.out.println(\"A89791\");System.exit(1);}\r\n\t\t\t\ti_displacements[j] = (VectorTools.mag(root_iter[j].getDisplacement()));\r\n\t\t\t}\r\n\r\n\t\t\ttry {bf.write(\";\\n\");}\r\n\t\t\tcatch (IOException e) {e.printStackTrace();System.out.println(\"N7234\");System.exit(1);}\r\n\t\t\tstds_per_frame[i] = PCATools.getStdDev(i_displacements);\r\n\t\t}\r\n\t\t/**-------------------------------------------------------------**/\r\n\t\t/**=============================================================**/\r\n\t\t/**-------------------------------------------------------------**/\r\n\t\t/**Find the nodes in each skeleton per frame\r\n\t\t * with displacement above a certain multiple\r\n\t\t * of standard deviation of all displacement**/\r\n\t\tSkeletonNode [][] stationary_nodes_per_frame =\r\n\t\t\t\tnew SkeletonNode[skeletonNodes.length][0];\r\n\t\tfor(int i = 0; i < skeletonNodes.length; i++) {\r\n\r\n\t\t\tVector<SkeletonNode> stationary_nodes_i = new Vector<SkeletonNode>();\r\n\t\t\tdouble i_std = stds_per_frame[i];\r\n\r\n\t\t\tSkeletonNode [] root_iter = skeletonNodes[i].getIterator();\r\n\t\t\tfor(int k = 0; k < root_iter.length; k++) {\r\n\r\n\t\t\t\tif(VectorTools.mag(root_iter[k].getDisplacement()) < ControlVariables.statDispThres*i_std) {\r\n\t\t\t\t\tstationary_nodes_i.add(root_iter[k]);\r\n\t\t\t\t\troot_iter[k].setStationary(true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tstationary_nodes_per_frame[i] = new SkeletonNode[stationary_nodes_i.size()];\r\n\t\t\tstationary_nodes_i.toArray(stationary_nodes_per_frame[i]);\r\n\t\t}\r\n\t\t/**-------------------------------------------------------------**/\r\n\t\t/**=============================================================**/\r\n\t\t/**-------------------------------------------------------------**/\r\n\t\treturn stationary_nodes_per_frame;\r\n\t\t/**=============================================================**/\r\n\t\t/**-------------------------------------------------------------**/\r\n\t}",
"public int getEndStation() {\n\t\treturn endStation;\n\t}",
"public Station[] getPathStations(Position startPos, Position targetPos)\r\n {\r\n assert startPos != null;\r\n assert targetPos != null;\r\n assert startPos.column() < metro.numberOfColumns;\r\n assert startPos.line() < metro.numberOfLines;\r\n assert targetPos.column() < metro.numberOfColumns;\r\n assert targetPos.line() < metro.numberOfLines;\r\n\r\n Station[] stations = new Station[2];\r\n\r\n // get the station near to the target.\r\n Station getOffStation = null;\r\n Station getOnStation = null;\r\n Track tmpTrack = null;\r\n double dist = Double.MAX_VALUE;\r\n double distToFirst = Double.MAX_VALUE;\r\n\r\n for (Track track : tracks)\r\n {\r\n LinkedList<Station> stationList = track.getStations();\r\n\r\n for (Station station : stationList)\r\n {\r\n double tmpDist = distance(station.getLocation(), targetPos);\r\n if (tmpDist < dist)\r\n {\r\n dist = tmpDist;\r\n getOffStation = station;\r\n tmpTrack = track;\r\n }\r\n }\r\n }\r\n\r\n // get the fist station to get on\r\n LinkedList<Station> stationList = tmpTrack.getStations();\r\n\r\n for (Station station : stationList)\r\n {\r\n double tmpDist = distance(station.getLocation(), startPos);\r\n if (tmpDist < distToFirst)\r\n {\r\n distToFirst = tmpDist;\r\n getOnStation = station;\r\n }\r\n }\r\n\r\n stations[0] = getOnStation;\r\n stations[1] = getOffStation;\r\n\r\n return stations;\r\n }",
"private Map<Integer, List<Integer>> getConnectedStationsInfo(final Integer stationId) {\n\n if (!busRoutesMap.containsKey(stationId)) {\n busRoutesMap.put(stationId, new HashMap<>());\n }\n\n return busRoutesMap.get(stationId);\n }",
"public String getToStation();",
"protected Cell[] getNeighbours() {\r\n\t\treturn this.neighbours;\r\n\t}",
"private LinkedList<int[]> neighborFinder(){\n LinkedList<int[]> neighborhood= new LinkedList<>();\n int[] curr_loc = blankFinder();\n int x = curr_loc[0];\n int y = curr_loc[1];\n if(x >0){\n neighborhood.add(new int[]{x-1, y});\n }\n if(x < n-1){\n neighborhood.add(new int[]{x+1, y});\n }\n if(y > 0){\n neighborhood.add(new int[]{x, y-1});\n }\n if(y < n-1) {\n neighborhood.add(new int[]{x, y+1});\n }\n\n\n return neighborhood;\n }",
"public org.landxml.schema.landXML11.Station xgetIntersectRoadwayPI()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.Station target = null;\r\n target = (org.landxml.schema.landXML11.Station)get_store().find_attribute_user(INTERSECTROADWAYPI$22);\r\n return target;\r\n }\r\n }",
"public static RoadSegment getRoadSegment(String freeway, String direction, String onOffKey)\n\t{\n\t\tif(direction.equalsIgnoreCase(\"north\"))\n\t\t{\n\t\t\tif(freeway.equalsIgnoreCase(\"101\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(N101.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn N101.getRoadSegAt(i);\n\t\t\t\t\n\t\t\t}\n\t\t\telse //if(freeway.equalsIgnoreCase(\"405\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(N405.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn N405.getRoadSegAt(i);\n\t\t\t}\n\t\t}\n\t\telse if(direction.equalsIgnoreCase(\"south\"))\n\t\t{\n\t\t\tif(freeway.equalsIgnoreCase(\"101\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(S101.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn S101.getRoadSegAt(i);\n\t\t\t\t\n\t\t\t}\n\t\t\telse //if(freeway.equalsIgnoreCase(\"405\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(S405.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn S405.getRoadSegAt(i);\n\t\t\t}\n\t\t}\n\t\telse if(direction.equalsIgnoreCase(\"east\"))\n\t\t{\n\t\t\tif(freeway.equalsIgnoreCase(\"10\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(E10.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn E10.getRoadSegAt(i);\n\t\t\t\t\n\t\t\t}\n\t\t\telse //if(freeway.equalsIgnoreCase(\"105\"))\n\t\t\t{\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(E105.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn E105.getRoadSegAt(i);\n\t\t\t}\n\t\t}\n\t\telse //if(direction.equalsIgnoreCase(\"west\"))\n\t\t{\n\t\t\tif(freeway.equalsIgnoreCase(\"10\"))\n\t\t\t{\n\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(W10.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn W10.getRoadSegAt(i);\n\t\t\t\t\n\t\t\t}\n\t\t\telse //if(freeway.equalsIgnoreCase(\"105\"))\n\t\t\t{\n\n\t\t\t\tint i = -1;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\ti += 1;\n\t\t\t\t} while(!(W105.getRoadSegAt(i).getKey()).equalsIgnoreCase(onOffKey));\n\t\t\t\t\n\t\t\t\treturn W105.getRoadSegAt(i);\n\t\t\t}\n\n\t\t}\n\t\n\t}",
"public List<Location> neighbors (Location pos);",
"public void createDebugMap(ArrayList<Station> stations) {\r\n\t\tStation stationValby = new Station(\"Valby\", 1);\r\n\t\tstations.add(stationValby);\r\n\r\n\t\tStation stationFrederiksund = new Station(\"Frederiksund\", 2);\r\n\t\tstations.add(stationFrederiksund);\r\n\r\n\t\tStation stationHerlev = new Station(\"Herlev\", 3);\r\n\t\tstations.add(stationHerlev);\r\n\r\n\t\tStation stationHvidovre = new Station(\"Hvidovre\", 4);\r\n\t\tstations.add(stationHvidovre);\r\n\r\n\t\tStation stationHumsum = new Station(\"Husum\", 5);\r\n\t\tstations.add(stationHumsum);\r\n\r\n\t\tStation stationIslev = new Station(\"Islev\", 6);\r\n\t\tstations.add(stationIslev);\r\n\r\n\t\tStation stationDanshoj = new Station(\"Danshoj\", 7);\r\n\t\tstations.add(stationDanshoj);\r\n\r\n\t\tStation stationSkovlunde = new Station(\"Skovlunde\", 8);\r\n\t\tstations.add(stationSkovlunde);\r\n\r\n\t\t// add neighbor connections\r\n\t\tstationValby.neighbors.add(new Neighbor(stationIslev, 4, 4));\r\n\r\n\t\tstationIslev.neighbors.add(new Neighbor(stationValby, 4, 4));\r\n\t\tstationIslev.neighbors.add(new Neighbor(stationHumsum, 8, 8));\r\n\t\tstationIslev.neighbors.add(new Neighbor(stationSkovlunde, 3, 3));\r\n\r\n\t\tstationHumsum.neighbors.add(new Neighbor(stationHerlev, 3, 3));\r\n\t\tstationHumsum.neighbors.add(new Neighbor(stationFrederiksund, 4, 4));\r\n\t\tstationHumsum.neighbors.add(new Neighbor(stationHvidovre, 2, 2));\r\n\t\tstationHumsum.neighbors.add(new Neighbor(stationDanshoj, 3, 3));\r\n\t\tstationHumsum.neighbors.add(new Neighbor(stationIslev, 8, 8));\r\n\r\n\t\tstationHerlev.neighbors.add(new Neighbor(stationHumsum, 3, 3));\r\n\t\tstationHerlev.neighbors.add(new Neighbor(stationFrederiksund, 2, 2));\r\n\r\n\t\tstationFrederiksund.neighbors.add(new Neighbor(stationHumsum, 4, 4));\r\n\t\tstationFrederiksund.neighbors.add(new Neighbor(stationHerlev, 2, 2));\r\n\t\tstationFrederiksund.neighbors.add(new Neighbor(stationHvidovre, 5, 5));\r\n\r\n\t\tstationHvidovre.neighbors.add(new Neighbor(stationHumsum, 2, 2));\r\n\t\tstationHvidovre.neighbors.add(new Neighbor(stationFrederiksund, 5, 5));\r\n\t\tstationHvidovre.neighbors.add(new Neighbor(stationDanshoj, 4, 4));\r\n\r\n\t\tstationDanshoj.neighbors.add(new Neighbor(stationHumsum, 3, 3));\r\n\t\tstationDanshoj.neighbors.add(new Neighbor(stationHvidovre, 5, 5));\r\n\t\tstationDanshoj.neighbors.add(new Neighbor(stationSkovlunde, 10, 10));\r\n\r\n\t\tstationSkovlunde.neighbors.add(new Neighbor(stationHumsum, 3, 3));\r\n\t\tstationSkovlunde.neighbors.add(new Neighbor(stationDanshoj, 10, 10));\r\n\t}",
"public void initialize() {\n northbound = new ArrayList<>(numStations);\n southbound= new ArrayList<>(numStations);\n eastbound= new ArrayList<>(numStations);\n westbound= new ArrayList<>(numStations);\n //the stations are created in the following order:\n // left to right going up, right, down, left\n\n\n //stations going north\n\n for (int i = 0; i < numStations; i++) {\n if(i < coloring[0].length) {\n northbound.add(new Station(i + 1, 2 * numStations + 1, coloring[0][i], Station.Direction.north));\n eastbound.add(new Station(0, 2 * numStations - (i), coloring[1][i], Station.Direction.east));\n southbound.add(new Station(numStations + 1 + i, 0, coloring[2][i], Station.Direction.south));\n westbound.add(new Station(numStations * 2 + 1, 1 + i, coloring[3][i], Station.Direction.west));\n }else{\n northbound.add(new Station(i + 1, 2 * numStations + 1, 0, Station.Direction.north));\n eastbound.add(new Station(0, 2 * numStations - (i), 0, Station.Direction.east));\n southbound.add(new Station(numStations + 1 + i, 0, 0, Station.Direction.south));\n westbound.add(new Station(numStations * 2 + 1, 1 + i, 0, Station.Direction.west));\n }\n }\n\n updateStationPositions();\n update();\n\n\n }",
"private void processNeighbors() {\n for(int i = 0; i < this.nextAvailPort; i++) {\n if(this.ports[i] == null) { continue; }\n System.out.println(this.ports[i].getRemoteRouterDesc().simulatedIPAddress);\n }\n }",
"java.util.List<rina.object.gpb.Neighbour_t.neighbor_t> \n getNeighborList();",
"double getStation();",
"@Override\n\t\tpublic boolean isStopNode(TraversalPosition tp) {\n\t\t\t// System.out.println( \"\\nVisited nodes: \" + count++);\n\t\t\tStop currentStop = cache.get(tp.currentNode());\n\t\t\tif (currentStop.getStation().equals(dest)) {\n\t\t\t\treturn true;\n\t\t\t} else if ((currentStop.getTime() > stopTime))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}",
"public Obs findStops_trips(String[] towers, String[] tstamps, Hashtable<Integer, Vertex> towersXY)\n\t\t\tthrows ParseException {\n\n\t\tDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t/**\n\t\t * Stops sets and time stamps for these stops\n\t\t */\n\t\tString stops = towers[0];\n\t\tString tstops = tstamps[0];\n\n\t\t/**\n\t\t * Buffers: <\\n buffer holds sequence of observations that did not meet\n\t\t * buffer clearance criterias.> <\\n tbuffer holds time stamps values\n\t\t * corresponding to those in the buffer.>\n\t\t */\n\t\tArrayList<String> buffer = new ArrayList<>();\n\t\tArrayList<String> tbuffer = new ArrayList<>();\n\n\t\tdouble max_distance = 0;\n\t\tint time_diff = 0;\n\t\tfor (int i = 0; i < towers.length; i++) {\n\t\t\tVertex a = towersXY.get(Integer.parseInt(towers[i]));\n\t\t\tfor (int j = 0; j < buffer.size(); j++) {\n\t\t\t\tVertex b = towersXY.get(Integer.parseInt(buffer.get(j)));\n\t\t\t\t// System.out.println(\"b\"+Integer.parseInt(buffer.get(j)));\n\t\t\t\tdouble tmp_distance = eculidean(a.getX(), b.getX(), a.getY(), b.getY());\n\t\t\t\tif (tmp_distance > max_distance) {\n\t\t\t\t\tmax_distance = tmp_distance;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tbuffer.add(towers[i]);\n\t\t\ttbuffer.add(tstamps[i]);\n\n\t\t\tif (max_distance > dist_th) {\n\n\t\t\t\t/**\n\t\t\t\t * if the time exceeds timing threshold, then check the distance\n\t\t\t\t * between towers. If this distance less than the distance\n\t\t\t\t * threshold, then previous tower is the end of the current\n\t\t\t\t * trip.\n\t\t\t\t *\n\t\t\t\t */\n\t\t\t\tjava.util.Date sTime = formatter.parse(tbuffer.get(0));\n\t\t\t\tjava.util.Date eTime = formatter.parse(tbuffer.get(tbuffer.size() - 1));\n\t\t\t\tcal.setTime(sTime);\n\t\t\t\tint hour = cal.get(Calendar.HOUR);\n\t\t\t\tint minute = cal.get(Calendar.MINUTE);\n\n\t\t\t\tcal.setTime(eTime);\n\t\t\t\tint ehour = cal.get(Calendar.HOUR);\n\t\t\t\tint eminute = cal.get(Calendar.MINUTE);\n\n\t\t\t\ttime_diff = Math.abs((ehour - hour)) * HOUR + (eminute - minute);\n\n\t\t\t\tif (time_diff > time_th) {\n\t\t\t\t\t// if (buffer.size() >= trip_length) {\n\t\t\t\t\tif (!stops.isEmpty()) {\n\t\t\t\t\t\tstops += CLM;\n\t\t\t\t\t\ttstops += CLM;\n\t\t\t\t\t}\n\t\t\t\t\t/**\n\t\t\t\t\t * Add start and end of the trips to the stop sequences\n\t\t\t\t\t */\n\t\t\t\t\tstops += buffer.get(buffer.size() - 1);\n\t\t\t\t\ttstops += tbuffer.get(tbuffer.size() - 1);\n\n\t\t\t\t\t// }\n\t\t\t\t}\n\t\t\t\t// else {\n\t\t\t\tbuffer = new ArrayList<>();\n\t\t\t\ttbuffer = new ArrayList<>();\n\t\t\t\t/**\n\t\t\t\t * Reset maximum distances\n\t\t\t\t */\n\t\t\t\tmax_distance = 0;\n\t\t\t\t// }\n\n\t\t\t}\n\n\t\t}\n\n\t\tif (!buffer.isEmpty()) {\n\t\t\t// if (buffer.size() >= trip_length) {\n\t\t\tif (!stops.isEmpty()) {\n\t\t\t\tstops += CLM;\n\t\t\t\ttstops += CLM;\n\t\t\t}\n\t\t\t/**\n\t\t\t * Add start and end of the trips to the stop sequences\n\t\t\t */\n\t\t\tstops += buffer.get(buffer.size() - 1);\n\t\t\ttstops += tbuffer.get(tbuffer.size() - 1);\n\n\t\t\t// }\n\t\t}\n\n\t\t// System.out.println(\"stops:\\t\" + stops);\n\t\t// System.out.println(\"time stamps:\\t\" + tstops);\n\t\treturn new Obs(stops, tstops);\n\n\t}",
"public ArrayList<Integer> neighNumbers() {\n ArrayList<Integer> neighNumbers = new ArrayList<Integer>();\n if(isValid(this.frame-10)) { neighNumbers.add(this.frame-10); }\n if(isValid(this.frame+10)) { neighNumbers.add(this.frame+10); }\n\n //Right edge\n if(this.frame % 10 == 0) {\n if(isValid(this.frame+9)) { neighNumbers.add(this.frame+9); }\n if(isValid(this.frame-1)) { neighNumbers.add(this.frame-1); }\n if(isValid(this.frame-11)) { neighNumbers.add(this.frame-11); }\n\n }\n\n //Left edge\n else if((this.frame -1) % 10 == 0) {\n if(isValid(this.frame-9)) { neighNumbers.add(this.frame-9); }\n if(isValid(this.frame+1)) { neighNumbers.add(this.frame+1); }\n if(isValid(this.frame+11)) { neighNumbers.add(this.frame+11); }\n }\n\n else {\n if(isValid(this.frame-11)) { neighNumbers.add(this.frame-11); }\n if(isValid(this.frame+11)) { neighNumbers.add(this.frame+11); }\n if(isValid(this.frame-1)) { neighNumbers.add(this.frame-1); }\n if(isValid(this.frame+1)) { neighNumbers.add(this.frame+1); }\n if(isValid(this.frame-9)) { neighNumbers.add(this.frame-9); }\n if(isValid(this.frame+9)) { neighNumbers.add(this.frame+9); }\n }\n\n return neighNumbers;\n }",
"public Observable<Stop> getEndPoints() {\n return loadRoutesData()\n .flatMap(availableRoutes ->\n Observable.from(availableRoutes.routes()))\n .flatMap(route -> Observable.from(route.segments()).last())\n .map(segment -> segment.stops().get(segment.stops().size() - 1));\n\n }",
"public void calculateSkiRoute() {\n\t\tfor(int i=0; i<rowSize; i++) {\n\t\t\tfor(int j=0; j<colSize; j++) {\n\t\t\t\tif(isSkiRouteInBound(i, j+1) && (skiMap[i][j] > skiMap[i][j+1])) {\n\t\t\t\t\tif(newSkiRoute != null)\n\t\t\t\t\t\tnewSkiRoute = null;\n\t\t\t\t\t\n\t\t\t\t\tnewSkiRoute = new SkiRoute(skiMap[i][j]);\n\t\t\t\t\tnewSkiRoute.addRoute(skiMap[i][j+1]);\n\t\t\t\t\tcalculateNextPossibleSkiRoute(i, j+1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(isSkiRouteInBound(i, j-1) && (skiMap[i][j] > skiMap[i][j-1])) {\n\t\t\t\t\tif(newSkiRoute != null)\n\t\t\t\t\t\tnewSkiRoute = null;\n\t\t\t\t\t\n\t\t\t\t\tnewSkiRoute = new SkiRoute(skiMap[i][j]);\n\t\t\t\t\tnewSkiRoute.addRoute(skiMap[i][j-1]);\n\t\t\t\t\tcalculateNextPossibleSkiRoute(i, j-1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(isSkiRouteInBound(i+1, j) && (skiMap[i][j] > skiMap[i+1][j])) {\n\t\t\t\t\tif(newSkiRoute != null)\n\t\t\t\t\t\tnewSkiRoute = null;\n\t\t\t\t\t\n\t\t\t\t\tnewSkiRoute = new SkiRoute(skiMap[i][j]);\n\t\t\t\t\tnewSkiRoute.addRoute(skiMap[i+1][j]);\n\t\t\t\t\tcalculateNextPossibleSkiRoute(i+1, j);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(isSkiRouteInBound(i-1, j) && (skiMap[i][j] > skiMap[i-1][j])) {\n\t\t\t\t\tif(newSkiRoute != null)\n\t\t\t\t\t\tnewSkiRoute = null;\n\t\t\t\t\t\n\t\t\t\t\tnewSkiRoute = new SkiRoute(skiMap[i][j]);\n\t\t\t\t\tnewSkiRoute.addRoute(skiMap[i-1][j]);\n\t\t\t\t\tcalculateNextPossibleSkiRoute(i-1, j);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"public List<Tile> getNeighbours() {\n \r\n return neighbours;\r\n }",
"public int getStationIdx() {\n return stationIdx;\n }",
"public ArrayList getStops(String route, int direction){\r\n // Will hold all the stops returned from query\r\n ArrayList stopDataList = new ArrayList();\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n int route_id = getData.getInt(0);\r\n final String query = \"select distinct Stops.Stop_Name \" +\r\n \"from Trips join \" +\r\n \"Calendar on Trips.Service_Id=Calendar._Id join \" +\r\n \"Routes on Trips.Route_Id=Routes._Id join \" +\r\n \"Stop_Times on Trips._Id=Stop_Times.Trip_Id JOIN \" +\r\n \"Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id= \" + route_id + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"AND direction_id = \" + direction;\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n // the data count is 0 when a route is not in service on a particular day\r\n if(getData.getCount() == 0){\r\n stopDataList.add(\"No Stops Available Today For This Route\");\r\n return stopDataList;\r\n }else{\r\n while (getData.moveToNext()){\r\n stopDataList.add(getData.getString(0));\r\n }\r\n }\r\n\r\n getData.close();\r\n\r\n return stopDataList;\r\n }",
"public List<Integer> getNeighbourIds() {\n List<Integer> neighbours = new ArrayList<>();\n // get references from the neighbouring cells.\n for (VoronoiHalfEdge halfEdge : halfEdges) {\n VoronoiEdge edge = halfEdge.getEdge();\n if (edge.getLeftSite() != null && edge.getLeftSite().getIdentifier() != site.getIdentifier()) {\n neighbours.add(edge.getLeftSite().getIdentifier());\n } else if (edge.getRightSite() != null && edge.getRightSite().getIdentifier() != site.getIdentifier()) {\n neighbours.add(edge.getRightSite().getIdentifier());\n }\n }\n return neighbours;\n }",
"public boolean isConnectedPort() {\n for (Tile t : getTile().getSurroundingTiles(1)) {\n if (!t.isLand() && t.isHighSeasConnected()) return true;\n }\n return false;\n }",
"public List<AbstractMap.SimpleImmutableEntry<Stop, Integer>> getStops() { return stops;}",
"public ArrayList<Node> getLuasNodes(ArrayList<Node> initialList, LatLng startLocation, LatLng EndLocation){\n ArrayList<Node> luasStopList = nodeMinimisation.findMatchingLuasStops(initialList,startLocation,EndLocation);\n for(Node bus : luasStopList){\n System.out.println(\"stop is: \"+bus.getStopId());\n }\n return luasStopList;\n }",
"private Vector <BusStopInfo> findStopInfo(BusStopInterface busStop)\r\n {\r\n Vector <BusStopInfo> result = new Vector<BusStopInfo>();\r\n Awtobus checking = null;\r\n for(int i=0; i < lines.size(); i++)\r\n {\r\n checking = lines.get(i);\r\n int length = checking.busLine.getNumberOfBusStops();\r\n for(int j=0; j<length; j++)\r\n {\r\n if(busStop == checking.busLine.getBusStop(j))\r\n {\r\n result.add(new BusStopInfo(checking, j));\r\n }\r\n }\r\n }\r\n return result;\r\n }",
"org.landxml.schema.landXML11.LanesDocument.Lanes getLanesArray(int i);",
"List<Stop> getStops();",
"private void analyzeRoute(ArrayList<LatLng> route) {\n if (route == null) route = this.route;\n double runningDistance = 0;\n if (waypoints == null) waypoints = new Stack<>();\n\n ArrayList<LatLng> reverseRoute = new ArrayList<>();\n reverseRoute.addAll(route);\n Collections.reverse(reverseRoute);\n\n LatLng previousWaypoint = new LatLng(0, 0);\n Iterator<LatLng> it = reverseRoute.iterator();\n if (it.hasNext())\n previousWaypoint = it.next();\n\n mMap.addMarker(new MarkerOptions().position(previousWaypoint).title(\"Destination\").icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN)));\n\n while (it.hasNext()) {\n LatLng waypoint = it.next();\n double distance = directionsHelper.getDistanceInMeters(waypoint, previousWaypoint);\n runningDistance += distance;\n previousWaypoint = waypoint;\n waypoints.push(new Waypoint(waypoint.latitude, waypoint.longitude, runningDistance));\n }\n }",
"public int getLane();",
"public abstract List<AStarNode> getNeighbours();",
"@Override\r\n public List<INavMeshAtom> getNeighbours(NavMesh mesh) { \r\n List<INavMeshAtom> neighbours = new ArrayList<INavMeshAtom>();\r\n \r\n if(pId > 0) neighbours.add(new NavMeshPolygon(pId));\r\n \r\n for(OffMeshEdge oe : outgoingEdges) {\r\n neighbours.add(oe.getTo());\r\n }\r\n \r\n return neighbours;\r\n }",
"public Transition[] computeDistances(){\n\t\tSystem.out.println(\"Computing Transitions...\");\n\t\tTransition[] instanceTransitions = new Transition[nbBd*(nbBd-1)*4];\n\t\t//i sera l'indice de la cellule du tableau\n\t\tint i=0;\n\t\tfor (Strip aStrip : tabStrips){\n\t\t\tfor (Strip anotherStrip : tabStrips)\n\t\t\t\tif (aStrip != anotherStrip){\n\t\t\t\t\tdouble dist = Math.sqrt(Math.pow(anotherStrip.getX0() - aStrip.getX0(), 2) + Math.pow(aStrip.getY0() - anotherStrip.getY0(), 2));\n\t\t\t\t\tdist = 2*(Math.atan(dist/((double)2000*indAltitude)));\n\t\t\t\t\tinstanceTransitions[i] = new Transition(aStrip.getInd(), false, anotherStrip.getInd(), false, (int)((indDMin + (dist / indVr))*1000), i);\n\t\t\t\t\ti++;\n\t\t\t\t\tdist = Math.sqrt(Math.pow(anotherStrip.getX1() - aStrip.getX0(), 2) + Math.pow(aStrip.getY0() - anotherStrip.getY1(), 2));\n\t\t\t\t\tdist = 2*(Math.atan(dist/((double)2000*indAltitude)));\n\t\t\t\t\tinstanceTransitions[i] = new Transition(aStrip.getInd(), false, anotherStrip.getInd(), true, (int)((indDMin + (dist / indVr))*1000), i);\n\t\t\t\t\ti++;\n\t\t\t\t\tdist = Math.sqrt(Math.pow(anotherStrip.getX0() - aStrip.getX1(), 2) + Math.pow(aStrip.getY1() - anotherStrip.getY0(), 2));\n\t\t\t\t\tdist = 2*(Math.atan(dist/((double)2000*indAltitude)));\n\t\t\t\t\tinstanceTransitions[i] = new Transition(aStrip.getInd(), true, anotherStrip.getInd(), false, (int)((indDMin + (dist / indVr))*1000), i);\n\t\t\t\t\ti++;\n\t\t\t\t\tdist = Math.sqrt(Math.pow(anotherStrip.getX1() - aStrip.getX1(), 2) + Math.pow(aStrip.getY1() - anotherStrip.getY1(), 2));\n\t\t\t\t\tdist = 2*(Math.atan(dist/((double)2000*indAltitude)));\n\t\t\t\t\tinstanceTransitions[i] = new Transition(aStrip.getInd(), true, anotherStrip.getInd(), true, (int)((indDMin + (dist / indVr))*1000), i);\n\t\t\t\t\ti++;\n\t\t\t\t}//i != j\n\t\t\t//calcul de indMiddleTMin au fur et a mesure en utilisant des coefficients \n\t\t\t//pour eviter de depasser la taille maximale des int \n\t\t\tint divider = ((2*i) / ((nbBd-1) * 4));\n\t\t\tindMiddleTMin = ((indMiddleTMin * (divider - 2)) + (aStrip.indTMin0 + aStrip.indTMin1)) / divider;\n\t\t}//for\n\t\treturn instanceTransitions;\n\t}",
"private Obs findTrips(String[] towers, String[] tstamps, Hashtable<Integer, Vertex> towersXY, int dist_th,\n\t\t\tint time_th) {\n\t\t/**\n\t\t * Marks array contain index of the towers that represent the starting\n\t\t * observation of a new trip.\n\t\t */\n\t\tboolean[] marks = new boolean[tstamps.length];\n\t\tDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\n\t\tCalendar cal = Calendar.getInstance();\n\t\t/**\n\t\t * add 0 as the start of the first tower in this seq.\n\t\t */\n\t\t// int mIndex = 0;\n\t\t// marks[mIndex++] = 0;\n\n\t\tint current = 0;\n\t\tfor (int i = 1; i < tstamps.length; i++) {\n\t\t\ttry {\n\t\t\t\tString tstamp = tstamps[i];\n\n\t\t\t\t/**\n\t\t\t\t * if the time exceeds timing threshold, then check the distance\n\t\t\t\t * between towers. If this distance less than the distance\n\t\t\t\t * threshold, then previous tower is the end of the current\n\t\t\t\t * trip.\n\t\t\t\t *\n\t\t\t\t */\n\t\t\t\tDate sTime = formatter.parse(tstamps[current]);\n\t\t\t\tDate eTime = formatter.parse(tstamp);\n\t\t\t\tcal.setTime(sTime);\n\t\t\t\tint hour = cal.get(Calendar.HOUR);\n\t\t\t\tint minute = cal.get(Calendar.MINUTE);\n\n\t\t\t\tcal.setTime(eTime);\n\t\t\t\tint ehour = cal.get(Calendar.HOUR);\n\t\t\t\tint eminute = cal.get(Calendar.MINUTE);\n\n\t\t\t\tint diff = (ehour - hour) * HOUR + (eminute - minute);\n\t\t\t\t/**\n\t\t\t\t * check time difference with time threshold whatever the\n\t\t\t\t * distance between the starting tower\n\t\t\t\t */\n\t\t\t\tif (diff > time_th) {\n\t\t\t\t\t/**\n\t\t\t\t\t * Check distance, if it distance less than distance\n\t\t\t\t\t * threshold mark the current tower as the start of a new\n\t\t\t\t\t * trip.\n\t\t\t\t\t */\n\t\t\t\t\tVertex sTower = towersXY.get(Integer.parseInt(towers[i - 1]));\n\t\t\t\t\tVertex tower = towersXY.get(Integer.parseInt(towers[i]));\n\n\t\t\t\t\tif (eculidean(sTower.getX(), tower.getX(), sTower.getY(), tower.getY()) < dist_th) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Update the trip sequences\n\t\t\t\t\t\t */\n\t\t\t\t\t\tmarks[i] = true;\n\t\t\t\t\t\tcurrent = i;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t} catch (ParseException ex) {\n\t\t\t\tLogger.getLogger(ObsTripsBuilder.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t}\n\t\t}\n\n\t\t/**\n\t\t * construct observations and time stamps\n\t\t */\n\t\tString time = \"\";\n\t\tString obs = \"\";\n\t\t// time += tstamps[0];\n\t\t// obs += towers[0];\n\t\tfor (int i = 0; i < marks.length; i++) {\n\t\t\tif (marks[i]) {\n\n\t\t\t\ttime += RLM + tstamps[i];\n\t\t\t\tobs += RLM + towers[i];\n\t\t\t} else {\n\t\t\t\t// if (towers[i].equals(towers[i - 1])) {\n\t\t\t\t// System.out.println(towers[i] + \"\\t=\\t\" + towers[i - 1]);\n\t\t\t\t// continue;\n\t\t\t\t// }\n\t\t\t\t/**\n\t\t\t\t * Add comma separators\n\t\t\t\t */\n\t\t\t\tif (!time.isEmpty()) {\n\t\t\t\t\ttime += CLM;\n\t\t\t\t\tobs += CLM;\n\t\t\t\t}\n\t\t\t\ttime += tstamps[i];\n\t\t\t\tobs += towers[i];\n\t\t\t}\n\n\t\t}\n\t\treturn new Obs(obs, time);\n\t}",
"public List<Stop> getStopsMap()\r\n {\r\n return stops_map;\r\n }",
"public ArrayList<PathBlockingObstacle> getStationaryObstacles(){\r\n ArrayList<PathBlockingObstacle> obstacles = (ArrayList)obstaclesMap.get(gameObjects.getMoveableObjectsList().get(0).getObjectRadius());\r\n return obstacles;\r\n }",
"public static int findPath(int currentTime[],int tLeave[], int timeStation[][], int transferTime[][], int totalStations) {\n\t\tint numofLines = currentTime.length;\n\t\tif(numofLines != 2){\n\t\t\tSystem.err.println(\"Only two assembly line supported\");\n\t\t\treturn -1;\n\t\t}\n\t\t//Cost function array\n\t\tint f[][] = new int[numofLines][totalStations];\n\t\t//Station index back track array\n\t\tint i[][] = new int[numofLines][totalStations];\n\t\t\n\t\t//Final Cost and Final Station\n\t\tint finalCost = 0;\n\t\tint lastStation = 0;\n\t\t\n\t\t//Time for first station\n\t\tf[0][0] = currentTime[0]+timeStation[0][0];\n\t\tf[1][0] = currentTime[1]+timeStation[1][0];\n\t\t\n\t\t\n\t\tfor (int j = 1; j < totalStations; j++) {\n\t\t\t\n\t\t\t\n\t\t\tif((f[0][j-1] + timeStation[0][j]) <= (f[1][j-1]+ transferTime[1][j-1]+timeStation[0][j])){\n\t\t\t\tf[0][j]= f[0][j-1]+ timeStation[0][j];\n\t\t\t\ti[0][j] = 0;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tf[0][j]= f[1][j-1]+ transferTime[1][j-1]+timeStation[0][j];\n\t\t\t\ti[0][j]=1;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif(f[1][j-1] + timeStation[1][j] <= f[0][j-1]+ transferTime[0][j-1]+timeStation[1][j]){\n\t\t\t\tf[1][j]= f[1][j-1]+ timeStation[1][j];\n\t\t\t\ti[1][j] = 1;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tf[1][j]= f[0][j-1]+ transferTime[0][j-1]+timeStation[1][j];\n\t\t\t\ti[1][j] = 0;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tif((f[0][totalStations-1]+tLeave[0]) <= (f[1][totalStations-1]+tLeave[1] )){\n\t\t\tfinalCost = f[0][totalStations-1]+tLeave[0];\n\t\t\tlastStation = 0;\n\t\t}\n\t\telse{\n\t\t\tfinalCost = f[1][totalStations-1]+tLeave[1] ;\n\t\t\tlastStation = 1;\n\t\t}\t\n\t\n\t\tprintStation(lastStation,finalCost, i, totalStations);\n\t\treturn finalCost;\n\t}",
"private static int getDestination(int startStation, List<Integer> path) {\n\t\t\n\t\tint curStation = startStation;\n\t\tint[] availableLines = subway[curStation];\n\t\tint pathListIndx = 0;\n\t\t\n\t\tMyCustomKey potential = new MyCustomKey(startStation, path.subList(0, path.size()-1), closed);\n\t\tif(cache.containsKey(potential)) {\n\t\t\tcurStation = cache.get(potential);\n\t\t\tavailableLines = subway[curStation];\n\t\t\tpathListIndx = path.size() - 1;\n\t\t}\n\t\t\n\t\tfor(int indx = pathListIndx ; indx < path.size() ; indx++) {\n\t\t\tint nextLine = path.get(indx);\n\t\t\tcurStation = goToNextStation(curStation, availableLines, nextLine);\n\t\t\tavailableLines = subway[curStation];\n\t\t}\n\t\t\n\t\tMyCustomKey newKey = new MyCustomKey(startStation, Collections.unmodifiableList(path), closed);\n\t\tcache.put(newKey, curStation);\n\t\treturn curStation;\n\t}",
"public TrainRoute calculateShortestRoute(Train train) {\n\t\tSet<Integer> allVertices = layout.vertexSet();\n\t\tHashSet<Integer> visitedNodes = new HashSet<Integer>(layout.vertexSet().size());\n\t\tdouble totalWeight = ((DefaultBlock)blockData.get(train.currentBlock)).blockLength - train.distanceTraveledOnBlock;\n\t\tInteger currentBlock = null;\n\t\tInteger destinationBlock = null;\n\t\tLinkedList<Integer> path = new LinkedList<Integer>();\n\t\tHashMap<LinkedList<Integer>, Double> allSimplePaths = new HashMap<LinkedList<Integer>, Double>();\n\t\tfor (Integer i : allVertices) {\n\t\t\tif (i.equals(train.currentBlock)) {\n\t\t\t\tcurrentBlock = i;\n\t\t\t}\n\t\t\tif (i.equals(train.destination)) {\n\t\t\t\tdestinationBlock = i;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfindSimplePaths(currentBlock, destinationBlock, totalWeight, path, allVertices, visitedNodes, allSimplePaths);\n\t\t// Create a route object for all of the paths\n\t\tLinkedList<TrainRoute> allTrainRoutes = new LinkedList<TrainRoute>();\n\t\tfor (LinkedList<Integer> p : allSimplePaths.keySet()) {\n\t\t\tDouble pathDistance = allSimplePaths.get(p);\n\t\t\tp.add(0, currentBlock);\n\t\t\tpathDistance += ((DefaultBlock)blockData.get(currentBlock)).blockLength;\n\t\t\tpathDistance += ((DefaultBlock)blockData.get(p.get(p.size()-1))).blockLength/2;\n\t\t\t// create the TrainRoute Object\n\t\t\tdouble trainSpeed = ((DefaultBlock)blockData.get(train.currentBlock)).speedLimit;\n\t\t\tif (train.maxSpeed < trainSpeed) {\n\t\t\t\ttrainSpeed = train.maxSpeed;\n\t\t\t}\n\t\t\tdouble authority = train.authority;\n\t\t\tif (authority > pathDistance) {\n\t\t\t\tauthority = pathDistance;\n\t\t\t}\n\n\t\t\tallTrainRoutes.add(new TrainRoute(lineName, train.currentBlock, p, trainSpeed, authority, pathDistance));\n\t\t}\n\t\tCollections.sort(allTrainRoutes);\n\t\tblockToControllerMap.get(currentBlock).addRoute(allTrainRoutes.get(0));\n\t\treturn allTrainRoutes.get(0);\n\t}",
"public abstract ArrayList<String> neighbours(String vertLabel);",
"public void generateNeighborhood(TSPSolution s){\r\n\t\tint [] rounte = new int[problem.city_num+1];\r\n\t\tfor(int i=0;i<problem.city_num;i++) rounte[i] = s.route[i];\r\n\t\trounte[problem.city_num] = rounte[0];\r\n\t\tint [] pos = new int[problem.city_num];\r\n\t\tproblem.calculatePosition(rounte, pos);\r\n\t\tint pos1 = 0;\r\n\t\tint pos2 = 0;\r\n\t\tfor(int k=0;k<problem.city_num;k++){\r\n\t\t\tint i = k;\r\n\t\t\tpos1 = i;\r\n\t\t\tint curIndex = rounte[i];\r\n\t\t\tint nextIndex = rounte[i+1];\r\n\t\t\tArrayList<Integer> candidate = problem.candidateList.get(curIndex);\r\n\t\t\tIterator<Integer> iter = candidate.iterator();\r\n\t\t\twhile(iter.hasNext()){\r\n\t\t\t\tint next = iter.next();\r\n\t\t\t\tpos2 = pos[next];\r\n\t\t\t\tint curIndex1 = rounte[pos2];\r\n\t\t\t\tint nextIndex1 = rounte[pos2+1];\r\n\t\t\t\tif(curIndex == nextIndex1) continue;\r\n\t\t\t\tif(curIndex == curIndex1) continue;\r\n\t\t\t\tif(nextIndex == nextIndex1) continue;\r\n\t\t\t\tif(curIndex1 == nextIndex) continue;\r\n\t\t\t\tint betterTimes = 0;\r\n\t\t\t\tTSPSolution solution = new TSPSolution(problem.city_num, problem.obj_num, -1);\r\n\t\t\t\tfor(int j=0;j<problem.obj_num;j++){\r\n\t\t\t\t\tint gain = problem.disMatrix[j*problem.city_num*problem.city_num+curIndex*problem.city_num+curIndex1] +\r\n\t\t\t\t\t\t\tproblem.disMatrix[j*problem.city_num*problem.city_num+nextIndex*problem.city_num+nextIndex1] - \r\n\t\t\t\t\t\t\t(problem.disMatrix[j*problem.city_num*problem.city_num+curIndex*problem.city_num+nextIndex]+\r\n\t\t\t\t\t\t\tproblem.disMatrix[j*problem.city_num*problem.city_num+curIndex1*problem.city_num+nextIndex1]);\r\n\t\t\t\t\tif(gain<0) betterTimes++;\r\n\t\t\t\t\tsolution.object_val[j] = s.object_val[j] + gain;\r\n\t\t\t\t}\r\n\t\t\t\tif(betterTimes==0) continue;\r\n\t\t\t\tsolution.route = s.route.clone();\r\n\r\n\t\t\t\tif(problem.kdSet.add(solution)){\r\n\t\t\t\t\tproblem.converse(pos1, pos2, solution.route, 0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void updateRoutingTable(){\n\tint[] current = new int[RouterSimulator.NUM_NODES];\n\tArrays.fill(current, RouterSimulator.INFINITY);\n\t\n\t//iterate through neighbours distance tables\n\t\n\tfor(int i=0;i<myNeighboursDistTable[myID].length;i++){\n\t //if shortest path goes through current node\n\t if(i==myID){\n\t\tcurrent[i] = myDistTable[i];\n\t\troute[i] = i;\n\t\tcontinue;\n\t }\n\t //iterate through neighbours\n\t for(int j = 0; j < neighbours.length; j++){\n\t\t//if a neighbour exist\n\t\tif(neighbours[j]){\n\t\t int cost = costs[j] + myNeighboursDistTable[j][i];\n\t\t //if shorter path found\n\t\t if(cost < current[i]){\n\t\t\tcurrent[i] = cost;\n\t\t\troute[i] = j;\n \t\t }\n\t\t}\n\t\t\n\t }\n\t}\n\t//if better path found, send new routingtable to neighbours\n\tif(!Arrays.equals(current, myDistTable)){\n\t System.arraycopy(current, 0, myDistTable, 0, RouterSimulator.NUM_NODES);\n\t send();\n\t}\n }",
"public static ArrayList<XYLocation> findPath2(String CHAR1, String CHAR2,CampusRouteFindingModel campusModel) {\n\t\t ArrayList<XYLocation> retrn = new ArrayList<XYLocation>();\n\t\t graph<String, Float> g = campusModel.getGraph();\n\t\t Map<String, String> idFirst = campusModel.getName();\n\t\t Map<String,String> nameFirst = campusModel.getID();\n\t\t Map<String, XYLocation> locations = campusModel.getLocations();\n\t\t if(!(nameFirst.containsKey(CHAR1))&&(!(idFirst.containsKey(CHAR1)))) { \n\t\t\t if(!(nameFirst.containsKey(CHAR2))&&(!(idFirst.containsKey(CHAR2)))) {\n\t\t\t\t if (CHAR1.equals(CHAR2)) {\n\t\t\t\t\t retrn.add(locations.get(CHAR1));\n\t\t\t\t\t return retrn;\n\t\t\t\t }\n\t\t\t\t retrn.add(locations.get(CHAR1));\n\t\t\t\t retrn.add(locations.get(CHAR2));\n\t\t\t\t return retrn;\n\t\t\t }\n\t\t\t retrn.add(locations.get(CHAR1));\n\t\t\t return retrn;\n\t\t\t}\n\t\t\tif(!(nameFirst.containsKey(CHAR2))&&(!(idFirst.containsKey(CHAR2)))) {\n\t\t\t\tretrn.add(locations.get(CHAR2));\n\t\t\t\treturn retrn;\n\t\t\t}\n\t\tif (nameFirst.containsKey(CHAR1)) {\n\t\t\tCHAR1 = nameFirst.get(CHAR1);\n\t\t}\n\t\tif (nameFirst.containsKey(CHAR2)) {\n\t\t\tCHAR2 = nameFirst.get(CHAR2);\n\t\t}\n\t\tretrn.add(locations.get(CHAR1));\n\t\tif (!(CHAR1.equals(CHAR2))) {\n\t\t\tArrayList<edges<String, Double>> tmp = Dijkstra(CHAR1,CHAR2,g);\n\t\t\tif (tmp==null) {\n\t\t\t\tretrn.add(locations.get(CHAR1));\n\t\t\t\tretrn.add(locations.get(CHAR1));\n\t\t\t\treturn retrn;\n\t\t\t}\n\t\t\tIterator<edges<String, Double>> print = tmp.iterator();\n\t\t\tprint.next();\n\t\t\twhile (print.hasNext()) {\n\t\t\t\tedges<String, Double> temp = print.next();\n\t\t\t\tretrn.add(locations.get(temp.getDest()));\n\t\t\t}\n\t\t}\n\t\treturn retrn;\n\t}",
"public void getNeighbors(){\n // North \n if(this.row - this.value>=0){\n this.north = adjacentcyList[((this.row - this.value)*col_size)+col];\n }\n // South\n if(this.row + value<row_size){\n this.south = adjacentcyList[((this.row+this.value)*row_size)+col];\n }\n // East\n if(this.col + this.value<col_size){\n this.east = adjacentcyList[((this.col+this.value)+(this.row)*(col_size))];\n }\n // West\n if(this.col - this.value>=0){\n this.west = adjacentcyList[((this.row*col_size)+(this.col - this.value))];\n }\n }",
"List<Route> getDirectRoutes(String departure, String arrival);",
"public LinkedList<Station> getStations() {\n return stations;\n }",
"public boolean inLineOfSight(){\n\t\t\n\t\tboolean keepGoing=true;\n\t\t\n\t\tfor (int i=0; i<this._movingTrainers.size(); i++){\n\t\t\tthis._LOSTrainer=i;\n\t\t\tkeepGoing=true;\n\t\t\t//within their line of sight\n\t\t\tif(this._movingTrainers.get(i)!=null && !this._movingTrainers.get(i).isDefeated()){\n\t\t\t\tfor (int j=0; j<this._movingTrainers.get(i).getLOS(); j++){\n\t\t\t\t\tif(keepGoing){\n\t\t\t\t\t\tint tx=this._movingTrainers.get(i).getXIndex();\n\t\t\t\t\t\tint ty=this._movingTrainers.get(i).getYIndex();\n\t\t\t\t\t\tint jx=0;\n\t\t\t\t\t\tint jy=0;\n\t\t\t\t\t\t\n\t\t\t\t\t\t//facing the right way\n\t\t\t\t\t\tswitch(this._movingTrainers.get(i).getDirection()){\n\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\tjx=0;\n\t\t\t\t\t\t\t\tjy=1*j;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\tjx=0;\n\t\t\t\t\t\t\t\tjy=-1*j;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\tjx=1*j;\n\t\t\t\t\t\t\t\tjy=0;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\tjx=-1*j;\n\t\t\t\t\t\t\t\tjy=0;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//What's in the way? if nothing and they see the player, return true.\n\t\t\t\t\t\tif((tx+jx)>=0 && (ty+jy)>=0){\n\t\t\t\t\t\t\tchar next= this._room._roomGrid[tx + jx][ty + jy];\n\t\t\t\t\t\t\tif(tx+jx==xObs && ty+jy==yObs){\n\t\t\t\t\t\t\t\tthis._interruptedTrainer=this._LOSTrainer;\n\t\t\t\t\t\t\t\tTrainer interrupted = this._movingTrainers.get(this._interruptedTrainer);\n\t\t\t\t\t\t\t\t//_busy=true;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//These two statements are for moving trainers who can interrupt. \n\t\t\t\t\t\t\t\tif(!interrupted.isStationary() && _gbs.npctick!=0){\n\t\t\t\t\t\t\t\t\treturn false;\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\twhile(!interrupted.isStationary() && !this._approachTimer.isRunning()){\n\t\t\t\t\t\t\t\t\tinterrupted.setAvoidMethod(\"freeze\");\n\t\t\t\t\t\t\t\t\tinterrupted.setStationary(true);\n\t\t\t\t\t\t\t\t\tSysOut.print(\"Frozen\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t////////////////\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(interrupted.getXIndex()>this.xObs){\n\t\t\t\t\t\t\t\t\tinterrupted.clearDestinations();\n\t\t\t\t\t\t\t\t\tif(xObs+1==interrupted.getXIndex() && _tooCloseTrigger){\n\t\t\t\t\t\t\t\t\t\t_tooCloseWait=true;\n\t\t\t\t\t\t\t\t\t\t_tooCloseTrigger=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t_tooCloseTrigger=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tinterrupted.addDest(xObs+1, yObs);\n\t\t\t\t\t\t\t\t\tinterrupted.setFirstDest();\n\t\t\t\t\t\t\t\t\tinterrupted.setPause(false);\n\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if (interrupted.getXIndex()<this.xObs){\n\t\t\t\t\t\t\t\t\tinterrupted.clearDestinations();\n\t\t\t\t\t\t\t\t\tif(xObs-1==interrupted.getXIndex() && _tooCloseTrigger){\n\t\t\t\t\t\t\t\t\t\t_tooCloseWait=true;\n\t\t\t\t\t\t\t\t\t\t_tooCloseTrigger=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t_tooCloseTrigger=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tinterrupted.addDest(xObs-1, yObs);\n\t\t\t\t\t\t\t\t\tinterrupted.setFirstDest();\n\t\t\t\t\t\t\t\t\tinterrupted.setPause(false);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if (interrupted.getYIndex()>this.yObs){\n\t\t\t\t\t\t\t\t\tinterrupted.clearDestinations();\n\t\t\t\t\t\t\t\t\tif(yObs+1==interrupted.getYIndex() && _tooCloseTrigger){\n\t\t\t\t\t\t\t\t\t\t_tooCloseWait=true;\n\t\t\t\t\t\t\t\t\t\t_tooCloseTrigger=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t_tooCloseTrigger=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tinterrupted.addDest(xObs, yObs+1);\n\t\t\t\t\t\t\t\t\tinterrupted.setFirstDest();\n\t\t\t\t\t\t\t\t\tinterrupted.setPause(false);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if (interrupted.getYIndex()<this.yObs){\n\t\t\t\t\t\t\t\t\tinterrupted.clearDestinations();\n\t\t\t\t\t\t\t\t\tif(yObs-1==interrupted.getYIndex() && _tooCloseTrigger){\n\t\t\t\t\t\t\t\t\t\t_tooCloseWait=true;\n\t\t\t\t\t\t\t\t\t\t_tooCloseTrigger=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t_tooCloseTrigger=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tinterrupted.addDest(xObs, yObs-1);\n\t\t\t\t\t\t\t\t\tinterrupted.setFirstDest();\n\t\t\t\t\t\t\t\t\tinterrupted.setPause(false);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t////SysOut.print(\"HE SEES YOU WHEN YOU'RE SLEEPING: \"+ _interruptedTrainer);\n\t\t\t\t\t\t\t\t//End the loop, return true.\n\t\t\t\t\t\t\t\tif(interrupted.getLOS()==0 || !interrupted.isStationary()){\n\t\t\t\t\t\t\t\t\tthis._paintAlert=false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if (interrupted.getLOS()>0){\n\t\t\t\t\t\t\t\t\tthis._paintAlert=true;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\n\t\t\t\t\t\t\t\tif(!this._approachTimer.isRunning()){\n\t\t\t\t\t\t\t\t\tthis._seenByNPC=true;\n\t\t\t\t\t\t\t\t\tif(interrupted.getGender() == 'M' && interrupted.getBelt()!=null)\n\t\t\t\t\t\t\t\t\t\tM2.playBG(M2.TRAINER_APPROACH_M);\n\t\t\t\t\t\t\t\t\telse if(interrupted.getGender() == 'F'&& interrupted.getBelt()!=null)\n\t\t\t\t\t\t\t\t\t\tM2.playBG(M2.TRAINER_APPROACH_F);\n\t\t\t\t\t\t\t\t\telse if(interrupted.getGender() == 'R'&& interrupted.getBelt()!=null)\n\t\t\t\t\t\t\t\t\t\tM2.playBG(M2.RIVAL_MUSIC);\n\t\t\t\t\t\t\t\t\tthis._approachTimer.start();\n\t\t\t\t\t\t\t\t\tthis._tooCloseTrigger=true;\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\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if((next==SURF && !_gbs.getSurf() && !this._movingTrainers.get(this._LOSTrainer).canSurf())|| (next==SURF && _gbs.getSurf() && !this._movingTrainers.get(this._LOSTrainer).canSurf()) || (next==SURF && !_gbs.getSurf() && this._movingTrainers.get(this._LOSTrainer).canSurf()) || (next==NO && j!=0) || next==CUT){\n\t\t\t\t\t\t\t\t////SysOut.print(\"Something is in the way: \"+ _interruptedTrainer);\n\t\t\t\t\t\t\t\t//Stop this iteration, move on.\n\t\t\t\t\t\t\t\tkeepGoing = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (int k=0; k<this._movingTrainers.size(); k++){\n\t\t\t\t\t\t\t\tif(tx+jx==this._movingTrainers.get(k).getXIndex() && ty+jy==this._movingTrainers.get(k).getYIndex() && j>0){\n\t\t\t\t\t\t\t\t\t////SysOut.print(\"Another trainer is in the way:\" + _interruptedTrainer);\n\t\t\t\t\t\t\t\t\t//Stop this iteration, move on.\n\t\t\t\t\t\t\t\t\tif(this._movingTrainers.get(k).isDefeated() && this._movingTrainers.get(k).getVanishing()){\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\tkeepGoing = false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t////SysOut.print(\"They don't see you.\");\n\t\treturn false;\n\t}",
"private void printNeighbourTable()\n {\n\n myGUI.println(\"Neighbour Distance Table\");\n String str = F.format(\"dst |\", 15);\n for (int i = 0; i < RouterSimulator.NUM_NODES; i++) {\n str += (F.format(i, 15));\n }\n myGUI.println(str);\n for (int i = 0; i < str.length(); i++) {\n myGUI.print(\"-\");\n }\n myGUI.println();\n for (int i = 0; i < RouterSimulator.NUM_NODES; i++) {\n str = F.format(\"nbr \" + i + \" |\", 15);\n for (int j = 0; j < RouterSimulator.NUM_NODES; j++) {\n str += (F.format(myNeighboursDistTable[i][j], 15));\n }\n if (i != myID && neighbours[i])\n myGUI.println(str);\n }\n myGUI.println();\n }",
"org.landxml.schema.landXML11.Station xgetStation();",
"public double calcDistBetweenStops(){\n List<Location> locs = destinations.getLocationList();\r\n double totalDist = 0;\r\n for (int i = 0; i < (locs.size() - 1); i++){\r\n double distance = locs.get(i).DistanceTo(locs.get(i+1));\r\n totalDist += distance;\r\n }\r\n return totalDist;\r\n }",
"private List<Edge<Stop>> getPublicTransportEdgesFromStop(long timeAtStop, Stop stop, Set<Stop> found) {\n GregorianCalendar gregorianCalendar = new GregorianCalendar(timeZone);\n gregorianCalendar.setTimeInMillis(timeAtStop);\n\n LocalDate date = LocalDate.of(gregorianCalendar.get(java.util.Calendar.YEAR), gregorianCalendar.get(java.util.Calendar.MONTH) + 1, gregorianCalendar.get(java.util.Calendar.DAY_OF_MONTH));\n\n List<StopTime> stopTimes = stopTimesByStopIdIndex.getItems(stop.getId());\n return stopTimes.stream().flatMap(stopTime -> {\n ServiceDates serviceDatesForStopTime = serviceDates.get(trips.get(stopTime.getTripId()).getServiceId());\n\n LocalDate estimatedDepartureDate = date.minus(Math.round(stopTime.getArrivalTime() / 86400f), ChronoUnit.DAYS);\n\n List<StopEdge> edges = new TiraArrayList<>();\n\n //Optimization: list of best arrival times (to ignore routes that would arrive to these stops later than the previously found best route)\n //This optimization is not optimal but should decrease the amount of possible returned edges\n Map<String, Long> bestArrivalTime = new TiraHashMap<>();\n\n /**\n * Check possible departure dates that are: yesterday, today and the day after today\n */\n for (int i = -1; i <= 1; i++) {\n LocalDate departureDate = estimatedDepartureDate.plus(i, ChronoUnit.DAYS);\n\n if (serviceDatesForStopTime.runsOn(departureDate)) {\n edges.addAll(\n getPossibleDestinations(stop,\n timeAtStop,\n routes.get(trips.get(stopTime.getTripId()).getRouteId()),\n stopTime.getTripId(),\n departureDate,\n stopTime.getArrivalTime(),\n stopTimesByTripIdIndex.getItems(stopTime.getTripId()),\n found,\n bestArrivalTime));\n }\n }\n\n return edges.stream();\n }).collect(Collectors.toCollection(() -> new TiraArrayList<>()));\n }",
"private List<StopEdge> getPossibleDestinations(Stop stop, long timeAtStop, Route route, String tripId, LocalDate departureDate, long departureTime, List<StopTime> stopTimesOfTrip, Set<Stop> found, Map<String, Long> bestArrivalTime) {\n List<StopEdge> edges = new TiraArrayList<>();\n\n long departureTimeMillis = calculateTime(departureDate, departureTime);\n //If the public transport service departs from the stop before current time, that service cannot be used for the route -> return empty list\n if (departureTimeMillis < timeAtStop) {\n return Collections.emptyList();\n }\n\n for (StopTime stopTime : stopTimesOfTrip) {\n Stop destinationStop = stops.get(stopTime.getStopId());\n if (destinationStop == null) {\n //This should happen only if the GTFS feed is malformed\n return Collections.emptyList();\n }\n\n //Don't add new edge if a better route to the destination was already found\n long arrivalTimeMillis = calculateTime(departureDate, stopTime.getArrivalTime());\n if (arrivalTimeMillis > bestArrivalTime.getOrDefault(destinationStop.getId(), Long.MAX_VALUE)) {\n continue;\n }\n\n if (arrivalTimeMillis > departureTimeMillis) {\n //If the trip would pass through any of already found stops, return empty list as it would be slower to reach the final destination using this route than the route that was used for reaching the previously found route\n if (found.contains(destinationStop)) {\n return Collections.emptyList();\n }\n\n bestArrivalTime.put(destinationStop.getId(), arrivalTimeMillis);\n edges.add(new StopEdge(route.getName(), tripId, route.getMode(), stop, destinationStop, arrivalTimeMillis, departureTimeMillis));\n }\n }\n\n return edges;\n }",
"public void seekWalls() {\n\t\t for (int j=0; j<visited[0].length; j++){\n\t\t\tfor (int i=visited.length-1; i>=0; i--) {\t\t\t\n\t\t\t\tif (i!=0 && j!= visited[0].length-1) {//general position\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i-1][j]) == maxComb && !isFree(i,j,2)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'N';\n\t\t\t\t\t\treturn;//not break!!!!! return to exit !\n\t\t\t\t\t}\n\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i][j+1]) == maxComb && !isFree(i,j,4)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'E';\t\n\t\t\t\t\t\treturn;\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (i==0 && j!= visited[0].length-1) {\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i][j+1]) == maxComb && !isFree(i,j,4)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'E';\t\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if (i!=0 && j== visited[0].length-1) {\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i-1][j]) == maxComb && !isFree(i,j,2)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'N';\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\telse {//if (i==0 && j== visited[0].length-1) {\n\t\t\t\t\t//no solution\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public java.util.List getWaypoints();",
"private Vector<Vector<BusStopInfo>> findRek (BusStopInterface from, BusStopInterface to, Vector <BusStopInfo> toInfo, Vector<BusStopInfo> visited, int swaps, int transfers )\r\n {\r\n Vector<Vector<BusStopInfo>> sciezka = new Vector<Vector<BusStopInfo>>();\r\n \r\n if(from.getName()==to.getName())\r\n {\r\n sciezka.add(toInfo);\r\n return sciezka;\r\n }\r\n\r\n for(BusStopInfo vis: visited)\r\n {\r\n if(vis.awtobus.busLine.getBusStop(vis.pozycja).getName()==from.getName())\r\n return sciezka;\r\n }\r\n\r\n Vector <BusStopInfo> fromInfo = findStopInfo(from);\r\n\r\n fromInfo = infoFilter(fromInfo, toInfo);\r\n\r\n for(BusStopInfo info: fromInfo)\r\n {\r\n int swapsNow = swaps;\r\n if(visited.size()>0 && info.awtobus.bus.getBusNumber()!=visited.lastElement().awtobus.bus.getBusNumber())\r\n {\r\n swapsNow++;\r\n }\r\n\r\n if(swapsNow <= transfers)\r\n {\r\n int nextPosition = info.pozycja +1; //ide do przodu linii\r\n int prevPosition = info.pozycja -1; //ide do tyłu linii\r\n\r\n Vector<BusStopInfo> temp = new Vector<BusStopInfo>(visited);\r\n temp.add(info);\r\n Vector<Vector<BusStopInfo>> result ;\r\n if(nextPosition<info.awtobus.busLine.getNumberOfBusStops())\r\n {\r\n BusStopInterface nextStop = info.awtobus.busLine.getBusStop(nextPosition);\r\n result = findRek(nextStop, to, toInfo, temp, swapsNow, transfers);\r\n for(Vector<BusStopInfo> res: result)\r\n {\r\n res.add(0, info);\r\n sciezka.add(res);\r\n }\r\n }\r\n if(prevPosition >= 0)\r\n {\r\n BusStopInterface prevStop = info.awtobus.busLine.getBusStop(prevPosition);\r\n result = findRek(prevStop, to, toInfo, temp, swapsNow, transfers);\r\n for(Vector<BusStopInfo> res: result)\r\n {\r\n res.add(0, info);\r\n sciezka.add(res);\r\n }\r\n }\r\n }\r\n }\r\n\r\n return sciezka;\r\n }",
"org.landxml.schema.landXML11.RoadsideDocument.Roadside getRoadsideArray(int i);",
"private boolean isAtStation(){\n\n if (this.selectedTrain.getGPS().getCurrBlock().getStationName() != null){return true; }\n else { return false; }\n }",
"int gas_station() {\n int sol = 0; // numar minim de opriri\n int fuel = m; // fuel este cantitatea curenta de combustibil din rezervor (a.k.a cat a ramas)\n\n for (int i = 1; i <= n; ++i) {\n fuel -= (dist[i] - dist[i - 1]); // ma deplasez de la locatia anterioara la cea curenta\n // intotdeauna cand ajung intr-o benzinarie ma asigur am suficient\n // combustibil sa ajung la urmatoarea - initial pot sa ajung de la A la dist[1]\n\n // daca nu am ajuns in ultima benziarie\n // verifica daca trebuie sa reincarc (rezervor gol sau cantitate insuficienta pentru a ajunge la benzinaria urmatoare)\n if (i < n && (fuel == 0 || dist[i+1] - dist[i] > fuel)) {\n ++sol;\n fuel = m;\n }\n }\n\n return sol;\n }",
"public static int isVehicleInSight(Player curr) {\n ArrayList<Integer> dirs = new ArrayList();\n int bodyDir = curr.getBodyDirection();\n if (bodyDir == UP) {\n dirs.add(UP);\n dirs.add(RIGHT);\n dirs.add(LEFT);\n if (curr.head360())\n dirs.add(DOWN);\n } else if (bodyDir == RIGHT) {\n dirs.add(RIGHT);\n dirs.add(UP);\n dirs.add(DOWN);\n if (curr.head360())\n dirs.add(LEFT);\n } else if (bodyDir == DOWN) {\n dirs.add(DOWN);\n dirs.add(RIGHT);\n dirs.add(LEFT);\n if (curr.head360())\n dirs.add(UP);\n } else //if(curr.getBodyDirection()==LEFT)\n {\n dirs.add(LEFT);\n dirs.add(UP);\n dirs.add(DOWN);\n if (curr.head360())\n dirs.add(RIGHT);\n }\n\n if (dirs == null || dirs.size() == 0)\n return -1;\n for (int vi = 0; vi < players.length; vi++) {\n if (players[vi] == null || players[vi].getName().equals(\"NONE\") || (players[vi] instanceof Monster)) //we don't want the AI monster to consider itself or other monsters a target\n continue;\n Player veh = players[vi];\n boolean isAir = veh.isFlying();\n int vR = veh.getRow();\n int vC = veh.getCol();\n if (veh.getName().endsWith(\"civilian\"))\n continue;\n for (int i = 0; i < dirs.size(); i++) {\n int dir = dirs.get(i);\n boolean skip = false;\n if (dir == UP) {\n for (int r = curr.getRow(); r >= 1; r--) {\n if (isAir && r == vR && curr.getCol() == vC)\n return dir + 10;\n if (r == vR && curr.getCol() == vC)\n return dir;\n }\n } else if (dir == DOWN) {\n for (int r = curr.getRow(); r < board.length - 1; r++) {\n if (isAir && r == vR && curr.getCol() == vC)\n return dir + 10;\n if (r == vR && curr.getCol() == vC)\n return dir;\n }\n } else if (dir == RIGHT) {\n for (int c = curr.getCol(); c < board[0].length - 1; c++) {\n if (isAir && c == vC && curr.getRow() == vR)\n return dir + 10;\n if (curr.getRow() == vR && c == vC)\n return dir;\n }\n } else if (dir == LEFT) {\n for (int c = curr.getCol(); c >= 1; c--) {\n if (isAir && c == vC && curr.getRow() == vR)\n return dir + 10;\n if (curr.getRow() == vR && c == vC)\n return dir;\n }\n }\n if (skip)\n continue;\n }\n }\n return -1;\n }",
"private List<Edge<Stop>> getWalkingEdgesFromStop(long timeAtStop, Stop stop, Set<Stop> found) {\n //Calculate a list of geohashes around the stop\n List<Geohash> nearbyGeohashes = Geohash.getSurroundingGeohashes(\n BigDecimal.valueOf(stop.getLocation().getLatitude()),\n BigDecimal.valueOf(stop.getLocation().getLongitude()), STOP_INDEX_GEOHASH_LEVEL);\n\n return nearbyGeohashes.stream()\n //Get all stops inside the geohashes\n .flatMap(geohash -> stopByGeohashIndex.getItems(geohash).stream())\n //Filter stops that have been already found\n .filter(stopFromIndex -> !found.contains(stopFromIndex))\n //Filter stops that are too far\n .filter(stopFromIndex -> stopFromIndex.getLocation().distanceTo(stop.getLocation()) <= MAX_WALKING_DISTANCE_IN_METERS\n && !stopFromIndex.getId().equals(stop.getId()))\n .map(walkableStop -> new StopEdge(null, //No public transport route used when walking -> route = null, trip = null\n null,\n TransportMode.WALK,\n stop,\n walkableStop,\n //Calculate walking time\n timeAtStop + 1 + Math.round(walkableStop.getLocation().distanceTo(stop.getLocation()) / AVERAGE_WALKING_SPEED_MS),\n timeAtStop))\n .collect(Collectors.toCollection(() -> new TiraArrayList<>()));\n }",
"public Bearing getLeftNeighbour() {\n return this == N || this == S ? W : N;\n }",
"public static List<String> journeyPlanner(Graph g, String start, String end, int maxStops, boolean exact) {\n\t\tAlgorithmGraph ag = new AlgorithmGraph(g);\n\t\treturn ag.getAllRoutes(start, end, maxStops, exact);\n\t}",
"@Override\n public List<V> getNeighbors(V v, TimeFrame pTimeFrame) {\n List<V> lstNeighbors = new ArrayList<>();\n// System.out.println(\"DynamicGraph.getNeighbor() : \" + darrGlobalAdjList.get(v.getId()).get(pTimeFrame));\n if (darrGlobalAdjList.get(v.getId()).containsKey(pTimeFrame)) {\n for (E e : darrGlobalAdjList.get(v.getId()).get(pTimeFrame)){\n if (e.getOtherEndPoint(v) != null) {\n lstNeighbors.add(e.getOtherEndPoint(v));\n }\n }\n }\n return lstNeighbors;\n }",
"public SASolution getNeighborSolution();",
"synchronized public Vector<Route> getRoutePossibleDePrendre(Joueur joueur){\n\t\tVector<Route> tmp = new Vector<Route>();\n\t\tfor(Route v : routes)\n\t\t\tif(v != null ){\n\t\t\t\tif(v instanceof Route){\n\t\t\t\t\tif(v.isRoutePosseder())\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tif(v.nbWagonNecessaire <= joueur.compterNbCarteDeTelleCouleur(v.couleurNecessaireRoute))\n\t\t\t\t\t\ttmp.add(v);\n\t\t\t\t}\n\t\t\t\tif(v instanceof RouteDouble){\n\t\t\t\t\tif(((RouteDouble)v).possederPar2 != null)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tif(v.nbWagonNecessaire <= joueur.compterNbCarteDeTelleCouleur(v.couleurNecessaireRoute))\n\t\t\t\t\t\ttmp.add(v);\n\t\t\t\t}\n\t\t\t}\n\t\treturn tmp;\n\t}"
] | [
"0.62391824",
"0.6107177",
"0.6079637",
"0.5927162",
"0.591738",
"0.58877504",
"0.5820619",
"0.58137643",
"0.5794173",
"0.57718754",
"0.5762798",
"0.57198656",
"0.5712629",
"0.56971836",
"0.5683553",
"0.56565386",
"0.5646972",
"0.56132084",
"0.5595665",
"0.55568516",
"0.5549703",
"0.5542129",
"0.5527035",
"0.55261487",
"0.54742455",
"0.54741067",
"0.5464782",
"0.54527754",
"0.5436481",
"0.54356253",
"0.54195696",
"0.54032105",
"0.5395726",
"0.5387045",
"0.5386687",
"0.53841203",
"0.53693235",
"0.53583944",
"0.5354764",
"0.5340919",
"0.5337808",
"0.53323317",
"0.53300697",
"0.53299195",
"0.5329851",
"0.53192586",
"0.53134567",
"0.53076684",
"0.5307233",
"0.5307006",
"0.53020835",
"0.52999395",
"0.5282953",
"0.52828497",
"0.5272033",
"0.52702063",
"0.5251196",
"0.52449447",
"0.52397674",
"0.52379274",
"0.5234643",
"0.5233754",
"0.5230897",
"0.5227404",
"0.52262056",
"0.52241075",
"0.5222265",
"0.52180433",
"0.52149045",
"0.5208633",
"0.5206919",
"0.5192212",
"0.5190248",
"0.5188777",
"0.5180446",
"0.5177411",
"0.5173309",
"0.5173274",
"0.517001",
"0.516692",
"0.51622844",
"0.515828",
"0.515143",
"0.5149553",
"0.51478416",
"0.514694",
"0.5145903",
"0.5139386",
"0.51379067",
"0.5136091",
"0.51352715",
"0.51336455",
"0.5126236",
"0.51227564",
"0.5122",
"0.51194245",
"0.5117711",
"0.51153874",
"0.5113293",
"0.51062113",
"0.5105947"
] | 0.0 | -1 |
this returns the record for a specified day, this method stores all the records in the array | public Record query(final PlayerType p_type,
final int p_queryDate)
throws RemoteException
{
for(int x= 0; x <= 100; x++)
{
records [x][1] = query(PlayerType.LEADER, x);
records [x][2] = query(PlayerType.FOLLOWER, x);
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private DailyHours findEntryByDate(String day)\r\n\t{\r\n\t\t//cycle the dailyHourLog arraylist\r\n\t\tfor(DailyHours singleDay : dailyHourLog)\r\n\t\t{\r\n\t\t\t//selection structure returning true that the date matches \r\n\t\t\tif(singleDay.getDate().equals(day))\r\n\t\t\t{\r\n\t\t\t\treturn singleDay;\r\n\t\t\t\t\t\t\r\n\t\t\t}//end selection structure returning the date equals \r\n\t\t}//end for loop cycling the dailyHourLog ArrayList\r\n\t\t\r\n\t\t//else the value was not found, so return null\r\n\t\treturn null;\r\n\t}",
"@Override\n public List<Event> searchByDay(Date day) {\n TypedQuery<EventAdapter> query = em.createQuery(\n \"SELECT e FROM EventAdapter e \"\n + \"WHERE e.dateBegin = :day \"\n + \"ORDER BY e.id\", EventAdapter.class)\n .setParameter(\"day\", day);\n\n return query.getResultList()\n .parallelStream()\n .map(EventAdapter::getEvent)\n .collect(Collectors.toList());\n }",
"private void getData(int day){\n try {\n String today = DateUtilities.getCurrentDateInString();\n DateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date currentDate = dateFormat.parse(today);\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(currentDate);\n calendar.add(Calendar.DAY_OF_YEAR,-day);\n Date datebefore = calendar.getTime();\n String dateBeforeStr = dateFormat.format(datebefore);\n\n stepsTakenModels = db.stepsTakenDao().getStepsTakenInrange(dateBeforeStr,today);\n// stepsTakenModels.addAll(db.stepsTakenDao().getStepsTakenInrange(\"01-10-2019\",today));\n\n for(int i = 0 ; i < 7 ; i++){\n stepsTakenModelsLastWeek.add(stepsTakenModels.get(i));\n }\n\n for(int i = 7 ; i<stepsTakenModels.size() ; i++){\n stepsTakenModelsThisWeek.add(stepsTakenModels.get(i));\n }\n// if(stepsTakenModelsThisWeek.size()==0){\n// StepsTakenModel stepsTakenModel = new StepsTakenModel();\n// stepsTakenModel.setSteps(659);\n// stepsTakenModel.setDate(today);\n// stepsTakenModelsThisWeek.add(stepsTakenModel);\n// }\n\n }catch (Exception e){\n Log.d(\"TAG\",e.getMessage());\n }\n }",
"public static RecElement[] getActForDay(String prj_id, String sub_id, String date) {\n RecElement[] ret = new RecElement[60 * 60 * 24];\n for (int i = 0; i < ret.length; ++i)\n ret[i] = new RecElement();\n\n SC sc = null;\n try {\n sc = new SC(new ConnectionEx(Const.ARE));\n String sql = \"SELECT ts, num, num_filt, sma, angle FROM data WHERE project_id = \" + prj_id\n + \" AND subject_id = \" + sub_id + \" AND ts LIKE '\" + date + \"%'\" + \" ORDER BY ts\";\n logger.debug(sql);\n sc.execute(sql);\n\n while (sc.next()) {\n String ts = sc.getString(\"ts\");\n int s = Integer.parseInt(ts.substring(8, 10)) * 3600 + Integer.parseInt(ts.substring(10, 12)) * 60\n + Integer.parseInt(ts.substring(12));\n ret[s].num_filt = sc.getInt(\"num_filt\");\n ret[s].num = sc.getInt(\"num\");\n ret[s].sma = sc.getDouble(\"sma\");\n ret[s].angle = sc.getDouble(\"angle\");\n }\n return ret;\n } catch (Exception e) {\n logger.error(e.getMessage(), e);\n return null;\n } finally {\n try {\n sc.closeAll();\n } catch (Exception e) {\n logger.error(e.getMessage(), e);\n }\n }\n }",
"public List<GlucoseData> getHistoryOfDay(Date day) {\n SimpleDateFormat fmt = new SimpleDateFormat(\"yyyyMMdd\");\n List<GlucoseData> history = new ArrayList<>();\n\n String selectQuery = \"SELECT * FROM \" + TABLE_HISTORY;\n\n SQLiteDatabase db = getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n cursor.moveToFirst();\n\n try {\n if (cursor.moveToFirst()) {\n do {\n GlucoseData glucosedata = new GlucoseData();\n glucosedata.setID(cursor.getInt(cursor.getColumnIndex(KEY_HISTORY_ID)));\n glucosedata.setDate(cursor.getString(cursor.getColumnIndex(KEY_HISTORY_DATE)));\n glucosedata.setGlucoseLevel(cursor.getInt(cursor.getColumnIndex(KEY_HISTORY_GLUCOSELEVEL)));\n glucosedata.setComment(cursor.getString(cursor.getColumnIndex(KEY_HISTORY_COMMENT)));\n\n\n Date datadate = sqlDateFormat.parse(glucosedata.getDate());\n // Adding to list\n if(fmt.format(day).equals(fmt.format(datadate))) {\n history.add(glucosedata);\n }\n } while(cursor.moveToNext());\n }\n } catch (Exception e) {\n\n } finally {\n if (cursor != null && !cursor.isClosed()) {\n cursor.close();\n }\n }\n\n return history;\n }",
"@Override\n\tpublic List<AttendanceRecordModel> findAttendanceRecord(String userid,\n\t\t\tint year,int month,int day)\n\t{\n\t\treturn attendanceRecordDao.listAttendanceRecord(userid, year, month, day);\n\t}",
"private void addToDailyReport(String day, double empHours, double empPay)\r\n\t{\r\n\t\t//reset singleDay just in case\r\n\t\tDailyHours singleDay = null;\r\n\t\t\r\n\t\t//call the findEntryByDate method to find the date\r\n\t\tsingleDay = findEntryByDate(day);\r\n\t\t\r\n\t\t//if the date is not found, create a new date object.\r\n\t\tif(singleDay == null)\r\n\t\t{\r\n\t\t\t//date not found, so create a new date object\r\n\t\t\tsingleDay = new DailyHours(day);\r\n\t\t\t\r\n\t\t\t//add the day to our inventory\r\n\t\t\tdailyHourLog.add(singleDay);\r\n\t\t}//end create new day \r\n\t\t\r\n\t\t//add the employee hours and pay to that day\r\n\t\tsingleDay.addHours(empHours);\r\n\t\tsingleDay.addPay(empPay,empHours);\r\n\t}",
"public static ArrayList<DayData> getAllData(List<List<String>> records) {\r\n ArrayList<DayData> dayDataL = new ArrayList<>(50);\r\n for (int i = 1; i < 51; i++) {\r\n\r\n dayDataL.add(getStockByNumber(records, i));\r\n //System.out.println(\"Added \" + i);\r\n //System.out.println(getUsedMemory());\r\n }\r\n\r\n return dayDataL;\r\n }",
"public ArrayList getDayArray() {\r\n return dayArray; \r\n }",
"public List findRecordsFrom(String informationType, Date date) throws DatabaseException;",
"List<Day> findDaysByPerson(Long person);",
"public ArrayList<Forecast> getForecastsForDay( int day ) {\n if (forecasts.size() == 0) {\n return null;\n }\n\n int startIndex = 0;\n int endIndex = 0;\n\n if (day < 8) {\n startIndex = dayIndices[day];\n }\n\n if (startIndex == -1) {\n return null;\n }\n\n if (day < 7) {\n endIndex = dayIndices[day+1];\n if (endIndex < 0) {\n endIndex = forecasts.size();\n }\n } else {\n endIndex = forecasts.size();\n }\n\n return new ArrayList<>(forecasts.subList(startIndex, endIndex));\n }",
"public void readDayData() {\n\t\tlogger.info(\"Reading data for date: \" + date);\n\t}",
"private void getRecords(LocalDate startDate, LocalDate endDate) {\n foods = new ArrayList<>();\n FoodRecordDao dao = new FoodRecordDao();\n try {\n foods = dao.getFoodRecords(LocalDate.now(), LocalDate.now(), \"\");\n } catch (DaoException ex) {\n Logger.getLogger(FoodLogViewController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"@RequestMapping(\"/api/oneTimeRecords\")\n\tpublic List<OneTimeCustomerRecord> oneTimeRecords() {\n\n\t\tLOGGER.info(\"Method entry {}\", oneTimeRecordsMethod);\n\n\t\tList<OneTimeCustomerRecord> customerRecordsList = null;\n\n\t\ttry {\n\n\t\t\t// Invoke onetimerecordservice method\n\t\t\tcustomerRecordsList = oneTimeRecordService.findAll();\n\n\t\t} catch (ServiceException e) {\n\t\t\tLOGGER.error(\"Exception occurred while fetching the data.\", e);\n\t\t}\n\n\t\tLOGGER.info(\"Method exit {}\", oneTimeRecordsMethod);\n\n\t\treturn customerRecordsList;\n\n\t}",
"@Override\n public ArrayList<Meal> findMealsByDate(LocalDateTime dateTime) {\n ArrayList<Meal> meals = new ArrayList<Meal>();\n// SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd\");\n// _context.meals.stream()\n// .forEach(meal -> {\n// if (formatter.format(meal.getDateTime()).equals(formatter.format(dateTime)))\n// meals.add(meal);\n// });\n return meals;\n }",
"public Vector<Event> getEventsInDay(Date par){\n Connection con = null;\n PreparedStatement st = null;\n ResultSet rs = null;\n Vector<Event> result = new Vector<Event>();\n try {\n //obtain the database connection by calling getConn()\n con = getConn();\n \n SimpleDateFormat format1 = new SimpleDateFormat(\"dd-MM-YY\");\n \n //build the sql statement\n String sql = \"select * from event where to_date('\" + format1.format(par) + \"','DD-MM-YY') \";\n sql+= \"between to_date(start_time,'DD-MM-YY') and to_date(end_time,'DD-MM-YY')\";\n \n \n //System.out.println(sql);\n //create the PreparedStatement from the Connection object by calling prepareCall\n //method, passing it the sql that is constructed using the supplied parameters\n st = con.prepareCall(sql);\n \n \n //Calls executeQuery and the resulting data is returned in the resultset\n rs = st.executeQuery();\n \n //loop through the result set and save the data in the datamodel objects\n while (rs.next()){\n \n Event e = new Event(rs.getLong(\"id\"),rs.getString(\"id\") + \",\" + rs.getString(\"name\"),rs.getDate(\"start_time\"),rs.getDate(\"end_time\"));\n ;\n result.add(e);\n \n }\n \n }\n catch (SQLException e){\n e.printStackTrace();\n }\n //close the resultset,preparedstatement and connection to relase resources \n if (rs != null){\n try{\n rs.close();\n rs = null;\n }\n catch (SQLException e){\n \n }\n }\n if (st != null){\n try{\n st.close();\n st = null;\n }\n catch (SQLException e){\n \n }\n }\n \n \n \n if (con != null){\n try{\n con.close();\n con = null;\n }\n catch (SQLException e){\n \n }\n }\n return result;\n \n \n }",
"public ArrayList<Event> getEventArray(int year, int month, int day){\n\t\t\tArrayList<Event> events = new ArrayList<Event>();\n\t\t\t\n\t\t\ttry{\n\t\t\t\tresultSet = statement.executeQuery(\"select eid, uid, name, startTime, endTime, description from Calendar where day=\"+day+\" and month=\"+month+\" and year=\"+year);\n\t\t\t\twhile (resultSet.next()){\n\t\t\t\t\tevents.add(new Event(resultSet.getString(3),month,day,year,resultSet.getString(4),resultSet.getString(5),resultSet.getString(6),Integer.parseInt(resultSet.getString(1)), Integer.parseInt(resultSet.getString(2))));\n\t\t\t\t}\n\t\t\t} catch (SQLException e1){\n\t\t\t\tSystem.out.println(\"SQL Exception.\");\n\t\t\t\te1.printStackTrace();\n\t\t\t} catch (Exception e2){\n\t\t\t\tSystem.out.println(\"I hope this doesn't happen\");\n\t\t\t\te2.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\treturn events;\n\t\t}",
"public ArrayList<Record> getRecordsForDate(final Date date) {\n ArrayList<Record> resultList = new ArrayList<>();\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(FOLDER_DATE_FORMAT);\n String folderString = dateFormat.format(date);\n File baseFolder = getBaseFolder();\n if (baseFolder != null) {\n String[] allRecords = baseFolder.list();\n if (allRecords == null || allRecords.length == 0) {\n return resultList;\n }\n\n for (String eachRecord : allRecords) {\n if (eachRecord.contains(folderString)) {\n Record record = loadRecordFromFolderName(eachRecord);\n resultList.add(record);\n }\n }\n }\n\n return resultList;\n }",
"public abstract ArrayList<ScheduleTime> getScheduleForDay(int day, int month, int year);",
"@Override\n\tpublic List<AttendanceRecordModel> findAttendanceRecord()\n\t{\n\t\treturn attendanceRecordDao.listAttendanceRecord();\n\t}",
"public void getGuestDate_DB() throws SQLException{\n guest = new Client[50];\n guestCounter = 0;\n \n stmt = con.createStatement();\n rs = stmt.executeQuery(\"SELECT * FROM APP.GUEST\");\n \n while (rs.next()){\n \n int id = rs.getInt(\"id\");\n String fn = rs.getString(\"fname\");\n String mn = rs.getString(\"mname\");\n String ln = rs.getString(\"lname\");\n String bday = rs.getString(\"birthdate\");\n String mobile = rs.getString(\"mobile\");\n String email = rs.getString(\"email\");\n String roomPref = rs.getString(\"roomPref\");\n \n guest[guestCounter] = new Client();\n \n //this will set the values above to the array guest.\n guest[guestCounter].setnewGuest(id, fn, mn, ln,\n bday, mobile, email, roomPref );\n guestCounter++;\n \n System.out.println(id + \" \" + fn + \" \" + mn + \" \"\n + ln + \" \" + bday + \" \" + mobile+ \" \" + email + \" \" + roomPref);\n }\n \n stmt.close();\n }",
"public ArrayList getDailyPunchList(Badge b, long ts){\n try{\n ArrayList<Punch> punches = new ArrayList<>();\n String originalTimeStamp = new SimpleDateFormat(\"yyyy-MM-dd\").format(ts);\n query = \"SELECT * FROM punch WHERE badgeid = '\" + b.getId() + \"' ORDER BY originaltimestamp\" ;\n pstSelect = conn.prepareStatement(query);\n pstSelect.execute();\n resultset = pstSelect.getResultSet();\n resultset.first();\n \n while(resultset.next()){\n String timestamp = resultset.getString(4);\n if(timestamp.contains(originalTimeStamp) ){\n int dbPunchID = resultset.getInt(1);\n int termID = resultset.getInt(2);\n String badgeID = resultset.getString(3);\n Timestamp dbTS = resultset.getTimestamp(4);\n long longTS = dbTS.getTime();\n int punchType = resultset.getInt(5);\n String otStamp = dbTS.toString();\n\n Punch p = new Punch(b, longTS, punchType, otStamp, dbPunchID, termID);\n\n punches.add(p);\n }\n }\n \n \n \n return punches;\n }\n \n catch(Exception e){\n System.err.println(\"** getDailyPunchList: \" + e.toString());\n }\n \n \n return null;\n }",
"public Meeting getMeetingbyDay(int day){\n for (int i = 0; i < meetingsList.size(); i++) {\n if(meetingsList.get(i).getDay()==day) return meetingsList.get(i);\n }\n return null;\n }",
"Date getDataIns();",
"public String[][] getRecord() {\n String fileName = \"dt-data.txt\";\n // This will reference one line at a time\n String line = null;\n int j = 0;\n\n try {\n // FileReader reads text files in the default encoding.\n FileReader fileReader =\n new FileReader(fileName);\n\n // Always wrap FileReader in BufferedReader.\n BufferedReader bufferedReader =\n new BufferedReader(fileReader);\n\n while ((line = bufferedReader.readLine()) != null) {\n String[] array = line.split(\", \");\n for (int i = 0; i <= 8; i++) {\n record[j][i] = array[i];\n }\n j++;\n }\n\n // Always close files.\n bufferedReader.close();\n } catch (FileNotFoundException ex) {\n System.out.println(\"Unable to open file '\" + fileName + \"'\");\n } catch (IOException ex) {\n System.out.println(\"Error reading file '\" + fileName + \"'\");\n // Or we could just do this:\n // ex.printStackTrace();\n }\n return record;\n }",
"public void getSpecificData(Connection connection, StoreData data, int bool){\n\t\t//This code is used to prepare a statement to send to the database based on the start date\n\t\tPreparedStatement preStmt=null;\n\t\tString stmt = \"SELECT * FROM Event WHERE Start_Date = (?)\";\n\t\tString formatSDate = null;\n\t\tString formatEDate = null;\n\t\tStoreData extra = new StoreData();\n\t\t\n\t\t//This try catch block is used to format the date to be sent to the database\n\t\t//The command is then sent to get the correct events\n\t\ttry{\n\t\t\tpreStmt = (PreparedStatement) connection.prepareStatement(stmt);\n\t\t\tSimpleDateFormat displayDate = new SimpleDateFormat(\"MM-dd-yyyy\");\n\t\t\tSimpleDateFormat dbDate = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t//formats the date to match the database\n\t\t\ttry {\n\n\t\t\t\tformatSDate = dbDate.format(displayDate.parse(data.getDate()));\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t//System.out.println(formatSDate);\n\t\t\tpreStmt.setString(1, formatSDate);\n\t\t\tResultSet rs = preStmt.executeQuery();\n\t\t\t//re-adds the correct events back to the storedata object to be used later\n\t\t\tfor(int i = 0; i < data.getMultiDay().size();i++){\n\t\t\t\tdata.addName(data.getMultiDay().get(i).getName());\n\t\t\t}\n\t\t\t//loops through the result set returned by the database call\n\t\t\twhile(rs.next()){\n\t\t\t\tString description = rs.getString(\"Description\");\n\t\t\t\tString location = rs.getString(\"Location\");\n\t\t\t\tString name = rs.getString(\"Name\");\n\t\t\t\tString endDate = rs.getString(\"End_Date\");\n\t\t\t\tString sTime = rs.getString(\"Start_Time\");\n\t\t\t\tString eTime = rs.getString(\"End_Time\");\n\t\t\t\t//This try catch is used to format the date correctly\n\t\t\t\ttry {\n\t\t\t\t\tformatEDate = displayDate.format(dbDate.parse(endDate));\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t//System.out.println(formatEDate);\n\t\t\t\tdata.setEndDate(formatEDate);\n\t\t\t\tdata.setName(name);\n\t\t\t\t\n\t\t\t\tdata.addName(name);\n\t\t\t\tdata.setDescription(description);\n\t\t\t\tdata.setLocation(location);\n\t\t\t\tdata.setSTime(sTime);\n\t\t\t\tdata.setETime(eTime);\n\n\t\t\t\textra.setEndDate(formatEDate);\n\t\t\t\textra.setName(name);\n\t\t\t\textra.setDescription(description);\n\t\t\t\textra.setLocation(location);\n\t\t\t\textra.setSTime(sTime);\n\t\t\t\textra.setETime(eTime);\n\t\t\t\t//adds the event to the multi-day arraylist to be used later\n\t\t\t\tif(!data.getDate().equals(data.getEndDate())){\n\t\t\t\t\tdata.addEvent(extra);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}catch(SQLException e){\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public StoredDay(LocalDate date) {\n this.date = date;\n this.recipes = new StoredRecipe[0];\n }",
"public void getDateEvents(Connection connection, StoreData data){\n\t\t//The following code is used to prepare a sql statement to get all the events\n\t\tdata.resetSingle();\n\t\tPreparedStatement preStmt=null;\n\t\tString stmt = \"SELECT * FROM Event\";\n\t\t//prepares the date given to this method to be used to get the correct events \n\t\tString passedDate = data.getDate();\n\t\tSimpleDateFormat displayDate = new SimpleDateFormat(\"MM-dd-yyyy\");\n\t\tSimpleDateFormat dbDate = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tSimpleDateFormat theDay = new SimpleDateFormat(\"dd\");\n\t\tSimpleDateFormat month = new SimpleDateFormat(\"MM\");\n\t\tSimpleDateFormat year = new SimpleDateFormat(\"yyyy\");\n\t\tString formatSDate = null;\n\t\tString formatEDate = null;\n\t\tString sMonth = null;\n\t\tString eMonth = null;\n\t\tString sDay = null;\n\t\tString eDay = null;\n\t\tString curDay = null;\n\t\tString curMonth = null;\n\t\tint startD = 0;\n\t\tint endD = 0;\n\t\tint curD = 0;\n\t\tint startM = 0;\n\t\tint curM = 0;\n\t\tint endM = 0;\n\t\t\n\t\t//This try catch block is used to get the events that are returned based on\n\t\t//the dates that the event has\n\t\ttry{\n\t\t\tpreStmt = (PreparedStatement) connection.prepareStatement(stmt);\n\t\t\tResultSet rs = preStmt.executeQuery();\n\t\t\tStoreData newDay;\n\t\t\t//loops through all of the events storing the ones that have the matching dates\n\t\t\twhile(rs.next()){\n\t\t\t\tnewDay = new StoreData();\n\t\t\t\tString name = rs.getString(\"Name\");\n\t\t\t\tString description = rs.getString(\"Description\");\n\t\t\t\tString location = rs.getString(\"Location\");\n\t\t\t\tString date = rs.getString(\"Start_Date\");\n\t\t\t\tString endDate = rs.getString(\"End_Date\");\n\t\t\t\t//This try catch formats the dates to be used to check to see if they are correct\n\t\t\t\ttry {\n\n\t\t\t\t\tformatSDate = displayDate.format(dbDate.parse(date));\n\t\t\t\t\tformatEDate = displayDate.format(dbDate.parse(endDate));\n\t\t\t\t\tsDay = theDay.format(dbDate.parse(date));\n\t\t\t\t\teDay = theDay.format(dbDate.parse(endDate));\n\t\t\t\t\tcurDay = theDay.format(displayDate.parse(passedDate));\n\t\t\t\t\tsMonth = month.format(dbDate.parse(date));\n\t\t\t\t\teMonth = month.format(dbDate.parse(endDate));\n\t\t\t\t\tcurMonth = month.format(displayDate.parse(passedDate));\n\t\t\t\t\tstartD = Integer.parseInt(sDay);\n\t\t\t\t\tendD = Integer.parseInt(eDay);\n\t\t\t\t\tcurD = Integer.parseInt(curDay);\n\t\t\t\t\tstartM = Integer.parseInt(sMonth);\n\t\t\t\t\tcurM = Integer.parseInt(curMonth);\n\t\t\t\t\tendM = Integer.parseInt(eMonth);\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tString sTime = rs.getString(\"Start_Time\");\n\t\t\t\tString eTime = rs.getString(\"End_Time\");\n\t\t\t\tnewDay.setName(name);\n\t\t\t\tnewDay.setDescription(description);\n\t\t\t\tnewDay.setLocation(location);\n\t\t\t\tnewDay.setDate(date);\n\t\t\t\tnewDay.setEndDate(endDate);\n\t\t\t\tnewDay.setSTime(sTime);\n\t\t\t\tnewDay.setETime(eTime);\n\t\t\t\t//stores the events that match the date that was given\n\t\t\t\tif(curD >= startD && curD <= endD && curM == startM){\n\t\t\t\t\tdata.addDayEvent(newDay);\n\t\t\t\t}else if(startM < curM && curM == endM && curD <= endD){\n\t\t\t\t\tdata.addDayEvent(newDay);\n\t\t\t\t}else if(curD < startD || curD > endD){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Man you got problems now\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public ArrayList<Event> eventsInDay(LocalDate day) {\n ArrayList<Event> myList = new ArrayList<>();\n for (Event e : myAgenda) {\n if (e.isInDay(day)) {\n myList.add(e);\n }\n }\n return myList;\n }",
"public ArrayList<PatientHealthContract> getHealthListByDate(String date) {\n SQLiteDatabase db = helper.getReadableDatabase();\n String selectQuery = \"SELECT \" +\n PatientHealthEntry.COLUMN_AGE + \",\" +\n PatientHealthEntry.COLUMN_EMAIL + \",\" +\n PatientHealthEntry.COLUMN_BLOOD_GROUP + \",\" +\n PatientHealthEntry.COLUMN_MEDICATION + \",\" +\n PatientHealthEntry.COLUMN_CONDITION + \",\" +\n PatientHealthEntry.COLUMN_NOTES + \",\" +\n PatientHealthEntry.COLUMN_DATE_OF_VISIT +\n \" FROM \" + PatientHealthEntry.TABLE_NAME +\n \" WHERE \" + PatientHealthEntry.COLUMN_DATE_OF_VISIT + \" = \" + \"'\" + date + \"'\" + \";\";\n\n //PatientHealthEntry patient = new PatientHealthEntry();\n ArrayList<PatientHealthContract> healthList = new ArrayList<>();\n\n Cursor cursor = db.rawQuery(selectQuery, null);\n // looping through all rows and adding to list\n\n if (cursor.moveToFirst()) {\n do {\n PatientHealthContract patient = new PatientHealthContract();\n patient.setAge(cursor.getString(cursor.getColumnIndex(PatientHealthEntry.COLUMN_AGE)));\n patient.setBloodGroup(cursor.getString(cursor.getColumnIndex(PatientHealthEntry.COLUMN_BLOOD_GROUP)));\n patient.setCondition(cursor.getString(cursor.getColumnIndex(PatientHealthEntry.COLUMN_CONDITION)));\n patient.setMedication(cursor.getString(cursor.getColumnIndex(PatientHealthEntry.COLUMN_MEDICATION)));\n patient.setNotes(cursor.getString(cursor.getColumnIndex(PatientHealthEntry.COLUMN_NOTES)));\n patient.setDateVisit(cursor.getString(cursor.getColumnIndex(PatientHealthEntry.COLUMN_DATE_OF_VISIT)));\n patient.setEmail(cursor.getString(cursor.getColumnIndex(PatientHealthEntry.COLUMN_EMAIL)));\n healthList.add(patient);\n\n } while (cursor.moveToNext());\n }\n\n cursor.close();\n db.close();\n return healthList;\n }",
"public Cliente[] findWhereFechaRegistroEquals(Date fechaRegistro) throws ClienteDaoException;",
"private Day getDay(String dayName){\n for(Day day: dayOfTheWeek)\n if(dayName.equals(day.getDay()))\n return (day);\n return(new Day());\n }",
"public native Record[] findAll(String propertyName, Date value) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n var recordsJS = self.findAll(propertyName, @com.smartgwt.client.util.JSOHelper::convertToJavaScriptDate(Ljava/util/Date;)(value));\r\n return recordsJS == null || recordsJS === undefined ? null : @com.smartgwt.client.data.Record::convertToRecordArray(Lcom/google/gwt/core/client/JavaScriptObject;)(recordsJS);\r\n }-*/;",
"public ArrayList<MedicalRecord> getPatientRecords(String patient) {\n if (database.containsKey(patient)) {\n return database.get(patient);\n } else {\n System.out.println(\"No such patient found\");\n return null;\n }\n }",
"@Override\r\n\tpublic List<Map<String, Object>> dayAgent(int day) {\n\t\treturn agentMapper.dayAgent(day);\r\n\t}",
"AbstractList<Event> getEventByCreateDate(Date d){\r\n\t\treturn events;\r\n\t}",
"private List<DailyRecord> getDaily(int year, Month month, String type) throws SQLException {\n\t\tLocalDate from = LocalDate.of(year, month, 1);\n\t\tLocalDate to = LocalDate.of(year, month, month.length(from.isLeapYear()));\n\t\ttry (PreparedStatement statement = conn.prepareStatement(\"select date, sum(Amount) from transaction where date between ? and ? and type=? group by date\" )) {\n\t\t\tstatement.setDate(1, Date.valueOf(from));\n\t\t\tstatement.setDate(2, Date.valueOf(to));\n\t\t\tstatement.setString(3, type);\n\t\t\ttry (ResultSet resultSet = statement.executeQuery()) {\n\t\t\t\tArrayList<DailyRecord> list = new ArrayList<>();\n\t\t\t\twhile (resultSet.next()) {\n\t\t\t\t\tLocalDate resultDate = resultSet.getDate(1).toLocalDate();\n\t\t\t\t\tint day = resultDate.getDayOfMonth();\n\t\t\t\t\tDayOfWeek weekDay = resultDate.getDayOfWeek();\n\t\t\t\t\tdouble amount = resultSet.getDouble(2);\t\t\t\t\t\n\t\t\t\t\tlist.add(new DailyRecord(amount, day, weekDay));\t\t\t\n\t\t\t\t}\n\t\t\t\treturn list;\n\t\t\t}\n\t\t}\n\t}",
"private Double[] getDayValue24(DayEM dayEm) {\n\n\t Double[] dayValues = new Double[24];\n\n\t /* OPF-610 정규화 관련 처리로 인한 주석\n\t dayValues[0] = (dayEm.getValue_00() == null ? 0 : dayEm.getValue_00());\n\t dayValues[1] = (dayEm.getValue_01() == null ? 0 : dayEm.getValue_01());\n\t dayValues[2] = (dayEm.getValue_02() == null ? 0 : dayEm.getValue_02());\n\t dayValues[3] = (dayEm.getValue_03() == null ? 0 : dayEm.getValue_03());\n\t dayValues[4] = (dayEm.getValue_04() == null ? 0 : dayEm.getValue_04());\n\t dayValues[5] = (dayEm.getValue_05() == null ? 0 : dayEm.getValue_05());\n\t dayValues[6] = (dayEm.getValue_06() == null ? 0 : dayEm.getValue_06());\n\t dayValues[7] = (dayEm.getValue_07() == null ? 0 : dayEm.getValue_07());\n\t dayValues[8] = (dayEm.getValue_08() == null ? 0 : dayEm.getValue_08());\n\t dayValues[9] = (dayEm.getValue_09() == null ? 0 : dayEm.getValue_09());\n\t dayValues[10] = (dayEm.getValue_10() == null ? 0 : dayEm.getValue_10());\n\t dayValues[11] = (dayEm.getValue_11() == null ? 0 : dayEm.getValue_11());\n\t dayValues[12] = (dayEm.getValue_12() == null ? 0 : dayEm.getValue_12());\n\t dayValues[13] = (dayEm.getValue_13() == null ? 0 : dayEm.getValue_13());\n\t dayValues[14] = (dayEm.getValue_14() == null ? 0 : dayEm.getValue_14());\n\t dayValues[15] = (dayEm.getValue_15() == null ? 0 : dayEm.getValue_15());\n\t dayValues[16] = (dayEm.getValue_16() == null ? 0 : dayEm.getValue_16());\n\t dayValues[17] = (dayEm.getValue_17() == null ? 0 : dayEm.getValue_17());\n\t dayValues[18] = (dayEm.getValue_18() == null ? 0 : dayEm.getValue_18());\n\t dayValues[19] = (dayEm.getValue_19() == null ? 0 : dayEm.getValue_19());\n\t dayValues[20] = (dayEm.getValue_20() == null ? 0 : dayEm.getValue_20());\n\t dayValues[21] = (dayEm.getValue_21() == null ? 0 : dayEm.getValue_21());\n\t dayValues[22] = (dayEm.getValue_22() == null ? 0 : dayEm.getValue_22());\n\t dayValues[23] = (dayEm.getValue_23() == null ? 0 : dayEm.getValue_23());\n\t\t\t*/\n\t \n\t return dayValues;\n\t }",
"public HashMap<String, String> getSomeDaydata(int day) {\n\t\tif(day >= 0 && day <=4){\n\t\t\ttry {\n\t\t\t\tHashMap<String, String> day2Map = new HashMap<String, String>();\n\t\t\t\tJsonObject day2Object = this.jsonForecastArray.get(day).getAsJsonObject();\n\t\t\t\tday2Map.put(\"日期\", day2Object.get(\"date\").getAsString());\n\t\t\t\tday2Map.put(\"最高温\", day2Object.get(\"high\").getAsString());\n\t\t\t\tday2Map.put(\"最低温\", day2Object.get(\"low\").getAsString());\n\t\t\t\tday2Map.put(\"风力\", day2Object.get(\"fengli\").getAsString());\n\t\t\t\tday2Map.put(\"天气\", day2Object.get(\"type\").getAsString());\n\t\t\t\treturn day2Map;\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.e(\"WeatherRequest Class\", \"Hashmap hasn't init\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"io.dstore.values.TimestampValue getFromDay();",
"public void onDayClick(EventDay eventDay) {\n if (_currentNote.getText() != null) {\n if (_currentNote.getText().length()>0) {\n _dailyNotes.put(currDate.toString(), _currentNote.getText().toString());\n }\n }\n _currentNote.clearFocus();\n\n //update current data\n currCal = eventDay.getCalendar();\n currDate = currCal.getTime().toInstant().atZone(ZoneId.systemDefault()).toLocalDate();\n _readingSwitch.setChecked(_savedDates.contains(currDate));\n _currentNote.setText(_dailyNotes.get(currDate.toString()));\n currNote = _dailyNotes.get(currDate.toString());\n\n// Log.i(\"DailyLogFragment\", \"After click event Day clicked is: \" + eventDay);\n// Log.i(\"DailyLogFragment\", \"After clicked _daysRead has: \" + _daysRead.size());\n// Log.i(\"DailyLogFragment\", \"After clicked currDay is: \" + currDate);\n// Log.i(\"DailyLogFragment\", \"_daysRead = \" + _daysRead);\n// Log.i(\"DailyLogFragment\", \"_savedDates = \" + _savedDates);\n// Log.i(\"DailyLogFragment\", \"after current Note is: \" + currNote);\n }",
"public final Record[] getRecords() {\n Record[] myRecords = new Record[records.size()];\n\n Iterator iterator = records.iterator();\n for (int i = 0; i < records.size(); i++) {\n myRecords[i] = (Record) iterator.next();\n }\n\n return myRecords;\n }",
"public ArrayList<DailyHours> getDayList()\r\n\t{\r\n\t\treturn new ArrayList<DailyHours>(dailyHourLog);\r\n\t}",
"public abstract SortedSet<CalendarEvent> getEventsAt(User user, Date day);",
"public List<String> getRecordings(){\n findRecordings();\n return _records;\n }",
"public List<ByDay> getByDay() {\n\t\treturn byDay;\n\t}",
"public ArrayList<PomoDaily> getDaily(String userId) {\r\n PomoServer server = new PomoServer();\r\n String parameters = PomoServer.MODE_SELECT + \"&\" + \"userid=\" + userId;\r\n String url = PomoServer.DOMAIN_URL + PomoServer.SERVLET_DAILY;\r\n String data = server.get(url, parameters);\r\n ArrayList<PomoDaily> list = new ArrayList<>();\r\n if (data.equals(\"0\")) {\r\n return list;\r\n }\r\n String[] dailies = data.split(\";\");\r\n for (String d : dailies) {\r\n String[] attributes = d.split(\"&\");\r\n String id = attributes[0];\r\n String date = attributes[1];\r\n int plan = Integer.parseInt(attributes[2]);\r\n list.add(new PomoDaily(id, date, plan, userId));\r\n }\r\n return list;\r\n }",
"public static DefaultTableModel getSensorDataTime(String day, int id, Date date) {\n ResultSet rs = null;\n DefaultTableModel DTm = null;\n try (\n PreparedStatement stmt = conn.prepareStatement(SENSOR_DATA_TIME, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);) {\n stmt.setString(1, day);\n stmt.setInt(2, id);\n stmt.setDate(3, date);\n stmt.setDate(4, date);\n\n rs = stmt.executeQuery();\n System.out.println(stmt.toString());\n DTm = buildTableModel(rs);\n\n } catch (SQLException e) {\n System.err.println(e);\n }\n return DTm;\n }",
"noNamespace.TaskmonitorrecordDocument.Taskmonitorrecord getTaskmonitorrecordArray(int i);",
"@Override\r\n\tpublic Student[] getNearBirthDate(Date date, int days) {\n\t\treturn null;\r\n\t}",
"public List<Record>getRecords(){\n List<Record>recordList=new ArrayList<>();\n RecordCursorWrapper currsorWrapper=queryRecords(null,null);\n try{\n currsorWrapper.moveToFirst();\n while(!currsorWrapper.isAfterLast()){\n recordList.add(currsorWrapper.getRecord());\n currsorWrapper.moveToNext();\n }\n }finally {\n currsorWrapper.close();\n }\n return recordList;\n }",
"public List select(String where) throws SQLException\n {\n MonthlyValuesRecord record = null;\n\n // create a List to hold MonthlyValues Records\n List recordList = new ArrayList();\n\n // set number of records found to zero\n _recordsFound = 0;\n\n // Create the SQL statement and issue it\n // construct the select statment\n String selectStatement = \"SELECT * FROM monthlyvalues \" + where;\n\n // get the result set back from the query to the database\n ResultSet rs = getStatement().executeQuery(selectStatement);\n\n // loop through the result set\n while (rs.next())\n {\n // create an instance of a MonthlyValuesRecord\n // and store its address in oneRecord\n record = new MonthlyValuesRecord();\n\n // increment the number of records found\n _recordsFound++;\n\n // assign the data returned to the result set for one\n // record in the database to a MonthlyValuesRecord object\n\n record.setLid(getString(rs, 1));\n record.setPe(getString(rs, 2));\n record.setDur(getShort(rs, 3));\n record.setTs(getString(rs, 4));\n record.setExtremum(getString(rs, 5));\n record.setAdjustment(getString(rs, 6));\n record.setPostingtime(getTimeStamp(rs, 7));\n record.setJan_value(getDouble(rs, 8));\n record.setFeb_value(getDouble(rs, 9));\n record.setMar_value(getDouble(rs, 10));\n record.setApr_value(getDouble(rs, 11));\n record.setMay_value(getDouble(rs, 12));\n record.setJun_value(getDouble(rs, 13));\n record.setJul_value(getDouble(rs, 14));\n record.setAug_value(getDouble(rs, 15));\n record.setSep_value(getDouble(rs, 16));\n record.setOct_value(getDouble(rs, 17));\n record.setNov_value(getDouble(rs, 18));\n record.setDec_value(getDouble(rs, 19));\n \n // add this MonthlyValuesRecord object to the list\n recordList.add(record);\n }\n // Close the result set\n rs.close();\n\n // return a List which holds the MonthlyValuesRecord objects\n return recordList;\n\n }",
"public void getSavedRecord(MealVoucherConfiguration mealVoucher) {\n\r\n\t\tString query = \" SELECT MEAL_CONFIG_CASH, MEAL_CONFIG_FREQUENCY, MEAL_CONFIG_COUPEN, MEAL_CONFIG_DEBIT \"\r\n\t\t\t\t+ \" ,CASH.CREDIT_NAME,COUPEN.CREDIT_NAME,DEBIT_NAME , \" +\r\n\t\t\t\t\" MEAL_CONFIG_FROM, MEAL_CONFIG_TO, MEAL_CONFIG_AMT_LIMIT, MEAL_CONFIG_AMT_DECLARE, MEAL_FROM_PERIOD, MEAL_TO_PERIOD \"\r\n\t\t\t\t+ \" FROM HRMS_MEAL_VOUCHER_CONFIG \"\r\n\t\t\t\t+ \" INNER JOIN HRMS_CREDIT_HEAD CASH ON(CASH.CREDIT_CODE=HRMS_MEAL_VOUCHER_CONFIG.MEAL_CONFIG_CASH) \"\r\n\t\t\t\t+ \" INNER JOIN HRMS_CREDIT_HEAD COUPEN ON(COUPEN.CREDIT_CODE=HRMS_MEAL_VOUCHER_CONFIG.MEAL_CONFIG_COUPEN) \"\r\n\t\t\t\t+ \" INNER JOIN HRMS_DEBIT_HEAD ON(HRMS_DEBIT_HEAD.DEBIT_CODE=HRMS_MEAL_VOUCHER_CONFIG.MEAL_CONFIG_DEBIT) \";\r\n\r\n\t\tObject dataObj[][] = getSqlModel().getSingleResult(query);\r\n\r\n\t\tif (dataObj != null && dataObj.length > 0) {\r\n\t\t\t\r\n\t\t\tmealVoucher.setCreditCode(String.valueOf(dataObj[0][0]));\r\n\t\t\tmealVoucher.setFreqencyOfChange(String.valueOf(dataObj[0][1]));\r\n\t\t\tmealVoucher.setCoupenCode(String.valueOf(dataObj[0][2]));\r\n\t\t\tmealVoucher.setDebitCode(String.valueOf(dataObj[0][3]));\r\n\t\t\tmealVoucher.setCreditHead(String.valueOf(dataObj[0][4]));\r\n\t\t\tmealVoucher.setCoupenHead(String.valueOf(dataObj[0][5]));\r\n\t\t\tmealVoucher.setDebitHead(String.valueOf(dataObj[0][6]));\r\n\t\t\t\r\n\t\t\tmealVoucher.setFromYear(String.valueOf(dataObj[0][7]));\r\n\t\t\tmealVoucher.setToYear(String.valueOf(dataObj[0][8]));\r\n\t\t\tmealVoucher.setMealVoucherAmtLimit(String.valueOf(dataObj[0][9]));\r\n\t\t\tmealVoucher.setMealVoucherAmtDeclare(String.valueOf(dataObj[0][10]));\r\n\t\t\tmealVoucher.setFromPeriod(checkNull(String.valueOf(dataObj[0][11])));\r\n\t\t\tmealVoucher.setToPeriod(checkNull(String.valueOf(dataObj[0][12])));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\r\n\t}",
"public ArrayList<BikeData> getAllRecentData (){\n ArrayList<BikeData> datalist = new ArrayList<>();\n \n try(\n Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(ALL_RECENT_DATA);\n ResultSet rs = ps.executeQuery()){\n \n while(rs.next()){\n int bikeId = rs.getInt(cBikeID);\n LocalDateTime dateTime = rs.getTimestamp(cDateTime).toLocalDateTime();\n double latitude = rs.getDouble(cLatitude);\n double longitude = rs.getDouble(cLongitude);\n double chargingLevel = rs.getDouble(cChargingLevel);\n\n BikeData bd = new BikeData(bikeId, dateTime, latitude, longitude, chargingLevel);\n datalist.add(bd);\n }\n \n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n return datalist;\n }",
"DailyFlash getDailyFlashByDate(Store store, Date date);",
"public ArrayList<Event> getCalendarEventsByDay()\n {\n ArrayList<Event> dayListOfEvents = new ArrayList<>();\n\n for(int i = 0; i < events.size(); i++)\n {\n if( (events.get(i).getCalendar().get(Calendar.YEAR) == currentCalendar.get(Calendar.YEAR)) &&\n (events.get(i).getCalendar().get(Calendar.MONTH) == currentCalendar.get(Calendar.MONTH)) &&\n (events.get(i).getCalendar().get(Calendar.DAY_OF_MONTH) == currentCalendar.get(Calendar.DAY_OF_MONTH)))\n {\n dayListOfEvents.add(events.get(i));\n }\n }\n\n return dayListOfEvents;\n }",
"public SgfensPedidoProducto[] findWhereFechaEntregaEquals(Date fechaEntrega) throws SgfensPedidoProductoDaoException;",
"@SuppressWarnings(\"unchecked\")\n\t@External(readonly = true)\n\tpublic Map<String, String> get_daily_wagers(BigInteger day) {\n\t\tif (day.compareTo(BigInteger.ONE) == -1) {\n\t\t\tBigInteger now = BigInteger.valueOf(Context.getBlockTimestamp());\t\t\n\t\t\tday.add(now.divide(U_SECONDS_DAY));\t\t\t\n\t\t}\n\t\t\n\t\t Map.Entry<String, String>[] wagers = new Map.Entry[this.get_approved_games().size()];\n\t\t \n\t\tfor (int i= 0; i< this.get_approved_games().size(); i++ ) {\n\t\t\tAddress game = this.get_approved_games().get(i);\n\t\t\twagers[i] = Map.entry(game.toString(), String.valueOf(this.wagers.at(day).get(game)) );\n\t\t}\n\t\treturn Map.ofEntries(wagers);\n\t}",
"@Override\r\n\tpublic Student[] getByBirthDate(Date date) {\n\r\n\t\tint i = 0;\r\n\t\tArrayList<Student> list = new ArrayList();\r\n\r\n\t\twhile (i < students.length) {\r\n\r\n\t\t\tif (students[i].getBirthDate().compareTo(date) == 0) {\r\n\r\n\t\t\t\tlist.add(students[i]);\r\n\t\t\t}\r\n\r\n\t\t\ti++;\r\n\t\t}\r\n\r\n\t\tStudent[] newStudents = new Student[list.size()];\r\n\r\n\t\tint x = 0;\r\n\r\n\t\twhile (x < list.size()) {\r\n\r\n\t\t\tnewStudents[x] = list.get(x);\r\n\t\t\tx++;\r\n\t\t}\r\n\r\n\t\treturn newStudents;\r\n\t}",
"public List<AttendanceRecord> getAllAttendance(String loc, int month, int year){\n Calendar cal = Calendar.getInstance();\n List<AttendanceRecord> returnList = new ArrayList<>();\n\n for(AttendanceRecord ar:arDao.findAll()){\n cal.setTime(ar.getDate());\n\n if( (cal.get(Calendar.MONTH)+1)==month && cal.get(Calendar.YEAR)==year && ar.getStaff().getLocation().equalsIgnoreCase(loc) ){\n returnList.add(ar);\n }\n }\n\n return returnList;\n }",
"public Ruta[] findWhereFhRegRutaEquals(Date fhRegRuta) throws RutaDaoException;",
"public void setupDays() {\n\n //if(days.isEmpty()) {\n days.clear();\n int day_number = today.getActualMaximum(Calendar.DAY_OF_MONTH);\n SimpleDateFormat sdf = new SimpleDateFormat(\"EEEE\");\n SimpleDateFormat sdfMonth = new SimpleDateFormat(\"MMM\");\n today.set(Calendar.DATE, 1);\n for (int i = 1; i <= day_number; i++) {\n OrariAttivita data = new OrariAttivita();\n data.setId_utente(mActualUser.getID());\n\n //Trasformare in sql date\n java.sql.Date sqldate = new java.sql.Date(today.getTimeInMillis());\n data.setGiorno(sqldate.toString());\n\n data.setDay(i);\n data.setMonth(today.get(Calendar.MONTH) + 1);\n\n data.setDay_of_week(today.get(Calendar.DAY_OF_WEEK));\n Date date = today.getTime();\n String day_name = sdf.format(date);\n data.setDay_name(day_name);\n data.setMonth_name(sdfMonth.format(date));\n\n int indice;\n\n if (!attivitaMensili.isEmpty()) {\n if ((indice = attivitaMensili.indexOf(data)) > -1) {\n OrariAttivita temp = attivitaMensili.get(indice);\n if (temp.getOre_totali() == 0.5) {\n int occurence = Collections.frequency(attivitaMensili, temp);\n if (occurence == 2) {\n for (OrariAttivita other : attivitaMensili) {\n if (other.equals(temp) && other.getCommessa() != temp.getCommessa()) {\n data.setOtherHalf(other);\n data.getOtherHalf().setModifica(true);\n }\n }\n\n }\n }\n data.setFromOld(temp);\n data.setModifica(true);\n }\n }\n isFerie(data);\n\n\n //Aggiungi la data alla lista\n days.add(data);\n\n //Aggiugni un giorno alla data attuale\n today.add(Calendar.DATE, 1);\n }\n\n today.setTime(actualDate);\n\n mCalendarAdapter.notifyDataSetChanged();\n mCalendarList.setAdapter(mCalendarAdapter);\n showProgress(false);\n }",
"public void getDaysEvents(int userid, int day, int month, int year) {\r\n\t\t// Populate DaysEventsListIDs, DaysEventsListStartHour, DaysEventsListStopHour, DaysEventsListStartMin, DaysEventsListStopMin, DaysEventsListTitles\r\n\t\teventList.clear();\r\n\t\tEventList myEvent = new EventList();\r\n\t\ttry {\r\n\t\t Statement statement = connection.createStatement();\r\n\t\t statement.setQueryTimeout(30); // set timeout to 30 sec.\r\n\t\t ResultSet rs = statement.executeQuery(\r\n\t\t \t\t \"select id, starthour, startmin, stophour, stopmin, title, details from events where userid = \" + userid\r\n\t\t \t\t + \" and day = \" + day\r\n\t\t \t\t + \" and month = \" + month\r\n\t\t \t\t + \" and year = \" + year\r\n\t\t \t\t + \" order by starthour, startmin\");\r\n\t\t while(rs.next())\r\n\t\t {\r\n\t\t \tmyEvent = new EventList();\r\n\t\t // read the result set\r\n\t\t \tmyEvent.eid = rs.getInt(\"id\");\r\n\t\t \tmyEvent.starthour = rs.getInt(\"starthour\");\r\n\t\t \tmyEvent.startmin = rs.getInt(\"startmin\");\r\n\t\t \tmyEvent.stophour = rs.getInt(\"stophour\");\r\n\t\t \tmyEvent.stopmin = rs.getInt(\"stopmin\");\r\n\t\t \tmyEvent.title = rs.getString(\"title\");\r\n\t\t \tmyEvent.details = rs.getString(\"details\");\r\n\t\t \teventList.add(myEvent);\r\n\t\t }\r\n\t\t\t}\r\n\t\t catch(SQLException e)\r\n\t\t {\r\n\t\t // if the error message is \"out of memory\", \r\n\t\t // it probably means no database file is found\r\n\t\t System.err.println(e.getMessage());\r\n\t\t \r\n\t\t }\r\n\t\t\r\n\t\t//Query DB to get those details.\r\n\t}",
"public Integer getOne(int day, int hour) {\r\n return weekData[day][hour];\r\n }",
"public ArrayList<ArrayList<Double>> getReportsFromServer(LocalDate date)\n {\n\t //Go to DB and ask for reports of a specific date\n\t return null;\n }",
"private ListSeries getTodayData() {\n\t\tListSeries dollarEarning = new ListSeries();\n\t\tdouble number = 0;\n\t\tnumber = controler.getTodaysTransactionSummary();\n\t\tdollarEarning.addData(number);\n\t\t\n\t\treturn dollarEarning;\n\t}",
"public static ResultSet getAppointments(String day,String start,String partner){\r\n\t\ttry{\r\n\t\t\tconnection = DriverManager.getConnection(connectionString);\r\n\t\t\tstmt = connection.prepareStatement(\"SELECT Start,End FROM Appointment WHERE Date = ?;\");\r\n\t\t\tstmt.setString(1, day);\r\n\t\t\tdata = stmt.executeQuery();\r\n\t\t}\r\n\t\tcatch (SQLException ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn data;\r\n\t}",
"public AllRecords getAllRecords() {\n\t\treturn fileService.withFile(FILE_NAME, new AllRecords(), file -> {\n\t\t\tvar records = fileService.readFile(file, AllRecords.class);\n\t\t\trecords.easy = sort(records.easy);\n\t\t\trecords.medium = sort(records.medium);\n\t\t\trecords.hard = sort(records.hard);\n\t\t\treturn records;\n\t\t});\n\t}",
"public ArrayList<Object> DataBaseLogFoodsGetFoodsAndMeals (long initialDate, long finalDate) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n String mealsTime[] = {MealTime.BREAKFAST, MealTime.MORNING_SNACK, MealTime.LUNCH,\n MealTime.AFTERNOON_SNACK, MealTime.DINNER, MealTime.EVENING_SNACK};\n\n ArrayList<Object> foodsAndMealsList = new ArrayList<>();\n int foodsAndMealsListPosition = 0;\n int foodsAndMealsListStartPosition = 0;\n for (String mealTime : mealsTime) {\n String query = \"SELECT * FROM \" + TABLE_NAME + \" WHERE \" + COLUMN_DATE + \" BETWEEN \" +\n +initialDate + \" AND \" + finalDate + \" AND \" + COLUMN_MEAL_TIME + \" LIKE \" +\n \"'\" + mealTime + \"'\" + \" ORDER BY \" + COLUMN_DATE + \" ASC\";\n\n Cursor cursor = db.rawQuery(query, null);\n cursor.moveToFirst();\n int counter = cursor.getCount();\n int calories = 0;\n int mealCalories = 0;\n boolean foodAdded = false;\n for (; counter > 0; ) {\n if (cursor.isAfterLast()) break;\n Foods food = new Foods();\n food.setId(cursor.getInt(cursor.getColumnIndex(COLUMN_ID)));\n food.setDate(cursor.getLong(cursor.getColumnIndex(COLUMN_DATE)));\n food.setName(cursor.getString(cursor.getColumnIndex(COLUMN_NAME)));\n food.setBrand(cursor.getString(cursor.getColumnIndex(COLUMN_BRAND)));\n food.setUnitsLogged(cursor.getFloat(cursor.getColumnIndex(COLUMN_UNITS_LOGGED)));\n\n // keep track of total calories on this MealTime\n calories = cursor.getInt(cursor.getColumnIndex(COLUMN_CALORIES_LOGGED));\n mealCalories += calories;\n food.setCaloriesLogged(calories);\n food.setUnits(cursor.getFloat(cursor.getColumnIndex(COLUMN_UNITS)));\n food.setUnitType(cursor.getString(cursor.getColumnIndex(COLUMN_UNIT_TYPE)));\n food.setCalories(cursor.getInt(cursor.getColumnIndex(COLUMN_CALORIES)));\n food.setMealTime(cursor.getString(cursor.getColumnIndex(COLUMN_MEAL_TIME)));\n food.setIsCustomCalories(cursor.getInt(cursor.getColumnIndex(COLUMN_IS_CUSTOM_CALORIES)) == 1);\n foodsAndMealsList.add(food);\n foodAdded = true;\n foodsAndMealsListPosition++;\n cursor.moveToNext();\n }\n\n if (foodAdded == true) {\n // add to begin of list the MealTime\n foodsAndMealsList.add(foodsAndMealsListStartPosition, new MealTime(mealTime, mealCalories));\n foodsAndMealsListPosition++;\n foodsAndMealsListStartPosition = foodsAndMealsListPosition;\n }\n cursor.close();\n }\n\n db.close(); // Closing database connection\n return foodsAndMealsList;\n }",
"ResourceCollection<SubscriptionDailyUsageRecord> get();",
"public void getExistingData() {\n SQLiteDatabase db = databaseHelper.getReadableDatabase();\n\n /* Get day ids and dates */\n String[] projection = {TableConstants.DayId, TableConstants.DayDate};\n\n /* Create an arraylist of the dates and Dayid*/\n ArrayList<String> dates = new ArrayList<>();\n ArrayList<Integer> dayIds = new ArrayList<>();\n\n /* Query the exercise table based on the exercise id to get all the associated exercises */\n Cursor c = db.query(TableConstants.DayTableName, projection,\n TableConstants.ExerciseId + \" = \" + exerciseId, null, null, null, null);\n\n c.moveToFirst();\n\n /* Insert the dayId and dates into their arrays */\n while (!c.isAfterLast()) {\n dayIds.add(c.getInt(0));\n dates.add(c.getString(1));\n c.moveToNext();\n }\n\n\n Log.e(TAG, \"Daysize = \" + dayIds.size());\n\n db = databaseHelper.getReadableDatabase();\n\n /* Get the sets for each day */\n int i = 0;\n for (Integer dayId : dayIds) {\n /* Query the sets table based on dayId */\n String[] projection2 = {TableConstants.LiftSetsId, TableConstants.LiftSetReps, TableConstants.LiftSetWeight};\n c = db.query(TableConstants.LiftSetsTableName, projection2, TableConstants.DayId + \" = \"\n + dayId, null, null, null, null);\n\n\n ArrayList<LiftSet> liftSets = new ArrayList<>();\n\n /* Add all lifts for the day into a new array */\n c.moveToFirst();\n while (!c.isAfterLast()) {\n liftSets.add(new LiftSet(1, c.getInt(0), c.getInt(1), c.getDouble(2)));\n Log.e(TAG, \"HERE\");\n c.moveToNext();\n }\n\n /* Add the lift set and date to pastLiftSets */\n pastLiftItems.add(0, new PastLiftItem(liftSets, dates.get(i++)));\n\n c.close();\n }\n db.close();\n }",
"public Record readRecord(int recordId) {\n return records[recordId];\n }",
"@Override\n\tpublic ArrayList<Dday> ddayMain(String memberNo) {\n\t\treturn dDao.ddayMain(sqlSession, memberNo);\n\t}",
"public String[] getEventsList(){\n Connection con = null;\n PreparedStatement st = null;\n ResultSet rs = null;\n Vector<String> list = new Vector<String>();\n String[] result = null;\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-YY\");\n try{\n //obtain the database connection by calling getConn()\n con = getConn();\n //build sql\n String sql = \"select name,to_date(start_time,'DD-MM-YY'),to_date(end_time,'DD-MM-YY') from event\" ;\n \n //create the PreparedStatement from the Connection object by calling prepareCall\n //method, passing it the sql \n st = con.prepareCall(sql);\n \n //Calls executeQuery and the resulting data is returned in the resultset\n rs = st.executeQuery();\n \n //loop through the result set and save the data in the datamodel objects\n while (rs.next()){\n list.add(sdf.format(rs.getDate(2)) + \",\" + sdf.format(rs.getDate(3)) + \",\" + rs.getString(\"name\"));\n \n }\n \n result = new String[list.size()];\n for (int i = 0 ; i< list.size() ; i++){\n result[i] = list.get(i);\n \n }\n }\n catch (SQLException ex){\n ex.printStackTrace();\n }\n \n //close the resultset,preparedstatement and connection to relase resources \n if (rs != null){\n try{\n rs.close();\n rs = null;\n }\n catch (SQLException e){\n \n }\n }\n if (st != null){\n try{\n st.close();\n st = null;\n }\n catch (SQLException e){\n \n }\n }\n \n if (con != null){\n try{\n con.close();\n con = null;\n }\n catch (SQLException e){\n \n }\n }\n \n return result;\n }",
"public void saveOrderDayInfos(OrderDayInfo[] orderDayInfos) {\n\t\ttry {\r\n\t\t\tgetSqlMapClientTemplate().getSqlMapClient().startBatch();\r\n\r\n\t\t\tfor(int i = 0;i < orderDayInfos.length;i++){\r\n\t\t\t\t OrderDayInfo orderDayInfo = orderDayInfos[i];\r\n\t\t\t\t\r\n\t\t\t\t\tLong id = orderDayInfo.getId(); \r\n\t\t\t\t\tint dayTimes = orderDayInfo.getAdDayTimes().intValue();\r\n\t\t\t\t\tboolean isNew = (id == null || id.longValue() == 0) ? true : false;\r\n\t\t\t\t\tint need=orderDayInfo.getNeedPublish().intValue();\r\n\t\t\t\t\t\r\n//\t\t\t\t\tSystem.out.println(\"saveOrderDayInfos isNew >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>needCal>>>>>>\" + isNew);\r\n//\t\t\t\t\tSystem.out.println(\"saveOrderDayInfos dayTimes >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>needCal>>>>>>\" + dayTimes);\r\n//\t\t\t\t\tSystem.out.println(\"saveOrderDayInfos need >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>needCal>>>>>>\" + need);\r\n\t\t\t\t\tif (isNew && dayTimes > 0&& need!=1) {\r\n\t\t\t\t\t\t getSqlMapClientTemplate().getSqlMapClient().insert(\"addOrderDayInfo\", orderDayInfo);\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 for(int i = 0;i < orderDayInfos.length;i++){\r\n\t\t\t\tOrderDayInfo orderDayInfo = orderDayInfos[i];\r\n\t\t\t\t \r\n\t\t\t\tLong id = orderDayInfo.getId();\r\n\t\t\t\tint dayTimes = orderDayInfo.getAdDayTimes().intValue();\r\n\t\t\t\tboolean isNew = (id == null || id.longValue() == 0) ? true\r\n\t\t\t\t\t\t: false;\r\n\r\n\t\t\t\tif (!isNew && dayTimes == 0) {\r\n\t\t\t\t\tgetSqlMapClientTemplate().getSqlMapClient().update(\r\n\t\t\t\t\t\t\t\"deleteOrderDayInfo\", id);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\tfor(int i = 0;i < orderDayInfos.length;i++){\r\n\t\t\t\t \tOrderDayInfo orderDayInfo = orderDayInfos[i];\r\n\t\t\t\t\tLong id = orderDayInfo.getId();\r\n\t\t\t\t\tint dayTimes = orderDayInfo.getAdDayTimes().intValue();\r\n\t\t\t\t\tboolean isNew = (id == null || id.longValue() == 0) ? true : false;\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\t\tif (!isNew && dayTimes > 0) {\r\n\t\t\t\t\t\tgetSqlMapClientTemplate().getSqlMapClient().update(\"updateOrderDayInfo\", orderDayInfo);\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t\t//updateDayInfo\r\n\t\t\tfor(int i = 0;i < orderDayInfos.length;i++){\r\n\t\t\t\t OrderDayInfo orderDayInfo = orderDayInfos[i];\r\n//\t\t\t\t System.out.println(orderDayInfo.getDayInfo().getId()+\"???\"+orderDayInfo.getDayInfo().getUsed());\r\n\t\t\t\t if(orderDayInfo.getNeedPublish().intValue()!=1)\r\n\t\t\t\t\t \tgetSqlMapClientTemplate().getSqlMapClient().update(\"updateDayInfo-saveOrderDetail\", orderDayInfo.getDayInfo());\r\n\t\t\t}\r\n\t\t\tgetSqlMapClientTemplate().getSqlMapClient().executeBatch();\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public ArrayList<Medication> getAllMeds() {\n String sql = \"select * from Med\";\n Cursor cursor = getReadableDatabase().rawQuery(sql, new String[]{});\n int dbIndex = cursor.getColumnIndex(\"_id\");\n int medNameIndex = cursor.getColumnIndex(\"medname\");\n int medNotesIndex = cursor.getColumnIndex(\"mednotes\");\n int doseIndex = cursor.getColumnIndex(\"dose\");\n int freqIndex = cursor.getColumnIndex(\"freq\");\n int startDateIndex = cursor.getColumnIndex(\"startdate\");\n int endDateIndex = cursor.getColumnIndex(\"enddate\");\n int imageIndex = cursor.getColumnIndex(\"image\");\n int alert1Index = cursor.getColumnIndex(\"alert1\");\n int alert2Index = cursor.getColumnIndex(\"alert2\");\n int alert3Index = cursor.getColumnIndex(\"alert3\");\n int alert4Index = cursor.getColumnIndex(\"alert4\");\n int alert5Index = cursor.getColumnIndex(\"alert5\");\n int alert6Index = cursor.getColumnIndex(\"alert6\");\n int alertsOnIndex = cursor.getColumnIndex(\"alertson\");\n\n ArrayList<Medication> tempArray = new ArrayList();\n for (int i = 0; i < cursor.getCount(); i++) {\n cursor.moveToPosition(i);\n Medication newMed = new Medication(); //(cursor.getString(languageIndex), cursor.getString(allergyIndex), cursor.getInt(dateIndex));\n newMed.setDbID(cursor.getInt(dbIndex));\n newMed.setMedName(cursor.getString(medNameIndex));\n newMed.setMedNotes(cursor.getString(medNotesIndex));\n newMed.setDose(cursor.getString(doseIndex));\n newMed.setFreq(cursor.getInt(freqIndex));\n newMed.setMedStart(cursor.getInt(startDateIndex));\n newMed.setMedEnd(cursor.getInt(endDateIndex));\n newMed.setImageRes(cursor.getString(imageIndex));\n newMed.setAlert1(cursor.getInt(alert1Index));\n newMed.setAlert2(cursor.getInt(alert2Index));\n newMed.setAlert3(cursor.getInt(alert3Index));\n newMed.setAlert4(cursor.getInt(alert4Index));\n newMed.setAlert5(cursor.getInt(alert5Index));\n newMed.setAlert6(cursor.getInt(alert6Index));\n newMed.setAlertsOn(cursor.getInt(alertsOnIndex));\n\n //get hashmaps and set them to the med object\n HashMap[] hashMapArray = getDoseMaps(newMed);\n newMed.setDoseMap1(hashMapArray[0]);\n newMed.setDoseMap2(hashMapArray[1]);\n tempArray.add(newMed);\n }\n cursor.close();\n\n //return the array to be used at runtime\n return tempArray;\n }",
"@Override\n\tpublic List<Record> getAllRecord() {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\ttry {\n\t\t\tlist = dao.findAll();\n\t\t\ttx.commit();\n\t\t} catch (RuntimeException e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\ttx.rollback();\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\n\t\treturn list;\n\t}",
"@SuppressWarnings(\"rawtypes\")\n\tpublic List read1(String dayId) throws SQLException {\n \t\n \tString sqlQuery = \"select t01.id\"\n\t\t \t\t\t+ \" , t01.departure_time\"\n\t\t \t\t\t+ \"\t\t, t01.arrival_time\"\n\t\t \t\t\t+ \" , t02.id as day_id\"\n\t\t \t\t\t+ \" , t02.label as day_label\"\n\t\t\t\t\t\t+ \" from flights t01, days t02\"\n\t\t\t\t\t\t+ \" where t02.id = t01.day_id\"\n\t\t\t\t;\n \t\n \tif (dayId != null) {\n \t\tsqlQuery += String.format(\" and t02.id = %s\", dayId);\n \t\tsqlQuery += \" order by t01.id asc;\";\n \t}\n \t\n \telse {\n \tsqlQuery += \" order by t02.id asc, t01.id asc;\";\n \t}\n \t\n \t\n try {\n \t\n \treturn new FlightRowMapper().mapRows(this.jdbcTemplate.queryForList(sqlQuery));\n \t\n } catch (Exception e) {\n \t\n e.printStackTrace();\n \n }\n \n \n\t\treturn null;\n\n }",
"UvStatDay selectByPrimaryKey(Long id);",
"@Override\n\tpublic Dates find(int id) {\n\t\tDates date = new Dates();\n\t\tString query = \"SELECT * FROM dates WHERE ID = ? \";\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement statement = this.connect.prepareStatement(query);\n\t\t\tstatement.setInt(1, id);\n\t\t\tResultSet result = statement.executeQuery();\n\n\t\t\tif (result.first()) {\n\t\t\t\t\n\t\t\t\tdate = new Dates(id, result.getString(\"Dates\"));\n\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn date;\n\t}",
"public @NonNull R getFoundRecord() {\n if (!foundItems.isEmpty()) {\n return foundItems.get(recordIndex);\n// assert foundRecord != null;\n// return Objects.requireNonNull(foundRecord);\n }\n R emptyRecord = createNewEmptyRecord();\n foundItems.add(emptyRecord);\n fireModelListChanged(); // Is it dangerous to fire the listener before returning the record?\n return emptyRecord;\n }",
"public ArrayList<Foods> DataBaseLogFoodsGetFoods (long initialDate, long finalDate) {\n SQLiteDatabase db = this.getWritableDatabase();\n String query = \"SELECT * FROM \" + TABLE_NAME + \" WHERE \" + COLUMN_DATE + \" BETWEEN \" +\n + initialDate + \" AND \" + finalDate + \" ORDER BY \" + COLUMN_DATE +\n \" ASC\";\n\n Cursor cursor = db.rawQuery(query, null);\n\n cursor.moveToFirst();\n int counter = cursor.getCount();\n ArrayList<Foods> foodsList = new ArrayList<>();\n for ( ; counter > 0; ) {\n if (cursor.isAfterLast()) break;\n Foods food = new Foods();\n food.setId(cursor.getInt(cursor.getColumnIndex(COLUMN_ID)));\n food.setDate(cursor.getLong(cursor.getColumnIndex(COLUMN_DATE)));\n food.setName(cursor.getString(cursor.getColumnIndex(COLUMN_NAME)));\n food.setBrand(cursor.getString(cursor.getColumnIndex(COLUMN_BRAND)));\n food.setUnitsLogged(cursor.getFloat(cursor.getColumnIndex(COLUMN_UNITS_LOGGED)));\n food.setCaloriesLogged(cursor.getInt(cursor.getColumnIndex(COLUMN_CALORIES_LOGGED)));\n food.setUnits(cursor.getFloat(cursor.getColumnIndex(COLUMN_UNITS)));\n food.setUnitType(cursor.getString(cursor.getColumnIndex(COLUMN_UNIT_TYPE)));\n food.setCalories(cursor.getInt(cursor.getColumnIndex(COLUMN_CALORIES)));\n food.setMealTime(cursor.getString(cursor.getColumnIndex(COLUMN_MEAL_TIME)));\n food.setIsCustomCalories(cursor.getInt(cursor.getColumnIndex(COLUMN_IS_CUSTOM_CALORIES)) == 1);\n foodsList.add(food);\n cursor.moveToNext();\n }\n\n cursor.close();\n db.close(); // Closing database connection\n return foodsList;\n }",
"@Override\n\tpublic List<DailyData> getFoodData(String username, String date) {\n\t\treturn mobileDao.getFoodData(username,date);\n\t}",
"private List<String> getDataFromApi() throws IOException {\n // List the next 10 events from the primary calendar.\n DateTime now = new DateTime(System.currentTimeMillis());\n Date nowToday = new Date(System.currentTimeMillis());\n Date now2 = new Date();\n Log.d(\"TIME\", now2.toString()); // Fri Apr 14 11:45:53 GMT-04:00 2017\n String show = DateFormat.getTimeInstance().format(nowToday); // 오후 4:22:40\n String show2 = DateFormat.getDateInstance().format(nowToday); // 2017. 4. 7.\n String show3 = DateFormat.getDateTimeInstance().format(nowToday); // 2017. 4. 7. 오후 4:22:40\n // String show4 = DateFormat.getDateInstance().format(now); 이건 안됌 에러\n\n\n java.text.SimpleDateFormat toDateTime = new java.text.SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ssZ\");\n //Date todayDate = new Date();\n // String todayName = dayName.format(todayDate);\n\n java.util.Calendar calendar = java.util.Calendar.getInstance();\n\n calendar.setTime(nowToday);\n calendar.add(Calendar.HOUR, 2);\n Date twoFromNow = calendar.getTime();\n\n\n\n List<String> eventStrings = new ArrayList<String>();\n Events events = mService.events().list(\"primary\")\n .setMaxResults(10)\n .setTimeMin(now)\n .setTimeMax(new DateTime(twoFromNow, TimeZone.getDefault()))\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n\n\n List<Event> items = events.getItems();\n // List<Map<String, String>> pairList = new ArrayList<Map<String, String>>();\n // String nowDay = now.toString().substring(0, now.toString().indexOf(\"T\"));\n\n\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n\n // Only get events with exact start time set, exclude all day\n if (start != null) {\n eventStrings.add(\n String.format(\"%s //// %s)\", event.getSummary(), start));\n }\n\n\n }\n\n return eventStrings;\n }",
"@Override\r\n\tprotected void onActivityResult(int arg0, int arg1, Intent arg2) {\n\t\tsuper.onActivityResult(arg0, arg1, arg2);\r\n\t\tString squery = \"SELECT * FROM \" + \"'\" + year + \".\" + month\r\n\t\t\t\t+ \"' WHERE day = \" + day + \";\";\r\n\t\tCursor c = database.rawQuery(squery, null);\r\n\r\n\t\tc.moveToFirst();\r\n\r\n\t\tdayCell.clear();\r\n\t\tdo {\r\n\t\t\tif (c.getString(4) != null) {\r\n\t\t\tdayCell.add(new DailyCell(String.valueOf(c.getInt(0)), String\r\n\t\t\t\t\t.valueOf(c.getInt(1)), String.valueOf(c.getDouble(2)),\r\n\t\t\t\t\tString.valueOf(c.getDouble(3)), c.getString(4), c.getString(5)));\r\n\t\t\t}\r\n\t\t} while (c.moveToNext());\r\n\t\tmDailyAdapter.notifyDataSetChanged();\r\n\t}",
"@Override\n\tpublic List<AttendanceRecordModel> findAttendanceRecord(String userid)\n\t{\n\t\treturn attendanceRecordDao.listAttendanceRecord(userid);\n\t}",
"io.dstore.values.TimestampValue getDay();",
"private ArrayList<Transaction> getTransactionsOfTheDay(int assetID) throws Exception {\n int i = 1;\n ArrayList<Transaction> currentTransactions = new ArrayList<Transaction>();\n ArrayList<Transaction> allTransactions = new ArrayList<Transaction>();\n\n while (true) {\n String url = MASTER_URL + ASSETS + assetID + \"/history_paginate.api?page=\" + i;\n\n URL obj = new URL(url);\n HttpURLConnection con = (HttpURLConnection) obj.openConnection();\n // request method\n con.setRequestMethod(\"GET\");\n\n // request headers\n con.setRequestProperty(\"token\", USER_TOKEN);\n con.setRequestProperty(\"User-Agent\", USER_AGENT);\n\n // reading input stream\n BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n String inputLine;\n String response = \"\";\n while ((inputLine = in.readLine()) != null) {\n response += inputLine;\n }\n in.close();\n\n DateTime assetActiveDateTime = new DateTime().minusDays(1);\n// System.out.println(assetActiveDateTime);\n int day = assetActiveDateTime.getDayOfMonth();\n int month = assetActiveDateTime.getMonthOfYear();\n int year = assetActiveDateTime.getYear();\n ObjectMapper mapper = new ObjectMapper();\n mapper.configure(org.codehaus.jackson.map.DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES, false);\n String emptyHistory = \"{\\\"history\\\":[]\";\n if (!response.substring(0,13).equals(emptyHistory)) {\n String arrayResponse = response.substring(11, response.length() - 1);\n CollectionType constructCollectionType =\n TypeFactory.defaultInstance().constructCollectionType(ArrayList.class,\n Transaction.class);\n currentTransactions = mapper.readValue(arrayResponse, constructCollectionType);\n for (Transaction t : currentTransactions){\n DateTime checkoutDateTime = t.getCheckOutDateTime();\n if (day == checkoutDateTime.getDayOfMonth() &&\n month == checkoutDateTime.getMonthOfYear() &&\n year == checkoutDateTime.getYear()) {\n allTransactions.add(t);\n }\n }\n// System.out.println(allTransactions);\n currentTransactions.clear();\n } else {\n break;\n }\n i++;\n }\n return allTransactions;\n }",
"public void getChallanRecords(TaxChallan taxChallan){\r\n\t\tObject data[][] = null;\r\n\t\r\n\t\ttry {\r\n\t\t\tString challanQuery = \"SELECT HRMS_TAX_CHALLAN_DTL.CHALLAN_CODE,HRMS_TAX_CHALLAN_DTL.EMP_ID,EMP_TOKEN,EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME,HRMS_TAX_CHALLAN_DTL.CHALLAN_TDS,\"\r\n\t\t\t\t\t+ \" NVL(HRMS_TAX_CHALLAN_DTL.CHALLAN_SURCHARGE,0),NVL(HRMS_TAX_CHALLAN_DTL.CHALLAN_EDU_CESS,0),NVL(HRMS_TAX_CHALLAN_DTL.CHALLAN_TOTAL_TAX,0) FROM\"\r\n\t\t\t\t\t+ \" HRMS_TAX_CHALLAN_DTL INNER JOIN HRMS_TAX_CHALLAN ON(HRMS_TAX_CHALLAN_DTL.CHALLAN_CODE=HRMS_TAX_CHALLAN.CHALLAN_CODE)\"\r\n\t\t\t\t\t+ \" INNER JOIN HRMS_EMP_OFFC ON(HRMS_TAX_CHALLAN_DTL.EMP_ID=HRMS_EMP_OFFC.EMP_ID)\"\r\n\t\t\t\t\t+ \" WHERE HRMS_TAX_CHALLAN_DTL.CHALLAN_CODE=\"\r\n\t\t\t\t\t+ taxChallan.getChallanID()\r\n\t\t\t\t\t+ \" ORDER BY UPPER(EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME)\";\r\n\t\t\tdata = getSqlModel().getSingleResult(challanQuery);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"exception in challanQuery in getChallanRecords method\",e);\r\n\t\t} //end of catch\r\n\t\t\r\n\t\tif(data.length> 0 && data!=null){\r\n\t\ttaxChallan.setListFlag(\"true\");\r\n\t\tArrayList<Object> chList = new ArrayList<Object>();\r\n\t\ttry{\r\n\t\tfor(int i=0;i<data.length;i++){\r\n\t\t\tTaxChallan bean=new TaxChallan(); \r\n\t\t\tbean.setChallanCode(String.valueOf(data[i][0]));//Challan Code\r\n\t\t\tbean.setEmpId(String.valueOf(data[i][1]));//Employee Id\r\n\t\t\tbean.setEmpToken(String.valueOf(data[i][2]));//Token No.\r\n\t\t\tbean.setEmpName(String.valueOf(data[i][3]));//Emp Name\r\n\t\t\tbean.setChallanTax(Utility.twoDecimals(String.valueOf(data[i][4])));//Tds\r\n\t\t\t//bean.setChallanSurcharge(String.valueOf(data[i][5]));\r\n\t\t\tbean.setChallanSurcharge(Utility.twoDecimals(String.valueOf(data[i][5])));//Surcharge\r\n\t\t\tbean.setChallanEduCess(Utility.twoDecimals(String.valueOf(data[i][6])));//Education cess\r\n\t\t\tbean.setChallanTotTax(Utility.twoDecimals(String.valueOf(data[i][7])));\t//Total Tax\r\n\t\t//\tbean.setChallanTotTax(String.valueOf(data[i][7]));\r\n\t\t//\tbean.setPayDate(String.valueOf(data[i][8]));\r\n\t\t\t\r\n\t\t//\tif(String.valueOf(data[i][9]).equals(\"null\") || String.valueOf(data[i][9]).equals(\"\")){\r\n\t\t//\t\tbean.setDeductDate(\"\");\r\n\t\t//\t}else{\r\n\t\t//\tbean.setDeductDate(String.valueOf(data[i][9]).trim());\r\n\t\t//\t}\r\n\t\t\t\r\n\t\t//\tif(String.valueOf(data[i][10]).equals(\"null\") || String.valueOf(data[i][10]).equals(\"\")){\r\n\t\t//\t\tbean.setDepDate(\"\");\r\n\t\t//\t}else{\r\n\t\t//\tbean.setDepDate(String.valueOf(data[i][10]).trim());\r\n\t\t//\t}\r\n\t\t\tchList.add(bean);\r\n\t\t}\r\n\t\t}catch (Exception e) {\r\n\t\t\tlogger.error(\"exception in data loop\",e);\r\n\t\t} //end of catch\r\n\t\t\r\n\t\t taxChallan.setChallanList(chList);\r\n\t\t \r\n\t\t} //end of if\r\n\t\r\n\t}",
"public Experiment getExp(int day, int index){ // istenen gun ve index de ki elemani getir.\r\n Node temp = head;\r\n int i = 0;\r\n Experiment ret = new Experiment();\r\n while( temp.next != null){\r\n while( temp.data.day == day ){ // gun bilgisi oldugu surece don\r\n if( i == index){ // index e gelince elemani dondur\r\n ret = temp.data;\r\n return ret;\r\n }\r\n i++;\r\n temp = temp.next;\r\n }\r\n temp = temp.nextDay;\r\n }\r\n return ret;\r\n }",
"public void getRecord(TaxChallan taxChallan) {\r\n\t\tString ledgerCode = \"\";\r\n\t\tObject tdsParameter[][] = null;\r\n\t\ttaxChallan.setListFlag(\"true\");\r\n\t\ttaxChallan.setMonthName(getMonth(Integer.parseInt(taxChallan.getMonth())));\r\n\t\tif(taxChallan.getOnHold().equals(\"A\")){\r\n\t\t\ttaxChallan.setOnHold(\"All\");\r\n\t\t} else if(taxChallan.getOnHold().equals(\"Y\")){\r\n\t\t\ttaxChallan.setOnHold(\"Yes\");\r\n\t\t} else{\r\n\t\t\ttaxChallan.setOnHold(\"No\");\r\n\t\t}\r\n\t\tObject[][]data = null;\r\n\t\ttry {\r\n\t\t\tString tdsParaQuery = \"SELECT TDS_DEBIT_CODE,TDS_EDU_CESS,TDS_SURCHARGE_LIMIT_AMT,TDS_SURCHARGE \"\r\n\t\t\t\t\t+ \" FROM HRMS_TAX_PARAMETER \"\r\n\t\t\t\t\t+ \" WHERE TDS_CODE= (SELECT MAX(TDS_CODE) FROM HRMS_TAX_PARAMETER)\";\r\n\t\t\ttdsParameter = getSqlModel().getSingleResult(tdsParaQuery);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"exception in tdsParameter query\",e);\r\n\t\t} //end of catch\r\n\t\t\r\n\t\tif(tdsParameter !=null && tdsParameter.length >0){\r\n\t\t\tif(taxChallan.getIncludeSalary().equals(\"true\")){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tledgerCode = getLedgerCode(taxChallan.getMonth(),taxChallan.getYear());\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tlogger.error(\"exception in ledgerCode in getRecord method\",e);\r\n\t\t\t\t} //end of catch\r\n\t\t\t} //end of includeSalary if\r\n\t\t\t\r\n\t\t\tString challanQuery = getUnionQuery(taxChallan,tdsParameter,ledgerCode);\r\n\t\t\ttry {\r\n\t\t\t\tdata = getSqlModel().getSingleResult(challanQuery);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tlogger.error(\"exception in union challan query\",e);\r\n\t\t\t} //end of catch\r\n\t\t\t//logger.info(\"challanQuery========\"+challanQuery);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif(data!=null && data.length >0){\r\n\t\t\t\tgetChaRecordNew(taxChallan, tdsParameter,data);\r\n\t\t\t}else{\r\n\t\t\t\tsaveChallanHdrIfNoEmpFound(taxChallan);\r\n\t\t\t\tsetValuesIfNoData(taxChallan);\r\n\t\t\t} //end of data else\r\n\t\t\t\r\n\t\t} else{\r\n\t\t\tsetValuesIfNoData(taxChallan);\r\n\t\t} //end of tdsParameter else if null\r\n\t\t\r\n\t}",
"int insert(AoD5e466WorkingDay record);",
"public void processForDays(){\r\n\t\tboolean inDaySection = false;\r\n\t\tint dataSize;\r\n\t\tfor(int i=0; i<Constant.dataList.size(); i++){\r\n\t\t\tString line = Constant.dataList.get(i);\r\n\t\t\tString[] linesplit = line.split(\",\");\r\n\t\t\tdataSize = linesplit.length;\r\n\t\t\t\r\n\t\t\tif (i==0) {\r\n//\t\t\t\tConstant.dataList.set(i, \"Days,Dummy,\" + line);\r\n\t\t\t\tConstant.dayDataList.add(\"Days,Dummy,\"+linesplit[0]+\",\"+linesplit[1]+\",\"+\"Day00\");\r\n\t\t\t}\r\n\t\t\telse if(linesplit[1].equals(\"PM10\")){\r\n\t\t\t\tString m,a,e,n;\r\n//\t\t\t\tm = \"M,1000,\"+linesplit[0]+\"m,\"+linesplit[1];\r\n//\t\t\t\ta = \"A,1000,\"+linesplit[0]+\"a,\"+linesplit[1];\r\n//\t\t\t\te = \"E,1000,\"+linesplit[0]+\"e,\"+linesplit[1];\r\n//\t\t\t\tn = \"N,1000,\"+linesplit[0]+\"n,\"+linesplit[1];\r\n\t\t\t\t//morning,afternoon,evening\r\n\t\t\t\tfor(int j=0; j<4; j++){\r\n\t\t\t\t\tfor(int k=0; k<2; k++){\r\n\t\t\t\t\t\tif(j==0){\r\n\t\t\t\t\t\t\tif(k+7<dataSize){\r\n//\t\t\t\t\t\t\t\tm = m + \",\" + linesplit[k+7];\r\n\t\t\t\t\t\t\t\tm = \"Morning,1000,\"+linesplit[0]+\"m-\"+k+\",\"+linesplit[1]+\",\"+linesplit[k+7];\r\n\t\t\t\t\t\t\t\tConstant.dayDataList.add(m);\r\n\t\t\t\t\t\t\t}\r\n//\t\t\t\t\t\t\telse{\r\n//\t\t\t\t\t\t\t\tm = m + \",\";\r\n//\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(j==1){\r\n\t\t\t\t\t\t\tif(k+13<dataSize){\r\n//\t\t\t\t\t\t\t\ta = a + \",\" + linesplit[k+13];\r\n\t\t\t\t\t\t\t\ta = \"Afternoon,1000,\"+linesplit[0]+\"a-\"+k+\",\"+linesplit[1]+\",\"+linesplit[k+13];\r\n\t\t\t\t\t\t\t\tConstant.dayDataList.add(a);\r\n\t\t\t\t\t\t\t}\r\n//\t\t\t\t\t\t\telse{\r\n//\t\t\t\t\t\t\t\ta = a + \",\";\r\n//\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(j==2){\r\n\t\t\t\t\t\t\tif(k+19<dataSize){\r\n//\t\t\t\t\t\t\t\te = e + \",\" + linesplit[k+19];\r\n\t\t\t\t\t\t\t\te = \"Evening,1000,\"+linesplit[0]+\"e-\"+k+\",\"+linesplit[1]+\",\"+linesplit[k+19];\r\n\t\t\t\t\t\t\t\tConstant.dayDataList.add(e);\r\n\t\t\t\t\t\t\t}\r\n//\t\t\t\t\t\t\telse{\r\n//\t\t\t\t\t\t\t\te = e + \",\";\r\n//\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tif(k<1){\r\n\t\t\t\t\t\t\t\tif(k+25<dataSize){\r\n//\t\t\t\t\t\t\t\t\tn = n + \",\" +linesplit[k+25];\r\n\t\t\t\t\t\t\t\t\tn = \"Night,1000,\"+linesplit[0]+\"n-\"+k+\",\"+linesplit[1]+\",\"+linesplit[k+25];\r\n\t\t\t\t\t\t\t\t\tConstant.dayDataList.add(n);\r\n\t\t\t\t\t\t\t\t}\r\n//\t\t\t\t\t\t\t\telse{\r\n//\t\t\t\t\t\t\t\t\tn = n + \",\";\r\n//\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\tif(k+1<dataSize){\r\n//\t\t\t\t\t\t\t\t\tn = n + \",\" +linesplit[k+1];\r\n\t\t\t\t\t\t\t\t\tn = \"Night,1000,\"+linesplit[0]+\"n-\"+k+\",\"+linesplit[1]+\",\"+linesplit[k+1];\r\n\t\t\t\t\t\t\t\t\tConstant.dayDataList.add(n);\r\n\t\t\t\t\t\t\t\t}\r\n//\t\t\t\t\t\t\t\telse{\r\n//\t\t\t\t\t\t\t\t\tn = n + \",\";\r\n//\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n//\t\t\t\t\tif(j==0){\r\n//\t\t\t\t\t\tConstant.dayDataList.add(m);\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\telse if(j==1){\r\n//\t\t\t\t\t\tConstant.dayDataList.add(a);\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\telse if(j==2){\r\n//\t\t\t\t\t\tConstant.dayDataList.add(e);\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\telse{\r\n//\t\t\t\t\t\tConstant.dayDataList.add(n);\r\n//\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t}\r\n\t}",
"@Query(\"SELECT d FROM Day d WHERE date = ?1\")\n List<Day> getByDate(Date date);",
"@Override\n\tpublic ArrayList<Map<String, String>> get() {\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyyMMdd\");\n\t\tDate current = new Date();\n\t\tString date = format.format(current);\t\t\t\t\n\t\t// 유효기간이 지난 데이터는 리턴하지 않는다.\n\t\tArrayList<Map<String, String>> list = new ArrayList<Map<String, String>>();\n\t\tString sql = \"SELECT * FROM \" + EventDBHelper.TABLE + \" WHERE \" + ENABLEDATE + \">=\" + date + \" ORDER BY \" + ENABLEDATE + \" ASC\";\n\t\tmCursor = mDB.rawQuery(sql, null);\n\n\t\tif (mCursor.moveToFirst()) {\n\t\t\twhile (!mCursor.isAfterLast()) {\n\t\t\t\tMap<String, String> map = new HashMap<String, String>();\n\t\t\t\tmap.put(ESTID, mCursor.getString(mCursor.getColumnIndex(ESTID)));\n\t\t\t\tmap.put(EVENTID, mCursor.getString(mCursor.getColumnIndex(EVENTID)));\n\t\t\t\tmap.put(ENABLEDATE,\tmCursor.getString(mCursor.getColumnIndex(ENABLEDATE)));\n\t\t\t\tmap.put(DESC, mCursor.getString(mCursor.getColumnIndex(DESC)));\n\t\t\t\tlist.add(map);\n\t\t\t\tmCursor.moveToNext();\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}",
"public Cliente[] findWhereFechaUltimaVisitaEquals(Date fechaUltimaVisita) throws ClienteDaoException;",
"synchronized public Document[] get ()\n \t{\n \t\tint ndx = 0;\n \t\tDocument[] rslt = new Document[theLoanList.numberOfRecords()];\n \t\tDuplicateLoanDataVO dataVO = null;\n \n \t\ttheLoanList.reset();\n \t\twhile (theLoanList.hasNext())\n \t\t{\n \t\t\tdataVO = (DuplicateLoanDataVO)theLoanList.next();\n \t\t\trslt[ndx++] = (Document)dataVO.getDocument();\n \t\t}\n \n \t\treturn rslt;\n \t}",
"public void generateImpatedRecords ()\r\n\t{\n\t\tRequest req = table.createRequest();\r\n\t\treq.setXPathFilter(path_to_id.format()+\"='\" + id +\"'\");\r\n\t\tRequestResult res = req.execute();\r\n\t\tshow(\"got results \" + res.getSize() );\r\n\t\tAdaptation ada = res.nextAdaptation();\r\n\t\tshow (\"STARTDATE: \" + startdate + \" ENDDATE: \" + enddate);\r\n\t\tshow(\"________________________________________________\");\r\n\t\twhile (ada!=null)\r\n\t\t{ \r\n\t\t\t\r\n\t\t\tDate adaStartDate = ada.getDate(path_to_start);\r\n\t\t\tDate adaEndDate = ada.getDate(path_to_end);\r\n\t\t\t//check im not me!\r\n\t\t\tif (!(ada.getOccurrencePrimaryKey().format().equals(newRecord.getOccurrencePrimaryKey().format())))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t// the record has been updated but date has not changed\r\n\t\t\t\tif (enddate!=null&&adaEndDate!=null&&(adaStartDate.equals(startdate)&&adaEndDate.equals(enddate)))\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tshow(\"The Record needs Spliting\");\r\n\t\t\t\t\trecordToSplit = ada;\r\n\t\t\t\t\tnewEndDate = addDays(startdate,-1);\r\n\t\t\t\t\tbeforeRecord = ada;\r\n\t\t\t\t\tnewStartDate = addDays(enddate,+1);\r\n\t\t\t\t\tafterRecord = ada;\r\n\t\t\t\t}\r\n\t\t\t\telse if (enddate!=null&&adaEndDate!=null&&(adaStartDate.before(startdate)&&adaEndDate.after(enddate)))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tshow(\"The Record needs Spliting\");\r\n\t\t\t\t\t\t\trecordToSplit = ada;\r\n\t\t\t\t\t\t\tnewEndDate = addDays(startdate,-1);\r\n\t\t\t\t\t\t\tbeforeRecord = ada;\r\n\t\t\t\t\t\t\tnewStartDate = addDays(enddate,+1);\r\n\t\t\t\t\t\t\tafterRecord = ada;\r\n\t\t\t\t\t\t}\r\n\t\t\t\telse if (adaStartDate == null && adaEndDate == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tshow (\"set end date on existing record\");\r\n\t\t\t\t\tbeforeRecord= ada;\r\n\t\t\t\t\tnewEndDate = addDays (startdate, -1);\r\n\t\t\t\t}\r\n\t\t\t\t\t\telse if (adaStartDate.before(startdate)&& adaEndDate==null)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tshow (\"set end date on existing record\");\r\n\t\t\t\t\t\t\tbeforeRecord= ada;\r\n\t\t\t\t\t\t\tnewEndDate = addDays (startdate, -1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\telse if (adaStartDate.before(startdate) && adaEndDate.after(startdate))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tshow (\"need to move existing end date\");\r\n\t\t\t\t\t\t\tbeforeRecord= ada;\r\n\t\t\t\t\t\t\tnewEndDate = addDays (startdate, -1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if (enddate!=null&&enddate==null&&adaStartDate.after(enddate))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tshow (\"need to end date new record\");\r\n\t\t\t\t\t\t\tbeforeRecord = newRecord;\r\n\t\t\t\t\t\t\tnewEndDate = addDays(adaStartDate, -1);\r\n\t\t\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\tada = res.nextAdaptation();\r\n\t}\r\n\t\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"@GetMapping(\"/{symbol}/{date}\")\n public ModelAndView daily(@PathVariable(\"symbol\") String symbol, @PathVariable(\"date\") String date) throws ParseException {\n\n Date sdf = new SimpleDateFormat(\"yyyy-MM-dd\").parse(date);\n\n String beginOfTheMonth = date.substring(0, 7) + \"-00\";\n String endOfTheMonth = date.substring(0,7) + \"-31\";\n Map<String, Object> model = new HashMap<>();\n\n try{\n String[] resp = quoteRepository.daily(symbol, sdf).split(\",\");\n Double closingResp = quoteRepository.closingDay(symbol, sdf);\n String[] monthResp = quoteRepository.monthly(symbol, beginOfTheMonth, endOfTheMonth).split(\",\");\n Double closingMonth = quoteRepository.closingMonth(symbol, beginOfTheMonth, endOfTheMonth);\n\n DayRecord dr = new DayRecord(Double.parseDouble(resp[0]), Double.parseDouble(resp[1]), Integer.parseInt(resp[2]), date, symbol);\n DayRecord mr = new DayRecord(Double.parseDouble(monthResp[0]), Double.parseDouble(monthResp[1]), Integer.parseInt(monthResp[2]), beginOfTheMonth, symbol);\n\n model.put(\"daily\", dr);\n model.put(\"closing\", closingResp);\n model.put(\"monthly\", mr);\n model.put(\"closingMonthly\", closingMonth);\n\n\n return new ModelAndView(\"main\", model);\n\n } catch (Exception e) {\n return new ModelAndView(\"error\", model);\n }\n }",
"public ArrayList<Entry> load(Context context){\n ArrayList<String> read = DBM.fetch();\n ArrayList<Entry> temp = new ArrayList<>();\n for (String e:read){\n Calendar cal = Calendar.getInstance();\n String[] true_name = e.split(\", \");\n cal.setTimeZone(TimeZone.getTimeZone(true_name[1]));\n temp.add(new Entry(true_name[0],true_name[1],cal.get(Calendar.HOUR_OF_DAY) + \":\" + cal.get(Calendar.MINUTE) + \":\" + cal.get(Calendar.SECOND) ));\n }\n return temp;\n }"
] | [
"0.6722612",
"0.6249924",
"0.6139136",
"0.61196697",
"0.60183686",
"0.57854086",
"0.574628",
"0.5741323",
"0.5713088",
"0.5702836",
"0.5699828",
"0.5628371",
"0.5581504",
"0.5572046",
"0.54691714",
"0.54608256",
"0.5454482",
"0.54436046",
"0.54403245",
"0.5432452",
"0.5426816",
"0.5426687",
"0.54004484",
"0.5396639",
"0.5384757",
"0.5372899",
"0.5361523",
"0.5354918",
"0.5327345",
"0.5314231",
"0.5309731",
"0.5303139",
"0.52759695",
"0.52704334",
"0.52702713",
"0.5249695",
"0.52454144",
"0.52256143",
"0.5213227",
"0.52039737",
"0.51971364",
"0.51863605",
"0.5185752",
"0.5170685",
"0.5151509",
"0.51453835",
"0.5144921",
"0.5133028",
"0.51109",
"0.5097606",
"0.50902617",
"0.5075874",
"0.50590515",
"0.50536525",
"0.5053431",
"0.50471205",
"0.5039581",
"0.50308764",
"0.5019292",
"0.50183856",
"0.5011488",
"0.5004971",
"0.500016",
"0.49994725",
"0.49960792",
"0.4995687",
"0.4992936",
"0.49915272",
"0.499136",
"0.49737534",
"0.49652085",
"0.496415",
"0.495966",
"0.49594384",
"0.49564695",
"0.49498332",
"0.49475604",
"0.49347898",
"0.49316368",
"0.49281472",
"0.49269825",
"0.49237543",
"0.4921519",
"0.49208707",
"0.49180454",
"0.4903424",
"0.48939362",
"0.48916772",
"0.4881416",
"0.4862934",
"0.48600414",
"0.48599157",
"0.48562118",
"0.48556837",
"0.48544207",
"0.4853938",
"0.48506856",
"0.48487243",
"0.48377806",
"0.48300323",
"0.48285207"
] | 0.0 | -1 |
i dont use this but it needs it because its an inherited class | @Override
public void proceedNewDay(int p_date)
throws RemoteException
{
// TODO Auto-generated method stub
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n protected void getExras() {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override // opcional\n public void init(){\n\n }",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n protected void init() {\n }",
"protected FanisamBato(){\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"protected void init() {\n // to override and use this method\n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n void init() {\n }",
"@Override\n\tpublic void classroom() {\n\t\t\n\t}",
"Object getClass_();",
"Object getClass_();",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n public void init() {\n\n super.init();\n\n }",
"protected Doodler() {\n\t}",
"public void init() {\r\n\t\t// to override\r\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n public void init() {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n protected void checkSubclass() {\n }",
"_ExtendsNotAbstract() {\n super(\"s\"); // needs this if not default ctor;\n }",
"Constructor() {\r\n\t\t \r\n\t }",
"private Infer() {\n\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"public OOP_207(){\n\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"@Override\r\n protected void checkSubclass() {\n }",
"@Override\r\n protected void checkSubclass() {\n }",
"@Override\r\n protected void checkSubclass() {\n }",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n public void init() {}",
"@Override\r\n\tpublic void init() {}",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}"
] | [
"0.6785367",
"0.66721714",
"0.6618447",
"0.65245545",
"0.65164065",
"0.6478495",
"0.6417317",
"0.6409561",
"0.6409561",
"0.6380812",
"0.6352309",
"0.6346262",
"0.63421893",
"0.6274558",
"0.625492",
"0.62495065",
"0.6209552",
"0.6202073",
"0.61947495",
"0.6185616",
"0.6181408",
"0.61777997",
"0.6171217",
"0.6169501",
"0.6168517",
"0.6162608",
"0.61278117",
"0.61278117",
"0.6126172",
"0.61221296",
"0.61058956",
"0.61058956",
"0.6082521",
"0.6078713",
"0.60780275",
"0.6077315",
"0.6077315",
"0.6077315",
"0.6077315",
"0.6077315",
"0.6077315",
"0.6077315",
"0.6077315",
"0.6077315",
"0.6077315",
"0.6077315",
"0.6077315",
"0.6077315",
"0.6077315",
"0.6077315",
"0.6077315",
"0.6077315",
"0.6071316",
"0.6066222",
"0.6052253",
"0.6049327",
"0.6039576",
"0.6039576",
"0.6039576",
"0.6039576",
"0.6039576",
"0.6039576",
"0.6039576",
"0.6039576",
"0.6039576",
"0.6039576",
"0.6039576",
"0.6039576",
"0.6039576",
"0.6039576",
"0.60368073",
"0.6035819",
"0.60337216",
"0.60337216",
"0.6033117",
"0.6023237",
"0.6012823",
"0.6012823",
"0.6012823",
"0.6009589",
"0.6004403",
"0.6004173",
"0.59890354",
"0.5983026",
"0.59715044",
"0.59715044",
"0.59715044",
"0.59715044",
"0.59715044",
"0.59715044",
"0.59666044",
"0.59642965",
"0.595408",
"0.595408",
"0.595408",
"0.5949169",
"0.59486234",
"0.5942596",
"0.5942071",
"0.59410924",
"0.59410924"
] | 0.0 | -1 |
from the record array specifically get the prices so you have an array of ints instead of records | public static double[][] getRecords() throws RemoteException
{
for(int x= 0; x <= 100; x++)
{
info[x][1] = (int) records[x][1].m_leaderPrice;
info[x][2] = (int) records[x][2].m_followerPrice;
}
return info;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int[] getPrice()\n {\n \n String TableData[][]= getTableData();\n int row=getRowCount();\n String SearchPrice[]=new String[row];\n int a[]=new int[row];\n for (int i=0;i<TableData.length;i++)\n {\n SearchPrice[i]= TableData[i][5];\n a[i]=Integer.parseInt(SearchPrice[i]); //converts the data into integer as it was in string\n }\n return a; //returns price array\n }",
"Price[] getTradePrices();",
"public BigDecimal getPriceList();",
"public ArrayList getPrice() {\n return priceArray;\n }",
"public static String[] getItemPrice(String type, String entity, String item, String uom, String curr) {\n\r\n String[] TypeAndPrice = new String[2]; \r\n String Type = \"none\";\r\n String price = \"0\";\r\n String pricecode = \"\";\r\n\r\n try{\r\n Connection con = null;\r\n if (ds != null) {\r\n con = ds.getConnection();\r\n } else {\r\n con = DriverManager.getConnection(url + db, user, pass); \r\n }\r\n Statement st = con.createStatement();\r\n ResultSet res = null;\r\n try{\r\n \r\n // customer based pricing\r\n if (type.equals(\"c\")) {\r\n res = st.executeQuery(\"select cm_price_code from cm_mstr where cm_code = \" + \"'\" + entity + \"'\" + \";\");\r\n while (res.next()) {\r\n pricecode = res.getString(\"cm_price_code\");\r\n } \r\n // if there is no pricecode....it defaults to billto\r\n if (! pricecode.isEmpty()) {\r\n entity = pricecode;\r\n }\r\n\r\n res = st.executeQuery(\"select cpr_price from cpr_mstr where cpr_cust = \" + \"'\" + entity + \"'\" + \r\n \" AND cpr_item = \" + \"'\" + item + \"'\" +\r\n \" AND cpr_uom = \" + \"'\" + uom + \"'\" +\r\n \" AND cpr_curr = \" + \"'\" + curr + \"'\" +\r\n \" AND cpr_type = 'LIST' \"+ \";\");\r\n while (res.next()) {\r\n price = res.getString(\"cpr_price\").replace('.', defaultDecimalSeparator);\r\n Type = \"cust\";\r\n\r\n }\r\n }\r\n\r\n // vendor based pricing\r\n if (type.equals(\"v\")) {\r\n res = st.executeQuery(\"select vd_price_code from vd_mstr where vd_addr = \" + \"'\" + entity + \"'\" + \";\");\r\n while (res.next()) {\r\n pricecode = res.getString(\"vd_price_code\");\r\n } \r\n // if there is no pricecode....it defaults to billto\r\n if (! pricecode.isEmpty()) {\r\n entity = pricecode;\r\n }\r\n\r\n res = st.executeQuery(\"select vpr_price from vpr_mstr where vpr_vend = \" + \"'\" + entity + \"'\" + \r\n \" AND vpr_item = \" + \"'\" + item + \"'\" +\r\n \" AND vpr_uom = \" + \"'\" + uom + \"'\" +\r\n \" AND vpr_curr = \" + \"'\" + curr + \"'\" + \r\n \" AND vpr_type = 'LIST' \"+ \";\");\r\n while (res.next()) {\r\n price = res.getString(\"vpr_price\").replace('.', defaultDecimalSeparator);\r\n Type = \"vend\";\r\n\r\n }\r\n }\r\n\r\n\r\n // if there is no customer specific price...then pull price from item master it_sell_price\r\n if ( price.equals(\"0\") ) {\r\n if (type.equals(\"c\")) { \r\n res = st.executeQuery(\"select it_sell_price as itemprice from item_mstr where it_item = \" + \"'\" + item + \"'\" + \";\");\r\n } else {\r\n res = st.executeQuery(\"select it_pur_price as itemprice from item_mstr where it_item = \" + \"'\" + item + \"'\" + \";\"); \r\n }\r\n while (res.next()) {\r\n price = res.getString(\"itemprice\").replace('.', defaultDecimalSeparator); \r\n Type = \"item\";\r\n }\r\n }\r\n\r\n TypeAndPrice[0] = Type;\r\n TypeAndPrice[1] = String.valueOf(price);\r\n\r\n }\r\n catch (SQLException s){\r\n MainFrame.bslog(s);\r\n } finally {\r\n if (res != null) {\r\n res.close();\r\n }\r\n if (st != null) {\r\n st.close();\r\n }\r\n con.close();\r\n }\r\n }\r\n catch (Exception e){\r\n MainFrame.bslog(e);\r\n }\r\n return TypeAndPrice;\r\n\r\n }",
"public float getPrices(Integer id);",
"stockFilePT102.StockDocument.Stock getStockArray(int i);",
"public ReservedInstancePriceItem [] getPrices() {\n return this.Prices;\n }",
"List<PriceRow> getPriceInformationsForProduct(ProductModel model);",
"public BigDecimal getPriceListEntered();",
"int[] retrieveAllData();",
"public BigDecimal getPriceListOld();",
"public List<Map<String, Object>> getStockPriceLow() throws SQLException;",
"List<PriceInformation> getPriceForProduct(ProductModel product);",
"public Items[] findWherePriceEquals(double price) throws ItemsDaoException;",
"java.util.List<cosmos.base.v1beta1.CoinOuterClass.Coin> \n getPriceList();",
"protected PaypalIpn[] fetchMultiResults(ResultSet rs) throws SQLException\r\n\t{\r\n\t\tCollection resultList = new ArrayList();\r\n\t\twhile (rs.next()) {\r\n\t\t\tPaypalIpn dto = new PaypalIpn();\r\n\t\t\tpopulateDto( dto, rs);\r\n\t\t\tresultList.add( dto );\r\n\t\t}\r\n\t\t\r\n\t\tPaypalIpn ret[] = new PaypalIpn[ resultList.size() ];\r\n\t\tresultList.toArray( ret );\r\n\t\treturn ret;\r\n\t}",
"public Book[] getRecommendBook(){\n\t\n\t String stmnt = String.format(\n \"SELECT * FROM book \" );\n ResultSet rs = executeQuery(stmnt);\n ArrayList<Book> arr = resultSetPacker(rs, Book.class);\n\n return arr.toArray(new Book[arr.size()]);\n}",
"private double[] getMenuItemPrices() {\n double[] prices = new double[menuItemPrices.size()];\n for (int i = 0; i < menuItemPrices.size(); i ++) {\n prices[i] = menuItemPrices.get(i).doubleValue();\n }\n return prices;\n }",
"public purchaseDesign()\n {\n priceArray = new int[5][4];\n }",
"public long getPriceList() {\r\n return priceList;\r\n }",
"org.landxml.schema.landXML11.TrafficVolumeDocument.TrafficVolume getTrafficVolumeArray(int i);",
"private Data[] getInts(double value, int npoints, int nattributes)\n\t{\n\t\tData[] data = new Data[npoints];\n\t\tint val = (int) (value * Integer.MAX_VALUE);\n\t\tfor (int i = 0; i < npoints; i++)\n\t\t\tdata[i] = nattributes == 1 ? new DataInt(val)\n\t\t: new DataArrayOfInts(new int[] { val, val });\n\t\t\treturn data;\n\t}",
"public HashMap<String, ArrayList[]> determineSale() {\n HashMap<String, ArrayList[]> ordersMap = new HashMap<>();\n ordersMap.put(\"ms\", new ArrayList<Integer>[2]);\n ordersMap.put(\"gs\", new ArrayList<Integer>[2]);\n ordersMap.put(\"xlf\", new ArrayList<Integer>[2]);\n ordersMap.put(\"wfc\", new ArrayList<Integer>[2]);\n ordersMap.put(\"bond\", new ArrayList<Integer>[2]);\n\n Integer temp;\n int ind = 0;\n ArrayList<Integer> prices = ordersMap.get(\"bond\")[0];\n ArrayList<Integer> quantities = ordersMap.get(\"bond\")[1];\n for (int i = 0; i < 3; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n ind = 0;\n prices = ordersMap.get(\"gs\")[0];\n quantities = ordersMap.get(\"gs\")[1];\n for (int i = 0; i < 2; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n } \n ind = 0;\n prices = ordersMap.get(\"ms\")[0];\n quantities = ordersMap.get(\"ms\")[1]; \n for (int i = 0; i < 3; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n ind = 0;\n prices = ordersMap.get(\"wfc\")[0];\n quantities = ordersMap.get(\"wfc\")[1]; \n for (int i = 0; i < 2; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);;\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n ind = 0;\n prices = ordersMap.get(\"xlf\")[0];\n quantities = ordersMap.get(\"xlf\")[1]; \n for (int i = 0; i < 10; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n return ordersMap;\n }",
"public BigDecimal getBSCA_ProfitPriceList();",
"public ArrayList<Double> GetPrices()\r\n\t{\r\n\t\treturn dayStockPrices;\r\n\t}",
"@Override\r\n\tpublic Object get(Iterable<?> objs, int size) {\n\t\tModelRatesHelper.getInstance().gatherData();\r\n\t\treturn 0;\r\n\t}",
"public void setPrice(ArrayList priceColumn) {\n ArrayList<String> priceArray = new ArrayList<String>();\n this.priceArray = priceColumn;\n }",
"public ArrayList<PieEntry> getValues(){\n\n SQLiteDatabase db = this.getWritableDatabase();\n ArrayList<PieEntry> dataV = new ArrayList<>();\n String[] columns = {\"cost\", \"name\"};\n Cursor cursor = db.query(\"subscriptions\", columns, null, null, null, null, null);\n\n for(int i=0; i<cursor.getCount(); i++){\n\n cursor.moveToNext();\n dataV.add(new PieEntry(cursor.getFloat(0), cursor.getString(1)));\n }\n\n return dataV;\n\n }",
"public void setPrices(ReservedInstancePriceItem [] Prices) {\n this.Prices = Prices;\n }",
"@SuppressWarnings(\"rawtypes\")\n\t@Test\n\tpublic void retrieveArrays() {\n\t\tObjectSet result = db.queryByExample(new double[] { 0.6, 0.4 });\n\t\tlistResult(result);\n\n\t\t// Important note QBE does not work well with arrays\n\t\tassertEquals(0, result.size());\n\n\t}",
"double[] getRowForToolType(String toolType) {\n\t\tdouble [] resultArr = {-1, -1, -1, -1}; //initialize all elements to sentinel of negative one\r\n\t\ttry {\r\n\t\t\tint initStatus = initConnection();\r\n\t\t\tif (initStatus == 0) {\r\n\t\t\t\tStatement stmt = conn.createStatement(); //send query to DB\r\n\t\t\t\tResultSet rs = stmt.executeQuery(\"select * from \" + tableName + \" where Tool_Type = '\" + toolType + \"'\");\r\n\t\t\t\t//check to see if we got back any results\r\n\t\t\t\tif (!rs.isBeforeFirst()) { \r\n\t\t\t\t System.out.println(\"No results found in the database.\"); \r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t\twhile (rs.next()) { //add results to array\r\n\t\t\t\t\t\t\tresultArr[0] = rs.getDouble(\"Daily_Rate\");\r\n\t\t\t\t\t\t\tString weekday = rs.getString(\"Weekday\");\r\n\t\t\t\t\t\t\t//convert Y/N to 1/0 for use in Contract's method calculateCosts()\r\n\t\t\t\t\t\t\tresultArr[1] = weekday.equals(\"Y\") ? 1 : 0;\r\n\t\t\t\t\t\t\tString weekend = rs.getString(\"Weekend\");\r\n\t\t\t\t\t\t\tresultArr[2] = weekend.equals(\"Y\") ? 1 : 0;\r\n\t\t\t\t\t\t\tString holiday = rs.getString(\"Holiday\");\r\n\t\t\t\t\t\t\tresultArr[3] = holiday.equals(\"Y\") ? 1 : 0;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\trs.close();\r\n\t\t\t\tstmt.close();\r\n\t\t\t\tcloseConnection();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tSystem.out.println(\"Error: Query to database for pricing information failed. Please make sure the tool type exists in the database.\");\r\n\t\t\tcloseConnection();\r\n\t\t}\r\n\t\treturn resultArr;\r\n\t}",
"java.util.List<io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row> \n getRowList();",
"private boolean savePrice(ArrayList<ArrayList<Object>> objArr) {\n //TODO: create string array construction method with String... array\n //TODO: create generic method to create POJO object from objArr and map to JSON data\n logger.trace(\"BEGIN boolean savePrice(ArrayList<ArrayList<Object>> objArr)\");\n boolean result = false;\n TSDBData pricingData = new TSDBData();\n ArrayList<String> strArr = new ArrayList<String>();\n InfluxDBClient dbClient = new InfluxDBClient();\n ObjectMapper mapper = new ObjectMapper();\n String jsonData = null;\n\n strArr.add(\"resource\");\n strArr.add(\"userId\");\n strArr.add(\"usage\");\n strArr.add(\"price\");\n pricingData.setName(Loader.getSettings().getInfluxDBSettings().getCdrRecord());\n pricingData.setColumns(strArr);\n pricingData.setPoints(objArr);\n //get tags and put them into pricingData\n logger.trace(\"DATA boolean savePrice(ArrayList<ArrayList<Object>> objArr): pricingData=\" + pricingData);\n\n try {\n jsonData = mapper.writeValueAsString(pricingData);\n } catch (JsonProcessingException e) {\n logger.error(\"EXCEPTION JSONPROCESSINGEXCEPTION boolean savePrice(ArrayList<ArrayList<Object>> objArr)\");\n e.printStackTrace();\n }\n\n //System.out.println(jsonData);\n logger.trace(\"DATA boolean savePrice(ArrayList<ArrayList<Object>> objArr): jsonData=\" + jsonData);\n result = dbClient.saveData(jsonData);\n logger.trace(\"END boolean savePrice(ArrayList<ArrayList<Object>> objArr)\");\n return result;\n }",
"static public Product[] retrieve(int[] id) {\n\t\t\n\t\tProduct[] list = null;\n\t\t\n\t\treturn list;\n\t}",
"public int[] currentProductsInInventory(){\r\n\t\tString sql=\"SELECT Barcode FROM ProductTable WHERE Quantity_In_Store>=0 OR Quantity_In_storeroom>=0 \";\r\n\t\tint[] products=null;\r\n\t\tArrayList<Integer> tmpList = new ArrayList<Integer>();\r\n\t\tint counter = 0;\r\n\t\t try (Connection conn = this.connect();\r\n\t Statement stmt = conn.createStatement();\r\n\t ResultSet rs = stmt.executeQuery(sql)){\r\n\t\t\t while(rs.next()){\r\n\t\t\t\t tmpList.add(rs.getInt(\"Barcode\"));\r\n\t\t\t\t counter++;\r\n\t\t\t }\r\n\t\t\t products= new int[counter];\r\n\t\t\t for(int i=0;i<counter;i++){\r\n\t\t\t\t products[i]=tmpList.get(i);\r\n\t\t\t }\r\n\t\t }\r\n\t\t catch (SQLException e) {\r\n\t\t\t System.out.println(\"currentProductsInInventory: \"+e.getMessage());\r\n\t\t\t return new int[0]; \r\n\t\t }\r\n\t\treturn products;\r\n\t}",
"public BigDecimal getBSCA_ProfitPriceListEntered();",
"public List<Pair<Integer, Integer>> getArray(){\n return qtadePorNum;\n }",
"public ArrayDouble getRecordValues(State state) {\n return new ArrayDouble(opensimSimulationJNI.ExpressionBasedPointToPointForce_getRecordValues(swigCPtr, this, State.getCPtr(state), state), true);\n }",
"@SuppressWarnings(\"unused\")\r\n\tprivate int[] helper(int buyId, int[] price) {\r\n\t\tint maxProfit = 0;\r\n\t\tint sellDay = -1;\r\n\t\tfor (int i = buyId + 1; i < price.length; i++) {\r\n\t\t\tint currentProfit = price[i] - price[buyId];\r\n\t\t\tif (currentProfit >= 0 && currentProfit >= maxProfit) {\r\n\t\t\t\tmaxProfit = currentProfit;\r\n\t\t\t\tsellDay = i;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn new int[] { maxProfit, sellDay };\r\n\t}",
"public List<BigDecimal> getEarningsList(){\n return earningsList;\n }",
"List<SpotPrice> getAll();",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.DebtEntry getDebtsArray(int i);",
"@Parameters\n public static Iterable<Object[]> getData() {\n List<Object[]> obj = new ArrayList<>();\n obj.add(new Object[] {3, 12});\n obj.add(new Object[] {2, 8});\n obj.add(new Object[] {1, 4});\n \n return obj;\n }",
"public List<PosPay> listPosPay(PosPay posPay,int firstResult ,int maxResults)throws DataAccessException;",
"public Object[] toArray() {\r\n\t\treturn this.records.toArray();\r\n\t}",
"public int getStock(int pid) {\nfor (ProductStockPair pair : productCatalog) {\nif (pair.product.id == pid) {\nreturn pair.stock;\n}\n}\nreturn -1;\n}",
"public Object[] get_Values(){return new Object[]{ Id, CategoryId, StartTime, BreakTime, EndTime };}",
"cosmos.base.v1beta1.CoinOuterClass.Coin getPrice(int index);",
"@Override\r\n\tpublic List<ProductRaw_Price> getPrices(PageRequest pageable) {\n\t\treturn productRaw_PriceDao.getProductRawPrices(pageable);\r\n\t}",
"public List<List<?>> getItemsWithHigherPrice(double price) {\n\t\tSqlFieldsQuery query = new SqlFieldsQuery(\"SELECT * FROM Item WHERE attr(22) > 0\");\n\n\t\t// Executing the query.\n\t\treturn ignite.getOrCreateCache(\"ItemCache\").query(query).getAll();\n\t}",
"@Override\r\n\tpublic void getValuesFromTrazi(Record selectedRecord) {\r\n\t\tsetFieldValue(PISARNICA_OIB,selectedRecord.getAttributeAsObject(\"oib\"));\r\n\t}",
"public List prices() {\n List ls = new ArrayList();\n try {\n\n Connection connection = DBUtil.getConnection();\n //PreparedStatement pst = connection.prepareStatement(\"select PriceId,VegetableId,GovernmentPrice,FarmerPrice,WholeSellerPrice,\"\n // + \"RetailerPrice from PriceDetails\");\n /*PreparedStatement pst = connection.prepareStatement(\"SELECT PriceDetails.PriceId,VegetableDetails.VegetableName,PriceDetails.GovernmentPrice,\"\n + \"PriceDetails.FarmerPrice,PriceDetails.WholeSellerPrice,PriceDetails.RetailerPrice\"\n + \" from PriceDetails INNER JOIN VegetableDetails \"\n + \"ON PriceDetails.VegetableId = VegetableDetails.VegetableId\");\n */\n\n PreparedStatement pst = connection.prepareStatement(\"select PriceDetails.PriceId,VegetableDetails.VegetableName,\"\n + \"PriceDetails.GovernmentPrice,PriceDetails.FarmerPrice,PriceDetails.WholeSellerPrice,\"\n + \"PriceDetails.RetailerPrice from PriceDetails INNER JOIN VegetableDetails ON PriceDetails.VegetableId = \"\n + \"VegetableDetails.VegetableId\");\n\n ResultSet rs = pst.executeQuery();\n while (rs.next()) {\n ViewPricesBean vpb = new ViewPricesBean();\n\n vpb.setPriceId(rs.getInt(1));\n vpb.setVegetableName(rs.getString(2));\n // vpb.setRegionName(rs.getString(3));\n vpb.setGovernmentPrice(rs.getFloat(3));\n vpb.setFarmerPrice(rs.getFloat(4));\n vpb.setWholeSellerPrice(rs.getFloat(5));\n vpb.setRetailerPrice(rs.getFloat(6));\n\n\n ls.add(vpb);\n\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return ls;\n\n }",
"private int[] convertDoubleListToIntArray(List<Double> doubleList){\r\n\t\t\tint[] intArray = new int[doubleList.size()];\r\n\t\t\tfor(int i =0; i<doubleList.size(); i++){\r\n\t\t\t\t//intArray[i] = Integer.parseInt(String.valueOf(intList.get(i)));\r\n\t\t\t\tintArray[i] = doubleList.get(i).intValue();\r\n\t\t\t}\r\n\t\t\treturn intArray;\r\n\t\t}",
"public int getPrice(){\n\n return this.price;\n }",
"@Override\n\tpublic Object[] toArray() {\n\t\treturn new Object[]{ id, reader.id, bookEntity.id, status, startDate, expireDate, returnDate };\n\t}",
"public int getPrice()\n {\n return price;\n }",
"public Object [][] getRubrosPresupuesto2(String presupuesto) throws SQLException \r\n {\n\r\n Statement stmt = con.createStatement();\r\n String strSQL = \"SELECT idrubro,nombre,saldo,tipo_pago FROM RUBROS WHERE IDPRESUPUESTO=\"+ presupuesto+\" ORDER BY TIPO_PAGO\";\r\n\r\n ResultSet rs = stmt.executeQuery(strSQL); \r\n \r\n String registro[];\r\n ArrayList arrayList = new ArrayList();\r\n\r\n int index=0;\r\n Utilities utils = new Utilities();\r\n while (rs.next())\r\n { \r\n registro = new String[5];\r\n registro [0] = rs.getString(\"IDRUBRO\");\r\n registro [1] = rs.getString(\"TIPO_PAGO\");\r\n registro [2] = rs.getString(\"NOMBRE\").trim();\r\n registro [3] = utils.priceWithDecimal(rs.getDouble(\"SALDO\")); \r\n arrayList.add(registro);\r\n \r\n index++;\r\n } \r\n \r\n Object[][] rowData = new Object[index][4]; \r\n int j=0;\r\n while (j<index)\r\n {\r\n arrayList.iterator().hasNext();\r\n String reg[] = (String[]) arrayList.get(j);\r\n rowData [j][0] = reg[0] ;\r\n rowData [j][1] = reg[1] ;\r\n rowData [j][2] = reg[2] ;\r\n rowData [j][3] = reg[3] ; \r\n j++;\r\n }\r\n rs.close();\r\n stmt.close();\r\n \r\n return rowData; \r\n }",
"@Transaction()\n public NumberQueryResult[] queryAllNumbers(final Context ctx) {\n ChaincodeStub stub = ctx.getStub();\n\n final String startKey = \"NUM0\";\n final String endKey = \"NUM999\";\n List<NumberQueryResult> queryResults = new ArrayList<NumberQueryResult>();\n\n QueryResultsIterator<KeyValue> results = stub.getStateByRange(startKey, endKey);\n\n for (KeyValue result: results) {\n Number num = genson.deserialize(result.getStringValue(), Number.class);\n queryResults.add(new NumberQueryResult(result.getKey(), num));\n }\n\n NumberQueryResult[] response = queryResults.toArray(new NumberQueryResult[queryResults.size()]);\n\n return response;\n }",
"public int getPrice();",
"public BigDecimal getTaxAmtPriceList();",
"List<Price> findAll();",
"public static DayData getStockByNumber(List<List<String>> records, int stockNumber) {\r\n int colNum = (stockNumber * 4) + 2;\r\n int startColNum = ((stockNumber - 1) * 4) + 2;\r\n List<String> headRow = records.get(6);\r\n DayData dayData = new DayData(Float.parseFloat(headRow.get(startColNum + 1)), headRow.get(startColNum));\r\n\r\n for (int i = 8; i < records.size()/* -4*/; i++) {\r\n List<String> subRow = records.get(i);\r\n\r\n //System.out.println(i);\r\n\r\n\r\n if (noContainLetter(subRow.get(startColNum)) && noContainLetter(subRow.get(startColNum +1)) && noContainLetter(subRow.get(startColNum + 2)) && noContainLetter(subRow.get(startColNum + 3))) {\r\n dayData.markDL.add(Double.parseDouble(subRow.get(startColNum).replace('%', '0')));\r\n dayData.priceL.add(Double.parseDouble(subRow.get(startColNum + 1)));\r\n dayData.volumeL.add(Double.parseDouble(subRow.get(startColNum + 2)));\r\n dayData.tickL.add(Integer.parseInt(subRow.get(startColNum + 3)));\r\n } else {\r\n dayData.markDL.add(0.0);\r\n dayData.priceL.add(0.0);\r\n dayData.volumeL.add(0.0);\r\n dayData.tickL.add(0);\r\n }\r\n }\r\n\r\n return dayData;\r\n }",
"public int getPrice() {\n return price;\n }",
"private static int[] convertDiceValueArray(ArrayList<Dice> dices) {\n int[] combos = new int[dices.size()];\n\n for (int i = 0; i < dices.size(); i++) {\n combos[i] = dices.get(i).getValue();\n }\n return combos;\n }",
"public ArrayList<Rate> getData(){\n String[] r = new String[6];\n int[] col = new int[6];\n String query = \"SELECT * FROM \"+ TABLE_RATE ;//+ \" WHERE \" + COL_USERNAME+\"='\"+username+\"'\";\n\n ArrayList<Rate> rates= new ArrayList<Rate>();\n SQLiteDatabase db = getWritableDatabase();\n Cursor c = db.rawQuery(query, null);\n c.moveToFirst();\n\n col[0]=c.getColumnIndex(COL_ID);\n col[1]=c.getColumnIndex(COL_CARNUM);\n col[2]=c.getColumnIndex(COL_DATE);\n col[3]=c.getColumnIndex(COL_RATE);\n col[4]=c.getColumnIndex(COL_PARKINPNUM);\n col[5]=c.getColumnIndex(COL_FLOORNUM);\n\n while(!c.isAfterLast()){\n for(int i=0;i<col.length;i++){\n r[i]=c.getString(col[i]);\n }\n rates.add(new Rate((long) Double.parseDouble(r[3]),r[2],r[1],Long.parseLong(r[0]),Integer.parseInt(r[4]),Integer.parseInt(r[5])));\n c.moveToNext();\n }\n return rates;\n }",
"@Override\n\tpublic Object getValueAt(int arg0, int arg1) {\n\t\treturn allProducts[arg0][arg1];\n\t}",
"public static ArrayList<DayData> getAllData(List<List<String>> records) {\r\n ArrayList<DayData> dayDataL = new ArrayList<>(50);\r\n for (int i = 1; i < 51; i++) {\r\n\r\n dayDataL.add(getStockByNumber(records, i));\r\n //System.out.println(\"Added \" + i);\r\n //System.out.println(getUsedMemory());\r\n }\r\n\r\n return dayDataL;\r\n }",
"public double[] getRowData(int row) {\n return data[row];\n }",
"public int getPrice(){\n return price;\n }",
"public OpenERPRecordSet(Object[] readresult) {\r\n\t\trecords = new Vector<OpenERPRecord>();\r\n\t\tif (readresult != null) {\r\n\t\t\tfor (int i = 0; i < readresult.length; i++) {\r\n\t\t\t\trecords.add(new OpenERPRecord(readresult[i]));\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}",
"public Object [][] getRubrosPresupuesto(String presupuesto) throws SQLException \r\n {\n\r\n Statement stmt = con.createStatement();\r\n String strSQL = \"SELECT * FROM RUBROS WHERE IDPRESUPUESTO=\"+ presupuesto+\" ORDER BY TIPO_PAGO\";\r\n\r\n ResultSet rs = stmt.executeQuery(strSQL); \r\n \r\n String registro[];\r\n ArrayList arrayList = new ArrayList();\r\n\r\n int index=0;\r\n Utilities utils = new Utilities();\r\n while (rs.next())\r\n { \r\n registro = new String[5];\r\n registro [0] = rs.getString(\"IDRUBRO\");\r\n registro [1] = rs.getString(\"TIPO_PAGO\");\r\n registro [2] = rs.getString(\"NOMBRE\").trim();\r\n registro [3] = utils.priceWithDecimal(rs.getDouble(\"MONTO\")); \r\n registro [4] = utils.priceWithDecimal(rs.getDouble(\"SALDO\")); \r\n arrayList.add(registro);\r\n \r\n index++;\r\n } \r\n \r\n Object[][] rowData = new Object[index][5]; \r\n int j=0;\r\n while (j<index)\r\n {\r\n arrayList.iterator().hasNext();\r\n String reg[] = (String[]) arrayList.get(j);\r\n rowData [j][0] = reg[0] ;\r\n rowData [j][1] = reg[1] ;\r\n rowData [j][2] = reg[2] ;\r\n rowData [j][3] = reg[3] ;\r\n rowData [j][4] = reg[4] ; \r\n j++;\r\n }\r\n rs.close();\r\n stmt.close();\r\n \r\n return rowData; \r\n }",
"private ArrayList<Integer> getProductIds(JSONArray jsonArray) {\n\n ArrayList<Integer> productIds = new ArrayList<>();\n\n for (int i = 0; i < jsonArray.length(); i++) {\n try {\n int productId = jsonArray.getInt(i);\n productIds.add(productId);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n return productIds;\n }",
"public ArrayList<OrderItem> getOrderArray(){return orderInfo;}",
"public long[] getlatitudes(int trackid)\n {\n String latlongstring;\n\n Cursor res = db.rawQuery( \"select BULKLL from TRACKDATA where TRACKID=\"+trackid+\"\", null );\n int id[] = new int[res.getCount()];\n res.moveToFirst();\n latlongstring= res.getString(res.getColumnIndex(\"BULKLL\"));\n String[] latlongs=latlongstring.split(\";\");\n long[] latlist = new long[latlongs.length];\n\n int j = 0;\n for (int i = 0; i < latlongs.length; i++) {\n String latlongs_sub[]= latlongs[i].split(\",\");\n\n if(i == 0) {\n latlist[j] = Long.parseLong(latlongs_sub[0]);\n }\n else\n {\n long previous=latlist[j-1];\n\n long diff=Long.parseLong(latlongs_sub[0]);\n latlist[j] = previous+diff;\n }\n j++;\n\n }\n res.close();\n\n return latlist;\n }",
"public List<Product> getProducts() {\n Connection connection = null;\n Statement statement = null;\n ResultSet resultSet = null;\n List<Product> products = new ArrayList<>(); //creating an array\n String sql=\"select * from products order by product_id\"; //writing sql statement\n try {\n connection = db.getConnection();\n statement = connection.createStatement();\n resultSet = statement.executeQuery(sql);\n while (resultSet.next()) { //receive data from database\n products.add(new Product( resultSet.getInt(1), resultSet.getString(2), resultSet.getInt(3),\n resultSet.getString(4),resultSet.getString(5),resultSet.getString(6),\n resultSet.getString(7), resultSet.getString(8))); //creating object of product and\n // inserting it into an array\n }\n return products; //return this array\n } catch (SQLException | ClassNotFoundException throwable) {\n throwable.printStackTrace();\n } finally {\n try {\n assert resultSet != null;\n resultSet.close();\n statement.close();\n connection.close();\n } catch (SQLException throwable) {\n throwable.printStackTrace();\n }\n }\n return null;\n }",
"public List<Number> getData() {\n return data;\n }",
"public static List<Integer> toList (Object currency) {\n List list = new ArrayList();\n String[][] array = getDataBase();\n for(int i = 0; i < array.length;i++){\n for(int j = 0; j < array[i].length;j++)\n if (array[i][0].equals(((UserRequest)currency).getCurrencyFrom())){\n list.addAll(Arrays.asList(array[i][j]));\n }\n }\n return list;\n }",
"public void setPrices(int[][] prices) {\n for (int i = 0, n = 4; i < n; i++) {\n for (int j = 0, m = 4; j < m; j++) {\n\tthis.prices[i][j] = prices[i][j];\n }\n }\n }",
"public int getSalesPrice() {\n return salesPrice;\n }",
"public float getlatestrate(String selection,String item) throws SQLException\n {\n // int stock_rate[]= new int [2];\n PreparedStatement remaining_stock = conn.prepareStatement(\"Select latest_rate from purchases where Categroy=? and Item=? \");\n remaining_stock.setString(1, selection);\n remaining_stock.setString(2, item);\n ResultSet remaining_stock_rows = remaining_stock.executeQuery(); \n \n float rate=0;\n while(remaining_stock_rows.next()) \n {\n \n rate=Float.parseFloat(remaining_stock_rows.getString(1));\n \n }\n return rate;\n }",
"public abstract double[] getasDouble(int tuple);",
"public int salePrice(){\n return this.salePrice;\n }",
"public int getPrice() {\r\n return price;\r\n }",
"@Import(\"price\")\n\tint getPrice();",
"double[] getReferenceValues();",
"public int getPrice() {\n return price_;\n }",
"public int getPrice() {\n return price;\n }",
"public int getPrice() {\n return price;\n }",
"public void setPriceList (BigDecimal PriceList);",
"int[] getValues()\n {\n return values_;\n }",
"public Integer getPrice() {\r\n return price;\r\n }",
"public Integer getPrice() {\r\n return price;\r\n }",
"public ComplexOrderEntryTO[] getStockItems(long storeID, ProductTO[] requiredProductTOs) throws NotImplementedException;",
"public int getPrice ( ) {\n return price;\n }",
"public int[] getHR(int trackid)\n {\n String hrcompoststring;\n\n Cursor res = db.rawQuery( \"select BULKHR from TRACKDATA where TRACKID=\"+trackid+\"\", null );\n int id[] = new int[res.getCount()];\n res.moveToFirst();\n hrcompoststring= res.getString(res.getColumnIndex(\"BULKHR\"));\n String[] hrcompost=hrcompoststring.split(\";\");\n int[] hrlist = new int[hrcompost.length];\n int j = 0;\n for (int i = 0; i < hrcompost.length; i++) {\n String hrlist_sub[]= hrcompost[i].split(\",\");\n\n if(i == 0) {\n hrlist[j] = Integer.parseInt(hrlist_sub[1]);\n }\n else\n {\n int previous=hrlist[j-1];\n\n int diff=Integer.parseInt(hrlist_sub[1]);\n hrlist[j] = previous+diff;\n }\n j++;\n\n }\n res.close();\n\n return hrlist;\n }",
"long getPrice();",
"@Override\r\n\tpublic long[] getTicketMoney() {\n\t\tlong[] result = new long[2];\r\n\t\tList<FeeRecord> card = feeRecordDao.getCardRecords();\r\n\t\tList<FeeRecord> cash = feeRecordDao.getCashRecords();\r\n\t\tfor(FeeRecord feeRecord:card){\r\n\t\t\tresult[0] += feeRecord.getMoney();\r\n\t\t}\r\n\t\tfor(FeeRecord feeRecord:cash){\r\n\t\t\tresult[1] += feeRecord.getMoney();\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"@Override\n\tpublic Integer[] getData() {\n\t\treturn data;\n\t}",
"public int[] getListOfId() {\r\n\t\tString sqlCommand = \"SELECT Barcode FROM ProductTable\";\r\n\t\tint[] idList = null;\r\n\t\tArrayList<Integer> tmpList = new ArrayList<Integer>();\r\n\t\tint counter = 0;\r\n\t\ttry (Connection conn = this.connect();\r\n\t\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\tResultSet rs = stmt.executeQuery(sqlCommand)) {\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\ttmpList.add(rs.getInt(\"Barcode\"));\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t\tidList = new int[counter];\r\n\t\t\tfor (int i = 0; i < counter; i++) {\r\n\t\t\t\tidList[i] = tmpList.get(i);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"getListOfId: \"+e.getMessage());\r\n\t\t\treturn new int[0]; \r\n\t\t}\r\n\t\treturn idList;\r\n\t}"
] | [
"0.67092454",
"0.64896667",
"0.6067827",
"0.59211236",
"0.590344",
"0.5849715",
"0.579829",
"0.5727063",
"0.5709304",
"0.56998503",
"0.55950993",
"0.5568371",
"0.5567018",
"0.5528695",
"0.5502768",
"0.5499743",
"0.546087",
"0.5429051",
"0.5428134",
"0.54067683",
"0.53710866",
"0.5368677",
"0.5360812",
"0.5355061",
"0.5351055",
"0.5348101",
"0.5341735",
"0.5341268",
"0.53311306",
"0.5325515",
"0.53167343",
"0.5299901",
"0.52930766",
"0.52905124",
"0.52715075",
"0.5262343",
"0.5261776",
"0.52505034",
"0.5224258",
"0.5221132",
"0.52041656",
"0.519373",
"0.5179197",
"0.5178835",
"0.51734513",
"0.5169673",
"0.51654667",
"0.5153948",
"0.51502913",
"0.5150043",
"0.51475734",
"0.51375246",
"0.51273894",
"0.51205146",
"0.51030564",
"0.5100695",
"0.50999886",
"0.50989366",
"0.50968283",
"0.509351",
"0.50926924",
"0.5091218",
"0.5090737",
"0.5088911",
"0.50873715",
"0.5086561",
"0.5085953",
"0.50831723",
"0.50816035",
"0.5080573",
"0.50741446",
"0.50693196",
"0.5064775",
"0.5058921",
"0.5058742",
"0.50553274",
"0.5047036",
"0.5040902",
"0.5040417",
"0.5038817",
"0.50315225",
"0.5028642",
"0.5002636",
"0.50014085",
"0.4997103",
"0.49969217",
"0.49937183",
"0.4992105",
"0.4992105",
"0.4992014",
"0.49895906",
"0.4986296",
"0.4986296",
"0.49710265",
"0.4969198",
"0.49650717",
"0.49644956",
"0.49581575",
"0.49564686",
"0.4954255"
] | 0.68071276 | 0 |
Seekbar can be handled by this method | private void changeSeekbar() {
seekbar.setProgress(mediaPlayer.getCurrentPosition());
if(mediaPlayer.isPlaying())
{
runnable=new Runnable() {
@Override
public void run() {
changeSeekbar();
}
};
handler.postDelayed(runnable,1000);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void updateSeekbar(int position, int duration);",
"@Override\n public void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n\n }",
"@Override\n\tpublic void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n\n\t}",
"private void setSeekbarListener(){\n mTempSeekbar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) { }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) { }\n\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {\n if(progress<=100 && progress>=0){\n // change display temp based on seekbar progress and update the view\n display_temp = Tools.roundToHalf((32-9)*progress/100.0+9);\n Log.v(TAG, \"onProgressChanged: temp:\"+display_temp+\"seekbar progress=\"+progress);\n updateControlView();\n // update the mercury of the thermometer\n ClipDrawable mMercuryClip = (ClipDrawable) mMercuryImg.getDrawable();\n mMercuryClip.setLevel(progress*100);\n }\n }\n });\n }",
"private void procUpdatePosition(int position) {\n //log_d(\"procUpdatePosition: \" + position);\n\n float ratio = 0;\n if( mDuration > 0 ) {\n ratio = (float)position / (float)mDuration;\n }\n\n int progress = (int)(MAX_PROGRESS * ratio);\n setSeekbarProgress(progress);\n\n}",
"@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress,\r\n boolean fromUser) {\n int value = seekBar.getProgress();\r\n LayoutParams paramsStrength = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\r\n int s = GlobalDefinitions.SCREEN_WIDTH-ScaleUtils.scale(240);\r\n paramsStrength.leftMargin = (int) (ScaleUtils.scale(83)+s*value/1000);\r\n paramsStrength.topMargin = ScaleUtils.scale(40);\r\n mValueTxt.setLayoutParams(paramsStrength);\r\n int res = (value/10);\r\n mValueTxt.setText(String.valueOf(res));\r\n mImgView.setImageBitmap(null);\r\n //high nose\r\n mImgView.setImageBitmap(mFaceEditor.BFHighnose(seekBar.getProgress()/10));//));//change to 0-100\r\n\r\n }",
"@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress,\r\n boolean fromUser) {\n int value = seekBar.getProgress();\r\n LayoutParams paramsStrength = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\r\n int s = GlobalDefinitions.SCREEN_WIDTH-ScaleUtils.scale(240);\r\n paramsStrength.leftMargin = (int) (ScaleUtils.scale(83)+s*value/1000);\r\n paramsStrength.topMargin = ScaleUtils.scale(40);\r\n mValueTxt.setLayoutParams(paramsStrength);\r\n int res = (value/10);\r\n mValueTxt.setText(String.valueOf(res));\r\n mImgView.setImageBitmap(null);\r\n //shou lian\r\n mImgView.setImageBitmap(mFaceEditor.BFFaceLift(seekBar.getProgress()/10,0,0,0));//));//change to 0-100\r\n\r\n }",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\n }",
"@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress,\r\n boolean fromUser) {\n int value = seekBar.getProgress();\r\n LayoutParams paramsStrength = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\r\n int s = GlobalDefinitions.SCREEN_WIDTH-ScaleUtils.scale(240);\r\n paramsStrength.leftMargin = (int) (ScaleUtils.scale(83)+s*value/1000);\r\n paramsStrength.topMargin = ScaleUtils.scale(40);\r\n mValueTxt.setLayoutParams(paramsStrength);\r\n int res = (value/10);\r\n mValueTxt.setText(String.valueOf(res));\r\n mImgView.setImageBitmap(null);\r\n //skin white\r\n mImgView.setImageBitmap(mFaceEditor.BFSoftskin(GlobalDefinitions.softRatio, Math.abs(seekBar.getProgress()/10)));//));//change to 0-100\r\n\r\n }",
"@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\r\n\r\n }",
"private void seekChange(View v){\n \t//if(mediaPlayer.isPlaying()){\n\t \tSeekBar sb = (SeekBar)v;\n\t\t\tmediaPlayer.seekTo(sb.getProgress());\n\t\t//}\n }",
"public void seekBarListener() {\n seekbar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n int progressChangedValue = 0;\n\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n progressChangedValue = progress;\n }\n\n public void onStartTrackingTouch(SeekBar seekBar) {\n // TODO Auto-generated method stub\n }\n\n public void onStopTrackingTouch(SeekBar seekBar) {\n progressTextView.setText(\"Your current progress is \" + progressChangedValue);\n Toast.makeText(MainActivity.this, \"Seek bar progress is :\" + progressChangedValue,\n Toast.LENGTH_SHORT).show();\n }\n });\n }",
"@Override\n\t\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"public void onProgressChanged(SeekBar arg0, int progress, boolean fromUser) {\n }",
"@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress,\r\n boolean fromUser) {\n int value = seekBar.getProgress();\r\n LayoutParams paramsStrength = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\r\n int s = GlobalDefinitions.SCREEN_WIDTH-ScaleUtils.scale(240);\r\n paramsStrength.leftMargin = (int) (ScaleUtils.scale(83)+s*value/1000);\r\n paramsStrength.topMargin = ScaleUtils.scale(40);\r\n mValueTxt.setLayoutParams(paramsStrength);\r\n int res = (value/10);\r\n mValueTxt.setText(String.valueOf(res));\r\n mImgView.setImageBitmap(null);\r\n //eye bag remove\r\n mImgView.setImageBitmap(mFaceEditor.BFEyeBagRemoval(seekBar.getProgress()/10));//));//change to 0-100\r\n }",
"@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress,\r\n boolean fromUser) {\n int value = seekBar.getProgress();\r\n LayoutParams paramsStrength = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\r\n int s = GlobalDefinitions.SCREEN_WIDTH-ScaleUtils.scale(240);\r\n paramsStrength.leftMargin = (int) (ScaleUtils.scale(83)+s*value/1000);\r\n paramsStrength.topMargin = ScaleUtils.scale(40);\r\n mValueTxt.setLayoutParams(paramsStrength);\r\n int res = (value/10);\r\n mValueTxt.setText(String.valueOf(res));\r\n mImgView.setImageBitmap(null);\r\n //light eye\r\n mImgView.setImageBitmap(mFaceEditor.BFLightEye(seekBar.getProgress()/10));//));//change to 0-100\r\n }",
"@Override \n\t\t\t\tpublic void onStopTrackingTouch(SeekBar analyseSeekBar) {\n\t\t\t\tp1 = analyseSeekBar.getProgress();\t\t\n\t\t\t\t}",
"@Override\n public void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n if (arg0 == _seekBarSpeed) {\n double inc = ((double)arg1*2)/100;\n NotifyTimeDeltaChanged(inc);\n _textSpeed.setText(String.format(\"%.2f\", inc));\n } else {\n if (arg0 == _seekBarArgs[0]) {\n NotifyParameterChanged(0, arg1);\n _textArgs[0].setText(String.format(\"%d\", arg1));\n } else if (arg0 == _seekBarArgs[1]) {\n NotifyParameterChanged(1, arg1);\n _textArgs[1].setText(String.format(\"%d\", arg1));\n } else if (arg0 == _seekBarArgs[2]) {\n NotifyParameterChanged(2, arg1);\n _textArgs[2].setText(String.format(\"%d\", arg1));\n }\n }\n }",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\t\t\t\t\t\t\tpublic void onStartTrackingTouch(SeekBar arg0) {\n\r\n\t\t\t\t\t\t\t\t}",
"@Override\r\n\t\t\tpublic void onStartTrackingTouch(SeekBar arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onStartTrackingTouch(SeekBar arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onStartTrackingTouch(SeekBar arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t\tmAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC,\n\t\t\t\t\t\tseekBar.getProgress(), 8);\n\t\t\t\tvolumnSize.setText(seekBar.getProgress() * 100\n\t\t\t\t\t\t/ seekBar.getMax() + \"%\");\n\t\t\t}",
"@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress,\r\n boolean fromUser) {\n int value = seekBar.getProgress();\r\n LayoutParams paramsStrength = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\r\n int s = GlobalDefinitions.SCREEN_WIDTH-ScaleUtils.scale(240);\r\n paramsStrength.leftMargin = (int) (ScaleUtils.scale(83)+s*value/1000);\r\n paramsStrength.topMargin = ScaleUtils.scale(40);\r\n mValueTxt.setLayoutParams(paramsStrength);\r\n int res = (value/10);\r\n mValueTxt.setText(String.valueOf(res));\r\n\r\n }",
"@Override\n\t\t\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t\t\t\tint p = seekBar.getProgress();\n\t\t\t\t\t\tif (p > 150) {\n\t\t\t\t\t\t\tsetSeekBarProgress(ConfigurationUtil.MODE_3_D);\n\t\t\t\t\t\t} else if (p > 50) {\n\t\t\t\t\t\t\tsetSeekBarProgress(ConfigurationUtil.MODE_2_N);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsetSeekBarProgress(ConfigurationUtil.MODE_1_C);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onProgressChanged(SeekBar seekBar,\n\t\t\t\t\t\t\tint progress, boolean fromUser) {\n\t\t\t\t\t}",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress,\n boolean fromUser) {\n seek_bar1.setMax(10);\n txt1.setText(String.valueOf(progress));\n yemekAdet = progress; \n \n }",
"private void primarySeekBarProgressUpdater() {\n \tseekBarProgress.setProgress((int)(((float)mediaPlayer.getCurrentPosition()/mediaFileLengthInMilliseconds)*100)); // This math construction give a percentage of \"was playing\"/\"song length\"\n\t\tif (mediaPlayer.isPlaying()) {\n\t\t\tRunnable notification = new Runnable() {\n\t\t public void run() {\n\t\t \tprimarySeekBarProgressUpdater();\n\t\t\t\t}\n\t\t };\n\t\t handler.postDelayed(notification,1000);\n \t}\n }",
"@Override\r\n public void onStartTrackingTouch(SeekBar seekBar) {\n\r\n }",
"@Override\r\n public void onStartTrackingTouch(SeekBar seekBar) {\n\r\n }",
"@Override\r\n public void onStartTrackingTouch(SeekBar seekBar) {\n\r\n }",
"@Override\r\n public void onStartTrackingTouch(SeekBar seekBar) {\n\r\n }",
"@Override\r\n public void onStartTrackingTouch(SeekBar seekBar) {\n\r\n }",
"@Override\r\n public void onStartTrackingTouch(SeekBar seekBar) {\n\r\n }",
"@Override\r\n public void onStartTrackingTouch(SeekBar seekBar) {\n\r\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress,\r\n boolean fromUser) {\n int value = seekBar.getProgress();\r\n LayoutParams paramsStrength = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\r\n int s = GlobalDefinitions.SCREEN_WIDTH-ScaleUtils.scale(240);\r\n paramsStrength.leftMargin = (int) (ScaleUtils.scale(83)+s*value/1000);\r\n paramsStrength.topMargin = ScaleUtils.scale(40);\r\n mValueTxt.setLayoutParams(paramsStrength);\r\n int res = (value/10);\r\n mValueTxt.setText(String.valueOf(res));\r\n\r\n //big eye\r\n mImgView.setImageBitmap(null);\r\n mImgView.setImageBitmap(mFaceEditor.BFEyeWarp(15,seekBar.getProgress()/10));//change to 0-100\r\n// int val = seekBar.getProgress();\r\n// Log.e(\"eyewarp\", \"eyewarp: \"+val);\r\n }",
"@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\t\n\t\t\t}",
"void onStartTrackingTouch(SeekBar seekBar);",
"@Override\n\t\t\t\t\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\n\t\t\t\t\t\t\t}",
"@Override\n public void onStartTrackingTouch(SeekBar arg0) {\n\n }",
"@Override\n \t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n \n \t\t\t}",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n if (!fromUser)\n return;\n String tag = (String) seekBar.getTag();\n switch (tag) {\n case \"frames\":\n //Log.v(\"RenderSettings\", \"frames seekbar changed\");\n setFrames(seekBar.getProgress() + 2);\n break;\n case \"a\":\n //Log.v(\"RenderSettings\", \"'a' seekbar changed\");\n setA((seekBar.getProgress() + 1) / 1000.0f);\n break;\n case \"b\":\n //Log.v(\"RenderSettings\", \"'b' seekbar changed\");\n setB(seekBar.getProgress() / 100.0f + 1.0f);\n break;\n case \"P\":\n //Log.v(\"RenderSettings\", \"'P' seekbar changed\");\n setP(seekBar.getProgress() / 100.0f);\n break;\n default:\n Log.v(\"RenderSettings\", \"unknown seekbar changed.\");\n break;\n }\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n \n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n \n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n \n }",
"@Override\r\n public void onStartTrackingTouch(SeekBar seekBar) {\r\n resultsTextView.setText(\"Range: 0-\" + seekBar.getProgress());\r\n }",
"private void primarySeekBarProgressUpdater() {\n seekBarProgress.setProgress((int) (((float) mediaPlayer.getCurrentPosition() / mediaFileLengthInMilliseconds) * 100)); // This math construction give a percentage of \"was playing\"/\"song length\"\n if (mediaPlayer.isPlaying()) {\n Runnable notification = new Runnable() {\n public void run() {\n primarySeekBarProgressUpdater();\n }\n };\n handler.postDelayed(notification, 1000);\n }\n }",
"@Override\r\n\t\t\tpublic void onStopTrackingTouch(SeekBar arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onStopTrackingTouch(SeekBar arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onStopTrackingTouch(SeekBar arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onStopTrackingTouch(SeekBar arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar arg0) {\n\n\t\t\t}",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n\tpublic void onStartTrackingTouch(SeekBar arg0) {\n\n\t}",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }",
"@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t\tint peakFreq = min_PeakFreq + (step_PeakFreq*seekBar.getProgress());\n\t\t\t\tt_PeakFreq.setTextSize(peakFreq);\n\t\t Toast.makeText(getApplicationContext(), String.valueOf(peakFreq),Toast.LENGTH_SHORT).show();\n\t\t \n\t\t seismicImage.setPeakFreq(peakFreq);\n\t\t\t}",
"@Override\n\tpublic void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n\t\tswitch (arg0.getId()) {\n\t\tcase R.id.sb_light:\n\t\t\tSystem.putInt(context.getContentResolver(),\n\t\t\t\t\tSystem.SCREEN_BRIGHTNESS, \n\t\t\t\t\targ1);\n\t\t\tbreak;\n\t\t//设置音量\n\t\tcase R.id.sb_sound:\n\t\t\tif(arg1 != system_sound){\n\t\t\t\taudio.setStreamVolume(AudioManager.STREAM_SYSTEM, arg1, AudioManager.FLAG_PLAY_SOUND);\n\t\t\t\tsystem_sound = arg1;\n\t\t\t}\n\t\t\tFyLog.d(TAG, \"the sound is: \" + arg1);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}",
"@Override\r\n\t\tpublic void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\t\t\tUtils.printLog(TAG, \"SeekBarListener onProgressChanged progress =\" + progress + \" fromUser =\" + fromUser);\r\n\t\t\tif (fromUser) {\r\n\r\n\t\t\t\tif (sEndTime > 0) {\r\n\t\t\t\t\tfinal long time = progress * (long) sEndTime / Utils.SeekBarLength;\r\n\t\t\t\t\tUtils.printLog(TAG, \"SeekBarListener mseekbariwidth=\" + mPlayerSeekar.getWidth() + \" onProgressChanged sEndTime =\" + sEndTime + \" time =\" + time);\r\n\t\t\t\t\tnew Thread(new Runnable() {\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\tmVideoContrl.seekTo((int) time);\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}).start();\r\n\t\t\t\t\tlong xoff = (mPlayerSeekar.getWidth() - Utils.SeekBarThumbLength) * (long) progress / Utils.SeekBarLength;\r\n\t\t\t\t\tseekBarPopWindow.showText(mPlayerSeekar, Utils.getTimeShort((int) time), (int) xoff, -22);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmPlayerSeekar.setProgress(0);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}",
"@Override\n \tpublic void onStartTrackingTouch(SeekBar seekBar)\n \t{\n \n \t}",
"@Override\n\t\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t}",
"public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }",
"@Override\n \t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n \n \t\t\t}",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }",
"@Override\r\n\t\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\r\n\t\t\t\t}",
"@Override\n public void onStartTrackingTouch(SeekBar arg0) {\n mp.seekTo(seek.getProgress());\n }",
"@Override\n\t\t\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t\n\t\t\t}",
"public void setProgress(SeekBar seekBar, int progress, boolean isPressed) {\n if (isPressed) {\n int id = seekBar.getId();\n this.ampDsp.bf = 0;\n this.ampDsp.as = 0;\n switch (id) {\n case R.id.sound_progress1:\n this.ampDsp.tvSoundProgress[0].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress2:\n this.ampDsp.tvSoundProgress[1].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress3:\n this.ampDsp.tvSoundProgress[2].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress4:\n this.ampDsp.tvSoundProgress[3].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress5:\n this.ampDsp.tvSoundProgress[4].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress6:\n this.ampDsp.tvSoundProgress[5].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress7:\n this.ampDsp.tvSoundProgress[6].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress8:\n this.ampDsp.tvSoundProgress[7].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress9:\n this.ampDsp.tvSoundProgress[8].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress10:\n this.ampDsp.tvSoundProgress[9].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress11:\n this.ampDsp.tvSoundProgress[10].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress12:\n this.ampDsp.tvSoundProgress[11].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress13:\n this.ampDsp.tvSoundProgress[12].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress14:\n this.ampDsp.tvSoundProgress[13].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress15:\n this.ampDsp.tvSoundProgress[14].setText(\"\" + (progress - 10));\n break;\n }\n if (this.ampDsp.vsbSoundProgress[0] != null) {\n this.ampDsp.putSystemString(\"KeyCustomEQ\", \"\" + this.ampDsp.vsbSoundProgress[0].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[1].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[2].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[3].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[4].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[5].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[6].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[7].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[8].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[9].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[10].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[11].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[12].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[13].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[14].getProgress());\n }\n this.ampDsp.bttnEqCustom1.setSelected(false);\n this.ampDsp.bttnEqCustom2.setSelected(false);\n this.ampDsp.bttnEqCustom3.setSelected(false);\n this.ampDsp.putSystemInt(\"KeyCTmode\", this.ampDsp.as);\n this.ampDsp.bg.removeMessages(1);\n this.ampDsp.bg.sendEmptyMessageDelayed(1, 50);\n }\n }",
"@Override\n\tpublic void onBufferingUpdate(MediaPlayer mp, int percent) {\n\t\tseekBarProgress.setSecondaryProgress(percent);\n\t}",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }"
] | [
"0.78807545",
"0.7668162",
"0.75068045",
"0.74471205",
"0.7354059",
"0.7346634",
"0.7327733",
"0.731186",
"0.7286495",
"0.72835016",
"0.720404",
"0.7183143",
"0.71626186",
"0.71626186",
"0.7161015",
"0.7084354",
"0.70717746",
"0.7048333",
"0.70422196",
"0.70125973",
"0.70125973",
"0.7004761",
"0.69837606",
"0.69837606",
"0.69837606",
"0.69836485",
"0.6973919",
"0.69653976",
"0.6949685",
"0.6946243",
"0.6935771",
"0.69279826",
"0.69279826",
"0.69279826",
"0.69279826",
"0.69279826",
"0.69279826",
"0.69279826",
"0.6923065",
"0.69142544",
"0.69107133",
"0.69107133",
"0.68892926",
"0.68892926",
"0.68874514",
"0.68873817",
"0.6886899",
"0.68729746",
"0.68651885",
"0.6864553",
"0.6864553",
"0.6864553",
"0.68610966",
"0.68599397",
"0.6850563",
"0.6850563",
"0.6850563",
"0.6850563",
"0.68449974",
"0.6806305",
"0.6805516",
"0.67798716",
"0.6778201",
"0.67725724",
"0.6771557",
"0.6761742",
"0.67565763",
"0.6752999",
"0.6747973",
"0.6747973",
"0.6735846",
"0.67319447",
"0.67319447",
"0.67319447",
"0.6730865",
"0.6730865",
"0.6723656",
"0.6723251",
"0.6723251",
"0.6720194",
"0.6720194",
"0.6720194",
"0.6720194",
"0.6720194",
"0.6720194",
"0.6720194",
"0.6718248",
"0.6718203",
"0.6714996",
"0.6714996",
"0.6714996",
"0.6714996",
"0.6714996",
"0.6714996",
"0.6714996",
"0.6714996",
"0.6714996",
"0.6714996",
"0.6714996",
"0.6714996"
] | 0.7206285 | 10 |
Overriden method for on click listener | @Override
public void onClick(View view) {
switch (view.getId()){
case R.id.btnPlay:
if(mediaPlayer.isPlaying())
{
mediaPlayer.pause();
btnPlay.setImageResource(R.drawable.ic_play_arrow_black_24dp);
}
else{
mediaPlayer.start();
btnPlay.setImageResource(R.drawable.ic_pause_black_24dp);
changeSeekbar();
}
break;
case R.id.btnFor:
mediaPlayer.seekTo(mediaPlayer.getCurrentPosition()+5000);
break;
case R.id.btnBack:
mediaPlayer.seekTo(mediaPlayer.getCurrentPosition()-5000);
break;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void OnClick() {\n\t\t\n\t}",
"@Override\n \t\tpublic void onClick(View v) {\n \t\t\t\n \t\t}",
"@Override\n \t\tpublic void onClick(View v) {\n \t\t\t\n \t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n\t\tpublic void onClick(View v) {\n\t\t\t\n\t\t}",
"@Override\n public void onClick() {\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t}",
"@Override\r\n public void onClick(View v) \r\n {\n }",
"@Override\r\n\t\t\t\tpublic void onClick(View v)\r\n\t\t\t\t{\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onClick(View v)\r\n\t\t\t\t{\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\n\t\t\t\t\t\t}",
"@Override\n public void onClick(View v) {\n }",
"@Override\n public void onClick(View v) {\n \n }",
"@Override\r\n public void onClick(View v) {\r\n }",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t}",
"@Override\r\n public void onClick(View v) {\n }",
"@Override\r\n public void onClick(View v) {\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t\n \t\t\t\t}",
"@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t\n \t\t\t\t}",
"@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t\n \t\t\t\t}",
"@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t\n \t\t\t\t}",
"@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t\n \t\t\t\t}",
"@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t\n \t\t\t\t}",
"@Override\n public void onClick(View view) {\n }",
"@Override\n public void onClick(View view) {\n }",
"@Override\r\n public void onClick(View view) {\n }",
"@Override\r\n public void onClick(View view) {\n }",
"@Override\r\n public void onClick(View view) {\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\r\n public void onClick(View v) {\n }",
"@Override\r\n \tpublic void onClick(View v) {\n \t\t\r\n \t}",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\n\t\t\t\t}",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n }",
"@Override\n public void onClick(View v) {\n }",
"@Override\n public void onClick(View v) {\n }",
"@Override\r\n\t\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t}",
"@Override\r\n public void onClick(View view) {\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View view) {\n\n }",
"@Override\n public void onClick(View view) {\n }",
"@Override\n public void onClick(View view) {\n }",
"@Override\n public void onClick(View view) {\n }",
"@Override\n public void onClick(View view) {\n }",
"@Override\n public void onClick(View view) {\n }",
"@Override\n public void onClick(View view) {\n }",
"@Override\n public void onClick(View view) {\n }",
"@Override\n public void onClick(View view) {\n }",
"@Override\n public void onClick(View view) {\n }",
"@Override\n public void onClick(View view) {\n }",
"@Override\n public void onClick(View view) {\n }"
] | [
"0.82240087",
"0.79838204",
"0.79838204",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7919955",
"0.7893864",
"0.7875446",
"0.7872852",
"0.78682894",
"0.78664315",
"0.78664315",
"0.78664315",
"0.7839623",
"0.7839623",
"0.7839623",
"0.7838198",
"0.78350633",
"0.78350633",
"0.78285366",
"0.78285366",
"0.782732",
"0.7820736",
"0.78205055",
"0.7819586",
"0.7819586",
"0.7819586",
"0.7819586",
"0.7819586",
"0.7819586",
"0.78018016",
"0.78018016",
"0.77997935",
"0.7796505",
"0.7796505",
"0.7796505",
"0.7796505",
"0.7796505",
"0.7796505",
"0.77918947",
"0.77918947",
"0.77885187",
"0.77885187",
"0.77885187",
"0.77820784",
"0.7781705",
"0.7779371",
"0.777838",
"0.77754045",
"0.77754045",
"0.7774234",
"0.7774234",
"0.7774234",
"0.7774234",
"0.7774234",
"0.7774234",
"0.7774234",
"0.7774234",
"0.7774234",
"0.7774234",
"0.7774234",
"0.7774234",
"0.7774234",
"0.7774234",
"0.7774234",
"0.7772758",
"0.7772758",
"0.7772758",
"0.77709997",
"0.7769871",
"0.77684057",
"0.77648467",
"0.77638143",
"0.77638143",
"0.77638143",
"0.77638143",
"0.77638143",
"0.77638143",
"0.77638143",
"0.77638143",
"0.77638143",
"0.77638143",
"0.77638143"
] | 0.0 | -1 |
When back button pressed the audio service will stop;this method is called | @Override
protected void onPause() {
super.onPause();
if(mediaPlayer!=null)
{
mediaPlayer.pause();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onBackPressed() {\n if(mediaPlayer != null && mediaPlayer.isPlaying()){\n mediaPlayer.stop();\n }\n\n super.onBackPressed();\n }",
"public void onBackPressed(){\n //Gardera ses fonctions de base\n super.onBackPressed();\n\n //Executera une action en plus. Ici il lancera le son et le coupera automatiquement\n //Si nous ne faisons que le stop cela ne marchera que si le son est en cours\n if (audioExist()){\n playTheSound(imgPos);\n stopTheSound();\n }\n }",
"@Override\n public void onBackPressed()\n {\n onStop();\n super.onBackPressed();\n }",
"@Override\n public void onBackPressed() {\n timer.cancel();\n // Tell the user that their data will be destroyed\n Toast.makeText(getApplicationContext(), \"Stopping and deleting recording...\", Toast.LENGTH_SHORT)\n .show();\n super.onBackPressed();\n }",
"@Override\n public void onBackPressed(){\n setSound.startButtonNoise(MemoryThemeActivity.this);\n finish();\n }",
"@Override\n\tpublic boolean onKeyDown(int keyCode, KeyEvent event) {\n\t\tif (keyCode == KeyEvent.KEYCODE_BACK) {\n\t\t\tIntent Menu = new Intent(CreditsActivity.this, MainActivity.class);\n\t\t\tstartActivity(Menu);\n\t\t\tfinish();\n//\t\t\tmp.stop();// when backkey is pressed , the music stopped\n//\t\t\tmp.release();// and also music is released\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onKeyDown(keyCode, event);\n\t}",
"@Override\n public void onBackPressed() {\n mediaPlayer.pause();\n Intent intent = new Intent(this, MainMenuActivity.class);\n startActivity(intent);\n finish();\n }",
"public void onBackButton() {\n WindowLoader wl = new WindowLoader(backButton);\n wl.load(\"MenuScreen\", getInitData());\n RETURN_AUDIO.play(Double.parseDouble(getInitData().get(\"SFXVol\")));\n }",
"@Override\n\t\tpublic void onBackPressed() {\n\t\t\tsuper.onBackPressed();\n\t\t\trelease();\n\t\t\tdialog=null;\n\t\t\tmPlayMedia.setOnClickListener(null);\n\t\t\tmPauseMedia.setOnClickListener(null);\n\t\t\tmPlayMedia=null;\n\t\t\tmPauseMedia=null;\n\t\t\tmMediaSeekBar=null;\n\t\t\tmRunTime=null;\n\t\t\tmTotalTime=null;\n\t\t\tfinish();\n\t\t}",
"@Override\r\n public void onPause() {\r\n super.onPause();\r\n Intent intent = new Intent(MainActivity.this, MusicService.class);\r\n stopService(intent);\r\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tif (Bluetooth.connectedThread != null) {\n\t\t\tBluetooth.connectedThread.write(\"Q\");}//Stop streaming\n\t\tsuper.onBackPressed();\n\t}",
"private void stopAudio() {\r\n // stop playback if possible here!\r\n }",
"@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tbookCache.clear();\n\n stopService(new Intent(this , AudioService.class));\n\n Global.RemoveTmp();\n\t}",
"public void stop()\n {\n if(AudioDetector.getInstance().isNoAudio() || musicPlayer == null)\n {\n return;\n }\n\n\n musicPlayer.stop();\n }",
"@Override\n public void onDestroy() {\n //super.onDestroy();\n Utils.showToast(this, \"service done\");\n /*if(mediaPlayer.isPlaying()) {\n mediaPlayer.stop();\n }\n mediaPlayer.release();*/\n }",
"@Override\n protected void onStop() {\n super.onStop();\n stopMusic();\n }",
"@Override\r\n\tpublic void backward(MediaPlayer mediaPlayer)\r\n\t{\n\r\n\t}",
"@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)\n private void stopAudio() {\n //stop audio\n playBtn.setImageDrawable(getActivity().getResources().getDrawable(R.drawable.sharp_play_arrow_black_36, null));\n playerHeader.setText(\"Stopped\");\n isPlaying = false;\n mediaPlayer.stop();\n bottomSheetBehavior.setState(BottomSheetBehavior.STATE_COLLAPSED);\n seekBarHandler.removeCallbacks(updateSeekBar);\n }",
"@Override\n public void onBackPressed() {\n super.onBackPressed();\n myoBackgroundService = new Intent(this, MyoBackgroundService.class);\n stopService(myoBackgroundService);\n backgroundIntentService = new Intent(this, BackgroundIntentService.class);\n stopService(backgroundIntentService);\n isTextRcvData = false;\n moveTaskToBack(true);\n android.os.Process.killProcess(android.os.Process.myPid());\n }",
"@Override\n protected void onStop() {\n super.onStop();\n releaseMediaPlayer();\n }",
"@Override\n\tpublic void stop() {\n\t\tif (player != null) {\n\t\t\tplayer.close();\n\n\t\t\tpauseLocation = 0;\n\t\t\tsetSongTotalLenght(0);\n\t\t}\n\t}",
"@Override\n protected void onDestroy() {\n unBoundAudioService();\n super.onDestroy();\n }",
"@Override\r\n public void onDestroy() {\r\n super.onDestroy();\r\n if (toggleButton1==true) {\r\n Intent intent = new Intent(MainActivity.this, MusicService.class);\r\n stopService(intent);\r\n }\r\n }",
"@Override\n protected void onStop() {\n super.onStop();\n // when the activity is stopped, release the media player resources because we won't\n // be playing any more sounds.\n releaseMediaPlayer();\n }",
"private void stop() {\n Log.i(\"TTS\", \"Stopping\");\n mSpeechQueue.clear();\n \n nativeSynth.stop();\n mIsSpeaking = false;\n if (mPlayer != null) {\n try {\n mPlayer.stop();\n } catch (IllegalStateException e) {\n // Do nothing, the player is already stopped.\n }\n }\n Log.i(\"TTS\", \"Stopped\");\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tif (Bluetooth.connectedThread != null) {\n\t\t\tBluetooth.connectedThread.write(\"0\");\n\t\t}//Stop streaming\n\t\tsuper.onBackPressed();\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tif (wv1.canGoBack()) {\n\t wv1.goBack();\n\t\t}else \n\t\t{\n\t\t\twv1.stopLoading();\n\t\t\twv1.clearCache(true);\n\t\t\tfinish();\n\t }\n\t}",
"@Override\n public void onBackPressed() {\n super.onBackPressed();\n LessonService.disableToRestoreState();\n }",
"public void stopPlayBack() {\n\t\tif (android.os.Environment.getExternalStorageState().equals(\n\t\t\t\tandroid.os.Environment.MEDIA_MOUNTED)) {\n\t\t\tif (mPlayer.isPlaying())\n\t\t\t\tmPlayer.stop();\n\t\t} else {\n\t\t\tToast.makeText(mContext, \"sdcard not available\", Toast.LENGTH_LONG).show();\n\t\t}\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\treleasePlayer();\n\t}",
"@Override\n public boolean onKeyDown(int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_BACK) {\n //mTimer.stop();\n }\n return super.onKeyDown(keyCode, event);\n }",
"public void stop() {\n SystemClock.sleep(500);\n\n releaseAudioTrack();\n }",
"public void stopBackgroundMusic()\n {\n background.stop();\n }",
"public void stop() {\n\t\tmusic.stop();\n\t}",
"private void stopTalePlay_Service(){\n sBtn_PlayResume.setImageResource(R.drawable.select_btn_play);\n mAudioTaleSeekBar.setProgress(0);\n mCurrTimePosText.setText(\"00:00\");\n this.stopService(mServiceIntent);\n unregisterBroadcastReceivers();\n\n /** unregister broadcastReceiver for alertDialog */\n unregisterAfterCallBroadcastReceiver();\n }",
"private void stop()\n {\n mPlayer.stop();\n mPlayer = MediaPlayer.create(this, audioUri);\n }",
"@Override\r\n public boolean onKeyDown(int keyCode, KeyEvent event)\r\n {\r\n if(keyCode == KeyEvent.KEYCODE_BACK)\r\n {\r\n //creating a dialog, whether the player want to play the game or want to exit the game\r\n AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\r\n builder.setTitle(\"Confirm Exit\");\r\n builder.setMessage(\"Do you want to exit game?\");\r\n builder.setPositiveButton(\"Quit game\",new DialogInterface.OnClickListener() {\r\n\r\n @Override\r\n public void onClick(DialogInterface arg0, int arg1)\r\n {\r\n finishAffinity();\r\n Intent intent=new Intent(MainActivity.this,MusicService.class);\r\n stopService(intent);\r\n }\r\n });\r\n\r\n builder.setNegativeButton(\"Play on\",new DialogInterface.OnClickListener() {\r\n\r\n @Override\r\n public void onClick(DialogInterface arg0, int arg1)\r\n {\r\n arg0.dismiss();\r\n\r\n }\r\n });\r\n AlertDialog dialog = builder.create();\r\n dialog.show();\r\n }\r\n\r\n return true;\r\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tif (mTaskType == Globals.TASK_TYPE_NEW) {\n\t\t\t\n\t\t\tIntent intent = new Intent(this, TrackingService.class);\n\t\t\tif(mBound){\n\t\t\t\tunbindService(mConnection);\n\t\t\t\tmBound = false;\n\t\t\t}\n\t\t\tstopService(intent);\n\t\t\t// notification has flag auto_cancel set\n\t\t\tfinish();\t\t\n\t\t}\n\t\t\n\t\tsuper.onBackPressed();\n\t}",
"@Override\n protected void onStop() {\n mediaPlayer.release();\n super.onStop();\n }",
"public void stopAudio() {\n\t\tif(audioStream != null ) {\n\t\t\tAudioPlayer.player.stop(audioStream);\n\t\t}\n\t}",
"@Override\n\tprotected void onStop() {\n\t\trecordAndBack();// 停止记时\n\t\tsuper.onStop();\n\t}",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tbackButtonHandler();\r\n\t\treturn;\r\n\t}",
"@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tif (mMediaPlayer.isPlaying()) {\n\t\t\tmMediaPlayer.stop();\n\t\t}\n\t}",
"@Override\n protected void onDestroy() {\n super.onDestroy();\n if (mediaPlayer != null){\n setViewOnFinish();\n mediaPlayer.release();\n }\n\n Intent intent = new Intent(this, VoIpCallDetection.class);\n stopService(intent);\n log(\"VoIpCallDetection Service Stopped.\");\n }",
"@Override\r\n\tpublic void stopped(MediaPlayer mediaPlayer)\r\n\t{\n\r\n\t}",
"@Override\n public void onDestroy() {\n super.onDestroy();\n // if (PlayerService.myMediaPlayer != null) {\n // PlayerService.myMediaPlayer.stop();\n // PlayerService.myMediaPlayer.release();\n // PlayerService.myMediaPlayer = null;\n // }\n Log.d(TAG,\"MainActivity destroyed\");\n }",
"@Override\n public void removeAudioService() {\n\n if (serviceBound && audioIntent != null) {\n\n // Notifies SSMusicService to signal SSMusicEngine to release all resources used by the\n // internal MediaPlayer object.\n musicService.releaseMedia();\n\n stopService(audioIntent); // Stops the service.\n audioIntent = null;\n musicService = null;\n }\n }",
"public void stop()\n {\n mediaPlayer.stop();\n }",
"@Override\n public void onBackPressed() {\n /*startAppAd.onBackPressed();\n super.onBackPressed();*/\n\n if(blnExit)\n {\n super.onBackPressed();\n return;\n }\n this.blnExit = true;\n // startAppAd.onBackPressed();\n\n\n Toast.makeText(ActHome.this,\"Please click BACK again to EXIT.\",Toast.LENGTH_SHORT).show();\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n blnExit = false;\n }\n },2000);\n }",
"@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tMediaPlayUtil.getInstance().stop();\n\t\tMediaPlayUtil.getInstance().release();\n\t}",
"@Override\n public void onBackPressed(){\n cancel();\n }",
"public void stop()\n {\n audioClip.stop();\n }",
"@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tMediaPlayUtil.getInstance().release();\n\t\tMediaPlayUtil.getInstance().stop();\n\n\t}",
"private void stop()\n\t\t{\n\t\t\tif (mMediaPlayer != null)\n\t\t\t{\n\t\t\t\tmMediaPlayer.stop();\n\t\t\t\tmMediaPlayer.reset();\n\t\t\t}\n\t\t}",
"@Override\n public void stopSound(){\n gameMusic.stop();\n }",
"@Override\n protected void onDestroy() {\n Log.v(\"MediaPlayer\", \"onDestroy\");\n super.onDestroy();\n if (mp.isPlaying()) {\n mp.stop();\n }\n mp.release();\n }",
"private int previousSong() {\n if (playListAdapter != null) {\n playListAdapter.clickPreviousNext(1);\n }\n serviceBound = false;\n player.stopMedia();\n if (currentSong > 0) {\n currentSong--;\n }\n return currentSong;\n }",
"@Override\n // Detect when the back button is pressed\n public void onBackPressed() {\n\n // Let the system handle the back button\n\n super.onBackPressed();\n\n }",
"@Override\r\n\t\t\t\tpublic void onDialogBackPressed() {\n\t\t\t\t\texitVideoPlay();\r\n\t\t\t\t\t// mVideoPlayerHander.sendEmptyMessage(EXIT_VIDEOPLAY);\r\n\t\t\t\t}",
"@Override\r\n protected void onStop() {\n }",
"@Override\n public void onBackPressed()\n {\n mIsBackButtonPressed = true;\n super.onBackPressed();\n \n }",
"@Override\r\n\tpublic boolean onKeyDown(int keyCode, KeyEvent event) {\n\t\tif(keyCode==KeyEvent.KEYCODE_BACK)\r\n\t\t{\r\n\t\t\tnew AlertDialog.Builder(main.this).setTitle(\"提示\").setMessage(\r\n\t\t\t\t\t\"还未结束,确定退出吗?\").setIcon(R.drawable.x).setPositiveButton(\"取消\",\r\n\t\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}).setNegativeButton(\"确定\",\r\n\t\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\r\n\t\t\t\t\t\t\tfinish();\r\n\t\t\t\t\t\t\tPlayer.stop();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}).show();\t\t\r\n\t\t}\r\n\t\treturn super.onKeyDown(keyCode, event);\r\n\t}",
"@Override\n public void onBackPressed() {\n if (exit) {\n System.exit(0);\n } else {\n Toast.makeText(this, \"Press Back again to Exit.\",\n Toast.LENGTH_SHORT).show();\n exit = true;\n new Handler().postDelayed(new Runnable() { //3 sn içinde iki defa basıldı mı kontrolu için\n @Override\n public void run() {\n exit = false;\n }\n }, 3 * 1000);\n }\n }",
"@Override\n public void onBackPressed() {}",
"public void onStop();",
"@Override\n protected void onDestroy() {\n super.onDestroy();\n\n stopRecording();\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\t\n\t}",
"public void onBackPresed() {\n\t\t\tandroid.os.Process.killProcess(android.os.Process.myPid());\n\t\t\t\n\n\t}",
"public void onBackPressed() {\n backbutton();\n }",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tsound.release();\n\t\tfinish();\n\t}",
"@Override\n public void onFinish() {\n mpAudio.start();\n stopService(new Intent( getBaseContext(), MeditationService.class ) );\n }",
"@Override\n protected void onStop() {\n }",
"@Override\n public void onCompletion(MediaPlayer mp) {\n stopMedia();\n //stop the service\n stopSelf();\n }",
"protected void onDestroy() {\n\t\t if (com.example.main_project.MainActivity.tts!=null) {\n\t\tcom.example.main_project.MainActivity.tts.stop();\n\n\n\t\tcom.example.main_project.MainActivity.tts.shutdown();\n\t\t}\n\t\t super.onDestroy();\n\t\t}",
"@Override\n public void onStop() {\n Log.d(TAG, \"MediaSessionCallback: onStop()\");\n // In onDestroy(), the player will be released. If you are using ExoPlayer, you will\n // need to manually release the player.\n getActivity().finish();\n }",
"@Override\r\n\tprotected void onStop() {\n\t\t\r\n\t}",
"@Override\n public void onBackPressed()\n {\n\n }",
"public void stop() {\n mMediaPlayer.stop();\n setPlayerState(State.STOPPED);\n notifyPlaying();\n }",
"public void backButtonClicked()\r\n {\n manager = sond.getManager();\r\n AnimatorThread animThread = model.getThread();\r\n\r\n if (button.getPlay() && animThread != null && animThread.isAlive())\r\n {\r\n if (!animThread.getWait())\r\n {\r\n animThread.interrupt();\r\n }\r\n else\r\n {\r\n animThread.wake();\r\n }\r\n }\r\n else if (manager.canUndo())\r\n {\r\n manager.undo();\r\n }\r\n }",
"public void onDestroy() {\n super.onDestroy();\n C0938a.m5006c(\"SR/SoundRecorder\", \"~~~~~~~~~~~~~~~~~~~~~~~~~~~~onDestroy\");\n m6659t();\n ServiceConnection serviceConnection = this.f5403W;\n if (serviceConnection != null) {\n unbindService(serviceConnection);\n }\n }",
"@Override\n\tpublic void onBackPressed() {\n\n\t\tif (workoutService != null && workoutService.getService().getStatus().isMonitoring()) {\n\t\t\tif (TestHarnessUtils.isTestHarness()) {\n\t\t\t\tstopWorkout(true);\n\t\t\t} else {\n\t\t\t\tpromptStopWorkout(true);\n\t\t\t}\n\t\t} else {\n\t\t\tsuper.onBackPressed();\n\t\t\toverridePendingTransition(anim.push_right_in, anim.push_right_out);\n\t\t}\n\t}",
"@Override\n\tpublic boolean onKeyDown(int keyCode, KeyEvent event) {\n\t\tif (keyCode == KeyEvent.KEYCODE_HOME\n\t\t\t\t|| keyCode == KeyEvent.KEYCODE_SEARCH) {\n\t\t\tMusic.getInstance(mContext).stop();\n\t\t}\n\t\treturn super.onKeyDown(keyCode, event);\n\t}",
"@Override\r\n public void onBackPressed() {\n }",
"public void stop() {\n\t\tmAudioManager.abandonAudioFocus(mOuterEventsListener);\n\t\tinternalStop();\n\t}",
"@Override\n protected void onPause()\n {\n super.onPause();\n setSound.pauseMusic();\n }",
"@Override\n public void backToMainMenu() {\n try {\n Thread.sleep((long)480000);\n }\n catch (InterruptedException var1_1) {\n var1_1.printStackTrace();\n }\n if (this.activityActive && !this.getClass().equals((Object)SampleActivity.class)) {\n AudioDemo.Sound().playSound(\"a9\");\n try {\n Thread.sleep((long)10000);\n }\n catch (InterruptedException var2_2) {\n var2_2.printStackTrace();\n }\n this.finishInputMoney(false);\n }\n }",
"@Override\n public void onBackPressed() {\n if (doubleBackToExitPressedOnce) {\n super.onBackPressed();\n updatePICstatus2();\n return;\n }\n this.doubleBackToExitPressedOnce = true;\n Toast.makeText(this, \"Please click Back again to exit\", Toast.LENGTH_SHORT).show();\n\n new Handler().postDelayed(new Runnable() {\n\n @Override\n public void run() {\n doubleBackToExitPressedOnce = false;\n }\n }, 3000);\n }",
"@Override\n public void onDestroy() {\n super.onDestroy();\n releasePlayer();\n mMediaSession.setActive(false);\n }",
"@Override\n public void onBackPressed() {\n }",
"@Override\n public void onBackPressed() {\n }",
"@Override\n public void onBackPressed() {\n }",
"@Override\n public void onBackPressed() {\n }",
"@Override\n public void onBackPressed() {\n }",
"@Override\n public void onBackPressed() {\n }",
"@Override\n public void onBackPressed() {\n }",
"@Override\n public void onBackPressed() {\n }",
"@Override\n public void onBackPressed() {\n }",
"@Override\n public void onBackPressed() {\n }",
"@Override\n public void onBackPressed() {\n }",
"@Override\n public void onBackPressed() {\n }",
"@Override\n public void onBackPressed() {\n }"
] | [
"0.7918477",
"0.7788372",
"0.7720134",
"0.7582257",
"0.7572832",
"0.7473261",
"0.7421381",
"0.7393534",
"0.730536",
"0.72069126",
"0.7198638",
"0.7192358",
"0.71486574",
"0.7089589",
"0.7059508",
"0.7056798",
"0.70553106",
"0.7019305",
"0.70036614",
"0.69973886",
"0.6933847",
"0.69206697",
"0.6907304",
"0.6901199",
"0.68982106",
"0.68935466",
"0.6875217",
"0.6866758",
"0.68636954",
"0.6856829",
"0.68408513",
"0.68282926",
"0.68137366",
"0.68084776",
"0.6808293",
"0.6805316",
"0.68006337",
"0.6782719",
"0.6781061",
"0.67766786",
"0.6758526",
"0.67437387",
"0.67370355",
"0.6703405",
"0.66996044",
"0.6686624",
"0.6686052",
"0.6673635",
"0.66699773",
"0.66679764",
"0.66624576",
"0.6660842",
"0.6656265",
"0.6653798",
"0.66486967",
"0.66486573",
"0.6640924",
"0.66401976",
"0.6633479",
"0.6632594",
"0.66310906",
"0.6612369",
"0.66077673",
"0.66039944",
"0.6603746",
"0.6603674",
"0.659951",
"0.65991014",
"0.65940857",
"0.6590066",
"0.6589593",
"0.6588465",
"0.6587305",
"0.6586733",
"0.65865153",
"0.6586342",
"0.6581809",
"0.65796196",
"0.65789723",
"0.6573353",
"0.6570907",
"0.65661",
"0.65656745",
"0.65625316",
"0.6562027",
"0.6561234",
"0.6551034",
"0.6546546",
"0.6545544",
"0.6545544",
"0.6545544",
"0.6545544",
"0.6545544",
"0.6545544",
"0.6545544",
"0.6545544",
"0.6545544",
"0.6545544",
"0.6545544",
"0.6545544",
"0.6545544"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void sendHasten(Affair affair, EdocOCIPSummary edocSummary, String msgContent, boolean sendMsg) {
} | {
"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 |
Allows changing of the incoming data processor | @Override
public void setHandler(Incoming handler) {
this.handler = handler;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void processData() {\n\t\t\n\t}",
"void assignDataReceived(Serializable dataReceived);",
"private void updateReceivedData(byte[] data) {\n }",
"@Override\n public void onDataChanged(DataEventBuffer dataEvents) {\n // Not used\n }",
"public void configurableDataInput() {\n }",
"public void onPROChange() {\n if (selectPROC != null) {\n CommunicationBridge communicationBridge = findCommunicationById(selectPROC.toString());\n parameterPROC = communicationBridge.getNumParameter();\n } else {\n parameterPROC = 0;\n }\n }",
"@Override\n protected void onDataChanged() {\n }",
"@Override\n\t\tpublic void onChange(boolean selfChange) {\n\t\t\tmHandler.sendEmptyMessage(1);\n\t\t\tLog.i(\"message\", \"dataChange\");\n\t\t\tsuper.onChange(selfChange);\n\t\t}",
"public void processStreamInput() {\n }",
"@Override\n public void onDataChanged() {\n }",
"@Override\n public void onDataChanged() {\n }",
"@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}",
"@Override\n public void onDataChanged() {\n\n }",
"@Override\n\tprotected void processInput() {\n\t}",
"@Override\n public void changedData(final CModule module, final byte[] data) {\n }",
"@Override\r\n\tprotected void setData(Object data) {\n\t\t\r\n\t}",
"public void setProcessed (boolean Processed);",
"public void setProcessed (boolean Processed);",
"public void setProcessed (boolean Processed);",
"public void setProcessed (boolean Processed);",
"public void setProcessed (boolean Processed);",
"public void setProcessed (boolean Processed);",
"public abstract void enableStreamFlow();",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"@SuppressWarnings(\"unchecked\")\n @Override\n public synchronized void processIncoming(Data data) throws WekaException {\n if (isStopRequested()) {\n return;\n }\n\n if (getStepManager().isStreamFinished(data)) {\n // done\n // notify downstream steps of end of stream\n Data d = new Data(data.getConnectionName());\n getStepManager().throughputFinished(d);\n return;\n }\n\n getStepManager().throughputUpdateStart();\n if (m_plotListeners.size() > 0) {\n if (getStepManager().numIncomingConnectionsOfType(\n StepManager.CON_INSTANCE) > 0) {\n Instance instance =\n (Instance) data.getPayloadElement(StepManager.CON_INSTANCE);\n if (m_reset) {\n m_reset = false;\n List<String> legendEntries = new ArrayList<String>();\n int i;\n for (i = 0; i < instance.dataset().numAttributes() && i < 10; i++) {\n legendEntries.add(instance.dataset().attribute(i).name());\n }\n m_instanceWidth = i;\n\n for (PlotNotificationListener l : m_plotListeners) {\n l.setLegend(legendEntries, 0.0, 1.0);\n }\n }\n\n double[] dataPoint = new double[m_instanceWidth];\n for (int i = 0; i < dataPoint.length; i++) {\n if (!instance.isMissing(i)) {\n dataPoint[i] = instance.value(i);\n }\n }\n for (PlotNotificationListener l : m_plotListeners) {\n l.acceptDataPoint(dataPoint);\n }\n\n } else if (getStepManager().numIncomingConnectionsOfType(\n StepManager.CON_CHART) > 0) {\n if (m_reset) {\n m_reset = false;\n double min =\n data.getPayloadElement(StepManager.CON_AUX_DATA_CHART_MIN, 0.0);\n double max =\n data.getPayloadElement(StepManager.CON_AUX_DATA_CHART_MAX, 1.0);\n List<String> legend =\n (List<String>) data\n .getPayloadElement(StepManager.CON_AUX_DATA_CHART_LEGEND);\n for (PlotNotificationListener l : m_plotListeners) {\n l.setLegend(legend, min, max);\n }\n }\n double[] dataPoint =\n (double[]) data\n .getPayloadElement(StepManager.CON_AUX_DATA_CHART_DATA_POINT);\n for (PlotNotificationListener l : m_plotListeners) {\n l.acceptDataPoint(dataPoint);\n }\n }\n }\n getStepManager().throughputUpdateEnd();\n }",
"@Override\n\tprotected void setData(DataStream dataStream) throws IOException {\n\t\t\n\t}",
"@Override\r\n public void onReceivedData(byte[] arg0) {\r\n dataManager.onReceivedData(arg0);\r\n }",
"private void processInputData() throws IOException {\n\t\tout.write(Protocol.PC_READY.value);\n\t\tout.flush();\n\t\tInputBuffer buffer = InputBuffer.readFrom(in);\n\t\tdispatcher.dispatch(buffer.entries);\n\t}",
"@Override\n\tpublic void onDataChanged(long timestamp, int msg) {\n\t\tif(msg==AgentMessage.ERROR.getCode()) \n\t\t\tToolBox.showRemoteErrorMessage(connBean, error);\n\t\t\n\t\tsynchronized (mutex) {\n setEnabled(false);\n if (solid != null && timestamp > lastestTimeStamp+1500*1000000) {\n int result = JOptionPane.showConfirmDialog(StartUI.getFrame(), \"The config of this lift has changed. Reload it?\", \"Update\",\n JOptionPane.YES_NO_OPTION);\n if (result == JOptionPane.OK_OPTION) {\n solid = null;\n event = new Parser_Event( connBean.getIp(), connBean.getPort() );\n setHot();\n }\n } else {\n setHot();\n }\n setEnabled(true);\n }\n\t}",
"@Override\n\tpublic void getData() {\n\t\t\n\t}",
"@Override\r\n\tpublic void onUpdateIO(int device, int type, int code, int value,\r\n\t\t\tint timestamp) {\n\t\t\r\n\t}",
"@Override\n\tpublic void processing() {\n\n\t}",
"public void onDataChanged(IData data) {\r\n setData(data);\r\n }",
"public void processInput() {\n\n\t}",
"@Override\n\tpublic void beforeVariableChanged(ProcessVariableChangedEvent arg0) {\n\n\t}",
"@Override\n\t\t\tpublic void onProcess(int process) {\n\t\t\t}",
"private void sendData() {\n final ByteBuf data = Unpooled.buffer();\n data.writeShort(input);\n data.writeShort(output);\n getCasing().sendData(getFace(), data, DATA_TYPE_UPDATE);\n }",
"public void onDataChanged(IData data) {\r\n\t this.data = data;\r\n\t repaint();\r\n\t}",
"public void updateData() {}",
"@Override\r\n public void handleData(Serializable data)\r\n {\r\n try\r\n {\r\n // get the client context\r\n clientContext = (TwoPlayerClientContext) data;\r\n messageQueue.appendText(\r\n \"Received IO Message: \" + clientContext.getIOMSG().toString());\r\n messageQueue.appendText(clientContext.getIOMSG()\r\n .equals(IOMSG.QUERY_INITIAL_CONTEXT) ? \"\\n\"\r\n : \" from \" + clientContext.getClientID() + \"\\n\");\r\n messageQueue.appendText(\"Server received actions: \"\r\n + clientContext.toString() + \"\\n\\n\");\r\n switch (clientContext.getIOMSG())\r\n {\r\n case QUERY_INITIAL_CONTEXT:\r\n transmitData(IOMSG.UPDATE_INITIAL_CONTEXT,\r\n serverContext.createClientContext(true),\r\n serverContext.getNumClients() - 1);\r\n break;\r\n case RELAY_CONTEXT:\r\n processAction(clientContext, \"Updated client context.\");\r\n break;\r\n case ROLL:\r\n processAction(clientContext, clientContext.getSelectedActor() + \" rolled a \"\r\n + clientContext.getDie().toString() + \"!\");\r\n break;\r\n case MOVE:\r\n processAction(clientContext, clientContext.getSelectedActor() + \" moved!\");\r\n break;\r\n default:\r\n break;\r\n }\r\n } catch (Exception ex)\r\n {\r\n Logger.getLogger(EpicDuelsServerController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"public void setInboundPayload(Payload.Inbound newInboundPayload);",
"private void setData() {\n\n }",
"public void setPacketProcessor(MaplePacketProcessor processor);",
"protected void handleUpdateData(BaseIotData data)\n\t{\n\t\tActuatorData ad = (ActuatorData) data;\n\t\tthis.command = ad.getCommand();\n\t\tthis.value = ad.getValue();\n\t\tthis.actuatorType = ad.getActuatorType();\n\t}",
"@Override\n public void msrpDataTransferred(String msgId) {\n }",
"@Override\r\n public void ProcessControlPIN(PinDataControl ControlData) {\n }",
"public void dataWasSet();",
"@Override\n\tprotected void getDataFromUCF() {\n\n\t}",
"public void setOnReceiveCalled() {\n this.f49 = true;\n }",
"public void read() {\r\n\t\tbusExt.put(data);\r\n\t}",
"public void internalRead() {\r\n\t\tbusInt.put(data);\r\n\t}",
"@Override\n\t\t\tpublic void handleDataChange(String dataPath, Object data) throws Exception {\n\t\t\t\tString cmd = (String)data;\n\t\t\t\tSystem.out.println(\"执行的命令:\"+cmd);\n\t\t\t\texecCmd(cmd);\n\t\t\t}",
"void storeDataFlow(DataFlow msg);",
"@Override\n\tpublic void processingInstruction() {\n\t\t\n\t}",
"@Override\n\tpublic void setData() {\n\n\t}",
"@Input(\"onData\")\n synchronized public void onData(Map<String, Object> argMap) {\n if (getBooleanProperty(SWITCH_STATE_PROPERTY)) {\n on(argMap);\n } else {\n off(argMap);\n }\n }",
"public void startData()\n\t\t\t{\n\t\t\t\tsend(\"<data>\", false);\n\t\t\t}",
"@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setEmitOrgPRE(true);\r\n \r\n }",
"@Override\n\tpublic void readData() {\n\t\t\n\t}",
"public void internalStore() {\r\n\t\tdata = busInt.get();\r\n\t}",
"private void setUserData(){\n }",
"@Override\n\tpublic void update()\n\t{\n\t\tfor (int i = 0; i < 16 && !processQueue.isEmpty(); i++)\n\t\t{\n\t\t\tProcessEntry entry = processQueue.remove();\n\t\t\tprocessPacket(entry.packet, entry.sourceClient);\n\t\t}\n\t\t\n\t\t// Flush pending packets\n\t\tclientChannels.flush();\n\t}",
"@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setEmitTrgPRE(true);\r\n }",
"private void receive() {\n\t\t\ttry{\n\t\t\t\twhile(true){\n\t\t\t\t\tsuper.store(generateSimulateData());\n\t\t\t\t\tSystem.out.println(\"模拟接收数据\");\n\t\t\t\t\tThread.sleep(10000);\n\t\t\t\t}\n\t\t\t}catch(Exception ex){\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t }",
"void subscribe (DataminingProcessingListener _dataminingProcessingListener) {\r\n if (dataminingProcessingListener == null) {\r\n dataminingProcessingListener = _dataminingProcessingListener;\r\n }\r\n }",
"public void modifyMessageProcessor(String xml) throws AxisFault {\n try {\n OMElement msElem = createElement(xml);\n MessageProcessor messageProcessor =\n MessageProcessorFactory.createMessageProcessor(msElem);\n if (messageProcessor != null && messageProcessor.getName() != null) {\n SynapseConfiguration synapseConfiguration = getSynapseConfiguration();\n MessageProcessor removedProcessor =\n synapseConfiguration.removeMessageProcessor(messageProcessor.getName());\n if (removedProcessor != null) {\n removedProcessor.destroy();\n }\n messageProcessor.init(getSynapseEnvironment());\n String fileName = ServiceBusUtils.generateFileName(messageProcessor.getName());\n messageProcessor.setFileName(fileName);\n synapseConfiguration.addMessageProcessor(messageProcessor.getName(),\n messageProcessor);\n\n if (removedProcessor.getArtifactContainerName() != null) {\n messageProcessor.setArtifactContainerName(removedProcessor.getArtifactContainerName());\n messageProcessor.setIsEdited(true);\n }\n else {\n if(!Boolean.parseBoolean(System.getProperty(\"NonRegistryMode\"))) {\n MediationPersistenceManager mp = getMediationPersistenceManager();\n mp.saveItem(messageProcessor.getName(), ServiceBusConstants.ITEM_TYPE_MESSAGE_PROCESSOR);\n }\n }\n } else {\n String message = \"Unable to Update Message Processor \";\n handleException(log, message, null);\n }\n\n } catch (XMLStreamException e) {\n String message = \"Unable to Modify Message Processor \";\n handleException(log, message, e);\n }\n }",
"public synchronized void setProcessingActivity(ProcessingActivity processingActivity){\n\t\tthis.processingActivity=processingActivity;\n\t}",
"public ChangeData()\r\n\t\t{\r\n\t\t}",
"public void onDataChanged(){}",
"public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"private void sendData() {\n\n Thread update = new Thread() {\n public void run() {\n while (opModeIsActive() && (tfod != null)) {\n path.updateTFODData(recognize());\n path.updateHeading();\n try {\n Thread.sleep(500);\n } catch (Exception e) {\n }\n if (isStopRequested() && tfod != null)\n tfod.shutdown();\n }\n }\n };\n update.start();\n }",
"private void set(){\n resetBuffer();\n }",
"public void dataChanged(DataChangeEvent e) {\n\t\t\t}",
"@Override\n public void eCGData(int value) {\n }",
"@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setPassivateOrgINT(false);\r\n }",
"public abstract void onProcess();",
"void onDataChanged();",
"public void setProcessor(EntryProcessor processor)\n {\n m_processor = processor;\n }",
"@Override\n public void handleMessage(Message msg){\n switch (msg.what) {\n case PSensor.MESSAGE_STATE_CHANGE:\n break;\n case PSensor.MESSAGE_WRITE:\n break;\n case PSensor.MESSAGE_READ:\n PSensor.sensorData.parseInput((byte[])msg.obj);//parseInput((byte[])msg.obj);\n multiGauge.handleSensor(PSensor.sensorData.boost);\n multiGaugeVolts.handleSensor(PSensor.sensorData.batVolt);\n break;\n case PSensor.MESSAGE_DEVICE_NAME:\n break;\n case PSensor.MESSAGE_TOAST:\n break;\n default:\n break;\n }\n }",
"@Override\n public void onStart() {\n this.dataGenerator = new DataGenerator(this.dataSize, this.dataValues, this.dataValuesBalancing);\n this.dataStream = new DataStream();\n if (this.flowRate != 0)\n this.sleepTime = dataStream.convertToInterval(this.flowRate);\n this.count = 0L;\n// this.me = this.me + \"_\" + getRuntimeContext().getIndexOfThisSubtask();\n new Thread(this::receive).start();\n }",
"void setData (Object newData) { /* package access */ \n\t\tdata = newData;\n\t}",
"public void setPayload(int data) {\n payload = data;\n }",
"@Override\n\tpublic void startProcessing() {\n\n\t}",
"void processData(float[] receiveData) {\r\n\t\tlogger.debug(\"verarbeite Daten\");\r\n\t\t// gibt empfangene Daten weiter\r\n\r\n\t\tlogger.debug(\"value processData:\" + Arrays.toString(receiveData));\r\n\t\tif (receiveData[0] == Sensor.DistNx.getNumber()) {\r\n\t\t\t// Dist-Nx\r\n\t\t\tlogger.info(\"DistNX-Werte: \" + receiveData[2]);\r\n\t\t\tdistNx.setDistance(Math.round(receiveData[2]));\r\n\t\t} else if (receiveData[0] == Sensor.LightSensorArray.getNumber()) {\r\n\t\t\t// LSA\r\n\t\t\tlsa.setLSA(Math.round(receiveData[1] - 1),\r\n\t\t\t\t\tMath.round(receiveData[2]));\r\n\t\t} else if (receiveData[0] == Sensor.EOPDLinks.getNumber()) {\r\n\t\t\t// linker EOPD\r\n\t\t\teopdLeft.setEOPDdistance(Math.round(receiveData[2]));\r\n\t\t} else if (receiveData[0] == Sensor.EOPDRechts.getNumber()) {\r\n\t\t\t// rechter EOPD\r\n\t\t\teopdRight.setEOPDdistance(Math.round(receiveData[2]));\r\n\t\t} else if (receiveData[0] == Sensor.AbsoluteIMU.getNumber()) {\r\n\t\t\t// AbsIMU-ACG\r\n\t\t\tif (Math.round(receiveData[1]) >= 16) {\r\n\t\t\t\tabs_Imu.setAngle(Math.round(receiveData[2]),\r\n\t\t\t\t\t\tMath.round(receiveData[1]) - 16);\r\n\t\t\t} else {\r\n\t\t\t\tabs_Imu.setTiltData(Math.round(receiveData[2]),\r\n\t\t\t\t\t\tMath.round(receiveData[1]) - 11);\r\n\t\t\t}\r\n\r\n\t\t} else if (receiveData[0] == 6) {\r\n\t\t\t// Akkuladung\r\n\t\t\taccumulator.setMilliVolt(Math.round(receiveData[1]));\r\n\t\t} else if (receiveData[0] == 7) {\r\n\t\t\tlogger.debug(\"Genuegend Werte uebermittelt: \" + this);\r\n\t\t\tsensorReady = false;\r\n\t\t} else if (receiveData[0] == Sensor.IRThermalSensor.getNumber()) {\r\n\t\t\t// ThermalSensor\r\n\t\t\tthermal.setTemperature(Math.round(receiveData[2]));\r\n\t\t} else if (receiveData[0] == 9) {\r\n\t\t\tif (receiveData[1] == 1) {\r\n\t\t\t\t// TODO Reset Button gedrueckt; ggf. muss noch weiteres getan\r\n\t\t\t\t// werden\r\n\t\t\t\tinitializeProgram.renewNavigation();\r\n\t\t\t} else if (receiveData[1] == 2) {\r\n\t\t\t\tinitializeProgram.setProgramStarted();\r\n\t\t\t}\r\n\t\t} else if (receiveData[0] == 10) {\r\n\t\t\tsemaphore.down();\r\n\t\t} else if (receiveData[0] == 11) {\r\n\t\t\tsemaphore.down();\r\n\t\t} else if (receiveData[0] == 12) {\r\n\t\t\tsemaphore.down();\r\n\t\t} else if (receiveData[0] == 13) {\r\n\t\t\tsemaphore.down();\r\n\t\t\tsemaphore.down();\r\n\t\t} else {\r\n\r\n\t\t\t// System.out.println(\"process Data (no sensor) \" +\r\n\t\t\t// Arrays.toString(receiveData));\r\n\t\t\t// logger.error(\"process Data (no sensor) \"\r\n\t\t\t// + Arrays.toString(receiveData));\r\n\t\t}\r\n\r\n\t}",
"public interface EventListener\n{\n\n /**\n * This method is called when data is received from the DMM.\n *\n * <p>\n * More specifically, the received packet must be valid, then decoded, then the Data Object is updated, *then* this method is called.\n */\n public void dataUpdateEvent();\n\n}",
"@Override\n public ForwardStatus forward(IPersistable data)\n throws StoreForwardException\n {\n // Received data from callback.\n if ( data.getData() == null ) return null;\n\n StringBuilder sb = new StringBuilder(2048); // Define a size if you have an idea of it.\n char[] read = new char[128]; // Your buffer size.\n\n try (InputStreamReader ir = new InputStreamReader(data.getData(), StandardCharsets.UTF_8))\n {\n for (int i; -1 != (i = ir.read(read)); sb.append(read, 0, i))\n {\n // do nothing\n }\n }\n catch (Throwable t) // NOSONAR\n {\n // ignore\n }\n\n _logger.info(\"Received to forward data with data: \" + sb.toString()); //$NON-NLS-1$\n\n // When signal recieved, send the ForwardStatus\n return ForwardStatus.SUCCESSFUL;\n // return ForwardStatus.FAILED;\n\n }",
"public void setMessage(Message message) {\n this.message = message;\n setChanged();\n notifyObservers(); // This calls the update() in Processor.java\n }",
"@Override\n\tpublic void DataAcquisitionObjectEvent(Interface.DataAcquisitionObjectEvent e,String data) {\n\t\t\n\t}",
"@Override\n public void onChange(boolean selfChange) {\n super.onChange(selfChange);\n int[] bytesAndStatus = getBytesAndStatus(tag_id);\n if (bytesAndStatus[0] == -1 || bytesAndStatus[1] == -1) {\n hdHandler.sendMessage(hdHandler.obtainMessage(0, 0,\n -1));\n } else {\n hdHandler.sendMessage(hdHandler.obtainMessage(0,\n bytesAndStatus[0], bytesAndStatus[1]));\n }\n }",
"public void process() {\n\t}",
"public void dataChanged() {\n\t\tif (wijzigInfo)\n\t\t\twijzigInfo();\n\n\t\tsetChanged();\n\t\tnotifyObservers(\"dataChanged\");\n\t}",
"protected O process(I data, IComponent from, long receivedTime) {\n super.process(data,from,receivedTime);\n counter.getAndIncrement();\n return (O)data;\n }",
"void setData(T data) {\n\t\tthis.data = data;\n\t}",
"private void processInput(Protocol protocol) throws IOException {\n\t\tlogger.debug(protocol);\n\t\tswitch (protocol) {\n\t\tcase TIME_POLL:\n\t\t\tsendStatus();\n\t\t\tbreak;\n\t\tcase DATA_POLL:\n\t\t\tprocessInputData();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tlogger.warn(\"Ignoring {}\", protocol.name());\n\t\t}\n\t}",
"@Override\n\tpublic void processMessage(Message message) {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void execute(Object data) {\n\n\t\t\t\t\tif (toInputProcessor == null) {\n\t\t\t\t\t\tGdx.input.setInputProcessor(preProcessor);\n\t\t\t\t\t\tSystem.out.println(\"quay tro ve man hinh chinh\");\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tSystem.out.println(\"quay tro ve man hinh khac\");\n\t\t\t\t\t}\n\t\t\t\t}",
"@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setPassivateTrgINT(false);\r\n }",
"protected abstract boolean processData(Object data);",
"@Override\n\tpublic void process() {\n\t\tInterface2.super.process();\n\t}",
"private ProcessedDynamicData( ) {\r\n super();\r\n }"
] | [
"0.6809941",
"0.6474689",
"0.62136805",
"0.6091016",
"0.6047112",
"0.5885274",
"0.58766145",
"0.5876428",
"0.5865627",
"0.5828087",
"0.5828087",
"0.5818901",
"0.5815294",
"0.58117944",
"0.57867306",
"0.5770855",
"0.5753778",
"0.5753778",
"0.5753778",
"0.5753778",
"0.5753778",
"0.5753778",
"0.57426757",
"0.57248384",
"0.5705288",
"0.57025445",
"0.5697125",
"0.5693443",
"0.5689912",
"0.5683154",
"0.56814724",
"0.565967",
"0.5645598",
"0.5636063",
"0.5619507",
"0.56148535",
"0.5598997",
"0.5597312",
"0.5586236",
"0.55740935",
"0.5554811",
"0.554888",
"0.55455506",
"0.5535766",
"0.5528855",
"0.5522478",
"0.5521885",
"0.55191404",
"0.5513609",
"0.54935706",
"0.5491811",
"0.5488383",
"0.5466799",
"0.54611105",
"0.5457834",
"0.54568005",
"0.544115",
"0.54390603",
"0.54361373",
"0.54294544",
"0.54244643",
"0.54225564",
"0.54209733",
"0.5420058",
"0.5417755",
"0.5415247",
"0.54143035",
"0.54129803",
"0.53994375",
"0.5396827",
"0.53966653",
"0.5387209",
"0.53852427",
"0.5379339",
"0.53792274",
"0.53726995",
"0.5370178",
"0.53650737",
"0.5362543",
"0.5361205",
"0.5357136",
"0.5347744",
"0.53451747",
"0.5341737",
"0.5325818",
"0.532521",
"0.5322775",
"0.5321036",
"0.53137046",
"0.5313533",
"0.5312678",
"0.5310429",
"0.5308319",
"0.5303645",
"0.5303181",
"0.5300729",
"0.5298606",
"0.5296255",
"0.5295602",
"0.5294891",
"0.5294518"
] | 0.0 | -1 |
Gracefully stops the process and closes the socket | public void close(){
log.debug("[SC] Close called", 5);
if(socket!=null){
log.debug("[SC] Closing socket", 4);
try {
Thread.sleep(10);
} catch (InterruptedException e) {
//Silly impatient thread
}
try {
out.close();
in.close();
socket.close();
} catch (IOException e) {
//we're going to close it anyway
}
socket = null;
run = false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void stop() {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tif (socket != null) {\n\t\t\t\tsocket.close();\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"Socket closed.\");\n\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-1);\n\t\n\t\t}\n\t}",
"@Override\n public void stop() {\n try {\n socket.close();\n } catch (IOException e) {\n getExceptionHandler().receivedException(e);\n }\n\n // Now close the executor service.\n\n }",
"public void stopServer() {\n\t\tthis.running=false;\t\t\t\t\t\t\t//the loop of the thread fails\n\t\ttry {\n\t\t\tthis.socket.close();\t\t\t\t\t//closes the socket\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(\"TCPServer : Socket non fermé\");\n\t\t}\n\t}",
"@Override\n public void stop() {\n try {\n serverSocket.close();\n }\n catch (IOException e) {\n getExceptionHandler().receivedException(e);\n }\n\n // Close all open connections.\n synchronized (listConnections) {\n for (TcpConnectionHandler tch : listConnections)\n tch.kill();\n listConnections.clear();\n }\n\n // Now close the executor service.\n executorService.shutdown();\n try {\n executorService.awaitTermination(3, TimeUnit.SECONDS);\n }\n catch (InterruptedException e) {\n getExceptionHandler().receivedException(e);\n }\n }",
"public void closeSocket () \n {\n try {\n // close the open server socket\n server.close();\n // send it a message to make it stop waiting immediately\n // (not really necessary)\n /*Socket s = new Socket(\"localhost\", thisPort);\n OutputStream os = s.getOutputStream();\n os.write((byte)0);\n os.close();\n s.close();*/\n } catch(Exception ex) { \n LOG.warn(\"Exception while shutting down \"+ this.getClass(), ex);\n }\n \n server = null;\n }",
"private void shutdown() {\n\t\ttry {\n\t\t\tsock.close();\n\t\t\tgame.handleExit(this);\n\t\t\tstopped = true;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}",
"public void stop() {\n\t\ttry {\n\t\t\tif (serverSocket != null)\n\t\t\t\tserverSocket.close();\n\t\t} catch (IOException ioe) {\n\t\t\t// shouldn't happen\n\t\t}\n\t}",
"@Override\r\n public synchronized void close()\r\n {\r\n if (!isRunning)\r\n {\r\n throw new IllegalStateException(\"already stopped!\");\r\n }\r\n threadPool.shutdownNow();\r\n socket.close();\r\n isRunning = false;\r\n }",
"public void close()\n {\n try\n {\n System.out.println(\"CLIENT chiude connessione\");\n receiverThread.interrupt();\n socket.close();\n System.exit(0);\n }\n catch (IOException e)\n {\n System.out.println(e.getMessage());\n System.exit(1);\n }\n }",
"public void closeSocket() { //gracefully close the socket connection\n\t\ttry {\n\t\t\tthis.os.close();\n\t\t\tthis.is.close();\n\t\t\tthis.clientSocket.close();\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"XX. \" + e.getStackTrace());\n\t\t}\n\t}",
"public void terminate() {\n\t\tif (socket == null)\n\t\t\tthrow new IllegalStateException();\n\t\ttry {\n\t\t\tsocket.close();\n\t\t} catch (IOException e) {}\n\t}",
"public void closeSocket() { //gracefully close the socket connection\r\n try {\r\n this.os.close();\r\n this.is.close();\r\n this.clientSocket.close();\r\n } \r\n catch (Exception e) {\r\n System.out.println(\"XX. \" + e.getStackTrace());\r\n }\r\n }",
"public void cancel() {\n try {\n mmServerSocket.close();\n } catch (IOException e) { }\n }",
"public void cancel() {\n try {\n mmServerSocket.close();\n } catch (IOException e) { }\n }",
"private void close() {\n\t\ttry {\n\t\t\tsendCommand(\"end\\n\");\n\t\t\tout.close();\n\t\t\tin.close();\n\t\t\tsocket.close();\n\t\t} catch (MossException e) {\n\t\t} catch (IOException e2) {\n\t\t} finally {\n\t\t\tcurrentStage = Stage.DISCONNECTED;\n\t\t}\n\n\t}",
"public void cancel() {\n try {\n mmServerSocket.close();\n } catch (IOException ignored) { }\n }",
"public synchronized void shutdown() {\n // mark this as no longer running\n active = false;\n\n // close the socket\n try {\n if (socketNode != null) {\n socketNode.close();\n socketNode = null;\n }\n } catch (Exception e) {\n getLogger().info(\"Excpetion closing socket\", e);\n // ignore for now\n }\n\n // stop the connector\n if (connector != null) {\n connector.interrupted = true;\n connector = null; // allow gc\n }\n if (advertiseViaMulticastDNS) {\n zeroConf.unadvertise();\n }\n }",
"public void cancel() {\n try {\n mmServerSocket.close();\n } catch (IOException e) { }\n }",
"public void cancel() {\n try {\n\n mServerSocket.close();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void cancel() {\r\n\t\t\ttry {\r\n\t\t\t\tmmServerSocket.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}",
"public void cancel() {\r\n\t\t\ttry {\r\n\t\t\t\tsocket.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t//pass\r\n\t\t\t}\r\n\t\t}",
"protected void stop() {\n keepGoing = false;\n try {\n new Socket(\"localhost\", port);\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n }",
"public void exit() {\r\n\t\tsendReceiveSocket.close();\r\n\t}",
"public void stopServer() throws IOException {\r\n b = false;\r\n serverSocket.close();\r\n }",
"public void stop() throws IOException {\n kv_out.println_debug(\"Try to stop the handler\");\n isRunning = false;\n serverSocket.close();\n }",
"public void shutDown()\n {\n stunStack.removeSocket(serverAddress);\n messageSequence.removeAllElements();\n localSocket.close();\n }",
"@Override\n public void close() throws IOException\n {\n debug(\"Dispose remote console server.\");\n // this method tries its best and as a least resort uses thread interruption\n synchronized(this) {\n try {\n // try to break server.accept in order to force queue reading on thread\n Socket socket = new Socket();\n socket.connect(new InetSocketAddress(port), 500);\n socket.close();\n }\n catch(IOException e) {\n error(e);\n }\n\n queue.clear();\n queue.offer(SHUTDOWN);\n\n try {\n wait(SHUTDOWN_TIMEOUT);\n }\n catch(InterruptedException unused) {\n thread.interrupt();\n }\n }\n }",
"protected void stop() {\n keepGoing = false;\n // connect to myself as Client to exit\n try {\n new Socket(\"localhost\", port);\n } catch(Exception e) {\n // exception handling\n }\n }",
"public void cancel() {\n try {\n mmServerSocket.close();\n mmServerSocket=null;\n } catch (IOException e) { }\n }",
"public void shutdown() {\n try {\n \t\n \tserverSocket.close();\n \t\n } catch (Exception e) {\n System.err.println(e.getMessage());\n e.printStackTrace();\n }\n }",
"public static synchronized void stop() {\n\n if (proc != null) {\n proc.destroy();\n try {\n // wait for the process to really stop\n proc.waitFor();\n } catch (InterruptedException e) {\n // ignore\n }\n try {\n // leeway since sometimes the unbind happens after\n Thread.sleep(500);\n } catch (InterruptedException e) {\n // ignore\n }\n proc = null;\n }\n }",
"public void cancel() {\r\n\t\t\ttry {\r\n\t\t\t\tsocket.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}",
"public void close()\n {\n \tSystem.out.println(\"close\");\n \tsend(\"<message> <disconnect/></message>\");\n \ttry {\n\t\t\tsocket.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n }",
"public void cancel() {\n try {\n mmServerSocket.close();\n } catch (IOException e) {\n Log.e(\"TEST\", \"Could not close the connect socket\", e);\n }\n\n }",
"public void close() throws IOException {\n if (!serverSocket.isClosed()) {\n log.info(\"Closing listener on {}\", serverSocket.getLocalSocketAddress());\n runningThread.interrupt();\n serverSocket.close();\n }\n }",
"public void cancel() {\r\n mStopped = true;\r\n try {\r\n mSocket.close();\r\n } catch (IOException ioe) {\r\n Log.e(Common.TAG, \"Error closing the socket: \" + ioe.getMessage());\r\n }\r\n }",
"protected final void disconnect() {\n\t\trunning = false;\n\t\ttry {\n\t\t\tif (out != null)\n\t\t\t\tout.close();\n\t\t\tif (in != null)\n\t\t\t\tin.close();\n\t\t\tsocket.close();\n\t\t} catch (IOException e) {e.printStackTrace();}\n\t}",
"public void close() {\n try {\n inputStream.close();\n } catch(IOException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - could not close the socket's input stream!\");\n e.printStackTrace();\n System.exit(1);\n }\n\n try {\n outputStream.close();\n } catch(IOException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - could not close the socket's output stream!\");\n e.printStackTrace();\n System.exit(1);\n }\n\n try {\n commSocket.close();\n } catch(IOException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - could not close the communication socket!\");\n e.printStackTrace();\n System.exit(1);\n }\n }",
"public void stop() throws IOException, InterruptedException\n\t{\n\t\t// Set the terminating signal. 11/25/2014, Bing Li\n\t\tTerminateSignal.SIGNAL().setTerminated();\n\t\t// Close the socket for the server. 08/10/2014, Bing Li\n\t\tthis.socket.close();\n\t\t\n\t\t// Stop all of the threads that listen to clients' connecting to the server. 08/10/2014, Bing Li\n\t\tfor (Runner<MyServerListener, MyServerListenerDisposer> runner : this.listenerRunnerList)\n\t\t{\n\t\t\trunner.stop();\n\t\t}\n\n\t\t// Shutdown the IO registry. 11/07/2014, Bing Li\n\t\tMyServerIORegistry.REGISTRY().dispose();\n\t\t\n\t\t// Shut down the client pool. 09/17/2014, Bing Li\n\t\tClientPool.SERVER().dispose();\n\t}",
"public void cancel() {\r\n try {\r\n blueSocket.close();\r\n } catch (IOException e) { }\r\n }",
"private void closeCtrlSocket() {\n ctrlThreadTask = ThreadTasks.CLOSE;\n }",
"public void close() {\n socket.close();\n game.close();\n this.running = false;\n }",
"@Override\r\n\tpublic void close() {\r\n\t\tthis.socket.close();\r\n\t}",
"public void closeUDPServer()\n\t{\n\t\t//System.out.println(\"******Closing UDP socket*******\");\n\t\tdataSocket.close();\n\t\tUDPRunning = false;\n\t}",
"public void close() {\n try {\n closeConnection(socket);\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }",
"public void close() {\n\t\tmainSocket.close();\n\t}",
"public void stop() {\n\t\tgetLogger().debug(\"Waiting 5 seconds for EVCC to process response and close TCP/TLS connection ...\");\n\t\ttry {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\t\t\n\t\tif (!isStopAlreadyInitiated()) {\n\t\t\tgetLogger().debug(\"Closing connection to client ...\");\n\t\t\tsetStopAlreadyInitiated(true);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tgetInStream().close();\n\t\t\t\tgetOutStream().close();\n\t\t\t\t\n\t\t\t\tif (getTcpClientSocket() != null) {\n\t\t\t\t\tgetTcpClientSocket().close();\n\t\t\t\t} else if (getTlsClientSocket() != null) {\n\t\t\t\t\tgetTlsClientSocket().close();\n\t\t\t\t} else {\n\t\t\t\t\tgetLogger().error(\"Neither TCP nor TLS client socket could be closed\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\tgetLogger().debug(\"Connection to client closed\");\n\t\t\t} catch (IOException e) {\n\t\t\t\tgetLogger().error(\"Error occurred while trying to close socket to client\", e);\n\t\t\t} \n\t\t}\n\t}",
"@Override\n public void close() throws IOException {\n opened = false;\n if (socket != null) {\n Utils.closeSilent(dis);\n Utils.closeSilent(dos);\n socket.close();\n }\n }",
"public void close() {\n myProcess.destroy();\n }",
"public void cancel() {\n try {\n mSocket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public int closeSocket() \n\t{\n\t\t\n\t}",
"public synchronized void close() {\n\n String userInput ;\n String fromServer ;\n try {\n userInput = \"QUIT\";\n out.println(\"Client: \" + userInput);\n output.println(userInput); // send QUIT command\n fromServer = input.readLine();\n //out.println(\"Server: \" + fromServer);\n\n if (fromServer.substring(0, 3).equals(\"221\")){ // 221: connection is closed successfully\n socket.close();\n System.exit(0);\n }\n } catch (IOException e) {\n // ignore any exception\n }\n }",
"public void cancel() {\n try {\n mmSocket.close();\n } catch (IOException e) {\n\n }\n }",
"public void Stop(){\r\n\t\trunning = false;\r\n\t\thelp.print(\"Closing server, waiting for workers to complete\");\r\n\t}",
"public void cancel() {\n try {\n bluetoothServerSocket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static void stopAppiumServer() throws IOException {\n\tif (process != null) {\n\tprocess.destroy();\n\n\t}\n\n\tSystem.out.println(\"Appium server stopped\");\n\n\t}",
"public void closeSocket() {\n\t\t\ttry {\n\t\t\t\tsocket.close();\n\t\t\t} catch (java.io.IOException e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}",
"public void cancel() {\n try {\n mmServerSocket.close();\n } catch (IOException e) {\n Log.e(TAG, \"Could not close the connect socket\", e);\n }\n }",
"public void closeServerStream(Process p) throws Exception {\n scadmin.closeServerStream(p);\n }",
"public void stopClient() {\r\n\r\n // send message that we are closing the connection\r\n mRun = false;\r\n\r\n if (mBufferOut != null) {\r\n mBufferOut.flush();\r\n mBufferOut.close();\r\n }\r\n\r\n try {\r\n if (mBufferIn != null) {\r\n mBufferIn.close();\r\n }\r\n }\r\n catch (IOException e) {\r\n Log.d(TAG, \"error closing input buffer: \" + e.getMessage());\r\n }\r\n\r\n try {\r\n if (socket != null) {\r\n socket.close();\r\n Log.i(TAG, \"Socket closed in stopClient\");\r\n }\r\n }\r\n catch (IOException e) {\r\n Log.e(TAG, \"error closing socket: \" + e.getMessage());\r\n }\r\n\r\n mMessageListener = null;\r\n mBufferIn = null;\r\n mBufferOut = null;\r\n mServerMessage = null;\r\n }",
"private void closeConnection() {\r\n try {\r\n socket.close();\r\n } catch (IOException ex) {\r\n // Ex on close\r\n }\r\n }",
"public void cancel() {\n\t\t\ttry {\n\t\t\t\tmmSocket.close();\n\t\t\t} catch (IOException e) { }\n\t\t}",
"public void cancel() {\n\t\t\ttry {\n\t\t\t\tmmSocket.close();\n\t\t\t} catch (IOException e) { }\n\t\t}",
"public synchronized void stop() {\r\n\t\t//TODO read why stop is deprecated http://docs.oracle.com/javase/1.5.0/docs/guide/misc/threadPrimitiveDeprecation.html\r\n\t\tif (udplistener != null) {\r\n\t\t\tudplistener.datagramSocket.close();\r\n\t\t\tudpthread.stop();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tif (tcplistener != null) {\r\n\t\t\t\ttcplistener.serverSocket.close();\r\n\t\t\t\ttcpthread.stop();\r\n\t\t\t}\r\n\t\t} catch (IOException e) {e.printStackTrace();}\t\t\r\n\t}",
"public void cancel() {\n try {\n mmSocket.close();\n } catch (IOException e) { }\n }",
"public void cancel() {\n try {\n mmSocket.close();\n } catch (IOException e) { }\n }",
"public void cancel() {\n try {\n mmSocket.close();\n } catch (IOException e) { }\n }",
"public void kill() {\n this.server.stop();\n }",
"private void shutdown()\n\t\t{\n\t\tif (myChannelGroup != null)\n\t\t\t{\n\t\t\tmyChannelGroup.close();\n\t\t\t}\n\t\tif (myHttpServer != null)\n\t\t\t{\n\t\t\ttry { myHttpServer.close(); } catch (IOException exc) {}\n\t\t\t}\n\t\tmyLog.log (\"Stopped\");\n\t\t}",
"public void closeServer()\n\t{\n\t\t//System.out.println(\"*********Beginning Close Operations*********\");\n\n\t\ttry {\n\t\t\t//System.out.println(\"***********Closing client socket*************\");\n\t\t\tthis.closeClientConnection();\n\t\t\tstringFile.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\tisRunning = false;\n\t\t//System.out.println(\"Ending server....\");\n\t}",
"public void Stop() throws IOException {\n DisposeServer();\n }",
"public void stopConnection() throws IOException {\n in.close();\n out.close();\n clientSocket.close();\n }",
"@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\ttry {\n\t\t\tif(socket!=null)\n\t\t\tsocket.close();\n\t\t}\n\t\tcatch(IOException e){\n\t\t\tLog.d(\"IOException\", \"Exception closing socket\");\n\t\t}\n\t}",
"public void stop() {\n tcpServer.stopServer();\n ThreadExecutor.shutdownClient(this.getClass().getName());\n }",
"public void close()\n {\n try\n {\n stop();\n }\n catch (IOException ioex)\n {\n logger.error(\"Failed to stop \" + getClass().getSimpleName(), ioex);\n }\n }",
"public void stop() {\n\t\tif (this.isRunning() && !this.isManagedExternally) {\n\t\t\ttry {\n\t\t\t\tHTTP.release(this.http.get(this.shutdown));\n\t\t\t} catch (IOException exception) {\n\t\t\t\tthis.processRunner.abort();\n\t\t\t}\n\n\t\t\tthis.isManagedExternally = null;\n\t\t}\n\t}",
"public void close() {\n try {\n socket.close();\n } catch (IOException e) {\n renderablePublisher.submit(new ServerOfflineUpdate());\n }\n }",
"protected void handleKillThread() {\n \t\ttry {\n \t\t\tif (server != null)\tserver.close();\n \t\t\tif (client != null) client.close();\n \t\t} catch (IOException e) {\n \t\t\thandleError(e.getMessage());\n \t\t}\n \t}",
"public void halt() {\n closeSocket(sock1);\n closeSocket(sock2);\n }",
"public void stop() {\n\t\tthis.close(this.btcomm);\n\t}",
"public void forceShutdown() {\r\n\t\tsynchronized (this) {\r\n\t\t\tif (!isRunning()) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (mExitCommand != null) {\r\n\t\t\t\tfinal OutputStream std = mProcess.getOutputStream();\r\n\t\t\t\tfinal OutputStreamWriter stdWriter = new OutputStreamWriter(std, Charset.defaultCharset());\r\n\t\t\t\ttry {\r\n\t\t\t\t\tstdWriter.write(mExitCommand);\r\n\t\t\t\t\tstdWriter.close();\r\n\t\t\t\t} catch (final IOException e) {\r\n\t\t\t\t\tmLogger.error(getLogStringPrefix() + \" Exception during sending of exit command \" + mExitCommand\r\n\t\t\t\t\t\t\t+ \": \" + e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\tmLogger.debug(getLogStringPrefix() + \" About to join with the monitor thread... \");\r\n\t\t\t\t\tmMonitor.join(WAIT_FOR_EXIT_COMMAND_MILLIS);\r\n\t\t\t\t\tmLogger.debug(getLogStringPrefix() + \" Successfully joined\");\r\n\r\n\t\t\t\t} catch (final InterruptedException e) {\r\n\t\t\t\t\t// not necessary to do anything here\r\n\t\t\t\t\tmLogger.debug(getLogStringPrefix() + \" Interrupted during join\");\r\n\t\t\t\t}\r\n\t\t\t\tif (!isRunning()) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmLogger.warn(getLogStringPrefix() + \" Forcibly destroying the process\");\r\n\t\t\tfinal List<InputStream> tobeclosed = new ArrayList<>(5);\r\n\t\t\ttry {\r\n\t\t\t\t// mProcess.destroyForcibly();\r\n\t\t\t\t// mStorage.removeStorable(getKey(mID, mCommand));\r\n\t\t\t\t// mProcess.getErrorStream().close();\r\n\t\t\t\t// mProcess.getInputStream().close();\r\n\t\t\t\t// mProcess.getOutputStream().flush();\r\n\t\t\t\t// mProcess.getOutputStream().close();\r\n\t\t\t\t// mProcess = null;\r\n\t\t\t\ttobeclosed.add(mProcess.getInputStream());\r\n\t\t\t\ttobeclosed.add(mProcess.getErrorStream());\r\n\t\t\t\ttobeclosed.add(mStdInStreamPipe);\r\n\t\t\t\ttobeclosed.add(mStdErrStreamPipe);\r\n\t\t\t\tkillProcess();\r\n\t\t\t} catch (final NullPointerException ex) {\r\n\t\t\t\tif (mLogger.isWarnEnabled()) {\r\n\t\t\t\t\tmLogger.warn(\r\n\t\t\t\t\t\t\tgetLogStringPrefix() + \" Rare case: The thread was killed right after we checked if it \"\r\n\t\t\t\t\t\t\t\t\t+ \"was killed and before we wanted to kill it manually\");\r\n\t\t\t\t}\r\n\t\t\t} catch (final Throwable t) {\r\n\t\t\t\tmLogger.fatal(String.format(getLogStringPrefix() + \" Something unexpected happened: %s%n%s\", t,\r\n\t\t\t\t\t\tCoreUtil.getStackTrace(t)));\r\n\t\t\t}\r\n\r\n\t\t\tfor (final InputStream stream : tobeclosed) {\r\n\t\t\t\tclose(stream);\r\n\t\t\t}\r\n\r\n\t\t\tmProcessCompleted = true;\r\n\t\t\tmLogger.debug(getLogStringPrefix() + \" Forcibly destroyed the process\");\r\n\t\t}\r\n\t}",
"public void shutDown() throws IOException {\n this.clientSocket.shutdownInput();\n this.clientSocket.shutdownOutput();\n this.clientSocket.close();\n }",
"public void stop() {\n \n // first interrupt the server engine thread\n if (m_runner != null) {\n m_runner.interrupt();\n }\n\n // close server socket\n if (m_serverSocket != null) {\n try {\n m_serverSocket.close();\n }\n catch(IOException ex){\n }\n m_serverSocket = null;\n } \n \n // release server resources\n if (m_ftpConfig != null) {\n m_ftpConfig.dispose();\n m_ftpConfig = null;\n }\n\n // wait for the runner thread to terminate\n if( (m_runner != null) && m_runner.isAlive() ) {\n try {\n m_runner.join();\n }\n catch(InterruptedException ex) {\n }\n m_runner = null;\n }\n }",
"public void cancel() {\n try {\n mmServerSocket.close();\n } catch (IOException e) {\n showToast(\"Could not close the server socket.\");\n }\n }",
"@SuppressWarnings(\"unused\")\n\t\t\tpublic void cancel() {\n\t try {\n\t mmSocket.close();\n\t } catch (IOException e) { }\n\t }",
"public void close() {\n\t\ttry {\n\t\t\tthis.stop();\n\t\t} catch (Exception e) {\n\t\t\tLOG.warn(\"Error closing Avro RPC server.\", e);\n\t\t}\n\t}",
"@Override\r\n public void close() {\r\n sock.close();\r\n }",
"public void cancel() {\n stopThread = true;\n\t\ttry {\n\t\t\tmmSocket.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void stopThread() {\n\t\talive = false;\n\t\t\n\t\ttry {\n\t\t\tif(oos != null) {\n\t\t\t\toos.close();\n\t\t\t}\n\t\t\tif(ois != null) {\n\t\t\t\tois.close();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t// Why the hell is that being thrown here? Doesn't matter.\n\t\t}\n\t}",
"public void stop() {\n log.info(\"Stopped\");\n execFactory.shutdown();\n cg.close();\n }",
"public synchronized void disconnect()\r\n\t\t{\r\n\t\tif (state == RUNNING)\r\n\t\t stop();\r\n\t\tif (state == CLOSING_DOWN)\r\n\t\t {\r\n // Close the server socket\t\t \r\n try {\r\n \t\tserverSocket.close();\r\n \t}\r\n catch (IOException e)\r\n {\r\n }\r\n \r\n \t\t// flag the server as stopped\r\n \t\tstate = STOPPED;\r\n\t\t }\r\n\t\t}",
"@Override\n public void close() throws Exception {\n Future<Boolean> stopped = gracefulStop(mgr, Duration.create(5, TimeUnit.SECONDS));\n Await.result(stopped, Duration.create(5, TimeUnit.SECONDS));\n\n system.terminate();\n Await.result(system.whenTerminated(), Duration.create(5, TimeUnit.SECONDS));\n }",
"public void close() throws IOException {\n /*\n * Set m_iport to 0, in order to quit out of the while loop\n * in the receiver thread.\n */\n\tint save_iport = m_iport;\n\n\tm_iport = 0;\n\n synchronized (closeLock) {\n if (open) {\n /*\n * Reset open flag early to prevent receive0 executed by\n * concurrent thread to operate on partially closed\n * connection\n */\n open = false;\n\n close0(save_iport, connHandle, 1);\n\n setMessageListener(null);\n\n /*\n * Reset handle and other params to default\n * values. Multiple calls to close() are allowed\n * by the spec and the resetting would prevent any\n * strange behaviour.\n */\n connHandle = 0;\n host = null;\n m_mode = 0;\n\n /*\n * Remove this connection from the list of open\n * connections.\n */\n int len = openconnections.size();\n for (int i = 0; i < len; i++) {\n if (openconnections.elementAt(i) == this) {\n openconnections.removeElementAt(i);\n break;\n }\n }\n\n open_count--;\n }\n }\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tsocket.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"@Deactivate\n public void deactivate()\n {\n try\n {\n m_ServerSocket.close();\n }\n catch (final Exception e)\n {\n m_Logging.error(e, \"Unable to close server socket\");\n }\n \n try\n {\n m_ServerSocketThread.join(THREAD_JOIN_TIMEOUT);\n }\n catch (final InterruptedException e)\n { \n m_Logging.info(\"Server socket interrupted while joining thread\");\n }\n }",
"public static void TerminateServer() {\n System.out.println(\"Killing server...\");\n ProcessBuilder builder = new ProcessBuilder();\n builder.command(\"bash\", \"-c\", \"sudo shutdown -h now\");\n\n try {\n // Start the process and get the output\n Process process = builder.start();\n StringBuilder output = new StringBuilder();\n BufferedReader reader = new BufferedReader(\n new InputStreamReader(process.getInputStream()));\n\n // Read the output line by line\n String line;\n while ((line = reader.readLine()) != null) {\n output.append(line + \"\\n\");\n }\n\n // Wait for the process to end, respond accordingly\n int exitVal = process.waitFor();\n if (exitVal == 0) {\n System.out.println(\"Success!\");\n System.out.println(output);\n System.exit(0);\n }\n else {\n System.out.println(\"Failed to kill server\");\n }\n }\n catch (IOException | InterruptedException e) {\n System.out.println(\"Failed to kill server\");\n }\n }",
"public final void exit() {\n if (this.serverSocket instanceof ServerSocket) {\n try {\n this.serverSocket.close();\n } catch (IOException ex) {\n Logger.getLogger(ServerThread.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }",
"public void close() {\r\n\t\tif (socket != null)\r\n\t\t\tsocket.close();\r\n\t}",
"public void close() {\n // close socket\n if (socket != null) {\n try {\n socket.close();\n } catch (IOException e) {\n // ignore\n }\n }\n\n socket = null;\n in = null;\n out = null;\n\n // try to stop dispather\n if (dispatcher != null) {\n dispatcher.setStopped(true);\n dispatcher.interrupt();\n }\n\n // notify all blocked thread\n if (requests != null) {\n for (Element element : requests.values()) {\n if (element.lock != null) {\n synchronized (element.lock) {\n element.lock.notify();\n }\n } else {\n // TODO notify persistent search listeners\n }\n }\n requests.clear();\n requests = null;\n }\n\n }",
"public static void closeServerSocket(){\r\n\r\n try{\r\n serverObjectInputStream.close();\r\n //serverInputStream.close();\r\n serverObjectOutputStream.close();\r\n //serverOutputStream.close();\r\n socket.close();\r\n }catch (IOException ioe){\r\n ioe.printStackTrace();\r\n //TODO - log error with good error code and stuff\r\n }\r\n }"
] | [
"0.7650044",
"0.7508449",
"0.7244",
"0.7224196",
"0.7219077",
"0.7127206",
"0.69937664",
"0.6983365",
"0.69650227",
"0.6919839",
"0.690271",
"0.6893677",
"0.68807614",
"0.68807614",
"0.68739414",
"0.6869295",
"0.68464077",
"0.6821566",
"0.68078107",
"0.6796563",
"0.6789389",
"0.6784844",
"0.6767297",
"0.67638123",
"0.6734355",
"0.6720084",
"0.67161155",
"0.671312",
"0.67033845",
"0.66959333",
"0.66766804",
"0.66719687",
"0.6668607",
"0.66656125",
"0.6652459",
"0.6639317",
"0.6622208",
"0.6603856",
"0.6593642",
"0.65841144",
"0.6568701",
"0.6558264",
"0.6553749",
"0.6533325",
"0.6530477",
"0.65273696",
"0.652666",
"0.6524603",
"0.651998",
"0.65097284",
"0.6506206",
"0.64930695",
"0.6480982",
"0.6477391",
"0.6476617",
"0.6467283",
"0.64612585",
"0.6456525",
"0.645436",
"0.6454249",
"0.64517576",
"0.6446145",
"0.6446145",
"0.6441251",
"0.64404577",
"0.64404577",
"0.64404577",
"0.6437598",
"0.64367974",
"0.64343363",
"0.64329994",
"0.64301467",
"0.6427171",
"0.64242476",
"0.6419244",
"0.6400439",
"0.6399537",
"0.6397965",
"0.63953775",
"0.6378738",
"0.637607",
"0.63667196",
"0.6358933",
"0.6357347",
"0.63543445",
"0.6351985",
"0.6342217",
"0.63383627",
"0.63132423",
"0.6298156",
"0.6297632",
"0.6294512",
"0.62905943",
"0.6289709",
"0.6286612",
"0.6280954",
"0.627757",
"0.6268826",
"0.6265777",
"0.62597615"
] | 0.71186864 | 6 |
Writes a string to the encrypted socket This will not send data unless encryption was established | public synchronized void write(String data){
log.debug("[SC] Writing "+data, 4);
writeBuffer.add(data.getBytes());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized void writeNow(String data){\n\t\tlog.debug(\"[SC] Writing now unencrypted - \"+data, 4);\n\t\tif(out!=null){\n\t\t\ttry {\n\t\t\t\tif(!data.endsWith(\"\\n\")){\n\t\t\t\t\tdata = data + \"\\n\";\n\t\t\t\t}\n\t\t\t\tout.write(data.getBytes());\n\t\t\t\tout.flush();\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.error(\"[SC] Could not write to socket\");\n\t\t\t}\t\n\t\t}else{\n\t\t\tlog.error(\"[SC] Could not write to socket\");\n\t\t}\n\t}",
"public void sendStringOverNetwork(@NonNull String str, boolean encrypt) {\n str = str + '\\0';\n try {\n if (encrypt)\n sendDataEncrypted(str.getBytes(\"UTF-8\"));\n else\n sendDataUnencrypted(str.getBytes(\"UTF-8\"));\n } catch (UnsupportedEncodingException ex) {}\n }",
"protected int writeEncrypted()\n throws IOException\n {\n int cb = f_delegate.write(f_buffEncOut);\n\n if (!f_buffEncOut.hasRemaining())\n {\n endProtocol();\n }\n return cb;\n }",
"public int encrypt(int clock){\n clock = clock * 10;\n try {\n os_obj = socket_obj.getOutputStream();\n osw_obj = new OutputStreamWriter(os_obj);\n bw_obj = new BufferedWriter(osw_obj);\n\n int message = clock;\n bw_obj.write(message);\n bw_obj.flush();\n\n }\n\n catch(Exception e)\n {\n e.printStackTrace();\n }\n\n\n return 0;\n }",
"void encrypt(ChannelBuffer buffer, Channel c);",
"public void sendMessage(String message) {\n\n\t\tif (mOut != null && !mOut.checkError()) {\n\n\t\t\t// If encryption connection has been made\n\n\t\t\tif (diffieHellmanModule.isConnected()) {\n\t\t\t\tmessage = diffieHellmanModule.encryptString(message);\n\t\t\t}\n\n\t\t\tmOut.println(message);\n\t\t\tmOut.flush();\n\t\t}\n\t}",
"public void sendPacket(String data) throws IOException {\n\n BufferedWriter out = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));\n out.write(data + \"\\0\");\n out.flush();\n }",
"public void send(final String data) throws IOException {\r\n\t\t//Writes the packet as a byte buffer, using the data from the packet and converting in to bytes\r\n\t\t//Adds an end-of-packet footer to the data\r\n\t\tif(channel.isConnected()) {\r\n\t\t\tchannel.write(ByteBuffer.wrap((data + \"%EOP%\").getBytes()));\r\n\t\t}\r\n\t}",
"private void write(String msg) throws IOException {\n if (connectedSwitch) {\n outStream.writeBytes(msg + \";\");\n outStream.flush();\n } else {\n Log.e(TAG, \"Socket disconnected\");\n }\n }",
"public boolean write(String data) throws IOException\n\t{\n\t\treturn this.write(this.socket, data);\n\t}",
"public void encodeAndSend(String msg)\n\t{\n\t\tif (isClosed())\n\t\t\treturn;\n\t\ttry\n\t\t{\n\t\t\tCharset charset = Charset.forName(\"ISO-8859-1\");\n\t\t\tCharsetEncoder encoder = charset.newEncoder();\n\t\t\tByteBuffer bbuf = encoder.encode(CharBuffer.wrap(msg));\n\t\t\toutToClient.write(bbuf.array());\n\t\t\toutToClient.flush();\n\t\t\tlastOutput = 0;\n\t\t\t\n\t\t\t// Copy output to anyone snooping this connection.\n\t\t\tfor (UserCon c : conns)\n\t\t\t\tif (c.snoop == this)\n\t\t\t\t\tc.encodeAndSend(\"} \"+msg);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tif (!e.getMessage().equals(\"Broken pipe\"))\n\t\t\t{\n\t\t\t\tsysLog(\"bugs\", \"Error in encodeAndSend: \"+e.getMessage());\n\t\t\t\tlogException(e);\n\t\t\t}\n\t\t\telse\n\t\t\t\tcloseSocket();\n\t\t}\n\t}",
"public abstract String encryptMsg(String msg);",
"private boolean writeToServer(@NotNull String text) {\n try {\n outToServer.writeUTF(text);\n return true;\n\n } catch (IOException e) {\n System.out.println(\"IOExeption \" + e);\n }\n return false;\n }",
"private void write(String s) {\n\n try {\n // Add the delimiter\n s += DELIMITER;\n\n // Convert to bytes and write\n outStream.write(s.getBytes());\n Log.i(TAG, \"[SENT] \" + s);\n\n } catch (Exception e) {\n Log.e(TAG, \"Write failed!\", e);\n }\n }",
"protected void sendToServer(String string) {\r\n System.out.println(\"Sending to server: \" + string);\r\n toServer.println(string);\r\n toServer.flush();\r\n }",
"String encryptString(String toEncrypt) throws NoUserSelectedException;",
"public void encrypt(String s)\n\t{\n\t\tconvertToNum(s);\n\t\tfor(int i = 0; i < myMessage.length; i++)\n\t\t{\n\t\t\tmyView.setEncryptText((myMessage[i].modPow(E, publicKey)).toString() + \" \");\n\t\t}\n\t}",
"private void send(String p)\t{\t\t\t\r\n\t\ttry{\r\n\t\t\tif(isThisMyTurn){\r\n\t\t\t\toOutStream.writeObject(p);\r\n\t\t\t\toOutStream.flush();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(SocketException e){\r\n\t\t\tif(isThisMyTurn){\r\n\t\t\t\tisThisMyTurn = false;\r\n\t\t\t\tturnOffStream();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e) { \r\n\t\t\tif(isThisMyTurn){\r\n\t\t\t\tisThisMyTurn = false;\r\n\t\t\t\tturnOffStream();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void send(String str) {\r\n\t\tif (s != null) {\r\n\t\t\ttry {\r\n\t\t\t\tdos.writeByte(LiteServer.STRING_CONST);\r\n\t\t\t\tdos.writeUTF(str);\r\n\t\t\t\tif (autoFlush) {\r\n\t\t\t\t\tdos.flush();\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\t// if the socket is null\r\n\t\t}\r\n\r\n\t}",
"Encryption encryption();",
"@Override\n public String encryptMsg(String msg) {\n if (msg.length() == 0) {\n return msg;\n } else {\n char[] encMsg = new char[msg.length()];\n for (int ind = 0; ind < msg.length(); ++ind) {\n char letter = msg.charAt(ind);\n encMsg[ind] = (char) ((letter + key) % 65536);\n }\n return new String(encMsg);\n }\n }",
"void writeBytes(String s) throws IOException;",
"@Override\n public void send(String key, String data) throws IOException {\n\n }",
"private void writeData(String data) {\n try {\n outStream = btSocket.getOutputStream();\n } catch (IOException e) {\n }\n\n String message = data;\n byte[] msgBuffer = message.getBytes();\n\n try {\n outStream.write(msgBuffer);\n } catch (IOException e) {\n }\n }",
"public static String encrypt(String data){\n\t\tif (data.equals(\"\") || data.equals(\"null\"))\n\t\t\treturn data;\n\t\ttry{\n\t\t\tjavax.crypto.Cipher cipher = javax.crypto.Cipher.getInstance(CIPHER);\n\t\t\tcipher.init(javax.crypto.Cipher.ENCRYPT_MODE, new SecretKeySpec(ENCRYPTION_KEY.getBytes(Charset.forName(\"UTF-8\")), \"AES\"), new IvParameterSpec(new byte[16]));\n\t\t\tbyte[] encryptedBytes = cipher.doFinal(data.getBytes(Charset.forName(\"UTF-8\")));\n\t\t\treturn ENCRYPTION_PREFIX + new String(Base64.encodeBase64(encryptedBytes), Charset.forName(\"UTF-8\"));\n\t\t}catch (Exception e) {\n\t\t\tSystem.err.println( \"Error in EncryptionUtil.encrypt: \" + e );\n\t\t\treturn data;\n\t\t}\n\t}",
"public void write(String string) throws IOException{\r\n if(closed){\r\n throw new IOException(\"The stream is not open.\");\r\n }\r\n getBuffer().append(string);\r\n }",
"public void writeString(String message);",
"public void writeString(String s) throws Exception {\r\n\tout.write(s.getBytes());\r\n}",
"public String encrypt(String plainText);",
"public void sendMsg(OutputStream os, String s) throws IOException {\r\n\t byte[] bytes = s.getBytes();\r\n\t os.write(bytes);\r\n\t os.flush();\r\n\t }",
"byte[] encrypt(String plaintext);",
"public synchronized boolean write_to_sock(StringBuilder msg){\n\t\t/**\n\t\t * TRY SEND TO SERVER\n\t\t */\n\t\ttry {\n\t\t\tout.print(msg.toString());\n\t\t\tmysock.getOutputStream().flush();\n\t\t\tout.flush();\n\t\t\tSystem.out.println(TAG +\": Tuple injected.\");\n\t\t} catch (IOException ioException) {\n\t\t\tSystem.out.println(TAG + \": I could not connect\");\n\t\t\tsrvDisconnect();\n\t\t\treturn false;\n\t\t} catch (NullPointerException e) {\n\t\t\tSystem.out.println(TAG + \": Null Pointer Exception\");\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"String encrypt(String input) throws IllegalArgumentException, EncryptionException;",
"public void sendString(String s) throws IOException{\n\t\tbyte[] b = s.getBytes();\n\t\tDatagramPacket packet = new DatagramPacket(b, b.length, mIP, port);\n\t\tmSocket.send(packet);\n\t}",
"public void send_message(){\n logical_clock++;\n System.out.println(\"Send Message Clock:\" +logical_clock);\n encrypt(logical_clock);\n\n }",
"public String encrypt(final PrivateKeyInterface key, final String data)\n {\n return this.encryptionCipher().encrypt(key, data);\n }",
"public boolean send(String data, boolean isbase64){\n\t\t\ttry\n\t\t\t{\n\t\t\t\t\n\t\t\t\t//Write to socket base64 encoded with a newline on end\n\t\t\t\tif (isbase64){\n\t\t\t\t\t//output.write(Base64.encode(arr, Base64.DEFAULT), 0, arr.length);\n\t\t\t\t\toutput.write(new String(Base64.encode(data.getBytes(), Base64.DEFAULT))+\"\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t//Or not\n\t\t\t\t\toutput.write(data, 0, data.length());\n\t\t\t\t}\n\t\t\t\t//output.flush();\t\t\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tLog.i(_TAG, \"EXCEPTION SEEND\");\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"public void send(String message) throws IOException {\r\n OutputStream stream = socket.getOutputStream();\r\n PrintWriter writer = new PrintWriter(stream);\r\n writer.println(message);\r\n writer.flush();\r\n }",
"public synchronized void encryptText() {\n setSalt(ContentCrypto.generateSalt());\n try {\n mText = ContentCrypto.encrypt(mText, getSalt(), Passphrase.INSTANCE.getPassPhrase().toCharArray());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"public void write (String s) {\n pw.print(s);\n }",
"public void writeString(String s){ \r\n message = \"String written\";\r\n byte[] pLen = new byte[1];\r\n byte[] pTAG = new byte[1];\r\n byte[] pSN = new byte[10];\r\n byte[] pNumTagFound = new byte[1];\r\n short tag = cardReader.select(handle,pTAG, pLen, pSN);\r\n if (tag < 0 ){\r\n message = \"No card found\";\r\n System.err.println(message);\r\n }\r\n if (!login())\r\n return;\r\n s = s + \" \"; // padding in case len < 16\r\n byte[] b = s.getBytes();\r\n byte[] b16 = new byte[16];\r\n for (int i=0;i<16;i++) \r\n b16[i] = b[i];\r\n int result = cardReader.write(handle,blocknr,b16);\r\n if (result < 0) {\r\n message = \"write block failed\";\r\n }\r\n System.err.println(message); \r\n }",
"public boolean sendData(String data) throws IOException;",
"public void writedata(byte b) throws Exception{\n ByteBuffer byteBuffer = ByteBuffer.wrap(\"hello\".getBytes(\"UTF-8\"));\n// byteBuffer.flip();\n client.write(byteBuffer);\n byteBuffer.clear();\n client.close();\n\n }",
"public void writeToClient(String outMessage) throws IOException {\n /* Sende den String als Antwortzeile (mit CRLF) zum Client */\n final String out = outMessage + '\\r' + '\\n';\n outToClient.writeBytes(out);\n System.out.println(out);\n }",
"public void send(String text) {\r\n try {\r\n outputStream.write((text + CRLF).getBytes());\r\n outputStream.flush();\r\n } catch (IOException ex) {\r\n notifyObservers(ex);\r\n }\r\n }",
"public String encrypt(String geheimtext);",
"public boolean writeString( String str ) {\n log_d( \"writeString() \" + str );\n // Check that there's actually something to send\n if ( str.length() == 0 ) return false;\n\t\t// Get the message bytes and tell the BluetoothChatService to write\n\t\treturn writeBytes( str.getBytes() );\n }",
"public String encrypt(String text) {\n return content.encrypt(text);\n }",
"protected void sendString(String pass2) {\n\t\t\n\t\ttry {\n\t\t\tdos.writeInt(pass2.length());\n\t\t\tdos.write(pass2.getBytes());\n\t\t\tout.flush();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public void sendToServer(String msg) throws IOException {\n if (clientSocket == null || output == null) {\n throw new SocketException(\"socket does not exist\");\n }\n\n // messageQueue.offer(msg);\n // sendFromMessageQueue();\n \n // 發送中文\n byte[] bytes = msg.getBytes(\"big5\");\n int[] ints = new int[bytes.length];\n for (int i = 0, l = bytes.length; i < l; i++) {\n ints[i] = bytes[i] & 0xff;\n output.write(ints[i]);\n }\n output.writeBytes(\"\\n\");\n }",
"public void sendString(String string) throws RemoteException, IOException, InterruptedException;",
"public void send(String text) {\n try {\n outputStream.write((text + CRLF).getBytes());\n outputStream.flush();\n } catch (IOException ex) {\n notifyObservers(ex);\n }\n }",
"protected void setEncrypted() {\n content = this.aesKey.encrypt(this.content);\n }",
"public void send(String str){\n\t\tif(out != null){\n\t\t\tout.println(str);\n\t\t}\n\t}",
"private void sendPacket(InetAddress address, byte[] data) {\n try {\n send.setAddress(address);\n send.setData(Encryption.encrypt(data));\n socket.send(send);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void sendData(String data) {\n\t\tIoBuffer buf = IoBuffer.allocate(data.getBytes().length + 10);\n\t\tbuf.put(data.getBytes());\n\t\tbuf.put((byte)0x00);\n\t\tbuf.flip();\n\t\tsendData(buf);\n\t}",
"public String encrypt(final PublicKeyInterface key, final String data)\n {\n return this.encryptionCipher().encrypt(key, data);\n }",
"public boolean writeString(String string) {\n try {\n m_DataOutputStream.writeBytes(string);\n }\n catch (IOException e) {\n return false;\n }\n return true;\n }",
"private static void encodeString(String in){\n\n\t\tString officalEncodedTxt = officallyEncrypt(in);\n\t\tSystem.out.println(\"Encoded message: \" + officalEncodedTxt);\n\t}",
"private void sendToClient(String string) {\n\t\r\n}",
"public void send(String request){\n try {\n streamOut.writeUTF(request);\n streamOut.flush();\n connected = true;\n System.out.println(clientID+\": send: \"+request);\n } catch (IOException ioe) {\n System.out.println(ioe);\n System.out.println(clientID+\": failedToSend: \"+request+\": IOException: \"+ioe);\n }\n }",
"public void enviarTexto(String n,String s) {\r\n \t try {\r\n \t\t\t//dos = new DataOutputStream( socket.getOutputStream() );\r\n \t\t\t//System.out.println(s);\r\n \t\t\tdos.writeInt(Integer.valueOf(n));\r\n \t\t\tdos.flush();\r\n // Enviamos el nombre del archivo \r\n \t\t\tdos.writeUTF( s ); \r\n \tdos.flush();\r\n \tdos.close();\r\n \tsocket.close();\r\n \t\t} catch (IOException e) {\r\n \t\t\t// TODO Auto-generated catch block\r\n \t\t\tSystem.out.println(\"------------ERROR AL ENVIAR SQL----------\");\r\n \t\t}//\r\n }",
"private void handleWrite(SelectionKey key, String message, SSLClientSession session) throws IOException {\n\t\t\tSSLSocketChannel ssl_socket_channel = session.getSSLSocketChannel();\n\t\t\t\n\t\t\tByteBuffer out_message = ssl_socket_channel.getAppSendBuffer();\n\t\t\t\n\t\t\tif(message != null) \n\t\t\t\tout_message.put(message.getBytes());\n\t\t\t\n//\t\t\tOutputHandler.println(\"Server: writing \"+new String(out_message.array(), 0, out_message.position()));\n\t\t\tint count = 0;\n\t\t\t\n\t\t\twhile (out_message.position() > 0) {\n\t\t\t\tcount = ssl_socket_channel.write();\n\t\t\t\tif (count == 0) {\n//\t\t\t\t\tOutputHandler.println(\"Count was 0.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n//\t\t\t\telse {\n//\t\t\t\t\tOutputHandler.println(\"Count was \"+count);\n//\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (out_message.position() > 0) {\n\t\t\t\t// short write:\n\t\t\t\t// Register for OP_WRITE and come back here when ready\n\t\t\t\tkey.interestOps(key.interestOps() | SelectionKey.OP_WRITE);\n\t\t\t\t\n\t\t\t\tsession.rewrite = true;\n\t\t\t} else {\n\t\t\t\tif(session.out_messages.isEmpty()) { \n\t\t\t\t\t// Write succeeded, don�t need OP_WRITE any more\n\t\t\t\t\tkey.interestOps(key.interestOps() & ~SelectionKey.OP_WRITE);\n\t\t\t\t} \n\t\t\t\t\n\t\t\t\tsession.rewrite = false;\n\t\t\t}\n\t\t}",
"public static String encrypt(String strToEncrypt)\n {\n try\n {\n Cipher cipher = Cipher.getInstance(\"AES/ECB/PKCS5Padding\");\n final SecretKeySpec secretKey = new SecretKeySpec(key, \"AES\");\n cipher.init(Cipher.ENCRYPT_MODE, secretKey);\n final String encryptedString = Base64.encodeBase64String(cipher.doFinal(strToEncrypt.getBytes()));\n return encryptedString;\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n return null;\n\n }",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\ttry {\r\n\t\t\t\t\tif(socket!=null&&!socket.isClosed()){\r\n\t\t\t\t\t\tbOutputStream.write(sbyte, 0, sbyte.length);\r\n\t\t\t\t\t\tbOutputStream.flush();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}",
"private void bluetoothSendMsg(String s) {\n byte [] msgOnBuf;\n msgOnBuf = s.getBytes();\n try {\n outStream.write(msgOnBuf);\n } catch (IOException e) {\n Log.d(TAG,\"send message fail!\");\n }\n }",
"protected void send(String s) throws IOException {\n\t\t// Send string to browser.\n\t\t// Log.debug(\"Adapter: sending: \" + s);\n\t\tif (servletOut == null) {\n\t\t\tthrow new IOException(\"Client adapter was stopped\");\n\t\t}\n\n\t\tservletOut.print(s);\n\n\t\tservletOut.flush();\n\n\t\t// Note: this doesn't seem to have effect\n\t\t// in Tomcat 4/5 if the client already disconnected.\n\t\tservletRsp.flushBuffer();\n\n\t\tbytesSent += s.length();\n\t\tLog.debug(\"bytesSent= \" + bytesSent);\n\t\t// Log.debug(\"BCA sent event: \" + s);\n\t}",
"@Override\n public String encryptMsg(String msg) {\n if (msg.length() == 0) {\n return msg;\n } else {\n char[] encMsg = new char[msg.length()];\n for (int ind = 0; ind < msg.length(); ++ind) {\n char letter = msg.charAt(ind);\n if (letter >= 'a' && letter <= 'z') {\n encMsg[ind] = (char) ('a' + ((letter - 'a' + key) % 26));\n } else if (letter >= 'A' && letter <= 'Z') {\n encMsg[ind] = (char) ('A' + ((letter - 'A' + key) % 26));\n } else {\n encMsg[ind] = letter;\n }\n }\n return new String(encMsg);\n }\n }",
"String encryption(Long key, String encryptionContent);",
"@Override\n public void encrypt() {\n algo.encrypt();\n String cypher = vigenereAlgo(true);\n this.setValue(cypher);\n }",
"public String encrypt(final String value) {\n\t\treturn encryptor.encrypt(value);\n\t}",
"private void sendMessageToClient(String message) {\n try {\n outputStream.writeObject(message);\n outputStream.flush();\n } catch (IOException e) {\n System.out.println(\"Erreur lors de l'envoi du message au client\");\n }\n }",
"void sendMessage(String message) throws SocketIOException;",
"public synchronized void writeToSocket(String msg) {\n try {\n bluetoothSocket.getOutputStream().println(msg);\n } catch (Exception e) {\n Log.e(TAG, General.OnWriteToSocketFailed, e);\n }\n }",
"public void write(String message){\n this.write(message, false);\n }",
"@Override\n public void send(String message) {\n\n out.println(message);\n out.flush();\n\n }",
"public void testSSLSocketStringint() throws Exception {\n ServerSocket ss = new ServerSocket(0);\n SSLSocket soc = new MySSLSocket(\"localhost\", ss.getLocalPort());\n ss.close();\n soc.close();\n }",
"private void sendData(String data) {\n\n if (!socket.isConnected() || socket.isClosed()) {\n Toast.makeText(getApplicationContext(), \"Joystick is disconnected...\",\n Toast.LENGTH_LONG).show();\n return;\n }\n\n\t\ttry {\n\t\t\tOutputStream outputStream = socket.getOutputStream();\n\n byte [] arr = data.getBytes();\n byte [] cpy = ByteBuffer.allocate(arr.length+1).array();\n\n for (int i = 0; i < arr.length; i++) {\n cpy[i] = arr[i];\n }\n\n //Terminating the string with null character\n cpy[arr.length] = 0;\n\n outputStream.write(cpy);\n\t\t\toutputStream.flush();\n\n Log.d(TAG, \"Sending data \" + data);\n\t\t} catch (IOException e) {\n Log.e(TAG, \"IOException while sending data \"\n + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (NullPointerException e) {\n Log.e(TAG, \"NullPointerException while sending data \"\n + e.getMessage());\n\t\t}\n\t}",
"public void sendMessage(String message){\n pw.print(message);\n pw.flush();\n }",
"public static String Encrypt(String inputText, String key) {\n String retVal = \"\";\n try {\n Cipher cipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n byte[] keyBytes = new byte[16];\n byte[] b = key.getBytes();\n int len = b.length;\n if (len > keyBytes.length) {\n len = keyBytes.length;\n }\n System.arraycopy(b, 0, keyBytes, 0, len);\n SecretKeySpec keySpec = new SecretKeySpec(keyBytes, \"AES\");\n IvParameterSpec ivSpec = new IvParameterSpec(keyBytes);\n cipher.init(Cipher.ENCRYPT_MODE, keySpec, ivSpec);\n BASE64Encoder _64e = new BASE64Encoder();\n byte[] encryptedData = cipher.doFinal(inputText.getBytes());\n retVal = _64e.encode(encryptedData);\n\n } catch (Exception ex) {\n ApiLog.One.WriteException(ex);\n }\n return retVal;\n }",
"public static String encrypt(String message, String randomkey) throws GeneralSecurityException {\n //Log.d(\"Jsonmessage\",message);\n try {\n final SecretKeySpec key = new SecretKeySpec(ENCRYPTION_SECRET_KEY.getBytes(), \"AES\");\n\n // byte[] cipherText = encrypt(key, ApiConfig.ENCRYPTION_IV_KEY.getBytes(), message.getBytes(CHARSET));\n byte[] cipherText = encrypt(key, randomkey.getBytes(), message.getBytes(CHARSET));\n //Log.d(\"SecretKey123\",cipherText.toString());\n String encoded = Base64.encodeToString(cipherText, Base64.NO_WRAP);\n //Log.d(\"SecretKey\",encoded);\n return encoded;\n } catch (UnsupportedEncodingException e) {\n if (DEBUG_LOG_ENABLED)\n Log.e(TAG, \"UnsupportedEncodingException \", e);\n throw new GeneralSecurityException(e);\n }\n }",
"public void write(String input) {\n byte[] msgBuffer = input.getBytes(); //converts entered String into bytes\n try {\n mmOutStream.write(msgBuffer); //write bytes over BT connection via outstream\n } catch (IOException e) {\n //if you cannot write, close the application\n Toast.makeText(getBaseContext(), \"Connection Failure\", Toast.LENGTH_LONG).show();\n finish();\n }\n }",
"public void send(String msg) throws IOException {\n\t\tbyte[] data = msg.getBytes() ;\n DatagramPacket packet = new DatagramPacket(data, data.length, host, port);\n s.send(packet);\n\t}",
"private void sendData(String message) {\n\t\t\ttry {\n\t\t\t\toutput.writeObject(message);\n\t\t\t\toutput.flush(); // flush output to client\n\t\t\t} catch (IOException ioException) {\n\t\t\t\tSystem.out.println(\"\\nError writing object\");\n\t\t\t}\n\t\t}",
"private boolean writeMessage(String message) \r\n {\r\n\r\n if(!socket.isConnected()) \r\n {\r\n close();\r\n return false;\r\n }\r\n\r\n try \r\n {\r\n out.writeObject(message);\r\n }\r\n\r\n catch(IOException e) \r\n {\r\n displayMessage(\"Error for message to \" + username);\r\n displayMessage(e.toString());\r\n }\r\n return true;\r\n }",
"public void SendData(final String data) throws ClientIsDisconnectedException, OutgoingPacketFailedException\n {\n final byte[] bytes = data.getBytes(fMyListener.getCharset());\n SendData(bytes, 0, bytes.length);\n }",
"static void sendString(BufferedWriter bw, String str) throws IOException{\n bw.write(str + \"\\r\\n\");\n bw.flush();\n }",
"public void writeTcpMessage(String message) {\n\t\tm_tcpSession.write(message);\n\t}",
"public void sendMsgToClient() {\n\n try {\n\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())), true);\n\n Log.d(TAG, \"The transmitted data:\" + msg);\n\n writer.println(msg);\n\n } catch (Exception e) {\n\n e.printStackTrace();\n\n }\n\n }",
"@Override\n public String encrypt(String text) {\n if (StringUtils.isBlank(text)) {\n return null;\n }\n\n try {\n byte[] iv = new byte[GCM_IV_LENGTH];\n RandomUtils.RANDOM.nextBytes(iv);\n\n Cipher cipher = Cipher.getInstance(ENCRYPT_ALGORITHM);\n GCMParameterSpec ivSpec = new GCMParameterSpec(GCM_TAG_LENGTH * Byte.SIZE, iv);\n cipher.init(Cipher.ENCRYPT_MODE, getKeyFromPassword(), ivSpec);\n\n byte[] ciphertext = cipher.doFinal(text.getBytes(StandardCharsets.UTF_8));\n byte[] encrypted = new byte[iv.length + ciphertext.length];\n System.arraycopy(iv, 0, encrypted, 0, iv.length);\n System.arraycopy(ciphertext, 0, encrypted, iv.length, ciphertext.length);\n\n return Base64.getEncoder().encodeToString(encrypted);\n } catch (NoSuchAlgorithmException\n | IllegalArgumentException\n | InvalidKeyException\n | InvalidAlgorithmParameterException\n | IllegalBlockSizeException\n | BadPaddingException\n | NoSuchPaddingException e) {\n LOG.debug(ERROR_ENCRYPTING_DATA, e);\n throw new EncryptionException(e);\n }\n }",
"private void sendMessage() throws Exception {\n\t\tGetTimestamp(\"Sending Message: \");\n\t\tString inputMessage;\n\t\tinputMessage = input.nextLine();\n\t\tString tosend = encrypt(clientkey, inputMessage);\n\t\t\n\t\tJSONObject RESPONSE = new JSONObject();\n\t\tRESPONSE.put(\"payload\",tosend);\n\t\tSystem.out.println(RESPONSE);\n\t\t\n\t\tpw.println(tosend);\n\t\tpw.flush();\n\t\tSystem.out.println(\"Message sent to the client : \" + inputMessage);\n\t\tif (inputMessage.equalsIgnoreCase(\"bye\")) {\n\t\t\tSystem.out.println(\"sending close command\");\n\t\t\tcloseConnection();\n\t\t} else {\n\t\t\tgetMessage();\n\t\t}\n\t}",
"String write(byte[] content, boolean noPin);",
"private synchronized void sendToClient(PrintWriter pw, String message)\n {\n pw.write(message + \"\\n\");\n pw.flush();\n }",
"public boolean sendCommand(String secret, List<String> command) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(socket.getInputStream()));\n\t\tString salt = reader.readLine();\n\t\tString saltedHash = POPJavaDeamon.getSaltedHash(salt, secret);\n\t\t\n\n\t\tBufferedWriter writer = new BufferedWriter(\n\t\t\t\tnew OutputStreamWriter(socket.getOutputStream()));\n\t\t\n\t\twriter.write(saltedHash+\"\\n\");\n\t\twriter.flush();\n\t\t\n\t\tString connectionStatus = reader.readLine();\n\t\t\n\t\tif(POPJavaDeamon.ERROR_PWD.equals(connectionStatus)){\n\t\t\treader.close();\n\t\t\twriter.close();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t//Reopen the stream, this time crypted\n\t\treader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(\n\t\t\t\t\t\tnew CipherInputStream(socket.getInputStream(), POPJavaDeamon.createKey(salt, secret, false))));\n\t\t\n\t\tCipher outputCipher = POPJavaDeamon.createKey(salt, secret, true);\n\t\t\n\t\tCipherOutputStream outputCipherStream = new CipherOutputStream(socket.getOutputStream(), \n\t\t\t\toutputCipher);\n\t\t\n\t\twriter = new BufferedWriter(new OutputStreamWriter(outputCipherStream));\n\t\t\n\t\twriter.write(command.size()+\"\\n\");\n\t\tfor(String part: command){\n\t\t\twriter.write(part+\"\\n\");\n\t\t}\n\t\t\n\t\t//HACK: We need to fill the current data block for the cipher, otherwise it wont get sent on flush\n\t\tfor(int i = 0; i < 100; i++){\n\t\t\twriter.write(\"\\n\");\n\t\t}\n\t\t\n\t\twriter.flush();\n\t\t\n\t\tString answer = reader.readLine();\n\t\tSystem.out.println(answer);\n\t\t\n\t\treader.close();\n\t\t\n\t\treturn answer != null && answer.equals(POPJavaDeamon.SUCCESS);\n\t}",
"void write (String s, int offset);",
"public void writeToSocket(byte[] bytes) {\n\n try {\n outStream = socket.getOutputStream();\n } catch (IOException e) {\n Log.e(\"tag\", \"Error occurred when creating output stream\", e);\n }\n\n try {\n outStream.write(bytes);\n\n } catch (IOException e) {\n Log.e(\"tag\", \"Error occurred when sending data\", e);\n }\n }",
"public String encrypt(String key, String data) throws IOException, InvalidCipherTextException {\n if (!data.equals(\"\")) {\n return encrypt(key, data.getBytes());\n }\n return null;\n }",
"public static byte[] encryptText(String plainText,SecretKey secKey) throws Exception{\n\r\n Cipher aesCipher = Cipher.getInstance(\"AES\");\r\n\r\n aesCipher.init(Cipher.ENCRYPT_MODE, secKey);\r\n\r\n byte[] byteCipherText = aesCipher.doFinal(plainText.getBytes());\r\n\r\n return byteCipherText;\r\n\r\n}",
"public String encrypt(String unencryptedString) throws InvalidKeyException, UnsupportedEncodingException, IllegalBlockSizeException, BadPaddingException {\n String encryptedString = null;\n try{\n cipher.init(Cipher.ENCRYPT_MODE, key);\n byte[] plainText = unencryptedString.getBytes(UNICODE_FORMAT);\n byte[] encryptedText = cipher.doFinal(plainText);\n BASE64Encoder base64encoder = new BASE64Encoder();\n // encryptedString = base64encoder.<span class=\"\\IL_AD\\\" id=\"\\IL_AD9\\\">encode</span>(encryptedText);\n encryptedString = base64encoder.encode(encryptedText);\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n return encryptedString;\n }",
"public void WriteCypherMessage(String m)\r\n {\r\n WriteMessage(Cypher(m.getBytes()));\r\n }"
] | [
"0.7279213",
"0.6817555",
"0.6714846",
"0.6200621",
"0.61508113",
"0.6113059",
"0.6086333",
"0.6041304",
"0.60056627",
"0.5941328",
"0.5897775",
"0.5887264",
"0.58469373",
"0.58192337",
"0.5800148",
"0.5798186",
"0.5783287",
"0.57705414",
"0.5750527",
"0.573829",
"0.57375836",
"0.57310486",
"0.57262063",
"0.5721064",
"0.5720184",
"0.5696682",
"0.56877416",
"0.568013",
"0.56788075",
"0.5656837",
"0.5630861",
"0.5599132",
"0.55878276",
"0.55623823",
"0.5558296",
"0.55377555",
"0.553207",
"0.5495729",
"0.547886",
"0.5471996",
"0.54694486",
"0.546864",
"0.5464055",
"0.5461997",
"0.5459669",
"0.5456907",
"0.5455769",
"0.5453488",
"0.5450325",
"0.54500574",
"0.54347944",
"0.54295826",
"0.54201865",
"0.54034597",
"0.5397421",
"0.53935164",
"0.5367294",
"0.5364613",
"0.53578454",
"0.5345439",
"0.5344909",
"0.5330567",
"0.53297997",
"0.5319033",
"0.53093314",
"0.52942085",
"0.5291163",
"0.5287901",
"0.52837175",
"0.52755517",
"0.5270823",
"0.5270655",
"0.52704024",
"0.52691483",
"0.5266998",
"0.52669936",
"0.5250913",
"0.52470726",
"0.5244458",
"0.52427185",
"0.52380085",
"0.52364767",
"0.52231896",
"0.5218459",
"0.52175885",
"0.5216464",
"0.52156955",
"0.52139264",
"0.5207313",
"0.5206159",
"0.5204934",
"0.5203209",
"0.5201116",
"0.5189605",
"0.51822203",
"0.5182215",
"0.5181181",
"0.5171066",
"0.5170398",
"0.51700515"
] | 0.555266 | 35 |
Writes unencrypted data to the socket This does not buffer, so may block until sent | public synchronized void writeNow(String data){
log.debug("[SC] Writing now unencrypted - "+data, 4);
if(out!=null){
try {
if(!data.endsWith("\n")){
data = data + "\n";
}
out.write(data.getBytes());
out.flush();
} catch (IOException e) {
log.error("[SC] Could not write to socket");
}
}else{
log.error("[SC] Could not write to socket");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected int writeEncrypted()\n throws IOException\n {\n int cb = f_delegate.write(f_buffEncOut);\n\n if (!f_buffEncOut.hasRemaining())\n {\n endProtocol();\n }\n return cb;\n }",
"public void sendPacket(String data) throws IOException {\n\n BufferedWriter out = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));\n out.write(data + \"\\0\");\n out.flush();\n }",
"private void writeData(String data) {\n try {\n outStream = btSocket.getOutputStream();\n } catch (IOException e) {\n }\n\n String message = data;\n byte[] msgBuffer = message.getBytes();\n\n try {\n outStream.write(msgBuffer);\n } catch (IOException e) {\n }\n }",
"public void sendData(IoBuffer outData) {\n\t\ttry {\n\t\t\tsession.write(outData);\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void send(final String data) throws IOException {\r\n\t\t//Writes the packet as a byte buffer, using the data from the packet and converting in to bytes\r\n\t\t//Adds an end-of-packet footer to the data\r\n\t\tif(channel.isConnected()) {\r\n\t\t\tchannel.write(ByteBuffer.wrap((data + \"%EOP%\").getBytes()));\r\n\t\t}\r\n\t}",
"@Override\n public synchronized void send(byte[] data) throws SocketException {\n try {\n connectionSocket.getOutputStream().write(data);\n connectionSocket.getOutputStream().flush();\n connectionSocket.close();\n } catch (IOException ex) {\n Logger.getLogger(TCPServer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public boolean write(String data) throws IOException\n\t{\n\t\treturn this.write(this.socket, data);\n\t}",
"public boolean sendData(String data) throws IOException;",
"public void send(byte[] data) throws IOException {\n dataOutput.write(data);\n dataOutput.flush();\n }",
"private void sendPacket(InetAddress address, byte[] data) {\n try {\n send.setAddress(address);\n send.setData(Encryption.encrypt(data));\n socket.send(send);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private void write( byte[] data) throws IOException {\n ByteBuffer buffer = ByteBuffer.wrap(data);\n\n int write = 0;\n // Keep trying to write until buffer is empty\n while(buffer.hasRemaining() && write != -1)\n {\n write = channel.write(buffer);\n }\n\n checkIfClosed(write); // check for error\n\n if(ProjectProperties.DEBUG_FULL){\n System.out.println(\"Data size: \" + data.length);\n }\n\n key.interestOps(SelectionKey.OP_READ);// make key read for reading again\n\n }",
"public void sendData(byte[] data) {\r\n\t\t//send packet\r\n\t\ttry {\r\n\t\t\tout.write(data);\r\n\t\t} catch(IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private void sendData() {\n final ByteBuf data = Unpooled.buffer();\n data.writeShort(input);\n data.writeShort(output);\n getCasing().sendData(getFace(), data, DATA_TYPE_UPDATE);\n }",
"void sendData() throws IOException\n\t{\n\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\ttry {\r\n\t\t\t\t\tif(socket!=null&&!socket.isClosed()){\r\n\t\t\t\t\t\tbOutputStream.write(sbyte, 0, sbyte.length);\r\n\t\t\t\t\t\tbOutputStream.flush();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}",
"public boolean write(Socket socket, String data) throws IOException\n\t{\n\t\tif(socket.isConnected() && !socket.isClosed())\n\t\t{\n\t\t\tString hdr = \"\";\n\t\t\tthis.addRequestHeader(\"Content-Length\", data.length());\n\t\t\tString data2sent = \"\";\n\t\t\tif(!this.requestHeader.isEmpty())\n\t\t\t{\n\t\t\t\t Set<Map.Entry<String, String>> entrySet = this.requestHeader.entrySet();\n\t\t\t\t for(Entry<String, String> entry : entrySet) \n\t\t\t\t {\n\t\t\t\t hdr = entry.getKey().toString().trim()+\": \"+entry.getValue().toString().trim()+\"\\r\\n\";\n\t\t\t\t data2sent += hdr;\n\t\t\t\t }\n\t\t\t}\n\t\t\tdata2sent += \"\\r\\n\";\n\t\t\tdata2sent += data;\n\t\t\tsocket.getOutputStream().write(data2sent.getBytes());\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\n\tpublic void send(OutputStream stream) throws IOException {\n\t\tstream.write(this.data);\n\t}",
"private void sendData(String data) {\n\n if (!socket.isConnected() || socket.isClosed()) {\n Toast.makeText(getApplicationContext(), \"Joystick is disconnected...\",\n Toast.LENGTH_LONG).show();\n return;\n }\n\n\t\ttry {\n\t\t\tOutputStream outputStream = socket.getOutputStream();\n\n byte [] arr = data.getBytes();\n byte [] cpy = ByteBuffer.allocate(arr.length+1).array();\n\n for (int i = 0; i < arr.length; i++) {\n cpy[i] = arr[i];\n }\n\n //Terminating the string with null character\n cpy[arr.length] = 0;\n\n outputStream.write(cpy);\n\t\t\toutputStream.flush();\n\n Log.d(TAG, \"Sending data \" + data);\n\t\t} catch (IOException e) {\n Log.e(TAG, \"IOException while sending data \"\n + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (NullPointerException e) {\n Log.e(TAG, \"NullPointerException while sending data \"\n + e.getMessage());\n\t\t}\n\t}",
"public void write(byte[] data) throws IOException {\r\n try {\r\n os.write(data);\r\n } catch (IOException io) {\r\n if (!cbImpl.checkMobileNetwork()) {\r\n throw new WrapperIOException(new TransportException(io.getMessage(), io,\r\n TransportException.NO_NETWORK_COVERAGE));\r\n }\r\n throw io;\r\n }\r\n }",
"@Override\n public void send(String key, String data) throws IOException {\n\n }",
"public synchronized void send(byte[] data, int len) {\n byte[] sendData = data;\n int sendLen = len;\n if (EncryptSetupManager.newInstance().getFlag() && len > 0) {\n sendData = this.mAESManager.encrypt(data, len);\n if (sendData == null) {\n LogUtil.e(Tag, \"encrypt failed!\");\n } else {\n sendLen = sendData.length;\n }\n }\n if (AudioUtil.getIs()) {\n LogUtil.d(Tag, \"VR write \" + sendLen);\n this.mPCMPackageHead.m4053c(CommonParams.bA);\n this.mPCMPackageHead.m4047a(sendLen);\n this.mPCMPackageHead.m4052c();\n this.mArrayAdd.merge(this.mPCMPackageHead.m4048a(), this.f3149e, sendData, sendLen, this.mPair);\n writeVR(this.mPair.getData(), this.mPair.getSize());\n }\n }",
"public int encrypt(int clock){\n clock = clock * 10;\n try {\n os_obj = socket_obj.getOutputStream();\n osw_obj = new OutputStreamWriter(os_obj);\n bw_obj = new BufferedWriter(osw_obj);\n\n int message = clock;\n bw_obj.write(message);\n bw_obj.flush();\n\n }\n\n catch(Exception e)\n {\n e.printStackTrace();\n }\n\n\n return 0;\n }",
"void send(ByteBuffer data) throws CCommException, IllegalStateException;",
"public void writePacket(DataOutputStream dataOutputStream) throws IOException;",
"public synchronized void write(String data){\n\t\tlog.debug(\"[SC] Writing \"+data, 4);\n\t\twriteBuffer.add(data.getBytes());\n\t}",
"private void sendWriteBegin() {\n\t\ttry {\n\t\t\tsendReceiveSocket.send(sendPacket);\n\t\t} catch (IOException e) {\n\t\t\t// Print a stack trace, close all sockets and exit.\n\t\t\te.printStackTrace();\n\t\t\tsendReceiveSocket.close();\n\t\t\tSystem.exit(1);\n\t\t}\n\t}",
"public void write(DataOutputStream out) throws IOException;",
"public abstract boolean send(byte[] data);",
"public void send(SocketChannel socket, byte[] data) {\n\t\tsynchronized (this.changeKeyQueue) {\n\t\t\t// since we now have something to write we change\n\t\t\t// key for this channel to WRITE state\n\t\t\tthis.changeKeyQueue\n\t\t\t\t\t.add(new ChangeKey(socket, SelectionKey.OP_WRITE));\n\n\t\t\tsynchronized (this.queueToMemaslap) {\n\t\t\t\tList<ByteBuffer> queue = (List<ByteBuffer>) this.queueToMemaslap\n\t\t\t\t\t\t.get(socket);\n\t\t\t\tif (queue == null) {\n\t\t\t\t\tqueue = new ArrayList<ByteBuffer>();\n\t\t\t\t\tthis.queueToMemaslap.put(socket, queue);\n\t\t\t\t}\n\t\t\t\tqueue.add(ByteBuffer.wrap(data));\n\t\t\t}\n\t\t}\n\t\t// wakes up selector's blocking .select() method\n\t\tthis.selector.wakeup();\n\t}",
"public static void writeBytes(SocketChannel channel, byte[] data)\n {\n try {\n ByteBuffer buffer = null;\n buffer =\n ByteBuffer.wrap(data);\n channel.write(buffer);\n buffer.clear();\n }\n catch (IOException e) {\n throw new WrappingException(e);\n }\n }",
"public void sendData(String data) {\n\t\tIoBuffer buf = IoBuffer.allocate(data.getBytes().length + 10);\n\t\tbuf.put(data.getBytes());\n\t\tbuf.put((byte)0x00);\n\t\tbuf.flip();\n\t\tsendData(buf);\n\t}",
"private static void sendDataMessage() {\r\n\t\tSystem.out.println(\"CLIENT: \" + \" \" + \"DataMessage sent.\");\r\n\t\t\r\n\t\tbyte[] blockNumberAsByteArray = helper.intToByteArray(blockNumberSending);\r\n\t\tsplitUserInput = helper.divideArray(userInputByteArray);\r\n\r\n\t\tsendData = message.dataMessage(blockNumberAsByteArray, splitUserInput[sendingPackageNumber]);\r\n\t\tsendingPackageNumber++;\r\n\t\tblockNumberSending++; // blocknumber that is given to the next message to be transmitted\r\n\r\n\t\t// trims the message (removes empty bytes), so the last message can be detected\r\n\t\ttrimmedSendData = helper.trim(sendData);\r\n\r\n\t\tsendDataMessage = new DatagramPacket(trimmedSendData, trimmedSendData.length, ipAddress, SERVER_PORT);\r\n\t\ttry {\r\n\t\t\tclientSocket.send(sendDataMessage);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tackNeeded = true;\r\n\r\n\t\tif (trimmedSendData.length < 516) {\r\n\t\t\tlastPackage = true;\r\n\t\t}\r\n\t}",
"public synchronized void send(byte[] data, int length) throws IOException {\r\n\t\tsocket.send(new DatagramPacket(data, length, remoteAddress));\r\n\t}",
"@Override\n public void run() {\n if (socket != null) {\n byte b0 = get_sendbyte0();\n byte b1 = get_sendbyte1();\n Log.e(\"handler\", String.valueOf(b0) + String.valueOf(b1));\n if (outputStream == null) {\n try {\n outputStream = socket.getOutputStream();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n try {\n outputStream.write(new byte[]{(byte) 1, b0, b1, (byte) 1}); /*1, b0, b1, 1*/\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n\n }",
"private void send(String p)\t{\t\t\t\r\n\t\ttry{\r\n\t\t\tif(isThisMyTurn){\r\n\t\t\t\toOutStream.writeObject(p);\r\n\t\t\t\toOutStream.flush();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(SocketException e){\r\n\t\t\tif(isThisMyTurn){\r\n\t\t\t\tisThisMyTurn = false;\r\n\t\t\t\tturnOffStream();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e) { \r\n\t\t\tif(isThisMyTurn){\r\n\t\t\t\tisThisMyTurn = false;\r\n\t\t\t\tturnOffStream();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@SuppressWarnings(\"GuardedByChecker\")\n private void sendFlushDataLocked() {\n assert mWriteState == State.WAITING_FOR_FLUSH;\n int size = mFlushData.size();\n ByteBuffer[] buffers = new ByteBuffer[size];\n int[] positions = new int[size];\n int[] limits = new int[size];\n for (int i = 0; i < size; i++) {\n ByteBuffer buffer = mFlushData.poll();\n buffers[i] = buffer;\n positions[i] = buffer.position();\n limits[i] = buffer.limit();\n }\n assert mFlushData.isEmpty();\n assert buffers.length >= 1;\n mWriteState = State.WRITING;\n mRequestHeadersSent = true;\n if (!CronetBidirectionalStreamJni.get().writevData(mNativeStream,\n CronetBidirectionalStream.this, buffers, positions, limits,\n mEndOfStreamWritten && mPendingData.isEmpty())) {\n // Still waiting on flush. This is just to have consistent\n // behavior with the other error cases.\n mWriteState = State.WAITING_FOR_FLUSH;\n throw new IllegalArgumentException(\"Unable to call native writev.\");\n }\n }",
"public void writePacket(SMBSrvPacket pkt, int len) throws IOException {\n // Output the packet via the Winsock NetBIOS socket\n //\n // As Windows is handling the NetBIOS session layer we do not send the 4 byte header that is\n // used by the NetBIOS over TCP/IP and native SMB packet handlers.\n m_sessSock.write(pkt.getBuffer(), 4, len);\n // Do not check the status, if the session has been closed the next receive will fail\n }",
"@Override\n\tpublic void sendData(int type, byte[] data) {\n\t\t\n\t}",
"private void formWriteBegin() {\n\t\tsendData = new byte[4];\n\t\tsendData[0] = 0;\n\t\tsendData[1] = 4;\n\t\tsendData[2] = 0;\n\t\tsendData[3] = 0;\n\t\t\n\t\t// Now that the data has been set up, let's form the packet.\n\t\tsendPacket = new DatagramPacket(sendData, 4, receivePacket.getAddress(),\n\t\t\t\treceivePacket.getPort());\t\n\t}",
"public void writeToSocket(byte[] bytes) {\n\n try {\n outStream = socket.getOutputStream();\n } catch (IOException e) {\n Log.e(\"tag\", \"Error occurred when creating output stream\", e);\n }\n\n try {\n outStream.write(bytes);\n\n } catch (IOException e) {\n Log.e(\"tag\", \"Error occurred when sending data\", e);\n }\n }",
"private void handleWrite(SelectionKey key, String message, SSLClientSession session) throws IOException {\n\t\t\tSSLSocketChannel ssl_socket_channel = session.getSSLSocketChannel();\n\t\t\t\n\t\t\tByteBuffer out_message = ssl_socket_channel.getAppSendBuffer();\n\t\t\t\n\t\t\tif(message != null) \n\t\t\t\tout_message.put(message.getBytes());\n\t\t\t\n//\t\t\tOutputHandler.println(\"Server: writing \"+new String(out_message.array(), 0, out_message.position()));\n\t\t\tint count = 0;\n\t\t\t\n\t\t\twhile (out_message.position() > 0) {\n\t\t\t\tcount = ssl_socket_channel.write();\n\t\t\t\tif (count == 0) {\n//\t\t\t\t\tOutputHandler.println(\"Count was 0.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n//\t\t\t\telse {\n//\t\t\t\t\tOutputHandler.println(\"Count was \"+count);\n//\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (out_message.position() > 0) {\n\t\t\t\t// short write:\n\t\t\t\t// Register for OP_WRITE and come back here when ready\n\t\t\t\tkey.interestOps(key.interestOps() | SelectionKey.OP_WRITE);\n\t\t\t\t\n\t\t\t\tsession.rewrite = true;\n\t\t\t} else {\n\t\t\t\tif(session.out_messages.isEmpty()) { \n\t\t\t\t\t// Write succeeded, don�t need OP_WRITE any more\n\t\t\t\t\tkey.interestOps(key.interestOps() & ~SelectionKey.OP_WRITE);\n\t\t\t\t} \n\t\t\t\t\n\t\t\t\tsession.rewrite = false;\n\t\t\t}\n\t\t}",
"@Override\n public void send(byte[] data) throws SocketException {\n DatagramPacket sendPacket = new DatagramPacket(\n data,\n data.length,\n this.lastClientIPAddress,\n this.lastClientPort);\n try {\n serverSocket.send(sendPacket);\n } catch (IOException ex) {\n Logger.getLogger(UDPServer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private void write(String msg) throws IOException {\n if (connectedSwitch) {\n outStream.writeBytes(msg + \";\");\n outStream.flush();\n } else {\n Log.e(TAG, \"Socket disconnected\");\n }\n }",
"public void writeData(final Socket id) throws IOException {\r\n final byte[] dataRep = getDataRep();\r\n COPSUtil.writeData(id, dataRep, dataRep.length);\r\n }",
"private void sendSocket(String data) {\n if (!serviceStartNormalMethod) {\n pingStamp = System.currentTimeMillis();\n }\n\n if (ctrlSocketBufferOut != null && !ctrlSocketBufferOut.checkError() && ctrlSocketThreadState == SocketThreadStates.RUNNING) {\n ctrlSocketBufferOut.println(data);\n ctrlSocketBufferOut.flush();\n }\n\n if (ctrlSocketBufferOut != null && ctrlSocketBufferOut.checkError()) {\n // conn manager thread will re-connect us\n ctrlSocketThreadState = SocketThreadStates.ERROR;\n broadcastConnectionStatus();\n }\n }",
"public boolean send(String data, boolean isbase64){\n\t\t\ttry\n\t\t\t{\n\t\t\t\t\n\t\t\t\t//Write to socket base64 encoded with a newline on end\n\t\t\t\tif (isbase64){\n\t\t\t\t\t//output.write(Base64.encode(arr, Base64.DEFAULT), 0, arr.length);\n\t\t\t\t\toutput.write(new String(Base64.encode(data.getBytes(), Base64.DEFAULT))+\"\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t//Or not\n\t\t\t\t\toutput.write(data, 0, data.length());\n\t\t\t\t}\n\t\t\t\t//output.flush();\t\t\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tLog.i(_TAG, \"EXCEPTION SEEND\");\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"public void writedata(byte b) throws Exception{\n ByteBuffer byteBuffer = ByteBuffer.wrap(\"hello\".getBytes(\"UTF-8\"));\n// byteBuffer.flip();\n client.write(byteBuffer);\n byteBuffer.clear();\n client.close();\n\n }",
"void send(ByteBuffer data, Address addr) throws CCommException, IllegalStateException;",
"public synchronized boolean write_to_sock(StringBuilder msg){\n\t\t/**\n\t\t * TRY SEND TO SERVER\n\t\t */\n\t\ttry {\n\t\t\tout.print(msg.toString());\n\t\t\tmysock.getOutputStream().flush();\n\t\t\tout.flush();\n\t\t\tSystem.out.println(TAG +\": Tuple injected.\");\n\t\t} catch (IOException ioException) {\n\t\t\tSystem.out.println(TAG + \": I could not connect\");\n\t\t\tsrvDisconnect();\n\t\t\treturn false;\n\t\t} catch (NullPointerException e) {\n\t\t\tSystem.out.println(TAG + \": Null Pointer Exception\");\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public void sendAuthPackge() throws IOException {\n // 生成认证数据\n byte[] rand1 = RandomUtil.randomBytes(8);\n byte[] rand2 = RandomUtil.randomBytes(12);\n\n // 保存认证数据\n byte[] seed = new byte[rand1.length + rand2.length];\n System.arraycopy(rand1, 0, seed, 0, rand1.length);\n System.arraycopy(rand2, 0, seed, rand1.length, rand2.length);\n this.seed = seed;\n\n // 发送握手数据包\n HandshakePacket hs = new HandshakePacket();\n hs.packetId = 0;\n hs.protocolVersion = Versions.PROTOCOL_VERSION;\n hs.serverVersion = Versions.SERVER_VERSION;\n hs.threadId = id;\n hs.seed = rand1;\n hs.serverCapabilities = getServerCapabilities();\n // hs.serverCharsetIndex = (byte) (charsetIndex & 0xff);\n hs.serverStatus = 2;\n hs.restOfScrambleBuff = rand2;\n hs.write(this);\n\n // asynread response\n // 这里阻塞了不好\n this.asynRead();\n }",
"private void writeData(Socket s, String cmd){\n\t\ttry {\n\t\t\tDataOutputStream dos = new DataOutputStream(s.getOutputStream());\n\t\t\tdos.writeUTF(cmd);\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(main, e.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}",
"public void sendData(byte[] data) {\n\t\tDatagramPacket packet = new DatagramPacket(data, data.length, ipAddress, serverPort);\n\n\t\ttry {\n\t\t\tsocket.send(packet);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void sendAndReceiveData(Socket socket) {\n try {\n long start = System.currentTimeMillis();\n\n // get the socket output stream\n OutputStream out = socket.getOutputStream();\n // get the socket input stream\n InputStream in = socket.getInputStream();\n DataInput dis = new DataInputStream(in);\n\n long iterations = dis.readLong();\n int size = dis.readInt();\n long total = iterations * size * 2L;\n long current = 0;\n\n System.out.println(MessageFormat.format(\"Sending/Receiving {0} bytes.\", total));\n while (current < iterations) {\n byte[] buf = new byte[size];\n dis.readFully(buf);\n out.write(buf);\n out.flush();\n current++;\n }\n\n out.close();\n in.close();\n\n long finish = System.currentTimeMillis();\n long elapsed = finish - start;\n System.out.println(MessageFormat.format(\"EOT. Received {0} bytes in {1} ms. Throughput = {2} KB/sec.\", total, elapsed,\n (total / elapsed) * 1000 / 1024));\n socket.close();\n System.out.println(\"Connection closed\");\n } catch (Exception ie) {\n ie.printStackTrace();\n }\n }",
"@Override\r\n public void sendData(byte[] buffer, int bytes) {\r\n try {\r\n mOutputStream.write(buffer, 0, bytes);\r\n } catch (IOException ioe) {\r\n Log.e(Common.TAG, \"Error sending data on socket: \" + ioe.getMessage());\r\n cancel();\r\n mPeer.communicationErrorOccured();\r\n }\r\n }",
"public void sendData(byte[] data) {\n\t\tIoBuffer buf = IoBuffer.allocate(data.length + 10);\n\t\tbuf.put(data);\n\t\tbuf.flip();\n\t\tsendData(buf);\n\t}",
"boolean send(byte[] data);",
"@Override\n public void write(final byte[] data) throws IOException {\n write(data, 0, data.length);\n }",
"void sendData(String msg) throws IOException\n {\n if ( msg.length() == 0 ) return;\n//\n msg += \"\\n\";\n// Log.d(msg, msg);\n if (outputStream != null)\n outputStream.write(msg.getBytes());\n// myLabel.setText(\"Data Sent\");\n// myTextbox.setText(\" \");\n }",
"public void sendStringOverNetwork(@NonNull String str, boolean encrypt) {\n str = str + '\\0';\n try {\n if (encrypt)\n sendDataEncrypted(str.getBytes(\"UTF-8\"));\n else\n sendDataUnencrypted(str.getBytes(\"UTF-8\"));\n } catch (UnsupportedEncodingException ex) {}\n }",
"public int send(OutputStream out) throws IOException;",
"public abstract void SendData(int sock, String Data) throws LowLinkException, TransportLayerException, CommunicationException;",
"public void send(ILPacket dataPacket) throws IOException {\n\t\t \n\t\tDatagramPacket packet;\n\t\t\n\t\tbyte[] buffer = dataPacket.getBytes();\n\t\t\n\t\tpacket = new DatagramPacket(buffer, buffer.length, this.group, this.writePort);\n\t\tthis.outSocket.send(packet);\n\t}",
"public void send(PacketHeader hdr, char[] data)\n\t{\n\t\tchar[] toName = new char[32];\n\n\t\t//sprintf(toName, \"SOCKET_%d\", (int)hdr.to);\n\t\t\n\t\tassert((mSendBusy == false) && (hdr.mLength > 0) \n\t\t\t&& (hdr.mLength <= MaxPacketSize) && (hdr.from == mNetworkAddress));\n\t\tDebug.print('n', \"Sending to addr %d, %d bytes... \", hdr.to, hdr.mLength);\n\n\t\tInterrupt.Schedule(NetworkSendDone, this, NetworkTime, NetworkSendInt);\n\n\t\tif (Random() % 100 >= mChanceToWork * 100) \n\t\t{ // emulate a lost packet\n\t\t\tDebug.print('n', \"oops, lost it!\\n\");\n\t\t\treturn;\n\t\t}\n\n\t\t// concatenate hdr and data into a single buffer, and send it out\n\t\tchar[] buffer = new char[MaxWireSize];\n\t\tbuffer = (char[])hdr;\n\t\t//bcopy(data, buffer + sizeof(PacketHeader), hdr.length);\n\t\tsendToSocket(mSock, buffer, MaxWireSize, toName);\n\t\t\n\t}",
"public void flushPacket()\n throws IOException {\n\n // Nothing to do\n }",
"public synchronized void writeToSocket(String msg) {\n try {\n bluetoothSocket.getOutputStream().println(msg);\n } catch (Exception e) {\n Log.e(TAG, General.OnWriteToSocketFailed, e);\n }\n }",
"public void SendData(final String data) throws ClientIsDisconnectedException, OutgoingPacketFailedException\n {\n final byte[] bytes = data.getBytes(fMyListener.getCharset());\n SendData(bytes, 0, bytes.length);\n }",
"public void writeToServer() throws IOException {\n\t\tserverBuffer.writeTo(serverChannel);\n\t\tif (serverBuffer.isReadyToWrite()) {\n\t\t\tregister();\n\t\t}\n\t}",
"protected final synchronized boolean send(final Object data, final Commands overWrite) {\n\t\ttry {\n\t\t\t// verificamos si la conexion esta cerrada\n\t\t\tif (this.getConnection().isClosed())\n\t\t\t\t// retornamos false\n\t\t\t\treturn false;\n\t\t\t// mostramos un mensaje\n\t\t\tthis.getLogger().debug((data instanceof Commands || overWrite != null ? \"<<= \" : \"<<< \") + (overWrite != null ? overWrite : data));\n\t\t\t// verificamos si es un comando\n\t\t\tif (!this.getLocalStage().equals(Stage.POST) && data instanceof Commands || overWrite != null)\n\t\t\t\t// almacenamos el ultimo comando enviado\n\t\t\t\tthis.lastCommand = overWrite != null ? overWrite : (Commands) data;\n\t\t\t// enviamos el dato\n\t\t\tthis.getOutputStream().writeObject(data);\n\t\t\t// escribimos el dato\n\t\t\tthis.getOutputStream().flush();\n\t\t} catch (final IOException e) {\n\t\t\t// mostramos el trace\n\t\t\tthis.getLogger().error(e);\n\t\t\t// retornamos false\n\t\t\treturn false;\n\t\t}\n\t\t// retornamos true\n\t\treturn true;\n\t}",
"public void authenticate(View view) {\n String value = makeXor(xorNum.getBytes(), key.getBytes());\n\n if(socket.isConnected()){\n try {\n socket.getOutputStream().write(value.getBytes());\n socket.getOutputStream().flush();\n Toast.makeText(ControlActivity.this, \"Message Sent\", Toast.LENGTH_SHORT).show();\n } catch (IOException e) {\n e.printStackTrace();\n Toast.makeText(ControlActivity.this, \"Error in sending message\", Toast.LENGTH_SHORT).show();\n }\n }else{\n Toast.makeText(ControlActivity.this, \"Bluetooth connection lost!\", Toast.LENGTH_SHORT).show();\n }\n\n\n }",
"public void send_data(int curr_portNo, String data_send) {\n\t\ttry {\n\t\t\tSocket baseSocket = new Socket(Content_Provider.ipAdd, curr_portNo);\n\t\t\tPrintWriter toPeer = new PrintWriter(new BufferedWriter(\n\t\t\t\t\tnew OutputStreamWriter(baseSocket.getOutputStream())), true);\n\t\t\ttoPeer.println(data_send);\n\t\t\tbaseSocket.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void write(String s) {\n\n try {\n // Add the delimiter\n s += DELIMITER;\n\n // Convert to bytes and write\n outStream.write(s.getBytes());\n Log.i(TAG, \"[SENT] \" + s);\n\n } catch (Exception e) {\n Log.e(TAG, \"Write failed!\", e);\n }\n }",
"void encrypt(ChannelBuffer buffer, Channel c);",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\ts=new Socket();\n\t\t\t\ttry {\n\t\t\t\t\ts.connect(new InetSocketAddress(InetAddress.getByName(ip), 21111), 2000);\n\t\t\t\t\tin=s.getInputStream();\n\t\t\t\t\tdis=new DataInputStream(in);\n\t\t\t\t\tout=s.getOutputStream();\n\t\t\t\t\tdos=new DataOutputStream(out);\n\t\t\t\t\tsendString(pass);\n\t\t\t\t\twhile(state)\n\t\t\t\t\t{\n\t\t\t\t\t\tint bufferSize=dis.readInt();\n\t\t\t\t\t\tfinal byte[] buffer=new byte[bufferSize];\n\t\t\t\t\t\tdis.readFully(buffer);\n\t\t\t\t\t\t\n\t\t\t\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\tif(new String(buffer).equals(\"WRONG\"))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"wrong password\", Toast.LENGTH_LONG).show();\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if(new String(buffer).equals(\"ACCEPT\"))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"ACCEPTED\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\ts.close();\n\t\t\t\t\tstate=false;\n\t\t\t\t\tfinish();\n\t\t\t\t\t\n\t\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"error first\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"error first\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\n\t\t\t\t\tstate=false;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"public void encodeAndSend(String msg)\n\t{\n\t\tif (isClosed())\n\t\t\treturn;\n\t\ttry\n\t\t{\n\t\t\tCharset charset = Charset.forName(\"ISO-8859-1\");\n\t\t\tCharsetEncoder encoder = charset.newEncoder();\n\t\t\tByteBuffer bbuf = encoder.encode(CharBuffer.wrap(msg));\n\t\t\toutToClient.write(bbuf.array());\n\t\t\toutToClient.flush();\n\t\t\tlastOutput = 0;\n\t\t\t\n\t\t\t// Copy output to anyone snooping this connection.\n\t\t\tfor (UserCon c : conns)\n\t\t\t\tif (c.snoop == this)\n\t\t\t\t\tc.encodeAndSend(\"} \"+msg);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tif (!e.getMessage().equals(\"Broken pipe\"))\n\t\t\t{\n\t\t\t\tsysLog(\"bugs\", \"Error in encodeAndSend: \"+e.getMessage());\n\t\t\t\tlogException(e);\n\t\t\t}\n\t\t\telse\n\t\t\t\tcloseSocket();\n\t\t}\n\t}",
"public void write(byte[] buffer);",
"@Override\n\tpublic void EmergencySend(byte[] data) {\n\t\t\n\t}",
"@Override\n public void write(Data dataPacket) throws IOException {\n }",
"public void send(byte[] data) {\n final Payload payload = new Payload(OPCODE_BINARY, data);\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n webSocketConnection.sendInternal(payload);\n }\n }).start();\n }",
"@Override\n\tpublic void sendData(CharSequence data) {\n\t\t\n\t}",
"private void sendData(String message) {\n\t\t\ttry {\n\t\t\t\toutput.writeObject(message);\n\t\t\t\toutput.flush(); // flush output to client\n\t\t\t} catch (IOException ioException) {\n\t\t\t\tSystem.out.println(\"\\nError writing object\");\n\t\t\t}\n\t\t}",
"public void sendData(Datapacket packet){\n try {\n oos.flush();\n oos.reset();\n oos.writeObject(packet);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private synchronized void writeInternal(final byte[] data, int offset,\n int length) throws IOException {\n while (length > 0) {\n checkStreamState();\n final int availableBufferBytes = MAX_DATA_BYTES_PER_REQUEST\n - this.outBuffer.size();\n final int nextWrite = Math.min(availableBufferBytes, length);\n\n outBuffer.write(data, offset, nextWrite);\n offset += nextWrite;\n length -= nextWrite;\n\n if (outBuffer.size() > MAX_DATA_BYTES_PER_REQUEST) {\n throw new RuntimeException(\"Internal error: maximum write size \" +\n Integer.toString(MAX_DATA_BYTES_PER_REQUEST) + \"exceeded.\");\n }\n\n if (outBuffer.size() == MAX_DATA_BYTES_PER_REQUEST) {\n flushIOBuffers();\n }\n }\n }",
"public void sendMsgToClient() {\n\n try {\n\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())), true);\n\n Log.d(TAG, \"The transmitted data:\" + msg);\n\n writer.println(msg);\n\n } catch (Exception e) {\n\n e.printStackTrace();\n\n }\n\n }",
"private void receive() throws IOException {\n byte[] lengthBuffer = new byte[4];\n dataInput.readFully(lengthBuffer);\n int length = Utilities.getIntFromByte(lengthBuffer, 0);\n pipedOutputStream.write(Utilities.getBytes(length));\n\n //now read the data indicated by length and write it to buffer\n byte[] buffer = new byte[length];\n dataInput.readFully(buffer);\n pipedOutputStream.write(buffer);\n pipedOutputStream.flush();\n clientBlocker();\n }",
"private void sendDataMsgToClient(String msg) {\n if (dataConnection == null || dataConnection.isClosed()) {\n sendMsgToClient(\"425 No data connection was established\");\n debugOutput(\"Cannot send message, because no data connection is established\");\n } else {\n dataOutWriter.print(msg + '\\r' + '\\n');\n }\n\n }",
"@Override\n public void write(byte[] data) throws IOException {\n for (int i = 0; i < data.length; i++) {\n write(data[i]);\n }\n }",
"protected void onChannelData(SshMsgChannelData msg) throws IOException {\r\n if(firstPacket) {\r\n\t if(dataSoFar==null) {\r\n\t dataSoFar = msg.getChannelData();\r\n\t } else {\r\n\t byte newData[] = msg.getChannelData();\r\n\t byte data[] = new byte[dataSoFar.length+newData.length];\r\n\t System.arraycopy(dataSoFar, 0, data, 0, dataSoFar.length);\r\n\t System.arraycopy(newData, 0, data, dataSoFar.length, newData.length);\r\n\t dataSoFar = data;\r\n\t }\r\n\t if(allDataCheckSubst()) {\r\n\t firstPacket = false;\r\n\t socket.getOutputStream().write(dataSoFar);\r\n\t }\r\n } else {\r\n\t try {\r\n\t socket.getOutputStream().write(msg.getChannelData());\r\n\t }\r\n\t catch (IOException ex) {\r\n\t }\r\n }\r\n }",
"private void sendSocket()\n {\n InputStreamReader reader = null;\n BufferedReader bufferreader = null;\n Socket socket = null;\n try{\n socket = new Socket(address, port);\n OutputStream outputstream = socket.getOutputStream();\n DataOutputStream dataOutputStream = new DataOutputStream(outputstream);\n OutputStreamWriter outputStreamWriter = new OutputStreamWriter(dataOutputStream);\n String tem_msg = \"\";\n if(SEND_FILE==0)\n {\n tem_msg = original_name;\n }\n tem_msg = tem_msg+msg;\n// outputstream.write(msg.getBytes());\n// outputstream.flush();\n //dataOutputStream.writeUTF(msg);\n //dataOutputStream.flush();\n outputStreamWriter.write(tem_msg);\n outputStreamWriter.flush();\n //DataInputStream dataInputStream = new DataInputStream(socket.getInputStream());\n //InputStreamReader inputStreamReader = new InputStreamReader(dataInputStream);\n //dataOutputStream.close();\n socket.shutdownOutput();\n\n InputStream inputstream = socket.getInputStream();\n reader = new InputStreamReader(inputstream);\n bufferreader = new BufferedReader(reader);\n String tem = null;\n final StringBuffer stringb = new StringBuffer();\n while((tem=bufferreader.readLine())!=null){\n stringb.append(tem);\n }\n sendMsg(msg_what, stringb.toString());\n dataOutputStream.flush();\n dataOutputStream.close();\n socket.close();\n inputstream.close();\n }catch(UnknownHostException e){\n e.printStackTrace();\n }catch(IOException e){\n e.printStackTrace();\n }finally {\n try{\n if(bufferreader!=null)\n bufferreader.close();\n }catch(IOException ex){\n ex.printStackTrace();\n }\n }\n }",
"private void sendData(String data) {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"Sending data: '\" + data + \"'\");\n\n\t\t\t\t// open the streams and send the \"y\" character\n\t\t\t\toutput = serialPort.getOutputStream();\n\t\t\t\toutput.write(data.getBytes());\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(e.toString());\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t}",
"public boolean sendData(String data, String prefix) throws IOException;",
"private boolean flushWrite(final boolean block) throws IOException, BadDescriptorException {\n if (reading || !modes.isWritable() || buffer.position() == 0) return false; // Don't bother\n int len = buffer.position();\n int nWritten = 0;\n buffer.flip();\n \n // For Sockets, only write as much as will fit.\n if (descriptor.getChannel() instanceof SelectableChannel) {\n SelectableChannel selectableChannel = (SelectableChannel)descriptor.getChannel();\n synchronized (selectableChannel.blockingLock()) {\n boolean oldBlocking = selectableChannel.isBlocking();\n try {\n if (oldBlocking != block) {\n selectableChannel.configureBlocking(block);\n }\n nWritten = descriptor.write(buffer);\n } finally {\n if (oldBlocking != block) {\n selectableChannel.configureBlocking(oldBlocking);\n }\n }\n }\n } else {\n nWritten = descriptor.write(buffer);\n }\n if (nWritten != len) {\n buffer.compact();\n return false;\n }\n buffer.clear();\n return true;\n }",
"public void write(String message) {\n Log.d(TAG, \"...Data to send: \" + message + \"...\");\n byte[] msgBuffer = message.getBytes();\n try {\n mmOutStream.write(msgBuffer);\n } catch (IOException e) {\n Log.d(TAG, \"...Error data send: \" + e.getMessage() + \"...\");\n }\n }",
"public void write(String message) {\n Log.d(TAG, \"...Data to send: \" + message + \"...\");\n byte[] msgBuffer = message.getBytes();\n try {\n mmOutStream.write(msgBuffer);\n } catch (IOException e) {\n Log.d(TAG, \"...Error data send: \" + e.getMessage() + \"...\");\n }\n }",
"void beginSendData(){\n stopSendThread = false;\n final Thread thread = new Thread(new Runnable() {\n\n public void run() {\n while(!Thread.currentThread().isInterrupted() && !stopSendThread){\n try{\n try {\n Thread.currentThread().sleep(100);\n\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n String string = \":1\" + (char)speedLeft + (char)speedRight + \"@\";\n try {\n os.write(string.getBytes());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n } catch (Exception e){\n e.printStackTrace();\n stopSendThread = true;\n }\n\n\n }\n\n }\n });\n thread.start();\n System.out.println(\"koniec funkcji startsend\");\n }",
"protected abstract void sendInternal(ByteBuffer outputBuffer) throws IOException;",
"public abstract void writeToStream(DataOutputStream dataOutputStream);",
"@Override\n public void stream(T data) {\n channel.write(new DataMessage<>(data));\n }",
"public void sendData(String data) {// send data\n\t\tthis.data = data;\n\t\tthis.start();// spin up a new thread to send data\n\t}",
"public void write(BufferedDataOutputStream o) throws FitsException {\n\n this.writeTrueData(o);\n byte[] padding = new byte[getPadding()];\n try {\n o.writePrimitiveArray(padding);\n } catch (IOException e) {\n throw new FitsException (\"Error writing padding: \"+e);\n }\n\n }",
"private void flushWrite() throws IOException, BadDescriptorException {\n if (reading || !modes.isWritable() || buffer.position() == 0) return; // Don't bother\n \n int len = buffer.position();\n buffer.flip();\n int n = descriptor.write(buffer);\n \n if(n != len) {\n // TODO: check the return value here\n }\n buffer.clear();\n }"
] | [
"0.6754762",
"0.629491",
"0.6241638",
"0.6183069",
"0.61535794",
"0.61263293",
"0.5978093",
"0.5920339",
"0.5908464",
"0.5876375",
"0.58630985",
"0.5792926",
"0.5781449",
"0.5736547",
"0.57220405",
"0.5719422",
"0.5718065",
"0.5688631",
"0.567896",
"0.5620846",
"0.5610216",
"0.5584223",
"0.5569218",
"0.55675465",
"0.55571336",
"0.5542409",
"0.5535121",
"0.5534748",
"0.5531774",
"0.5528848",
"0.5521735",
"0.5515439",
"0.55094874",
"0.54986423",
"0.5478521",
"0.54742277",
"0.5462621",
"0.5455821",
"0.54540616",
"0.54484445",
"0.5441338",
"0.5439034",
"0.5428648",
"0.54155326",
"0.5414717",
"0.5412343",
"0.54003745",
"0.53944176",
"0.5373491",
"0.5370758",
"0.53541106",
"0.53319097",
"0.5310956",
"0.52961135",
"0.52855754",
"0.52782094",
"0.52610713",
"0.52403575",
"0.52173096",
"0.5202527",
"0.51832974",
"0.51708746",
"0.51579607",
"0.5157638",
"0.51564866",
"0.51519406",
"0.5151872",
"0.5142577",
"0.514008",
"0.512362",
"0.51227516",
"0.5120148",
"0.51193774",
"0.51127666",
"0.5112088",
"0.5106976",
"0.5094079",
"0.50920624",
"0.50776136",
"0.5075589",
"0.50533175",
"0.5030245",
"0.5012779",
"0.5010416",
"0.50101197",
"0.5009429",
"0.50032115",
"0.4999652",
"0.49903142",
"0.49900848",
"0.4986533",
"0.4981982",
"0.4981982",
"0.49793607",
"0.49630222",
"0.49576083",
"0.49397397",
"0.49350592",
"0.49350417",
"0.4933023"
] | 0.7506305 | 0 |
Called when a ping is received from the server, returns a pong | @Override
public void ping() {
//respond to ping with pong
lastPing = System.currentTimeMillis();
this.writeNow("type:pong;");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ping() {\n JsonNode rootNode = get(\"ping\");\n\n // TODO verify that the response was \"Pong!\"\n JsonNode dataNode = rootNode.get(\"data\");\n String pong = dataNode.asText();\n }",
"private void replyToPeerPing(final ByteString payload) {\n Runnable replierPong = new NamedRunnable(\"OkHttp %s WebSocket Pong Reply\", name) {\n @Override protected void execute() {\n try {\n writer.writePong(payload);\n } catch (IOException t) {\n Platform.get().log(Platform.INFO, \"Unable to send pong reply in response to peer ping.\", t);\n }\n }\n };\n synchronized (replier) {\n if (!isShutdown) {\n replier.execute(replierPong);\n }\n }\n }",
"public String getPing() {\r\n return ping;\r\n }",
"protected void pingReceived(){\r\n\t\tpings++;\r\n\t\troundTrip = System.currentTimeMillis() - pingSent;\r\n\t\tlastPing = System.currentTimeMillis();\r\n\t\tlog.trace(\"\\\"\" + getName() + \"\\\" responded to ping after \" + roundTrip + \"ms\");\r\n\t}",
"public void pong(String afterPing) throws IOException\n\t{\n\t\twriter.write(\"PONG \" + afterPing + \"\\r\\n\");\n\t\twriter.flush();\n\t}",
"private void handlePongEvent(PongEvent event) {\t\t\n \t\tevent.loadMessage();\n \t\t//System.out.println(\"Received a pong event from: \" + event.getClientAddress());\n \n \t\tVsClientManagement.resetPongTimer(event.getClientAddress(), this.listenAddress);\n \t}",
"public abstract void onPongReceived(byte[] data);",
"public void sendPong(String server)\n\t{\n\t\tsendRaw(\"PONG :\" + server);\n\t}",
"public abstract void onPingReceived(byte[] data);",
"public PingMessage receivePing()\n {\n Date date = new Date();\n String dateString = String.format(\"%tc\", date);\n byte recvBuf[] = new byte[PACKET_SIZE];\n DatagramPacket recvPacket = \n\t new DatagramPacket(recvBuf, PACKET_SIZE);\n PingMessage reply = null;\n try\n {\n socket.receive(recvPacket);\n System.out.println(\"Received packet from \" + recvPacket.getAddress()\n + \" \" + recvPacket.getPort() + \" \" + dateString);\n String recvMsg = new String(recvPacket.getData());\n\t reply = new PingMessage(recvPacket.getAddress(),\n recvPacket.getPort(), recvMsg);\n }\n catch (Exception ex)\n {\n System.out.println(\"receivePing...java.net.SocketTimeoutException: \" +\n \"Receive timed out\");\n }\n return reply;\n }",
"public long getPing()\n\t{\n\t\t\n\t\treturn clientPing;\n\t\t\n\t}",
"private void handlePingFrame() throws IOException {\n // read all of the ping payload\n byte[] pingPayload = consumePayload();\n outputPeer.writePong(pingPayload);\n }",
"@Override\n public String ping() {\n return super.ping();\n }",
"public TowerSpot receivePing()\n {\n try\n {\n datagram.reset();\n radioConn.receive(datagram);\n return new TowerSpot(datagram.getAddress(),\n ((Radiogram)datagram).getRssi());\n } catch (IOException e) {\n System.err.println(\"Error while waiting on packet\");\n }\n return null;\n }",
"@Override\n\tpublic void pong() {\n\t\t//shouldnt't ever be ponged, just here because pretty interface\n\t}",
"public void ping() throws IOException {\r\n\t\t//Pings the server\r\n\t\tthis.send(\"!ping\");\r\n\t\t//Updates the time since the ping\r\n\t\ttimeSincePing = System.currentTimeMillis();\r\n\t\t//System.out.println(\"Ping!\");\r\n\t}",
"public void ping(){\r\n\t\t uSensor.ping();\r\n\t }",
"public void sendPong(byte[] data) {\n final Payload payload = new Payload(OPCODE_PONG, data);\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n webSocketConnection.sendInternal(payload);\n }\n }).start();\n }",
"public static void ping() {}",
"public static void ping() {}",
"private void startPingTimer() {\n\n Timer timer = new Timer();\n TimerTask task = new TimerTask() {\n @Override\n public void run() {\n\n if (pong) {\n send(\"<ping/>\");\n pong = false;\n } else {\n System.out.println(\"[CLIENT] No pong received. Client will now be disconnected.\");\n clientController.onMissingPong();\n closeConnection();\n timer.cancel();\n }\n\n }\n };\n timer.scheduleAtFixedRate(task, 0, 20000);\n\n }",
"public long getPingInterval()\n {\n return _pingInterval;\n }",
"public boolean ping();",
"public boolean isPing()\n {\n return _isPing;\n }",
"private void handlePongFrame() throws IOException {\n // read all of the pong payload\n consumePayload();\n }",
"public String determinePing(String ip) {\r\n if(ip.isEmpty()) {\r\n System.out.println(\"PING NOT AVAILABLE\");\r\n ping = \"Not Available\";\r\n return ping;\r\n }\r\n \r\n String command = \"ping \" + ip;\r\n\r\n try{\r\n Process proc = Runtime.getRuntime().exec(command);\r\n BufferedReader input = new BufferedReader(new InputStreamReader(proc.getInputStream()));\r\n String line;\r\n while((line = input.readLine()) != null) {\r\n if(line.length() > 0 && line.contains(\"time=\")) {\r\n System.out.println(line);\r\n input.close();\r\n String timeString = line.substring(line.indexOf(\"time\"));\r\n String time = timeString.substring(timeString.indexOf(\"=\") + 1, timeString.indexOf(\"ms\") + 2);\r\n ping = time;\r\n return ping;\r\n }\r\n }\r\n }\r\n catch(Exception e){\r\n System.out.println(e);\r\n }\r\n\r\n return \"SERVERS ON FIRE\";\r\n }",
"public boolean pingServer() {\n WifiMouseApplication.KnownServer selected = WifiMouseApplication.getSelectedServer();\n if(this.server.name != selected.name || this.server.bluetooth != selected.bluetooth)\n return false;\n\n sendStringOverNetwork(\"PING\", true);\n //Log.d(\"Waiting for ping...\", \"count: \"+(++count) +\", sessionIv: \"+sessionIV);\n String response = readStringFromNetwork(true);\n //Log.d(\"PingResponse\", \" \"+response);\n\n return response.equals(\"PING\");\n }",
"protected void ping() {\n\t\tpingCount ++;\n\t\tif(pingCount > 5) {\n\t\t\tlog.debug(\"pingCount is exceed, so close this connection.\");\n\t\t\tclose();\n\t\t\treturn;\n\t\t}\n\t\tsendData(\"<ping />\");\n\t}",
"private void notifyOnPongReceived(byte[] data) {\n synchronized (globalLock) {\n if (isRunning) {\n onPongReceived(data);\n }\n }\n }",
"@GET\n @Path(\"/ping\")\n\tpublic Response ping() {\n\t\tlog.debug(\"Ping check ok\");\n return Response.status(Response.Status.OK).entity(1).build();\n \n\t}",
"@Override\n\t\t\tpublic void handle(Long event) {\n\t\t\t\tvertx.eventBus().send( \"ping\", \"pingmessage\", new DeliveryOptions().\n\t\t\t\t setSendTimeout(500), reply -> {\n\t\t\t\t if (reply.succeeded()) {\n\t\t\t\t log.info(\"Received respone: \" + reply.result().body());\n\t\t\t\t } else {\n\t\t\t\t log.info(\"Received no respone\");\n\t\t\t\t }\n\t\t\t\t });\n\t\t\t}",
"public int getPing ( ) {\n\t\t// TODO: backwards compatibility required\n\t\treturn extract ( handle -> getPing ( ) );\n\t}",
"public Thread asyncPing() {\n Gson gson = new Gson();\n PingMessage pingMessage = new PingMessage(\"ping\");\n return new Thread(() -> {\n try {\n while (!socket.isClosed() && !Command.checkError()) {\n Command.sendMessage(gson.toJson(new MessageEnvelope(MessageType.PING, gson.toJson(pingMessage, PingMessage.class)), MessageEnvelope.class));\n Thread.sleep(500);\n }\n } catch (InterruptedException e) {\n view.showError(\"Error ping thread interrupted\");\n }\n });\n }",
"public Attributes getPingBytes() { return this.pingBytes; }",
"public void receiveResultping(\n com.xteam.tourismpay.PFTMXStub.PingResponse result) {\n }",
"public void\n ping() {\n }",
"@Test\n public void clientPingsServer() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// PING\n\n peer.sendFrame().ping(true, 1, 5);\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n long pingAtNanos = System.nanoTime();\n connection.writePingAndAwaitPong();\n long elapsedNanos = (System.nanoTime()) - pingAtNanos;\n Assert.assertTrue((elapsedNanos > 0));\n Assert.assertTrue((elapsedNanos < (TimeUnit.SECONDS.toNanos(1))));\n // verify the peer received what was expected\n MockHttp2Peer.InFrame pingFrame = peer.takeFrame();\n Assert.assertEquals(TYPE_PING, pingFrame.type);\n Assert.assertEquals(0, pingFrame.streamId);\n Assert.assertEquals(1330343787, pingFrame.payload1);// OkOk\n\n Assert.assertEquals(-257978967, pingFrame.payload2);// donut\n\n Assert.assertFalse(pingFrame.ack);\n }",
"public String getPingQuery()\n {\n return _pingQuery;\n }",
"private Message onPingMessageReceived(PingMessage m, DecentSocket origin) {\n\t\treturn null;\n\t}",
"public void sendPing(PingMessage ping)\n {\n InetAddress host = ping.getIP();\n int port = ping.getPort();\n String msg = ping.getPayload();\n try\n {\n DatagramPacket packet = \n new DatagramPacket(msg.getBytes(), msg.length(), host, port);\n socket.send(packet);\n } \n catch (Exception ex)\n {\n System.out.println(\"UDPPinger Exception: \" + ex);\n }\n }",
"public ModelApiResponse ping() throws AuthenticationApiException {\n try {\n return authenticationApi.ping();\n } catch (ApiException e) {\n throw new AuthenticationApiException(\"Error during keep alive ping\", e);\n }\n }",
"public void ping(boolean lastPing) {\n\n\t\tSystem.out.println(\"Host is sending a ping...\");\n\t\t\n\t\ttry {\n\t\t\tDatagramSocket pingSocket = new DatagramSocket(Constants.Network.HOST_UDP_PORT);\n\n\t\t\tfor(ClientConnection cc : clients.values()) {\n\n\t\t\t\tInetAddress address = cc.addr;\n\t\t\t\tint port = cc.udpPort; \n\n\t\t\t\tSystem.out.println(\"Sending ping to \" + address.toString() + \":\" + port);\n\n\t\t\t\tlong currentTime = System.currentTimeMillis();\n\n\t\t\t\tbyte[] buf = new byte[9];\n\n\t\t\t\t//byte[] buf = Utils.longToBytes(currentTime);\n\n\t\t\t\tboolean successfulReceipt = false;\n\n\t\t\t\twhile(! successfulReceipt ) {\n\n\t\t\t\t\t// If this is the last ping, we set the last byte to be our LAST_PING flag, and \n\t\t\t\t\t// tell the client how much they should buffer before playing.\n\t\t\t\t\tif(lastPing) {\n\t\t\t\t\t\tbuf[8] = Constants.Network.STOP_WAITING_FOR_PINGS;\n\n\t\t\t\t\t\tlong bufferingAmount = calculateInitialBufferTimeForClient(cc, bufferTime);\n\n\t\t\t\t\t\tUtils.inPlaceLongToBytes(bufferingAmount, buf);\n\n\t\t\t\t\t\tSystem.out.println(\"Telling client to set initial buffering time to \" + bufferingAmount);\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tDatagramPacket packet = new DatagramPacket(buf, buf.length, address, port);\n\t\t\t\t\t\tpingSocket.send(packet);\n\n\n\t\t\t\t\t\tpingSocket.setSoTimeout((int) (cc.averageLatencyInMillis() + 1000));\n\t\t\t\t\t\tDatagramPacket receipt = new DatagramPacket(buf, buf.length);\n\t\t\t\t\t\tpingSocket.receive(receipt);\n\t\t\t\t\t\tsuccessfulReceipt = true;\n\t\t\t\t\t} catch (SocketTimeoutException e) {\n\t\t\t\t\t\tSystem.out.println(\"Did not receive a response in \" + (cc.averageLatencyInMillis() + 1000) + \" ms, trying again...\");\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tlong timeDifference = (System.currentTimeMillis() - currentTime) / 2;\n\n\t\t\t\tSystem.out.println(\"Host reported a time difference of \" + timeDifference + \" milliseconds from \" + cc.addr);\n\n\t\t\t\tcc.addLatencyNumber((System.currentTimeMillis() - currentTime) / 2);\n\t\t\t}\n\n\t\t\tpingSocket.close();\n\n\t\t} catch(SocketException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif(lastPing)\n\t\t\tSystem.out.println(\"Host done sending pings.\");\n\n\t}",
"public TestResponse ping() {\n TestResponse responseBody = new TestResponse();\n responseBody.setMessage(TEST_MESSAGE);\n responseBody.setDateTimeMessage(LocalDateTime.now());\n return responseBody;\n }",
"public static ServerStatus ping(String address) {\n MCPingOptions options = getPingOptions(address);\n Instant timestamp = Instant.now();\n MCPingResponse ping = null;\n\n try {\n ping = MCPing.getPing(options);\n } catch (IOException e) {\n //TODO differentiate between different types of exceptions, i.e. UnknownHostException,\n log.error(\"Error while pinging Minecraft server\", e);\n }\n\n return new ServerStatus(address, ping, ping != null, timestamp);\n }",
"@GetMapping(\"ping\")\n public String ping() {\n return \"pong\";\n }",
"public final void pong(ByteString payload) throws IOException {\n if (payload == null) throw new NullPointerException(\"payload == null\");\n if (senderSentClose) throw new IllegalStateException(\"closed\");\n if (senderWantsClose) throw new IllegalStateException(\"must call close()\");\n if (Thread.currentThread() == looperThread) {\n throw new IllegalStateException(\"attempting to write from reader thread\");\n }\n\n try {\n writer.writePong(payload);\n } catch (IOException e) {\n senderWantsClose = true;\n throw e;\n }\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\t\tObjectNode objectNode = mapper.createObjectNode();\n\t\t\t\t\tobjectNode.put(\"type\", \"PING\");\n\n\t\t\t\t\twebSocket.sendText(mapper.writerWithDefaultPrettyPrinter().writeValueAsString(objectNode));\n\n\t\t\t\t\tlog.debug(\"Send Ping to Twitch PubSub. (Keep-Connection-Alive)\");\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tlog.error(\"Failed to Ping Twitch PubSub. ({})\", ex.getMessage());\n\t\t\t\t\treconnect();\n\t\t\t\t}\n\n\t\t\t}",
"private void onPingingTimerTick()\r\n {\r\n EneterTrace aTrace = EneterTrace.entering();\r\n try\r\n {\r\n try\r\n {\r\n myConnectionManipulatorLock.lock();\r\n try\r\n {\r\n // Send the ping message.\r\n myUnderlyingOutputChannel.sendMessage(myPreserializedPingMessage);\r\n\r\n // Schedule the next ping.\r\n myPingingTimer.change(myPingFrequency);\r\n }\r\n finally\r\n {\r\n myConnectionManipulatorLock.unlock();\r\n }\r\n }\r\n catch (Exception err)\r\n {\r\n // The sending of the ping message failed - the connection is broken.\r\n cleanAfterConnection(true, true);\r\n }\r\n }\r\n finally\r\n {\r\n EneterTrace.leaving(aTrace);\r\n }\r\n }",
"public boolean getPingOnIdle()\n {\n return _isPing;\n }",
"@Test\n public void unexpectedPingIsNotReturned() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.sendFrame().ping(false, 2, 0);\n peer.acceptFrame();// PING\n\n peer.sendFrame().ping(true, 3, 0);// This ping will not be returned.\n\n peer.sendFrame().ping(false, 4, 0);\n peer.acceptFrame();// PING\n\n peer.play();\n // play it back\n connect(peer);\n // verify the peer received what was expected\n MockHttp2Peer.InFrame ping2 = peer.takeFrame();\n Assert.assertEquals(2, ping2.payload1);\n MockHttp2Peer.InFrame ping4 = peer.takeFrame();\n Assert.assertEquals(4, ping4.payload1);\n }",
"public Boolean ping() throws CallError, InterruptedException {\n return (Boolean)service.call(\"ping\").get();\n }",
"public void ping() {\n\t\tHeader.Builder hb = Header.newBuilder();\n\t\thb.setNodeId(999);\n\t\thb.setTime(System.currentTimeMillis());\n\t\thb.setDestination(-1);\n\n\t\tCommandMessage.Builder rb = CommandMessage.newBuilder();\n\t\trb.setHeader(hb);\n\t\trb.setPing(true);\n\n\t\ttry {\n\t\t\t// direct no queue\n\t\t\t// CommConnection.getInstance().write(rb.build());\n\n\t\t\t// using queue\n\t\t\tCommConnection.getInstance().enqueue(rb.build());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Test\n public void serverPingsClient() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.sendFrame().ping(false, 2, 0);\n peer.acceptFrame();// PING\n\n peer.play();\n // play it back\n connect(peer);\n // verify the peer received what was expected\n MockHttp2Peer.InFrame ping = peer.takeFrame();\n Assert.assertEquals(0, ping.streamId);\n Assert.assertEquals(2, ping.payload1);\n Assert.assertEquals(0, ping.payload2);\n Assert.assertTrue(ping.ack);\n }",
"@Override\n\tpublic String ping() {\n\t\treturn null;\n\t}",
"private double pingGetLatency(){\n\t\t int NUMBER_OF_PACKTETS=10;\n\t String pingCommand = \"/system/bin/ping -c \" + NUMBER_OF_PACKTETS + \" \" + ip;\n\t String inputLine = \"\";\n\t double avgRtt = 0;\n\n\t try {\n\t // execute the command on the environment interface\n\t Process process = Runtime.getRuntime().exec(pingCommand);\n\t // gets the input stream to get the output of the executed command\n\t BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream()));\n\n\t inputLine = bufferedReader.readLine();\n\t while ((inputLine != null)) {\n\t if (inputLine.length() > 0 && inputLine.contains(\"avg\")) { // when we get to the last line of executed ping command\n\t break;\n\t }\n//\t \t if (inputLine.length()>0) inputLine = bufferedReader.readLine();\n\t inputLine = bufferedReader.readLine();\n\t }\n\t }\n\t catch (IOException e){\n\t \t pingParameters=\"Error in ping\";\n\t e.printStackTrace();\n\t }\n\n\t // Extracting the average round trip time from the inputLine string\n\t String afterEqual = inputLine.substring(inputLine.indexOf(\"=\"), inputLine.length()).trim();\n\t String afterFirstSlash = afterEqual.substring(afterEqual.indexOf('/') + 1, afterEqual.length()).trim();\n\t String strAvgRtt = afterFirstSlash.substring(0, afterFirstSlash.indexOf('/'));\n\t avgRtt = Double.valueOf(strAvgRtt);\n\t pingParameters=inputLine;\n\t return avgRtt;\n\t }",
"void asyncEventPing();",
"public void setPing(boolean ping)\n {\n _isPing = ping;\n }",
"public void sendPing(byte[] data) {\n final Payload payload = new Payload(OPCODE_PING, data);\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n webSocketConnection.sendInternal(payload);\n }\n }).start();\n }",
"public void ping(int moteID) {\n\t\tmote.ping(moteID);\n\t}",
"private native String simplePing(int sessionId, String name, String pingStr);",
"@Test\n public void serverPingsClientHttp2() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.sendFrame().ping(false, 2, 3);\n peer.acceptFrame();// PING\n\n peer.play();\n // play it back\n connect(peer);\n // verify the peer received what was expected\n MockHttp2Peer.InFrame ping = peer.takeFrame();\n Assert.assertEquals(TYPE_PING, ping.type);\n Assert.assertEquals(0, ping.streamId);\n Assert.assertEquals(2, ping.payload1);\n Assert.assertEquals(3, ping.payload2);\n Assert.assertTrue(ping.ack);\n }",
"public abstract void ping2(\n com.google.protobuf.RpcController controller,\n org.apache.hadoop.ipc.protobuf.TestProtos.EmptyRequestProto request,\n com.google.protobuf.RpcCallback<org.apache.hadoop.ipc.protobuf.TestProtos.EmptyResponseProto> done);",
"public void pingToClient() {\n Thread t = new Thread(() -> {\n while (connected) {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n try {\n socketOut.writeObject(\"\");\n } catch (IOException e) {\n //e.printStackTrace();\n }\n }\n });\n t.start();\n }",
"@RequestMapping(value = \"/ping\", produces = \"text/plain\")\n public String ping() {\n return \"OK\";\n }",
"private void notifyOnPingReceived(byte[] data) {\n synchronized (globalLock) {\n if (isRunning) {\n onPingReceived(data);\n }\n }\n }",
"public abstract void ping2(\n com.google.protobuf.RpcController controller,\n org.apache.hadoop.ipc.protobuf.TestProtos.EmptyRequestProto request,\n com.google.protobuf.RpcCallback<org.apache.hadoop.ipc.protobuf.TestProtos.EmptyResponseProto> done);",
"public Future<Boolean> ping() throws DynamicCallException, ExecutionException {\n return call(\"ping\");\n }",
"public PingPongBuffer(PApplet papplet) {\n\t\tinitBuffers(papplet, papplet.width, papplet.height, null);\n\t}",
"private void doPing()\r\n {\r\n requestQueue.add( new ChargerHTTPConn( weakContext,\r\n CHARGE_NODE_JSON_DATA, \r\n PING_URL,\r\n SN_HOST,\r\n null, \r\n cookieData,\r\n false,\r\n token,\r\n secret ) );\r\n }",
"@Override\n public MinecraftServerEntity call(MinecraftServerEntity server) {\n server.setStatus(MinecraftServer.DetailedStatus.PINGING, true);\n return server;\n }",
"@Override\n protected CapsulePingResponse doInBackground(String... params) {\n if (this.mListener != null) {\n return this.mListener.duringCapsulePing(params);\n }\n return null;\n }",
"public abstract void ping(\n com.google.protobuf.RpcController controller,\n org.apache.hadoop.ipc.protobuf.TestProtos.EmptyRequestProto request,\n com.google.protobuf.RpcCallback<org.apache.hadoop.ipc.protobuf.TestProtos.EmptyResponseProto> done);",
"private void getPlayerStatusFromServer()\r\n\t{\r\n\t\ttry {\r\n\t\t\t// Create data input stream\r\n\t\t\tDataInputStream playerStatusInputFromServer = new DataInputStream(\r\n\t\t\t\t\tsocket.getInputStream());\r\n\t\t\tisPlayerAlive = playerStatusInputFromServer.readBoolean();\r\n\t\t\thasPlayerWon = playerStatusInputFromServer.readBoolean();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public abstract void ping(\n com.google.protobuf.RpcController controller,\n org.apache.hadoop.ipc.protobuf.TestProtos.EmptyRequestProto request,\n com.google.protobuf.RpcCallback<org.apache.hadoop.ipc.protobuf.TestProtos.EmptyResponseProto> done);",
"public interface NetworkCallbacks {\n boolean pingResponse(boolean isUp);\n}",
"boolean ping(String asker);",
"public TestPing(boolean request) {\n\t\tthis.request = request;\n\t\tp = new Ping(request);\n\t}",
"POGOProtos.Rpc.Item getPokeball();",
"private static Pair<KademliaNode, Boolean> pingGRPC(KademliaNode myNode, KademliaNode node){\n// logger.log(Level.INFO, \"Sending PING RPC to \" + node);\n\n ManagedChannel channel = ManagedChannelBuilder.forTarget(node.getIpAddress() + \":\" + node.getPort()).usePlaintext().build();\n AuctionBlockchainBlockingStub blockingStub = AuctionBlockchainGrpc.newBlockingStub(channel);\n// AuctionBlockchainBlockingStub blockingStub = AuctionBlockchainGrpc.newBlockingStub(channel).withDeadlineAfter(KademliaUtils.networkTimeoutMsecs, TimeUnit.MILLISECONDS);\n\n KademliaNodeProto response;\n\n try {\n response = blockingStub.ping(KademliaUtils.KademliaNodeToKademliaNodeProto(myNode));\n } catch (StatusRuntimeException e) {\n// logger.log(Level.WARNING, \"PING RPC failed for \" + node.getIpAddress() + \":\" + node.getPort() + \" - \" + e.getStatus());\n logger.log(Level.WARNING, \"PING RPC failed for \" + node);\n closeChannel(channel);\n return new Pair(null, false);\n }\n\n\n KademliaNode nodeInResponse = KademliaUtils.KademliaNodeProtoToKademliaNode(response);\n\n if (!Arrays.equals(node.getNodeID(), nodeInResponse.getNodeID())) {\n logger.log(Level.WARNING, \"Response returned with different nodeID\");\n closeChannel(channel);\n return new Pair(nodeInResponse, false);\n }\n\n closeChannel(channel);\n\n// logger.log(Level.INFO, \"Successfully sent PING RPC to \" + node);\n return new Pair(nodeInResponse, true);\n }",
"public String getPingTable()\n {\n return _pingTable;\n }",
"public void sendHeartbeat();",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-03-25 14:24:54.397 -0400\", hash_original_method = \"FC9A66B03EDC591DD9B38410E60AAA0B\", hash_generated_method = \"575EBCA96DF418DE2A7F2DFD0BCD9A9A\")\n \n public static boolean pingCommand(){\n \tdouble taintDouble = 0;\n \n \treturn ((taintDouble) == 1);\n }",
"@Override\n protected void onPostExecute(CapsulePingResponse response) {\n if (this.mListener != null) {\n this.mListener.onPostCapsulePing(response);\n }\n }",
"public static void main(String[] args) throws Exception\n {\n if (args.length != 2)\n {\n System.out.println(\"You need to inform host and port. (PingClient host port)\");\n return;\n } else {\n System.out.println(\"\\nHost: \"+args[0]+\"\\nPort number: \"+args[1]+\"\\n\");\n }\n \n // Get host by his name\n InetAddress host = InetAddress.getByName(args[0]);\n \n // Get informed port\n int portNumber = Integer.parseInt(args[1]);\n \n // Create a datagram socket used for sending and recieving packets\n DatagramSocket socket = new DatagramSocket();\n socket.setSoTimeout(1000);\n\n // Start loop to send packets \n for (int i = 0; i < 20; i++)\n {\n // Create ping message \n long sent_time = System.currentTimeMillis();\n String ping_message = pingMessage(i);\n\n // Create send packet\n DatagramPacket send_packet =\n new DatagramPacket(ping_message.getBytes(), ping_message.length(), host, portNumber);\n\n //Send ping request\n socket.send(send_packet);\n System.out.print(ping_message);\n\n //Datagram packet for the server response\n DatagramPacket receive_packet =\n new DatagramPacket(new byte[1024], 1024);\n\n //Wait for ping response\n try\n {\n // Response received\n socket.receive(receive_packet);\n long received_time = System.currentTimeMillis();\n System.out.println(\"Response received from \"+\n receive_packet.getAddress().getHostAddress() + \" \"+\"(time=\" + (received_time - sent_time) + \"ms)\");\n }\n // Catch timeout exception\n catch (SocketTimeoutException e)\n {\n System.out.println(\"Timeout\");\n }\n // Catch other exceptions\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n return;\n }\n\n }\n }",
"public boolean ping() throws RemoteException;",
"public String toString() {\n return \"(PingContent: \" + pingReqUID + \", \" + timeout + \")\";\n }",
"public boolean lastPongContains(ServentInfo input){\n\t\tfor(ServentInfo s : lastPong.keySet()){\n\t\t\tif(s.IP.equals(input.IP) && s.port == input.port){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public Boolean ping() throws DynamicCallException, ExecutionException {\n return (Boolean)call(\"ping\").get();\n }",
"public static boolean ping(String... varargs) {\n\t\t// setting the default value when argument's value is omitted\n\t\tString sessionID = varargs.length > 0 ? varargs[0] : null;\n\t\tsessionID = sessionId(sessionID);\n\t\tString url = apiUrl(sessionID, false) + \"Ping?sessionID=\" + PMA.pmaQ(sessionID);\n\t\ttry {\n\t\t\tURL urlResource = new URL(url);\n\t\t\tHttpURLConnection con;\n\t\t\tif (url.startsWith(\"https\")) {\n\t\t\t\tcon = (HttpsURLConnection) urlResource.openConnection();\n\t\t\t} else {\n\t\t\t\tcon = (HttpURLConnection) urlResource.openConnection();\n\t\t\t}\n\t\t\tcon.setRequestMethod(\"GET\");\n\t\t\tcon.setRequestProperty(\"Accept\", \"application/json\");\n\t\t\tString jsonString = PMA.getJSONAsStringBuffer(con).toString();\n\t\t\treturn jsonString.equals(\"true\") ? true : false;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tif (PMA.logger != null) {\n\t\t\t\tStringWriter sw = new StringWriter();\n\t\t\t\te.printStackTrace(new PrintWriter(sw));\n\t\t\t\tPMA.logger.severe(sw.toString());\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}",
"public void ping() throws RemoteException{\n return;\n }",
"public void setPingOnIdle(boolean pingOnIdle)\n {\n _isPing = pingOnIdle;\n }",
"@Override\n protected void onPostExecute(String s){\n super.onPostExecute(s);\n TextView textview = findViewById(R.id.status);\n try {\n JSONObject obj = new JSONObject(s);\n if(obj.getBoolean(\"alive\")){\n textview.setText(\"Server is Alive!\");\n }\n }catch(JSONException e){\n textview.setText(\"Server Offline!\");\n }\n }",
"public static ServerListPingEvent callServerListPingEvent(Server craftServer, InetAddress address, String motd, int numPlayers, int maxPlayers) {\n/* 422 */ ServerListPingEvent event = new ServerListPingEvent(address, motd, numPlayers, maxPlayers);\n/* 423 */ craftServer.getPluginManager().callEvent((Event)event);\n/* 424 */ return event;\n/* */ }",
"@GetMapping(value = \"/ping\",produces = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<String> pingService(InputStream req) {\n return new ResponseEntity<String>(\"{\\\"operation\\\": \\\"ping\\\", \\\"status\\\": \\\"SUCCESS\\\"}\", HttpStatus.OK);\n }",
"public PingPongBuffer(PApplet papplet, int width, int height) {\n\t\tinitBuffers(papplet, width, height, null);\n\t}",
"private double pinghua(double valueBefore, double valueNow) {\n\n return valueBefore * (1 - pinghRate) + valueNow * pinghRate;\n\n\n }",
"public UID getPingReqUID() { return pingReqUID; }",
"public void mo133093b() throws NotYetConnectedException {\n if (this.f113323v == null) {\n this.f113323v = new PingFrame();\n }\n sendFrame(this.f113323v);\n }",
"@Override\n public void run() {\n\n startPingTimer();\n String read = \"\";\n\n try {\n while ((read = in.readLine()) != null){\n\n //System.out.println(\"[CLIENT] Received: \" + read);\n messageHandler(read);\n\n }\n closeConnection();\n\n }catch (IOException e){\n\n System.out.println(\"[CLIENT] \" + e.getMessage());\n System.out.println(\"[CLIENT] Connection closed.\");\n\n }\n\n }",
"public void processPacket(String packet) {\n try {\n Log.e(\"info\", packet);\n JSONObject obj = new JSONObject(packet);\n JSONObject toSend = new JSONObject();\n String id = obj.getString(\"packet\");\n\n\n\n if (id.equals(\"acknowledge\")) {\n LocalPlayer ply = new LocalPlayer(activity);\n ply.identifier = socket.toString();\n ply.socket = socket;\n activity.playerMap.put(ply.identifier, ply);\n ply.latitude = 0;\n ply.longitude = 0;\n ply.bomb = false;\n ply.name = obj.getString(\"name\");\n ply.update();\n\n JSONObject playerObj = new JSONObject();\n\n playerObj.put(\"identifier\", ply.identifier);\n playerObj.put(\"latitude\", ply.latitude);\n playerObj.put(\"longitude\", ply.longitude);\n playerObj.put(\"name\", ply.name);\n playerObj.put(\"bomb\", ply.bomb);\n toSend.put(\"player\", playerObj);\n\n server.sendPacket(socket, \"initialize\", toSend);\n }\n else if (id.equals(\"bomb\")) {\n for (HashMap.Entry<String, LocalPlayer> entry : activity.playerMap.entrySet()) {\n entry.getValue().bomb = false;\n }\n LocalPlayer ply = activity.playerMap.get(obj.getString(\"identifier\"));\n if (ply.identifier.equals(activity.selfPlayer))\n Toast.makeText(activity, \"You got the bomb\", Toast.LENGTH_LONG).show();\n\n if (ply != null) {\n ply.bomb = true;\n }\n }\n else if (id.equals(\"location\")) {\n LocalPlayer ply = activity.playerMap.get(socket.toString());\n if (ply != null) {\n ply.longitude = obj.getDouble(\"longitude\");\n ply.latitude = obj.getDouble(\"latitude\");\n ply.update();\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }"
] | [
"0.8166462",
"0.71175617",
"0.6995177",
"0.69245195",
"0.6917279",
"0.68365866",
"0.6825229",
"0.6809777",
"0.67936873",
"0.65712744",
"0.65609163",
"0.6548212",
"0.6481814",
"0.637502",
"0.6338408",
"0.6314169",
"0.6280382",
"0.62748146",
"0.6251128",
"0.6251128",
"0.6180994",
"0.6177287",
"0.61757",
"0.616312",
"0.6136562",
"0.609643",
"0.60960907",
"0.6093248",
"0.60740423",
"0.6013196",
"0.60066587",
"0.59801936",
"0.59787136",
"0.59650654",
"0.5961482",
"0.5943989",
"0.5930018",
"0.5900284",
"0.58877367",
"0.5868934",
"0.58540225",
"0.5841971",
"0.5825653",
"0.58097553",
"0.5761862",
"0.5754365",
"0.5730273",
"0.56659",
"0.5655902",
"0.5653926",
"0.56458586",
"0.5633478",
"0.5613007",
"0.55896163",
"0.5545995",
"0.55422735",
"0.5536164",
"0.55215836",
"0.5508741",
"0.54776645",
"0.5471283",
"0.5453716",
"0.54353064",
"0.5433412",
"0.53917897",
"0.53768516",
"0.53757817",
"0.53522587",
"0.5346402",
"0.53434306",
"0.53368324",
"0.5336274",
"0.5258293",
"0.5251639",
"0.5240186",
"0.52263576",
"0.51900685",
"0.5178677",
"0.5118715",
"0.5100843",
"0.5084657",
"0.5080865",
"0.50657386",
"0.5056875",
"0.50102293",
"0.5001754",
"0.50017303",
"0.497977",
"0.49600524",
"0.49573416",
"0.49572986",
"0.49515048",
"0.4931201",
"0.49299112",
"0.4914103",
"0.48985463",
"0.48959318",
"0.4890103",
"0.48842207",
"0.48724484"
] | 0.7614858 | 1 |
Not used, pong never received | @Override
public void pong() {
//shouldnt't ever be ponged, just here because pretty interface
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void handlePongFrame() throws IOException {\n // read all of the pong payload\n consumePayload();\n }",
"public abstract void onPongReceived(byte[] data);",
"private void handlePongEvent(PongEvent event) {\t\t\n \t\tevent.loadMessage();\n \t\t//System.out.println(\"Received a pong event from: \" + event.getClientAddress());\n \n \t\tVsClientManagement.resetPongTimer(event.getClientAddress(), this.listenAddress);\n \t}",
"public Pong()\n { \n super(\"gameplay.wav\", 1000, 625, 1);\n lastFrameTimeMS = System.currentTimeMillis();\n prepare();\n }",
"private void notifyOnPongReceived(byte[] data) {\n synchronized (globalLock) {\n if (isRunning) {\n onPongReceived(data);\n }\n }\n }",
"@Override\n public void update() {\n update(Pong.STANDARD_FRAMETIME);\n }",
"@Override\n\tpublic void ping() {\n\t\t//respond to ping with pong\n\t\tlastPing = System.currentTimeMillis();\n\t\tthis.writeNow(\"type:pong;\");\n\t}",
"public final void pong(ByteString payload) throws IOException {\n if (payload == null) throw new NullPointerException(\"payload == null\");\n if (senderSentClose) throw new IllegalStateException(\"closed\");\n if (senderWantsClose) throw new IllegalStateException(\"must call close()\");\n if (Thread.currentThread() == looperThread) {\n throw new IllegalStateException(\"attempting to write from reader thread\");\n }\n\n try {\n writer.writePong(payload);\n } catch (IOException e) {\n senderWantsClose = true;\n throw e;\n }\n }",
"private void handlePingFrame() throws IOException {\n // read all of the ping payload\n byte[] pingPayload = consumePayload();\n outputPeer.writePong(pingPayload);\n }",
"@Override\n protected void onPause() {\n super.onPause();\n\n //tell pongscreen to pause\n pongS.pause();\n }",
"void addEventPaddle(DefaultPlayer player, DefaultBall ball);",
"public void run() {\n while (canPlay) {\n // Get ball position and speed\n double ballX = myBall.getX();\n double ballY = myBall.getY();\n double ballVx = myBall.getVx();\n double ballVy = myBall.getVy();\n // Track the ball if it is on the agent's side coming towards him\n if (ballVx < 0 && ballX < (ppPaddleXinit + ppAgentXinit) / 2) {\n // Find linear approximation of ball's Y position when it reaches the paddle's X position\n double predictedY = ballVy / ballVx * (getX() - ballX) + ballY;\n myTable.getDisplay().pause(AGENTLAG);\n setY(predictedY);\n }\n // Update paddle parameters\n updateParams();\n // Time has to be translated to ms\n myTable.getDisplay().pause(TICK * TIMESCALE);\n }\n }",
"public Pong() {\n\t\t\n\t\t// Pong method defined using parameters above\n\t\t\n \tsetTitle(WINDOW_TITLE);\n \tsetSize(WINDOW_WIDTH, WINDOW_HEIGHT);\n \tsetBackground(BACKGROUND_COLOUR);\n \tsetResizable(false);\n \tadd(new PongPanel(WINDOW_WIDTH, WINDOW_HEIGHT));\n \tsetVisible(true);\n \tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\t}",
"public void sendPong(byte[] data) {\n final Payload payload = new Payload(OPCODE_PONG, data);\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n webSocketConnection.sendInternal(payload);\n }\n }).start();\n }",
"public void sendPong(String server)\n\t{\n\t\tsendRaw(\"PONG :\" + server);\n\t}",
"public PingPongBuffer(PApplet papplet) {\n\t\tinitBuffers(papplet, papplet.width, papplet.height, null);\n\t}",
"public PongSurfaceView(Context context) {\n super(context);\n\n this.onCreate(context);\n }",
"private void wentOffWall() {\n //random location\n b.numX = r.nextInt(2400) + 100;\n b.numY = r.nextInt(1400) + 100;\n //random speed\n b.xSpeed = this.newSpeed();\n b.ySpeed = this.newSpeed();\n }",
"public void ping(){\r\n\t\t uSensor.ping();\r\n\t }",
"@Override\n\t\t\tpublic void handle(long now) {\n\t\t\t\tif(flagD && !flagA) {\n\t\t\t\t\tplayer.velocityX = 1;\n\t\t\t\t} else if(flagA && !flagD) {\n\t\t\t\t\tplayer.velocityX = -1;\n\t\t\t\t} else if(flagD && flagA) {\n\t\t\t\t\tplayer.velocityX = 1;\n\t\t\t\t} else if(!flagA && !flagD) {\n\t\t\t\t\tplayer.velocityX = 0;\n\t\t\t\t}\n\t\t\t\t//Flags W & S\n\t\t\t\tif(flagS && !flagW) {\n\t\t\t\t\tplayer.velocityY = 1;\n\t\t\t\t} else if(flagW && !flagS) {\n\t\t\t\t\tplayer.velocityY = -1;\n\t\t\t\t} else if(flagS && flagW) {\n\t\t\t\t\tplayer.velocityY = 1;\n\t\t\t\t} else if(!flagW && !flagS) {\n\t\t\t\t\tplayer.velocityY = 0;\n\t\t\t\t} \n\t\t\t\telse {\n\t\t\t\t\tplayer.velocityX = 0;\n\t\t\t\t\tplayer.velocityY = 0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tplayer.setTranslateX(player.getTranslateX() + player.velocityX);\n\t\t\t\tplayer.setTranslateY(player.getTranslateY() + player.velocityY);\n\t\t\t\t\n\t\t\t\tif(collision(player, player2)) {\n\t\t\t\t\tplayer.setFill(Color.YELLOW);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tplayer.setFill(Color.BLACK);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"@Override\r\n public void render(float delta) {\n Gdx.gl.glClearColor(0, 0, 0, 1);\r\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\r\n\r\n // if the ball ain't moving serve it\r\n if (!ball.isInplay()){\r\n ball.serveRandom();\r\n playServe();\r\n }\r\n // Hey keyboard, did the player want to do anything?\r\n processInputs();\r\n // if the game isn't over, check the update the physics\r\n if (!isOver){ physics.update(); }\r\n\r\n // DRAWING\r\n // tell the batch to do camera magic\r\n batch.setProjectionMatrix(camera.combined);\r\n // Begin the process of rendering\r\n batch.begin();\r\n // Tell our printer to print\r\n printer.draw();\r\n // Cycle through the list the draw everything\r\n for (PongBody p : toDrawList) {\r\n p.draw();\r\n }\r\n // End, and actually draw everything to the screen\r\n batch.end();\r\n }",
"public void pong(String afterPing) throws IOException\n\t{\n\t\twriter.write(\"PONG \" + afterPing + \"\\r\\n\");\n\t\twriter.flush();\n\t}",
"@Override\r\n public int paddleSpeed() {\r\n return 5;\r\n }",
"public void run()\r\n {\r\n // Check that the current thread is still our pongAnimator.\r\n while (Thread.currentThread() == breakoutAnimator)\r\n {\r\n do\r\n {\r\n if (!paused)\r\n {\r\n System.out.println(paused);\r\n /******************************************************\r\n * CODE TO BE ADDED BY YOU\r\n *****************************************************/\r\n // System.out.println(\"##########################\");\r\n // System.out.println(paddle.toString() + \"\\n\" +\r\n // ball.toString());\r\n // if ball is within the y of the paddle\r\n // System.out.println(lives + \", \" + list.size());\r\n if (ball.getBottomLeftPoint().getY() >= paddle.getTopLeftPoint().getY()\r\n && ball.getBottomLeftPoint().getY() <= paddle.getBottomLeftPoint().getY())\r\n {\r\n if (ball.getBottomRightPoint().getX() > paddle.getTopLeftPoint().getX()\r\n && ball.getBottomLeftPoint().getX() < paddle.getTopRightPoint().getX())\r\n {\r\n ball.setY((int) paddle.getTopRightPoint().getY() - BALL_DIAMETER + 1);\r\n ball.changeVerticalDirection();\r\n }// end if\r\n }// end if\r\n\r\n // if ball hits sides of screen\r\n if (ball.getTopLeftPoint().getX() <= 0 || ball.getTopRightPoint().getX() >= this.getWidth())\r\n ball.changeHorizontalDirection();\r\n\r\n // if ball hits top of screen\r\n if (ball.getTopLeftPoint().getY() <= 0)\r\n ball.changeVerticalDirection();\r\n\r\n // if the ball reaches the bottom\r\n if (ball.getTopLeftPoint().getY() > this.getHeight())\r\n {\r\n lives--;\r\n if (lives == 0)\r\n gameOver = true;\r\n ball.setX(this.getWidth() / 2 - BALL_DIAMETER / 2);\r\n ball.setY(this.getHeight() / 2 - BALL_DIAMETER / 2);\r\n }\r\n\r\n for (int i = 0; i < list.size(); i++)\r\n {\r\n hit = false;\r\n if (((AnimatedShape) list.get(i)).getShape().contains(ball.getLeftSide())\r\n || ((AnimatedShape) list.get(i)).getShape().contains(ball.getRightSide()))\r\n {\r\n ball.changeHorizontalDirection();\r\n hit = true;\r\n }\r\n if (((AnimatedShape) list.get(i)).getShape().contains(ball.getTopSide())\r\n || ((AnimatedShape) list.get(i)).getShape().contains(ball.getBottomSide()))\r\n {\r\n ball.changeVerticalDirection();\r\n hit = true;\r\n }\r\n\r\n if (hit)\r\n {\r\n list.remove(i);\r\n hit = false;\r\n }\r\n }\r\n\r\n // test to see if game is won\r\n if (list.size() == 0)\r\n {\r\n gameWon = true;\r\n gameOver = true;\r\n }\r\n\r\n ball.moveShape();\r\n\r\n repaint();\r\n\r\n // Have the Thread sleep for 1 second at a time.\r\n try\r\n {\r\n Thread.sleep(delay);\r\n }\r\n catch (InterruptedException e)\r\n {\r\n break;\r\n }\r\n }\r\n\r\n }\r\n while (!onMenu);\r\n }\r\n }",
"public void tick(Canvas g) {\n //moves the ball according to its assigned speed\n b.numX = b.numX + b.xSpeed;\n b.numY = b.numY + b.ySpeed;\n //moves the computer paddle\n this.compY = this.compY + this.compSpeed;\n if ((compY >= BOX_HEIGHT - 200) || compY <= 200) {\n this.reverseCompSpeed();\n }\n //check if the ball hits the top or bottom of the screen\n if (hitSides()) b.reverseYSpeed();\n //check if the ball hits the user or computer paddles\n if (hitMyPaddle()) {\n b.reverseXSpeed();\n }\n if (hitCompPaddle()) {\n b.reverseXSpeed();\n }\n // Draw the ball in the correct position.\n this.drawBall(b.numX, b.numY, g);\n //Draw the paddles\n this.drawMyPaddle(this.touchedY, g);\n this.drawCompPaddle(this.compY, g);\n }",
"public void act() \n {\n // need to explicitly cast as the World subclass (i.e., Game)\n playField = (Game)getWorld();\n \n // behavior depends on the game status\n if ( playField.getGameStatus() == Status.NOT_PLAYING )\n {\n // don't do anything\n }\n else if ( playField.getGameStatus() == Status.PLAYING )\n {\n move();\n \n /* \n * Check for intersection with the player's paddle \n */\n Paddle possiblePaddle = (Paddle)( getOneObjectAtOffset(-4,0,Paddle.class) );\n if ( possiblePaddle != null )\n {\n // Display debug message\n System.out.printf(\"Ball has intersected with %s\\n\",possiblePaddle.toString());\n \n // compute return angle and increase speed by 10%\n // TODO: Since this code is duplicated elsewhere, I probably \n // should move it into a separate method in this class\n double hitLocation = (this.getExactY()-4.0) - (possiblePaddle.getExactY()-32.0);\n int returnAngle = (int)( 315.0 + (90.0/64.0)*hitLocation );\n getMovement().setDirection( returnAngle );\n getMovement().scale( 1.1 );\n playField.playHighBlip();\n } // end if\n \n /* \n * Check for intersection with the CPU paddle \n */\n CPUPaddle possibleCPUPaddle = (CPUPaddle)( getOneObjectAtOffset(+4,0,CPUPaddle.class) );\n if ( possibleCPUPaddle != null )\n {\n // Display debug message\n System.out.printf(\"Ball has intersected with %s\\n\",possibleCPUPaddle.toString());\n \n // compute return angle and increase speed by 10%\n // TODO: Since this code is duplicated elsewhere, I probably \n // should move it into a separate method in this class\n double hitLocation = (this.getExactY()-4.0) - (possibleCPUPaddle.getExactY()-32.0);\n int returnAngle = (int)( 225.0 - (90.0/64.0)*hitLocation );\n getMovement().setDirection( returnAngle );\n getMovement().scale( 1.1 );\n playField.playHighBlip();\n } // end if\n \n /*\n * If the ball hits the boundary, simply have it reflect off the \n * surface in the opposite Y direction \n */\n Boundary possibleTopBoundary = (Boundary)( getOneObjectAtOffset(0,-4,Boundary.class) );\n Boundary possibleBottomBoundary = (Boundary)( getOneObjectAtOffset(0,4,Boundary.class) );\n if ( possibleTopBoundary != null || possibleBottomBoundary != null )\n {\n getMovement().revertVertical();\n playField.playLowBlip();\n } // end if \n \n // check if the ball has passed the player's paddle\n if ( getExactX() <= 0 )\n {\n playField.updateScore( PLAYER_TWO );\n \n // TODO: Since this code is duplicated elsewhere, I probably \n // should move it into a separate method in this class\n setLocation( playField.GAME_WIDTH / 2, playField.GAME_HEIGHT / 2 );\n getMovement().setNeutral();\n getMovement().add( new Vector( -45 + Greenfoot.getRandomNumber( 90 ), 3.0 ) );\n \n if ( Greenfoot.getRandomNumber( 2 ) == 0 )\n {\n getMovement().revertHorizontal();\n } // end inner if\n \n playField.playLongBeep();\n } // end outer if\n \n // check if the ball has passed the CPU's paddle\n if ( getExactX() >= playField.GAME_WIDTH )\n {\n playField.updateScore( PLAYER_ONE );\n \n // TODO: Since this code is duplicated elsewhere, I probably \n // should move it into a separate method in this class\n setLocation( playField.GAME_WIDTH / 2, playField.GAME_HEIGHT / 2 );\n getMovement().setNeutral();\n getMovement().add( new Vector( -45 + Greenfoot.getRandomNumber( 90 ), 3.0 ) );\n \n if ( Greenfoot.getRandomNumber( 2 ) == 0 )\n {\n getMovement().revertHorizontal();\n } // end inner if\n \n playField.playLongBeep();\n } // end outer if\n \n } \n else if ( playField.getGameStatus() == Status.GAME_OVER )\n {\n playField.removeObject( this );\n } // end multiway if/else\n \n }",
"public UserPaddle(int player)\r\n\t{\r\n\t\tupAcceleration = false;\r\n\t\tdownAcceleration = false;\r\n\t\ty = 210;\r\n\t\tyVelocity = 0;\r\n\t\tif(player == 1)\r\n\t\t{\r\n\t\t\tx = 20; //On the left side of the frame\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tx = 660; //On the right side of the frame\r\n\t\t}\r\n\t}",
"@Override\r\n public int playGameLoop() {\r\n return 0;\r\n }",
"private void updatePlayer(long elapsedTime) {\n\t\tif (Input.isDown(KeyEvent.KEYCODE_DPAD_RIGHT)) {\r\n\t\t\tpaddle1Y += getPlayerMove() * elapsedTime;\r\n\t\t}\r\n\t\tif (Input.isDown(KeyEvent.KEYCODE_DPAD_LEFT)) {\r\n\t\t\tpaddle1Y -= getPlayerMove() * elapsedTime;\r\n\t\t}\r\n\t\t//if they're touching the screen, make the paddle's Y\r\n\t\t//the original Y when they started touching plus\r\n\t\t//the Y distance their touch has moved\r\n\t\tif (Input.isTouchDown()) {\r\n\t\t\tpaddle1Y = startTouchY + Input.getDistanceTouchY();\r\n\t\t}\r\n\t}",
"public void ballShoot() {\n\n ballRight.setPower(-1);\n ballLeft.setPower(1);\n\n wait(2.0);\n\n flipper.setPosition(0.7);\n\n wait(0.5);\n\n flipper.setPosition(0.9);\n ballLeft.setPower(0);\n ballRight.setPower(0);\n\n\n }",
"public PingPongBuffer(PApplet papplet, int width, int height) {\n\t\tinitBuffers(papplet, width, height, null);\n\t}",
"private void pique() {\n\t\ttry {\n\t\t\tThread.sleep(5000); // espera, para dar tempo de ver as mensagens iniciais\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tint xInit = -38;\n\t\tint yInit = 0;\n\t\tEFieldSide side = selfPerception.getSide();\n\t\tVector2D initPos = new Vector2D(xInit * side.value(), yInit * side.value());\n\t\tplayerDeafaultPosition = initPos;\n\t\tVector2D ballPos;\n\t\tdouble ballX = 0, ballY = 0;\n\t\t\n\t\tRectangle area = side == EFieldSide.LEFT ? new Rectangle(-52, -25, 32, 50) : new Rectangle(25, -25, 32, 50);\n\t\t\n\t\twhile (commander.isActive()) {\n\t\t\tupdatePerceptions(); // deixar aqui, no começo do loop, para ler o resultado do 'move'\n\t\t\tballPos = fieldPerception.getBall().getPosition();\n\t\t\tswitch (matchPerception.getState()) {\n\t\t\tcase BEFORE_KICK_OFF:\t\t\t\t\n\t\t\t\tcommander.doMoveBlocking(-38, 0);\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase PLAY_ON:\n\t\t\t\tballX = fieldPerception.getBall().getPosition().getX();\n\t\t\t\tballY = fieldPerception.getBall().getPosition().getY();\n\t\t\t\tif (arrivedAtBall()) { // chutar\n\t\t\t\t\tcommander.doKickBlocking(100.0d, 0.0d);\n\t\t\t\t} else if (area.contains(ballX, ballY)) { // defender\n\t\t\t\t\tdashBall(ballPos);\n\t\t\t\t} else if (!isCloseTo(initPos)) { // recuar\t\t\t\t\t\n\t\t\t\t\tdash(initPos);\n\t\t\t\t} else { // olhar para a bola\n\t\t\t\t\tturnTo(ballPos);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KICK_OFF_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KICK_OFF_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CORNER_KICK_LEFT: // escanteio time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CORNER_KICK_RIGHT: // escanteio time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KICK_IN_LEFT: // lateral time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\tcase KICK_IN_RIGHT: // lateal time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_LEFT: // Tiro livre time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_RIGHT: // Tiro Livre time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_FAULT_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_FAULT_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GOAL_KICK_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GOAL_KICK_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase AFTER_GOAL_LEFT:\n\t\t\t\tcommander.doMoveBlocking(-38, 0);\n\t\t\t\tbreak;\n\t\t\tcase AFTER_GOAL_RIGHT:\n\t\t\t\tcommander.doMoveBlocking(-38, 0);\n\t\t\t\tbreak;\t\t\t\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void play(Puppy puppy) {\n System.out.println(\"The puppy is asleep enjoying its wonderful dreams, it currently does not have the desire to play with you right now.\");\n }",
"@Override\n public void landedOn(Player player) {}",
"private void victory(Player p){\n printer.addPrintout(new Printout(p.getPlayerName() + \" Wins!\",\r\n PongGame.SCREEN_WIDTH/2, PongGame.SCREEN_HEIGHT/2));\r\n // remove the ball from the drawing list\r\n toDrawList.remove(ball);\r\n // its over.\r\n isOver = true;\r\n }",
"public void moveOneStep() {\r\n\r\n // detects what direction the ball moves and switches it.\r\n double xDirection, yDirection;\r\n if (v.getDx() < 0) {\r\n xDirection = -r;\r\n } else {\r\n xDirection = r;\r\n }\r\n if (v.getDy() < 0) {\r\n yDirection = -r;\r\n } else {\r\n yDirection = r;\r\n }\r\n // if the ball is in the paddle because they move towards each other, the ball moves to the top of the paddle.\r\n Rectangle danger;\r\n // finding the paddle.\r\n for (Collidable c: environment.getCollidables()) {\r\n if (c.getCollisionRectangle().getUpperLeft().getY() == 550) {\r\n danger = c.getCollisionRectangle();\r\n // moving the ball up if its in the paddle.\r\n if (center.getY() > danger.getUpperLeft().getY()\r\n && center.getX() > danger.getUpperLeft().getX()\r\n && center.getX() < danger.getUpperRight().getX()) {\r\n this.center = new Point(center.getX(), danger.getUpperLeft().getY() - r);\r\n }\r\n }\r\n }\r\n Line yTrajectory = new Line(center.getX(), center.getY() + yDirection,\r\n center.getX() + v.getDx(), center.getY() + yDirection + v.getDy());\r\n Line xTrajectory = new Line(center.getX() + xDirection, center.getY(),\r\n center.getX() + v.getDx() + xDirection, center.getY() + v.getDy());\r\n // the collision is on the y field.\r\n if (environment.getClosestCollision(yTrajectory) != null) {\r\n Collidable bangedCollidable = environment.getClosestCollision(yTrajectory).collisionObject();\r\n Point bangedPoint = environment.getClosestCollision(yTrajectory).collisionPoint();\r\n this.setVelocity(bangedCollidable.hit(this, bangedPoint, this.v));\r\n this.center = new Point(this.center.getX(),\r\n bangedPoint.getY() - yDirection - v.getDy());\r\n }\r\n // the collision is on the x field.\r\n if (environment.getClosestCollision(xTrajectory) != null) {\r\n Collidable bangedCollidable = environment.getClosestCollision(xTrajectory).collisionObject();\r\n Point bangedPoint = environment.getClosestCollision(xTrajectory).collisionPoint();\r\n this.setVelocity(bangedCollidable.hit(this, bangedPoint, this.v));\r\n this.center = new Point(bangedPoint.getX() - xDirection - v.getDx(),\r\n this.center.getY());\r\n }\r\n this.center = this.getVelocity().applyToPoint(this.center);\r\n }",
"public void ping() {\n JsonNode rootNode = get(\"ping\");\n\n // TODO verify that the response was \"Pong!\"\n JsonNode dataNode = rootNode.get(\"data\");\n String pong = dataNode.asText();\n }",
"public void teleopPeriodic() \n {\n // NIVision.Rect rect = new NIVision.Rect(10, 10, 100, 100);\n /*\n NIVision.IMAQdxGrab(session, frame, 1);\n //NIVision.imaqDrawShapeOnImage(frame, frame, rect,\n // DrawMode.DRAW_VALUE, ShapeMode.SHAPE_OVAL, 0.0f);\n */\n \n //cam.getImage(frame);\n //camServer.setImage(frame);\n \n //CameraServer.getInstance().setImage(frame);\n \n if(verticalLift.limitSwitchHit())\n verticalLift.resetEnc();\n \n Scheduler.getInstance().run();\n }",
"public void playerLost()\r\n {\r\n \r\n }",
"public void checkCollision(){\n if (ball.y <=0){\n ball.setYDirection(-ball.yVelocity);\n }\n if (ball.y >=GAME_HEIGHT-BALL_DIAMETER){\n ball.setYDirection(-ball.yVelocity);\n }\n if (ball.x <=0){\n ball.setXDirection(-ball.xVelocity);\n }\n if (ball.x >=GAME_WIDTH-BALL_DIAMETER){\n ball.setXDirection(-ball.xVelocity);\n }\n\n // this bounces balls to the paddles\n\n // this is for the paddle1\n if (ball.intersects(paddle1)) {\n ball.xVelocity = Math.abs(ball.xVelocity);\n ball.xVelocity++;\n if (ball.yVelocity > 0)\n ball.yVelocity++;\n else\n ball.yVelocity--;\n ball.setXDirection(ball.xVelocity);\n ball.setYDirection(ball.yVelocity);\n }\n // this is for the paddle2\n if (ball.intersects(paddle2)){\n ball.xVelocity = Math.abs(ball.xVelocity);\n ball.xVelocity++;\n if (ball.yVelocity >0)\n ball.yVelocity++;\n else\n ball.yVelocity--;\n ball.setXDirection(-ball.xVelocity);\n ball.setYDirection(ball.yVelocity);\n }\n\n //this method stops the paddles from passing the edges of the frame\n if(paddle1.y <= 0)\n paddle1.y = 0;\n if(paddle1.y >= (GAME_HEIGHT-PADDLE_HEIGTH))\n paddle1.y = GAME_HEIGHT-PADDLE_HEIGTH;\n if(paddle2.y <= 0)\n paddle2.y = 0;\n if(paddle2.y >= (GAME_HEIGHT-PADDLE_HEIGTH))\n paddle2.y = GAME_HEIGHT-PADDLE_HEIGTH;\n\n\n //this will give points to players and creates new paddles as well a new ball\n if (ball.x<=0){\n score.player2++;\n newPaddles();\n newBall();\n // System.out.println(\"Player 2: \"+ score.player2);\n }\n if (ball.x >= GAME_WIDTH-BALL_DIAMETER){\n score.player1++;\n newPaddles();\n newBall();\n //System.out.println(\"Player 1: \"+score.player1);\n }\n\n }",
"public static void playHitObst()\n {\n playHitObst(0);\n }",
"@Override\n public void run() {\n if (circleX < screenSizeWidth && circleX > 100){\n circleX = circleX + sensorY * 6.0f;\n }\n else if (circleX < screenSizeWidth){\n circleX = screenWidth / 2 - circleRadius;\n circleY = screenHeight / 2 - circleRadius;\n assert vibratorFeedback != null;\n vibratorFeedback.vibrate(50);\n tg.startTone(ToneGenerator.TONE_PROP_BEEP);\n\n }\n else if (circleX > 0){\n circleX = screenWidth / 2 - circleRadius;\n circleY = screenHeight / 2 - circleRadius;\n assert vibratorFeedback != null;\n vibratorFeedback.vibrate(50);\n tg.startTone(ToneGenerator.TONE_PROP_BEEP);\n }\n\n // Draws on the Y axis\n // Makes sure that it does not draw outside screen and always spawns ball in the middle\n if (circleY < screenSizeHeight && circleY > 100){\n circleY = circleY + sensorX * 6.0f;\n }\n else if (circleY < screenSizeHeight){\n circleX = screenWidth / 2 - circleRadius;\n circleY = screenHeight / 2 - circleRadius;\n assert vibratorFeedback != null;\n vibratorFeedback.vibrate(50);\n tg.startTone(ToneGenerator.TONE_PROP_BEEP);\n }\n else if (circleY > 0){\n circleX = screenWidth / 2 - circleRadius;\n circleY = screenHeight / 2 - circleRadius;\n assert vibratorFeedback != null;\n vibratorFeedback.vibrate(50);\n tg.startTone(ToneGenerator.TONE_PROP_BEEP);\n }\n\n // prints to log for development use\n System.out.println(\"x \" + circleX);\n System.out.println(\"y \" + circleY);\n System.out.println(\"heigth \" + screenSizeHeight);\n System.out.println(\"width \"+ screenSizeWidth);\n\n handler.sendEmptyMessage(0);\n }",
"public void moveOneStep() {\n // special case - the ball is inside the paddle\n Map<Integer, Point> result = movingBlock.getCollisionRectangle().insideRectangle(this.center);\n if (result != null) {\n // getting a pair information of:\n // A point: the new point of the center outside the paddle\n // An Integer: 1 if it's on the right, -1 if on the left\n for (Integer direction : result.keySet()) {\n // setting the new center, and the new velocity, based on the result\n this.center = result.get(direction);\n this.setVelocity(Math.abs(this.getVelocity().getX()) * direction, -Math.abs(this.getVelocity().getY()));\n }\n // normal case - the ball is not inside the paddle\n } else {\n // getting the line trajectory\n Line trajectory = new Line(this.center, this.getVelocity().applyToPoint(this.center));\n // getting the collision info\n CollisionInfo info = this.gameEnvironment.getClosestCollision(trajectory);\n int count = 0;\n // while this info is not null\n while (info != null) {\n // changing the velocity of the ball\n // notify the object it has been hit\n this.setVelocity(info.collisionObject().hit(this, info.collisionPoint(), this.getVelocity()));\n // getting the update trajectory and info (while they're not null!)\n trajectory = new Line(this.center, this.getVelocity().applyToPoint(this.center));\n info = this.gameEnvironment.getClosestCollision(trajectory);\n // if the count is 3, it means we are into an infinite loop!\n // oppose the velocity and break\n if (count == 3) {\n this.setVelocity(-this.getVelocity().getX(), -this.getVelocity().getY());\n break;\n }\n count++;\n }\n this.center = this.getVelocity().applyToPoint(this.center);\n }\n }",
"@Override\n public void update() {\n super.update();\n\n //check if ball is out\n checkBallOutTopBottom();\n checkBallOutLeftRight();\n }",
"public void teleopPeriodic() {\n\n \t//NetworkCommAssembly.updateValues();\n \t\n\t\t// both buttons pressed simultaneously, time to cal to ground\n\t\tif (gamepad.getRawButton(FRONT_ARM_GROUND_CAL_BUTTON1) && gamepad.getRawButton(FRONT_ARM_GROUND_CAL_BUTTON2)) {\n\t\t\tprocessGroundCal();\n\t\t}\n\n\t\t// PID CONTROL ONLY\n\t\tdouble armDeltaPos = gamepad.getRawAxis(1);\n\t\tif (Math.abs(armDeltaPos) < ARM_DEADZONE) {\n\t\t\tarmDeltaPos = 0.0f;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tarmDeltaPos *= ARM_POS_MULTIPLIER;\n\t\t\tdouble currPos = testMotor.getPosition();\n\t\t\t\n\t\t\tif (((currPos > SOFT_ENCODER_LIMIT_MAX) && armDeltaPos > 0.0) || ((currPos < SOFT_ENCODER_LIMIT_FLOOR) && armDeltaPos < 0.0)) {\n\t\t\t\tSystem.out.println(\"SOFT ARM LIMIT HIT! Setting armDeltaPos to zero\");\n\t\t\t\tarmDeltaPos = 0.0;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tdouble newPos = currPos + armDeltaPos;\n\t\t\ttestMotor.set(newPos);\n\t\t\tSystem.out.println(\"Setting new front arm pos = \" + newPos);\t\n\t\t}\t\t\n\n \t/*\n\t\tdouble newArmPos = gamepad.getRawAxis(1);\n\t\tif(Math.abs(newArmPos) <= ARM_DEADZONE) {\n\t\t\tnewArmPos = 0.0;\n\t\t}\n\t\tdouble newMotorPos = (newArmPos * ARM_SPEED_MULTIPLIER) + testMotor.getPosition();\n\t\tpositionMoveByCount(newMotorPos);\n\t\tSystem.out.println(\"input = \" + newArmPos + \" target pos = \" + newMotorPos + \" enc pos = \" + testMotor.getPosition());\n \t*/\n \t\n\t\t// PercentVbus test ONLY!!\n \t/*\n\t\tdouble armSpeed = gamepad.getRawAxis(1);\n\t\tif (Math.abs(armSpeed) < ARM_DEADZONE) {\n\t\t\tarmSpeed = 0.0f;\n\t\t}\t\n\t\tarmSpeed *= ARM_MULTIPLIER;\n\t\t\n\t\tdouble pos= testMotor.getPosition();\n\t\tif (((pos > SOFT_ENCODER_LIMIT_1) && armSpeed < 0.0) || ((pos < SOFT_ENCODER_LIMIT_2) && armSpeed > 0.0))\n\t\t\tarmSpeed = 0.0;\n\t\ttestMotor.set(armSpeed);\n\t\t\n\t\tSystem.out.println(\"armSpeed = \" + armSpeed + \" enc pos = \" + testMotor.getPosition());\n\t\t */ \n }",
"public PingPongBuffer(PApplet papplet, int smooth) {\n\t\tinitBuffers(papplet, papplet.width, papplet.height, null, smooth);\n\t}",
"private void reset() {\n\t\tpaused = true;\r\n\r\n\t\t//reset the paddles and the ball\r\n\t\tint width = Graphics.getWidth();\r\n\t\tint height = Graphics.getHeight();\r\n\r\n\t\tballX = width / 2;\r\n\t\tballY = height / 2;\r\n\r\n\t\trand = new Random();\r\n\t\t//float angle = rand.nextfloat() * Math.PI / 6 + rand.nextInt(4) * Math.PI / 4 + Math.PI / 6;\r\n\t\tfloat angle = (float) (rand.nextInt(4) * Math.PI / 2 + Math.PI / 4);\r\n\t\tballVelX = (float) (Math.cos(angle) / 3);\r\n\t\tballVelY = (float) (Math.sin(angle) / 3);\r\n\r\n\t\tpaddle1X = getPaddleWidth() * 2;\r\n\t\tpaddle1Y = (height - getPaddleHeight()) / 2;\r\n\r\n\t\tpaddle2X = width - paddle1X - getPaddleWidth();\r\n\t\tpaddle2Y = paddle1Y;\r\n\t}",
"private void updateAi() {\n this.paddleL.setY(this.fakeBall.getY() - this.paddleL.getHeight()/2 + this.fakeBall.getHeight()/2);\n\n // Boundary check\n if (this.paddleL.y < 0) {\n this.paddleL.setY(0);\n } else if (this.paddleL.y + this.paddleL.getHeight() > this.getHeight()) {\n this.paddleL.setY(this.getHeight() - this.paddleL.getHeight());\n }\n }",
"@Override\n\tpublic void nowPlaying() {\n\t}",
"private void replyToPeerPing(final ByteString payload) {\n Runnable replierPong = new NamedRunnable(\"OkHttp %s WebSocket Pong Reply\", name) {\n @Override protected void execute() {\n try {\n writer.writePong(payload);\n } catch (IOException t) {\n Platform.get().log(Platform.INFO, \"Unable to send pong reply in response to peer ping.\", t);\n }\n }\n };\n synchronized (replier) {\n if (!isShutdown) {\n replier.execute(replierPong);\n }\n }\n }",
"private void gameOver(final int status) {\n // Play R.raw.robot_bleep\n soundPool.play(this.soundIds[2], 1, 1, 3, 0, (float) 1.0);\n this.gameOverDisplayed = true;\n ((PongGame) context).gameState = PongGame.GAME_OVER;\n this.touchEnabled = false;\n\n ((PongGame) context).runOnUiThread(new Runnable() {\n @Override\n public void run() {\n DialogInterface.OnDismissListener listener = new DialogInterface.OnDismissListener() {\n @Override\n public void onDismiss(@NonNull DialogInterface dialog) {\n dialog.dismiss();\n }\n };\n GeneralFunctions.displayDialog(context, status, listener);\n }\n });\n }",
"void tick() {\n\t\tif (playing) {\n\t\t\t// Advance the paddle and ball in their current direction.\n\t\t\tpaddle.move();\n\t\t\tball.move();\n\t\t\t\n\t\t\t//Ball intersects Paddle \n\t\t\tif (ball.intersects(paddle) != 0) {\n\t\t\t\tball.hitObj(paddle, ball.intersects(paddle));\n\t\t\t}\n\t\t\t//Ball intersects Brick. If Intersects then set Brick DNE accordingly \n\t\t\tbrickArray = bricks.getBricksArray();\n\t\t\tfor (int x = 0; x < Bricks.getColumns(); x++) {\n\t\t\t\tfor (int y = 0; y < Bricks.getRows(); y++) {\n\t\t\t\t\tbrick = brickArray[x][y];\n\t\t\t\t\tif (ball.intersects(brick) != 0 && brick.exists()) {\n\t\t\t\t\t\tball.hitObj(brick, ball.intersects(brick));\n\t\t\t\t\t\tbrick.setDNE();\n\t\t\t\t\t\t/*if (!brick.containsPowerUp()) {\n\t\t\t\t\t\t\tpowerUp = PowerUps.createPowerUp();\n\t\t\t\t\t\t\tpowerUp.move();\n\t\t\t\t\t\t}*/ // Setting up the framework for PowerUps \n\t\t\t\t\t\tcurrScoreVal++; // Incrementing Score by 1\n\t\t\t\t\t\tyourScore.setText(\"Your Score: \" + currScoreVal.toString());\n\t\t\t\t\t\tstatus.setText(\"Good job!\");\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tball.hitWall();\n\n\t\t\t\t// check for the round end/lose a life conditions\n\t\t\t\tif (livesLeft != 0) {\n\t\t\t\t\tif (ball.getPy() >= COURT_HEIGHT - 10) {\n\t\t\t\t\t\tplaying = true;\n\t\t\t\t\t\tstatus.setText(\"You lost a life! Get Ready!\");\n\t\t\t\t\t\trepaint();\n\t\t\t\t\t\tlivesLeft--;\n\t\t\t\t\t\tint timedelay = 2000;\n\t\t\t\t\t\tif (livesLeft == 0) {\n\t\t\t\t\t\t\ttimedelay = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlives.setText(\" Lives: \" + livesLeft.toString() + \"| \");\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tThread.sleep(timedelay);\n\t\t\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tball.setPx(250);\n\t\t\t\t\t\tball.setPy(170);\n\t\t\t\t\t\tball.setVx(-2);\n\t\t\t\t\t\tball.setVy(-3);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Finish Game Conditions\n\t\t\t\tif (livesLeft == 0 || currScoreVal == Bricks.getBlocksCreated()) {\n\t\t\t\t\tplaying = false;\n\t\t\t\t\tif (currScoreVal < Bricks.getBlocksCreated()){\n\t\t\t\t\tstatus.setText(\"You lose!\");\n\t\t\t\t\t}\n\t\t\t\t\tif (currScoreVal == Bricks.getBlocksCreated()){\n\t\t\t\t\tstatus.setText(\"You Win!\");\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tString[] options = { \"Yes\", \"No\", \"Save Score\" };\n\t\t\t\t\tint response = JOptionPane.showOptionDialog(null,\n\t\t\t\t\t\t\t\"Your Final Score:\" + currScoreVal + \"\\n\" + \"Start New Game?\\n\", \"Game Over\",\n\t\t\t\t\t\t\tJOptionPane.DEFAULT_OPTION, JOptionPane.PLAIN_MESSAGE, null, options, options[0]);\n\n\t\t\t\t\tif (response == 0) {\n\t\t\t\t\t\treset();\n\t\t\t\t\t}\n\t\t\t\t\telse if (response == 1) {\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t\t//Handling the Highscores. Only the Top 5 are Printed \n\t\t\t\t\telse if (response == 2) {\n\t\t\t\t\t\tString name = JOptionPane.showInputDialog(\"Enter your name?\");\n\t\t\t\t\t\tHighscores.addNewScore(currScoreVal,name);\n\t\t\t\t\t\tHighscores.writeFile();\n\t\t\t\t\t\tJDialog highScoreDialog = new JDialog();\n\t\t\t\t\t\tJPanel highscores = new JPanel();\n\t\t\t\t\t\thighscores.setLayout(new BoxLayout(highscores, BoxLayout.PAGE_AXIS));\n\t\t\t\t\t\tArrayList<String> entries = Highscores.topFiveEntries();\n\t\t\t\t\t\tJLabel highScore1 = new JLabel(\" 1: \" + entries.get(0));\n\t\t\t\t\t\tJLabel highScore2 = new JLabel(\" 2: \" + entries.get(1));\n\t\t\t\t\t\tJLabel highScore3 = new JLabel(\" 3: \" + entries.get(2));\n\t\t\t\t\t\tJLabel highScore4 = new JLabel(\" 4: \" + entries.get(3));\n\t\t\t\t\t\tJLabel highScore5 = new JLabel(\" 5: \" + entries.get(4));\n\t\t\t\t\t\tJLabel highscoreTitle = new JLabel(\" ~~~~~~TOP 5 HIGHSCORES~~~~~\");\n\t\t\t\t\t\thighscores.add(highscoreTitle);\n\t\t\t\t\t\thighscores.add(highScore1);\n\t\t\t\t\t\thighscores.add(highScore2);\n\t\t\t\t\t\thighscores.add(highScore3);\n\t\t\t\t\t\thighscores.add(highScore4);\n\t\t\t\t\t\thighscores.add(highScore5);\n\t\t\t\t\t\thighScoreDialog.add(highscores);\n\t\t\t\t\t\thighScoreDialog.pack();\n\t\t\t\t\t\thighScoreDialog.setSize(300, 300);\n\t\t\t\t\t\thighscores.setVisible(true);\n\t\t\t\t\t\thighScoreDialog.setLocationRelativeTo(null);\n\t\t\t\t\t\thighScoreDialog.setVisible(true);\n\t\t\t\t\t\tcurrScoreVal = 0;\n\t\t\t\t\t\tlivesLeft = 3;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// update the display\n\t\t\t\trepaint();\n\t\t\t}\n\t\t}\n\t}",
"public void tick(){\n camera.tick(player);\n handler.tick();\n }",
"Paddle2() {\r\n//Initial paddle position\r\n\r\n t.start();\r\n addKeyListener(this);\r\n setFocusable(true);\r\n setFocusTraversalKeysEnabled(false);\r\n \r\n }",
"public void playerWon()\r\n {\r\n \r\n }",
"@Override\n public void onPose(Myo myo, long timestamp, Pose pose) {\n if (unlocked) {\n if (pose.equals(Pose.FINGERS_SPREAD) == true) {\n Intent i = new Intent(\"com.android.music.musicservicecommand\");\n i.putExtra(\"command\", \"togglepause\");\n sendBroadcast(i);\n extendLock();\n } else if (pose.equals(Pose.WAVE_IN) == true) {\n Intent i = new Intent(\"com.android.music.musicservicecommand\");\n i.putExtra(\"command\", \"previous\");\n sendBroadcast(i);\n extendLock();\n } else if (pose.equals(Pose.WAVE_OUT) == true) {\n Intent i = new Intent(\"com.android.music.musicservicecommand\");\n i.putExtra(\"command\", \"next\");\n sendBroadcast(i);\n extendLock();\n }\n } else if (!unlocked && !unlocked1 && pose.equals(Pose.THUMB_TO_PINKY)) {\n unlocked1 = true;\n } else if (!unlocked && unlocked1) {\n if (pose.equals(Pose.FIST)) {\n unlocked = true;\n myo.vibrate(Myo.VibrationType.SHORT);\n\n handler.postDelayed(lockMyo, 2000);\n } else if(!pose.equals(Pose.REST)) {\n unlocked1 = false;\n }\n }\n }",
"public static void main(String[] args) {\n\t\t\n\t\t\t\tnew Pong();\n\t\t\t\n\t\t\n\t\t\t\n\t\t// TODO Auto-generated method stub\n\n\t}",
"public void changePos() {\r\n\r\n // Add timeCount\r\n timeCount += 20;\r\n\r\n // Orange\r\n orangeY += 12;\r\n\r\n float orangeCenterX = orangeX + orange.getWidth() / 2;\r\n float orangeCenterY = orangeY + orange.getHeight() / 2;\r\n\r\n if (hitCheck(orangeCenterX, orangeCenterY)) {\r\n orangeY = frameHeight + 100;\r\n score += 10;\r\n soundPlayer.playHitOrangeSound();\r\n }\r\n\r\n if (orangeY > frameHeight) {\r\n orangeY = -100;\r\n orangeX = (float) Math.floor(Math.random() * (frameWidth - orange.getWidth()));\r\n }\r\n orange.setX(orangeX);\r\n orange.setY(orangeY);\r\n\r\n // Pink\r\n if (!pink_flg && timeCount % 10000 == 0) {\r\n pink_flg = true;\r\n pinkY = -20;\r\n pinkX = (float) Math.floor(Math.random() * (frameWidth - pink.getWidth()));\r\n }\r\n\r\n if (pink_flg) {\r\n pinkY += 20;\r\n\r\n float pinkCenterX = pinkX + pink.getWidth() / 2;\r\n float pinkCenterY = pinkY + pink.getWidth() / 2;\r\n\r\n if (hitCheck(pinkCenterX, pinkCenterY)) {\r\n pinkY = frameHeight + 30;\r\n score += 30;\r\n // Change FrameWidth\r\n if (initialFrameWidth > frameWidth * 110 / 100) {\r\n frameWidth = frameWidth * 110 / 100;\r\n changeFrameWidth(frameWidth);\r\n }\r\n soundPlayer.playHitPinkSound();\r\n }\r\n\r\n if (pinkY > frameHeight) pink_flg = false;\r\n pink.setX(pinkX);\r\n pink.setY(pinkY);\r\n }\r\n\r\n if (level.equals(\"easy\")) {\r\n blackY += 18;\r\n } else if (level.equals(\"medium\")) {\r\n blackY += 34;\r\n\r\n } else if (level.equals(\"hard\")) {\r\n blackY += 50;\r\n }\r\n\r\n\r\n float blackCenterX = blackX + black.getWidth() / 2;\r\n float blackCenterY = blackY + black.getHeight() / 2;\r\n\r\n if (hitCheck(blackCenterX, blackCenterY)) {\r\n blackY = frameHeight + 100;\r\n\r\n // Change FrameWidth\r\n frameWidth = frameWidth * 80 / 100;\r\n changeFrameWidth(frameWidth);\r\n soundPlayer.playHitBlackSound();\r\n if (frameWidth <= boxSize) {\r\n gameOver();\r\n }\r\n\r\n }\r\n\r\n if (blackY > frameHeight) {\r\n blackY = -100;\r\n blackX = (float) Math.floor(Math.random() * (frameWidth - black.getWidth()));\r\n }\r\n\r\n black.setX(blackX);\r\n black.setY(blackY);\r\n\r\n // Move Box\r\n if (action_flg) {\r\n // Touching\r\n boxX += 14;\r\n box.setImageDrawable(imageBoxRight);\r\n } else {\r\n // Releasing\r\n boxX -= 14;\r\n box.setImageDrawable(imageBoxLeft);\r\n }\r\n\r\n // Check box position.\r\n if (boxX < 0) {\r\n boxX = 0;\r\n box.setImageDrawable(imageBoxRight);\r\n }\r\n if (frameWidth - boxSize < boxX) {\r\n boxX = frameWidth - boxSize;\r\n box.setImageDrawable(imageBoxLeft);\r\n }\r\n\r\n box.setX(boxX);\r\n String b = \"Score : \" + score;\r\n scoreLabel.setText(b);\r\n\r\n }",
"@Override\r\n\tpublic void onUpdate()\r\n {\r\n \t//update pos\r\n\t\tthis.prevPosX = this.posX;\r\n this.prevPosY = this.posY;\r\n this.prevPosZ = this.posZ;\r\n \r\n if(host != null)\r\n {\r\n \tupdateHostPosition();\r\n }\r\n \r\n //fade state\r\n switch (this.fadeState)\r\n {\r\n case 0: //fade in\r\n \tthis.fadeTick++;\r\n \tthis.particleAlpha = this.fadeTick * 0.2F;\r\n \t\r\n \tif (this.fadeTick > 5) this.fadeState = 1;\r\n \tbreak;\r\n case 1: //age++\r\n \tthis.playSpeedCount += this.playSpeed;\r\n \tthis.particleAge = this.frameSize * (int)this.playSpeedCount;\r\n \tthis.particleAlpha = 1F;\r\n \tbreak;\r\n case 2: //fade out\r\n \tthis.fadeTick--;\r\n \tthis.particleAlpha = this.fadeTick * 0.2F;\r\n \t\r\n \tif (this.fadeTick < 1)\r\n \t{\r\n \t\tthis.setExpired();\r\n \t\treturn;\r\n \t}\r\n \tbreak;\r\n \tdefault:\r\n \t\tthis.setExpired();\r\n \t\treturn;\r\n }\r\n \r\n //stay at last frame\r\n if (this.particleAge >= particleMaxAge)\r\n {\r\n \t\tthis.particleAge = this.particleMaxAge;\r\n \t\t\r\n \t\t//count stay ticks\r\n \t\tif (this.stayTickCount > this.stayTick)\r\n \t\t{\r\n \t\t\tthis.particleAge = this.particleMaxAge + 1; //next loop flag\r\n \t\t\tthis.stayTickCount = 0;\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tthis.stayTickCount += 1;\r\n \t\t}\r\n \t}\r\n\r\n //loop play\r\n if (this.particleAge > this.particleMaxAge)\r\n {\r\n \t//loop times--\r\n \tif (--this.playTimes <= 0)\r\n \t{\r\n \t\tthis.fadeState = 2; //change to fade out\r\n \t}\r\n \telse\r\n \t{\r\n \t\tthis.particleAge = 0;\r\n \t\tthis.playSpeedCount = 0F;\r\n \t}\r\n }\r\n }",
"public void checkForBounce()\n {\n if (isTouching(mid.class)){\n \n bounce = 1;\n \n \n }\n \n \n \n \n if (getY() <= 0 || getY() >= getWorld().getHeight() -1 )\n {\n \n dY = -dY;\n \n }\n \n \n if(isTouching(Pad1.class )){\n \n if (bounce == 1){\n \n \n Greenfoot.playSound(\"paddleHit.wav\"); \n dX = -dX;\n bounce = 0;\n change(); \n }\n \n \n }\n \n \n \n }",
"void doUpdate() {\n\t\tdrawPlayer(backBufferContext, context);\n\t\tcheckForInteractions();\n\t}",
"@Override\n\tpublic void tick() {\n\t\tif(levelOver) {\n\t\t\tif(this.getY()+this.getHeight() > flag.getY() + flag.getBounds().getHeight() - 60) {\n\t\t\t\tthis.setVelY(0);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ty += velY;\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(y > Window.HEIGHT + 2000) {\n\t\t\tif(!played) {\n\t\t\t\tAudioHandler.getMusic(\"theme\").pause();\n\t\t\t\tAudioHandler.getSound(\"died\").play();\n\t\t\t\tplayed = true;\n\t\t\t}\n\t\t\tDrawingCanvas.gameState = GameState.End;\n\t\t\treturn;\n\t\t}\n\n\t\tif(!died) {\n\t\t\t\n\t\t\tif(velX > 0 || KeyBoard.cameraVelX < 0) {\n\t\t\t\tcountRight += 0.5;\n\t\t\t\tif(countRight >= 6) countRight = 0;\n\t\t\t\tfacingRight = true;\n\t\t\t\tfacingLeft = false;\n\t\t\t} else if(velX < 0 || KeyBoard.cameraVelX > 0) {\n\t\t\t\tcountLeft += 0.5;\n\t\t\t\tif(countLeft >= 6) countLeft = 0;\n\t\t\t\tfacingRight = false;\n\t\t\t\tfacingLeft = true;\n\t\t\t} \n\t\t\t\n\t\t//\tSystem.out.println(\"dPressed: \"+KeyBoard.dPressed+\" aPressed: \"+KeyBoard.aPressed);\n\t\t\t\n\t\t\t\n\t\t\tx += velX;\n\t\t\ty += velY;\n\t\t\t\n\t\t\t/*if(!collideCheck()) {\n\t\t\t\tvelY -= accY;\n\t\t\t\t\n\t\t\t}*/\n\t\t\t\n\t\t\tvelY+=accY;\n\t\t\tcollideCheck();\n\t\t\t\n\t\t\t//if(jumping) velY += accY;\n\t//\t\tif(velX > 0) velX += accX;\n\t//\t\telse if(velX < 0) velX -= accX;\n\t\t\t\n\t\t\tvelY = Window.clamp(80, -30, velY);\n\t\t} else if(died) {\n\t\t\ty += velY;\n\t\t\tvelY += accY;\n\t\t}\n\t\t\n\t}",
"public void gameOver(){\n gameOverMusic.loop(pitch, volume);\n }",
"@Override\n public void initialize() {\n conveyor.setBallCount(0);\n conveyor.startTime(); \n }",
"public PingPongBuffer(PApplet papplet, int width, int height, int smooth) {\n\t\tinitBuffers(papplet, width, height, null, smooth);\n\t}",
"@Override\n public boolean onTouchEvent(MotionEvent event){\n\n if(event.getAction()==MotionEvent.ACTION_DOWN) {\n if (!newPlayer.getRunning() && gamenew && reset) {\n newPlayer.setRunning(true);\n newPlayer.setUp(true);\n }\n if (newPlayer.getRunning())\n {\n if (!started)\n started = true;\n reset = false;\n newPlayer.setUp(true);\n\n }\n return true;\n }\n if (event.getAction() == MotionEvent.ACTION_UP){\n newPlayer.setUp(false);\n return true;\n }\n\n return super.onTouchEvent(event);\n }",
"@Override\r\n\tpublic void onLivingUpdate() {\r\n\t\tsuper.onLivingUpdate();\r\n\t\tthis.field_70888_h = this.field_70886_e;\r\n\t\tthis.field_70884_g = this.destPos;\r\n\t\tthis.destPos = (float)((double)this.destPos + (double)(this.onGround ? -1 : 4) * 0.3D);\r\n\t\t\r\n\t\tif(this.destPos < 0.0F) {\r\n\t\t\tthis.destPos = 0.0F;\r\n\t\t}\r\n\t\t\r\n\t\tif(this.destPos > 1.0F) {\r\n\t\t\tthis.destPos = 1.0F;\r\n\t\t}\r\n\t\t\r\n\t\tif(!this.onGround && this.field_70889_i < 1.0F) {\r\n\t\t\tthis.field_70889_i = 1.0F;\r\n\t\t}\r\n\t\t\r\n\t\tthis.field_70889_i = (float)((double)this.field_70889_i * 0.9D);\r\n\t\t\r\n\t\tif(!this.onGround && this.motionY < 0.0D) {\r\n\t\t\tthis.motionY *= 0.6D;\r\n\t\t}\r\n\t\t\r\n\t\tthis.field_70886_e += this.field_70889_i * 2.0F;\r\n\t\t\r\n\t\tif(!this.isChild() && !this.worldObj.isRemote && --this.timeUntilNextEgg <= 0) {\r\n\t\t\tthis.worldObj.playSoundAtEntity(this, \"mob.chickenplop\", 1.0F, (this.rand.nextFloat() - this.rand.nextFloat()) * 0.2F + 1.0F);\r\n\t\t\tthis.dropItem(SorceryItems.goldegg, 1);\r\n\t\t\tthis.timeUntilNextEgg = this.rand.nextInt(6000) + 6000;\r\n\t\t}\r\n\t}",
"public void paddleVSball(Paddle p, Ball b) {\n Rectangle p_box = new Rectangle(p.getX(), p.getY(), p.getWidth(), p.getHeight());\r\n // System.out.println(\"X: \"+p.getX()+\"Y: \"+p.getY()+\"W: \"+p.getWidth()+\"H: \"+p.getHeight());\r\n Rectangle b_box = new Rectangle(b.getX(), b.getY(), b.getWidth(), b.getHeight());\r\n\r\n if (p_box.intersects(b_box)) {\r\n //collision\r\n //if ball is going +y and -x\r\n if (b.getVY() > 0 || b.getVY() < 0) {\r\n b.setVY(b.getVY() * -1);\r\n }\r\n if (b.getY() < p.getY()) {//if the ball is inside the paddle\r\n b.setVX(b.getVX() * -1);\r\n b.setVX(b.getVX() * -1);\r\n }\r\n }\r\n }",
"@Override\n public void loop() {\n double X = x;\n double Y = y;\n telemetry.addData(\"X\", X);\n telemetry.addData(\"Y\", Y);\n telemetry.addData(\"angle\", angle);\n telemetry.addData(\"EncDr: \",EncDr);\n telemetry.addData(\"EncSp: \",EncSp);\n telemetry.addData(\"EncSt: \",EncSt);\n telemetry.addData(\"MovingAngle:\", Math.toDegrees(Math.atan(gamepad2.right_stick_x / (-gamepad2.right_stick_y))));\n telemetry.update();\n\n }",
"@Override\r\n\tpublic void onPlayerHit(Player p) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onPlayerHit(Player p) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onPlayerHit(Player p) {\n\r\n\t}",
"@Override\n public void loop() {\n\n if (gamepad1.a && pow >= .01){\n pow -= .01;\n }\n\n if (gamepad1.b && pow <= .99){\n pow += .01;\n }\n robot.shooter.setPower(pow);\n\n telemetry.addData(\"Current Shooter Speed: \", pow);\n telemetry.update();\n\n //The following code should be for a normal drivetrain.\n\n robot.drive360(gamepad1.left_stick_x, -gamepad1.left_stick_y, gamepad1.right_stick_x);\n\n if (gamepad1.dpad_down && pow2 >= .01){\n pow2 -= .01;\n }\n\n if (gamepad1.dpad_up && pow2 <= .99){\n pow2 += .01;\n }\n\n //End normal drivetrain, the rest of this code is for varying the intake speed.\n\n if (gamepad1.right_bumper){\n robot.intake.setPower(pow2);\n }\n else if (gamepad1.left_bumper) {\n robot.intake.setPower(pow2 * -1);\n }\n else {\n robot.intake.setPower(0);\n }\n\n telemetry.addData(\"Current Intake Speed: \", pow2);\n telemetry.update();\n\n }",
"@Test\n public void serverPingsClient() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.sendFrame().ping(false, 2, 0);\n peer.acceptFrame();// PING\n\n peer.play();\n // play it back\n connect(peer);\n // verify the peer received what was expected\n MockHttp2Peer.InFrame ping = peer.takeFrame();\n Assert.assertEquals(0, ping.streamId);\n Assert.assertEquals(2, ping.payload1);\n Assert.assertEquals(0, ping.payload2);\n Assert.assertTrue(ping.ack);\n }",
"int paddleSpeed();",
"@Listen\r\n public void onPacket(PacketEvent e) {\r\n\r\n if (e.getType().equalsIgnoreCase(Packet.Client.POSITION)) {\r\n if ((System.currentTimeMillis() - e.getUser().getCombatData().getLastUseEntityPacket()) < 1000L\r\n && Math.abs(e.getTo().getPitch() - e.getFrom().getPitch()) > 0.01) {\r\n double yaw = e.getUser().getMovementData().getTo().getYaw();\r\n double sensitivity = e.getUser().getMiscData().getClientSensitivity();\r\n\r\n float f = (float) (sensitivity * 0.6F + 0.2F);\r\n float gcd = f * f * f * 1.2F;\r\n\r\n yaw = -yaw % gcd;\r\n\r\n double real = Math.abs(e.getUser().getMovementData().getTo().getYaw());\r\n\r\n if (real == e.getUser().getCheckData().lastAimMDiff && yaw == e.getUser().getCheckData().lastAimMDiff2) {\r\n\r\n if ((System.currentTimeMillis() - e.getUser().getCheckData().lastAimMPossibleLag) < 1500L) {\r\n e.getUser().getCheckData().aimMVerbose++;\r\n } else {\r\n if (e.getUser().getCheckData().aimMVerbose > 0 && (System.currentTimeMillis() - e.getUser().getCheckData().lastAimMPossibleLag) > 1000l)\r\n e.getUser().getCheckData().aimMVerbose--;\r\n }\r\n\r\n e.getUser().getCheckData().lastAimMPossibleLag = System.currentTimeMillis();\r\n\r\n if (e.getUser().getCheckData().aimMVerbose > 2) {\r\n flag(e.getUser(), \"verbose=\"+e.getUser().getCheckData().aimMVerbose, \"spoof=\"+yaw, \"real=\"+real);\r\n }\r\n } else {\r\n if (e.getUser().getCheckData().aimMVerbose > 0 && TimeUtils.secondsFromLong(e.getUser().getCheckData().lastAimMPossibleLag) > 2L) {\r\n e.getUser().getCheckData().aimMVerbose--;\r\n }\r\n }\r\n\r\n e.getUser().getCheckData().lastAimMDiff = real;\r\n e.getUser().getCheckData().lastAimMDiff2 = yaw;\r\n\r\n }\r\n }\r\n }",
"@Test\n public void clientPingsServer() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// PING\n\n peer.sendFrame().ping(true, 1, 5);\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n long pingAtNanos = System.nanoTime();\n connection.writePingAndAwaitPong();\n long elapsedNanos = (System.nanoTime()) - pingAtNanos;\n Assert.assertTrue((elapsedNanos > 0));\n Assert.assertTrue((elapsedNanos < (TimeUnit.SECONDS.toNanos(1))));\n // verify the peer received what was expected\n MockHttp2Peer.InFrame pingFrame = peer.takeFrame();\n Assert.assertEquals(TYPE_PING, pingFrame.type);\n Assert.assertEquals(0, pingFrame.streamId);\n Assert.assertEquals(1330343787, pingFrame.payload1);// OkOk\n\n Assert.assertEquals(-257978967, pingFrame.payload2);// donut\n\n Assert.assertFalse(pingFrame.ack);\n }",
"@Override\n public void onUpdate(double tpf) {\n int x = (int)((entity.getX() + 30/2 ) / 30);\n int y = (int)((entity.getY() + 30/2 ) / 30);\n\n int px = (int)((player.getX() + 30/2 ) / 30);\n int py = (int)((player.getY() + 30/2 ) / 30);\n\n if (x == px || y == py) {\n shoot();\n }\n }",
"public void onTurnOver() {}",
"@Override\n\tpublic void play() {\n\t\t\n\t}",
"public void play() \n{\n s = !s; \n if (s == false)\n {\n //pausets = millis()/4;\n controlP5.getController(\"play\").setLabel(\"Play\");\n } else if (s == true)\n {\n //origint = origint + millis()/4 - pausets;\n controlP5.getController(\"play\").setLabel(\"Pause\");\n }\n}",
"@Test\n public void unexpectedPingIsNotReturned() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.sendFrame().ping(false, 2, 0);\n peer.acceptFrame();// PING\n\n peer.sendFrame().ping(true, 3, 0);// This ping will not be returned.\n\n peer.sendFrame().ping(false, 4, 0);\n peer.acceptFrame();// PING\n\n peer.play();\n // play it back\n connect(peer);\n // verify the peer received what was expected\n MockHttp2Peer.InFrame ping2 = peer.takeFrame();\n Assert.assertEquals(2, ping2.payload1);\n MockHttp2Peer.InFrame ping4 = peer.takeFrame();\n Assert.assertEquals(4, ping4.payload1);\n }",
"@Override\n public void loop() {\n\n double drive = gamepad1.left_stick_y;\n double strafe = gamepad1.left_stick_x;\n double rotate = -gamepad1.right_stick_x;\n\n findRobotPosition(); // Call Vuforia routines, get robot position\n\n // Intake Operator Actions\n if (gamepad1.a || gamepad1.b || gamepad1.x){ // Operator wants to control the intake\n if (gamepad1.a){ // A turns the intake on for bringing in rings\n intakeMotor.setPower(1);\n }\n else if (gamepad1.b) { // B reverses the intake\n intakeMotor.setPower(-1);\n\n } else if (gamepad1.x){ // X stops the intake\n intakeMotor.setPower(0);\n }\n }\n\n // Ring Shooter Operator Actions\n /*if (gamepad1.dpad_up || gamepad1.dpad_down){\n if (gamepad1.dpad_up) {\n if (ringVel <= 170000) {\n ringVel = ringVel + 10000;\n }\n } else if (gamepad1.dpad_down){\n if (ringVel >= 10000){\n ringVel = ringVel - 10000;\n } else{\n ringVel = 0;\n }\n }\n }\n */\n\n if (gamepad1.right_bumper){\n fireServo.setPosition(FIRE_SERVO);\n } else{\n fireServo.setPosition(STANDBY_SERVO);\n }\n if (gamepad1.left_trigger > 0.5){\n ringShooterMotor.setVelocity(ringVel);\n }else {\n ringShooterMotor.setPower(0);\n }\n\n // Wobble Goal acions here\n if (gamepad1.dpad_left || gamepad1.dpad_right || gamepad1.left_bumper){\n if(gamepad1.dpad_left){\n wobbleMotor.setTargetPosition(WOBBLE_GRAB);\n wobbleMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n wobbleMotor.setPower(.4);\n } else if (gamepad1.dpad_right){\n wobbleMotor.setTargetPosition(WOBBLE_CARRY);\n wobbleMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n wobbleMotor.setPower(.4);\n } else if (gamepad1.left_bumper) {\n wobbleMotor.setTargetPosition(WOBBLE_OVER_WALL);\n wobbleMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n wobbleMotor.setPower(.4);\n }\n }\n // Insert operator driving actions here\n if ((targetVisible) && (gamepad1.y)) {\n // Allow the operator to position the robot to shoot a ring if a target is visible\n alignRobotToShoot();\n }\n else {\n moveBot(drive, rotate, strafe, power); //Basic Robot-centric Frame Driving\n }\n\n // Telemetry Section\n //telemetry.addData(\"Ring Velocity\", ringVel);\n //telemetry.addData(\"Actual Velocity\", ringShooterMotor.getVelocity());\n telemetry.addData(\"Ring Motor Encoder\", ringShooterMotor.getCurrentPosition());\n telemetry.addData(\"Wobble Goal Encoder\", wobbleMotor.getCurrentPosition());\n telemetry.update();\n }",
"public void handle(long currentNanoTime) {\n\t \t\t\tobw.updateWorld(mc);\t\t\t// find new position of ball \n\t \t\t\tobw.drawWorld(mc);\t\t\t\t// draw ball in new position\n\t \t\t}",
"public void onTick()\n\t{\n\t\tsuper.onTick();\n\t\ttime++;\n\t\tif(time>=40)\n\t\t{\n\t\t\tif(direction == 0)\n\t\t\t{\n\t\t\t\tdirection = 1;\n\t\t\t\ttime = 0;\n\t\t\t}\n\t\t\telse if(direction == 1)\n\t\t\t{\n\t\t\t\tdirection = 0;\n\t\t\t\ttime = 0;\n\t\t\t}\n\t\t}\n\t\tif(direction == 0)\n\t\t{\n\t\t\tleft();\n\t\t\tif(hitcher!= null)\n\t\t\t{\n\t\t\t\thitcher.left(speed);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse if(direction == 1)\n\t\t{\n\t\t\tright();\n\t\t\tif(hitcher!=null)\n\t\t\t{\n\t\t\t\thitcher.right(speed);\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}",
"@Override\n public void loop() {\n\n telemetry.addData(\"Status\", \"TeleOp Mode Running\");\n\n // Sets the power level for each driving motors\n double leftPower;\n double rightPower;\n\n // sets the power level for lifting the grippers\n double armPower;\n\n // get power value from gamepad1 (person 1) y position for driving\n leftPower = -gamepad1.left_stick_y;\n rightPower = gamepad1.right_stick_y;\n\n leftPower = Range.clip(leftPower, -0.7, 0.7);\n rightPower = Range.clip(rightPower, -0.7, 0.7);\n\n // gently raise or lower the arm (restricted to -0.5 lower | 0.5 raise)\n // get power value from gamepad2 (person 2) y position for extending arm\n\n armPower = -gamepad2.right_stick_y; // ensure the motor goes in the correct direction (full power possible)\n armPower = Range.clip(armPower, -0.5, 0.5);\n\n // Servo control: 0-0degrees, 0.5=90 degrees, 1.0=180 degrees\n // HS-485-HB servos\n\n // The settings for gripper arms positions (person 2)\n\n // forward position or grabbed block\n if (gamepad2.y) {\n leftGrab.setPosition(1); // set position to 0 degrees\n rightGrab.setPosition(0);\n leftTop.setPosition(0.6);\n rightTop.setPosition(0.4);\n telemetry.addData(\"pressed\", \"Y\");\n\n // side position\n } else if (gamepad2.b) {\n leftGrab.setPosition(0.82); // set position to 45 degrees\n rightGrab.setPosition(0.18);\n leftTop.setPosition(1);\n rightTop.setPosition(0);\n telemetry.addData(\"pressed\", \"B\");\n\n // ready to grab position \\ /\n } else if (gamepad2.a) {\n leftGrab.setPosition(0.9167); // set position to 15 degrees\n rightGrab.setPosition(0.0833);\n leftTop.setPosition(1);\n rightTop.setPosition(0);\n telemetry.addData(\"pressed\", \"A\");\n\n // stowed\n } else if (gamepad2.right_bumper) {\n leftGrab.setPosition(0);\n rightGrab.setPosition(1);\n telemetry.addData(\"pressed\", \"X\");\n }\n\n if(gamepad1.b) {\n\n colorArm.setPosition(0.25); // stowed colorArm\n telemetry.addData(\"pressed\", \"B\");\n\n }\n\n\n // top grap positions set\n if (gamepad2.left_bumper) {\n leftTop.setPosition(0.4);\n rightTop.setPosition(0.6);\n telemetry.addData(\"Info\", \"STOWED\");\n\n }\n /*\n else if (gamepad2.dpad_up) {\n leftTop.setPosition(0.9);\n rightTop.setPosition(0.1);\n telemetry.addData(\"Info\", \"UP\");\n\n }\n else if (gamepad2.dpad_down) {\n\n leftTop.setPosition(0.45);\n rightTop.setPosition(0.55);\n telemetry.addData(\"Info\", \"DOWN\");\n\n }\n */\n\n // Send calculated power to wheels\n leftDrive.setPower(leftPower);\n rightDrive.setPower(rightPower);\n armMotor.setPower(armPower);\n // extendingArm.setPower(extendingArmPower);\n\n // Show the elapsed game time and current status of robot's hardware.\n telemetry.addData(\"Status\", \"Run Time: \" + runtime.toString());\n telemetry.addData(\"Motors\", \"left (%.2f), right (%.2f)\", leftDrive.getPower(), rightDrive.getPower());\n telemetry.addData(\"Arm Motor\", \"(%.2f)\", armMotor.getPower());\n telemetry.addData(\"Left Grab Servo Position\", leftGrab.getPosition());\n telemetry.addData(\"Right Grab Servo Position\", rightGrab.getPosition());\n telemetry.addData(\"Left Top Servo Position\", leftTop.getPosition());\n telemetry.addData(\"Right Top Servo Position\", rightTop.getPosition());\n telemetry.addData(\"Color Arm Position\", colorArm.getPosition());\n telemetry.update();\n }",
"static public void proccessGame(){\n int nextBallLeft = settingOfTheGame.getBallX() + settingOfTheGame.getBallDeltaX();\n int nextBallRight = settingOfTheGame.getBallX() + settingOfTheGame.getDiameter() + settingOfTheGame.getBallDeltaX();\n int nextBallTop = settingOfTheGame.getBallY() + settingOfTheGame.getBallDeltaY();\n int nextBallBottom = settingOfTheGame.getBallY() + settingOfTheGame.getDiameter() + settingOfTheGame.getBallDeltaY();\n\n int playerOneRight = settingOfTheGame.getFirst().getPlayerX() + settingOfTheGame.getFirst().getPlayerX();\n int playerOneTop = settingOfTheGame.getFirst().getPlayerY();\n int playerOneBottom = settingOfTheGame.getFirst().getPlayerY() + settingOfTheGame.getFirst().getPlayerHeight();\n\n float playerTwoLeft = settingOfTheGame.getSecond().getPlayerX();\n float playerTwoTop = settingOfTheGame.getSecond().getPlayerY();\n float playerTwoBottom = settingOfTheGame.getSecond().getPlayerY() + settingOfTheGame.getSecond().getPlayerHeight();\n\n //ball bounces off top and bottom of screen\n if (nextBallTop < 0 || nextBallBottom > 600) {\n settingOfTheGame.setBallDeltaY(settingOfTheGame.getBallDeltaY()*(-1));\n }\n\n //will the ball go off the left side?\n if (nextBallLeft < playerOneRight) {\n //is it going to miss the paddle?\n if (nextBallTop > playerOneBottom || nextBallBottom < playerOneTop) {\n\n Score.second++;\n\n if (Score.second == 3) {\n settingOfTheGame.setPlaying(false);\n settingOfTheGame.setGameOver(true);\n }\n\n settingOfTheGame.setBallX(250);\n settingOfTheGame.setBallY(250);\n } else {\n settingOfTheGame.setBallDeltaX(settingOfTheGame.getBallDeltaX()*(-1));\n }\n }\n\n //will the ball go off the right side?\n if (nextBallRight > playerTwoLeft) {\n //is it going to miss the paddle?\n if (nextBallTop > playerTwoBottom || nextBallBottom < playerTwoTop) {\n\n Score.first++;\n\n if (Score.first == 3) {\n settingOfTheGame.setPlaying(false);\n settingOfTheGame.setGameOver(true);\n }\n\n settingOfTheGame.setBallX(250);\n settingOfTheGame.setBallY(250);\n } else {\n settingOfTheGame.setBallDeltaX(settingOfTheGame.getBallDeltaX()*(-1));\n }\n }\n\n //move the ball\n settingOfTheGame.setBallX(settingOfTheGame.getBallX()+settingOfTheGame.getBallDeltaX()); //ballX += ballDeltaX;\n settingOfTheGame.setBallY(settingOfTheGame.getBallY()+settingOfTheGame.getBallDeltaY());//ballY += ballDeltaY;\n }",
"public void play() {\n\t\tSystem.out.println(\"ting.. ting...\");\n\t}",
"@Override\r\npublic void Play() {\n\t\r\n}",
"private void startPingTimer() {\n\n Timer timer = new Timer();\n TimerTask task = new TimerTask() {\n @Override\n public void run() {\n\n if (pong) {\n send(\"<ping/>\");\n pong = false;\n } else {\n System.out.println(\"[CLIENT] No pong received. Client will now be disconnected.\");\n clientController.onMissingPong();\n closeConnection();\n timer.cancel();\n }\n\n }\n };\n timer.scheduleAtFixedRate(task, 0, 20000);\n\n }",
"public void onUpdate()\n {\n this.prevPosX = this.posX;\n this.prevPosY = this.posY;\n this.prevPosZ = this.posZ;\n this.motionX = 0.0D;\n this.motionY = 0.0D;\n this.motionZ = 0.0D;\n this.onGround = false;\n\n if (this.wallPos != null)\n {\n this.xPosition = this.wallPos[0];\n this.yPosition = this.wallPos[1];\n this.zPosition = this.wallPos[2];\n\n if (!this.onValidSurface() && !this.isDead)\n {\n this.entityDropItem(this.mapStack, 0.0F);\n this.setDead();\n }\n }\n\n ++this.updateCount;\n\n if (this.updateCount > 400)\n {\n this.updateCount = 0;\n mod_HangableMaps.instance.sendMapIDPacket(this);\n }\n }",
"@Override\n\tpublic void play() {\n\n\t}",
"@Override\n public void onMove(float x, float y) {\n }",
"@Test(timeout = 4000)\n public void test10() throws Throwable {\n Player player0 = new Player();\n Player player1 = new Player();\n player0.add(player1);\n player0.setConnected(true);\n byte[] byteArray0 = player0.pack();\n player0.setX((-170.22772F));\n player1.unpack(byteArray0);\n assertEquals((-170.22772F), player0.getX(), 0.01F);\n assertEquals(0, player1.getPictureId());\n }",
"@Override\n\tpublic void onBufferingUpdate(MediaPlayer mp, int percent) {\n\t}",
"@Override\n\tpublic void onUpdate() {\n\t\tif(!world.isRemote && !firstTick) {\n\t\t\tLCNetwork.net.sendToAllAround(new MessageSyncTNT(this), \n\t\t\t\t\tnew TargetPoint(this.dimension, this.posX, this.posY, this.posZ, 1024));\n\t\t\tfirstTick = true;\n\t\t}\n\t\t\n\t\tthis.prevPosX = this.posX;\n\t\tthis.prevPosY = this.posY;\n\t\tthis.prevPosZ = this.posZ;\n\t\tthis.motionY -= 0.03999999910593033D;\n\t\tthis.move(MoverType.SELF, this.motionX, this.motionY, this.motionZ);\n\t\tthis.motionX *= 0.9800000190734863D;\n\t\tthis.motionY *= 0.9800000190734863D;\n\t\tthis.motionZ *= 0.9800000190734863D;\n\n\t\tif (this.onGround)\n\t\t{\n\t\t\tthis.motionX *= 0.699999988079071D;\n\t\t\tthis.motionZ *= 0.699999988079071D;\n\t\t\tthis.motionY *= -0.5D;\n\t\t}\n\n\t\tif (this.fuse-- <= 0)\n\t\t{\n\t\t\tthis.setDead();\n\n\t\t\tif (!this.world.isRemote)\n\t\t\t{\n\t\t\t\tthis.explode();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.world.spawnParticle(EnumParticleTypes.SMOKE_LARGE, this.posX, this.posY + 0.5D, this.posZ, 0.0D, 0.0D, 0.0D);\n\t\t}\n\t}",
"public void update(Observable aPongModel, Object arg) {\n S_PongModel model = (S_PongModel) aPongModel;\n this.ball = model.getBall();\n this.bats = model.getBats();\n\n String s = String.format(\"%4.2f %4.2f %4.2f %4.2f\", ball.getX(), ball.getY(), this.bats[0].getY(), this.bats[1].getY());\n\n left.put(s);\n right.put(s);\n\n //TODO: Send the position of games objects to client.\n\n // Now need to send position of game objects to the client\n // as the model on the server has changed\n }",
"@Override\n public void onBufferingUpdate(MediaPlayer mp, int percent) {\n }",
"@Override\n public void onBufferingUpdate(MediaPlayer mp, int percent) {\n }",
"private void tick() {\n\n if (StateManager.getState() != null) {\n StateManager.getState().tick();\n }\n this.backgroundFrames--;\n if (this.backgroundFrames == 0) {\n this.backgroundFrames = Const.TOTAL_BACKGROUND_FRAMES;\n }\n//Check all changed variables for the player\n player.tick();\n long elapsed = (System.nanoTime() - time) / (Const.DRAWING_DELAY - (4000 * Enemy.getDifficulty()));\n//Check if enough time is passed to add new enemy or if spawnSpot is available\n if (elapsed > (this.delay - Enemy.getDifficulty() * 300)&& Road.isSpotAvailable()) {\n enemies.add(new Enemy());\n time = System.nanoTime();\n }\n//Loop for checking all changed variables for the enemies and check if they intersects with the player\n for (int j = 0; j < enemies.size(); j++) {\n enemies.get(j).tick();\n if(enemies.get(j).getY() > Const.ROAD_BOTTOM_BORDER + 200){\n Road.getOccupiedSpawnPoints()[Const.SPAWN_POINTS.indexOf(enemies.get(j).getX())] = false;\n player.setScore(player.getScore() + 50);\n enemies.remove(j);\n continue;\n }\n enemyBoundingBox = enemies.get(j).getEnemyRectangle();\n if (player.getBoundingBox().intersects(enemyBoundingBox)) {\n reset();\n if(player.getLives() == 0){\n gameOver();\n }\n break;\n }\n }\n }"
] | [
"0.7638178",
"0.755315",
"0.73672026",
"0.70299447",
"0.69127643",
"0.6837398",
"0.6550889",
"0.64000946",
"0.63866127",
"0.6382029",
"0.6347818",
"0.62209845",
"0.6156214",
"0.61504626",
"0.61364496",
"0.6060439",
"0.60542834",
"0.5973854",
"0.5928746",
"0.59264624",
"0.59220445",
"0.5916021",
"0.58812726",
"0.5875749",
"0.58642864",
"0.5859417",
"0.58588517",
"0.58391124",
"0.58069986",
"0.5794868",
"0.57627255",
"0.57599556",
"0.57464683",
"0.5744109",
"0.5744006",
"0.5732249",
"0.5730635",
"0.57096255",
"0.5701431",
"0.5692254",
"0.56870484",
"0.56859535",
"0.5685199",
"0.56817055",
"0.5674288",
"0.5669283",
"0.5669108",
"0.5662009",
"0.56588924",
"0.5657409",
"0.5649338",
"0.5648043",
"0.5645671",
"0.56451976",
"0.5619636",
"0.5612735",
"0.55998963",
"0.55989844",
"0.55866706",
"0.55722106",
"0.55719465",
"0.55711216",
"0.5566712",
"0.55559266",
"0.55435103",
"0.5537455",
"0.5528708",
"0.5521594",
"0.5518183",
"0.5516529",
"0.5516529",
"0.55143213",
"0.5498715",
"0.5497498",
"0.54960036",
"0.5492088",
"0.5490237",
"0.5481163",
"0.54697126",
"0.54672945",
"0.5466867",
"0.54653686",
"0.5459206",
"0.5453416",
"0.5444991",
"0.5419223",
"0.5415112",
"0.5414443",
"0.54072964",
"0.540559",
"0.5405239",
"0.54024714",
"0.5401007",
"0.53974575",
"0.53918487",
"0.53917336",
"0.539107",
"0.5388619",
"0.5388619",
"0.53848445"
] | 0.80228496 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int[] a = new int[8];
for (int i = 0; i < 8; i++) {
a[i] = scan.nextInt();
}
int num = 1;
check(a, num);
} | {
"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 |
Created by sang on 2018/1/12. | public interface InductionMapper extends BaseMapper<Induction>{
int addInduction(Induction Induction);
int updateInduction(Induction Induction);
List<Induction> getInductioneByPage(@Param("start") Integer start, @Param("size") Integer size, @Param("name")String name, @Param("hr_id")int hr_id);
Long getCountByName(@Param("name") String name,@Param("hr_id")Integer hr_id);
List<Induction> getByIds(@Param("ids")String[] id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"private void poetries() {\n\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n public void init() {\n }",
"@Override\n void init() {\n }",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"public void gored() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"private void init() {\n\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n public int describeContents() { return 0; }",
"@Override\n public void init() {}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\r\n\tpublic void init() {}",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public void mo4359a() {\n }",
"private void kk12() {\n\n\t}",
"private void strin() {\n\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"protected boolean func_70814_o() { return true; }",
"@Override\n\tpublic void init() {\n\t}",
"@Override\n public void initialize() { \n }",
"private Rekenhulp()\n\t{\n\t}",
"private void m50366E() {\n }",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"Petunia() {\r\n\t\t}",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"private void init() {\n\n\n\n }",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}"
] | [
"0.6042199",
"0.587684",
"0.5775224",
"0.57584924",
"0.5711287",
"0.5711287",
"0.56967986",
"0.5611431",
"0.55909765",
"0.55777675",
"0.55736345",
"0.55636495",
"0.5551895",
"0.5542595",
"0.5541481",
"0.5533853",
"0.5529692",
"0.55291563",
"0.552614",
"0.54992336",
"0.54856086",
"0.5473126",
"0.54711014",
"0.5468074",
"0.54572433",
"0.54571897",
"0.54571897",
"0.54571897",
"0.54571897",
"0.54571897",
"0.5436423",
"0.5436423",
"0.5436423",
"0.5436423",
"0.5436423",
"0.5436423",
"0.54338294",
"0.54312557",
"0.54051363",
"0.5405002",
"0.54034686",
"0.53993976",
"0.53957415",
"0.5389953",
"0.5387038",
"0.5383654",
"0.5383464",
"0.5378225",
"0.53725535",
"0.5364124",
"0.5364124",
"0.53590506",
"0.53590506",
"0.53590506",
"0.5358578",
"0.5358578",
"0.53522944",
"0.5350182",
"0.5348394",
"0.5348394",
"0.5347613",
"0.5328687",
"0.53219426",
"0.53219426",
"0.53219426",
"0.53162307",
"0.53162307",
"0.53162307",
"0.53153586",
"0.5313691",
"0.5306566",
"0.5303052",
"0.5299632",
"0.5298737",
"0.52807623",
"0.52782714",
"0.5274183",
"0.52662975",
"0.52619505",
"0.52564704",
"0.52563417",
"0.5252344",
"0.52507263",
"0.5236078",
"0.5218927",
"0.5218927",
"0.5218927",
"0.5218927",
"0.5218927",
"0.5218927",
"0.5218927",
"0.5195519",
"0.5194888",
"0.5194888",
"0.5194888",
"0.51932883",
"0.5186621",
"0.51852334",
"0.51809967",
"0.51809967",
"0.5171296"
] | 0.0 | -1 |
logger.info("field 1 = " + field1 + ", field 2 = " + field2); | @Override
public void function()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void info(Object message)\n/* */ {\n/* 145 */ if (message != null) {\n/* 146 */ getLogger().info(String.valueOf(message));\n/* */ }\n/* */ }",
"final void out (String msg1, String msg2) { if (m_debugMode) { Logger.print (msg1); Logger.println (msg2); } }",
"void log();",
"private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }",
"public void logDebug(String str) {\n }",
"public void logData(){\n }",
"@Test\n\tpublic void logFormattedStringWithTwoObjects() {\n\t\tlogger.logf(org.jboss.logging.Logger.Level.DEBUG, \"%s = %d\", \"magic\", 42);\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(null), any(PrintfStyleFormatter.class), eq(\"%s = %d\"), eq(\"magic\"),\n\t\t\t\t\teq(42));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logf(org.jboss.logging.Logger.Level.WARN, \"%s = %d\", \"magic\", 42);\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(null), any(PrintfStyleFormatter.class), eq(\"%s = %d\"), eq(\"magic\"),\n\t\t\t\t\teq(42));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}",
"public void log(Object... vals) throws IOException;",
"public String get_log(){\n }",
"public void writeLog() {\n\n\t}",
"public void writeLog() {\n\n\t}",
"public void writeLog() {\n\n\t}",
"@Override\n public void logs() {\n \n }",
"void log(String string);",
"@Test\n\tpublic void logFormattedStringWithMultipleObjects() {\n\t\tlogger.logf(org.jboss.logging.Logger.Level.DEBUG, \"%s, %s, %s or %s\", \"one\", \"two\", \"three\", \"four\");\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(null), any(PrintfStyleFormatter.class), eq(\"%s, %s, %s or %s\"),\n\t\t\t\t\teq(\"one\"), eq(\"two\"), eq(\"three\"), eq(\"four\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logf(org.jboss.logging.Logger.Level.WARN, \"%s, %s, %s or %s\", \"one\", \"two\", \"three\", \"four\");\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(null), any(PrintfStyleFormatter.class), eq(\"%s, %s, %s or %s\"),\n\t\t\t\t\teq(\"one\"), eq(\"two\"), eq(\"three\"), eq(\"four\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}",
"default String info(String... args) {\n String message = create(args);\n getLogger().info(message);\n return message;\n }",
"public void log(String p1, String p2) {\n\tlog(p1, (Object)p2);\n }",
"@Test\n\tpublic void logFormattedStringWithThreeObject() {\n\t\tlogger.logf(org.jboss.logging.Logger.Level.DEBUG, \"%s, %s or %s\", \"one\", \"two\", \"three\");\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(null), any(PrintfStyleFormatter.class), eq(\"%s, %s or %s\"),\n\t\t\t\t\teq(\"one\"), eq(\"two\"), eq(\"three\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logf(org.jboss.logging.Logger.Level.WARN, \"%s, %s or %s\", \"one\", \"two\", \"three\");\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(null), any(PrintfStyleFormatter.class), eq(\"%s, %s or %s\"),\n\t\t\t\t\teq(\"one\"), eq(\"two\"), eq(\"three\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}",
"private void logToFile() {\n }",
"public String getLog();",
"java.lang.String getLogMessage();",
"public static void log4jExample() {\n\t\tnewLogger.warn(\"This is the info level\");\n\t\t\n\t}",
"public void debug(Object message)\n/* */ {\n/* 118 */ if (message != null) {\n/* 119 */ getLogger().debug(String.valueOf(message));\n/* */ }\n/* */ }",
"public void log(String txt);",
"final void out (String msg) { if (m_debugMode) { Logger.println (msg); } }",
"public abstract void logd(String str);",
"public static final void info(@org.jetbrains.annotations.NotNull org.jetbrains.anko.AnkoLogger r2, @org.jetbrains.annotations.NotNull kotlin.jvm.functions.Function0<? extends java.lang.Object> r3) {\n /*\n r1 = \"$receiver\";\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r2, r1);\n r1 = \"message\";\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r3, r1);\n r0 = r2.getLoggerTag();\n r1 = 4;\n r1 = android.util.Log.isLoggable(r0, r1);\n if (r1 == 0) goto L_0x0026;\n L_0x0017:\n r1 = r3.invoke();\n if (r1 == 0) goto L_0x0027;\n L_0x001d:\n r1 = r1.toString();\n if (r1 == 0) goto L_0x0027;\n L_0x0023:\n android.util.Log.i(r0, r1);\n L_0x0026:\n return;\n L_0x0027:\n r1 = \"null\";\n goto L_0x0023;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.jetbrains.anko.Logging.info(org.jetbrains.anko.AnkoLogger, kotlin.jvm.functions.Function0):void\");\n }",
"public void log(String text) {\n }",
"public void log(String msg) {\n\n\t}",
"private void logInfo(String msgText) {\n System.out.println (\"[INFO] \" + msgText);\n \n }",
"protected void log(Object msg) {\n\t\n\t\tSystem.out.println(\"MusicDataAccessor: \" + msg);\n\t}",
"String getLogHandled();",
"java.lang.String getFields();",
"private static void logInfo(final Logger logger, final String message) {\n System.out.println(message);\n logger.info(message);\n }",
"void log(String line);",
"@Test\r\n\tpublic void logTest() {\r\n\t\tlogger.info(\"Testando info\");\r\n\t\tlogger.debug(\"nao sera logado\" + \"Nice\");\r\n\t\tlogger.error(\"This is Error message\", new Exception(\"Testing\"));\r\n\t}",
"public interface ILogger {\r\n //name of columns for measuring multiple values together\r\n public void init(String... names) throws IOException;\r\n //datapoints per column for measuring multiple values together\r\n public void log(Object... vals) throws IOException;\r\n //all datapoints where submitted so clean up\r\n public void finish() throws IOException;\r\n}",
"IFileLogger log();",
"@Test\n\tpublic void logFormattedStringWithSingleObject() {\n\t\tlogger.logf(org.jboss.logging.Logger.Level.DEBUG, \"Hello %s!\", \"World\");\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(null), any(PrintfStyleFormatter.class), eq(\"Hello %s!\"),\n\t\t\t\t\teq(\"World\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logf(org.jboss.logging.Logger.Level.WARN, \"Hello %s!\", \"World\");\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(null), any(PrintfStyleFormatter.class), eq(\"Hello %s!\"),\n\t\t\t\t\teq(\"World\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}",
"Appendable getLog();",
"public void logImportant(String str) {\n\t\tSystem.out.println(str);\n\t}",
"@Test\n\tpublic void logFormattedMessageWithMultipleArguments() {\n\t\tlogger.logv(org.jboss.logging.Logger.Level.DEBUG, \"{0}, {1}, {2} or {3}\", 1, 2, 3, 4);\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(null), any(JavaTextMessageFormatFormatter.class),\n\t\t\t\t\teq(\"{0}, {1}, {2} or {3}\"), eq(1), eq(2), eq(3), eq(4));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logv(org.jboss.logging.Logger.Level.WARN, \"{0}, {1}, {2} or {3}\", 1, 2, 3, 4);\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(null), any(JavaTextMessageFormatFormatter.class),\n\t\t\t\t\teq(\"{0}, {1}, {2} or {3}\"), eq(1), eq(2), eq(3), eq(4));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}",
"void info(String message);",
"public void info(Object message, Throwable t)\n/* */ {\n/* 159 */ if (message != null) {\n/* 160 */ getLogger().info(String.valueOf(message), t);\n/* */ }\n/* */ }",
"@Override\r\n\tpublic String log(String info) {\n\t\tlong id=Thread.currentThread().getId();\r\n\t\tCalcThread b=ProCalcManage.getInstance().threadIDMap.get(id);\r\n\t\tsynchronized (b.proinfo.info.log) {\r\n\t\t\tb.proinfo.info.log.add(new LogInfo(new Date(), info));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn info;\r\n\t}",
"private void logProperties() {\n log.info(\"externalPropertiesConfiguration::whoAmI = {}\", this.externalPropertiesConfiguration.getWhoAmI());\n log.info(\"externalPropertiesConfiguration::propertyOne = {}\", this.externalPropertiesConfiguration.getPropertyOne());\n log.info(\"externalPropertiesConfiguration::propertyTwo = {}\", this.externalPropertiesConfiguration.getPropertyTwo());\n log.info(\"externalPropertiesConfiguration::propertyThree = {}\", this.externalPropertiesConfiguration.getPropertyThree());\n log.info(\"externalPropertiesConfiguration::propertyFour = {}\", this.externalPropertiesConfiguration.getPropertyFour());\n\n log.info(\"anotherPropertiesConfiguration::whoAmI = {}\", this.anotherPropertiesConfiguration.getWhoAmI());\n log.info(\"anotherPropertiesConfiguration::propertyOne = {}\", this.anotherPropertiesConfiguration.getPropertyOne());\n log.info(\"anotherPropertiesConfiguration::propertyTwo = {}\", this.anotherPropertiesConfiguration.getPropertyTwo());\n log.info(\"anotherPropertiesConfiguration::propertyThree = {}\", this.anotherPropertiesConfiguration.getPropertyThree());\n log.info(\"anotherPropertiesConfiguration::propertyFour = {}\", this.anotherPropertiesConfiguration.getPropertyFour());\n }",
"@Test\n\tpublic void logFormattedMessageWithTwoArguments() {\n\t\tlogger.logv(org.jboss.logging.Logger.Level.DEBUG, \"{0} = {1}\", \"magic\", 42);\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(null), any(JavaTextMessageFormatFormatter.class), eq(\"{0} = {1}\"),\n\t\t\t\t\teq(\"magic\"), eq(42));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logv(org.jboss.logging.Logger.Level.WARN, \"{0} = {1}\", \"magic\", 42);\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(null), any(JavaTextMessageFormatFormatter.class), eq(\"{0} = {1}\"),\n\t\t\t\t\teq(\"magic\"), eq(42));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}",
"public void printMessagesAsInfo() {\n logger.info(Thread.currentThread().getStackTrace()[1].getMethodName());\n if(messages != null) {\n for (String message : messages) {\n logger.debug(message);\n }\n }\n }",
"@Override\n\tpublic void log(Level level, String message, Object p0, Object p1) {\n\n\t}",
"public void info(String msg) {\n LOGGER_BASE.info(msg);\n }",
"public interface Log {\n void debug(String msg, Object... args);\n\n void info(String msg, Object... args);\n\n void warn(String msg, Object... args);\n}",
"public void LogIt(ExtentTest logger,String StepInfo){\r\n logger.log(Status.INFO,StepInfo);\r\n }",
"public void formatFields() {\r\n\t}",
"public void log(Object self, String p1) {\n\tif (!logging)\n\t return;\n\tprefix(self).print(p1).suffix();\n }",
"private void log(String msg) {\r\n\t\tif (logger != null) {\r\n\t\t\tlogger.append(msg);\r\n\t\t\tlogger.println();\r\n\t\t}\r\n\t}",
"public void appendFields(List<Field> fields) {\n // zzzz! zzzz!\n }",
"void printLog(String str)\n { printLog(str,Log.LEVEL_HIGH);\n }",
"private void logDeviceInfo() {\n logDeviceLevel();\n }",
"private void logDeviceInfo() {\n logDeviceLevel();\n }",
"@Override\n public void log()\n {\n }",
"public void logInfo( String msg ) {\r\n\t\tlogger.log( Level.INFO, logPrefix + \" \" + msg );\r\n\t}",
"public static void log(String str)\r\n\t{\n\t}",
"private void printLog(String str)\n { printLog(str,Log.LEVEL_HIGH);\n }",
"@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2) {\n\n\t}",
"public void add_to_log(String s){\n }",
"@Override\n\tpublic void log(Level level, String message, Supplier<?>... paramSuppliers) {\n\n\t}",
"void log(Message message);",
"public void info(String string) {\n\t\t\n\t}",
"public interface Logger\n{\n /**\n * Returns the name of the object.\n *\n * @return name of the Logger class\n */\n public String getName();\n\n /**\n * Rerturns the time of the object.\n *\n * @return time of the Logger object\n */\n public double getTime();\n}",
"public void log(Marker level, String... message);",
"LogRecorder getLogRecorder();",
"LogRecorder getLogRecorder();",
"public static void main(String[] args)throws IOException ,SQLException {\nlog.debug(\"Hello this is a debug message\");\r\nlog.info(\"Hello this is a info message\");\r\nlog.warn(\"Sample warn message \");\r\nlog.error(\"Sample error message \");\r\nlog.fatal(\"Sample fatal message \");\r\n\r\n}",
"public String printChangeSuccessful(String field) {\n return \"Congratulations! Your \" + field + \" has been successfully changed\";\n }",
"public interface Logger {\n void verbose(String message, Object... args);\n void debug(Object msg);\n void debug(String message, Object... args);\n void info(String message, Object... args);\n void warning(String message, Object... args);\n void error(String message, Object... args);\n void error(Throwable throwable, String message, Object... args);\n}",
"@Override\n\tpublic void log(Level level, String message, Object... params) {\n\n\t}",
"void printHellow() {\n logger.debug(\"hellow world begin....\");\n logger.info(\"it's a info message\");\n logger.warn(\"it's a warning message\");\n loggerTest.warn(\"from test1 :....\");\n loggerTest.info(\"info from test1 :....\");\n\n // print internal state\n LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();\n StatusPrinter.print(lc);\n }",
"public void logDebug()\n\t{\n\t\tLogHandler handlerList[];\n\t\tLogHandler handler = null;\n\n\t\tSystem.out.println(\"Logger = \"+logger);\n\t\tSystem.out.println(\"Logger log level is: \"+logger.getLogLevel());\n\t\tSystem.out.println(\"Logger log filter is: \"+logger.getFilter());\n\t\thandlerList = logger.getHandlers();\n\t\tfor(int i = 0; i < handlerList.length; i++)\n\t\t{\n\t\t\thandler = handlerList[i];\n\t\t\tSystem.out.println(\"Logger handler \"+i+\" is:\"+handler+\" and called \"+handler.getName());\n\t\t\tSystem.out.println(\"Logger handler \"+i+\" has filter:\"+handler.getFilter());\n\t\t\tSystem.out.println(\"Logger handler \"+i+\" has log level:\"+handler.getLogLevel());\n\t\t}\n\t}",
"public static void main(String []args) {\n\t\tlog.trace(\"111---\");\n\t\tlog.debug(\"2222\");\n\t\tlog.info(\"333\");\n\t\tlog.warn(\"444\");\n\t\tlog.error(\"555\");\n\t}",
"public void log(String message) {\n log(message, MSG_INFO);\n }",
"public void logDebugData() {\n SmartDashboard.putNumber(\"Ele Pos\", getPosition());\n SmartDashboard.putBoolean(\"Ele Switch\", bottomSwitchValue());\n SmartDashboard.putNumber(\"Ele Current\", getCurrent());\n SmartDashboard.putNumber(\"Ele Out %\", elevatorSpark.getAppliedOutput());\n }",
"public void debugWriteData(INode node) {\n\t\t\tif(isLog4jEnabled){\n\t\t\t\n stringBuffer.append(TEXT_21);\n stringBuffer.append(label);\n stringBuffer.append(TEXT_22);\n stringBuffer.append(cid );\n stringBuffer.append(TEXT_23);\n \n\t\t\t}\n\t\t}",
"@Override\n\tpublic void log(Level level, Marker marker, String message, Supplier<?>... paramSuppliers) {\n\n\t}",
"@Test\n\tpublic void logFormattedMessageWithThreeArguments() {\n\t\tlogger.logv(org.jboss.logging.Logger.Level.DEBUG, \"{0}, {1} or {2}\", 1, 2, 3);\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(null), any(JavaTextMessageFormatFormatter.class),\n\t\t\t\t\teq(\"{0}, {1} or {2}\"), eq(1), eq(2), eq(3));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logv(org.jboss.logging.Logger.Level.WARN, \"{0}, {1} or {2}\", 1, 2, 3);\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(null), any(JavaTextMessageFormatFormatter.class),\n\t\t\t\t\teq(\"{0}, {1} or {2}\"), eq(1), eq(2), eq(3));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}",
"public static void logInfo(Logger logger, ServerWebExchange exchange, String msg, Object... args) {\n\n if (!logger.isInfoEnabled())\n return;\n\n if (exchange == null) {\n logger.info(msg, args);\n } else {\n String context = exchange.getAttribute(TRACE_ID_CONTEXT_KEY);\n try (MDC.MDCCloseable cMdc = MDC.putCloseable(TRACE_ID_CONTEXT_KEY, context)) {\n logger.info(msg, args);\n }\n }\n }",
"public static void printInfo(){\n }",
"public static void logInfo(Context context,String message){\n if(logging){\n String tag = context.getClass().getName();\n android.util.Log.i(tag, message);\n }\n }",
"private static void logLineOfCreditDetails(LineOfCredit lineOfCredit) {\n\n\t\tif (lineOfCredit != null) {\n\t\t\tSystem.out.println(\"Line of credit details:\");\n\t\t\tSystem.out.println(\"\\tID:\" + lineOfCredit.getId());\n\t\t\tSystem.out.println(\"\\tClientKey:\" + lineOfCredit.getClientKey());\n\t\t\tSystem.out.println(\"\\tGroupKey:\" + lineOfCredit.getGroupKey());\n\t\t\tSystem.out.println(\"\\tStartDate:\" + lineOfCredit.getStartDate());\n\t\t\tSystem.out.println(\"\\tExpireDate:\" + lineOfCredit.getExpireDate());\n\t\t\tSystem.out.println(\"\\tAmount:\" + lineOfCredit.getAmount());\n\t\t\tSystem.out.println(\"\\tState:\" + lineOfCredit.getState());\n\t\t\tSystem.out.println(\"\\tCreationDate:\" + lineOfCredit.getCreationDate());\n\t\t\tSystem.out.println(\"\\tLastModifiedDate:\" + lineOfCredit.getLastModifiedDate());\n\t\t\tSystem.out.println(\"\\tNotes:\" + lineOfCredit.getNotes());\n\t\t\n\t\t\t// log the CFs details\n\t\t\tlogCustomFieldValuesDetails(lineOfCredit.getCustomFieldValues());\n\t\t}\n\t}",
"@Override\n\tpublic void log(Level level, Marker marker, String message, Object p0, Object p1) {\n\n\t}",
"public static void debug(String string, Object... val) {\n\n }",
"public static void info(String msg){\n\t\tconsole(msg);\n\t\tlogger.info(msg);\n\t}",
"void printLog(String str, int level)\n { if (log!=null) log.println(\"CommandLineUA: \"+str, UserAgent.LOG_OFFSET+level);\n }",
"@Test\n\tpublic void logFormattedMessageWithSingleArgument() {\n\t\tlogger.logv(org.jboss.logging.Logger.Level.DEBUG, \"Hello {0}!\", \"World\");\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(null), any(JavaTextMessageFormatFormatter.class), eq(\"Hello {0}!\"),\n\t\t\t\t\teq(\"World\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logv(org.jboss.logging.Logger.Level.WARN, \"Hello {0}!\", \"World\");\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(null), any(JavaTextMessageFormatFormatter.class), eq(\"Hello {0}!\"),\n\t\t\t\t\teq(\"World\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}",
"public void printInfo(){\n\t}",
"public void printInfo(){\n\t}",
"private static void print(LOG_IDENTIFY mode, String TAG, String info)\n {\n StackTraceElement[] ste = Thread.currentThread().getStackTrace(); \n StringBuffer sb = new StringBuffer();\n sb.append(ste[4].getClassName());\n sb.append(\"$\");\n sb.append(ste[4].getMethodName());\n sb.append(\"()@\");\n sb.append(ste[4].getLineNumber());\n sb.append(\" : \");\n sb.append(info);\n\n switch (mode)\n {\n case INFO: \n Log.i(TAG, sb.toString());\n break;\n case DEBUG:\n \tLog.d(TAG, sb.toString());\n break;\n case WARNING:\n \tLog.w(TAG, sb.toString());\n break;\n case ERROR:\n \tLog.e(TAG, sb.toString());\n break;\n case P:\n \tif(ste.length > 5)\n \t{\n \tsb.setLength(0);\n sb.append(ste[5].getClassName());\n sb.append(\"$\");\n sb.append(ste[5].getMethodName());\n sb.append(\"()@\");\n sb.append(ste[5].getLineNumber());\n sb.append(\" : \");\n sb.append(info);\n \t}\n \tLog.d(TAG, sb.toString());\n \tbreak;\n default:\n break;\n }\n \n }",
"public void log(String message) {\n\t}",
"private static void logDebug(String message, Object... arguments) {\n\t\tif (LOGGER.isDebugEnabled()) {\n\t\t\tLOGGER.debug(message, arguments);\n\t\t}\n\t}",
"private void doIt() {\n\t\tlogger.debug(\"hellow this is the first time I use Logback\");\n\t\t\n\t}",
"@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"@Override\n\tpublic void info(String message, Object p0, Object p1) {\n\n\t}"
] | [
"0.62883085",
"0.6262196",
"0.6210531",
"0.61641353",
"0.6047917",
"0.5943188",
"0.5898807",
"0.58888686",
"0.5851233",
"0.5835677",
"0.5835677",
"0.5835677",
"0.5826294",
"0.5808557",
"0.5793997",
"0.5793274",
"0.5761334",
"0.57569116",
"0.5691561",
"0.56833154",
"0.56829",
"0.56513566",
"0.56511146",
"0.56425506",
"0.56416935",
"0.56360096",
"0.5630508",
"0.5615982",
"0.5609626",
"0.5598174",
"0.55913633",
"0.55890244",
"0.5575776",
"0.5573242",
"0.5569173",
"0.55655587",
"0.5553929",
"0.55363727",
"0.55354804",
"0.5520926",
"0.55097383",
"0.5508759",
"0.5495242",
"0.5491619",
"0.54913986",
"0.5481575",
"0.5476845",
"0.54637545",
"0.54629827",
"0.5460689",
"0.54548985",
"0.5450858",
"0.54443663",
"0.5441886",
"0.5438748",
"0.54373085",
"0.5417849",
"0.54151714",
"0.54151714",
"0.54130614",
"0.54102826",
"0.5406837",
"0.5400095",
"0.5398472",
"0.5396497",
"0.5382586",
"0.53773284",
"0.5376703",
"0.5371489",
"0.5371026",
"0.5369282",
"0.5369282",
"0.53681225",
"0.5347596",
"0.53428674",
"0.53394747",
"0.53393054",
"0.5338483",
"0.5325774",
"0.5324738",
"0.5321518",
"0.53205764",
"0.5312775",
"0.5310926",
"0.53108513",
"0.53083897",
"0.5302096",
"0.53019977",
"0.5301988",
"0.53003806",
"0.5297378",
"0.5296299",
"0.5283013",
"0.52821374",
"0.52821374",
"0.52809745",
"0.52803344",
"0.5279179",
"0.5271261",
"0.5267113",
"0.5264147"
] | 0.0 | -1 |
logger.info("field 1 = " + field1 + ", field 2 = " + field2); | @Override
public void function()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void info(Object message)\n/* */ {\n/* 145 */ if (message != null) {\n/* 146 */ getLogger().info(String.valueOf(message));\n/* */ }\n/* */ }",
"final void out (String msg1, String msg2) { if (m_debugMode) { Logger.print (msg1); Logger.println (msg2); } }",
"void log();",
"private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }",
"public void logDebug(String str) {\n }",
"public void logData(){\n }",
"@Test\n\tpublic void logFormattedStringWithTwoObjects() {\n\t\tlogger.logf(org.jboss.logging.Logger.Level.DEBUG, \"%s = %d\", \"magic\", 42);\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(null), any(PrintfStyleFormatter.class), eq(\"%s = %d\"), eq(\"magic\"),\n\t\t\t\t\teq(42));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logf(org.jboss.logging.Logger.Level.WARN, \"%s = %d\", \"magic\", 42);\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(null), any(PrintfStyleFormatter.class), eq(\"%s = %d\"), eq(\"magic\"),\n\t\t\t\t\teq(42));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}",
"public void log(Object... vals) throws IOException;",
"public String get_log(){\n }",
"public void writeLog() {\n\n\t}",
"public void writeLog() {\n\n\t}",
"public void writeLog() {\n\n\t}",
"@Override\n public void logs() {\n \n }",
"void log(String string);",
"@Test\n\tpublic void logFormattedStringWithMultipleObjects() {\n\t\tlogger.logf(org.jboss.logging.Logger.Level.DEBUG, \"%s, %s, %s or %s\", \"one\", \"two\", \"three\", \"four\");\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(null), any(PrintfStyleFormatter.class), eq(\"%s, %s, %s or %s\"),\n\t\t\t\t\teq(\"one\"), eq(\"two\"), eq(\"three\"), eq(\"four\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logf(org.jboss.logging.Logger.Level.WARN, \"%s, %s, %s or %s\", \"one\", \"two\", \"three\", \"four\");\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(null), any(PrintfStyleFormatter.class), eq(\"%s, %s, %s or %s\"),\n\t\t\t\t\teq(\"one\"), eq(\"two\"), eq(\"three\"), eq(\"four\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}",
"default String info(String... args) {\n String message = create(args);\n getLogger().info(message);\n return message;\n }",
"public void log(String p1, String p2) {\n\tlog(p1, (Object)p2);\n }",
"@Test\n\tpublic void logFormattedStringWithThreeObject() {\n\t\tlogger.logf(org.jboss.logging.Logger.Level.DEBUG, \"%s, %s or %s\", \"one\", \"two\", \"three\");\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(null), any(PrintfStyleFormatter.class), eq(\"%s, %s or %s\"),\n\t\t\t\t\teq(\"one\"), eq(\"two\"), eq(\"three\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logf(org.jboss.logging.Logger.Level.WARN, \"%s, %s or %s\", \"one\", \"two\", \"three\");\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(null), any(PrintfStyleFormatter.class), eq(\"%s, %s or %s\"),\n\t\t\t\t\teq(\"one\"), eq(\"two\"), eq(\"three\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}",
"private void logToFile() {\n }",
"public String getLog();",
"java.lang.String getLogMessage();",
"public static void log4jExample() {\n\t\tnewLogger.warn(\"This is the info level\");\n\t\t\n\t}",
"public void debug(Object message)\n/* */ {\n/* 118 */ if (message != null) {\n/* 119 */ getLogger().debug(String.valueOf(message));\n/* */ }\n/* */ }",
"public void log(String txt);",
"final void out (String msg) { if (m_debugMode) { Logger.println (msg); } }",
"public abstract void logd(String str);",
"public static final void info(@org.jetbrains.annotations.NotNull org.jetbrains.anko.AnkoLogger r2, @org.jetbrains.annotations.NotNull kotlin.jvm.functions.Function0<? extends java.lang.Object> r3) {\n /*\n r1 = \"$receiver\";\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r2, r1);\n r1 = \"message\";\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r3, r1);\n r0 = r2.getLoggerTag();\n r1 = 4;\n r1 = android.util.Log.isLoggable(r0, r1);\n if (r1 == 0) goto L_0x0026;\n L_0x0017:\n r1 = r3.invoke();\n if (r1 == 0) goto L_0x0027;\n L_0x001d:\n r1 = r1.toString();\n if (r1 == 0) goto L_0x0027;\n L_0x0023:\n android.util.Log.i(r0, r1);\n L_0x0026:\n return;\n L_0x0027:\n r1 = \"null\";\n goto L_0x0023;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.jetbrains.anko.Logging.info(org.jetbrains.anko.AnkoLogger, kotlin.jvm.functions.Function0):void\");\n }",
"public void log(String text) {\n }",
"public void log(String msg) {\n\n\t}",
"private void logInfo(String msgText) {\n System.out.println (\"[INFO] \" + msgText);\n \n }",
"protected void log(Object msg) {\n\t\n\t\tSystem.out.println(\"MusicDataAccessor: \" + msg);\n\t}",
"String getLogHandled();",
"java.lang.String getFields();",
"private static void logInfo(final Logger logger, final String message) {\n System.out.println(message);\n logger.info(message);\n }",
"void log(String line);",
"@Test\r\n\tpublic void logTest() {\r\n\t\tlogger.info(\"Testando info\");\r\n\t\tlogger.debug(\"nao sera logado\" + \"Nice\");\r\n\t\tlogger.error(\"This is Error message\", new Exception(\"Testing\"));\r\n\t}",
"public interface ILogger {\r\n //name of columns for measuring multiple values together\r\n public void init(String... names) throws IOException;\r\n //datapoints per column for measuring multiple values together\r\n public void log(Object... vals) throws IOException;\r\n //all datapoints where submitted so clean up\r\n public void finish() throws IOException;\r\n}",
"IFileLogger log();",
"@Test\n\tpublic void logFormattedStringWithSingleObject() {\n\t\tlogger.logf(org.jboss.logging.Logger.Level.DEBUG, \"Hello %s!\", \"World\");\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(null), any(PrintfStyleFormatter.class), eq(\"Hello %s!\"),\n\t\t\t\t\teq(\"World\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logf(org.jboss.logging.Logger.Level.WARN, \"Hello %s!\", \"World\");\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(null), any(PrintfStyleFormatter.class), eq(\"Hello %s!\"),\n\t\t\t\t\teq(\"World\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}",
"Appendable getLog();",
"public void logImportant(String str) {\n\t\tSystem.out.println(str);\n\t}",
"@Test\n\tpublic void logFormattedMessageWithMultipleArguments() {\n\t\tlogger.logv(org.jboss.logging.Logger.Level.DEBUG, \"{0}, {1}, {2} or {3}\", 1, 2, 3, 4);\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(null), any(JavaTextMessageFormatFormatter.class),\n\t\t\t\t\teq(\"{0}, {1}, {2} or {3}\"), eq(1), eq(2), eq(3), eq(4));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logv(org.jboss.logging.Logger.Level.WARN, \"{0}, {1}, {2} or {3}\", 1, 2, 3, 4);\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(null), any(JavaTextMessageFormatFormatter.class),\n\t\t\t\t\teq(\"{0}, {1}, {2} or {3}\"), eq(1), eq(2), eq(3), eq(4));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}",
"void info(String message);",
"public void info(Object message, Throwable t)\n/* */ {\n/* 159 */ if (message != null) {\n/* 160 */ getLogger().info(String.valueOf(message), t);\n/* */ }\n/* */ }",
"@Override\r\n\tpublic String log(String info) {\n\t\tlong id=Thread.currentThread().getId();\r\n\t\tCalcThread b=ProCalcManage.getInstance().threadIDMap.get(id);\r\n\t\tsynchronized (b.proinfo.info.log) {\r\n\t\t\tb.proinfo.info.log.add(new LogInfo(new Date(), info));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn info;\r\n\t}",
"private void logProperties() {\n log.info(\"externalPropertiesConfiguration::whoAmI = {}\", this.externalPropertiesConfiguration.getWhoAmI());\n log.info(\"externalPropertiesConfiguration::propertyOne = {}\", this.externalPropertiesConfiguration.getPropertyOne());\n log.info(\"externalPropertiesConfiguration::propertyTwo = {}\", this.externalPropertiesConfiguration.getPropertyTwo());\n log.info(\"externalPropertiesConfiguration::propertyThree = {}\", this.externalPropertiesConfiguration.getPropertyThree());\n log.info(\"externalPropertiesConfiguration::propertyFour = {}\", this.externalPropertiesConfiguration.getPropertyFour());\n\n log.info(\"anotherPropertiesConfiguration::whoAmI = {}\", this.anotherPropertiesConfiguration.getWhoAmI());\n log.info(\"anotherPropertiesConfiguration::propertyOne = {}\", this.anotherPropertiesConfiguration.getPropertyOne());\n log.info(\"anotherPropertiesConfiguration::propertyTwo = {}\", this.anotherPropertiesConfiguration.getPropertyTwo());\n log.info(\"anotherPropertiesConfiguration::propertyThree = {}\", this.anotherPropertiesConfiguration.getPropertyThree());\n log.info(\"anotherPropertiesConfiguration::propertyFour = {}\", this.anotherPropertiesConfiguration.getPropertyFour());\n }",
"@Test\n\tpublic void logFormattedMessageWithTwoArguments() {\n\t\tlogger.logv(org.jboss.logging.Logger.Level.DEBUG, \"{0} = {1}\", \"magic\", 42);\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(null), any(JavaTextMessageFormatFormatter.class), eq(\"{0} = {1}\"),\n\t\t\t\t\teq(\"magic\"), eq(42));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logv(org.jboss.logging.Logger.Level.WARN, \"{0} = {1}\", \"magic\", 42);\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(null), any(JavaTextMessageFormatFormatter.class), eq(\"{0} = {1}\"),\n\t\t\t\t\teq(\"magic\"), eq(42));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}",
"public void printMessagesAsInfo() {\n logger.info(Thread.currentThread().getStackTrace()[1].getMethodName());\n if(messages != null) {\n for (String message : messages) {\n logger.debug(message);\n }\n }\n }",
"@Override\n\tpublic void log(Level level, String message, Object p0, Object p1) {\n\n\t}",
"public void info(String msg) {\n LOGGER_BASE.info(msg);\n }",
"public interface Log {\n void debug(String msg, Object... args);\n\n void info(String msg, Object... args);\n\n void warn(String msg, Object... args);\n}",
"public void LogIt(ExtentTest logger,String StepInfo){\r\n logger.log(Status.INFO,StepInfo);\r\n }",
"public void formatFields() {\r\n\t}",
"public void log(Object self, String p1) {\n\tif (!logging)\n\t return;\n\tprefix(self).print(p1).suffix();\n }",
"private void log(String msg) {\r\n\t\tif (logger != null) {\r\n\t\t\tlogger.append(msg);\r\n\t\t\tlogger.println();\r\n\t\t}\r\n\t}",
"public void appendFields(List<Field> fields) {\n // zzzz! zzzz!\n }",
"void printLog(String str)\n { printLog(str,Log.LEVEL_HIGH);\n }",
"private void logDeviceInfo() {\n logDeviceLevel();\n }",
"private void logDeviceInfo() {\n logDeviceLevel();\n }",
"@Override\n public void log()\n {\n }",
"public void logInfo( String msg ) {\r\n\t\tlogger.log( Level.INFO, logPrefix + \" \" + msg );\r\n\t}",
"public static void log(String str)\r\n\t{\n\t}",
"private void printLog(String str)\n { printLog(str,Log.LEVEL_HIGH);\n }",
"@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2) {\n\n\t}",
"public void add_to_log(String s){\n }",
"@Override\n\tpublic void log(Level level, String message, Supplier<?>... paramSuppliers) {\n\n\t}",
"void log(Message message);",
"public void info(String string) {\n\t\t\n\t}",
"public interface Logger\n{\n /**\n * Returns the name of the object.\n *\n * @return name of the Logger class\n */\n public String getName();\n\n /**\n * Rerturns the time of the object.\n *\n * @return time of the Logger object\n */\n public double getTime();\n}",
"public void log(Marker level, String... message);",
"LogRecorder getLogRecorder();",
"LogRecorder getLogRecorder();",
"public static void main(String[] args)throws IOException ,SQLException {\nlog.debug(\"Hello this is a debug message\");\r\nlog.info(\"Hello this is a info message\");\r\nlog.warn(\"Sample warn message \");\r\nlog.error(\"Sample error message \");\r\nlog.fatal(\"Sample fatal message \");\r\n\r\n}",
"public String printChangeSuccessful(String field) {\n return \"Congratulations! Your \" + field + \" has been successfully changed\";\n }",
"public interface Logger {\n void verbose(String message, Object... args);\n void debug(Object msg);\n void debug(String message, Object... args);\n void info(String message, Object... args);\n void warning(String message, Object... args);\n void error(String message, Object... args);\n void error(Throwable throwable, String message, Object... args);\n}",
"@Override\n\tpublic void log(Level level, String message, Object... params) {\n\n\t}",
"void printHellow() {\n logger.debug(\"hellow world begin....\");\n logger.info(\"it's a info message\");\n logger.warn(\"it's a warning message\");\n loggerTest.warn(\"from test1 :....\");\n loggerTest.info(\"info from test1 :....\");\n\n // print internal state\n LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();\n StatusPrinter.print(lc);\n }",
"public void logDebug()\n\t{\n\t\tLogHandler handlerList[];\n\t\tLogHandler handler = null;\n\n\t\tSystem.out.println(\"Logger = \"+logger);\n\t\tSystem.out.println(\"Logger log level is: \"+logger.getLogLevel());\n\t\tSystem.out.println(\"Logger log filter is: \"+logger.getFilter());\n\t\thandlerList = logger.getHandlers();\n\t\tfor(int i = 0; i < handlerList.length; i++)\n\t\t{\n\t\t\thandler = handlerList[i];\n\t\t\tSystem.out.println(\"Logger handler \"+i+\" is:\"+handler+\" and called \"+handler.getName());\n\t\t\tSystem.out.println(\"Logger handler \"+i+\" has filter:\"+handler.getFilter());\n\t\t\tSystem.out.println(\"Logger handler \"+i+\" has log level:\"+handler.getLogLevel());\n\t\t}\n\t}",
"public static void main(String []args) {\n\t\tlog.trace(\"111---\");\n\t\tlog.debug(\"2222\");\n\t\tlog.info(\"333\");\n\t\tlog.warn(\"444\");\n\t\tlog.error(\"555\");\n\t}",
"public void log(String message) {\n log(message, MSG_INFO);\n }",
"public void logDebugData() {\n SmartDashboard.putNumber(\"Ele Pos\", getPosition());\n SmartDashboard.putBoolean(\"Ele Switch\", bottomSwitchValue());\n SmartDashboard.putNumber(\"Ele Current\", getCurrent());\n SmartDashboard.putNumber(\"Ele Out %\", elevatorSpark.getAppliedOutput());\n }",
"public void debugWriteData(INode node) {\n\t\t\tif(isLog4jEnabled){\n\t\t\t\n stringBuffer.append(TEXT_21);\n stringBuffer.append(label);\n stringBuffer.append(TEXT_22);\n stringBuffer.append(cid );\n stringBuffer.append(TEXT_23);\n \n\t\t\t}\n\t\t}",
"@Override\n\tpublic void log(Level level, Marker marker, String message, Supplier<?>... paramSuppliers) {\n\n\t}",
"@Test\n\tpublic void logFormattedMessageWithThreeArguments() {\n\t\tlogger.logv(org.jboss.logging.Logger.Level.DEBUG, \"{0}, {1} or {2}\", 1, 2, 3);\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(null), any(JavaTextMessageFormatFormatter.class),\n\t\t\t\t\teq(\"{0}, {1} or {2}\"), eq(1), eq(2), eq(3));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logv(org.jboss.logging.Logger.Level.WARN, \"{0}, {1} or {2}\", 1, 2, 3);\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(null), any(JavaTextMessageFormatFormatter.class),\n\t\t\t\t\teq(\"{0}, {1} or {2}\"), eq(1), eq(2), eq(3));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}",
"public static void logInfo(Logger logger, ServerWebExchange exchange, String msg, Object... args) {\n\n if (!logger.isInfoEnabled())\n return;\n\n if (exchange == null) {\n logger.info(msg, args);\n } else {\n String context = exchange.getAttribute(TRACE_ID_CONTEXT_KEY);\n try (MDC.MDCCloseable cMdc = MDC.putCloseable(TRACE_ID_CONTEXT_KEY, context)) {\n logger.info(msg, args);\n }\n }\n }",
"public static void printInfo(){\n }",
"public static void logInfo(Context context,String message){\n if(logging){\n String tag = context.getClass().getName();\n android.util.Log.i(tag, message);\n }\n }",
"private static void logLineOfCreditDetails(LineOfCredit lineOfCredit) {\n\n\t\tif (lineOfCredit != null) {\n\t\t\tSystem.out.println(\"Line of credit details:\");\n\t\t\tSystem.out.println(\"\\tID:\" + lineOfCredit.getId());\n\t\t\tSystem.out.println(\"\\tClientKey:\" + lineOfCredit.getClientKey());\n\t\t\tSystem.out.println(\"\\tGroupKey:\" + lineOfCredit.getGroupKey());\n\t\t\tSystem.out.println(\"\\tStartDate:\" + lineOfCredit.getStartDate());\n\t\t\tSystem.out.println(\"\\tExpireDate:\" + lineOfCredit.getExpireDate());\n\t\t\tSystem.out.println(\"\\tAmount:\" + lineOfCredit.getAmount());\n\t\t\tSystem.out.println(\"\\tState:\" + lineOfCredit.getState());\n\t\t\tSystem.out.println(\"\\tCreationDate:\" + lineOfCredit.getCreationDate());\n\t\t\tSystem.out.println(\"\\tLastModifiedDate:\" + lineOfCredit.getLastModifiedDate());\n\t\t\tSystem.out.println(\"\\tNotes:\" + lineOfCredit.getNotes());\n\t\t\n\t\t\t// log the CFs details\n\t\t\tlogCustomFieldValuesDetails(lineOfCredit.getCustomFieldValues());\n\t\t}\n\t}",
"@Override\n\tpublic void log(Level level, Marker marker, String message, Object p0, Object p1) {\n\n\t}",
"public static void debug(String string, Object... val) {\n\n }",
"public static void info(String msg){\n\t\tconsole(msg);\n\t\tlogger.info(msg);\n\t}",
"void printLog(String str, int level)\n { if (log!=null) log.println(\"CommandLineUA: \"+str, UserAgent.LOG_OFFSET+level);\n }",
"@Test\n\tpublic void logFormattedMessageWithSingleArgument() {\n\t\tlogger.logv(org.jboss.logging.Logger.Level.DEBUG, \"Hello {0}!\", \"World\");\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(null), any(JavaTextMessageFormatFormatter.class), eq(\"Hello {0}!\"),\n\t\t\t\t\teq(\"World\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logv(org.jboss.logging.Logger.Level.WARN, \"Hello {0}!\", \"World\");\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.WARN), same(null), any(JavaTextMessageFormatFormatter.class), eq(\"Hello {0}!\"),\n\t\t\t\t\teq(\"World\"));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}",
"public void printInfo(){\n\t}",
"public void printInfo(){\n\t}",
"private static void print(LOG_IDENTIFY mode, String TAG, String info)\n {\n StackTraceElement[] ste = Thread.currentThread().getStackTrace(); \n StringBuffer sb = new StringBuffer();\n sb.append(ste[4].getClassName());\n sb.append(\"$\");\n sb.append(ste[4].getMethodName());\n sb.append(\"()@\");\n sb.append(ste[4].getLineNumber());\n sb.append(\" : \");\n sb.append(info);\n\n switch (mode)\n {\n case INFO: \n Log.i(TAG, sb.toString());\n break;\n case DEBUG:\n \tLog.d(TAG, sb.toString());\n break;\n case WARNING:\n \tLog.w(TAG, sb.toString());\n break;\n case ERROR:\n \tLog.e(TAG, sb.toString());\n break;\n case P:\n \tif(ste.length > 5)\n \t{\n \tsb.setLength(0);\n sb.append(ste[5].getClassName());\n sb.append(\"$\");\n sb.append(ste[5].getMethodName());\n sb.append(\"()@\");\n sb.append(ste[5].getLineNumber());\n sb.append(\" : \");\n sb.append(info);\n \t}\n \tLog.d(TAG, sb.toString());\n \tbreak;\n default:\n break;\n }\n \n }",
"public void log(String message) {\n\t}",
"private static void logDebug(String message, Object... arguments) {\n\t\tif (LOGGER.isDebugEnabled()) {\n\t\t\tLOGGER.debug(message, arguments);\n\t\t}\n\t}",
"private void doIt() {\n\t\tlogger.debug(\"hellow this is the first time I use Logback\");\n\t\t\n\t}",
"@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"@Override\n\tpublic void info(String message, Object p0, Object p1) {\n\n\t}"
] | [
"0.62883085",
"0.6262196",
"0.6210531",
"0.61641353",
"0.6047917",
"0.5943188",
"0.5898807",
"0.58888686",
"0.5851233",
"0.5835677",
"0.5835677",
"0.5835677",
"0.5826294",
"0.5808557",
"0.5793997",
"0.5793274",
"0.5761334",
"0.57569116",
"0.5691561",
"0.56833154",
"0.56829",
"0.56513566",
"0.56511146",
"0.56425506",
"0.56416935",
"0.56360096",
"0.5630508",
"0.5615982",
"0.5609626",
"0.5598174",
"0.55913633",
"0.55890244",
"0.5575776",
"0.5573242",
"0.5569173",
"0.55655587",
"0.5553929",
"0.55363727",
"0.55354804",
"0.5520926",
"0.55097383",
"0.5508759",
"0.5495242",
"0.5491619",
"0.54913986",
"0.5481575",
"0.5476845",
"0.54637545",
"0.54629827",
"0.5460689",
"0.54548985",
"0.5450858",
"0.54443663",
"0.5441886",
"0.5438748",
"0.54373085",
"0.5417849",
"0.54151714",
"0.54151714",
"0.54130614",
"0.54102826",
"0.5406837",
"0.5400095",
"0.5398472",
"0.5396497",
"0.5382586",
"0.53773284",
"0.5376703",
"0.5371489",
"0.5371026",
"0.5369282",
"0.5369282",
"0.53681225",
"0.5347596",
"0.53428674",
"0.53394747",
"0.53393054",
"0.5338483",
"0.5325774",
"0.5324738",
"0.5321518",
"0.53205764",
"0.5312775",
"0.5310926",
"0.53108513",
"0.53083897",
"0.5302096",
"0.53019977",
"0.5301988",
"0.53003806",
"0.5297378",
"0.5296299",
"0.5283013",
"0.52821374",
"0.52821374",
"0.52809745",
"0.52803344",
"0.5279179",
"0.5271261",
"0.5267113",
"0.5264147"
] | 0.0 | -1 |
Get the surface height. | protected int getSurfaceWidth() {
assertActivityNotNull();
return mActivity.getWidth();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"float getSurfaceHeight();",
"protected int getSurfaceHeight() {\n assertActivityNotNull();\n return mActivity.getHeight();\n }",
"public float getHeight();",
"public double getHeight() {\n\t\t\treturn height.get();\n\t\t}",
"public double getHeight();",
"public double getHeight();",
"public int getHeight() {\r\n return Display.getHeight();\r\n }",
"public static int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}",
"public double getHeight() {\n return getElement().getHeight();\n }",
"public float getHeight() {\r\n\t\treturn height;\r\n\t}",
"public double getHeight()\r\n {\r\n return height;\r\n }",
"public final float getHeight() {\n return mHeight;\n }",
"public double getHeight () {\n return height;\n }",
"public float getHeight() {\n return height;\n }",
"public float getHeight() {\n\t\treturn height;\n\t}",
"public final int getHeight() {\r\n return height;\r\n }",
"public Number getHeight() {\n\t\treturn getAttribute(HEIGHT_TAG);\n\t}",
"public double getHeight() {\r\n return height;\r\n }",
"double getHeight();",
"public double getHeight() {\r\n\t\treturn height;\r\n\t}",
"public int getHeight() {\n return (int) (this.height * ViewHandlerImpl.getScaleModifier());\n }",
"public int getHeight()\r\n\t{\r\n\t\treturn HEIGHT;\r\n\t}",
"public double getHeight() {\n return height;\n }",
"public double getHeight() {\n return height;\n }",
"public SVGLength getHeight() {\n return height;\n }",
"public int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}",
"final public double getHeight()\n\t{\n\t\treturn height;\n\t}",
"public double getHeight()\r\n {\r\n return height;\r\n }",
"public int getHeight(){\n Window w = vc.getFullScreenWindow();\n if(w != null){\n return w.getHeight();\n } else {\n return 0;\n }\n }",
"public double getHeight() {\n\t\treturn height;\n\t}",
"public double getHeight() {\n\t\treturn height;\n\t}",
"public double getHeight() {\n\t\treturn height;\n\t}",
"public double getHeight() {\n\t\treturn height;\n\t}",
"public double getHeight() {\n\t\treturn height;\n\t}",
"public double getHeight() {\n\t\treturn height;\n\t}",
"public float getHeight() {\n return this.height;\n }",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"@Override\n public int getHeight() {\n colorSpaceType.assertNumElements(buffer.getFlatSize(), height, width);\n return height;\n }",
"public int getHeight() \n\t{\n\t\treturn height;\n\t}",
"public int getHeight()\n\t{\n\t\treturn height;\n\t}",
"public int getHeight()\n\t{\n\t\treturn height;\n\t}",
"public int getHeight() {\r\n\t\t\r\n\t\treturn height;\r\n\t}",
"public int getHeight()\r\n\t{\r\n\t\treturn mHeight;\r\n\t}",
"public int getHeight() {\r\n\t\treturn height;\r\n\t}",
"public int getHeight() {\r\n\t\treturn height;\r\n\t}",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n return mHeight;\n }",
"public int getHeight() {\n return mHeight;\n }",
"public int getHeight() {\n\t\treturn getHeight(this);\n\t}",
"private double getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight()\n\t{\n\t\treturn this._height;\n\t}",
"public double getHeight() {\n return this.height * 0.393701;\n }",
"public int getHeight() {\n\t\treturn canvasHeight;\n\t}",
"public int getHeight() {\n return height;\n }",
"public int getHeight()\n\t{\n\t\treturn mHeight;\n\t}",
"public int getHeight() {\n return (int) Math.round(height);\n }",
"public int getHeight() {\n\t\treturn WORLD_HEIGHT;\n\t}",
"public int getHeight() {\n\t\t\treturn height;\n\t\t}",
"public final int getHeight(){\n return height_;\n }",
"public int getHeight() {\n return height_;\n }",
"public float getHeight()\n {\n return getUpperRightY() - getLowerLeftY();\n }",
"long getHeight();",
"public int getHeight() {\n return height_;\n }",
"public int getHeight() {\n\t\treturn this.height;\n\t}",
"public int getHeight() {\r\n\t\treturn this.height;\r\n\t}",
"public int getHeight()\n {\n return height;\n }",
"public final int getHeight() {\r\n return (int) size.y();\r\n }",
"public Integer getHeight()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.height, null);\n }",
"public int getHeight() {\n return this.height;\n }",
"public int getHeight() {\n return this.height;\n }",
"public int getHeight() {\n return this.height;\n }",
"public int getHeight() {\r\n return Height;\r\n }",
"public int getHeight()\n {\n \treturn height;\n }",
"public int getHeight()\n {\n return this.height;\n }",
"public double getHeight ( ) {\n\t\t// TODO: backwards compatibility required\n\t\treturn invokeSafe ( \"getHeight\" );\n\t}"
] | [
"0.8970287",
"0.80458695",
"0.78668636",
"0.78247064",
"0.77859515",
"0.77859515",
"0.7754931",
"0.7743542",
"0.7717785",
"0.76715434",
"0.76660436",
"0.7664159",
"0.7663498",
"0.7653247",
"0.76520437",
"0.7648254",
"0.76479846",
"0.7645664",
"0.76392365",
"0.7616765",
"0.76163757",
"0.7614233",
"0.7613454",
"0.7613454",
"0.7613209",
"0.76127654",
"0.7608531",
"0.76073295",
"0.7606539",
"0.7601038",
"0.7601038",
"0.7601038",
"0.7601038",
"0.7601038",
"0.7601038",
"0.7595714",
"0.7594473",
"0.7594473",
"0.7594473",
"0.7594473",
"0.7594473",
"0.7594473",
"0.7590664",
"0.7582125",
"0.7581817",
"0.7581817",
"0.75776535",
"0.75773275",
"0.75662374",
"0.75662374",
"0.75570285",
"0.75570285",
"0.75570285",
"0.75570285",
"0.75570285",
"0.75570285",
"0.75570285",
"0.75570285",
"0.75570285",
"0.75570285",
"0.75570285",
"0.7554897",
"0.7554897",
"0.7554897",
"0.7554897",
"0.7554897",
"0.7554897",
"0.7554897",
"0.7554897",
"0.7554897",
"0.7554897",
"0.7554897",
"0.75547445",
"0.75547445",
"0.7550845",
"0.7549523",
"0.75478965",
"0.7543865",
"0.75438565",
"0.75422454",
"0.75347185",
"0.7533437",
"0.7530784",
"0.75242835",
"0.7522082",
"0.7519292",
"0.7516633",
"0.7511721",
"0.75109744",
"0.75085646",
"0.75067127",
"0.75007284",
"0.74941546",
"0.7481161",
"0.7472762",
"0.7472762",
"0.7472762",
"0.74717754",
"0.7464764",
"0.74598694",
"0.74586797"
] | 0.0 | -1 |
Get the surface width. | protected int getSurfaceHeight() {
assertActivityNotNull();
return mActivity.getHeight();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected int getSurfaceWidth() {\n assertActivityNotNull();\n return mActivity.getWidth();\n }",
"public double getWidth() {\n\t\t\treturn width.get();\n\t\t}",
"public float getWidth();",
"public static int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}",
"public int getWidth () {\r\n\tcheckWidget();\r\n\tint [] args = {OS.Pt_ARG_WIDTH, 0, 0};\r\n\tOS.PtGetResources (handle, args.length / 3, args);\r\n\treturn args [1];\r\n}",
"public double getWidth();",
"public double getWidth();",
"public double getWidth()\r\n {\r\n return width;\r\n }",
"public int getWidth() {\r\n return Display.getWidth();\r\n }",
"public short getWidth() {\n\n\t\treturn getShort(ADACDictionary.X_DIMENSIONS);\n\t}",
"public float getWidth() {\n return width;\n }",
"public double getWidth() {\r\n\r\n\t\treturn w;\r\n\r\n\t}",
"public int getWidth(){\n Window w = vc.getFullScreenWindow();\n if(w != null){\n return w.getWidth();\n } else {\n return 0;\n }\n }",
"public float getWidth() {\r\n\t\treturn width;\r\n\t}",
"public SVGLength getWidth() {\n return width;\n }",
"public double getWidth() {\r\n return width;\r\n }",
"public float getWidth() {\n\t\treturn width;\n\t}",
"public double getWidth() {\n return width;\n }",
"public double getWidth() {\n return width;\n }",
"public double getWidth() {\n return width;\n }",
"public double getWidth()\n {\n return width;\n }",
"public double getWidth () {\n return width;\n }",
"final public double getWidth()\n\t{\n\t\treturn width;\n\t}",
"public final float getWidth() {\n return mWidth;\n }",
"public int getWidth() {\n return width_;\n }",
"public int getWidth() {\n return width_;\n }",
"public int getWidth() {\n return (int) Math.round(width);\n }",
"public double getWidth() {\r\n\t\treturn width;\r\n\t}",
"public Integer getWidth()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.width, null);\n }",
"public final int getWidth() {\r\n return width;\r\n }",
"public int getWidth()\n\t{\n\t\treturn this._width;\n\t}",
"public int getWidth() {\n return width_;\n }",
"public double getWidth() {\n\t\treturn width;\n\t}",
"public double getWidth() {\n\t\treturn width;\n\t}",
"public double getWidth() {\n\t\treturn width;\n\t}",
"public float getWidth() {\n return this.width;\n }",
"double getWidth();",
"double getWidth();",
"public int getWidth() {\r\n return width;\r\n }",
"public int getWidth();",
"public int getWidth();",
"public int getWidth();",
"public int getWidth() {\n return width_;\n }",
"public final int getWidth(){\n return width_;\n }",
"public double getWidth() {\n return getElement().getWidth();\n }",
"public int getWidth()\n\t{\n\t\treturn width;\n\t}",
"public int getWidth()\n\t{\n\t\treturn width;\n\t}",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}",
"public int getWidth() \n\t{\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\r\n\t}",
"public float getWidth(){\n\t\treturn this.arm.width();\n\t}",
"public int getWidth()\r\n\t{\r\n\t\treturn mWidth;\r\n\t}",
"public int getWidth() {\r\n return width;\r\n }",
"public int getWidth() {\r\n\t\t\r\n\t\treturn width;\r\n\t}",
"public int getWidth() {\n return this._width;\n }",
"public int getWidth()\r\n\t{\r\n\t\treturn WIDTH;\r\n\t}",
"public int getWidth()\n\t{\n\t\treturn mWidth;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\r\n\t\treturn width;\r\n\t}",
"public int getWidth() {\r\n\t\treturn width;\r\n\t}",
"public int getWidth() {\n return mWidth;\n }",
"public int getWidth()\n {\n return width;\n }",
"public int getWidth()\n {\n return width;\n }",
"public int getWidth()\n {\n return width;\n }",
"public int getWidth() {\n\t\t\treturn width;\n\t\t}",
"public int getWidth() {\n return (int) (this.width * ViewHandlerImpl.getScaleModifier());\n }",
"private double getWidth() {\n\t\treturn width;\n\t}",
"public final int getWidth() {\r\n return (int) size.x();\r\n }",
"public double getWidth() {\n\treturn width;\n }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();"
] | [
"0.8038026",
"0.7689368",
"0.76750666",
"0.7631658",
"0.7594178",
"0.75833786",
"0.75833786",
"0.75308377",
"0.7521184",
"0.75196713",
"0.75193244",
"0.7517701",
"0.75159687",
"0.75100416",
"0.7494812",
"0.7493509",
"0.74919",
"0.7478995",
"0.7478995",
"0.7478995",
"0.74783593",
"0.7477906",
"0.74698323",
"0.7462629",
"0.74602234",
"0.74602234",
"0.7451561",
"0.7448778",
"0.74356353",
"0.74327075",
"0.7432624",
"0.7431753",
"0.7429711",
"0.7429711",
"0.7429711",
"0.7410569",
"0.7403858",
"0.7403858",
"0.7388438",
"0.7387407",
"0.7387407",
"0.7387407",
"0.73857623",
"0.73747647",
"0.73731446",
"0.7368284",
"0.7368284",
"0.7366704",
"0.7366704",
"0.7366704",
"0.7366704",
"0.7366704",
"0.7366704",
"0.7366704",
"0.7366704",
"0.7366704",
"0.7366704",
"0.7366704",
"0.7366704",
"0.7366704",
"0.7365194",
"0.7363191",
"0.736158",
"0.73521245",
"0.73492134",
"0.73471636",
"0.7345903",
"0.7339349",
"0.7338164",
"0.73367435",
"0.7331511",
"0.7331511",
"0.7331511",
"0.7331511",
"0.7331511",
"0.7331511",
"0.7331511",
"0.7331511",
"0.7331511",
"0.7331511",
"0.7331511",
"0.7331511",
"0.7331511",
"0.73304206",
"0.73304206",
"0.732524",
"0.7319592",
"0.7319592",
"0.7319592",
"0.73166955",
"0.73149973",
"0.73124313",
"0.7301016",
"0.72957075",
"0.72909296",
"0.72909296",
"0.72909296",
"0.72909296",
"0.72909296",
"0.72909296",
"0.72909296"
] | 0.0 | -1 |
Get the backend context. | protected BackendContext getBackendContext() {
assertActivityNotNull();
return mActivity.getBackendContext();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Context getContext();",
"public Context getContext() {\n return context;\n }",
"public cl_context getContext() {\r\n return context;\r\n }",
"public Context getContext() {\r\n\t\treturn context;\r\n\t}",
"public Context getContext() {\n\t\treturn ctx;\n\t}",
"public Context getContext() {\n\t\treturn context;\n\t}",
"ContextBucket getContext() {\n\treturn context;\n }",
"public static Context getContext() {\n\t\treturn context;\n\t}",
"public static Context getContext() {\n\t\treturn context;\n\t}",
"public abstract Context context();",
"public IRuntimeContext getContext() {\n return fContext;\n }",
"Context context();",
"Context context();",
"public Context getContext() {\n if (context == null) {\n context = Model.getSingleton().getSession().getContext(this.contextId);\n }\n return context;\n }",
"public ComponentContext getContext()\n\t{\n\t\treturn context;\n\t}",
"public com.google.protobuf.ByteString getContext() {\n return context_;\n }",
"public String getContext() { return context; }",
"@Override\r\n\tpublic Context getContext() {\r\n\t\treturn this.context;\r\n\t}",
"public com.google.protobuf.ByteString getContext() {\n return context_;\n }",
"public String getContext() {\n return context;\n }",
"public String getContext() {\n return context;\n }",
"public String getContext() {\n return context;\n }",
"public Object getContextObject() {\n return context;\n }",
"RenderingContext getContext();",
"public String getContext() {\r\n\t\treturn context;\r\n\t}",
"public String getContext() {\n\t\treturn context;\n\t}",
"Context getContext() {\n Context context = mContextRef.get();\n return context != null ? context : AppUtil.getAppContext();\n }",
"public ModuleContext getContext() {\r\n return context;\r\n }",
"CTX_Context getContext();",
"public static Context getContext(){\n return appContext;\n }",
"public BackendConfig getBackendConfiguration() {\n return backendConfiguration;\n }",
"public ExecutionContext getContext();",
"public static BundleContext getContext() {\n return context;\n }",
"public Context getContext() {\n return this;\n }",
"public RuntimeContext getRuntimeContext() {\n return runtimeContext;\n }",
"protected final TranslationContext context() {\n\t\treturn context;\n\t}",
"public Object getConnectionContext() {\n return connectionContext;\n }",
"public static Context getContext() {\n\t\treturn instance;\n\t}",
"@Override\n public Context getContext() {\n return this.getApplicationContext();\n }",
"protected RestContext getContext() {\n\t\tif (context.get() == null)\n\t\t\tthrow new InternalServerError(\"RestContext object not set on resource.\");\n\t\treturn context.get();\n\t}",
"static synchronized Context getContext() {\n checkState();\n return sInstance.mContext;\n }",
"public Context getContext() {\n return this.mContext;\n }",
"public Context getContext() {\n return this.mContext;\n }",
"public Context getContext() {\n return this.mService.mContext;\n }",
"public static ApplicationContext getContext() {\n if (context == null) {\n CompilerExtensionRegistry.setActiveExtension( OTA2CompilerExtensionProvider.OTA2_COMPILER_EXTENSION_ID );\n }\n return context;\n }",
"public Context getContext() {\n\t\treturn null;\n\t}",
"Map<String, Object> getContext();",
"@Nullable\n default String getContext() {\n String contextName =\n String.valueOf(execute(DriverCommand.GET_CURRENT_CONTEXT_HANDLE).getValue());\n return \"null\".equalsIgnoreCase(contextName) ? null : contextName;\n }",
"public Context getContext() {\n return contextMain;\n }",
"public Context getContext() {\n\t\treturn mContext;\n\t}",
"public Context getContext() {\n return (Context)this;\n }",
"private Context getThreadContext() throws NamingException {\n final ThreadContext threadContext = ThreadContext.getThreadContext();\n if (skipEjbContext(threadContext)) {\n return ContextBindings.getClassLoader();\n }\n final Context context = threadContext.getBeanContext().getJndiEnc();\n return context;\n }",
"public Context getContext() {\n return mContext;\n }",
"public ContextRequest getContext() {\n\t\treturn context;\n\t}",
"public BackingMapManagerContext getContext();",
"public static Backend get() {\n\t\tif (Backend.singleton == null) {\n\t\t\tBackend.singleton = new Backend();\n\t\t}\n\n\t\treturn Backend.singleton;\n\t}",
"long getCurrentContext();",
"com.google.protobuf.ByteString getContext();",
"private Context getContext() {\n return mContext;\n }",
"private Context getContext() {\n return mContext;\n }",
"public abstract ApplicationLoader.Context context();",
"public final Context getContext() {\n return mContext;\n }",
"Context createContext();",
"Context createContext();",
"public static FHIRRequestContext get() {\n FHIRRequestContext result = contexts.get();\n if (log.isLoggable(Level.FINEST)) {\n log.finest(\"FHIRRequestContext.get: \" + result.toString());\n }\n return result;\n }",
"public Context getThis()\r\n {\r\n return this.context;\r\n }",
"com.google.protobuf.ByteString\n getContextBytes();",
"public static Context getResourceContext() {\n return context;\n }",
"public java.lang.String getContext() {\n java.lang.Object ref = context_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n context_ = s;\n return s;\n }\n }",
"public ContextInstance getContextInstance() {\n\t\treturn token.getProcessInstance().getContextInstance();\r\n\t}",
"public T get() {\n\t\treturn get(ModSettings.currentContext);\n\t}",
"@Override\r\n\tpublic Context getContext()\r\n\t{\n\t\treturn this.getActivity().getApplicationContext();\r\n\t}",
"public static Context getContext() {\n if (sContext == null) {\n throw new RuntimeException(APPLICATION_CONTEXT_IS_NULL);\n }\n return sContext;\n }",
"static Application getContext() {\n if (ctx == null)\n // TODO: 2019/6/18\n// throw new RuntimeException(\"please init LogXixi\");\n return null;\n else\n return ctx;\n }",
"public URI getCurrentContext();",
"public UserContext getUserContext();",
"public static BundleContext getBundleContext()\r\n {\r\n return bundleContext;\r\n }",
"public Context getContext() {\n if (context == null) {\n try {\n context = new InitialContext();\n } catch (NamingException exception) {\n }\n }\n return context;\n }",
"public Context getApplicationContext();",
"public GLContext getContext();",
"@java.lang.Override public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }",
"public static BackendFactory getInstance() {\n return INSTANCE;\n }",
"public PortletContext getPortletContext ()\n {\n \treturn config.getPortletContext();\n }",
"public EvaluationContext getContext() {\n return context;\n }",
"@java.lang.Override\n public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }",
"@Override\n public CallContext getCallContext() {\n return this.context;\n }",
"static public RenderingContext getCurrentInstance()\r\n {\r\n return _CURRENT_CONTEXT.get();\r\n }",
"public java.lang.String getContext() {\n java.lang.Object ref = context_;\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 context_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public ConfigContext getConfigContext() {\n\n return (ConfigContext)getSource();\n\n }",
"public QueryContext getQueryContext() {\n\t\treturn queryContext;\n\t}",
"public ServletContext getContext() {\r\n\t\treturn new ContextWrapper(getEvent().getServletContext());\r\n\t}",
"public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public ApiContext getApiContext() {\n return this.apiContext;\n }",
"public static Context getInstance(){\n\t\treturn (Context) t.get();\n\t}",
"public String getSessionContext() {\n return this.SessionContext;\n }",
"public IWDContext wdGetAPI() {\r\n return getContext();\r\n }",
"private SSLContext getSSLContext() {\n if (this.sslcontext == null) {\n this.sslcontext = createSSLContext();\n }\n return this.sslcontext;\n }",
"public static Context getAppContext() {\n return _BaseApplication.context;\n }",
"public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public StaticContext getUnderlyingStaticContext() {\n return env;\n }"
] | [
"0.7058028",
"0.69713086",
"0.69376457",
"0.69258183",
"0.6918476",
"0.69060344",
"0.6825841",
"0.68169934",
"0.68169934",
"0.6804111",
"0.6800686",
"0.67898566",
"0.67898566",
"0.6778603",
"0.67024815",
"0.6701462",
"0.66757137",
"0.6661403",
"0.6650266",
"0.6633645",
"0.6633645",
"0.6633645",
"0.6599576",
"0.6554606",
"0.6519796",
"0.64859325",
"0.64778775",
"0.64703315",
"0.6466589",
"0.64585316",
"0.6458028",
"0.6452117",
"0.64516336",
"0.6450144",
"0.64501125",
"0.64448345",
"0.6443911",
"0.6414969",
"0.6409675",
"0.640724",
"0.63998365",
"0.63931406",
"0.63931406",
"0.63914895",
"0.6375861",
"0.63625115",
"0.63187075",
"0.6301465",
"0.6270955",
"0.62639964",
"0.62544143",
"0.6243972",
"0.6231071",
"0.6222938",
"0.6196879",
"0.61916095",
"0.61859983",
"0.6175153",
"0.6166482",
"0.6166482",
"0.6164875",
"0.61208475",
"0.6096203",
"0.6096203",
"0.6056358",
"0.6048178",
"0.6036102",
"0.60326475",
"0.6032213",
"0.6030099",
"0.6018387",
"0.60170573",
"0.5999053",
"0.5997091",
"0.5990852",
"0.59591824",
"0.5938028",
"0.59329563",
"0.5921642",
"0.59208316",
"0.59110755",
"0.59097135",
"0.590932",
"0.59034663",
"0.5894978",
"0.5877552",
"0.5875121",
"0.5869358",
"0.58643806",
"0.5843907",
"0.58304894",
"0.5820786",
"0.58144385",
"0.5813904",
"0.5813354",
"0.58093303",
"0.5807609",
"0.5806651",
"0.57968867",
"0.57965624"
] | 0.84639585 | 0 |
Set the test information. | protected void setTestInfo(final String testInfo) {
assertActivityNotNull();
try {
runTestOnUiThread(new Runnable() {
@Override
public void run() {
mActivity.setTestInfo(testInfo);
}
});
} catch (Throwable throwable) {
throwable.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void setTest() {\n\t}",
"public void setUpTestdata() {\n\t\tsetDefaultUserName(Config.getProperty(\"defaultUserName\"));\r\n\t\tsetDefaultPassword(Config.getProperty(\"defaultPassword\"));\r\n\t\tsetTestsiteurl(Config.getProperty(\"testsiteurl\"));\r\n\t\tsetChromeDriverPath(Config.getProperty(\"chromeDriverPath\"));\r\n\t\tsetGeckoDriverPath(Config.getProperty(\"geckoDriverPath\"));\r\n\t\tsetIeDriverPath(Config.getProperty(\"ieDriverPath\"));\r\n\t}",
"protected void setTestName( String name ) {\n\t\ttestName = name;\n\t}",
"@Override\n\t\tpublic void setTestName(String name) {\n\t\t\t\n\t\t}",
"@Override\n public void setTestUnit() {\n hero = new Hero(50, 2, field.getCell(0, 0));\n }",
"@Override\n public void setUp() {\n System.out.println(\"######## \" + getName() + \" #######\");\n // Close help window if any - it should not stay open between test cases.\n // Otherwise it can break next tests.\n closeHelpWindow();\n }",
"@Override\r\n\t@BeforeTest\r\n\tpublic void startSetting() {\n\t\tSystem.out.println(\"开始系统设置测试\");\r\n\t}",
"@Test\n public void testSetUserData() {\n writeBanner(getMethodName());\n }",
"final void setTesting(InstrumentationTestRunner testing, HttpClientTestServer server) {\n this.testing = testing;\n this.server = server;\n }",
"@Override\n public void setTestUnit() {\n sorcererAnima = new Sorcerer(50, 2, field.getCell(0, 0));\n }",
"public static void setTesting() {\n testing = true;\n }",
"private void initSetUp()\n\t{\n\t\tthis.setActionName(NAME);\n\t\tthis.setDescription(DESCRIPTION);\n\t\tthis.setMagic(IS_MAGIC);\n\t\tthis.setAttack(IS_ATTACK);\n\t\tthis.setTargetSelf(IS_TARGET_SELF);\n\t\tthis.setInternalName(INTERNAL_NAME);\n\t}",
"@Override\n public void setTestUnit(){ sorcerer1 = new Sorcerer(10,5,new Location(0,0));}",
"protected void setUp() {\n config = new ContestConfig();\n }",
"public void setTestname(String testname) {\n this.testname = testname;\n }",
"public void setupTest(JavaSamplerContext context)\n {\n getLogger().debug(whoAmI() + \"\\tsetupTest()\");\n listParameters(context);\n\n sleepTime = context.getLongParameter(\"SleepTime\", DEFAULT_SLEEP_TIME);\n sleepMask = context.getLongParameter(\"SleepMask\", DEFAULT_SLEEP_MASK);\n }",
"private void SetParameters(XmlTest test){\r\n\t\t for (Map.Entry<String,String> entry : TestsParamList.get(test.getName()).entrySet()){\r\n\t\t\t test.addParameter(entry.getKey(), entry.getValue());\r\n\t\t }\r\n\t}",
"protected void setUp() {\r\n auditDetail = new AuditDetail();\r\n }",
"public void setTestTime(Integer testTime) {\n this.testTime = testTime;\n }",
"public void testGetSetDesc() {\n exp = new Experiment(\"10\");\n exp.setDesc(\"test\");\n assertEquals(\"get/setDesc does not work\", \"test\", exp.getDesc());\n }",
"@Override\n \tpublic void setUp() throws Exception{\n \t\tLog.i(\"got to top of setup\", \"yay\");\n \t\t\n \t\tLog.i(\"solo\", \"created solo\");\n \t\t\n \t\tLog.i(\"user name\", \"set user name\");\n \t\tIntent i = new Intent();\n \t\ti.putExtra(\"groupname\", \"GroupForTestingOnly\");\n \t\ti.putExtra(\"gm\", \"UseForTestingOnly\");\n \t\tsetActivityIntent(i);\n \t\tsolo = new Solo(getInstrumentation(), getActivity());\n \t\tSaveSharedPreference.setPersistentUserName(getActivity(), VALID_USERNAME);\n \t\tLog.i(\"set the intent\", \"what?\");\n \t}",
"void setTestDescription(TestDescription td) {\n if (td == null) {\n return;\n }\n\n String name = td.getRootRelativeURL();\n if (!testURL.equals(name)) {\n throw new IllegalStateException();\n }\n\n if (desc != null) { // compare if possible\n if (!desc.equals(td)) { // test descriptions are not the same\n // accept new TD, reset this TR\n // reset status to a special one\n execStatus = tdMismatch;\n desc = td;\n\n props = emptyStringArray;\n resultsFile = null;\n env = emptyStringArray;\n sections = emptySectionArray;\n\n if (isMutable()) {\n createSection(MSG_SECTION_NAME);\n }\n } else {\n // TDs are equal, no action, drop thru and return\n }\n } else {\n desc = td;\n }\n }",
"@BeforeEach\n public void setup() {\n testTaskList = new TaskList();\n testUi = new Ui();\n\n Event testEvent = new Event(\"Daily Work\", \"CS2113T\", Parser.parseDate(\"31/01/20 0800\"),\n Parser.parseDate(\"31/01/20 1200\"), \"testing\");\n Assignment testAssign = new Assignment(\"Daily Work\", \"CS2113T\", Parser.parseDate(\"20/03/20 0000\"),\n \"testing\");\n testTaskList.addTask(testEvent);\n testTaskList.addTask(testAssign);\n }",
"public void setTestMethod(JUnitTestCase testCase) {\n\t\tthis.testCase = testCase;\n\t\tthis.testMethod = testCase.getMethodName();\n\t\tthis.outputFilename = new File(\n\t\t\t\tgetDirectoryFinder().getBuildDirectory(), testType + \".\"\n\t\t\t\t\t\t+ testMethod + \".out\").getAbsolutePath();\n\t}",
"@Test\n public void TestSetContinentName() {\n\n continent.setContinentName(\"Asia\");\n }",
"@Before\n public void setUp()\n {\n summary = \"\";\n allPassed = true;\n firstFailExpected = null;\n firstFailRun = null;\n captureSummary = \"\";\n captureRun = null;\n }",
"public void modifyTestElement(TestElement element)\n {\n configureTestElement(element);\n element.setProperty(TCPSampler.SERVER, server.getText());\n element.setProperty(TCPSampler.PORT, port.getText());\n\t\telement.setProperty(TCPSampler.FILENAME, filename.getText());\n\t\telement.setProperty(TCPSampler.NODELAY, nodelay.getText());\n\t\telement.setProperty(TCPSampler.TIMEOUT, timeout.getText());\n }",
"protected void setUp() throws Exception {\r\n super.setUp();\r\n\r\n testObject = new TestObject(1, \"stringValue\");\r\n }",
"public void setTestMethod(JUnitTestCase testCase) {\n\t\tthis.testCase = testCase;\n\t\tthis.testMethod = testCase.getMethodName();\n\t\tthis.outputFilename = new File(getDirectoryFinder().getBuildDirectory(), testType+ \".\" +testMethod +\".out\").getAbsolutePath();\n\t}",
"protected void getInfoFromServer(String testName) {\r\n\t\tapplicationId = getApplicationId();\r\n\t\tversionId = getVersionId();\r\n\t\tenvironmentId = getEnvironmentId();\r\n\t\t\r\n\t\tif (testName != null) {\r\n\t\t\ttestCaseId = getTestCaseId(testName);\r\n\t\t}\r\n\t}",
"@Test\n\tpublic void testSet() {\n\t}",
"public void setTestSetName(String testSetName) {\n this.testSetName = testSetName;\n }",
"@Test \n\tpublic void testSetBusinessinformation() {\n\t\tBusinessInformation businessInformation = new BusinessInformation();\n\t\tbusinessInformation.setName(INFO_NAME);\n\t\tAdminAccount user = adminAccountService.setBusinessInformation(INFO_NAME, USERNAME1);\n\t\tassertNotNull(user);\n\t\tassertEquals(user.getUsername(), USERNAME1);\n\t}",
"@BeforeMethod\r\n\tpublic void startTestCase() {\n\t\ttest = extent.createTest(testCaseName, testCaseDescription);\r\n\t\ttest.assignAuthor(author);\r\n\t\ttest.assignCategory(category);\r\n\t}",
"@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t}",
"@Before\n\tpublic void setTraineeInfo() {\n\t\tthis.traineeOne.setName(\"Joe Smith\");\n\t\tthis.traineeOne.setEmail(\"[email protected]\");\n\t\tthis.traineeOne.setPhoneNumber(\"954-798-6005\");\n\t\tthis.traineeOne.setTrainingStatus(TrainingStatus.Training);\n\t\tthis.traineeOne.setBatch(caliberBatch);\n\t\t\n\t\tthis.traineeTwo.setName(\"Shakira Jimenez\");\n\t\tthis.traineeTwo.setResourceId(\"two\");\n\t\tthis.traineeTwo.setEmail(\"[email protected]\");\n\t\tthis.traineeTwo.setPhoneNumber(\"347-798-6005\");\n\t\tthis.traineeTwo.setTrainingStatus(TrainingStatus.Training);\n\t\tthis.traineeTwo.setBatch(caliberBatch);\n\t\t\n\t\tthis.traineeThree.setName(\"Joe Smith\");\n\t\tthis.traineeThree.setResourceId(\"one\");\n\t\tthis.traineeThree.setEmail(\"[email protected]\");\n\t\tthis.traineeThree.setPhoneNumber(\"954-798-6005\");\n\t\tthis.traineeThree.setTrainingStatus(TrainingStatus.Dropped);\n\t\t\n\t\tcaliberTrainees.add(traineeOne);\n\t\tcaliberTrainees.add(traineeThree);\n\t\tsalesforceTrainees.add(traineeThree);\n\t\tsalesforceTrainees.add(traineeTwo);\n\t}",
"@Override\r\n\t@BeforeMethod\r\n\tpublic void initSetting() {\n\t\tSystem.out.println(\"start\");\r\n\t\toTest.initSetting();\r\n\t}",
"@BeforeEach\n\tpublic void setUp() throws Exception {\n\t\ttestSubject=new Builder(value, sigFig, totalFig, precision)\n\t\t\t\t\t\t.meaning(meaning)\n\t\t\t\t\t\t.originatorsFlag(originatorsFlag)\n\t\t\t\t\t\t.qualityFlag(qualityFlag)\n\t\t\t\t\t\t.qualityFlagString(qualityFlagString)\n\t\t\t\t\t\t.build();\n\t\t\n\n\n\n\n\n\n\n\t}",
"public void setTesting(double testing) {\r\n this.testing = testing;\r\n }",
"@Test\n public void testSetUsername() {\n System.out.println(\"setUsername\");\n String username = \"\";\n Manager instance = new Manager();\n instance.setUsername(username);\n \n fail(\"The test case is a prototype.\");\n }",
"@Test\n public void testSetAddress() {\n System.out.println(\"setAddress\");\n user.setAddress(\"Tiquipaya\");\n assertEquals(\"Tiquipaya\", user.getAddress());\n }",
"private void setSWTTestIDs() {\n\t\t\n\t\tString label = \"General Settings\";\n\t\t\n\t\t//set keys for SWTBot testing\n\t\tresultFilepathField.setData(\"org.eclipse.swtbot.widget.key\", label+\".resultFilepathField\");\n\t\tdelimiterCombo.setData(\"org.eclipse.swtbot.widget.key\", label+\".delimiterCombo\");\n\t\tsortResultCheckbox.setData(\"org.eclipse.swtbot.widget.key\", label+\".sortResultCheckbox\");\n\t\tmakeUniqueCheckbox.setData(\"org.eclipse.swtbot.widget.key\", label+\".makeUniqueCheckbox\");\n\t\ttopLevelCheckbox.setData(\"org.eclipse.swtbot.widget.key\", label+\".topLevelCheckbox\");\n\t\tolderColumnCombo.getCombo().setData(\"org.eclipse.swtbot.widget.key\", label+\".olderColumnCombo\");\n\t\tyoungerColumnCombo.getCombo().setData(\"org.eclipse.swtbot.widget.key\", label+\".youngerColumnCombo\");\n\t\ttopLevelField.setData(\"org.eclipse.swtbot.widget.key\", label+\".topLevelField\");\n\t}",
"@Test\r\n public void testSetfName() {\r\n System.out.println(\"setfName\");\r\n String fName = \"\";\r\n Student instance = new Student();\r\n instance.setfName(fName);\r\n \r\n }",
"public void setInformation(String information);",
"public void setTestSettings(String testServerAddress) {\n INDEX_NAME = testServerAddress;\n }",
"@Before\n\tpublic void setUp()\n\t{\n\t\tOptionsManager.getSingleton().setTestMode(true);\n\t\tQuestManager.resetSingleton();\n\t}",
"public ServerMetadataTest(String testName) {\r\n super(testName);\r\n }",
"@Test\n public void testSetUsername() {\n System.out.println(\"setName\");\n user.setUsername(\"maugv\");\n assertEquals(\"maugv\", user.getUsername());\n }",
"public static void setTestName(String rnTest)\n\t{\n\t\trnTestName = rnTest;\n\t\tlogger.info(\"set test case name\");\n\t\t\n\t}",
"public void setTestValue(Integer testValue) {\n this.testValue = testValue;\n }",
"@Override\n public void setTestSessionModifyingParam() {\n sessionModifingParams.addParameter(testVT);\n }",
"@BeforeEach\n public void beforeEachInit(TestInfo testInfo, TestReporter testReporter)\n {\n this.testInfo = testInfo;\n this.testReporter = testReporter;\n testReporter.publishEntry(\"Running \" + testInfo.getDisplayName() + \"with tags \" + testInfo.getTags() + \"\\n\");\n\n }",
"@Override\r\n\tprotected void setUp() throws Exception {\n\t\ttester = new WicketTester(new MockWicketApplication(ConnectDao.getInstance()));\r\n\t\t\r\n\t\tdao = ConnectDao.getInstance();\r\n\t\t\r\n\t\tdao.insert(\"insert into system.users values ('scott', 'tigerrrr')\");\r\n\t\tdao.insert(\"insert into system.databases values ('00001', 'database1', 'scott', '09-01-01', '09-01-01')\");\r\n\t\tdao.insert(\"insert into system.databases values ('00002', 'database2', 'scott', '09-01-02', '09-01-02')\");\r\n\t\tdao.insert(\"insert into system.tables values ('0000001', 'emp0', '00001')\");\r\n\t\tdao.insert(\"insert into system.tables values ('0000002', 'dept0', '00001')\");\r\n\t\tdao.insert(\"insert into system.tables values ('0000003', 'emp', '00002')\");\r\n\t\tdao.insert(\"insert into system.tables values ('0000004', 'dept', '00002')\");\r\n\t\t\r\n\t\tdao.insert(\"commit\");\r\n\t\t\r\n\t\tpp = new PageParameters();\r\n\t\tString[] strs = new String[]{\"database1\", \"database2\"};\r\n\t\tpp.put(\"databases\", strs);\r\n\t\tpp.put(\"user\", \"ikemotot\");\r\n\r\n\t\t\r\n\t\ttester.startPage(rmp = new ResponseMeasurementPage(pp, new MockCommand()));\r\n\t}",
"public final void settest_date(String test_date)\n\t{\n\t\tsettest_date(getContext(), test_date);\n\t}",
"@Test\r\n public void testSetStudentID() {\r\n System.out.println(\"setStudentID\");\r\n String studentID = \"\";\r\n Student instance = new Student();\r\n instance.setStudentID(studentID);\r\n \r\n }",
"public final void setUp() {\n if (n == null) {\n fail(\"The AttributeChangeNotification \"\n + \"has not been received in 3 seconds.\");\n finish();\n }\n }",
"protected void setFixture(ConnectionInfo fixture) {\r\n\t\tthis.fixture = fixture;\r\n\t}",
"@Test\n public void testSetManagerId() {\n System.out.println(\"setManagerId\");\n int manager_id = 0;\n Manager instance = new Manager();\n instance.setManagerId(manager_id);\n \n fail(\"The test case is a prototype.\");\n }",
"void setUserInfo(UserInfo info);",
"@Override\n public void setUp() {\n }",
"@Test\n public void testSetSex() {\n System.out.println(\"setSex\");\n int sex = 0;\n Manager instance = new Manager();\n instance.setSex(sex);\n \n fail(\"The test case is a prototype.\");\n }",
"@Before\n public void setUp() {\n \tserver = super.populateTest();\n }",
"public void setTestId(Integer testId) {\n this.testId = testId;\n }",
"@Test\n public void testSetValue ()\n {\n System.out.println (\"setValue\");\n String name = \"\";\n QueryDatas instance = new QueryDatas (\"nom\", \"value\");\n instance.setValue (name);\n }",
"@Test\n public void validSetFlightInformation() {\n testUser.setUsername(\"username\");\n testUser.setLastName(\"lastname\");\n testUser.setPassword(\"password\");\n testUser.setFirstName(\"firstname\");\n\n Assertions.assertEquals(\"username\", testUser.getUsername());\n Assertions.assertEquals(\"lastname\", testUser.getLastName());\n Assertions.assertEquals(\"password\", testUser.getPassword());\n Assertions.assertEquals(\"firstname\", testUser.getFirstName());\n }",
"@Override\n public void setTestItem(){\n expectedName = \"Common lightMagicBook\";\n expectedPower = 10;\n expectedMinRange = 1;\n expectedMaxRange = 2;\n lightMagicBook = new LightMagicBook(expectedName,expectedPower,expectedMinRange,expectedMaxRange);\n animaMagicBook1 = new AnimaMagicBook(\"\",30,1,2);\n darknessMagicBook1 = new DarknessMagicBook(\"\",30,1,2);\n }",
"@Test\n void getAndSetDescription() {\n }",
"@org.junit.Test\n public void setName() {\n }",
"boolean setInfo();",
"public void setTestRecordData(TestRecordData trdata) { this.trdata = trdata; }",
"public void testSetters() {\n String name = \"pop\";\n String version = \"2.3\";\n\n Agent agent = new Agent(\"moo\", \"1.5\");\n\n agent.setName(name);\n agent.setVersion(version);\n assertEquals(agent.getName(), name, \"Unexpected agent name.\");\n assertEquals(agent.getVersion(), version, \"Unexpected agent version.\");\n assertEquals(agent.toString(), name + \"/\" + version, \"Unexpected agent display representation.\");\n }",
"private void assignTests(Patient patient, String test) {\n patient.setTestToPass(test);\n }",
"public void testGetSetTitle() {\n exp = new Experiment(\"10\");\n exp.setTitle(\"test\");\n assertEquals(\"test/set title does not work\", \"test\", exp.getTitle());\n }",
"@Test\n public void testSetInstructions() {\n System.out.println(\"setInstructions\");\n String instructions = \"Instructions\";\n \n instance.setInstructions(instructions);\n \n assertEquals(\"Instructions unchanged\", instructions, instance.getInstructions());\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }",
"@Test\r\n public void testSetlName() {\r\n System.out.println(\"setlName\");\r\n String lName = \"\";\r\n Student instance = new Student();\r\n instance.setlName(lName);\r\n \r\n }",
"@Before\n public void setup() throws Exception {\n mTestUtil.overrideAllowlists(true);\n // We need to turn the Consent Manager into debug mode\n mTestUtil.overrideConsentManagerDebugMode(true);\n mTestUtil.overrideMeasurementKillSwitches(true);\n mTestUtil.overrideAdIdKillSwitch(true);\n mTestUtil.overrideDisableMeasurementEnrollmentCheck(\"1\");\n mMeasurementManager =\n MeasurementManagerFutures.from(ApplicationProvider.getApplicationContext());\n\n // Put in a short sleep to make sure the updated config propagates\n // before starting the tests\n Thread.sleep(100);\n }",
"@Before\n public void setNames() {\n super.setTestRobot(\"tkt.RedShift\");\n super.setEnemyRobot(\"sample.Tracker\");\n }",
"protected void setUp() throws Exception {\n // get the config manager\n ConfigManager cm = ConfigManager.getInstance();\n cm.add(\"failure/config.xml\");\n\n propertiesPanel = new PropertiesPanel(umlModelManager);\n }",
"@Before\r\n\tpublic void set()\r\n\t{\n\t\tif (!Message.configure(\"wordsweeper.xsd\")) {\r\n\t\t\tfail (\"unable to configure protocol\");\r\n\t\t}\r\n\t\tModel.serverAccess = mockServer;\r\n\t\tModel.gameLayout = gameLayout;\r\n\t\tModel.GAME = game;\r\n\t\tModel.PLAYER = player;\r\n\t\tModel.BOARD = board;\r\n\t\tModel.gameLayout.setLayout();\r\n\t\tModel.gameLayout.addListener();\r\n\t}",
"public void storeStartTestDetail(TestEntry test, File dirPath) throws Exception {\n // Fortify Mod: make sure that dirPath is a legal path\n if( dirPath != null ) {\n TEPath tpath = new TEPath(dirPath.getAbsolutePath());\n if( ! tpath.isValid() ) \n throw new IllegalArgumentException(\"TEPath error on path \" + dirPath.getAbsolutePath());\n }\n // Check recording enable\n if (dirPath != null && A_TRUE.equals(System.getProperty(RECORD))) {\n //Check test No\n if (TECore.testCount != 0) {\n JSONObject objBeforeTest = new JSONObject();\n objBeforeTest.put(NAME, test.getName());\n objBeforeTest.put(RESULT, \"\");\n // write the data into file in form of json\n OutputStreamWriter writerBefore = new OutputStreamWriter(\n new FileOutputStream(dirPath.getAbsolutePath() + Constants.TEST_RESULTTXT, true), UT_F8);\n try (BufferedWriter fbwBefore = new BufferedWriter(writerBefore)) {\n fbwBefore.write(objBeforeTest.toString());\n fbwBefore.newLine();\n fbwBefore.close();\n }\n } else {\n //update test no\n TECore.testCount = TECore.testCount + 1;\n // update test name\n TECore.nameOfTest = test.getName();\n }\n }\n }",
"@Test\n public void testSetName_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n String name = \"\";\n\n fixture.setName(name);\n\n }",
"@Test\n public void testSetDescription() {\n System.out.println(\"setDescription\");\n \n String description = \"Description\";\n \n instance.setDescription(description);\n \n assertEquals(\"Description unchanged\", description, instance.getDescription());\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }",
"@Test\n public void testSetEtnia() {\n System.out.println(\"setEtnia\");\n String etnia = \"\";\n Paciente instance = new Paciente();\n instance.setEtnia(etnia);\n\n }",
"@Test\n\tpublic void setTitelleisteTest() throws Exception {\n\t\t\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.gui &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.queuetrack ) {\n\t\t\t\n\t\t\t\n\t\t\tstart();\n\t\t\tgui.setTitelleiste(\"test\");\n\t\t\t\n\t\t\tJFrame g = (JFrame) MemberModifier.field(Application.class, \"frmAsd\").get(gui);\n\t\t\t\n\t\t\tassertEquals(g.getTitle(),\"test\");\n\t\t\t}\n\t}",
"@Override\r\n\tpublic void setUp() {\n\r\n\t}",
"@BeforeMethod\n void setTestConfiguration(Method method) {\n logger.info(\"Setting up ServerAutomationTestCase..\");\n\n // Set test configuration\n testConfig = TestConfiguration.TEST_TO_CONFIG_MAP.get(method.getName());\n }",
"public void setUp() {\n threadName = Thread.currentThread().getName();\n }",
"public void testing() {\n\t\tprotectedInstanceVariable = \"\";\n\t}",
"public void setTestSetId(String testSetId) {\n this.testSetId = testSetId;\n }",
"public void setTestSetId(String testSetId) {\n this.testSetId = testSetId;\n }",
"@Before\n\tpublic void setup(){\n\t\tuuid = UUID.randomUUID();\n\t\ttitle = \"The Dark Knight\";\n\t\tdescription = \"Nanananana Batmaaaaan!\";\n\t\tstartDate = new Date(2008, 01, 01);\n\t\ttagLabel = \"Test-Tag\"; \n\t}",
"@Test\n public void testSetPassword() {\n System.out.println(\"setPassword\");\n String password = \"\";\n Manager instance = new Manager();\n instance.setPassword(password);\n \n fail(\"The test case is a prototype.\");\n }",
"protected void setUp() {\r\n entry = new ExpenseEntry();\r\n }",
"public void testSetBasedata() {\n }",
"@Before\n\tpublic void setupTeste()\n\t{\n\t\tSystem.out.println(\"ESTOU FAZENDO O SETUP\");\n\t}",
"@Test\r\n public void testSetCourse() {\r\n System.out.println(\"setCourse\");\r\n String course = \"\";\r\n Student instance = new Student();\r\n instance.setCourse(course);\r\n \r\n }",
"@Test\n public void testSetPointId() {\n System.out.println(\"setPointId\");\n int point_id = 0;\n Manager instance = new Manager();\n instance.setPointId(point_id);\n \n fail(\"The test case is a prototype.\");\n }",
"@Test\n public void testSetName ()\n {\n System.out.println (\"setName\");\n String name = \"\";\n QueryDatas instance = new QueryDatas (\"nom\", \"value\");\n instance.setName (name);\n }",
"protected void setUp() {\n\t}",
"@Test\n public void testSetProductName_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n String productName = \"\";\n\n fixture.setProductName(productName);\n\n }"
] | [
"0.68251634",
"0.68033224",
"0.65231645",
"0.65142864",
"0.627018",
"0.626214",
"0.62598294",
"0.6189853",
"0.6183796",
"0.61660254",
"0.6148492",
"0.6143983",
"0.61435175",
"0.6074181",
"0.605863",
"0.6056371",
"0.6048676",
"0.6029284",
"0.6027456",
"0.60199356",
"0.6018404",
"0.59934044",
"0.59600824",
"0.59588134",
"0.59433967",
"0.5943353",
"0.5921001",
"0.5920757",
"0.59190595",
"0.5918274",
"0.58970517",
"0.5883939",
"0.58745444",
"0.58605117",
"0.5853699",
"0.58350277",
"0.58288735",
"0.58250415",
"0.5815551",
"0.5804433",
"0.5785331",
"0.5783481",
"0.57802445",
"0.5776666",
"0.5769708",
"0.57691",
"0.5767853",
"0.576418",
"0.57598114",
"0.5758013",
"0.5756415",
"0.5755986",
"0.57504797",
"0.57451165",
"0.57423854",
"0.57388484",
"0.57384837",
"0.5726732",
"0.57261413",
"0.57186985",
"0.5716141",
"0.5713985",
"0.5713668",
"0.57136583",
"0.5711122",
"0.5710346",
"0.5710178",
"0.57090974",
"0.5707615",
"0.5706126",
"0.56953824",
"0.5692734",
"0.56925565",
"0.5679282",
"0.56715924",
"0.56692874",
"0.5669078",
"0.5662282",
"0.5661033",
"0.5659999",
"0.5650499",
"0.56378716",
"0.56374705",
"0.5637455",
"0.56360596",
"0.56301993",
"0.5629239",
"0.56258243",
"0.5623205",
"0.5623205",
"0.56203693",
"0.56199634",
"0.56190926",
"0.5614799",
"0.5613887",
"0.56123304",
"0.56115943",
"0.5608498",
"0.56036603",
"0.56011724"
] | 0.75955325 | 0 |
Run a task on gl thread. | protected Object runOnGLThread(ResultRunnable task) {
assertActivityNotNull();
return mActivity.runOnGLThread(task);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tpublic void run() {\n\t\t\tsynchronized (mSync) {\n\t\t\t\t// 描画スレッドが実行されるまで待機\n\t\t\t\tif (!isRunning) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tmSync.wait();\n\t\t\t\t\t} catch (final InterruptedException e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tinit();\n\t\t\tif (egl.getGlVersion() > 2) {\n\t\t\t\tcaptureLoopGLES3();\n\t\t\t} else {\n\t\t\t\tcaptureLoopGLES2();\n\t\t\t}\n\t\t\t// release resources\n\t\t\trelease();\n//\t\t\tif (DEBUG) Log.v(TAG, \"captureTask finished\");\n\t\t}",
"@Override\n\t\tpublic void run() {\n\t\t\ttask();\n\t\t}",
"public void run(){\n //logic to execute in a thread \n }",
"@Override\n public void run() {\n task.run();\n }",
"public void runInThread() {\n\t\tTaskRunner taskRunner = Dep.get(TaskRunner.class);\n\t\tATask atask = new ATask<Object>(getClass().getSimpleName()) {\n\t\t\t@Override\n\t\t\tprotected Object run() throws Exception {\n\t\t\t\tBuildTask.this.run();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t};\n\t\ttaskRunner.submitIfAbsent(atask);\n\t}",
"@Override\n public void run() {\n runTask();\n\n }",
"public void run()\r\n\t{\r\n\t\ttry {\r\n\t\t\twhile(true) {\r\n\t\t\t\tgl.use();\r\n\t\t\t\tspinDisplay();\r\n\t\t\t\tThread.sleep(10);\r\n\t\t\t}\r\n\t\t}\r\n catch (InterruptedException e){\r\n // the user sent an interupt,\r\n // So lets exit...\r\n\t\t}\r\n\t}",
"public void run();",
"public void run();",
"public void run();",
"public void run();",
"public void run();",
"public final void run() {\n final long contextID = Nodex.instance.getContextID();\n Runnable runner = new Runnable() {\n public void run() {\n try {\n final T result = execute();\n NodexInternal.instance.executeOnContext(contextID, new Runnable() {\n public void run() {\n completionHandler.onEvent(new Completion(result));\n }\n });\n } catch (final Exception e) {\n NodexInternal.instance.executeOnContext(contextID, new Runnable() {\n public void run() {\n completionHandler.onEvent(new Completion(e));\n }\n });\n } catch (Throwable t) {\n //Not much we can do, just log it\n t.printStackTrace(System.err);\n }\n }\n };\n\n NodexInternal.instance.executeInBackground(runner);\n }",
"void run();",
"void run();",
"void run();",
"void run();",
"protected Object runOnDrawFrame(ResultRunnable task) {\n assertActivityNotNull();\n return mActivity.runOnDrawFrame(task);\n }",
"@Override\r\n\tvoid execute(Runnable task);",
"private void runOnMainThread(Runnable task)\n {\n if (Thread.currentThread() == mHandler.getLooper().getThread())\n task.run();\n else\n mHandler.post(task);\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tGLProfile.initSingleton();\n\t\t\t\twhile (!GLProfile.isInitialized()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}",
"public static void run(){}",
"public static void launchTask(Task tsk)\n {\n getInstance().doExecute(tsk);\n }",
"abstract void doTaskOnRun();",
"public void call(Runnable task) {\n if (asyncLogging) {\n executor.submit(task);\n } else {\n task.run();\n }\n }",
"public void run() {\n\t\tthis.launch( null );\n\t}",
"public void doWork() {\n Thread thread = new Thread( hva != null ? hva : this);\n thread.start();\n }",
"public abstract void run();",
"public abstract void run();",
"public abstract void run();",
"public void run() {\r\n\t\tnotifyViews();\r\n\t\tfor (int i = 0; i < 100000; i++) {\r\n\t\t\ttick();\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic abstract void run();",
"public final void run() {\r\n }",
"@Override\n abstract public void run();",
"public final void run() {\n\t\ttask();\n\t\t_nextTaskHasRan = true;\n\t}",
"@Override\npublic void run() {\n perform();\t\n}",
"@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\twhile(!(gst.done&&gpt.done));\r\n\t\t\t\t\t\t\t\t\tx.task().post(new Runnable(){\r\n\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\t\tgotoLiveView(pattern,gst.resultFile);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}",
"void executeStraight(Runnable task);",
"@Override\r\n\tabstract public void run();",
"public void startTask() {\n\t}",
"public void run() {\n try {\n runable.run();\n } catch (Throwable ex) {\n Log.INSTANCE.e(LOG_TAG, LOG_TAG, ex);\n } finally {\n\n // Log.INSTANCE.d(LOG_TAG, \"BGND THREAD \" + msg + \" (\" + (System.nanoTime() - startTime) / 1000000 + \"ms)\");\n }\n }",
"@Override\n\tpublic void execute() {\n\t\tThreadPool pool=ThreadPool.getInstance();\n\t\tpool.beginTaskRun(this);\n\t}",
"public void execute() {\n\t\tlaunch();\n\t}",
"public static native void run();",
"public static void run() {\n }",
"public void run() {\r\n }",
"public void run()\n\t{\n\t}",
"public void startThread(View view) {\n //startNormalThread();\n startRunnableThread();\n }",
"@Override\n // Thread creation\n // Run method from the Runnable class.\n public void run() {\n p.println(\"Current thread = \" + Thread.currentThread().getName());\n // Shows when a task is being executed concurrently with another thread,\n // then puts the thread to bed (I like saying that)\n try {\n p.println(\"Doing a task during : \" + name);\n Thread.currentThread().sleep(time);\n }\n // Exception for when a thread is interrupted.\n catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public abstract boolean dispatch(final CallRunner callTask) throws InterruptedException;",
"public abstract void run() ;",
"public void run(){\n\t}",
"@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\twhile(!gpt.done);\r\n\t\t\t\t\t\t\t\t\tx.task().post(new Runnable(){\r\n\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\t\tgotoLiveView(pattern,sound_cache);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}",
"@Override\r\n\tpublic void doTask() {\n\t}",
"public abstract void task();",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tAbsTaskAsynCallBack.this.run();\n\t\t\t\tAbsTaskAsynCallBack.this.callback();\n\t\t\t}",
"public void run() {\n // run called\n System.out.println(\"Run called\");\n status = true;\n Thread t = new Thread() {\n @Override\n public void run() {\n while(status) {\n\t\t\t\t\tSystem.out.println(\"step\");\n // step();\n\t\t\t\t\t//render();\n }\n }\n };\n t.start();\n\n Thread h = new Thread() {\n @Override\n public void run() {\n while(status) {\n render();\n }\n }\n };\n h.start();\n }",
"public void run() {\n }",
"public void run () { run (true); }",
"public static void runOnGameThread(final Runnable runnable) {\n sTaskQOnGameThread.addTask(runnable);\n }",
"@Override\n protected void runInListenerThread(Runnable runnable) {\n runnable.run();\n }",
"@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tinvoke();\n\t\t\t\t\t}",
"public void run()\n\t\t{\n\t\t}",
"public void run() {\n }",
"public void run() {\n }",
"public void run() {\n }",
"public void run() {\n }",
"public void run()\r\n\t{\r\n\t\t\r\n\t}",
"void startTask( org.openxdata.server.admin.model.TaskDef task, AsyncCallback<java.lang.Boolean> callback );",
"public void run() {\n\t}",
"public void run() {\n\t}",
"public void run() \n \t{\n \t\twhile(m_isDrawing)\n \t\t{\n \t\t\tCanvas canvas = m_surface.lockCanvas();\n \t\t\t\n \t\t\ttry\n \t\t\t{\n \t\t\t\t// clear canvas\n \t\t\t\tcanvas.drawColor(Color.WHITE);\n \t\t\t\t\n \t\t\t\t// draw stuffs\n \t\t\t\tm_grid.Draw(canvas, m_camera);\n \t\t\t}\n \t\t\tfinally\n \t\t\t{\n \t\t\t\tm_surface.unlockCanvasAndPost(canvas);\n \t\t\t}\n \t\t\t\n \t\t\t// then sleep for a bit\n \t\t\ttry \n \t\t\t{\n \t\t\t\tThread.sleep((long) (1000.0f / FPS));\n \t\t\t} \n \t\t\tcatch (InterruptedException e) \n \t\t\t{\n \t\t\t\t// Don't care, just log it and move on\n \t\t\t\tLog.w(TAG, \"Interrupted while sleeping!\");\n \t\t\t}\n \t\t}\n \t}",
"public void run() {\n\n\t}",
"public void run() {\n\n\t}",
"private void go() {\n\n new Thread(this).start();\n }",
"void runInAudioThread(Runnable runnable) {\n executor.execute(runnable);\n }",
"public void run() {\n\n\n }",
"public void run() {\n }",
"public void run(){\n try{\n doTask();\n } catch (IOException ex){\n throw new RuntimeException(ex);\n }\n }",
"public void runTask(Runnable task) {\n\t\tthreadPool.execute(task);\r\n\t\t// System.out.println(\"Queue Size after assigning the\r\n\t\t// task..\"+queue.size() );\r\n\t\t// System.out.println(\"Pool Size after assigning the\r\n\t\t// task..\"+threadPool.getActiveCount() );\r\n\t\t// System.out.println(\"Task count..\"+threadPool.getTaskCount() );\r\n\t\tSystem.out.println(\"Task count..\" + queue.size());\r\n\r\n\t}",
"public void run() {\n\t\t}",
"public void run() {\n\t\t}",
"public void run() {\n\t\t}",
"public void run() {\n }",
"public void run() {\n\n }",
"public void run() {\n\t\t\r\n\t}",
"public void run() {\n\t\t\r\n\t}",
"public void run(\r\n ) {\r\n \tboolean isActive = true;\r\n \tStringBuilder aBuffer = new StringBuilder( 256 );\r\n \t\r\n \twhile( isActive ) {\r\n \t\tsynchronized( this ) {\r\n\t \t\tif ( mLoadingScene == null ) try {\r\n\t \t\t\tthis.wait();\r\n\t \t\t} catch( InterruptedException ex ) {\r\n\t \t\t\tisActive = false;\r\n\t \t\t\tmLoadingScene = null;\r\n\t \t\t}\r\n \t\t}\r\n \t\taBuffer.setLength( 0 );\r\n \t\tStringBuilder reportString = null;\r\n \t\ttry {\r\n \t\t\treportString = loadElement( mLoadingScene, aBuffer );\r\n \t\t} catch( CSGConstructionException ex ) {\r\n \t\t\treportString = CSGConstructionException.reportError( ex, \" // \", aBuffer );\r\n \t\t}\r\n \t\tmLoadingScene = null;\r\n \t\t\r\n \t\tif ( reportString != null ) {\r\n \t\t\tmPostText.push( reportString.toString() );\r\n \t\t\tmRefreshText = true;\r\n \t\t}\r\n \t}\r\n }",
"public void run() {\n }",
"public void run() {\n }",
"public void run() {\n }",
"@Override\r\n public void run() {}",
"protected void internalRun() {\n work();\n }",
"private static void tickOnThread() {\n final Thread thread = new Thread(new Runnable(){\n @Override\n public void run() {\n tick(true);\n }\n });\n thread.start();\n }",
"public void run()\r\n/* 996: */ {\r\n/* 997:838 */ if (DefaultPromise.this.listeners == null) {\r\n/* 998: */ for (;;)\r\n/* 999: */ {\r\n/* :00:840 */ GenericFutureListener<?> l = (GenericFutureListener)poll();\r\n/* :01:841 */ if (l == null) {\r\n/* :02: */ break;\r\n/* :03: */ }\r\n/* :04:844 */ DefaultPromise.notifyListener0(DefaultPromise.this, l);\r\n/* :05: */ }\r\n/* :06: */ }\r\n/* :07:849 */ DefaultPromise.execute(DefaultPromise.this.executor(), this);\r\n/* :08: */ }",
"@Override\n\tpublic void task() {\n\t\tst.subTask();\n System.out.println(\"This is UI Task\");\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\ttry {\n\t\t\t\tHttp_PushTask HP = new Http_PushTask();\n\t\t\t\tString result = HP.execute(\n\t\t\t\t\t\t\"\",\n\t\t\t\t\t\t\"http://cnyssj.com/dfweb/sys/good/getGoodList?token=\"\n\t\t\t\t\t\t\t\t+ token + \"&start=0&limit=100\").get();\n\n\t\t\t\tif (!TextUtils.isEmpty(result)) {\n\t\t\t\t\treList = new ArrayList<Recommend>();\n\t\t\t\t\treList = json.parseJsonsByReProduct(result);\n\t\t\t\t\tshowmessage(1);\n\t\t\t\t} else {\n\t\t\t\t\ttoast(\"获取数据失败!\");\n\t\t\t\t\tmDialog.dismiss();\n\t\t\t\t}\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t} catch (ExecutionException e2) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te2.printStackTrace();\n\t\t\t}\n\t\t}",
"public void run()\n {\n }",
"public void run()\n {\n }",
"public void run()\n {\n\n }"
] | [
"0.6856728",
"0.6591487",
"0.64497375",
"0.64165854",
"0.63429475",
"0.6290014",
"0.62373215",
"0.6214619",
"0.6214619",
"0.6214619",
"0.6214619",
"0.6214619",
"0.61656",
"0.6109369",
"0.6109369",
"0.6109369",
"0.6109369",
"0.60364354",
"0.5975935",
"0.59703314",
"0.596052",
"0.5957203",
"0.588042",
"0.58527255",
"0.5850526",
"0.58471084",
"0.58223236",
"0.58206755",
"0.58206755",
"0.58206755",
"0.5811853",
"0.58107316",
"0.57727116",
"0.5760282",
"0.57578236",
"0.57427114",
"0.5741819",
"0.57308805",
"0.57302344",
"0.5725887",
"0.57204163",
"0.5715707",
"0.56931186",
"0.5690625",
"0.56881535",
"0.568226",
"0.56769735",
"0.5675469",
"0.565453",
"0.56488043",
"0.56301266",
"0.5623119",
"0.5622288",
"0.56129277",
"0.5609239",
"0.55930394",
"0.55901164",
"0.55812204",
"0.5578429",
"0.5571026",
"0.55689526",
"0.55682963",
"0.5564762",
"0.55488247",
"0.55488247",
"0.55488247",
"0.55488247",
"0.5543556",
"0.55366564",
"0.55355716",
"0.55355716",
"0.5535403",
"0.5529555",
"0.5529555",
"0.552218",
"0.5510501",
"0.5510073",
"0.54972947",
"0.5496511",
"0.5490571",
"0.54903924",
"0.54903924",
"0.54903924",
"0.5489104",
"0.5488522",
"0.548829",
"0.548829",
"0.5487476",
"0.5476124",
"0.5476124",
"0.5476124",
"0.5474965",
"0.54729587",
"0.54571056",
"0.54548913",
"0.5453772",
"0.5453133",
"0.5452339",
"0.5452339",
"0.54516834"
] | 0.76805323 | 0 |
Run a task in onDrawFrame. | protected Object runOnDrawFrame(ResultRunnable task) {
assertActivityNotNull();
return mActivity.runOnDrawFrame(task);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void overDraw() {\r\n\t\t\r\n\t\tisDrawCalled = false;\r\n\t\t\r\n\t\tLog.d(\"core\", \"Scheduler: All step done in \" + \r\n\t\t\t\t(System.currentTimeMillis() - logTimerMark) + \" ms;\");\r\n\t\t\r\n\t\tint delay = 3;\r\n\t\tstartWork(delay);\r\n\t}",
"@Override\n public void draw(Canvas canvas) {\n if (mApplyTransformation) {\n mDstRect.set(getBounds());\n mSx = (float) mDstRect.width() / mMetaData[0];\n mSy = (float) mDstRect.height() / mMetaData[1];\n mApplyTransformation = false;\n }\n if (mPaint.getShader() == null) {\n if (mIsRunning)\n renderFrame(mColors, mGifInfoPtr, mMetaData);\n else\n mMetaData[4] = -1;\n\n canvas.scale(mSx, mSy);\n final int[] colors = mColors;\n\n if (colors != null)\n canvas.drawBitmap(colors, 0, mMetaData[0], 0f, 0f, mMetaData[0], mMetaData[1], true, mPaint);\n\n if (mMetaData[4] >= 0 && mMetaData[2] > 1)\n //UI_HANDLER.postDelayed(mInvalidateTask, mMetaData[4]);//TODO don't post if message for given frame was already posted\n invalidateSelf();\n } else\n canvas.drawRect(mDstRect, mPaint);\n }",
"@Override\n public void run() {\n drawComponents();\n // Ve lai sau 1p\n drawComponentsHandler.postDelayed(drawComponentsRunnable, 60000);\n }",
"@Override\n public void run() {\n drawBack(holder);\n drawClock();\n// drawCircle();\n }",
"@Override\r\n\tpublic void onCallForDraw() {\r\n\t\tdraw(mLiveCardView);\r\n\t}",
"void doOneFrame(DrawSurface d, double dt);",
"public void run() {\n\t\t\t\t\t\t\t\t heavyResize();\n\t\t\t\t\t\t\t\t invokeRedraw();\n\t\t\t\t\t\t\t\t }",
"@Override\n protected void onDraw(Canvas canvas) {\n\n // Draw the board\n backgCalculating.draw(canvas, displayArea, centralBall);\n\n // Delay\n try {\n Thread.sleep(30);\n } catch (InterruptedException e) {}\n\n invalidate(); // Force a re-draw\n }",
"public void run() {\n\t\t\t heavyResize();\n\t\t\t invokeRedraw();\n\t\t }",
"public void run() {\n myCanvas.repaint();\n }",
"public void run() {\n Timeline timeline = new Timeline(new KeyFrame(Duration.millis(17),\n t -> this.draw()));\n\n timeline.setCycleCount(Timeline.INDEFINITE);\n timeline.play();\n }",
"@Override\n public void run() {\n runAnimation();\n }",
"@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 }",
"void onDraw(ProcessingCanvas givenCanvas);",
"public final void run() {\r\n run(new PixelFormat(), null);\r\n }",
"public void run() {\t\t\r\n\t\tif(this.stopped) {\r\n\t\t\tthis.animationFigure.showBusy(false);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif(this.state==null || this.state.getState() == State.UNBLOCKED) {\r\n\t\t\tthis.finished=true;\r\n\t\t this.animationFigure.showBusy(false);\r\n\t\t\t//notify Listeners and tell them that animation finished. This listeners are user defined listeners which will be informed.\r\n\t\t\tanimationFigure.notifyAnimationListener(new AnimationFinishedEvent(animationFigure, AnimationFinishedEvent.BUSY_FINISHED));\r\n\t\t\t//notify observers, here the observer which listens if animation is finished. this Observer looks into the animationqueue \r\n\t\t\t//after each finished \r\n\t\t\tsetChanged();\r\n\t\t\tnotifyObservers(this.animationFigure);\r\n\t\t\t\r\n\t\t\t// notify waiting threads\r\n\t\t\tsynchronized (this) {\r\n\t\t\t\tthis.notifyAll();\r\n\t\t\t}\r\n\t\t return;\r\n\t\t}\r\n\t\tif (counter >= 5) {\r\n\t\t\tcounter = 0;\r\n\t\t\tthis.animationFigure.showBusy(!this.animationFigure.isShowBusy());\r\n\t\t}\r\n\t\tcounter++;\r\n\t\tmap.getDisplay().timerExec(100, this);\t\t\t\r\n\t}",
"@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 }",
"@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tptrFrameLayout.refreshComplete();\t//结束刷新\r\n\t\t\t\t\t}",
"public void run() {\n android.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_BACKGROUND);\n\n while (ok) {\n //perform canvas drawing\n if (!holder.getSurface().isValid()) {//if surface is not valid\n continue;//skip anything below it\n }\n\n Canvas c = holder.lockCanvas(); //Lock canvas, paint canvas, unlock canvas\n synchronized (holder) {\n long beginTime = System.currentTimeMillis();\n int framesSkipped = 0;\n // update game state\n this.updateCanvas();\n // render state to the screen\n // draws the canvas on the panel\n this.drawCanvas(c);\n // calculate how long did the cycle take\n long timeDiff = System.currentTimeMillis() - beginTime;\n // calculate sleep time\n int sleepTime = (int) (FRAME_PERIOD - timeDiff);\n if (sleepTime > 0) {\n // if sleepTime > 0 put to sleep for short period of time\n try {\n // send the thread to sleep for a short period\n // very useful for battery saving\n Thread.sleep(sleepTime);\n } catch (InterruptedException e) {\n }\n }\n\n //ADD THIS IF WE ARE DOING LOTS OF WORK\n //If sleeptime is greater than a frame length, skip a number of frames\n while (sleepTime < 0 && framesSkipped < MAX_FRAME_SKIPS) {\n // we need to catch up\n // update without rendering\n this.updateCanvas();\n // add frame period to check if in next frame\n sleepTime += FRAME_PERIOD;\n framesSkipped++;\n }\n\n holder.unlockCanvasAndPost(c);\n }\n }\n }",
"public void draw() {\n \n }",
"private void draw() {\n\t\tCanvas c = null;\n\t\ttry {\n\t\t\t// NOTE: in the LunarLander they don't have any synchronization here,\n\t\t\t// so I guess this is OK. It will return null if the holder is not ready\n\t\t\tc = mHolder.lockCanvas();\n\t\t\t\n\t\t\t// TODO this needs to synchronize on something\n\t\t\tif (c != null) {\n\t\t\t\tdoDraw(c);\n\t\t\t}\n\t\t} finally {\n\t\t\tif (c != null) {\n\t\t\t\tmHolder.unlockCanvasAndPost(c);\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\twhile(true){\r\n\t\t\t\t\tdraw();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public void run() {\n AnimationDrawable frameAnimation = (AnimationDrawable) img.getBackground();\n frameAnimation.start();\n }",
"public void draw() {\n \n // TODO\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}",
"@Override\n\tpublic void run() {\n\t\twhile (runing) {\n\t\t\tdraw(canvas, paint);\n\t\t\ttry {\n\t\t\t\tThread.sleep(15);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\tsynchronized (mSync) {\n\t\t\t\t// 描画スレッドが実行されるまで待機\n\t\t\t\tif (!isRunning) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tmSync.wait();\n\t\t\t\t\t} catch (final InterruptedException e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tinit();\n\t\t\tif (egl.getGlVersion() > 2) {\n\t\t\t\tcaptureLoopGLES3();\n\t\t\t} else {\n\t\t\t\tcaptureLoopGLES2();\n\t\t\t}\n\t\t\t// release resources\n\t\t\trelease();\n//\t\t\tif (DEBUG) Log.v(TAG, \"captureTask finished\");\n\t\t}",
"public void draw(){\n }",
"public void run()\n {\n \t if (_messageWindow != null)\n \t {\n \t\t _messageWindow.append(\"Generating single artery image. \");\n \t }\n \t ImagePlus singleArteryImage = _singleArtery.setStartPosition(_selectedPos, _inputImage.getShortTitle()+_count);\n \t if (singleArteryImage != null)\n \t {\n \t\t _count++;\n \t\t singleArteryImage.show();\n \t\t singleArteryImage.updateAndDraw();\n \t\t DFMFromPointListener dfmp = new DFMFromPointListener(singleArteryImage, _singleArtery.getSingleCenterlineGraph(), \n \t \t\t_xRes, _yRes, _zRes, _width, _height, _zSize); \n \t dfmp.setThickenOutput(false);\n \t \n \t if (_messageWindow != null)\n \t {\n \t \tdfmp.setMessageWindow(_messageWindow);\n \t }\n \t }\n \t else\n \t {\n \t\t _messageWindow.append(\"Singe Artery Image is null\");\n \t }\n \t \n \t \n \t \n }",
"public void draw() {\n }",
"public void draw(){\n if (! this.isFinished() ){\n UI.setColor(this.color);\n double left = this.xPos-this.radius;\n double top = GROUND-this.ht-this.radius;\n UI.fillOval(left, top, this.radius*2, this.radius*2);\n }\n }",
"@Override\n public void surfaceCreated(SurfaceHolder holder) {\n // создаём поток прорисовки\n drawThread = new DrawThread(getHolder());\n drawThread.setRunning(true);\n drawThread.start();\n }",
"@Override\r\n public void run(){\r\n while (isRunning){\r\n if(!ourHolder.getSurface().isValid())\r\n continue;\r\n draw();\r\n }\r\n }",
"public void draw() {\r\n if(isVisible()) {\r\n Canvas canvas = Canvas.getCanvas();\r\n canvas.draw(this,getColor(),\r\n new Rectangle(\r\n (int)round(getXposition()),\r\n (int)round(getYposition()),\r\n (int)round(size),\r\n (int)round(size)));\r\n canvas.wait(10);\r\n }\r\n }",
"public void draw() {\r\n\t\tif (active_)\r\n\t\t\tGlobals.getInstance().getCamera().drawImageOnHud(posx_, posy_, currentImage());\r\n\t}",
"public void draw() {\n\n // Make sure our drawing surface is valid or we crash\n if (ourHolder.getSurface().isValid()) {\n // Lock the canvas ready to draw\n canvas = ourHolder.lockCanvas();\n // Draw the background color\n paint.setTypeface(tf);\n canvas.drawColor(Color.rgb(178,223,219));\n paint.setColor(Color.rgb(255,255,255));\n canvas.drawRect(offsetX, offsetY, width-offsetX, (height-100)-offsetY, paint);\n // Choose the brush color for drawing\n paint.setColor(Color.argb(50,0,0,0));\n paint.setFlags(Paint.ANTI_ALIAS_FLAG);\n // Make the text a bit bigger\n paint.setTextSize(40);\n paint.setStrokeWidth(5);\n paint.setStrokeCap(Paint.Cap.ROUND);\n // Display the current fps on the screen\n canvas.drawText(\"FPS:\" + fps, 20, 40, paint);\n paint.setTextSize(400);\n if(hasTouched == true) {\n if (count < 0) {\n canvas.drawText(0 + \"\", (width / 2) - 100, height / 2, paint);\n } else if(count<=numLines) {\n canvas.drawText(count + \"\", (width / 2) - 100, height / 2, paint);\n }\n } else {\n paint.setTextSize(100);\n canvas.drawText(\"TAP TO START\", (width / 2) - 300, height / 2, paint);\n }\n paint.setColor(Color.rgb(0,150,136));\n\n paint.setColor(color);\n\n canvas.drawCircle(xPosition, yPosition, radius, paint);\n\n paint.setColor(lineColor);\n\n if(isMoving==true && hasHit == false && count>=0) {\n canvas.drawLine(initialX, initialY, endX, endY, paint);\n }\n paint.setColor(Color.rgb(103,58,183));\n\n for(int i=0; i<verts.length; i++) {\n canvas.drawVertices(Canvas.VertexMode.TRIANGLES, verts[0].length, verts[i], 0, null, 0, verticesColors, 0, null, 0, 0, new Paint());\n }\n for (int i=0; i<innerVerts.length; i++) {\n canvas.drawVertices(Canvas.VertexMode.TRIANGLES, innerVerts[0].length, innerVerts[i], 0, null, 0, verticesColors, 0, null, 0, 0, new Paint());\n }\n // Draw everything to the screen\n ourHolder.unlockCanvasAndPost(canvas);\n\n //Display size and width\n\n }\n\n }",
"@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\timgView.setImageBitmap(pngBM);\n\t\t\t\t\t\t}",
"public void draw() {\n\n }",
"private void draw() {\n frames++;\n MainFrame.singleton().draw();\n }",
"public void draw() {\n\t\t\r\n\t\tSystem.out.println(\"drawing...\");\r\n\t\t\r\n\t}",
"@Override\n\t\tpublic void run(){\n\t\t\tinvalidate();\n\t\t}",
"@Override\r\n\t\tpublic void run() {\n\t\t\tpostInvalidate();\r\n\t\t\t//postDelayed(this, SCROLLER_DISTANCE);\r\n\t\t}",
"public void draw() { \n\t\tbackground(255); // Clear the screen with a white background\n\t\tfill(0);\n\t\ttextAlign(LEFT);\n\t\ttextSize(12);\n\t\t\n\t\tif (runCount == 0) {\n\t\t\tboard.onClick();\n\t\t} else if (runCount > 0) {\n\t\t\trunCount--;\n\t\t}\n\t\t\n\t\tif (board != null) {\n\t\t\tboard.draw(this, 0, 0, height, height);\n\t\t}\n\t\t\n\t}",
"@Override\n\tpublic void onDrawFrame(GL10 gl) {\n\t\tif (!mIsActive)\n\t\t\treturn;\n\n\t\t// Call our function to render content from ArVuforiaAppRenderer class\n\t\tmRenderer.render();\n\t}",
"abstract void doTaskOnRun();",
"private void draw()\n {\n Canvas canvas = Canvas.getCanvas();\n canvas.draw(this, color, new Ellipse2D.Double(xPosition, yPosition, \n diameter, diameter));\n canvas.wait(10);\n }",
"@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}",
"public void start() {\r\n\t\tif (animationFigure instanceof TrainFigure) {\r\n\t\t\t((TrainFigure) animationFigure).setBusyColor(org.eclipse.draw2d.ColorConstants.red);\r\n\t\t}\r\n\t\tcounter = 1;\r\n\t\t//notify Listeners\r\n\t\tanimationFigure.notifyAnimationListener(new AnimationStartedEvent(animationFigure, AnimationStartedEvent.BUSY_STARTED));\r\n\t\tthis.stopped=false;\r\n\t\tmap.getDisplay().asyncExec(this);\r\n\t}",
"public void draw()\r\n {\r\n drawn = true;\r\n }",
"@Override\n public void run() {\n while (true) {\n long currentTime = System.nanoTime();\n\n draw();\n check(currentTime);\n }\n }",
"private void doDraw(Canvas canvas) {\n \tlong now = System.currentTimeMillis();\n \tif (canvas != null) {\n \t\tcanvas.drawColor(Color.BLACK);\n \t\t// Draw the sprite (animation is handled within the AnimatedSprite class) \n \t\tfor(int i = 0; i < particles.length; i++) particles[i].draw(canvas);\n \t}\n mLastTime = now;\n }",
"@Override\n public void draw(Canvas canvas)\n {\n\n animationM.draw(canvas, rectangle);\n\n }",
"@Override\n public void onDrawFrame(final GL10 gl) {\n Moin2dJni.nativeDraw();\n\n\n\t\t/*\n\t\t// fps controlling\n\t\tif (interval < Cocos2dxRenderer.sAnimationInterval) {\n\t\t\ttry {\n\t\t\t\t// because we render it before, so we should sleep twice time interval\n\t\t\t\tThread.sleep((Cocos2dxRenderer.sAnimationInterval - interval) / Cocos2dxRenderer.NANOSECONDSPERMICROSECOND);\n\t\t\t} catch (final Exception e) {\n\t\t\t}\n\t\t}\n\n\t\tthis.mLastTickInNanoSeconds = nowInNanoSeconds;\n\t\t*/\n }",
"@Override\r\n public void draw() {\n }",
"@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n if (task.isFinished()) {\n int y = this.getHeight() / 2;\n g.drawLine(0, y, this.getWidth(), y);\n }\n }",
"public final native void setDrawingFunction(Drawable fct) /*-{\n\t\tthis.setDrawFunc(function(frame) {\n \[email protected]::draw(Lnet/edzard/kinetic/Frame;)(\n \t\[email protected]::new(DDD)(frame.lastTime, frame.time, frame.timeDiff)\n \t);\n });\n\t}-*/;",
"@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"draw method\");\n\t}",
"protected void sleepOnDrawFrame(final long duration) {\n runOnDrawFrame(new ResultRunnable() {\n @Override\n public Object run() {\n try {\n Thread.sleep(duration);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n return null;\n }\n });\n }",
"public void run() {\n mTextView.setTranslationY(-mTextView.getHeight());\n mTextView.animate().setDuration(duration / 2).translationY(0).alpha(1)\n .setInterpolator(sDecelerator);\n }",
"@Override\r\n\tprotected void onDraw() {\n\t\t\r\n\t}",
"@Override\n public void draw()\n {\n }",
"@Override\n public void draw() {\n }",
"void onDrawFinished(DataSet<?> dataSet);",
"protected abstract void draw();",
"public void beginDrawing();",
"@Override\n public void run() {\n while (threadFlag) {\n long startTime = System.currentTimeMillis();\n drawSelf();\n long endTime = System.currentTimeMillis();\n try {\n if (endTime - startTime < 500)\n Thread.sleep(500 - (endTime - startTime));\n } catch (InterruptedException err) {\n err.printStackTrace();\n }\n }\n }",
"void drawComplete(Meteor meteor);",
"public void run() {\n scroolViewScanner.setBackgroundColor(Color.TRANSPARENT);\n scroolViewDefect.setBackgroundColor(Color.TRANSPARENT);\n linLayOverView.setBackgroundColor(Color.TRANSPARENT);\n }",
"public void doOneFrame(DrawSurface d, double dt) {\r\n\r\n gameScreen.drawAllOn(d);\r\n d.setColor(COLOR);\r\n d.drawText(d.getWidth() / 2, d.getHeight() / 2, this.countFrom + \"...\", 32);\r\n\r\n if (this.countFrom < 3) {\r\n this.sleeper.sleepFor(this.displayTime);\r\n }\r\n\r\n if (this.countFrom == 0) {\r\n this.stop = true;\r\n }\r\n\r\n this.countFrom--;\r\n }",
"@Override\n\t\tpublic void run() {\n\n\t\t\tif (cancel == true)\n\t\t\t\tupdateBarHandler.removeCallbacks(updateThread2);\n\t\t\telse {\n\t\t\t\t// 执行预处理:简单线性灰度变换\n\t\t\t\tbm = preProcess.linearGray(bm);\n\t\t\t\t// 装载\n\t\t\t\tmyImageView2.setImageBitmap(bm);\n\t\t\t\t// 设置进度条\n\t\t\t\tbar.setProgress(100 / N * 3);\n\t\t\t\tupdateBarHandler.post(updateThread3);\n\t\t\t}\n\t\t}",
"@Override\r\n\tpublic void onDrawFrame(GL10 gl) {\n\r\n\t\tLog.d(TAG, \"onDrawFrame\"\t);\r\n\t\t\tsetGL(gl);\r\n\t\t\tDrawObjects(gl);\r\n\t\t\tunSetGl(gl);\r\n\t}",
"public void dispatchDraw(Canvas canvas) {\n int[] iArr = new int[2];\n int[] iArr2 = new int[2];\n this.f2856b.getLocationOnScreen(iArr);\n this.f2857c.getLocationOnScreen(iArr2);\n canvas.translate((float) (iArr2[0] - iArr[0]), (float) (iArr2[1] - iArr[1]));\n canvas.clipRect(new Rect(0, 0, this.f2857c.getWidth(), this.f2857c.getHeight()));\n super.dispatchDraw(canvas);\n ArrayList<Drawable> arrayList = this.f2858d;\n int size = arrayList == null ? 0 : arrayList.size();\n for (int i2 = 0; i2 < size; i2++) {\n ((Drawable) this.f2858d.get(i2)).draw(canvas);\n }\n }",
"public void onFirstDrawFre() {\n mThreadChecker.assertOnValidThread();\n onFirstDraw(UMA_FRE);\n }",
"public void doOneFrame(DrawSurface d, double dt) {\n this.gameScreen.drawAllOn(d);\n if (this.counterCurrent > 0) {\n d.setColor(Color.RED);\n d.drawText(d.getWidth() / 2, d.getHeight() / 2, Integer.toString(this.counterCurrent), 50);\n\n }\n if (this.counterCurrent != this.countFrom) {\n sleeper.sleepFor((long) ((this.numOfSeconds / this.countFrom) * 1000));\n }\n this.counterCurrent--;\n\n }",
"public void run() {\n int x = m.getCurrentMouse().getX();\n int y = m.getCurrentMouse().getY();\n int scrollX = view.getScroll().getHorizontalScrollBar().getValue();\n int scrollY = view.getScroll().getVerticalScrollBar().getValue();\n\n int clickX = x + scrollX - 40;\n\n int clickY = y + scrollY - 30;\n\n int fromTheTop = clickY / 21;\n int fromTheLeft = clickX / 21;\n\n\n Note n = model.getHighestPitch();\n\n for (int i = 0; i < fromTheTop; i++) {\n n = Note.prevNote(n);\n }\n this.model.setNoteToBeAdded(new Note(n.getPitchLetter(), n.getOctave(),\n fromTheLeft, fromTheLeft));\n\n view.setAllNotes(model.getMusic());\n view.setLength(model.getDuration());\n view.setTone(model.getTone(model.getNotes()));\n view.setTempo(model.getTempo());\n\n\n }",
"private void draw(View view){\r\n\t\tif(mHolder == null){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tCanvas canvas;\r\n\t\ttry{\r\n\t\t\tcanvas = mHolder.lockCanvas();\r\n\t\t} catch (Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif(canvas != null){\r\n\t\t\t//We can draw the view\r\n\t\t\tview.draw(canvas);\r\n\t\t\tmHolder.unlockCanvasAndPost(canvas);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void draw() {\n\t}",
"public void run() \n \t{\n \t\twhile(m_isDrawing)\n \t\t{\n \t\t\tCanvas canvas = m_surface.lockCanvas();\n \t\t\t\n \t\t\ttry\n \t\t\t{\n \t\t\t\t// clear canvas\n \t\t\t\tcanvas.drawColor(Color.WHITE);\n \t\t\t\t\n \t\t\t\t// draw stuffs\n \t\t\t\tm_grid.Draw(canvas, m_camera);\n \t\t\t}\n \t\t\tfinally\n \t\t\t{\n \t\t\t\tm_surface.unlockCanvasAndPost(canvas);\n \t\t\t}\n \t\t\t\n \t\t\t// then sleep for a bit\n \t\t\ttry \n \t\t\t{\n \t\t\t\tThread.sleep((long) (1000.0f / FPS));\n \t\t\t} \n \t\t\tcatch (InterruptedException e) \n \t\t\t{\n \t\t\t\t// Don't care, just log it and move on\n \t\t\t\tLog.w(TAG, \"Interrupted while sleeping!\");\n \t\t\t}\n \t\t}\n \t}",
"@Override\n protected void drawTask(Graphics g) {\n Graphics2D g2 = (Graphics2D) g;\n\n g2.setStroke(PetriNetUtils.defaultStroke);\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\n Rectangle2D outline = new Rectangle2D.Float(getPos().x - (getSize().width / 2),\n getPos().y - (getSize().height / 2)+5, getSize().width-5, getSize().height-5);\n\n // Draw shadow\n Rectangle2D shadow = new Rectangle2D.Float(getPos().x - (getSize().width / 2) + 5,\n getPos().y - (getSize().height / 2), getSize().width-5, getSize().height-5);\n if (subNetOk) { \n g2.setPaint(Color.WHITE);\n } else {\n g2.setPaint(Color.RED);\n }\n g2.fill(shadow); \n g2.setPaint(Color.BLACK);\n g2.draw(shadow);\n\n g2.setPaint(Color.WHITE);\n if (isEnabledHighlight()) {\n g2.setPaint(Color.GREEN);\n }\n g2.fill(outline);\n\n // Render remaining time if > 0\n if (getRemainingTime() > 0) {\n int duration = 1;\n try {\n duration = Integer.parseInt(getProperty(PROP_DURATION));\n if (duration == 0) {\n duration = 1;\n }\n } catch (NumberFormatException e) {\n }\n ;\n g2.setPaint(Color.GREEN);\n int barHeight = (int) ((double) getSize().height * ((double) getRemainingTime() / (double) duration));\n Rectangle2D bar = new Rectangle2D.Float(getPos().x - (getSize().width / 2),\n (getPos().y - (getSize().height / 2)) + (getSize().height - barHeight),\n getSize().width, barHeight);\n g2.fill(bar);\n }\n\n // Render instance count if > 0\n if (getInstanceCount() > 0) {\n g2.setPaint(Color.GRAY);\n g2.setFont(new Font(\"Arial Narrow\", Font.BOLD, 12));\n g2.drawString(\"\" + getInstanceCount(),\n getPos().x - ((getSize().width / 2) - 3),\n getPos().y - ((getSize().height / 2) - 12));\n }\n\n g2.setPaint(Color.BLACK);\n g2.draw(outline);\n\n // Set font\n g2.setFont(new Font(\"Arial Narrow\", Font.BOLD, 12));\n\n // Draw text\n if (getText() != null) {\n PetriNetUtils.drawText(g2, getPos().x, getPos().y + (getSize().height / 2),\n 70, getText(), PetriNetUtils.Orientation.TOP);\n }\n\n String metaData = \"\";\n\n // Show cost (if applicable)\n if (getProperty(PROP_COST).length() > 0) {\n metaData += getProperty(PROP_COST) + \"€\";\n }\n\n // Show duration (if applicable)\n if (getProperty(PROP_DURATION).length() > 0) {\n metaData += \" \" + getProperty(PROP_DURATION) + \"s\";\n }\n\n PetriNetUtils.drawText(g2, getPos().x, getPos().y + (getSize().height / 2) + 12,\n 70, metaData, PetriNetUtils.Orientation.TOP);\n\n // Show probability (if applicable)\n if (getProperty(PROP_PROBABILITY).length() > 0) {\n // Don't show 100% probability!\n if (!getProperty(PROP_PROBABILITY).equals(\"100\")) {\n PetriNetUtils.drawText(g2, getPos().x, getPos().y, getSize().width,\n getProperty(PROP_PROBABILITY) + \"%\", PetriNetUtils.Orientation.CENTER);\n }\n }\n }",
"@Override\r\n\tpublic void doTask() {\n\t}",
"protected void afterPaint(Graphics g, int drawX, int drawY, int drawW,\r\n\t\t\tint drawH) {\r\n\t\t// nothing\r\n\t}",
"public final void calledDuringRender() {\n calledEveryFrame();\n numFrames++;\n }",
"@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\twhile(!gpt.done);\r\n\t\t\t\t\t\t\t\t\tx.task().post(new Runnable(){\r\n\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\t\tgotoLiveView(pattern,sound_cache);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}",
"@Override\n\tpublic void run() {\n\t\twhile (runFlag) {\n//\t\t\tSystem.out.println(\"\");\n\t\t\ttry {\n\t\t\t\tThread.sleep(30);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tCanvas canvas = null;\n\t\t\ttry {\n\t\t\t\tcanvas = holder.lockCanvas();\n\t\t\t\tDataInfo.canvas = canvas;\n\t\t\t\t\n\t\t\t\t// 画出,移动人物\n\t\t\t\tDataInfo.fish.draw(canvas);\n\t\t\t\t\n\t\t\t\t\n//\t\t\t\tif(GameData.BACKPRESS){\n//\t\t\t\t\treturn ;\n//\t\t\t\t}\n\t\t\t\t\n\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\n\t\t\t} finally {\n\t\t\t\tif (canvas != null)\n\t\t\t\t\tholder.unlockCanvasAndPost(canvas);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void draw(GraphicsContext gc) {\n\t\tif (frameTick > 30) {\n\t\t\tframeTick = 0;\n\t\t\tframeState = (frameState + 1) % 2;\n\t\t}\n\t\tgc.drawImage(imageFrame.get(frameState), position.first - GameCanvas.getCurrentInstance().getStartX(),\n\t\t\t\tposition.second);\n\t\tframeTick++;\n\t}",
"@Override\n\tpublic void run() {\n\t\twhile (threadFlag) {\n\t\t\tlong startTime = System.currentTimeMillis();\n\t\t\tdrawSelf();\n\t\t\tlong endTime = System.currentTimeMillis();\n\t\t\ttry {\n\t\t\t\tif (endTime - startTime < 500)\n\t\t\t\t\tThread.sleep(500 - (endTime - startTime));\n\t\t\t} catch (InterruptedException err) {\n\t\t\t\terr.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void draw() {\n\n\t}",
"@Override\n\tpublic void draw() {\n\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"public void run() {\n\n renderingForce = true;\n //file.play();\n\n\n if (haplyBoard.data_available()) {\n /* GET END-EFFECTOR STATE (TASK SPACE) */\n widgetOne.device_read_data();\n\n angles.set(widgetOne.get_device_angles()); \n posEE.set(widgetOne.get_device_position(angles.array()));\n posEE.set(posEE.copy().mult(200));\n }\n\n s.setToolPosition(edgeTopLeftX+worldWidth/2-(posEE).x, edgeTopLeftY+(posEE).y-7); \n\n\n s.updateCouplingForce();\n fEE.set(-s.getVirtualCouplingForceX(), s.getVirtualCouplingForceY());\n fEE.div(100000); //dynes to newtons\n\n torques.set(widgetOne.set_device_torques(fEE.array()));\n widgetOne.device_write_torques();\n\n world.step(1.0f/1000.0f);\n\n\n checkSplat();\n\n renderingForce = false;\n }",
"@Override\n protected void processLogic() {\n mBitmap = Bitmap.createBitmap(SystemUtils.getScreenWidth(), SystemUtils.getScreenHeight(), Config.ARGB_8888);\n mCanvas = new Canvas(mBitmap);\n mCanvas.drawColor(Color.WHITE);\n ivGraffit.setImageBitmap(mBitmap);\n mPaint = new Paint();\n mPaint.setColor(Color.GREEN);\n // 设置线宽\n mPaint.setStrokeWidth(15);\n mPaint.setAntiAlias(true);\n\n }",
"void update() {\n rectToBeDrawn = new Rect((frameNumber * frameSize.x)-1, 0,(frameNumber * frameSize.x + frameSize.x) - 1, frameSize.x);\n\n //now the next frame\n frameNumber++;\n\n //don't try and draw frames that don't exist\n if(frameNumber == numFrames){\n frameNumber = 0;//back to the first frame\n }\n }",
"public int executeFrame() {\n\t\t// Run one frame. This takes the time stamp marking the end of the frame\r\n\t\t// and then processes events for that frame retroactively. This method\r\n\t\t// has\r\n\t\t// the advantage of flexibility, especially if the frame rate\r\n\t\t// fluctuates.\r\n\t\t// However it is always a little behind, because it can't compute the\r\n\t\t// frame length until the end of the frame is reached. With a fixed\r\n\t\t// known\r\n\t\t// frame rate you could optimize things a bit and make the start/end\r\n\t\t// times\r\n\t\t// correspond exactly with real time.\r\n\t\t//\r\n\t\tm_clock.beginFrame();\r\n\t\t// long started = m_clock.GetSystem();\r\n\r\n\t\t//\r\n\t\t// Execute any time-based tasks\r\n\t\t//\r\n\t\t// (1) Pop the next task off the list. Since the list is always\r\n\t\t// sorted, the first item in the list is always the next task.\r\n\t\t// (2) Execute it and update times\r\n\t\t// (3) If it's expired, delete it\r\n\t\t// Otherwise, insert it into the list in its new position\r\n\t\t//\r\n\t\tTaskInfo pTaskInfo = null;\r\n\t\tTaskInfo save = m_pTaskList;\r\n\t\tpTaskInfo = getNextTimeTask(pTaskInfo);\r\n\t\twhile (pTaskInfo != null) {\r\n\t\t\tm_clock.advanceTo(pTaskInfo.time.next);\r\n\r\n\t\t\tpTaskInfo.pTask.execute(pTaskInfo.id, m_clock.getTime(), pTaskInfo.pUser);\r\n\t\t\tpTaskInfo.time.last = pTaskInfo.time.next;\r\n\t\t\tpTaskInfo.time.next += pTaskInfo.time.period;\r\n\t\t\tpTaskInfo = getNextTimeTask(pTaskInfo);\r\n\t\t}\r\n\t\tm_pTaskList = save;\r\n\t\tpTaskInfo = m_pTaskList;\r\n\t\twhile (pTaskInfo != null) {\r\n\r\n\t\t\tif (pTaskInfo.time.duration == 0 || pTaskInfo.time.duration >= pTaskInfo.time.next) {\r\n\t\t\t\t// re-insert into list with updated time\r\n\t\t\t\t// InsertTimeTask(pTaskInfo);\r\n\t\t\t} else {\r\n\t\t\t\t// task is expired, delete it\r\n\t\t\t\t// printf(\"Sched: Expired %d\\n\",pTaskInfo->id);\r\n\t\t\t\t// delete pTaskInfo;\r\n\t\t\t\tterminate(pTaskInfo.id);\r\n\t\t\t}\r\n\t\t\tpTaskInfo = pTaskInfo.pNext;\r\n\t\t}\r\n\r\n\t\t//\r\n\t\t// Advance simulation clock to end of frame\r\n\t\t//\r\n\t\tm_clock.advanceToEnd();\r\n\r\n\t\t//\r\n\t\t// Now execute all frame tasks in round-robin fashion.\r\n\t\t// Frame tasks always execute at the end of the frame just\r\n\t\t// before rendering. A priority scheme could be used to\r\n\t\t// control sequence. It would be more efficient to keep the\r\n\t\t// list sorted, the same as with time tasks (exe\r\n\t\t//\r\n\t\tsave = m_pFrameList;\r\n\t\tpTaskInfo = m_pFrameList;\r\n\t\tpTaskInfo = getNextFrameTask(pTaskInfo);\r\n\t\t// TaskInfo * pPrev = NULL;\r\n\t\twhile (pTaskInfo != null) {\r\n\t\t\tpTaskInfo.pTask.execute(pTaskInfo.id, m_clock.getFrame(), pTaskInfo.pUser);\r\n\t\t\tpTaskInfo.time.last = pTaskInfo.time.next;\r\n\t\t\tpTaskInfo.time.next += pTaskInfo.time.period;\r\n\t\t\tpTaskInfo = getNextFrameTask(pTaskInfo);\r\n\t\t}\r\n\t\tm_pFrameList = save;\r\n\t\t// 检测是否有到期的任务\r\n\t\tpTaskInfo = m_pFrameList;\r\n\t\twhile (pTaskInfo != null) {\r\n\t\t\tif (pTaskInfo.time.duration == 0 || pTaskInfo.time.duration >= pTaskInfo.time.next) {\r\n\t\t\t\t// re-insert into list with updated time\r\n\t\t\t\t// InsertFrameTask(pTaskInfo);\r\n\t\t\t} else {\r\n\t\t\t\t// task is expired, delete it\r\n\t\t\t\t// printf(\"Sched: Expired %d\\n\",pTaskInfo->id);\r\n\t\t\t\t// delete pTaskInfo;\r\n\t\t\t\tterminate(pTaskInfo.id);\r\n\t\t\t}\r\n\t\t\tpTaskInfo = pTaskInfo.pNext;\r\n\t\t}\r\n\t\tm_pFrameList = save;\r\n\t\t//\r\n\t\t// render\r\n\t\t//\r\n\t\tif (renderTask.pTask != null) {\r\n\t\t\trenderTask.pTask.execute(renderTask.id, m_clock.getFrame(), renderTask.pUser);\r\n\t\t}\r\n\r\n\t\t//\r\n\t\t// here is where we could do idle processing or load balancing\r\n\t\t//\r\n\t\t// long elapsed = m_clock.GetSystem() - started;\r\n\t\t// long frameLength = m_clock.GetFrameEnd() - m_clock.GetFrameStart();\r\n\t\t// printf(\"Busy %u ms, idle %u ms\\n\", elapsed, frameLength - elapsed);\r\n\r\n\t\t//\r\n\t\t// If any tasks are terminated during execution, it is easier to leave\r\n\t\t// them in the list until we're finished iterating through it, then\r\n\t\t// sweep\r\n\t\t// them out later.\r\n\t\t//\r\n\t\t// printf(\"EXEC END\\n\");\r\n\t\tfor (Long i : queue) {\r\n\t\t\tterminate(i);\r\n\t\t}\r\n\t\tsweepGarbage();\r\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic void onDrawFrame(GL10 gl) {\n\t\tLibNative.render();\n\t}",
"@Override\n\tpublic void Draw(GL gl, GLU glu, int frame, double dt) {\n\t\t//DrawOval(gl, 0,0, 1,0, 0, 0);\n\n\t\tDrawBraid(gl, x_Start * 100, y_Start * 100, 1, 0, 0, 0);\n\n\n\t}",
"@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\twhile(!(gst.done&&gpt.done));\r\n\t\t\t\t\t\t\t\t\tx.task().post(new Runnable(){\r\n\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\t\tgotoLiveView(pattern,gst.resultFile);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}",
"public void draw() {\n\t\tsuper.repaint();\n\t}",
"public void dispatchDraw(Canvas canvas) {\n int width = getWidth();\n int i = this.f20583s;\n m25388b(canvas, width, i);\n m25389c(canvas, width, i);\n mo30698a(canvas, width, i);\n super.dispatchDraw(canvas);\n }"
] | [
"0.6714947",
"0.669213",
"0.6597675",
"0.64802915",
"0.6408557",
"0.63707733",
"0.6303321",
"0.62858796",
"0.6276196",
"0.6261857",
"0.62090856",
"0.6194878",
"0.61564696",
"0.615366",
"0.6144387",
"0.61091834",
"0.60954094",
"0.6069446",
"0.60686547",
"0.60660243",
"0.60648495",
"0.6063264",
"0.6060539",
"0.60492826",
"0.6018038",
"0.60163605",
"0.5995449",
"0.59904325",
"0.5989715",
"0.598824",
"0.59848666",
"0.5942149",
"0.5907714",
"0.58998954",
"0.58956265",
"0.58921117",
"0.58831775",
"0.58776623",
"0.5855026",
"0.584871",
"0.58323723",
"0.581113",
"0.58094954",
"0.5808386",
"0.5808063",
"0.58040506",
"0.5797455",
"0.5797455",
"0.57885855",
"0.578459",
"0.5778672",
"0.5778168",
"0.577751",
"0.5769315",
"0.57647085",
"0.5752207",
"0.57388633",
"0.5737849",
"0.57317084",
"0.57296926",
"0.57277673",
"0.5727603",
"0.5727059",
"0.5719556",
"0.5717522",
"0.57153654",
"0.5709049",
"0.57050353",
"0.5701888",
"0.57009196",
"0.5694697",
"0.5688197",
"0.5686604",
"0.5682974",
"0.56771386",
"0.5675175",
"0.5668468",
"0.56643015",
"0.56628543",
"0.5660223",
"0.56559694",
"0.56540793",
"0.56450355",
"0.5644672",
"0.56416273",
"0.5628619",
"0.5624959",
"0.5622259",
"0.5622259",
"0.56209296",
"0.56209296",
"0.5618517",
"0.56178313",
"0.5613255",
"0.55979145",
"0.5597269",
"0.5593263",
"0.5591087",
"0.55892706",
"0.5574703"
] | 0.7705406 | 0 |
Make the onDrawFrame sleep for a duration. | protected void sleepOnDrawFrame(final long duration) {
runOnDrawFrame(new ResultRunnable() {
@Override
public Object run() {
try {
Thread.sleep(duration);
} catch (InterruptedException e) {
e.printStackTrace();
}
return null;
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void doOneFrame(DrawSurface d, double dt) {\r\n\r\n gameScreen.drawAllOn(d);\r\n d.setColor(COLOR);\r\n d.drawText(d.getWidth() / 2, d.getHeight() / 2, this.countFrom + \"...\", 32);\r\n\r\n if (this.countFrom < 3) {\r\n this.sleeper.sleepFor(this.displayTime);\r\n }\r\n\r\n if (this.countFrom == 0) {\r\n this.stop = true;\r\n }\r\n\r\n this.countFrom--;\r\n }",
"public void doOneFrame(DrawSurface d, double dt) {\n this.gameScreen.drawAllOn(d);\n if (this.counterCurrent > 0) {\n d.setColor(Color.RED);\n d.drawText(d.getWidth() / 2, d.getHeight() / 2, Integer.toString(this.counterCurrent), 50);\n\n }\n if (this.counterCurrent != this.countFrom) {\n sleeper.sleepFor((long) ((this.numOfSeconds / this.countFrom) * 1000));\n }\n this.counterCurrent--;\n\n }",
"void delayForDesiredFPS(){\n delayMs=(int)Math.round(desiredPeriodMs-(float)getLastDtNs()/1000000);\n if(delayMs<0) delayMs=1;\n try {Thread.currentThread().sleep(delayMs);} catch (java.lang.InterruptedException e) {}\n }",
"void doOneFrame(DrawSurface d, double dt);",
"@Override\n public void run() {\n while (threadFlag) {\n long startTime = System.currentTimeMillis();\n drawSelf();\n long endTime = System.currentTimeMillis();\n try {\n if (endTime - startTime < 500)\n Thread.sleep(500 - (endTime - startTime));\n } catch (InterruptedException err) {\n err.printStackTrace();\n }\n }\n }",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry{\n\t\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tanimDraw.stop();\n\t\t\t\t\tanimDraw2.stop();\n\t\t\t\t\thandler.sendMessage(handler.obtainMessage());\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry{\t\t\t\t\t\t\n\t\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tanimDraw.stop();\n\t\t\t\t\tanimDraw2.stop();\t\t\t\t\n\t\t\t\t\thandler2.sendMessage(handler2.obtainMessage());\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry{\n\t\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tanimDraw.stop();\n\t\t\t\t\tanimDraw2.stop();\t\t\t\t\n\t\t\t\t\thandler3.sendMessage(handler3.obtainMessage());\n\t\t\t\t}",
"public void sleep()\r\n\t{\r\n\t\tif (regulate)\r\n\t\t{\r\n\t\t\tDisplay.sync(fps);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void run() {\n\t\twhile (threadFlag) {\n\t\t\tlong startTime = System.currentTimeMillis();\n\t\t\tdrawSelf();\n\t\t\tlong endTime = System.currentTimeMillis();\n\t\t\ttry {\n\t\t\t\tif (endTime - startTime < 500)\n\t\t\t\t\tThread.sleep(500 - (endTime - startTime));\n\t\t\t} catch (InterruptedException err) {\n\t\t\t\terr.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void onDrawFrame(final GL10 gl) {\n Moin2dJni.nativeDraw();\n\n\n\t\t/*\n\t\t// fps controlling\n\t\tif (interval < Cocos2dxRenderer.sAnimationInterval) {\n\t\t\ttry {\n\t\t\t\t// because we render it before, so we should sleep twice time interval\n\t\t\t\tThread.sleep((Cocos2dxRenderer.sAnimationInterval - interval) / Cocos2dxRenderer.NANOSECONDSPERMICROSECOND);\n\t\t\t} catch (final Exception e) {\n\t\t\t}\n\t\t}\n\n\t\tthis.mLastTickInNanoSeconds = nowInNanoSeconds;\n\t\t*/\n }",
"@Override\n public void run() {\n drawComponents();\n // Ve lai sau 1p\n drawComponentsHandler.postDelayed(drawComponentsRunnable, 60000);\n }",
"private void waitFPS() {\n try {\n Thread.sleep((int) (1000.0f / 60.0f));\n } catch (InterruptedException e) {\n logger.error(\"Unable to wait some milli's !\", e);\n }\n }",
"private void emulateDelay() {\n try {\n Thread.sleep(700);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public void overDraw() {\r\n\t\t\r\n\t\tisDrawCalled = false;\r\n\t\t\r\n\t\tLog.d(\"core\", \"Scheduler: All step done in \" + \r\n\t\t\t\t(System.currentTimeMillis() - logTimerMark) + \" ms;\");\r\n\t\t\r\n\t\tint delay = 3;\r\n\t\tstartWork(delay);\r\n\t}",
"@Override\n protected void onDraw(Canvas canvas) {\n\n // Draw the board\n backgCalculating.draw(canvas, displayArea, centralBall);\n\n // Delay\n try {\n Thread.sleep(30);\n } catch (InterruptedException e) {}\n\n invalidate(); // Force a re-draw\n }",
"@Override\n public void run() {\n long startTime = System.currentTimeMillis();\n\n //Animation loop.\n while (Thread.currentThread() == animatorThread) {\n //Advance the animation frame.\n frameNumber++;\n repaint();\n //Delay depending on how far we are behind.\n try {\n startTime += delay;\n Thread.sleep(Math.max(0,\n startTime - System.currentTimeMillis()));\n } catch (InterruptedException e) {\n break;\n }\n }\n }",
"private void DisplaySleep(){\n\n try {\n TimeUnit.SECONDS.sleep(1);\n }\n catch(InterruptedException e){}\n }",
"private void sleep() {\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public void setDelay(double clock);",
"private void waitConstant() {\r\n \t\tlong\tlwait = CL_FRMPRDAC;\r\n \t\t// drawing is active?\r\n \t\tif(m_fHorzShift == 0 && m_lTimeZoomStart == 0\r\n \t\t\t\t&& GloneApp.getDoc().isOnAnimation() == false)\r\n \t\t\tlwait = CL_FRMPRDST;\t\t// stalled\r\n \r\n \t\t// make constant fps\r\n \t\t// http://stackoverflow.com/questions/4772693/\r\n \t\tlong\tldt = System.currentTimeMillis() - m_lLastRendered;\r\n \t\ttry {\r\n \t\t\tif(ldt < lwait)\r\n \t\t\t\tThread.sleep(lwait - ldt);\r\n \t\t} catch (InterruptedException e) {\r\n \t\t\te.printStackTrace();\r\n \t\t}\r\n \t}",
"public void run() {\n\t// Remember the starting time\n\tlong tm = System.currentTimeMillis();\n\twhile (Thread.currentThread() == animator) {\n\t // Display the next frame of animation.\n\t repaint();\n\n\t // Delay depending on how far we are behind.\n\t try {\n\t\ttm += delay;\n\t\tThread.sleep(Math.max(0, tm - System.currentTimeMillis()));\n\t } catch (InterruptedException e) {\n\t\tbreak;\n\t }\n\n\t // Advance the frame\n\t frame++;\n\t}\n }",
"private void delay() {\n\ttry {\n\t\tThread.sleep(500);\n\t} catch (InterruptedException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\t\n\t}",
"@Override\n protected void sleep(int milliseconds) {\n super.sleep(milliseconds);\n }",
"@Override\n\tpublic void run() {\n\t\twhile(!Thread.currentThread().isInterrupted()){\n\t\t\ttry{\n\t\t\tThread.sleep(100);\n\t\t\t}\n\t\t\tcatch(InterruptedException e){\n\t\t\t\tThread.currentThread().interrupt();\n\t\t\t}\n\t\t\t\n\t\t\tpostInvalidate();\n\t\t}\n\t}",
"private void pause() throws InterruptedException {\n component.repaint();\n Thread.sleep(delay);\n }",
"public void doOneFrame(DrawSurface d, double dt) {\n d.setColor(Color.BLACK);\n d.fillRectangle(0, 0, d.getWidth(), d.getHeight());\n\n d.setColor(Color.RED);\n d.drawText(19, 41, \"High Scores\", 40);\n\n d.setColor(Color.BLUE);\n d.drawText(20, 40, \"High Scores\", 40);\n\n d.drawText(100, 120, \"Player Name\", 30);\n d.drawText(500, 120, \"Score\", 30);\n\n d.setColor(Color.RED);\n d.drawText(98, 118, \"Player Name\", 30);\n d.drawText(498, 118, \"Score\", 30);\n\n d.setColor(Color.BLUE);\n d.drawLine(100, 131, 700, 131);\n\n d.setColor(Color.YELLOW);\n for (int i = 0; i < highScoresTable.getHighScores().size(); i++) {\n ScoreInfo scoreInfo = highScoresTable.getHighScores().get(i);\n d.drawText(110, (i * 40) + 155, scoreInfo.getName(), 20);\n d.drawText(510, (i * 40) + 155, \"\" + scoreInfo.getScore() + \"\", 20);\n }\n\n\n d.setColor(Color.GREEN);\n d.drawText(202, 550, \"Press space to continue\", 32);\n d.setColor(Color.GRAY);\n d.drawText(200, 550, \"Press space to continue\", 32);\n\n }",
"@Override\n public void onDurationUs(long durationUs) {\n sleep();\n isDurationSet = true;\n }",
"public void moveDelay ( )\r\n\t{\r\n\t\ttry {\r\n\t\t\tThread.sleep( 1000 );\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void run() {\n if (color != blinkColor && delay > 1) {\n delay--;\n blink(blinkColor);\n } else {\n blink(color);\n if (color != blinkColor) {\n color = blinkColor;\n }\n }\n }",
"public void sleep(int duration) {\n\t\t\r\n\t\t_height = _height + duration * 1.01; // math for the variables(value) of human height\r\n\t\tSystem.out.println(_fullname + \" is finished to sleep, his height is: \" + _height);\r\n\r\n\t\t\r\n\t}",
"public void testLeds(int duration) {\n\t\tledBlinking.startThread();\n\t\ttry {\n\t\t\tThread.sleep(duration);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tstopBlinking();\n\t}",
"public void onTick(long millisUntilFinished){\n seconds=seconds-1000;\n timeUpText.setText(\"seconds remaining: \" + millisUntilFinished / 1000);\n drawingCanvas.setSeconds(seconds, originalSecs);\n drawingCanvas.invalidate();\n }",
"public void doOneFrame(DrawSurface d, double dt) {\n //background\n d.setColor(Color.white);\n d.drawRectangle(0, 0, d.getWidth(), d.getHeight());\n if (this.isWin) {\n d.setColor(Color.BLACK);\n d.drawText(40, d.getHeight() / 2, \"You Win! Your score is \" + this.score.getValue(), 50);\n }\n if (!this.isWin) {\n d.setColor(Color.BLACK);\n d.drawText(40, d.getHeight() / 2, \"Game Over. Your score is \" + this.score.getValue(), 50);\n }\n if (this.keyboardSensor.isPressed(KeyboardSensor.SPACE_KEY)) {\n this.shouldstop = true;\n }\n }",
"public void doOneFrame(DrawSurface d, double dt) {\n // operate timepassed function on each sprite\n this.sprites.notifyAllTimePassed(dt);\n // draw all objects on drawsurface\n this.sprites.drawAllOn(d);\n // cover the outline of the sideblocks with dark gray.\n d.setColor(Color.DARK_GRAY);\n d.drawRectangle(775, 25, 25, 576);\n d.drawRectangle(0, 25, 25, 576);\n // if the player has no lives left or he cleared the level, make the loop stop running.\n if ((this.blockCounter.getValue() == 0) || (this.ballCounter.getValue() == 0)) {\n this.running = false;\n }\n //if the user pressed \"p\", pause the game and show the pausescreen animation.\n //when user presses space key, we go back to the game animation.\n if (this.keyboard.isPressed(\"p\")) {\n PauseScreen pause = new PauseScreen(this.keyboard);\n Animation pauseStoppable = new KeyPressStoppableAnimation(this.keyboard,\n KeyboardSensor.SPACE_KEY, pause);\n this.runner.run(pauseStoppable);\n }\n }",
"public void draw() {\n\t //FrameRate should only 5 when there is no activity. Otherwise, 60\n if (!EventQueue.getInstance().isTiccing() && System.currentTimeMillis() - lastActive >= 300) {\n noLoop();\n setFrameRate(5);\n println(\"no draw activity\");\n } else{\n \t setFrameRate(60);\n }\n background(255);\n //Process menu data at the beginning\n // Menu menuSing = Menu.getInstance();\n // if ((boolean) menuSing.getControllerValue(\"Button0\")) {\n // KeyMap.getInstance().run('q');\n // }\n\n pushMatrix();\n //Enable scrolling\n translate(0, verticalScroll);\n StringManager.getInstance().draw();\n\n popMatrix();\n\n //if (frameCount % 10 == 0)System.out.println(frameRate);\n\n //Draw menu after\n Menu.getInstance().draw();\n }",
"@Override\r\n public void timePassed(double dt) {\r\n return;\r\n }",
"public abstract void animation(double seconds);",
"@Override\n\tpublic void run() {\n\t\twhile (runing) {\n\t\t\tdraw(canvas, paint);\n\t\t\ttry {\n\t\t\t\tThread.sleep(15);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}",
"private void sleep() {\n try {\n for(long count = 0L; this.DATA_STORE.isButtonPressed() && count < this.sleepTime; count += 20L) {\n Thread.sleep(20L);\n }\n } catch (InterruptedException iEx) {\n // For now, InterruptedException may be ignored if thrown.\n }\n\n if (this.sleepTime > 20L) {\n this.sleepTime = (long)((double)this.sleepTime / 1.3D);\n }\n }",
"@Override\n\tpublic void run() {\n\t\tif (state != 3) {\n\t\t\tthis.requestFocus();\n\t\t\tlong lastTime = System.nanoTime();\n\t\t\tdouble amountOfTicks = 60.0;\n\t\t\tdouble ns = 1000000000 / amountOfTicks;\n\t\t\tdouble delta = 0;\n\t\t\tlong timer = System.currentTimeMillis();\n\t\t\tint frames = 0;\n\t\t\twhile (isRunning) {\n\n\t\t\t\tlong now = System.nanoTime();\n\n\t\t\t\tdelta += (now - lastTime) / ns;\n\t\t\t\tlastTime = now;\n\n\t\t\t\twhile (delta >= 1) {\n\t\t\t\t\ttick();\n\t\t\t\t\tdelta--;\n\t\t\t\t}\n\t\t\t\trender();\n\t\t\t\tframes++;\n\n\t\t\t\tif (System.currentTimeMillis() - timer > 1000) {\n\t\t\t\t\ttimer += 1000;\n\t\t\t\t\tframes = 0;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tstop();\n\n\t\t}\n\n\t}",
"@Override\n public void run() {\n try {\n while (true) {\n frame.updateState();\n Thread.sleep(1000);\n }\n } catch (Exception e) {\n // e.printStackTrace();\n }\n }",
"private void blink() {\r\n\r\n\t\t_timer = new Timer(50, new TimerListener());\r\n\t\t_timer.start();\r\n\r\n\r\n\t}",
"@Override\r\n public void timePassed(double dt) {\r\n\r\n }",
"@Override\r\n public void timePassed(double dt) {\r\n\r\n }",
"private static void addDelay() {\n try {\n Thread.sleep(4000);\n } catch (InterruptedException ignored) {\n }\n }",
"public void onTick(long millisUntilFinished){\n seconds=seconds-1000;\n timeUpText.setText(\"seconds remaining: \" + seconds / 1000);\n Log.d(\"seconds\", String.format(\"%d\", seconds/1000));\n drawingCanvas.setSeconds(seconds, originalSecs);\n drawingCanvas.invalidate();\n }",
"private Sleep(Duration duration) {\n this.duration = duration;\n }",
"public void run() {\n while (true) {\n animate();\n repaint();\n \n \n double seconds = .04; //time that 1 frame takes.\n int miliseconds = (int) (1000.0 * seconds);\n try {\n Thread.sleep(miliseconds);\n } catch (InterruptedException e) {\n }\n }\n }",
"public void delay(){\n try {\n Thread.sleep((long) ((samplingTime * simulationSpeed.factor)* 1000));\n } catch (InterruptedException e) {\n started = false;\n }\n }",
"private void pause() {\n pause(myDelay);\n }",
"@Override\n\t\tpublic void run()\n\t\t{\n\t\t\twhile (true)\n\t\t\t{\n\t\t\t\trepaint();\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tsleep(20);\n\t\t\t\t}\n\t\t\t\tcatch (InterruptedException ie)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public void run()\n {\n // Remember the starting time\n long tm = System.currentTimeMillis();\n while (Thread.currentThread() == animator)\n {\n // Display the next frame of animation.\n update();\n try\n {\n tm += delay;\n Thread.sleep(Math.max(0, tm - System.currentTimeMillis()));\n }\n catch (InterruptedException e)\n {\n break;\n }\n // Advance the frame\n frame++;\n }\n }",
"@Override\n\tpublic void run() {\n\t\twhile (true){\n\t\t\ttry {\n\t\t\t\tThread.sleep(200);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\ttime ++;\n\t\t\tthis.repaint();\n\t\t}\n\t}",
"private void changeDelay() {\n delay = ((int) (Math.random() * 10000) + 1000) / MAX_FRAMES;\n }",
"void sleep()\r\n\t{\r\n\t\t\r\n\t}",
"public void gameLoop(double durationSinceLastFrame){\n // Ini dipanggil oleh Avatar Duel pada Animation Timer pada handle()\n // Reference: (1) - Cari bagian animation (bisa dipake buat yang bukan animasi juga)\n this.gameDrawer.drawGame(durationSinceLastFrame);\n }",
"private void sleep()\n {\n try {\n Thread.sleep(Driver.sleepTimeMs);\n }\n catch (InterruptedException ex)\n {\n\n }\n }",
"public void render(int gameSpeed){\n counterFrames++;\n if (counterFrames*gameSpeed*1000 >= (60 * (delay))){\n setDone();\n }\n }",
"@Override\n\tpublic void draw() {\n\t\tdouble t = System.currentTimeMillis();\n\t\tdouble dt = t - currentTime;\n\t\tcurrentTime = t;\n\n\t\t// Fetch current animation\n\t\tBaseAnimation animation = AnimationManager.getInstance().getCurrentAnimation();\n\t\tif (animation == null) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Draw animation frame with delta time\n\t\tanimation.draw(dt);\n\n\t\t// Send image to driver\n\t\tdriver.displayImage(animation.getImage());\n\n\t\t// Display previews\n\t\tbackground(0);\n\t\tif (ledPreviewEnabled) {\n\t\t\timage(preview.renderPreview(animation.getImage()), 0, 0);\n\t\t} else {\n\t\t\ttextAlign(CENTER);\n\t\t\ttextSize(16);\n\t\t\ttext(\"Press W to preview the animation.\", previewRect.width/2, previewRect.height/2);\n\t\t}\n\t\t\n\t\tif (sourcePreviewEnabled && BaseCanvasAnimation.class.isAssignableFrom(animation.getClass())) {\n\t\t\timage(((BaseCanvasAnimation) animation).getCanvasImage(), 0, 0);\n\t\t} else if (sourcePreviewEnabled) {\n\n\t\t\t// Copy animation image (else the animation image gets resized)\n\t\t\t// and scale it for better visibility\n\t\t\tPImage sourcePreview = animation.getImage().get();\n\t\t\tsourcePreview.resize(130, 405);\n\n\t\t\timage(sourcePreview, 0, 0);\n\t\t}\n\n\t}",
"public void timePassed(double dt) {\r\n this.moveOneStep(dt);\r\n }",
"private void drawSleepTimes(Canvas canvas) {\n if (mSleepTimePairs == null) {\n return;\n }\n\n for (Pair<Date, Date> pair : mSleepTimePairs) {\n float beginPos = calculateTimePosition(pair.first);\n float endPos = calculateTimePosition(pair.second);\n canvas.drawRect(beginPos, 0, endPos, scaleLinePosition, sleepTimePaint);\n }\n }",
"public void paint()\n {\n try { Thread.sleep(SPEED); } \n catch (Exception e) { }\n \n this.printMap();\n }",
"@Override\n\tpublic void sleep() {\n\t\t\n\t}",
"protected void pause() {\n sleep(300);\n }",
"public void paint()\n {\n try { Thread.sleep(SPEED); } \n catch (Exception e) { }\n \n this.printMap();\n }",
"public void run(){\n this.requestFocus();\n long lastTime = System.nanoTime();\n double amountOfTicks = 60.0;\n double ns = 1000000000 / amountOfTicks;\n double delta = 0;\n long timer = System.currentTimeMillis();\n int frames = 0;\n\n while(isRunning){\n long now = System.nanoTime();\n delta += (now - lastTime) / ns;\n lastTime = now;\n while(delta >= 1){\n tick();\n delta--;\n }\n render();\n frames++;\n\n if(System.currentTimeMillis() - timer > 1000){\n timer += 1000;\n frames = 0;\n }\n }\n stop();\n }",
"public void run() \n \t{\n \t\twhile(m_isDrawing)\n \t\t{\n \t\t\tCanvas canvas = m_surface.lockCanvas();\n \t\t\t\n \t\t\ttry\n \t\t\t{\n \t\t\t\t// clear canvas\n \t\t\t\tcanvas.drawColor(Color.WHITE);\n \t\t\t\t\n \t\t\t\t// draw stuffs\n \t\t\t\tm_grid.Draw(canvas, m_camera);\n \t\t\t}\n \t\t\tfinally\n \t\t\t{\n \t\t\t\tm_surface.unlockCanvasAndPost(canvas);\n \t\t\t}\n \t\t\t\n \t\t\t// then sleep for a bit\n \t\t\ttry \n \t\t\t{\n \t\t\t\tThread.sleep((long) (1000.0f / FPS));\n \t\t\t} \n \t\t\tcatch (InterruptedException e) \n \t\t\t{\n \t\t\t\t// Don't care, just log it and move on\n \t\t\t\tLog.w(TAG, \"Interrupted while sleeping!\");\n \t\t\t}\n \t\t}\n \t}",
"public void timePassed(double dt) {\n this.moveOneStep(dt);\n }",
"@Override\n\tpublic void draw(Canvas canvas) {\n\t\tif (hit && animTimer <= 100) {\n\t\t\tgraphicExt.draw(canvas);\n\t\t\tanimTimer++;\n\t\t\tif (animTimer == 100) {\n\t\t\t\tanimTimer = 0;\n\t\t\t\thit = false;\n\t\t\t}\n\t\t} else {\n\t\t\tgraphic.draw(canvas);\n\t\t}\n\t}",
"@Override\n public void run() {\n while (true) {\n long currentTime = System.nanoTime();\n\n draw();\n check(currentTime);\n }\n }",
"public void run() {\r\n\t\twhile (true) {\r\n\t\t\tanimate();\r\n\t\t\trepaint();\r\n\t\t\tdouble seconds = 0.02; //time that 1 frame takes.\r\n\t\t\tint miliseconds = (int)(1000.0 * seconds);\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(miliseconds);\r\n\t\t\t} catch (InterruptedException e) {}\r\n\t\t}\r\n\t}",
"void threadDelay() {\n saveState();\n if (pauseSimulator) {\n halt();\n }\n try {\n Thread.sleep(Algorithm_Simulator.timeGap);\n\n } catch (InterruptedException ex) {\n Logger.getLogger(RunBFS.class.getName()).log(Level.SEVERE, null, ex);\n }\n if (pauseSimulator) {\n halt();\n }\n }",
"@Override\r\n public void doOneFrame(DrawSurface d) {\n this.sprites.drawAllOn(d);\r\n this.sprites.notifyAllTimePassed();\r\n if (this.keyboard.isPressed(\"p\")) {\r\n Animation puseScreen = new PauseScreen(this.keyboard);\r\n this.runner.run(new KeyPressStoppableAnimation(puseScreen, this.keyboard, KeyboardSensor.SPACE_KEY));\r\n }\r\n if (this.remainingBlocks.getValue() == 0) {\r\n this.score.increase(100);\r\n this.running = false;\r\n\r\n }\r\n if (this.remainingBalls.getValue() == 0) {\r\n this.running = false;\r\n }\r\n }",
"public void run(){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(10L);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tupdateButtonBounds();\n\t\t\t\t}",
"private void draw() {\n\t\tgsm.draw(g);\n\t\tg.setColor(Color.WHITE);\n\t\tif (fps < 25)\n\t\t\tg.setColor(Color.RED);\n\t\tg.drawString(\"FPS: \" + fps, 10, 15);\n\t}",
"@Override\r\n\tpublic void run() {\n\t\twhile(true){\r\n\t\t\trepaint();\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(2000);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void run() {\n android.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_BACKGROUND);\n\n while (ok) {\n //perform canvas drawing\n if (!holder.getSurface().isValid()) {//if surface is not valid\n continue;//skip anything below it\n }\n\n Canvas c = holder.lockCanvas(); //Lock canvas, paint canvas, unlock canvas\n synchronized (holder) {\n long beginTime = System.currentTimeMillis();\n int framesSkipped = 0;\n // update game state\n this.updateCanvas();\n // render state to the screen\n // draws the canvas on the panel\n this.drawCanvas(c);\n // calculate how long did the cycle take\n long timeDiff = System.currentTimeMillis() - beginTime;\n // calculate sleep time\n int sleepTime = (int) (FRAME_PERIOD - timeDiff);\n if (sleepTime > 0) {\n // if sleepTime > 0 put to sleep for short period of time\n try {\n // send the thread to sleep for a short period\n // very useful for battery saving\n Thread.sleep(sleepTime);\n } catch (InterruptedException e) {\n }\n }\n\n //ADD THIS IF WE ARE DOING LOTS OF WORK\n //If sleeptime is greater than a frame length, skip a number of frames\n while (sleepTime < 0 && framesSkipped < MAX_FRAME_SKIPS) {\n // we need to catch up\n // update without rendering\n this.updateCanvas();\n // add frame period to check if in next frame\n sleepTime += FRAME_PERIOD;\n framesSkipped++;\n }\n\n holder.unlockCanvasAndPost(c);\n }\n }\n }",
"@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\twhile(flag == true){\n\t\t\t\t\n\t\t\t\tssinView.postInvalidate();\n\t\t\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(sleepTime);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public void timePassed(double dt) {\r\n moveOneStep(dt);\r\n }",
"public void regulateFramerate(){\n\t\tsleepTime = frameInterval - (System.currentTimeMillis()-lastDraw);\n\t\t\n\t\ttry {\n\t\t\tif(sleepTime > 0) {\n\t\t\t\tlong takeOne = sleepTime/2;\n\t\t\t\tThread.sleep(takeOne);\n\t\t\t\t\n\t\t\t\tif(capturedMouse && !mouseLeftScreen && !focusLost) {\n\t\t\t\t\tcurrentMouseX = MouseInfo.getPointerInfo().getLocation().x;\n\t\t\t\t\tcurrentMouseY = MouseInfo.getPointerInfo().getLocation().y; \n\t\t\t\t\t\n\t\t\t\t\tint deltaX = currentMouseX - centerScreenX;\n\t\t\t\t\tint deltaY = currentMouseY - centerScreenY;\n\t\t\t\t\n\t\t\t\t\tmouseX+=deltaX;\n\t\t\t\t\tmouseY+=deltaY;\n\t\t\t\t\t\n\t\t\t\t\tmyRobot.mouseMove(centerScreenX, centerScreenY);\n\t\t\t\t\t\n\t\t\t\t\tif(mouseX < 0)\n\t\t\t\t\t\tmouseX = 0;\n\t\t\t\t\tif(mouseX >= screen_width)\n\t\t\t\t\t\tmouseX = screen_width-1;\n\t\t\t\t\tif(mouseY < 0)\n\t\t\t\t\t\tmouseY = 0;\n\t\t\t\t\tif(mouseY >= screen_height)\n\t\t\t\t\t\tmouseY = screen_height-1;\n\t\t\t\t\t\n\t\t\t\t\tinputHandler.mouse_x = mouseX;\n\t\t\t\t\tinputHandler.mouse_y = mouseY;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(frameIndex %2 == 0 && frameIndex > 3){\n\t\t\t\t\tbf = doubleBuffer;\n\t\t\t\t\t//draw mouse cursor \n\t\t\t\t\ttheGameCursor.updateAndDraw(bufferScreen);\n\t\t\t\t\t\n\t\t\t\n\t\t\t\t}else if(frameIndex != 1 && frameIndex > 3){\n\t\t\t\t\tbf = doubleBuffer2;\n\t\t\t\t\t//draw mouse cursor \n\t\t\t\t\ttheGameCursor.updateAndDraw(buffer2Screen);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(frameIndex > 3)\n\t\t\t\t\tpanel.getGraphics().drawImage(bf, 0, 0, this);\n\t\t\t\t\n\t\t\t\tsleepTime = frameInterval - (System.currentTimeMillis()-lastDraw);\n\t\t\t\tif(sleepTime > 0) \n\t\t\t\t\tThread.sleep(sleepTime);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t} catch (InterruptedException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tlastDraw=System.currentTimeMillis();\n\t}",
"@Override\n\tpublic void Draw(GL gl, GLU glu, int frame, double dt) {\n\t\t//DrawOval(gl, 0,0, 1,0, 0, 0);\n\n\t\tDrawBraid(gl, x_Start * 100, y_Start * 100, 1, 0, 0, 0);\n\n\n\t}",
"public void sleep()\n\t{\n\t\ttry\n\t\t{\n\t\t\tThread.sleep(getMilliseconds());\n\t\t}\n\t\tcatch (InterruptedException e)\n\t\t{\n\t\t\t// ignore but return\n\t\t}\n\t}",
"public void step () {\r\n mySimulation.update((double) FRAMES_PER_SECOND / ONE_SECOND);\r\n // indirectly causes paint to be called\r\n repaint();\r\n }",
"@Override\n public native void delay(int ms);",
"@Override\n public void setup(){\n frameRate(60);\n noStroke();\n }",
"private void reactMain_region_digitalwatch_Display_glowing_GlowDelay() {\n\t\tif (timeEvents[5]) {\n\t\t\tnextStateIndex = 3;\n\t\t\tstateVector[3] = State.$NullState$;\n\n\t\t\ttimer.unsetTimer(this, 5);\n\n\t\t\tsCIDisplay.operationCallback.unsetIndiglo();\n\n\t\t\tnextStateIndex = 3;\n\t\t\tstateVector[3] = State.main_region_digitalwatch_Display_glowing_GlowOff;\n\t\t} else {\n\t\t\tif (sCIButtons.topRightPressed) {\n\t\t\t\tnextStateIndex = 3;\n\t\t\t\tstateVector[3] = State.$NullState$;\n\n\t\t\t\ttimer.unsetTimer(this, 5);\n\n\t\t\t\tsCIDisplay.operationCallback.setIndiglo();\n\n\t\t\t\tnextStateIndex = 3;\n\t\t\t\tstateVector[3] = State.main_region_digitalwatch_Display_glowing_GlowOn;\n\t\t\t}\n\t\t}\n\t}",
"private static void pause(int duration) {\n LOG.info(\"\\nlets go again!\\n\");\n sleep(duration);\n }",
"public void animate() throws InterruptedException {\n for (int x = 0; x < repeat; x++) {\n for (int i = 0; i < MAX_FRAMES; i++) {\n nextFrame();\n pause();\n }\n changeDelay();\n }\n }",
"public static void delay() {\n\n long ONE_SECOND = 1_000;\n\n try {\n Thread.sleep(ONE_SECOND);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic void sleeps() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void run() {\n\t\t\twhile(running) {\r\n\t\t\t\trepaint();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(100);\r\n\t\t\t\t}catch (InterruptedException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}",
"@Override\n\t\tpublic void run() {\n\t\t\twhile(true){\n\t\t\t\tfb.repaint();\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(600);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"private void simulateDelay(long millis) {\n try {\n Thread.sleep(millis);\n } catch (InterruptedException ignored) {\n }\n }",
"void update() {\n rectToBeDrawn = new Rect((frameNumber * frameSize.x)-1, 0,(frameNumber * frameSize.x + frameSize.x) - 1, frameSize.x);\n\n //now the next frame\n frameNumber++;\n\n //don't try and draw frames that don't exist\n if(frameNumber == numFrames){\n frameNumber = 0;//back to the first frame\n }\n }",
"public void timePassed(double dt) {\r\n // Currently- nothing\r\n }",
"private static void delay(int amount, int gameSize) {\n \n try {\n \n Thread.sleep(amount*3/(gameSize*gameSize));\n \n } catch(InterruptedException ex) {\n \n Thread.currentThread().interrupt();\n }\n }",
"public void doAnimateStep () {\n\t\tadvanceSimulation();\n\t\tpaint();\n\t}",
"public void frameForward()\n{\n stop();\n setTime(getTime() + getInterval());\n}",
"public static void sleepFor(long duration) {\n try {\n Thread.sleep(duration);\n } catch (InterruptedException e) {\n // There is nothing to be done here\n }\n }"
] | [
"0.706684",
"0.70559514",
"0.688302",
"0.680707",
"0.6628425",
"0.6608322",
"0.65106004",
"0.64660275",
"0.6439187",
"0.63070756",
"0.62218183",
"0.6211435",
"0.6195293",
"0.6180043",
"0.6154456",
"0.6107901",
"0.60878307",
"0.6008498",
"0.5992642",
"0.5989546",
"0.5981007",
"0.59700096",
"0.5963399",
"0.59558547",
"0.59489554",
"0.59392196",
"0.5928629",
"0.5918832",
"0.5907437",
"0.5900923",
"0.59000015",
"0.5894475",
"0.58786374",
"0.5878482",
"0.58609426",
"0.5850319",
"0.58467513",
"0.5832345",
"0.58316535",
"0.58174735",
"0.5816447",
"0.58156556",
"0.58116317",
"0.57908577",
"0.57908577",
"0.5787045",
"0.5774387",
"0.57699126",
"0.5754806",
"0.5750304",
"0.5738688",
"0.57327443",
"0.5728993",
"0.5728322",
"0.5723468",
"0.5723395",
"0.57055825",
"0.57051384",
"0.5704795",
"0.569604",
"0.569182",
"0.5691095",
"0.5680619",
"0.5675996",
"0.5670568",
"0.5666807",
"0.56570065",
"0.5653387",
"0.56489927",
"0.56456935",
"0.56412333",
"0.5630164",
"0.56287295",
"0.56230634",
"0.5622672",
"0.56113887",
"0.5604384",
"0.5603832",
"0.56028354",
"0.55985177",
"0.55859005",
"0.55849695",
"0.5573364",
"0.5560595",
"0.5559706",
"0.55445457",
"0.5542829",
"0.55349725",
"0.5529344",
"0.55229086",
"0.5522792",
"0.5515135",
"0.5511538",
"0.5509289",
"0.549623",
"0.5480292",
"0.547875",
"0.54775304",
"0.547531",
"0.5470369"
] | 0.8804215 | 0 |
Check that we have activity. Assert if not. | private void assertActivityNotNull() {
if (mActivity == null) {
mActivity = getActivity();
assertNotNull(mActivity);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testMessagesActivityNotNull(){\n assertNotNull(messagesActivity);\n }",
"@SmallTest\n public void testForActivity() {\n solo.assertCurrentActivity(\"Wrong activity\", WelcomeActivity.class);\n }",
"@Test\n public void homeActivityShouldNotBeNull() {\n assertThat(homeActivity).isNotNull();\n }",
"boolean isActivityNotValid(ExoSocialActivity activity, ExoSocialActivity comment) throws Exception;",
"public void testPreconditions() {\n assertNotNull(\"Maps Activity is null\", mapsActivity);\n }",
"public void testPreconditions() {\r\n assertNotNull(\"activity is null\", activity);\r\n assertNotNull(\"fragment is null\", fragment);\r\n }",
"@Test\n public void checkIfAddMeetingIsRunning() {\n onView(withId(R.id.add_meeting_activity)).perform(click());\n onView(withId(R.id.meeting_color)).perform(click());\n onView(withId(R.id.meeting_room)).perform(click());\n onView(withText(\"Salle DEUX\")).perform(click());\n onView(withId(R.id.meeting_topic)).perform(typeText(\"Mareu_2\"));\n onView(withId(R.id.date_btn)).perform(click());\n onView(withId(R.id.meeting_date)).perform();\n onView(withText(\"OK\")).perform(click());\n onView(withId(R.id.start_time_btn)).perform(click());\n onView(withId(R.id.meeting_start_time)).perform();\n onView(withText(\"OK\")).perform(click());\n onView(withId(R.id.end_time_btn)).perform(click());\n onView(withId(R.id.meeting_end_time)).perform();\n onView(withText(\"OK\")).perform(click());\n onView(withId(R.id.meeting_guests)).perform(typeText(\"[email protected] ; [email protected]\"));\n onView(withId(R.id.meeting_add_button)).check(matches(isDisplayed()));\n }",
"@Test\n public void testInitAllActivity() throws Exception {\n assertNotNull(mainActivity);\n assertNotNull(addItemActivity);\n assertNotNull(addToDBActivity);\n assertNotNull(listActivity);\n assertNotNull(listItemActivity);\n }",
"boolean isActivityExist(long activityId);",
"public void testPreConditions() {\n\t\tassertNotNull(activity);\n\t\tassertNotNull(mFragment);\n\t\tassertNotNull(mAdapter);\n\t\tassertTrue(mAdapter instanceof MensaListAdapter);\n\t}",
"@Test\n public void testGetActivityWithId_notFound() {\n UUID uuid = new UUID(0L, 0L);\n Activity resultActivity = activityStore.getActivityWithId(uuid);\n\n Assert.assertNull(resultActivity);\n }",
"protected void activeActivity() {\n\t\tLog.i(STARTUP, \"active activity\");\n\t\tcheckActiveActivity();\n\t}",
"@Test\n public void activityLaunch() {\n onView(withId(R.id.button_main)).perform(click());\n onView(withId(R.id.text_header)).check(matches(isDisplayed()));\n\n onView(withId(R.id.button_second)).perform(click());\n onView(withId(R.id.text_header_reply)).check(matches(isDisplayed()));\n }",
"private void assertEqulas(String string, String getCurrentActivity) {\n\t}",
"public static void validaContexto(Activity pActivity)\n\t{\n\t\tvrActivity = pActivity;\n\t}",
"@Test\n public void testLaunch(){\n assertNotNull(mActivity.findViewById(R.id.createAccountTextView));\n assertNotNull(mActivity.findViewById(R.id.createAccountButton));\n assertNotNull(mActivity.findViewById(R.id.nameEditText));\n assertNotNull(mActivity.findViewById(R.id.emailEditText));\n assertNotNull(mActivity.findViewById(R.id.passwordEditText));\n assertNotNull(mActivity.findViewById(R.id.passwordImageView));\n assertNotNull(mActivity.findViewById(R.id.emailImageView));\n assertNotNull(mActivity.findViewById(R.id.personImageView));\n assertNotNull(mActivity.findViewById(R.id.spinner2));\n assertNotNull(mActivity.findViewById(R.id.arrowImageView));\n assertNotNull(mActivity.findViewById(R.id.progressBar));\n assertNotNull(mActivity.findViewById(R.id.backButton));\n }",
"public void testCtor_NullActivityGraph() {\n try {\n new AddActionStateAction(state, null, manager);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }",
"@Test\n void invalidPLAYING() {\n getGame().start();\n getGame().start();\n verifyZeroInteractions(observer);\n assertThat(getGame().isInProgress()).isTrue();\n }",
"@Test(expectedExceptions = DataAccessException.class)\r\n public void testCreateNullActivity() {\r\n ActivityRecord record = new ActivityRecord();\r\n record.setActivity(null);\r\n record.setDistance(5);\r\n record.setTime(Long.MIN_VALUE);\r\n record.setUser(user);\r\n\r\n recordDao.create(record);\r\n }",
"private static boolean m33661d(Activity activity) {\n return !activity.isFinishing();\n }",
"public boolean addActivity(Activity act){\r\n return activities.add(act);\r\n }",
"@Test\n public void testSetupActuallyWorked() throws Exception {\n assertNotNull(successfulLoginActivity);\n assertNotNull(controller);\n assertEquals(EMAIL, successfulLoginActivity.getEmailText());\n assertEquals(PASSWORD, successfulLoginActivity.getPasswordText());\n }",
"@Test\n public void accuseFailTest() throws Exception {\n assertTrue(\"failure - accused status was not set to true\", target.isAccused());\n\n }",
"@Test\n public void homeActivityShouldHaveAHello() {\n View hello = homeActivity.findViewById(R.id.email_text_view_home);\n assertThat(hello).isNotNull();\n }",
"@Test\n public void openMessagesActivity() {\n }",
"private void assertRunningState() {\n Misc.checkArgument(this.state == State.STARTED || this.state == State.STOPPING,\n \"Replicate state must be STARTED or STOPPING.\");\n }",
"@Test\n public void myMeetingDetailsActivity_isLaunchedWhenWeClickOnAnItem() {\n // When perform a click on an item\n onView(withId(R.id.recyclerview)).perform(RecyclerViewActions.actionOnItemAtPosition(0, click()));\n // Then : MeetingDetailsActivity is launched\n onView(withId(R.id.activity_meeting_details));\n }",
"@Test\n @SmallTest\n @Feature(\"MultiWindow\")\n public void testTabbedActivityForIntentNoActivitiesAlive() {\n ChromeTabbedActivity activity1 = mActivityTestRule.getActivity();\n activity1.finishAndRemoveTask();\n\n Assert.assertEquals(\n \"ChromeTabbedActivity should be used as the default for external intents.\",\n ChromeTabbedActivity.class,\n MultiWindowUtils.getInstance().getTabbedActivityForIntent(\n activity1.getIntent(), activity1));\n }",
"@Test\n public void triggerIntent_hasExtras() {\n onView(withId(getResourceId(\"switchActivity\"))).check(matches(notNullValue() ));\n onView(withId(getResourceId(\"switchActivity\"))).check(matches(withText(\"Change Page\")));\n onView(withId(getResourceId(\"switchActivity\"))).perform(click());\n intended(hasExtra(\"Developer\", \"Oguzhan Orhan\"));\n }",
"private void checkAction() {\n if (action == Consts.CREATE_ACTION) {\n createAction();\n } else {\n updateAction(getArguments().getString(\"taskId\"));\n }\n }",
"@Test\n public void testChatLogExists(){\n ListView chatLog = messagesActivity.listOfMessages;\n assertNotNull(chatLog);\n }",
"@Test\n public void onActivity_sync() {\n final List<String> events = new ArrayList<>();\n Handler mainHandler = new Handler(Looper.getMainLooper());\n\n try (ActivityScenario<RecreationRecordingActivity> scenario =\n ActivityScenario.launch(RecreationRecordingActivity.class)) {\n\n mainHandler.post(() -> events.add(\"before onActivity\"));\n scenario.onActivity(\n new ActivityAction<RecreationRecordingActivity>() {\n @Override\n public void perform(RecreationRecordingActivity activity) {\n events.add(\"in onActivity\");\n // as expected, on device tests become flaky and fail deterministically on\n // Robolectric with this line, as onActivity does not drain the main looper\n // after runnable executes\n // mainHandler.post(() -> events.add(\"post from onActivity\"));\n }\n });\n\n assertThat(events).containsExactly(\"before onActivity\", \"in onActivity\").inOrder();\n }\n }",
"@Test\n public void TestNextAppNoUpcoming () {\n onView(withId(R.id.noUpcoming)).check(matches(withText(containsString(\"No Upcoming Appointments\"))));\n }",
"@Test\n void invalidCREATED() {\n // when not started, nothing can be done.\n getGame().move(getPlayer(), Direction.EAST);\n assertThat(getGame().isInProgress()).isFalse();\n verifyNoMoreInteractions(observer);\n }",
"protected void noActiveActivity() {\n\t\tLog.i(STARTUP, \"no active activity\");\n\t\tcancelNotification();\n\t\tcreateNotification();\n\t\tstartMainService();\t\t\n\t}",
"@Test\n public void testAlarmActive() {\n AlarmManager alarm = (AlarmManager) context.getSystemService(ALARM_SERVICE);\n Intent alarmIntent = new Intent(context, MyNotification.class);\n PendingIntent sendBroadcast = PendingIntent.getBroadcast(context, 0, alarmIntent, PendingIntent.FLAG_NO_CREATE);\n alarm.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis()+60*1000, sendBroadcast);\n boolean active = (PendingIntent.getBroadcast(context,0,alarmIntent,PendingIntent.FLAG_NO_CREATE))!=null;\n assertFalse(\"failed, \",active);\n }",
"@Test\n public void testMessageTimeNotNull(){\n ViewInteraction appCompatEditTextView = onView(withId(R.id.input));\n appCompatEditTextView.perform(replaceText(\"testMessageTime\"), closeSoftKeyboard());\n onView(withId(R.id.fab)).perform(click());\n TextView messageTime= messagesActivity.messageTime;\n assertNotNull(messageTime);\n }",
"@Test\n @SmallTest\n @Feature(\"MultiWindow\")\n @DisabledTest(message = \"https://crbug.com/1417018\")\n public void testTabbedActivityForIntentOnlyActivity1IsRunning() {\n ChromeTabbedActivity activity1 = mActivityTestRule.getActivity();\n ChromeTabbedActivity2 activity2 = createSecondChromeTabbedActivity(activity1);\n activity2.finishAndRemoveTask();\n\n Assert.assertEquals(\n \"ChromeTabbedActivity should be used for intents if ChromeTabbedActivity2 is \"\n + \"not running.\",\n ChromeTabbedActivity.class,\n MultiWindowUtils.getInstance().getTabbedActivityForIntent(\n activity1.getIntent(), activity1));\n }",
"public void testActivitiesOfDisableUsers() throws Exception {\n this.populateActivityMass(demoIdentity, 3);\n this.populateActivityMass(johnIdentity, 3);\n \n RealtimeListAccess<ExoSocialActivity> demoActivities = activityManager.getActivityFeedWithListAccess(demoIdentity);\n assertEquals(3, demoActivities.getSize());\n \n RealtimeListAccess<ExoSocialActivity> johnActivities = activityManager.getActivityFeedWithListAccess(johnIdentity);\n assertEquals(3, johnActivities.getSize());\n \n // john post activity with mention case.\n createActivityHasMention(johnIdentity, demoIdentity);\n \n demoActivities = activityManager.getActivityFeedWithListAccess(demoIdentity);\n assertEquals(4, demoActivities.getSize());\n \n // demo connect to john\n Relationship demoJohnConnection = relationshipManager.inviteToConnect(demoIdentity, johnIdentity);\n relationshipManager.confirm(demoIdentity, johnIdentity);\n \n demoActivities = activityManager.getActivityFeedWithListAccess(demoIdentity);\n assertEquals(7, demoActivities.getSize());\n \n johnActivities = activityManager.getActivityFeedWithListAccess(johnIdentity);\n assertEquals(7, johnActivities.getSize());\n \n // john post activity.\n createActivity(johnIdentity);\n \n demoActivities = activityManager.getActivityFeedWithListAccess(demoIdentity);\n assertEquals(8, demoActivities.getSize());\n johnActivities = activityManager.getActivityFeedWithListAccess(johnIdentity);\n assertEquals(8, johnActivities.getSize());\n \n // disable demo\n identityManager.processEnabledIdentity(demoIdentity.getRemoteId(), false);\n demoIdentity = identityManager.getOrCreateIdentity(OrganizationIdentityProvider.NAME, demoIdentity.getRemoteId(), true);\n \n // john get all activities. existing activities of demo still included.\n johnActivities = activityManager.getActivityFeedWithListAccess(johnIdentity);\n assertEquals(8, johnActivities.getSize());\n \n // john post activity, demo is in disabling status so activity reference is not created.\n createActivity(johnIdentity);\n \n // john post activity with mention case, demo is in disabling status so activity reference is not created.\n createActivityHasMention(johnIdentity, demoIdentity);\n \n //\n demoActivities = activityManager.getActivityFeedWithListAccess(demoIdentity);\n assertEquals(8, demoActivities.getSize());\n johnActivities = activityManager.getActivityFeedWithListAccess(johnIdentity);\n assertEquals(10, johnActivities.getSize());\n \n // check if john can post on demo stream\n ExoSocialActivity johnPostOnDemoActivity = new ExoSocialActivityImpl();\n\n johnPostOnDemoActivity.setTitle(\"john post on demo's stream.\");\n johnPostOnDemoActivity.setUserId(johnIdentity.getId());\n activityManager.saveActivityNoReturn(demoIdentity, johnPostOnDemoActivity);\n \n demoActivities = activityManager.getActivityFeedWithListAccess(demoIdentity);\n assertEquals(8, demoActivities.getSize());\n johnActivities = activityManager.getActivityFeedWithListAccess(johnIdentity);\n assertEquals(10, johnActivities.getSize());\n \n // check if demo still can post activity on his stream\n ExoSocialActivity activity = new ExoSocialActivityImpl();\n activity.setTitle(\"demo post on his stream.\");\n activity.setUserId(demoIdentity.getId());\n activityManager.saveActivityNoReturn(demoIdentity, activity);\n \n demoActivities = activityManager.getActivityFeedWithListAccess(demoIdentity);\n assertEquals(8, demoActivities.getSize());\n johnActivities = activityManager.getActivityFeedWithListAccess(johnIdentity);\n assertEquals(10, johnActivities.getSize());\n \n // re-enable user\n identityManager.processEnabledIdentity(demoIdentity.getRemoteId(), true);\n demoIdentity = identityManager.getOrCreateIdentity(OrganizationIdentityProvider.NAME, demoIdentity.getRemoteId(), true);\n \n demoActivities = activityManager.getActivityFeedWithListAccess(demoIdentity);\n assertEquals(8, demoActivities.getSize());\n johnActivities = activityManager.getActivityFeedWithListAccess(johnIdentity);\n assertEquals(10, johnActivities.getSize());\n \n // demo post on his stream\n createActivity(demoIdentity);\n \n demoActivities = activityManager.getActivityFeedWithListAccess(demoIdentity);\n assertEquals(9, demoActivities.getSize());\n johnActivities = activityManager.getActivityFeedWithListAccess(johnIdentity);\n assertEquals(11, johnActivities.getSize());\n \n // john post on demo stream\n createActivityToOtherIdentity(johnIdentity, demoIdentity, 1);\n demoActivities = activityManager.getActivityFeedWithListAccess(demoIdentity);\n assertEquals(10, demoActivities.getSize());\n johnActivities = activityManager.getActivityFeedWithListAccess(johnIdentity);\n assertEquals(12, johnActivities.getSize());\n \n //\n relationshipManager.delete(demoJohnConnection);\n }",
"@Test\n public void test_rf_continue_button_opens_correct_activity() {\n //Click the positive button in the dialog\n onView(withText(\"I understand\")).perform(click());\n //Find the views and perform action\n onView(withId(R.id.redFlag_continue)).perform(click());\n //Check if action returns desired outcome\n intended(hasComponent(ObservableSignsActivity.class.getName()));\n }",
"private boolean isMeetingReadyToStart(Meeting meeting) {\n return meeting.getAgendaItems().length != 0 && !meeting.getTitle().equals(\"\");\n\n }",
"private void assertStreamItemViewNotFocusable() {\n assertNotNull(\"should have a stream item\", mView);\n assertFalse(\"should not be focusable\", mView.isFocusable());\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testConstructorSiteNull() {\n PlannedActivity plannedActivity = new PlannedActivity(0, null,\n new Typology(\"typology\"), \"desctiption\", 0, true, 1,\n new Procedure(\"name\", \"smp\"), \"workspaceNotes\");\n\n }",
"public boolean checkTaskExist(CaptureTask task) {\n\t\treturn false;\r\n\t}",
"@Test(expected = IllegalArgumentException.class)\n public void testConstructorWorkspaceNull() {\n PlannedActivity plannedActivity = new PlannedActivity(0,\n new Site(\"factory\", \"area\"), new Typology(\"typology\"),\n \"desctiption\", 0, true, 1, new Procedure(\"name\", \"smp\"), null);\n\n }",
"@UiThreadTest\r\n public void testValidationRequired() {\n View addProjectValidateRequired = solo.getView(R.id.projectname_required);\r\n View addProjectValidateUnique = solo.getView(R.id.projectname_unique);\r\n assertEquals(\"The validation error message 'required' should be gone\", View.GONE, addProjectValidateRequired.getVisibility());\r\n assertEquals(\"The validation error message 'unique' should be gone\", View.GONE, addProjectValidateUnique.getVisibility());\r\n\r\n // Try to add with empty values\r\n ActionBar.clickMenuItem(R.id.menu_add_project_activity_save, solo.getCurrentActivity());\r\n solo.assertCurrentActivity(\"The add/edit project activity is expected\", AddEditProjectActivity.class);\r\n addProjectValidateRequired = solo.getView(R.id.projectname_required);\r\n addProjectValidateUnique = solo.getView(R.id.projectname_unique);\r\n assertEquals(\"The validation error message 'required' should be visible\", View.VISIBLE, addProjectValidateRequired.getVisibility());\r\n assertEquals(\"The validation error message 'unique' should be gone\", View.GONE, addProjectValidateUnique.getVisibility());\r\n }",
"@Test\n public void myMeetingList_ShouldNotBeEmpty() {\n onView(withId(R.id.recyclerview)).check(matches(hasMinimumChildCount(1)));\n }",
"public void verifyEngagementOverviewToDoIsComplete() {\n String strStepSuccess = \"Verify engagement overview ToDo is complete\";\n String strStepFail = \"TestScript Failed: Verify engagement overview ToDo is complete\";\n try {\n boolean result;\n String strEngagementOverViewToDo = eleEngagementOverViewToDoText.getText().trim().split(\"%\")[0];\n result = ENGAGEMENT_OVER_VIEW_TODO_COMPLETE.toLowerCase().equals(strEngagementOverViewToDo.toLowerCase());\n Assert.assertTrue(result, \"Engagement overview ToDo does not change\");\n NXGReports.addStep(strStepSuccess, LogAs.PASSED, null);\n } catch (AssertionError e) {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(strStepFail, LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }",
"@Test\n public void testPlannedActivityEquals() {\n PlannedActivity planned2 = new PlannedActivity(planned.getId(),\n planned.getSite(), planned.getTipology(), planned.getDescription(),\n planned.getInterventionTime(), planned.isInterruptible(),\n planned.getWeek(), planned.getProcedure());\n assertEquals(planned, planned2);\n }",
"private void assertStreamItemViewFocusable() {\n assertNotNull(\"should have a stream item\", mView);\n assertTrue(\"should be focusable\", mView.isFocusable());\n }",
"public boolean hasEnteredActivity() {\n\n for (Annotation annotation : annotationList)\n if (annotation instanceof AttachScreen)\n return ((AttachScreen) annotation).isActive();\n\n return false;\n }",
"public void onActivityCreated(Activity activity) throws Exception {\n\t\tLogger.info(\"onActivityCreated\");\n\t}",
"public void verifyNoPendingNotification() {\n\t\twait.waitForLoaderToDisappear();\n\t\tAssert.assertFalse(notificationPresent(), \"Assertion Failed: There are pending notifications on the side bar\");\n\t\tlogMessage(\"Assertion Passed: There are no pending notifications on the side bar\");\n\t}",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkAp() {\n\t\tboolean flag = oTest.checkAp();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"@Test(expected = IllegalArgumentException.class)\n public void testConstructorTypologyNull() {\n PlannedActivity plannedActivity = new PlannedActivity(0,\n new Site(\"factory\", \"area\"), null, \"descriton\", 0, true, 1,\n new Procedure(\"name\", \"smp\"), \"workspaceNotes\");\n\n }",
"@Test\n @SmallTest\n @Feature(\"MultiWindow\")\n public void testTabbedActivityForIntentOnlyActivity2IsRunning() {\n ChromeTabbedActivity activity1 = mActivityTestRule.getActivity();\n createSecondChromeTabbedActivity(activity1);\n activity1.finishAndRemoveTask();\n\n Assert.assertEquals(\n \"ChromeTabbedActivity2 should be used for intents if ChromeTabbedActivity is \"\n + \"not running.\",\n ChromeTabbedActivity2.class,\n MultiWindowUtils.getInstance().getTabbedActivityForIntent(\n activity1.getIntent(), activity1));\n }",
"@Test\n public void testExecutdAsPlanned() {\n assertFalse(action.executedAsPlanned());\n // TODO add assertTrue after execute\n }",
"@Test\n public void openSubjectsActivity() {\n }",
"private boolean scanPreconditions()\n\t\t{\n\t\t\tboolean statusChanged = false;\n\t\t\t\n\t\t\t//Conditional activity\n\t\t\tif(TravelToCustomer.precondition(this) == true)\n\t\t\t{\n\t\t\t\tTravelToCustomer act = new TravelToCustomer(this);\n\t\t\t\tact.startingEvent();\n\t\t\t\tscheduleActivity(act);\n\t\t\t\tstatusChanged = true;\n\t\t\t\t//System.out.println(\"Started Travel to Customer. \");\n\t\t\t}\n\t\t\t\n\t\t\tif(TakingLunch.precondition(this) == true)\n\t\t\t{\n\t\t\t\tTakingLunch act = new TakingLunch(this);\n\t\t\t\tact.startingEvent();\n\t\t\t\tscheduleActivity(act);\n\t\t\t\tstatusChanged = true;\n\t\t\t\t//System.out.println(\"Started Take Lunch. \");\n\t\t\t}\n\t\t\t\n\t\t\t// Do not change the status if already true\n\t\t\tif(statusChanged) scanInterruptPreconditions();\n\t\t\telse statusChanged = scanInterruptPreconditions();\n\t\t\treturn(statusChanged);\n\t\t}",
"@Test\n public void testFinishingActivity(){\n Espresso.onView(ViewMatchers.withId(R.id.btn_homepage)).perform(ViewActions.click());\n Assert.assertTrue(finishActivityActivityTestRule.getActivity().isFinishing());\n }",
"@Test\n public void intentTest(){\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n //Recyclerview scroll to position\n onView(ViewMatchers.withId(R.id.recycler_recipe)).perform(RecyclerViewActions.scrollToPosition(4));\n\n //Perform Recyclerview click on item at position\n onView(withId(R.id.recycler_recipe)).perform(RecyclerViewActions.actionOnItemAtPosition(0, click()));\n\n //Check if intent (RecipeActivity to StepDetailActivity) has RECIPE_INTENT_EXTRA\n intended(hasExtraWithKey(Constatns.STEPS_LIST));\n\n }",
"@Test\r\n public void testNotExistUser(){\r\n solo.clickOnView(solo.getView(R.id.nav_view).findViewById(R.id.navigation_notifications));\r\n solo.waitForFragmentById(R.id.navigation_notifications);\r\n solo.clickOnView(solo.getView(R.id.addFollowing));\r\n solo.sleep(3000);\r\n solo.waitForActivity(AddFollowingActivity.class, 2000);\r\n solo.enterText((EditText) solo.getView(R.id.add_following), \"yifan30\");\r\n solo.clickOnView(solo.getView(R.id.confirm));\r\n assertTrue(solo.waitForText(\"The username does not exist!!\", 1,2000));\r\n\r\n }",
"@Test\n\tpublic void testCheckCoflictOneDay() {\n\t\tActivity a1 = new Course(\"CSC216\", \"Programming Concepts - Java\", \"001\", 4, \"sesmith5\", 12, \"MWF\", 1330, 1445);\n\t\tActivity a2 = new Course(\"CSC216\", \"Programming Concepts - Java\", \"001\", 4, \"sesmith5\", 12, \"TWH\", 1330, 1445);\n\t\ttry {\n\t\t a1.checkConflict(a2);\n\t\t fail(); //ConflictException should have been thrown, but was not.\n\t\t } catch (ConflictException e) {\n\t\t //Check that the internal state didn't change during method call.\n\t\t assertEquals(\"MWF 1:30PM-2:45PM\", a1.getMeetingString());\n\t\t assertEquals(\"TWH 1:30PM-2:45PM\", a2.getMeetingString());\n\t\t }\n\t}",
"@Test(expected = IllegalArgumentException.class)\n public void testConstructorDescriptionNull() {\n PlannedActivity plannedActivity = new PlannedActivity(0,\n new Site(\"factory\", \"area\"), new Typology(\"typology\"),\n null, 0, true, 1, new Procedure(\"name\", \"smp\"), \"workspaceNotes\");\n\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testConstructorProcedureNull() {\n PlannedActivity plannedActivity = new PlannedActivity(0,\n new Site(\"factory\", \"area\"), new Typology(\"typology\"),\n \"desctiption\", 0, true, 1, null, \"workspaceNotes\");\n\n }",
"private boolean checkForAction(){\n IndividualAction thisAction = checkTriggers();\n if(thisAction.getTriggers() == null){\n return false;\n }\n if(!checkSubjects(thisAction.getSubjects())){\n return false;\n }\n doConsumed(thisAction.getConsumed());\n doProduce(thisAction.getProduced());\n results.add(thisAction.getNarration());\n\n return true;\n }",
"@Test\n\t@Deployment(resources = \"process.bpmn\")\n\tpublic void testCurrentStatus() {\n\t\t\t\n\t\t// Obtain test run of BPMN\n\t\tProcessInstanceWithVariables processInstance = (ProcessInstanceWithVariables)processEngine().getRuntimeService().startProcessInstanceByKey(PROCESS_DEFINITION_KEY);\n\n\t\t// Obtain the value of the deliveryOK variable\n\t\tboolean deliveryOK = (boolean)processInstance.getVariables().get(\"deliveryOK\");\n\t\tSystem.out.println(\"DeliveryOK: \" + deliveryOK);\n\t\t\t\n\t \n\t\t// Obtain a reference to the current task\n\t\tTaskAssert task = assertThat(processInstance).task();\n\n\t\tif (deliveryOK) {\n\t\t\t\tassertThat(processInstance).isWaitingAt(\"Activity_066txhw\");\n\t\t\t\ttask.hasName(\"Checkout 1\");\n\t\t\t\ttask.isNotAssigned();\n\t\t\t} else {\n\t\t\t\tassertThat(processInstance).isWaitingAt(\"Activity_19fouew\");\n\t\t\t\ttask.hasName(\"Checkout 2\");\n\t\t\t\ttask.isNotAssigned();\n\t\t\t}\n\n\t\t}",
"private DeleteActivitiesTestUtils() {\r\n // Do nothing\r\n }",
"@Test\n public void canGetActivitiesForOrganisation() {\n Long orgID = 9206250L; //existing Vertec organisation\n String uri = baseURI + \"/organisation/\" + orgID + \"/activities\";\n\n ActivitiesForAddressEntry afo = getFromVertec(uri, ActivitiesForAddressEntry.class).getBody();\n\n assertEquals(orgID, afo.getOrganisationId());\n assertTrue(\"Quanta Fluid Solutions Ltd\".equals(afo.getName()));\n\n List<VRAPI.Entities.Activity> activities = afo.getActivities();\n\n assertTrue(\"Not al activities got\", activities.size() >= 10);\n\n assertEquals(9206485L, activities.get(0).getVertecId().longValue());\n assertEquals(27450368L, activities.get(9).getVertecId().longValue());\n\n Activity activity = activities.get(0);\n assertTrue(activity.getDone());\n assertTrue(activity.getvType().equals(\"EMail\"));\n assertTrue(activity.getText().contains(\"and Mr Peter Templeton (Quanta)\"));\n assertTrue(activity.getDueDate().equals(\"2011-10-20\"));\n assertTrue(activity.getDoneDate().equals(\"2016-06-17\"));\n assertTrue(activity.getCreated().equals(\"2011-10-20T10:19:12\"));\n\n assertEquals(activity.getVertecDealLink(), null);\n assertEquals(activity.getVertecProjectLink().longValue(), 9206384L);\n assertEquals(activity.getVertecOrganisationLink(), orgID);\n assertEquals(activity.getVertecContactLink(), null);\n }",
"@Test\r\n public void lookProfileByNull() {\n assertNull(Activity.find(\"select a from Activity a where a.member = ?\", member).first());\r\n\r\n // A not connected user looked at member profile\r\n member.lookedBy(null);\r\n \r\n // Still no activity for member\r\n assertNull(Activity.find(\"select a from Activity a where a.member = ?\", member).first());\r\n }",
"private void assertStreamItemViewHasOnClickListener() {\n assertFalse(\"listener should have not been invoked yet\", mListener.clicked);\n mView.performClick();\n assertTrue(\"listener should have been invoked\", mListener.clicked);\n }",
"@Test\n public void saveActivity() {\n }",
"public boolean isSetIsactivity() {\n return __isset_bit_vector.get(__ISACTIVITY_ISSET_ID);\n }",
"void check() throws IllegalStateException {\n if (\n title == null ||\n release == null ||\n duration == 0 ||\n synopsis == null ||\n genre == null ||\n cast == null\n )\n throw new IllegalStateException(\"incomplete type\");\n }",
"@Test\r\n public void testEmptyUser(){\r\n solo.clickOnView(solo.getView(R.id.nav_view).findViewById(R.id.navigation_notifications));\r\n solo.waitForFragmentById(R.id.navigation_notifications);\r\n solo.clickOnView(solo.getView(R.id.addFollowing));\r\n solo.sleep(3000);\r\n solo.waitForActivity(AddFollowingActivity.class, 2000);\r\n solo.clickOnView(solo.getView(R.id.confirm));\r\n assertTrue(solo.waitForText(\"The username Cannot Be Empty!!\", 1,2000));\r\n\r\n }",
"@Test\n public void checkStartupToast() {\n //run with airplane mode so no internet connectivity\n onView(withText(\"Ensure data connectivity\")).inRoot(new ToastMatcher())\n .check(matches(isDisplayed()));\n }",
"@Test\n\tpublic void testcheckConflict() {\n\t\tActivity a1 = new Course(\"CSC216\", \"Programming Concepts - Java\", \"001\", 4, \"sesmith5\", 12, \"MW\", 1330, 1445);\n\t\tActivity a2 = new Course(\"CSC216\", \"Programming Concepts - Java\", \"001\", 4, \"sesmith5\", 12, \"TH\", 1330, 1445);\n\t\t try {\n\t\t a1.checkConflict(a2);\n\t\t assertEquals(\"Incorrect meeting string for this Activity.\", \"MW 1:30PM-2:45PM\", a1.getMeetingString());\n\t\t assertEquals(\"Incorrect meeting string for possibleConflictingActivity.\", \"TH 1:30PM-2:45PM\", a2.getMeetingString());\n\t\t a2.checkConflict(a1);\n\t\t assertEquals(\"Incorrect meeting string for this Activity.\", \"MW 1:30PM-2:45PM\", a1.getMeetingString());\n\t\t assertEquals(\"Incorrect meeting string for possibleConflictingActivity.\", \"TH 1:30PM-2:45PM\", a2.getMeetingString());\n\t\t } catch (ConflictException e) {\n\t\t fail(\"A ConflictException was thrown when two Activities at the same time on completely distinct days were compared.\");\n\t\t }\n\t\t a1.setMeetingDays(\"TH\");\n\t\t a1.setActivityTime(1445, 1530);\n\t\t try {\n\t\t a1.checkConflict(a2);\n\t\t fail(); //ConflictException should have been thrown, but was not.\n\t\t } catch (ConflictException e) {\n\t\t //Check that the internal state didn't change during method call.\n\t\t assertEquals(\"TH 2:45PM-3:30PM\", a1.getMeetingString());\n\t\t assertEquals(\"TH 1:30PM-2:45PM\", a2.getMeetingString());\n\t\t }\n\t}",
"@When(\"^clicks request$\")\n public void patient_clicks_request() throws Throwable {\n \t//appt request has been saved and is pending...\n \tAssert.assertTrue(appt.getApptType() != null);\n \tAssert.assertTrue(appt.getDate() != null);\n \tAssert.assertTrue(appt.getComment() != null);\n \t//check if the above items have been set correctly from the previous method\n }",
"public void verifySortByPatternActivity() {\n\t\tcloseInstIcon();\n\t\tAssert.assertTrue(isElementPresent(AUDIO_ICON), \"Sort by pattern Activity is not being displayed\");\n\t}",
"public boolean isActivityStarted() {\n return (mInCallActivity != null &&\n !mInCallActivity.isDestroyed() &&\n !mInCallActivity.isFinishing());\n }",
"abstract boolean shouldTaskActivate();",
"@Test(priority=0)\n\tpublic void confirmIfSignUpPage(){\n\t\tAssert.assertTrue(signup.isSignUpPageLoaded());\n\t}",
"private void assertStreamItemViewHasNoOnClickListener() {\n assertFalse(\"listener should have not been invoked yet\", mListener.clicked);\n mView.performClick();\n assertFalse(\"listener should have not been invoked\", mListener.clicked);\n }",
"@Trace(excludeFromTransactionTrace = true, leaf = true)\n private void tracedActivityFromFlyweight() {\n TracedActivity tracedActivity = AgentBridge.getAgent().getTransaction().createAndStartTracedActivity();\n Assert.assertTrue(tracedActivity instanceof NoOpSegment);\n }",
"public void testAuditDetail_Accuracy() {\r\n assertNotNull(\"The AuditDetail instance should be created.\", auditDetail);\r\n }",
"private void AndOrderIsSentToKitchen() throws Exception {\n assert true;\n }",
"private void verifyActive() {\n if (!active) {\n throw new IllegalStateException(\"Container is no longer active for loading\");\n }\n }",
"public void verifyNewTabDorMessageBoardsOpened() {\n Assert.assertTrue(boardButton.isDisplayed());\t\t\n\t}",
"private boolean checkExecution() {\n if (!checkPhoneStatusOK()) {\n return false;\n }\n if (!checkBatteryLevelOK()) {\n return false;\n }\n return true;\n }",
"boolean hasIntent();",
"@Test\n\tpublic void testReadyNoDevices() {\n\t\tModel contact = addContactSensor(true, false);\n\t\tstageDisarmed(addressesOf(contact));\n\t\tremoveModel(contact);\n\t\t\n\t\talarm.bind(context);\n\t\tassertInactive();\n\t}",
"public void testRun() {\n\t\tsolo.waitForActivity(\"First_Activity\", 2000);\n //Take screenshot\n solo.takeScreenshot();\n //Sleep for 8158 milliseconds\n\t\tsolo.sleep(8158);\n //Click on click for second page\n\t\tsolo.clickOnView(solo.getView(\"button\"));\n //Wait for activity: 'sai.myfirstapp.com.sai.Second_Activity'\n\t\tassertTrue(\"Second_Activity is not found!\", solo.waitForActivity(\"Second_Activity\"));\n //Sleep for 1030 milliseconds\n\t\tsolo.sleep(1030);\n //Click on go back\n\t\tsolo.clickOnView(solo.getView(\"button2\"));\n //Sleep for 2902 milliseconds\n\t\tsolo.sleep(2902);\n //Click on click for second page\n\t\tsolo.clickOnView(solo.getView(\"button\"));\n //Take screenshot\n solo.takeScreenshot();\n //Wait for activity: 'sai.myfirstapp.com.sai.Second_Activity'\n\t\tassertTrue(\"Second_Activity is not found!\", solo.waitForActivity(\"Second_Activity\"));\n //Sleep for 2551 milliseconds\n\t\tsolo.sleep(2551);\n //Click on go back\n\t\tsolo.clickOnView(solo.getView(\"button2\"));\n //Sleep for 1157 milliseconds\n\t\tsolo.sleep(1157);\n //Click on click for second page\n\t\tsolo.clickOnView(solo.getView(\"button\"));\n //Wait for activity: 'sai.myfirstapp.com.sai.Second_Activity'\n\t\tassertTrue(\"Second_Activity is not found!\", solo.waitForActivity(\"Second_Activity\"));\n //Sleep for 1114 milliseconds\n\t\tsolo.sleep(1114);\n //Click on go back\n\t\tsolo.clickOnView(solo.getView(\"button2\"));\n //Sleep for 870 milliseconds\n\t\tsolo.sleep(870);\n //Click on click for second page\n\t\tsolo.clickOnView(solo.getView(\"button\"));\n //Wait for activity: 'sai.myfirstapp.com.sai.Second_Activity'\n\t\tassertTrue(\"Second_Activity is not found!\", solo.waitForActivity(\"Second_Activity\"));\n //Take screenshot\n solo.takeScreenshot();\n //Click on go back\n\t\tsolo.clickOnView(solo.getView(\"button2\"));\n\t}",
"protected boolean checkAAField()\n {\n if (this.pdWidget.getActions() != null)\n {\n ctx.addValidationError(new ValidationError(ERROR_ANNOT_FORBIDDEN_AA));\n return false;\n }\n return true;\n }",
"protected void assertTaskSkipped(BuildTask task) {\n assertNotNull(\"task is null\", task);\n assertEquals(\"task \" + task + \" state should be skipped\", SKIPPED, task.getOutcome());\n }",
"@Test\r\n\tpublic void testRegisterTimeforWrongActivity() throws Exception {\r\n\t\tcompany.employeeLogin(\"KANO\", \"empassword2\");\r\n\t\t\r\n\t\ttry {\r\n\t\t\temployee.registerSpentTime(project.getID()+\"-Designing\", 100);\r\n\t\t\tfail(\"OperationNotAllowedException exception should have been thrown\");\r\n\t\t} catch (OperationNotAllowedException e) {\r\n\t\t\tassertEquals(\"Employee is not assigned to the chosen activity\", e.getMessage());\r\n\t\t\tassertEquals(\"Register spent time\", e.getOperation());\r\n\t\t}\r\n\t}",
"private void ThenPaymentIsProcessed() throws Exception {\n assert true;\n }",
"void onActivityReady();",
"protected void assertTaskUpToDate(BuildTask task) {\n assertNotNull(\"task is null\", task);\n assertEquals(\"task \" + task + \" state should be up-to-date\", UP_TO_DATE, task.getOutcome());\n }",
"public void test030301() {\n\t\tActivityMonitor activityMonitor = getInstrumentation().addMonitor(MainActivity.class.getName(), null, false);\n\t\t//User click \"Change User\"\n\t\tactivity.runOnUiThread(new Runnable(){\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tassertTrue(UserButton.performClick());\t\n\n\t\t\t\t// opening a dialog\n\t\t \t// access the alert dialog using the getDialog() method created in the activity\n\t\t\t\tAlertDialog d = (AlertDialog) activity.getDialog();\t\t\t\t\n\t\t\t}\t\n\t\t});\n\t\t\n\t\t// get current activity\t\t\t\n\t\tMainActivity myActivity = getActivity();\n\t\t// click \"Claimant\" button and start next activity\n\t\tmyActivity.runOnUiThread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tActivityMonitor activityMonitor00 = getInstrumentation().addMonitor(ClaimantClaimListActivity.class.getName(), null, false);\n\t\t\t\t// click button and open next activity.\n\t\t\t\tClaimantButton.performClick();\n\t\t\t\tClaimantClaimListActivity nextActivity = (ClaimantClaimListActivity) getInstrumentation().waitForMonitorWithTimeout(activityMonitor00, 10000);\n\t\t\t\t// next activity is opened and captured.\n\t\t\t\tassertNotNull(nextActivity);\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Test for US03.03.01 Basic Flow 1\n\t\t\t\t */\n\t\t\t\t// view which is expected to be present on the screen\t\t\t\n\t\t\t\tfinal View decorView1 = nextActivity.getWindow().getDecorView();\n\t\t\t\t// layout of claim list\n\t\t\t\tlistView = (ListView) nextActivity.findViewById(ca.ualberta.CMPUT301W15T06.R.id.claimListView);\n\t\t\t\t// check if it is on screen\n\t\t\t\tViewAsserts.assertOnScreen(decorView1, listView);\n\t\t\t\t// check whether the Button object's width and height attributes match the expected values\n\t\t\t\tfinal ViewGroup.LayoutParams layoutParams11 = listView.getLayoutParams();\n\t\t\t\tassertEquals(layoutParams11.width, WindowManager.LayoutParams.MATCH_PARENT);\n\t\t\t\tassertEquals(layoutParams11.height, WindowManager.LayoutParams.WRAP_CONTENT);\t\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Test for US03.03.01 Basic Flow 2,3\n\t\t\t\t */\n\t\t\t\t// Click the menu option\n\t\t\t\tint count_be = u.getClaimList().size();\n\t\t\t\tActivityMonitor am = getInstrumentation().addMonitor(ClaimantClaimListActivity.class.getName(), null, false);\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Test for US03.03.01 Basic Flow 4\n\t\t\t\t */\n\t\t\t\tgetInstrumentation().invokeMenuActionSync(nextActivity,ca.ualberta.CMPUT301W15T06.R.id.filter, 1);\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Test for US03.03.01 Basic Flow 5\n\t\t\t\t */\t\t\n\t\t\t\t// test alert dialog (contains saved tags)\n\t\t\t\tAlertDialog d = (AlertDialog) nextActivity.getDialog();\n\t\t\t\tassertNotNull(d);\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Test for US03.03.01 Basic Flow 6a\n\t\t\t\t */\n\t\t\t\t//\"Filter Model\" button\n\t\t\t\tButton positiveButton = d.getButton(DialogInterface.BUTTON_POSITIVE);\n\t\t\t\tassertNotNull(positiveButton);\n\t\t\t\tpositiveButton.performClick();\n\n\t\t\t\t/*\n\t\t\t\t * Test for US03.03.01 Basic Flow 6b\n\t\t\t\t */\n\t\t\t\t//\"show all model\" button\n\t\t\t\tButton negativeButton = d.getButton(DialogInterface.BUTTON_NEGATIVE);\n\t\t\t\tassertNotNull(negativeButton);\n\t\t\t\tnegativeButton.performClick();\n\t\t\t\t// all claims are shown\n\t\t\t\tint count_all = u.getClaimList().size();\n\t\t\t\tassertEquals(count_be, count_all);\n\n\t\t\t\t//finish activity\n\t\t\t\tnextActivity.finish();\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tactivity.finish();\n\t}",
"public void verifyMyActivityPageSuccessfullyDisplayedInNewWindow()\n\t{\n\t\tgetDriver().navigate().refresh();\n\t\tAssert.assertTrue(MyActivitiesHeader.isDisplayed());\n\t\t\n\t}"
] | [
"0.70247567",
"0.7002616",
"0.6699785",
"0.6532649",
"0.6486732",
"0.63512146",
"0.6122173",
"0.611691",
"0.60992074",
"0.6066673",
"0.5954765",
"0.592483",
"0.58422655",
"0.5833821",
"0.5812069",
"0.579984",
"0.57357717",
"0.570232",
"0.5678805",
"0.5614109",
"0.5579738",
"0.55784255",
"0.5574821",
"0.55732983",
"0.5558164",
"0.5548404",
"0.5522145",
"0.5495803",
"0.54953617",
"0.5484035",
"0.5464191",
"0.54515845",
"0.5424111",
"0.5422149",
"0.5420167",
"0.5402138",
"0.5387114",
"0.538398",
"0.53801376",
"0.53779",
"0.53759116",
"0.5334791",
"0.5332886",
"0.5327407",
"0.53262866",
"0.5325828",
"0.5325323",
"0.5305646",
"0.5302628",
"0.5301284",
"0.5301117",
"0.5294217",
"0.52905166",
"0.52800626",
"0.52794373",
"0.52698725",
"0.5269363",
"0.5260637",
"0.52596796",
"0.52548796",
"0.5251149",
"0.52321434",
"0.5229894",
"0.5229474",
"0.52293676",
"0.5228843",
"0.52276355",
"0.5226337",
"0.5221653",
"0.52152467",
"0.5214366",
"0.52141273",
"0.52123356",
"0.5209291",
"0.520429",
"0.5200925",
"0.5196113",
"0.51960677",
"0.5190337",
"0.5181308",
"0.51754045",
"0.51705664",
"0.51658416",
"0.51600593",
"0.5158132",
"0.5153279",
"0.5153093",
"0.51526594",
"0.51521176",
"0.5151551",
"0.51427644",
"0.51256007",
"0.51246977",
"0.51237947",
"0.51229",
"0.5120383",
"0.51143813",
"0.51139194",
"0.51018274",
"0.50888425"
] | 0.7618107 | 0 |
Gibt die ID des Sitzes zurueck | public int getId() {
return id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"public long getIdSejour(){\n\t\treturn idSejour;\n\t}",
"private int getId() {\r\n\t\treturn id;\r\n\t}",
"@Override\r\n public int getId() {\n return id;\r\n }",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}",
"int getSnId();",
"int getSnId();",
"int getSnId();",
"int getSnId();",
"long getId();",
"long getId();",
"long getId();",
"long getId();",
"long getId();",
"long getId();",
"long getId();",
"long getId();",
"long getId();",
"long getId();",
"long getId();",
"long getId();",
"long getId();",
"long getId();",
"long getId();",
"long getId();",
"long getId();",
"long getId();",
"long getId();",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"@Override\n public long getId() {\n return id;\n }",
"public int id() {return id;}",
"java.lang.String getID();",
"@Override\n public int getId() {\n return id;\n }",
"@Override\n public int getId() {\n return id;\n }",
"public int getId()\r\n/* 53: */ {\r\n/* 54: 79 */ return this.idDetalleComponenteCosto;\r\n/* 55: */ }",
"@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }",
"@Override\n\tpublic int getID() {\n\t\treturn 0;\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();"
] | [
"0.71611834",
"0.71421283",
"0.7120359",
"0.7084676",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.705631",
"0.7036688",
"0.70108473",
"0.70108473",
"0.70108473",
"0.70108473",
"0.7001081",
"0.7001081",
"0.7001081",
"0.7001081",
"0.7001081",
"0.7001081",
"0.7001081",
"0.7001081",
"0.7001081",
"0.7001081",
"0.7001081",
"0.7001081",
"0.7001081",
"0.7001081",
"0.7001081",
"0.7001081",
"0.7001081",
"0.7001081",
"0.7001081",
"0.69849",
"0.69849",
"0.69849",
"0.69849",
"0.69849",
"0.69849",
"0.6956015",
"0.6949827",
"0.6946168",
"0.6928832",
"0.6928832",
"0.69273424",
"0.69265217",
"0.6921773",
"0.69101685",
"0.69101685",
"0.69101685",
"0.69101685",
"0.69101685",
"0.69101685",
"0.69101685",
"0.69101685",
"0.69101685",
"0.69101685",
"0.69101685",
"0.69101685",
"0.69101685",
"0.69101685",
"0.69101685",
"0.69101685",
"0.69101685"
] | 0.0 | -1 |
Gibt den Semaphoren zurueck | public Semaphore getSemaphore() {
return semaphore;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Semaphore() {\n m_available = true;\n }",
"protected void lock() {\n semaphore = new Semaphore(0);\n try {\n semaphore.acquire();\n }\n catch(InterruptedException e) {\n System.out.println(\"Trouble for request of semaphore acquirement\");\n e.printStackTrace();\n }\n }",
"public interface Semaphore {\r\n\r\n public abstract void acquireOnStart() throws SemaphoreException;\r\n\r\n public abstract void releaseOnEnd() throws SemaphoreException;\r\n\r\n public abstract boolean isProcessTerminationFlagOn() throws SemaphoreException;\r\n\r\n}",
"public static void main(String[] args) {\n System.out.println(-1 / 5);\n System.out.println(-2 / 5);\n System.out.println(-3 / 5);\n System.out.println(-4 / 5);\n System.out.println(-8 / 5);\n\n AtomicInteger lock = new AtomicInteger(0);\n lock.incrementAndGet();\n Semaphore semaphore = new Semaphore(0);\n try {\n semaphore.acquire();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) {\n\t\tSemaphore semaphore = new Semaphore(1);\n\t\tSystem.out.println(semaphore.availablePermits());\n\t\tsemaphore.release(10);\n\t\tSystem.out.println(semaphore.availablePermits());\n\t\tsemaphore.drainPermits();\n\t\tSystem.out.println(semaphore.availablePermits());\n\t/*\ttry {\n\t\t\tsemaphore.acquire(10);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}*/\n\t\tSystem.out.println(semaphore.availablePermits());\n\t\t\n\t\tSemaphoreTest test = new SemaphoreTest();\n\t\tfor(int i =0;i<3;i++) {\n\t\t\tnew Thread(test).start();\n\t\t}\n\t\t\n\t\tnew Thread(test.new Manager()).start();\n\t}",
"public SimpleSemaphore2(int v) \n { this(v, v); }",
"public EmpleadosDisponibles(Semaphore semaforoEmpleadoLibre) {\n this.semaforoEmpleadoLibre = semaforoEmpleadoLibre;\n }",
"public static void main(String[] args) {\n ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(2, 2, 0, TimeUnit.NANOSECONDS, new ArrayBlockingQueue<>(10));\n threadPoolExecutor.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" Task A over!\");\n semaphore.release();\n });\n threadPoolExecutor.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" Task A over!\");\n semaphore.release();\n });\n\n try {\n semaphore.acquire(2);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n threadPoolExecutor.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" Task B over!\");\n semaphore.release();\n });\n threadPoolExecutor.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" Task B over!\");\n semaphore.release();\n });\n\n try {\n semaphore.acquire(2);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.out.println(\"all task over!\");\n threadPoolExecutor.shutdown();\n }",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsemaphore.acquire();\n\t\t\t\t\t\tSystem.out.println(\"获得一个信号量,线程\"+Thread.currentThread().getName()+\"准备执行中....\");\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t\tSystem.out.println(\"线程\"+Thread.currentThread().getName()+\"执行完毕\");\n\t\t\t\t\t\tsemaphore.release();\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}",
"public void run() {\n\t\t\tsynchronized (lock) {\n\t\t\t\tfor(int i=0;i<10;i++) {\n\t\t\t\t\twhile(startSemaphore.availablePermits()!=0) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"Manager:\\t\"+i);\n\t\t\t\t\tstartSemaphore.release(3);\n\t\t\t\t\tlock.notifyAll();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlock.wait();\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public Semaphore(boolean isAvailable) {\n m_available = isAvailable;\n }",
"public RCC() {\n v = new Semaphore(1);\n s = new Semaphore(0);\n mutex = new Semaphore(1);\n suspendidos_s = 0;\n }",
"public void run() {\n\t\t\ttry {\n\t\t\t\t//System.out.println(\"Before acquire\");\n\t\t\t\tsem.acquire();\n\t\t\t\tsemUsed = true;\n\t\t\t\t//System.out.println(\"After acquire\");\n\t\t\t\t\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tSystem.out.println(\"Revise your semaphore math\");\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tfor (int i = start; i < maxInt && ! cancel; i = (int) (i + numAvailableThreads)) {\n\t\t\t\t//System.out.println(i);\n\t\t\tif (isPrime(i)){\n\t\t\t\t\tset.add(i);\n\t\t\t\t\tprimeCount.getAndIncrement();\n\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"dumping semaphore\");\n\t\t\tsem.release();\n\t\t}",
"public static void main(String[] args) {\n\tSemaphore semaphore = new Semaphore(1);\n\n\tSystem.out.println(\"Total available Semaphore permits : \" + semaphore.availablePermits());\n\n\tfor (int i = 0; i < 10; i++) {\n\t Thread thread = new SemaphoreThread(semaphore);\n\t thread.setName(\"Thread - \" + i);\n\t thread.start();\n\t}\n\n }",
"public int getSem() {\n return sem;\n }",
"public SimpleSemaphore2(boolean b) \n { this(b ? 1 : 0, 1); }",
"@SuppressWarnings(\"unchecked\")\n @Test(expected = RejectedExecutionException.class)\n public void testSubmitSizeExceedingSemaphorePermits() {\n final int SEMAPHORE_SIZE = 2;\n //2. create the Semaphore controlled completion service; set semaphore to 2.\n final BoundedCompletionService<String> ecs = new BoundedCompletionService<String>(\n new ExecutorCompletionService<String>(e), SEMAPHORE_SIZE);\n //3. Make 3 callables\n final Callable<String>[] cs = new Callable[SEMAPHORE_SIZE + 1];//delebrately have callable size greater than semaphore size\n for (int i = 0; i < cs.length; i++)\n cs[i] = new StringDelayableCallable(\"S\" + i, 1);\n //4. Run them in a thread\n final CountDownLatch latch = new CountDownLatch(1);\n Thread t = new Thread() {\n @Override\n public void run() {\n ecs.submit(cs[0]);\n ecs.submit(cs[1]);\n latch.countDown();\n //5. After 2 submits the third submit will block. since semaphore size is 2.\n ecs.submit(cs[2]);\n }\n };\n //6. Create uncaught handler instance\n Uncaught<RejectedExecutionException> uncaught = new Uncaught<RejectedExecutionException>(); //Expecting a thread exception hence the uncaught handler\n t.setUncaughtExceptionHandler(uncaught); //set the uncaught handler\n //7. start the thread\n t.start();\n try {\n latch.await(); //latch is used just so that on exact third submit countdown happens\n Thread.sleep(1000);// allow third submit to wait for a second\n t.interrupt(); // will need to interrupt the ecs as the third submit is going to block\n t.join(); //just wait! till t joins up\n } catch (InterruptedException e1) {\n e1.printStackTrace(); //we dont care this this threads interruption\n }\n //8. if uncaught registered a exception then throw it and hence expected so test passes else its a failure\n uncaught.throwIfException();\n }",
"public SimpleSemaphore2(int v, int mv) \n {\n if (mv < 1)\n throw new InvalidValueException(\"Valore massimo del semaforo\"+mv);\n if (v < 0 || v > mv)\n throw new InvalidValueException(\"Valore iniziale del semaforo\"+v);\n value = v;\n maxvalue = mv; \n }",
"@Override\n public void run() {\n try {\n evenSemaphore.acquire();\n while (true) {\n\n if(count % 2 == 0){\n System.out.println(Thread.currentThread().getName() + \" 偶数 \" + count);\n count++;\n if (count > 20) {\n return;\n }\n oddSemaphore.release();\n evenSemaphore.acquire();\n TimeUnit.SECONDS.sleep(1);\n }\n if (count > 20) {\n break;\n }\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"@Override\r\n public void handleMessage(Message msg) {\n mThreadPool.execute(getTask());\r\n try {\r\n mSemaphoreThreadPool.acquire();\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public void run() {\n\t\tsynchronized (lock) {\n\t\t\tfor(int i=0;i<10;i++) {\n\t\t\t\ttry {\n\t\t\t\t\tstartSemaphore.acquire();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(Thread.currentThread().getName()+\":\\t\"+i);\n\t\t\t\ttry {\n\t\t\t\t\tlock.wait();\n\t\t\t\t\tSystem.out.println(\"notified\");\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"private int semaphorePertmits(StripedExecutor exec) {\n // 4 task per-stripe by default.\n int permits = exec.stripesCount() * 4;\n\n long maxMemory = Runtime.getRuntime().maxMemory();\n\n // Heuristic calculation part of heap size as a maximum number of concurrent tasks.\n int permits0 = (int)((maxMemory * 0.2) / (4096 * 2));\n\n // May be for small heap. Get a low number of permits.\n if (permits0 < permits)\n permits = permits0;\n\n // Property for override any calculation.\n return getInteger(IGNITE_RECOVERY_SEMAPHORE_PERMITS, permits);\n }",
"public static void main(String[] args) {\n\t\tSemaphore sem = new Semaphore(1);\n\t\t\n\t\tnew Thread(new IncThread(sem,\"A\")).start();;\n\t\tnew Thread(new DecThread(sem,\"B\")).start();\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t\ttry {\n\t\t\tsemaphore.acquire(); // 3 thread at a time\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"Slow servie\"); //50 times concurrently\n\t\t\n\t\tsemaphore.release();\n\t\t//rst of service\n\t\t\n\t\t\n\t}",
"@Override\n public void run() {\n try {\n evenSemaphore.acquire();\n while (true) {\n if(count % 2 != 0){\n System.out.println(Thread.currentThread().getName() + \" 奇数 \" + count);\n count++;\n if (count > 20) {\n return;\n }\n evenSemaphore.release();\n oddSemaphore.acquire();\n TimeUnit.SECONDS.sleep(1);\n }\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public void wait4launch() throws InterruptedException {\n if(inship.size()<2){\n readyToabaord.waitSem();\n }else{\n readyToabaord.signalSem();\n }\n // your code here\n }",
"public static void main(String[] args) {\n Semaphore semaphore = new Semaphore(5, true);\n for (int i = 0 ; i < 10 ; i ++){\n new DoAnything(i, semaphore).start();\n }\n }",
"public void unlock() {\n if(semaphore != null && semaphore.availablePermits() == 0) {\n semaphore.release();\n }\n }",
"@Test\n public void testTakeWontWaitWithinSemaphoreSize() {\n final int factor = 4;\n final int semaphoreSize = 5;\n final int iterations = semaphoreSize * factor;\n final BoundedCompletionService<String> ecs = new BoundedCompletionService<String>(\n new ExecutorCompletionService<String>(e), semaphoreSize);\n final int delaySecs = 1;\n try {\n Assert.assertNull(ecs.poll());\n Thread t = new Thread() {\n @Override\n public void run() {\n for (int i = 0; i < iterations; i++)\n ecs.submit(new StringDelayableCallable(\"String delayab\", delaySecs));\n }\n };\n t.start();\n for (int i = 0; i < factor; i++)\n for (int j = 0; j < semaphoreSize; j++) {\n long t1 = System.nanoTime();\n Future<String> f = ecs.take();\n long t2 = System.nanoTime();\n Assert.assertNotNull(f);\n Assert.assertTrue(f.isDone());\n System.out.println(\"t2-t1(ms):\" + (t2 - t1) / 1000000L);\n if (j == 0)\n Assert.assertTrue((t2 - t1) / 1000000L > 0L); // it should be milliseconds at the boundary of semaphore size\n else {\n Assert.assertTrue((t2 - t1) / 100000000L == 0L);//it should not be decaseconds\n Assert.assertTrue((t2 - t1) / 1000L > 0L); //it should be in microseconds here\n }\n }\n } catch (Exception ex) {\n unexpectedException();\n }\n }",
"public synchronized void wait(int n) throws InterruptedException,\n\t\t\tIllegalArgumentException, SemaphoreWaitOverflowException {\n\t\t// Precondition -- The value of the Semaphore should be non-negative.\n\t\tassert(value >= 0);\n\t\t\n\t\t// Check that n is positive\n\t\tif (n <= 0)\n\t\t\tthrow new IllegalArgumentException(\"n must be a positive integer\");\n\t\t\n\t\t/* Complicated code to handle 2.2 */\n\t\t// Add this value to waitingValues identifying by the current thread ID.\n\t\tlong threadID = Thread.currentThread().getId();\n\t\t// Initialise the HashMap for the current Thread ID if one does not \n\t\t// exist.\n\t\tif (!waitingValues.containsKey(threadID))\n\t\t\twaitingValues.put(threadID, new HashMap<Integer, Integer>());\n\t\t// Get the HashMap for the current Thread ID\n\t\tHashMap<Integer, Integer> threadValues = waitingValues.get(threadID);\n\t\t\n\t\tif (threadValues.containsKey(n)\n\t\t\t\t&& Integer.MAX_VALUE == threadValues.get(n))\n\t\t\t// We have overflowed the wait count for this thread / value\n\t\t\tthrow new SemaphoreWaitOverflowException(\"Thread has overflowed \"\n\t\t\t\t\t+ \"its wait count for this value\");\n\t\t\n\t\t// Either initialise or increment the count for the current thread\n\t\tthreadValues.put(n, threadValues.containsKey(n)\n\t\t\t\t? threadValues.get(n) + 1 : 1);\n\t\t\n\t\t// Wait until we are able to decrease the Semaphore value.\n\t\t// (we are using the wait method of Object, not this one)\n\t\twhile (n > value) super.wait();\n\t\t\n\t\t// Decrease the Semaphore value.\n\t\tvalue -= n;\n\t\t\n\t\t// Output the Semaphore value\n\t\tSystem.out.println(\"Semaphore value decreased to \" + value);\n\t\t\n\t\t// Postcondition -- The value of the Semaphore should still be \n\t\t// non-negative.\n\t\tassert(value >= 0);\n\t}",
"public synchronized void signal(int n) throws IllegalArgumentException,\n\t\t\tSemaphoreOverflowException, SemaphoreAbuseException {\n\t\t// Precondition -- The value of the Semaphore should be non-negative.\n\t\tassert(value >= 0);\n\t\t\n\t\t// Check that n is positive\n\t\tif (n <= 0)\n\t\t\tthrow new IllegalArgumentException(\"n must be a positive \"\n\t\t\t\t\t+ \"integer\");\n\t\t\n\t\t// Check for potential overflow and throw an error if necessary.\n\t\tif (Integer.MAX_VALUE - value < n)\n\t\t\tthrow new SemaphoreOverflowException();\n\t\t\n\t\t/* Complicated code to handle 2.2 */\n\t\t// Get the ID of the current thread\n\t\tlong threadID = Thread.currentThread().getId();\n\t\t// Check that this thread has already signalled\n\t\tif (waitingValues.containsKey(threadID)) {\n\t\t\t// Get the map of values to the number of them we are waiting on.\n\t\t\tHashMap<Integer, Integer> threadValues\n\t\t\t\t\t= waitingValues.get(threadID);\n\t\t\t// If we are waiting on a given value\n\t\t\tif (threadValues.containsKey(n)) {\n\t\t\t\t// Get the number of times we are waiting on the value.\n\t\t\t\tint threadValue = threadValues.get(n);\n\t\t\t\tif (threadValue > 1)\n\t\t\t\t\t// If we are waiting on the value more than once,\n\t\t\t\t\t// decrement the number.\n\t\t\t\t\tthreadValues.put(n, threadValue - 1);\n\t\t\t\telse if (threadValue == 1)\n\t\t\t\t\t// If we are waiting on the value only once, remove the\n\t\t\t\t\t// value.\n\t\t\t\t\tthreadValues.remove(n);\n\t\t\t\telse\n\t\t\t\t\t// If we are waiting on the value less than once, this is\n\t\t\t\t\t// an error.\n\t\t\t\t\tassert(false);\n\t\t\t} else\n\t\t\t\t// This thread must be waiting on a value before we can signal\n\t\t\t\t// on it.\n\t\t\t\tthrow new SemaphoreAbuseException(\"This Thread is not \"\n\t\t\t\t\t\t+ \"waiting on this value\");\n\t\t} else\n\t\t\t// This thread must be waiting before we can signal.\n\t\t\tthrow new SemaphoreAbuseException(\"This Thread is not waiting on \"\n\t\t\t\t\t+ \"any value\");\n\t\t\n\t\t// Increase the Semaphore value.\n\t\tvalue += n;\n\t\t\n\t\t// Output the Semaphore value\n\t\tSystem.out.println(\"Semaphore value increased to \" + value);\n\t\t\n\t\t// Notify processes which are waiting on the Semaphore being \n\t\t// incremented. We cannot know which process will have a low enough \n\t\t// value of n to make progress (if any), so we need to wake them all.\n\t\tnotifyAll();\n\t\t\n\t\t// Postcondition -- The value of the Semaphore should be at least n.\n\t\tassert(value >= n);\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\twhile(true){\n\t\t\t\tsemaphore.acquire();\n\t\t\t\twhile(list.size()<10){\n\t\t\t\t\tlist.add(1);\n\t\t\t\t\tSystem.out.println(\"生产者放入一个产品,目前有\"+list.size()+\"个产品\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"队列满\"+\"等待消费者消费\");\n\t\t\t\tsemaphore.release();\n\t\t\t\tThread.sleep(500);\n\t\t\t\t}\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"@Override\n\t\tpublic void run() {\n\t\t\twhile(true){\n\t\t\t\ttry {\n\t\t\t\t\tsemaphore.acquire();\n\t\t\t\t\twhile(!list.isEmpty()){\n\t\t\t\t\t\tlist.remove(0);\n\t\t\t\t\t\tSystem.out.println(\"消费者消费一个产品,目前所剩\"+list.size()+\"个产品\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"队列空,等待生产者生产\");\n\t\t\t\t\tsemaphore.release();\n\t\t\t\t\tThread.sleep(500);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public void ponerMarchaTren() {\n\n try {\n this.semLugarTren.acquire(this.capacidadTren); \n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) {\n\t\tnew SemaphoreExample().main();\n\t}",
"public void acquire() {\r\n return;\r\n }",
"@Override\n\tpublic void run() {\n\t\tif (this.getName().equals(\"A\")) {\n\t\t\tSystem.out.println(\"Starting \" + threadName);\n\t\t\ttry {\n\t\t\t\t// First, get a permit.\n\t\t\t\tSystem.out.println(threadName + \" is waiting for a permit.\");\n\n\t\t\t\t// acquiring the lock\n\t\t\t\tsem.acquire();\n\n\t\t\t\tSystem.out.println(threadName + \" gets a permit.\");\n\n\t\t\t\t// Now, accessing the shared resource.\n\t\t\t\t// other waiting threads will wait, until this\n\t\t\t\t// thread release the lock\n\t\t\t\tfor (int i = 0; i < 5; i++) {\n\t\t\t\t\tShared.count++;\n\t\t\t\t\tSystem.out.println(threadName + \": \" + Shared.count);\n\n\t\t\t\t\t// Now, allowing a context switch -- if possible.\n\t\t\t\t\t// for thread B to execute\n\t\t\t\t\tThread.sleep(10);\n\t\t\t\t}\n\t\t\t} catch (InterruptedException exc) {\n\t\t\t\tSystem.out.println(exc);\n\t\t\t}\n\n\t\t\t// Release the permit.\n\t\t\tSystem.out.println(threadName + \" releases the permit.\");\n\t\t\tsem.release();\n\t\t}\n\n\t\t// run by thread B\n\t\telse {\n\t\t\tSystem.out.println(\"Starting \" + threadName);\n\t\t\ttry {\n\t\t\t\t// First, get a permit.\n\t\t\t\tSystem.out.println(threadName + \" is waiting for a permit.\");\n\n\t\t\t\t// acquiring the lock\n\t\t\t\tsem.acquire();\n\n\t\t\t\tSystem.out.println(threadName + \" gets a permit.\");\n\n\t\t\t\t// Now, accessing the shared resource.\n\t\t\t\t// other waiting threads will wait, until this\n\t\t\t\t// thread release the lock\n\t\t\t\tfor (int i = 0; i < 5; i++) {\n\t\t\t\t\tShared.count--;\n\t\t\t\t\tSystem.out.println(threadName + \": \" + Shared.count);\n\n\t\t\t\t\t// Now, allowing a context switch -- if possible.\n\t\t\t\t\t// for thread A to execute\n\t\t\t\t\tThread.sleep(10);\n\t\t\t\t}\n\t\t\t} catch (InterruptedException exc) {\n\t\t\t\tSystem.out.println(exc);\n\t\t\t}\n\t\t\t// Release the permit.\n\t\t\tSystem.out.println(threadName + \" releases the permit.\");\n\t\t\tsem.release();\n\t\t}\n\t}",
"int await() throws InterruptedException {\n\t\tnumAcquiredSemaphore.acquire();\n\t\t\n\t\t// grab my result index\n\t\tint result = numAcquired;\n\t\t\n\t\t// increment the index for the next guy to read\n\t\tnumAcquired++;\n\t\t\n\t\t// let others read shared var\n\t\tnumAcquiredSemaphore.release();\n\n\t\t// we'll use an IF here because we're going to reset numAcquired after we get through.\n\t\tif (numAcquired != parties){\n\t\t\t// if we're not the last party here, acquire a lock\n\t\t\t//System.out.println(\"Acquiring...\");\n\t\t\tgateSemaphore.acquire();\n\t\t}\n\t\t// sanity check: the first one we see here should ALWAYS be the largest index.\n\t\t//System.out.println(\"I'm through, result: \" + result);\n\t\t\n\t\t// once we get here, ALL parties except the active one should be acquired (waiting)\n\t\t\n\t\tif (numAcquired == parties) {\n\t\t\t// reset numAcquired so the gate is cyclical\n\t\t\tnumAcquired = 0;\n\t\t\t\n\t\t\t// release the lock for ready parties.\n\t\t\tgateSemaphore.release(parties - 1);\n\t\t}\n\t\t\n\t\t// return the original order we acquired the lock in\n\t\treturn result;\n\t}",
"public static void main(String[] args) throws InterruptedException {\n Semaphore cutHairStartedSig = new Semaphore(0, true);\n Semaphore cutHairFinishedSig = new Semaphore(0, true);\n ExecutorService exec = Executors.newCachedThreadPool();\n\n // barber\n exec.submit(() -> handleInterruptedException(() -> {\n while (true) {\n boolean pendingHaircut = false;\n synchronized (_02_barbershop.class) {\n if (freeChairs < SEATS_CNT) {\n pendingHaircut = true;\n }\n }\n\n if (!pendingHaircut) {\n System.out.println(\"[B] Barber goes to sleep...\");\n Thread.sleep(SLEEP_OFFSET + 1000);\n } else {\n cutHairStartedSig.release();\n System.out.println(\"[B] Barber is cutting hair...\");\n Thread.sleep(SLEEP_OFFSET + HAIRCUT_DURATION + (ThreadLocalRandom.current().nextInt() % 1000));\n cutHairFinishedSig.release();\n synchronized (_02_barbershop.class) {\n freeChairs++;\n }\n }\n }\n }));\n\n // clients\n for (int i = 0; i < 6; i++) {\n final int customerID = i;\n exec.submit(() -> handleInterruptedException(() -> {\n while (true) {\n if (ThreadLocalRandom.current().nextInt() % 100 > 50) {\n Thread.sleep(SLEEP_OFFSET + 1000 + (ThreadLocalRandom.current().nextInt() % 5000));\n continue;\n }\n\n boolean pendingHaircut = false;\n synchronized (_02_barbershop.class) {\n if (freeChairs > 0) {\n freeChairs--;\n System.out.printf(\"[C] Client %d takes a free chair... Remaining seats=%d\\n\", customerID, freeChairs);\n pendingHaircut = true;\n }\n }\n\n if (pendingHaircut) {\n cutHairStartedSig.acquire();\n System.out.printf(\"[C] Client %d is getting their hair cut...\\n\", customerID);\n cutHairFinishedSig.acquire();\n } else {\n System.out.printf(\"[C] Client %d leaves as there are no free chairs...\\n\", customerID);\n }\n\n Thread.sleep(SLEEP_OFFSET + 2000 + (ThreadLocalRandom.current().nextInt() % 1000));\n }\n }));\n }\n\n Thread.sleep(20000);\n exec.shutdownNow();\n exec.awaitTermination(5, TimeUnit.SECONDS);\n }",
"public QualitySemaphore(int n) {\n\t\t// Precondition -- None\n\t\tassert(true);\n\t\t\n\t\t// Initialise signalValues;\n\t\twaitingValues = new HashMap<Long, HashMap<Integer, Integer>>();\n\t\t\n\t\t// Set the value of the Semaphore\n\t\tvalue = n;\n\t\t\n\t\t// Postcondition -- The value of the Semaphore should be non-negative \n\t\t// and equal to n.\n\t\tassert(value >= 0 && value == n);\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\tfor(int i=2;i<=100;i=i+2){\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tlock.lock();\n\t\t\t\t\tSystem.out.println(Thread.currentThread().getName()+i);\n\t\t\t\t\tc1.signal();\n\t\t\t\t\tc2.await();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}finally{\n\t\t\t\t\tlock.unlock();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void run() {\n\t\t\tfor(int i=1;i<=100;i=i+2){\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tlock.lock();\n\t\t\t\t\tSystem.out.println(Thread.currentThread().getName()+i);\n\t\t\t\t\tc1.await();\n\t\t\t\t\tc2.signal();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}finally{\n\t\t\t\t\tlock.unlock();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}",
"void lock();",
"public void run()\r\n\t{\n\r\n\t\ttry {\r\n\t\t\tthis.r1.acquire(id);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tthis.r2.acquire(id);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tThread.sleep(500);\r\n\t\t}\r\n\t\tcatch (InterruptedException ex) {\r\n\t\t\tLogger.getLogger(process.class.getName()).log(Level.SEVERE, null, ex);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"----- Process_\" + id + \" is working.\");\r\n\t\t\r\n\t\tprocess.r1.release(id);\r\n\t\tprocess.r2.release(id);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tThread.sleep(500);\r\n\t\t} catch (InterruptedException ex) {\r\n\t\t\tLogger.getLogger(process.class.getName()).log(Level.SEVERE, null, ex);\r\n\t\t}\t\t\r\n\t}",
"@Override\n\tpublic void run() {\n\t\t\tfor(int i = 0; i<2;i++){\n\t\t\t\tsynchronized (this) {\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tSystem.out.println(Thread.currentThread().getName()+\"正在等待\");\n\t\t\t\t\t\t//rl.lock();\n\t\t\t\t\t\tSystem.out.println(Thread.currentThread().getName()+\"得到锁\");\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}finally {\n\t\t\t\t\t\t//rl.unlock();\n\t\t\t\t\t\tSystem.out.println(Thread.currentThread().getName()+\"释放锁\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"=============\");\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t}",
"public void synchronize(){ \r\n }",
"void synchronizationDone();",
"public void uponRelease() {\n try {\n\n int size = waitingList.size();\n if (size > 0) {\n int random = (int) (stream.getNumber() * size);\n NodeThread next = (NodeThread)waitingList.get(random);\n next.wakeUp();\n }\n\n } catch (IOException e) {}\n }",
"public synchronized void acquire(int id) throws InterruptedException\r\n\t{\r\n\t\twhile (avail2 == 0) {\r\n\t\t\tSystem.out.println(\"+Process_\" + id + \" is waiting for SR2.\");\r\n\t\t\twait();\r\n\t\t}\r\n\t\tSystem.out.println(\"Process_\" + id + \" acquired SR2.\");\r\n\t\t//assigns one of the available instances\r\n\t\tavail2--;\r\n\t}",
"public String toString()\n {\n return \"SimpleSemaphore2 value=\"+value()+\n \" maxvalue=\"+maxvalue+\" waiting=\"+\n queue();\n }",
"@Override\n protected int tryAcquireShared(int ignored) {\n if (isSignalled()) {\n return 1;\n }\n\n return -1;// check in AbstractQueuedSynchronizer.doAcquireSharedInterruptibly() why -1 returned here.\n }",
"protected DefaultPromise()\r\n/* 44: */ {\r\n/* 45: 83 */ this.executor = null;\r\n/* 46: */ }",
"public synchronized void p() \n {\n while (value <=0) {\n try \n { \n waiting++;\n wait(); \n waiting--;\n } // attende\n catch(InterruptedException e){}\n }\n value--;\n }",
"@SuppressWarnings(\"SynchronizationOnLocalVariableOrMethodParameter\") // I know what I'm doing - famous last words.\n private static void awaitCompletion(final HashMultimap<UUID, Future<Void>> handles) {\n final Set<Future<Void>> futures;\n synchronized (handles) {\n futures = new HashSet<>(handles.values());\n handles.clear();\n }\n\n for (final Future<Void> future : futures) {\n await(future);\n }\n }",
"public synchronized void acquire(int id) throws InterruptedException\r\n\t{\r\n\t\twhile (avail1 == 0) {\r\n\t\t\tSystem.out.println(\"+Process_\" + id + \" is waiting for SR1\");\r\n\t\t\twait();\r\n\t\t}\r\n\t\tSystem.out.println(\"Process_\" + id + \" acquired SR1.\");\r\n\t\t//assigns one of the available instances\r\n\t\tavail1--;\r\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t\twhile(true) {\n\t\t\tnumNodes = proposer.node.peers.size()+ 1;\n\t\t\tmajority = (int) (Math.ceil(numNodes/2.0));\n\t\t\t\n\t\t\tif(!this.proposer.promiseQueues.isEmpty()) {\n\t\t\t\t//System.out.println(\"Promise Listener --- Promise Queue not empty\");\n\t\t\t}\n\t\t\t\n\t\t\tfor(Map.Entry<Integer, LinkedHashMap<Integer, QueueObject>> slotEntry: this.proposer.promiseQueues.entrySet()){\n\t\t\t\tInteger slot = slotEntry.getKey();\n\t\t\t\tHashMap<Integer, QueueObject> slotQueue = slotEntry.getValue();\n\t\t\t\tint numberPromises = slotQueue.size();\n\t\t\t\t//System.out.println(\"Number of promises:\" + numberPromises);\n\t\t\t\t//System.out.println(\"Majority:\" + majority);\n\t\t\t\tif(numberPromises >= majority) {\n\t\t\t\t//\tSystem.out.println(\"Inside if > : Number promises:\" + numberPromises + \" Majority:\" + majority);\n\t\t\t\t\tint m = -1;\n\t\t\t\t\tCalendar v = new Calendar();\n\t\t\t\t\tfor(Map.Entry<Integer, QueueObject> queueEntry : slotQueue.entrySet()) {\n\t\t\t\t\t//\tSystem.out.println(\"In for loop of slotQUeue...\");\n\t\t\t\t\t\tint key = queueEntry.getKey();\n\t\t\t\t\t//\tSystem.out.println(\"Looking for logslot:\" + key);\n\n\t\t\t\t\t\tQueueObject value = queueEntry.getValue();\n\t\t\t\t\t//\tSystem.out.println(\"Value of accNum:\" + value.accNum);\n\t\t\t\t\t//\tSystem.out.println(\"Value of m:\" + m);\n\t\t\t\t\t\tif(value.accNum != -1) {\n\t\t\t\t\t\t\tif(value.accNum > m) {\n\t\t\t\t\t\t\t//\tSystem.out.println(\"Value of accNum:\" + value.accNum);\n\t\t\t\t\t\t\t\tm = this.proposer.myProposals.get(slot).proposalNumber;\n\t\t\t\t\t\t\t\tv = this.proposer.myProposals.get(slot).calendar;\n\t\t\t\t\t\t\t\t//v = value.accVal;\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\tif(!this.proposer.committedSlots.contains(slot)) {\n\t\t\t\t\t\tthis.proposer.sendAccept(m, v, slot);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(proposer.terminate) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tThread.sleep(10);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void dispatchCall() {\r\n try {\r\n /**\r\n * Se disminuye el contador del semáforo para marcar un empleado\r\n * como ocupado\r\n */\r\n semaphore.acquire();\r\n\r\n /**\r\n * Obtenemos el índice del empleado disponible\r\n */\r\n int assignedEmployee = getFreeEmployee();\r\n if (assignedEmployee != -1) {\r\n\r\n /**\r\n * Se simula el tiempo requerido para la llamada telefónica\r\n * (entre 5 y 10 segundos)\r\n */\r\n long duration = ThreadLocalRandom.current().nextLong(5, 10);\r\n System.out.printf(\"%s atendiendo %s Duracion llamada %s\\n\",\r\n employees.get(assignedEmployee),\r\n Thread.currentThread().getName(),\r\n duration);\r\n\r\n Thread.sleep(TimeUnit.SECONDS.toMillis(duration));\r\n\r\n /**\r\n * Una vez terminada la llamada se libera el empleado para que\r\n * pueda ser accedidos por las llamadas pendientes.\r\n */\r\n releaseEmployee(assignedEmployee);\r\n }\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n } finally {\r\n System.out.printf(\"%s: Finalizada\\n\", Thread\r\n .currentThread().getName());\r\n\r\n /**\r\n * Incrementamos el contador de nuevo\r\n */\r\n semaphore.release();\r\n }\r\n }",
"@Override\r\n public void run() { \r\n do{\r\n if(resList[resId].semaphore.tryLock()){ //gets lock and returns true if free (basically wait)\r\n try{\r\n this.doJob();\r\n }\r\n catch(Exception e){ //just in case\r\n System.out.println(e.toString());\r\n }\r\n finally{\r\n resList[resId].semaphore.unlock(); //frees resource (basically signal)\r\n }\r\n }\r\n } while(!shutdown);\r\n \r\n System.out.println(name + \" stopped.\"); //notify that the thread has stopped.\r\n }",
"@Override\n public void sizeChanged(IntBuffer collection) {\n semaphore.release();\n }",
"@SuppressWarnings(\"SynchronizationOnLocalVariableOrMethodParameter\") // I know what I'm doing - famous last words.\n private static void awaitCompletion(final HashMultimap<UUID, Future<Void>> handles, final UUID handle) {\n final Set<Future<Void>> futures;\n synchronized (handles) {\n futures = handles.removeAll(handle);\n }\n\n for (final Future<Void> future : futures) {\n await(future);\n }\n }",
"@Override\n public void delayDeleteReplica() {\n try {\n semaphore.acquire(1);\n } catch (InterruptedException e) {\n // ignore.\n }\n }",
"public void Release(String name, int type) throws RemoteException\r\n\t{\r\n\t\tSyncRecord rec;\r\n\t\ttry {\r\n\t\ttry {\r\n\t\t\trec = findObject(name,type);\r\n\t\t} catch (NotFoundException e) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// Decrement semaphore count\r\n\t\tif (rec.max!=0)\r\n\t\t{\r\n\t\t\trec.count--;\r\n\t\t}\r\n\t\t// for signals, resume all waiting threads,\r\n\t\t// for mutex and semaphores, just the first\r\n\t\tif (type==SIGNAL)\r\n\t\t{\r\n\t\t\twhile (!rec.queue.isEmpty())\r\n\t\t\t\tresumeThread(rec);\r\n\t\t}\r\n\t\telse\r\n\t\t\tresumeThread(rec);\r\n\t\t} catch (Exception e) {\r\n\t\t\tDebug.DisplayException(\"Release\",e);\r\n\t\t}\r\n\t}",
"protected abstract long waitOnQueue();",
"private static void m200a() {\r\n Object obj = AuthTask.f155a;\r\n synchronized (obj) {\r\n try {\r\n obj.notify();\r\n } catch (Exception e) {\r\n }\r\n }\r\n }",
"@Override\n public String toString() {\n return super.toString() + \"\t\tsem: \" + sem;\n }",
"public void acquire() throws InterruptedException {\n\t\tsynchronized (this) {\n\t\t\twhile (count == 0) {\n\t\t\t\tthis.wait();\n\t\t\t}\n\t\t\tcount--;\n\t\t}\n\t}",
"Thread getLocker();",
"synchronized void askForCritical() {\n\nSC=true;\n\nwhile(!Jeton){\n\ttry{\nthis.wait();\n\t}catch( InterruptedException ie ){\n\t\t\n\t}\n}\n}",
"private synchronized void addTask(Runnable runnable) {\r\n mTaskQueue.add(runnable);\r\n try {\r\n if (mPoolThreadHandler==null){\r\n mSemaphorePoolThreadHandler.acquire();\r\n }\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n mPoolThreadHandler.sendEmptyMessage(0x110);\r\n }",
"@Override\r\n\t\tpublic int getNumParameters() {\r\n return this.sem.getNumFreeParams();\r\n }",
"@Override\n\tpublic void run() {\n\t\tthis.avancaPessoa(200, 4, 6);\n\t\ttry {\n\t\t\tsemaforo.acquire();\n\t\t\tthis.portaPessoa(1, 2);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tsemaforo.release();\n\t\t\tthis.passaPessoa();\n\t\t}\n\t}",
"public void lock() {\n\n }",
"@Test\r\n\tpublic void testRunAllSucceedSecond() throws Exception {\n\t\tRandom randomGen = Mockito.mock(Random.class);\r\n\t\twhen(randomGen.nextInt(2)).thenReturn(0);\r\n\t\tReflectionTestUtils.setField(semaphoreGatedRunner, \"randomGen\", randomGen);\r\n\t\tsemaphoreGatedRunner.setMaxNumberRunners(2);\r\n\r\n\t\twhen(mockSemaphoreDao.attemptToAcquireLock(semaphoreKey + \"-1\", timeoutMS)).thenReturn(null);\r\n\t\tString token = \"someToken\";\r\n\t\twhen(mockSemaphoreDao.attemptToAcquireLock(semaphoreKey + \"-0\", timeoutMS)).thenReturn(token);\r\n\t\t// run\r\n\t\tCallable<Void> call = Mockito.mock(Callable.class);\r\n\t\tsemaphoreGatedRunner.attemptToRunAllSlots(call, null);\r\n\t\tverify(call).call();\r\n\t\tverify(mockSemaphoreDao).attemptToAcquireLock(semaphoreKey + \"-1\", timeoutMS);\r\n\t\tverify(mockSemaphoreDao).attemptToAcquireLock(semaphoreKey + \"-0\", timeoutMS);\r\n\t\tverify(mockSemaphoreDao).releaseLock(semaphoreKey + \"-0\", token);\r\n\t\tverify(mockSemaphoreDao, never()).releaseLock(eq(semaphoreKey + \"-1\"), anyString());\r\n\t\tverifyNoMoreInteractions(mockSemaphoreDao);\r\n\t}",
"void lockGranted(LockHandle lockHandle);",
"public static void main(String args[]) throws InterruptedException {\n\t\tSemaphore sem = new Semaphore(1);\n\n\t\t// creating two threads with name A and B\n\t\t// Note that thread A will increment the count\n\t\t// and thread B will decrement the count\n\t\tMyThread mt1 = new MyThread(sem, \"A\");\n\t\tMyThread mt2 = new MyThread(sem, \"B\");\n\n\t\t// stating threads A and B\n\t\tmt1.start();\n\t\tmt2.start();\n\n\t\t// waiting for threads A and B\n\t\tmt1.join();\n\t\tmt2.join();\n\n\t\t// count will always remain 0 after\n\t\t// both threads will complete their execution\n\t\tSystem.out.println(\"count: \" + Shared.count);\n\t}",
"@Test\r\n\tpublic void testRunAllSucceedFirst() throws Exception {\n\t\tRandom randomGen = Mockito.mock(Random.class);\r\n\t\twhen(randomGen.nextInt(2)).thenReturn(0);\r\n\t\tReflectionTestUtils.setField(semaphoreGatedRunner, \"randomGen\", randomGen);\r\n\t\tsemaphoreGatedRunner.setMaxNumberRunners(2);\r\n\r\n\t\tString token = \"someToken\";\r\n\t\twhen(mockSemaphoreDao.attemptToAcquireLock(semaphoreKey + \"-1\", timeoutMS)).thenReturn(token);\r\n\t\t// run\r\n\t\tCallable<Void> call = Mockito.mock(Callable.class);\r\n\t\tsemaphoreGatedRunner.attemptToRunAllSlots(call, null);\r\n\t\tverify(call).call();\r\n\t\tverify(mockSemaphoreDao).attemptToAcquireLock(semaphoreKey + \"-1\", timeoutMS);\r\n\t\tverify(mockSemaphoreDao).releaseLock(semaphoreKey + \"-1\", token);\r\n\t\tverifyNoMoreInteractions(mockSemaphoreDao);\r\n\t}",
"public void hydrogen(Runnable releaseHydrogen) throws InterruptedException {\n h.acquire();\n releaseHydrogen.run();\n try {\n c.await();\n } catch (BrokenBarrierException e) {\n e.printStackTrace();\n }\n }",
"void lock(String resourceName) throws InterruptedException;",
"public static void main(String[] args)throws InterruptedException, ExecutionException {\n\t\tList<String> l1=new ArrayList<>(),l2=new ArrayList<>(),l3=new ArrayList<>();\n\t\tl1.add(\"Eng\");\n\t\tl2.add(\"Doc\");\n\t\tPerson p1=new Person(1,LocalDate.now(),l1);\n\t\tPerson p2=new Person(2,LocalDate.now(),l2);\n\t\tl3.add(\"Arts\");\n\t\tPerson p3=new Person(3,LocalDate.now(),l3);\n\t\tPerson p4=new Person(4,LocalDate.now().minusDays(2),l2);\n\t\tList<Person> lp=new ArrayList<>();\n\t\tlp.add(p1);\n\t\tlp.add(p2);\n\t\t\n\t\t\n\t\tExecutorService service = Executors.newFixedThreadPool(10);\n\t\tSemaphore semaphore = new Semaphore(10);\n\t\tFutureTask<List<Person>> future=new FutureTask<List<Person>>(new Test(lp,semaphore));\n\t\tFutureTask<String> futurew1=new FutureTask<String>(new TestWrite(lp,p3,semaphore));\n\t\tFutureTask<String> futurew2=new FutureTask<String>(new TestWrite(lp,p4,semaphore));\n\t\t\n\t\tservice.execute(future);\n\t\tfor(Person p:future.get())\n\t\t{\n\t\t\tSystem.out.println(\"The result after seraching is \"+p.toString());\n\t\t}//future.wait();\n\t\tservice.execute(futurew1);\n\t\tSystem.out.println(futurew1.get());\n\t\t\n\t\t//if(futurew1.isDone())\n\t\t\n\t\t{\n\t\t\tservice.execute(future);\n\t\t\tfor(Person p:future.get())\n\t\t\t{\n\t\t\t\tSystem.out.println(\"The result after seraching is \"+p.toString());\n\t\t\t}\n\t\t}\n\t\t\n\t\t//service.execute(futurew2);\n\t\t//System.out.println(futurew2.get());\n\t\t//if(future1.isDone())\n//\t\t{\n//\t\t\tservice.execute(future);\n//\t\t\tSystem.out.println();System.out.println();\n//\t\t\tfor(Person p:future.get())\n//\t\t\t{\n//\t\t\t\tSystem.out.println(\"The result after seraching is \"+p.toString());\n//\t\t\t}\n//\t\t}\n\t\tservice.shutdown();\n\t}",
"void lockReleased(String lock);",
"@Override\r\n\t\t\tpublic void progressMade() {\n\t\t\t\twriteReadSemaphore.refreshReadLock(lockKey, readToken, lockTimeoutSec);\r\n\t\t\t}",
"private static void grant( String lockId ) {\n\t\tSemaphore s = threadPark.get( lockId );\n\t\tif( s != null ) {\n\t\t\ts.release();\n\t\t} else {\n\t\t\tlog.warn( \"Got a lock that nobody wanted ... \");\n\t\t\t// need to release it\n\t\t\tproxy.tell( new ReleaseLock(lockId), ActorRef.noSender());\n\t\t}\n\t}",
"@Override\r\n\t\t\tpublic void progressMade() {\n\t\t\t\twriteReadSemaphore.refreshWriteLock(lockKey, finalWriteToken, lockTimeoutSec);\r\n\t\t\t}",
"Future_<V> take() throws InterruptedException;",
"@Override\n\t\tpublic void lock() {\n\n\t\t\tsynchronized (lock) {\n\t\t\t\twhile (readers > 0 || writers > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlock.wait();\n\t\t\t\t\t} catch (InterruptedException e) {\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twriters++;\n\t\t\t}\n\t\t}",
"private Interrupt(Object semaphore, String interrupt_key) {\n this.semaphore = semaphore;\n this.interrupt_key = interrupt_key;\n }",
"public static void waitForMasterDone() {\r\n try {\r\n master_done_semaphore.acquire();\r\n } catch (InterruptedException e) {\r\n }\r\n }",
"@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\twhile(true)\n\t\t\t\t{\n\t\t\t\t\tfor(int i =0 ; i< secuencia.length; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t\tGdeMonitor.dispararTransicion(secuencia[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"void queueShrunk();",
"public Barrier (int max) {\n\t\tMAX_THREADS_TO_SYNCHRONIZE = max;\n\t\tcount = 0;\n\t}",
"void waitAll();",
"public void triggerMutex() {\n if (mutex.availablePermits() == 0) {\n mutex.release();\n } else {\n try {\n mutex.acquire();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }",
"public void triggerMutex() {\n if (mutex.availablePermits() == 0) {\n mutex.release();\n } else {\n try {\n mutex.acquire();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }",
"public void permisoEscribir(int idEscritor) throws InterruptedException;",
"private void basicReleaseLock() {\n if (logger.isTraceEnabled(LogMarker.DLS_VERBOSE)) {\n logger.trace(LogMarker.DLS_VERBOSE, \"[DLockToken.basicReleaseLock] releasing ownership: {}\",\n this);\n }\n\n leaseId = -1;\n lesseeThread = null;\n leaseExpireTime = -1;\n thread = null;\n recursion = 0;\n ignoreForRecovery = false;\n\n decUsage();\n }",
"public List<EmployeePerformance> getEmployeePerformance() throws InterruptedException {\n\n final Semaphore semaphoreEmp = new Semaphore(0);\n final List<EmployeePerformance> statisticsEmp = new ArrayList<>();\n\n\n Query getStatistics = myRef.getReference()\n .child(\"EmployeesTrack\");\n\n\n\n getStatistics.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot snapshot) {\n\n for(DataSnapshot dataSnapshot : snapshot.getChildren()){\n statisticsEmp.add(dataSnapshot.getValue(EmployeePerformance.class));\n if(statisticsEmp.size() == snapshot.getChildrenCount()) semaphoreEmp.release();\n\n }\n }\n\n @Override\n public void onCancelled(DatabaseError error) {\n\n }\n });\n\n\n semaphoreEmp.acquire();\n return statisticsEmp;\n }",
"public void run() {\n\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t//Acquires a permit blocking until one is available, or the thread is interrupted.\n\t\t\t\t//View if there is some space f the buffer to produce data\n\t\t\t\tempty.acquire();\n\t\t\t\t\n\t\t\t\t//Acquires a permit blocking until one is available, or the thread is interrupted.\n\t\t\t\t//Semaphore for mutual exclusion, acquires the lock to into critical section\n\t\t\t\tmutex.acquire();\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Produciendo un recurso (PRODUCTOR)\");\n\t\t\t\t//Produce data in the buffer\n\t\t\t\tbuffer.fill();\n\t\t\t\tSystem.out.println(\"Liberación (PRODUCTOR)\");\n\t\t\t\t\n\t\t\t\t// sleep the Consumidor to work in different time\n\t\t\t\tsleep((long) ((Math.random())%1000));\n\t\t\t\t\n\t\t\t\t//releases the lock\n\t\t\t\tmutex.release();\n\t\t\t\t\n\t\t\t\t//Releases a permit, increasing the number of available permits by one\n\t\t\t\tfull.release();\n\n\t\t\t\t\n\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"synchronized void put(int n) { \r\n\tif(valueSet) \r\n\ttry { \r\n\twait(); \r\n\t} catch(InterruptedException e) { \r\n\tSystem.out.println(\"InterruptedException caught\"); \r\n\t} \r\n\tthis.n = n; \r\n\tvalueSet = true; \r\n //imprimo mensaje\r\n\t System.out.println(\"El hilo1 produce el numero:\"+n);\r\n\tnotify(); \r\n\t}",
"public void add_elements()\n {\n\tint n = 0;\n\tSystem.out.println(Thread.currentThread().getName() + \" is waiting for permit\");\n\ttry\n\t{\n\t semaphoreIm.P();\n\t System.out.println(Thread.currentThread().getName()+ \" has got permit\");\n\t while (num_elements > 0)\n\t {\n\t buf.add(n, id);\t\t\t\t\t\t\t\n\t n++;\n\t num_elements--;\n\t }\n\t}\n\tcatch (InterruptedException e)\n\t{\n\t\t\n\t}\n\tSystem.out.println(Thread.currentThread().getName()+\n \" has released permit\");\n\tsemaphoreIm.V();\n }",
"void waitAndReleaseAllEntities();"
] | [
"0.7691782",
"0.73534745",
"0.7198671",
"0.6965275",
"0.6964507",
"0.67684716",
"0.67113173",
"0.6690353",
"0.6579901",
"0.6518611",
"0.64915967",
"0.648505",
"0.6481193",
"0.6461101",
"0.63488656",
"0.6318389",
"0.628259",
"0.62087417",
"0.6191924",
"0.6182074",
"0.6142991",
"0.6101013",
"0.6031331",
"0.5991632",
"0.5955244",
"0.59159887",
"0.589792",
"0.5897664",
"0.5829371",
"0.5799663",
"0.5751995",
"0.57346976",
"0.57078654",
"0.5670843",
"0.5623195",
"0.5515713",
"0.5514812",
"0.55095977",
"0.5486349",
"0.54766476",
"0.5446832",
"0.5446679",
"0.54150057",
"0.54115415",
"0.5397885",
"0.5389643",
"0.5389334",
"0.53665686",
"0.5364229",
"0.5362573",
"0.53593236",
"0.5352573",
"0.5349423",
"0.5343963",
"0.5304302",
"0.529377",
"0.5289491",
"0.5286869",
"0.5274056",
"0.5230574",
"0.52204233",
"0.5216607",
"0.52157813",
"0.52065927",
"0.5205175",
"0.5199947",
"0.5197808",
"0.5191774",
"0.51786184",
"0.5166549",
"0.516372",
"0.51607865",
"0.51289093",
"0.5122083",
"0.5118088",
"0.51032686",
"0.5098965",
"0.5093578",
"0.50906754",
"0.5090521",
"0.5088837",
"0.5084695",
"0.5064318",
"0.50642633",
"0.5049902",
"0.5046568",
"0.5043227",
"0.50414306",
"0.504036",
"0.50387704",
"0.50323963",
"0.5031859",
"0.5031859",
"0.50302833",
"0.5026653",
"0.50217664",
"0.50214565",
"0.50203073",
"0.50034904",
"0.49967054"
] | 0.6799257 | 5 |
gibt die Rechte Gabel zurueck | public Fork getRight() {
return right;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void popuniTabelu() {\n try {\n List<PutnikEntity> putnici=Controller.vratiSvePutnike();\n TableModel tm=new PutnikTableModel(putnici);\n jtblPutnici.setModel(tm);\n } catch (Exception ex) {\n Logger.getLogger(FIzaberiLet.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private void srediTabelu() {\n\n mtu = (ModelTabeleUlica) jtblUlica.getModel();\n ArrayList<Ulica> ulice = kontrolor.Kontroler.getInstanca().vratiUlice();\n mtu.setLista(ulice);\n\n }",
"@Override\n public String toString() {\n return String.format(\"[%d] [%d]\", dameFila(), dameColumna());\n }",
"public String toString() {\n\t\treturn \"(\" + obtenerFila() + \"/\" + obtenerColumna() + \")\";\n\t}",
"private static void popuniTabelu() {\r\n\t\tDefaultTableModel dfm = (DefaultTableModel) teretanaGui.getTable().getModel();\r\n\r\n\t\tdfm.setRowCount(0);\r\n\r\n\t\tfor (int i = 0; i < listaClanova.size(); i++) {\r\n\t\t\tClan c = listaClanova.getClan(i);\r\n\t\t\tdfm.addRow(new Object[] { c.getBrojClanskeKarte(), c.getIme(), c.getPrezime(), c.getPol() });\r\n\t\t}\r\n\t\tcentrirajTabelu();\r\n\t}",
"@Override\n public String toString(){\n return \"G(\"+this.getVidas()+\")\";\n }",
"@Override\n public String toString() {\n int numeritosY = 0;\n int numeritosX = 0;\n StringBuilder datos = new StringBuilder(\" \");\n\n //Imprime los numeros de arriba\n for (int x = 0; x < casillas.length; x++) {\n datos.append(\" \").append(numeritosX);\n numeritosX++;\n }\n datos.append(\"\\n \");\n //Imprime la primera linea que corresponde con la parte superior del tablero.\n for (int x = 0; x < casillas.length; x++) {\n datos.append(\"\\033[33m\"+\"+----\"+\"\\033[0m\");\n }\n datos.append(\"\\033[33m\"+\"+\"+\"\\033[0m\");\n datos.append(\"\\n\");\n //Imprime el resto del tablero.\n for (int y = 0; y < casillas.length; y++) {\n datos.append(numeritosY).append(\"\\033[33m\"+\" | \"+\"\\033[0m\");\n for (int x = 0; x < casillas[y].length; x++) {\n datos.append(casillas[y][x].toString());\n }\n datos.append(\"\\n\");\n datos.append(\" \");\n for (int i = 0; i < casillas[y].length; i++) {\n datos.append(\"\\033[33m\"+\"+----\"+\"\\033[0m\");\n }\n datos.append(\"\\033[33m\"+\"+\"+\"\\033[0m\");\n datos.append(\"\\n\");\n numeritosY++;\n }\n return datos.toString();\n }",
"public void affichageLabyrinthe () {\n\t\t//Affiche le nombre de coups actuel sur la console et sur la fenetre graphique\n\t\tSystem.out.println(\"Nombre de coups : \" + this.laby.getNbCoups() + \"\\n\");\t\t\n\t\tthis.enTete.setText(\"Nombre de coups : \" + this.laby.getNbCoups());\n\n\t\t//Affichage dans la fenêtre et dans la console du labyrinthe case par case, et quand la case est celle ou se trouve le mineur, affiche ce dernier\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tString ligne = new String();\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (i != this.laby.getMineur().getY() || j != this.laby.getMineur().getX()) {\n\t\t\t\t\tligne = ligne + this.laby.getLabyrinthe()[i][j].graphismeCase();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j]=new Case();\n\t\t\t\t\tligne = ligne + this.laby.getMineur().graphismeMineur();\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif (grille.getComponentCount() < this.laby.getLargeur()*this.laby.getHauteur()) {\n\t\t\t\t\tgrille.add(new JLabel());\n\t\t\t\t\t((JLabel)grille.getComponents()[i*this.laby.getLargeur()+j]).setIcon(this.laby.getLabyrinthe()[i][j].imageCase(themeJeu));\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(ligne);\n\t\t}\n\t\t((JLabel)grille.getComponents()[this.laby.getMineur().getY()*this.laby.getLargeur()+this.laby.getMineur().getX()]).setIcon(this.laby.getMineur().imageCase(themeJeu));\n\t}",
"private void srediTabelu() {\n ModelTabeleStavka mts = new ModelTabeleStavka();\n mts.setLista(n.getLista());\n tblStavka.setModel(mts);\n }",
"private void fillLabelsTabel() {\n }",
"@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 }",
"@Override\npublic String toString() {// PARA MOSTRAR LOS DATOS DE ESTA CLASE\n// TODO Auto-generated method stub\nreturn MuestraCualquiera();\n}",
"@Override\n public String toString(){\n String juego = \"\";\n for (int[] tablero1 : tablero) {\n for (int casilla : tablero1) {\n juego += String.format(\"%2d \", casilla);\n }\n juego += String.format(\"%n\");\n }\n return juego;\n }",
"@Override\n public String toString() {\n return \"\\tMunicipio: \" + municipio + \"\\t\" + \"Habitantes: \" + habitantes + \".\";\n }",
"public void echantillon_zone(){\n\n JLabel lbl_Echantillon = new JLabel(\"Offre d'\\u00E9chantillons :\");\n lbl_Echantillon.setBounds(340, 170, 119, 16);\n add(lbl_Echantillon);\n\n // MODEL\n final DefaultTableModel model = new DefaultTableModel();\n final DefaultTableCellRenderer rightRenderer = new DefaultTableCellRenderer();\n rightRenderer.setHorizontalAlignment(JLabel.RIGHT);\n Object[][] o = new Object[sizeVector][2];\n for(int i = 0; i < sizeVector; i++){\n o[i][0] = medicaments.get(i)[0];\n o[i][1] = medicaments.get(i)[1];\n }\n // TABLE DATA\n model.setDataVector(o, new Object[]{\"M\\u00E9dicament\",\"Qt\\u00E9\"});\n\n\n // TABLE\n result_table = new JTable(model);\n result_table.setBounds(475, 170, 200, 150);\n result_table.getColumnModel().getColumn(1).setMaxWidth(40);\n result_table.getColumnModel().getColumn(1).setCellRenderer(rightRenderer);\n result_table.setEnabled(false);\n add(result_table);\n\n\n // SCROLLPANE\n JScrollPane apne= new JScrollPane(result_table);\n apne.setBounds(475, 170, 200, 150);\n add(apne);\n\n\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"Báo: \"+\"\\t\"+\", Số Trang: \"+soTrang+\", Nhà xuất bản: \"+nxb;\n\t}",
"public void tabla_campos() {\n int rec = AgendarA.tblAgricultor.getSelectedRow();// devuelve un entero con la posicion de la seleccion en la tabla\n ccAgricultor = AgendarA.tblAgricultor.getValueAt(rec, 1).toString();\n crearModeloAgenda();\n }",
"public void afficher() {\n\t\tfor(int i=0;i<this.taille;i++) {\n\t\t\tfor (int j=0;j<this.taille;j++) {\n\t\t\t\tSystem.out.print(grille.get(i).get(j).getTypeOccupation()+\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\" \");\n\t\t}\n\t}",
"@Override // prekrytie danej metody predka\r\n public String toString() {\r\n return super.toString()\r\n + \" vaha: \" + String.format(\"%.1f kg,\", dajVahu())\r\n + \" farba: \" + dajFarbu() + \".\";\r\n }",
"private void vulTabel() {\n\t\ttblSessies.setItems(sc.getSessieObservableLijst());\n\t\tclnTitel.setCellValueFactory(cel -> cel.getValue().getTitelProperty());\n\t\tclnVerantwoordelijke.setCellValueFactory(cel -> cel.getValue().getVerantwoordelijkeNaamProperty());\n\t\tclnStartdatum.setCellValueFactory(cel -> cel.getValue().getStartDatumProperty());\n\t\tclnDuur.setCellValueFactory(cel -> cel.getValue().getDuurProperty());\n\t\ttblSessies.getSelectionModel().selectedItemProperty().addListener((obs, oldV, newV) -> {\n\t\t\tsc.setSessie(newV);\n\t\t});\n\t\tthis.setVgrow(tblSessies, Priority.SOMETIMES);\n\t}",
"private void utvidtabellen() {\n\t\tCD[] hjelpeTab;\n\t\tif (cdTabell.length == 0) {\n\t\t\thjelpeTab = new CD[1];\n\t\t\tmaksAntall = 1;\n\t\t} else {\n\t\t\thjelpeTab = new CD[(int) Math.ceil(cdTabell.length * 1.1)];\n\t\t\tmaksAntall = hjelpeTab.length;\n\t\t}\n\t\tfor (int i = 0; i < cdTabell.length; i++) {\n\t\t\thjelpeTab[i] = cdTabell[i];\n\t\t}\n\t\tcdTabell = hjelpeTab;\n\t}",
"@Override\n public String getGenericLabel() {\n return \"Počet sloupců v každé tabulce\";\n }",
"@Override\n public String toString() {\n return columnToChar(c1) + \"\" + (8 - r1) + columnToChar(c2) + \"\" + (8 - r2);\n }",
"@Override\r\n public String toString() {\r\n StringBuilder cad = new StringBuilder(\"\");\r\n cad.append(\"\\nTabla: {\\n\");\r\n for (int i = 0; i < this.table.length; i++) {\r\n if(this.table[i] == null){\r\n cad.append(\"\\t()\\n\");\r\n }else{\r\n cad.append(\"\\t\").append(this.table[i].toString()).append(\"\\n\");\r\n }\r\n }\r\n cad.append(\"}\");\r\n return cad.toString();\r\n }",
"private static void dodajClanaUTabelu(Clan c) {\r\n\t\tDefaultTableModel dtm = (DefaultTableModel) teretanaGui.getTable().getModel();\r\n\t\tdtm.addRow(new Object[] { c.getBrojClanskeKarte(), c.getIme(), c.getPrezime(), c.getPol() });\r\n\t\tcentrirajTabelu();\r\n\t}",
"public void tablero(){\r\n System.out.println(\" X \");\r\n System.out.println(\" 1 2 3\");\r\n System.out.println(\" | |\");\r\n //imprimir primera fila\r\n System.out.println(\" 1 \"+gato[0][0]+\" | \"+gato[0][1]+\" | \"+gato[0][2]+\" \");\r\n System.out.println(\" _____|_____|_____\");\r\n System.out.println(\" | |\");\r\n //imprimir segunda fila\r\n System.out.println(\"Y 2 \"+gato[1][0]+\" | \"+gato[1][1]+\" | \"+gato[1][2]+\" \");\r\n System.out.println(\" _____|_____|_____\");\r\n System.out.println(\" | |\");\r\n //imprimir tercera fila\r\n System.out.println(\" 3 \"+gato[2][0]+\" | \"+gato[2][1]+\" | \"+gato[2][2]+\" \");\r\n System.out.println(\" | |\");\r\n }",
"Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);",
"Kerucut(){\r\n Tabung tab = new Tabung();\r\n tinggi=tab.getTinggi();\r\n }",
"public Farbe fuehrendesKamel();",
"private void xuLyLayMaDichVu() {\n int result = tbDichVu.getSelectedRow();\n String maDV = (String) tbDichVu.getValueAt(result, 0);\n hienThiDichVuTheoMa(maDV);\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"Tạp Chí: \"+\" Tựa đề: \"+ tuaDe+\", Số Trang: \"+soTrang+\", Nhà xuất bản: \"+nxb+\", Số Bài Viết: \"+soBaiViet;\n\t}",
"private void setzeBeschriftungen(){ \t\t\t\n\t\tif (jRBtnLinie.isSelected()) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// wenn linie gewählt ist: ..\n\t\t\tjLPositionX1.setText(\"Startpunkt x:\");\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// .. verschiedene labels für die textfelder anpassen für parameter-werte (x1,y1,x2,y2) [y1 bleibt immer gleich]\n\t\t\tjLPositionX2.setText(\"Endpunkt x:\");\n\t\t\tjLPositionY2.setText(\" y:\");\n\t\t} else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// wenn rechteck, oval, kreis:..\n\t\t\tjLPositionX1.setText(\"Position x:\");\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ... labels anpassen auf parameter-werte (x1, y1, breite, höhe) [y1 bleibt immer gleich]\t\t\t\t\n\t\t\tjLPositionX2.setText(\"Breite:\");\n\t\t\tjLPositionY2.setText(\"Höhe:\");\n\t\t}\n\t}",
"@Override\n public String toString()\n {\n String res = \"\";\n int teller = 1;\n res += \"\\nrij: \" + ANSI_RED + \"1\" + ANSI_RESET + \" 2 \" + ANSI_RED + \"3\" + ANSI_RESET + \" 4 \" + ANSI_RED + \"5\" + ANSI_RESET + \" 6 \" + ANSI_RED + \"7\" + ANSI_RESET + \" \\n\";\n for (Gangkaart gg[] : gangkaarten)\n {\n res += \" \";\n for (Gangkaart g : gg)\n {\n res += String.format(\"%s \", g.toStringRij1());\n }\n res += \"\\n\";\n res += \" \" + teller + \" \";\n for (Gangkaart g : gg)\n {\n res += String.format(\"%s \", g.toStringRij2());\n }\n res += \" \" + teller;\n res += \"\\n\";\n res += \" \";\n for (Gangkaart g : gg)\n {\n res += String.format(\"%s \", g.toStringRij3());\n }\n res += \"\\n\";\n teller++;\n }\n res += \"\\nrij: \" + ANSI_RED + \"1\" + ANSI_RESET + \" 2 \" + ANSI_RED + \"3\" + ANSI_RESET + \" 4 \" + ANSI_RED + \"5\" + ANSI_RESET + \" 6 \" + ANSI_RED + \"7\" + ANSI_RESET + \" \\n\";\n return res;\n }",
"private void MembentukListHuruf(){\n for(int i = 0; i < Panjang; i ++){\n Huruf Hrf = new Huruf();\n Hrf.CurrHrf = Kata.charAt(i);\n if(!IsVertikal){\n //horizontal\n Hrf.IdX = StartIdxX;\n Hrf.IdY = StartIdxY+i;\n }else{\n Hrf.IdX = StartIdxX+i;\n Hrf.IdY = StartIdxY;\n }\n // System.out.println(\"iniii \"+Hrf.IdX+\" \"+Hrf.IdY+\" \"+Hrf.CurrHrf+\" \"+NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].AddNoSoal(NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].Huruf=Hrf.CurrHrf;\n \n }\n }",
"@Override\n public String toString() {\n return tla;\n }",
"public void rozmiarTablicy()\n {\n iloscWierszy = tabelaDanych.getRowCount();\n iloscKolumn = tabelaDanych.getColumnCount();\n tablica = new int[iloscWierszy][iloscKolumn];\n // wypelnienie tablicy pomocniczej z wartościami tabeli\n for (int i = 0; i < iloscWierszy ; i++)\n {\n for (int j = 0; j < iloscKolumn; j++)\n {\n tablica [i][j] = (int) tabelaDanych.getValueAt(i,j);\n }\n }\n }",
"@Override\n public String toString(){\n return \"(\" + t + \", \" + u + \")\";\n }",
"public tabelAnggota() {\n initComponents();\n \n //membuat tablemodel\n model = new DefaultTableModel();\n //menambah tablemodel ke tabel\n jTable1.setModel(model);\n \n model.addColumn(\"ID Anggota\");\n model.addColumn(\"Nama\");\n model.addColumn(\"Alamat\");\n model.addColumn(\"No HP\");\n model.addColumn(\"Tanggal Lahir\");\n model.addColumn(\"Tanggal Bergabung\");\n \n loadData();\n enaButtonSimpan();\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn this.titolo + \" \" +this.autore + \" \" + this.genere;\r\n\t}",
"@Override\r\n public String toString() {\r\n String ausgabe = \"\";\r\n if (maschinenListe.isEmpty()) {\r\n ausgabe = \"Es ist keine Maschine vorhanden!\";\r\n } else {\r\n for (Maschine m : maschinenListe) {\r\n ausgabe += m.toString();\r\n }\r\n\r\n ausgabe += \"Einkopfmaschinen: \\n\";\r\n for (Maschine m : einKopfMaschinenListe) {\r\n ausgabe += m.toString();\r\n }\r\n\r\n ausgabe += \"ZweiBisAchtKopf: \\n\";\r\n for (Maschine m : zweiBisAchtKopfMaschinenListe) {\r\n ausgabe += m.toString();\r\n }\r\n\r\n ausgabe += \"ZehnUndMehrKopf: \\n\";\r\n for (Maschine m : zehnUndMehrKopfMaschinenListe) {\r\n ausgabe += m.toString();\r\n }\r\n }\r\n return ausgabe;\r\n }",
"public void leseViewAusModel() {\r\n Model model = Model.getInstanz();\r\n\r\n ATab aktuellerTab = model.getRoot();\r\n\r\n while (aktuellerTab.getNext() != null) {\r\n ArrayList<ATab> next = aktuellerTab.getNext();\r\n\r\n for (int j = 0; j < next.size(); j++) {\r\n if (next.get(j) instanceof Inhalt) {\r\n\r\n Inhalt tmpNext = (Inhalt) next.get(j);\r\n\r\n setInhalt(tmpNext.getName(), tmpNext.getInhalt());\r\n }\r\n }\r\n\r\n for (int j = 0; j < next.size(); j++) {\r\n\r\n if (next.get(j) instanceof Tab || next.get(j) instanceof Inhalt) {\r\n aktuellerTab = next.get(j);\r\n }\r\n }\r\n }\r\n }",
"public abstract String getBeschreibung();",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic String toString()\r\n\t{\r\n\t\tString result =\"Table:\\n\";\r\n\t\tfor (int i =0; i< this.tableSize; i++)\r\n\t\t{ \r\n\t\t\tLinkedArrays<T> L = (LinkedArrays<T>) table[i]; \r\n\t\t\tresult+= i+\": \";\r\n\t\t\tresult+= L.toString() ;\r\n\t\t\tif(i<this.tableSize-1)\r\n\t\t\t{ result +=\"\\n\"; }\r\n\t\t\t\r\n\t\t}\r\n\t\r\n\t\treturn result;\r\n\t}",
"@Override\npublic String toString() {\n\treturn (super.toString()+\"\"+this.matiere);\n}",
"private final void prepareOrginalValiesTable() {\n\t\torig_values_list = new ArrayList<ArrayList<String>>();\n\t\tfor (int col = 0; col < previewTable.getColumnCount(); ++col) {\n\t\t\tfinal ArrayList<String> n = new ArrayList<String>();\n\t\t orig_values_list.add( n);\n\t\t for (int row = 0; row < previewTable.getRowCount(); ++row) {\n\t\t \t//TODO what about list values?\n\t\t\t\tString v = (String) previewTable.getValueAt(row, col);\n\t\t\t\tn.add(v);\n\t\t\t}\n\t\t}\n\t}",
"public String getLabel(){\n\t\treturn sAnzeige;\n\t}",
"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 }",
"public TabellaModel() {\r\n lista = new Lista();\r\n elenco = new Vector<Persona>();\r\n elenco =lista.getElenco();\r\n values = new String[elenco.size()][3];\r\n Iterator<Persona> iterator = elenco.iterator();\r\n while (iterator.hasNext()) {\r\n\t\t\tfor (int i = 0; i < elenco.size(); i++) {\r\n\t\t\t\tpersona = new Persona();\r\n\t\t\t\tpersona = (Persona) iterator.next();\r\n\t\t\t\tvalues[i][0] = persona.getNome();\r\n\t\t\t\tvalues[i][1] = persona.getCognome();\r\n\t\t\t\tvalues[i][2] = persona.getTelefono();\t\r\n\t\t\t}\r\n\t\t}\r\n setDataVector(values, columnNames);\t\r\n }",
"public Stabel(){\n elementer = 0;\n hode = new Node(null);\n hale = hode;\n hode.neste = hale;\n hale.forrige = hode;\n }",
"@Override\n public String getLabel() {\n return columnInfo.getLabel();\n }",
"public void showNewTableaux() {\n System.out.println(\"Nowa tablica simpleksowa: \");\n DecimalFormat df = new DecimalFormat(\"0.00\");\n for (double[] row : tableaux) {\n for (double element : row) {\n System.out.print(df.format(element) + \"\\t\");\n }\n System.out.println();\n }\n double valueObjectiveFunction = tableaux[numberOfVariables][numberOfConstraints + numberOfVariables];\n System.out.println(\"Wartość funkcji celu = \" + df.format(valueObjectiveFunction));\n for (int i = 0; i < numberOfVariables; i++)\n if (basisVariables[i] < numberOfConstraints)\n System.out.println(\"x\"\n + basisVariables[i]\n + \" = \"\n + df.format(tableaux[numberOfVariables][numberOfConstraints + i]));\n }",
"@Override\n public String toString() {\n String result = \"\";\n\n for (int position = 0; position < 64; position++) {\n if (position > 0) {\n if (position % 16 == 0) { // New level\n result += '|';\n } else if (position % 4 == 0) {\n result += ' '; // New row\n }\n }\n result += get(position);\n }\n return result;\n }",
"private void setupSpalteAnzMitarbeiter() {\r\n\t\t// legt fest, welches Attribut von Arbeitspaket in dieser Spalte angezeigt wird\r\n\t\tspalteAnzMitarbeiter.setCellValueFactory(new PropertyValueFactory<>(\"mitarbeiteranzahl\"));\r\n\r\n\t\t// lässt die Zelle mit Hilfe der Klasse EditCell bei Tastatureingabe bearbeitbar\r\n\t\t// machen\r\n\t\tspalteAnzMitarbeiter.setCellFactory(\r\n\t\t\t\tEditCell.<ArbeitspaketTableData, Integer>forTableColumn(new MyIntegerStringConverter()));\r\n\r\n\t\t// überschreibt den alten Attributwert mit der User-Eingabe\r\n\t\tspalteAnzMitarbeiter.setOnEditCommit(event -> {\r\n\t\t\tfinal Integer value = event.getNewValue() != null ? event.getNewValue() : event.getOldValue();\r\n\t\t\tevent.getTableView().getItems().get(event.getTablePosition().getRow()).setMitarbeiteranzahl(value);\r\n\t\t\ttabelle.refresh();\r\n\t\t});\r\n\t}",
"public data_kelahiran() {\n initComponents();\n ((javax.swing.plaf.basic.BasicInternalFrameUI)this.getUI()).setNorthPane(null);\n autonumber();\n data_tabel();\n lebarKolom();\n \n \n \n }",
"public Drakkar(){\r\n\t\tanguilas=m;\r\n\t}",
"@Override\r\n\tpublic int ttData() {\n\t\treturn 0;\r\n\t}",
"public static void viewtable() {\r\n\t\tt.dibuixa(table);\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic void funkcie() {\n\t\tTableColumn<Znamka, String> datumColumn = new TableColumn<>(\"Datum pisomky\");\n\t\tdatumColumn.setMinWidth(velkostPolickaX - 1);\n\t\tdatumColumn.setCellValueFactory(new PropertyValueFactory<>(\"datumS\"));\n\n\t\tTableColumn<Znamka, Double> hodnotaColumn = new TableColumn<Znamka, Double>(\"Hodnota\");\n\t\thodnotaColumn.setMinWidth(velkostPolickaX - 1);\n\t\thodnotaColumn.setCellValueFactory(new PropertyValueFactory<>(\"hodnotaS\"));\n\n\t\tTableColumn<Znamka, Double> maxHodnotaColumn = new TableColumn<Znamka, Double>(\"Max. Hodnota\");\n\t\tmaxHodnotaColumn.setMinWidth(velkostPolickaX - 1);\n\t\tmaxHodnotaColumn.setCellValueFactory(new PropertyValueFactory<>(\"maxHodnotaS\"));\n\n\t\ttabulkaZiak.getColumns().addAll(hodnotaColumn, maxHodnotaColumn, datumColumn);\n\n\t\tvyberPredmetov.setItems(((Ziak) aktualnyPouzivatel).vratMenoPredmetov());\n\t\tvyberPredmetov.getSelectionModel().selectedIndexProperty()\n\t\t\t\t.addListener((ChangeListener<Number>) (ov, value, new_value) -> {\n\t\t\t\t\ttabulkaZiak.setItems(((Ziak) aktualnyPouzivatel).vratZnamkyPredmetu((int) new_value));\n\t\t\t\t});\n\t\tvyberPredmetov.getSelectionModel().selectFirst();\n\t}",
"@Override\n\tpublic String toString(){\n\t\tString result = \"\";\n\t\tfor (Opdracht o : opdrachten){\n\t\t\tresult += o.toString() + \"\\n\";\n\t\t}\n\t\treturn result;\n\t}",
"public JTable getTablePregleFilijale() {\n\t\treturn tablePregleFilijale;\n\t}",
"public void ukloniHranu() {\n\t\tthis.tabla[iHrana][jHrana] = '.';\t\t\n\t}",
"private void loadQuocGia() throws SQLException {\n String[] header = {\"Mã QG\", \"Tên Quốc gia\", \"English\", \"Ký hiệu\"};\n ResultSet rs = actQG.getQuocGia();\n FillData fillData = new FillData();\n fillData.fillDataJTable(jTable1, header, rs);\n rs.close();\n }",
"public BitacoraHotelera() {\n initComponents();\n tabla();\n this.setTitle(\"BITACORA DEL ÁREA DE HOTELERIA\");\n }",
"String getTabela();",
"public void generarTotal(){\n\n\t\tfloat total = 0;\n\n\t\tfor (int con = 0; con < modelo.getRowCount(); con++) {\n\n\t\t\ttotal += (float) tabla.getValueAt(con, 3);\n\t\t\t\n\t\t}\n\n\t\tcampoTotal.setText(formato.format(total));\n\n\t\tlimpiarCampos();\n\n\t}",
"@Override\n public String toString() {\n return \"@(\"+x+\"|\"+y+\") mit Bewegung: \"+bewegung;\n }",
"private static void afftabSymb() { \r\n\t\tSystem.out.println(\" code categorie type info\");\r\n\t\tSystem.out.println(\" |--------------|--------------|-------|----\");\r\n\t\tfor (int i = 1; i <= it; i++) {\r\n\t\t\tif (i == bc) {\r\n\t\t\t\tSystem.out.print(\"bc=\");\r\n\t\t\t\tEcriture.ecrireInt(i, 3);\r\n\t\t\t} else if (i == it) {\r\n\t\t\t\tSystem.out.print(\"it=\");\r\n\t\t\t\tEcriture.ecrireInt(i, 3);\r\n\t\t\t} else\r\n\t\t\t\tEcriture.ecrireInt(i, 6);\r\n\t\t\tif (tabSymb[i] == null)\r\n\t\t\t\tSystem.out.println(\" référence NULL\");\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\" \" + tabSymb[i]);\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn modelo;\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"\\n\\n \\tVertice [label=\" + label + \"] \";\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"Anfangsdatum: \" + this.get_Datum() \n\t\t\t\t+ \", Thema: \" + this.get_thema() \n\t\t\t\t+ \", Art: Theoriestunde\";\n\t}",
"@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}",
"java.lang.String getField1875();",
"public void doButtonBearbeiten() {\n\t\tif (this.anzeige.getSelectedRow() >= 0) {\n\t\t\tswitch (this.getType()) {\n\t\t\tcase 0:\n\t\t\t\tfinal TabellenspaltenModel ts = (TabellenspaltenModel) this.tabelle.getTabellenspalteAt(this.anzeige\n\t\t\t\t\t\t.getSelectedRow());\n\t\t\t\tnew FrameEditorDjinn(StrUtil.FromHTML(\"Ändern Tabellenspalte \") + ts.getName(), ts, false, null) {\n\t\t\t\t\tpublic void doClosed() {\n\t\t\t\t\t}\n\n\t\t\t\t\tpublic void doChanged(boolean saveOnly) {\n\t\t\t\t\t\ttabelle.removeTabellenspalte(ts);\n\t\t\t\t\t\tts.setTabelle(tabelle);\n\t\t\t\t\t\ttabelle.addTabellenspalte(ts);\n\t\t\t\t\t\tdoRepaint();\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tfinal ToStringContainer tsc = (ToStringContainer) this.tabelle.getToStringMembers()[this.anzeige\n\t\t\t\t\t\t.getSelectedRow()];\n\t\t\t\tnew FrameEditorDjinn(StrUtil.FromHTML(\"Ändern ToStringContainer\"), tsc, false, null) {\n\t\t\t\t\tpublic void doClosed() {\n\t\t\t\t\t}\n\n\t\t\t\t\tpublic void doChanged(boolean saveOnly) {\n\t\t\t\t\t\tdoRepaint();\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tfinal ToStringContainer tsc0 = (ToStringContainer) this.tabelle.getComboStringMembers()[this.anzeige\n\t\t\t\t\t\t.getSelectedRow()];\n\t\t\t\tnew FrameEditorDjinn(StrUtil.FromHTML(\"Ändern ToStringContainer\"), tsc0, false, null) {\n\t\t\t\t\tpublic void doClosed() {\n\t\t\t\t\t}\n\n\t\t\t\t\tpublic void doChanged(boolean saveOnly) {\n\t\t\t\t\t\tdoRepaint();\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tfinal OrderMember omm = (OrderMember) this.tabelle.getSelectionViewOrderMembers()[this.anzeige\n\t\t\t\t\t\t.getSelectedRow()];\n\t\t\t\tnew FrameEditorDjinn(StrUtil.FromHTML(\"Ändern OrderMember\"), omm, false, null) {\n\t\t\t\t\tpublic void doClosed() {\n\t\t\t\t\t}\n\n\t\t\t\t\tpublic void doChanged(boolean saveOnly) {\n\t\t\t\t\t\tdoRepaint();\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tfinal SelectionMember smm = (SelectionMember) this.tabelle.getAuswahlMembers().elementAt(\n\t\t\t\t\t\tthis.anzeige.getSelectedRow());\n\t\t\t\tnew FrameEditorDjinn(StrUtil.FromHTML(\"Ändern SelectionMember\"), smm, false, null) {\n\t\t\t\t\tpublic void doClosed() {\n\t\t\t\t\t}\n\n\t\t\t\t\tpublic void doChanged(boolean saveOnly) {\n\t\t\t\t\t\tdoRepaint();\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n public String toString() {\r\n// ritorna una stringa\r\n return \"pollo\";\r\n }",
"private void llenarCuadrosTablero() {\n tmp = new JLabel();\n tmp.setBounds(-100, -100, 56, 56);\n add(tmp);\n tablero = new CuadroPieza[8][8];\n setLayout(null);\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n tablero[x][y] = new CuadroPieza(x, y);\n add(tablero[x][y]);// para agregar los elementos\n }\n }\n rePintarTablero();\n }",
"public String toString() {\r\n if(t!=null && t.getLettre()!=System.getProperty(\"line.separator\").charAt(0))\r\n {\r\n return \"(f= \"+String.valueOf(this.frequence)+\" L= \"+this.t.getLettre()+\")\";\r\n }\r\n else if(t!=null && t.getLettre()==System.getProperty(\"line.separator\").charAt(0)){\r\n return \"(f= \"+String.valueOf(this.frequence)+\" L=[saut_ligne])\";\r\n }\r\n else {\r\n return \"(f= \" + String.valueOf(this.frequence) + \" g= \" + this.getGauche() + \" d= \" + this.getDroite()+\"\";\r\n }\r\n }",
"Rey(){\r\n \r\n color_rey=Color.BLANCO;\r\n posicion_rey.fila=1;\r\n posicion_rey.columna='e';\r\n \r\n }",
"public void affiche(){\r\n\t\tfor (int i = 0; i < this.grille.length; i++){\r\n\t\t\tfor (int j = 0; j < this.grille.length; j++){\r\n\t\t\t\tSystem.out.print(this.grille[i][j]);\r\n\t\t\t}\r\n\t\t\tSystem.out.print('\\n');\r\n\t\t}\r\n\t}",
"private void tabelaFevereiroMouseClicked(java.awt.event.MouseEvent evt) {\n \n Compromisso.setText(this.indexesToString());\n \n }",
"@Override\n\tprotected String getFields()\n\t{\n\t\tString fields = \" GAZOID, GAZFLD, GAZPVN, GAZTYP, GAZCLN, GAZCLS \";\n\t\treturn fields;\n\t}",
"public String toString(){\n\t\tString maChaineRetour=\"\";\n\t\t\n\t\tfor(Cristal[] ligne: tabCristaux){\n\t\t\tfor(Cristal colonne: ligne){\n\t\t\t\tif(colonne == null)\n\t\t\t\t\tmaChaineRetour = maChaineRetour + \"0\" ;\n\t\t\t\telse\n\t\t\t\t\tmaChaineRetour = maChaineRetour + colonne.toString();\n\t\t\t}\n\t\t\tmaChaineRetour = maChaineRetour + \"\\n\";\n\t\t}\n\t\treturn maChaineRetour;\n\t}",
"@Override\n\t\tpublic String toString() {\n\t\t\treturn \"Tinh: \"+ this.tinh + \"; Huyen: \"+ this.huyen + \"; Xa: \"+ this.xa;\n\t\t}",
"public String toString(){\r\n\t\t\t\t\treturn \"перший в черзі і шлях вільний\";\r\n\t\t\t\t}",
"protected String decrisToi(){\r\n return \"\\t\"+this.nomVille+\" est une ville de \"+this.nomPays+ \", elle comporte : \"+this.nbreHabitants+\" habitant(s) => elle est donc de catégorie : \"+this.categorie;\r\n }",
"public ZonaFasciculataCells() {\r\n\r\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}",
"@Override\r\n\t\tpublic String toString() {\n\t\t\treturn (this.n + \"\\t\" + this.t);\r\n\t\t}",
"public UDKValgfagsRunde1(ArrayList<ValgfagsDTO> valgfagsListe) {\n fmt = new DecimalFormat(\"#.##\");\n fmt.setRoundingMode(RoundingMode.HALF_UP);\n this.valgfagsListe = valgfagsListe;\n initComponents();\n jList_Valgfag.setModel(new DefaultListModel());\n jList_Valgfag.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n \n jList_aPulje.setModel(new DefaultListModel());\n jList_bPulje.setModel(new DefaultListModel());\n \n for (ValgfagsDTO valgfagsDTO : valgfagsListe) {\n ((DefaultListModel)jList_Valgfag.getModel()).addElement(valgfagsDTO.getNavn());\n }\n \n tm = (DefaultTableModel)jTable1.getModel();\n\tjTable1.setDefaultRenderer(String.class, new EntryCellRenderer()); // the first parameter ensures the cell renderer will be used only for Integer type cells.\n \n jLabel_Score0.setOpaque(true);\n jLabel_Score1.setOpaque(true);\n jLabel_Score2.setOpaque(true);\n jLabel_Score3.setOpaque(true);\n jLabel_Score4.setOpaque(true);\n jLabel_Score6.setOpaque(true);\n \n jLabel_Score0.setBackground(EntryCellRenderer.score0);\n jLabel_Score1.setBackground(EntryCellRenderer.score1);\n jLabel_Score2.setBackground(EntryCellRenderer.score2);\n jLabel_Score3.setBackground(EntryCellRenderer.score3);\n jLabel_Score4.setBackground(EntryCellRenderer.score4);\n jLabel_Score6.setBackground(EntryCellRenderer.score6);\n refreshAllStatusLabels();\n }",
"static void obiektyTablice() {\n\n Object obiektString = new String();\n Object obiektObiekt = new Object();\n Integer[] obiektInt = new Integer[3];\n int[] tablicaInt = new int[5];\n\n obiektString = \"tekstStringa\";\n obiektObiekt = \"tekstObiektu\";\n obiektInt[2] = 3;\n tablicaInt[2] = 2;\n int wielkoscTablicy = tablicaInt.length;\n System.out.println(obiektObiekt + \"\\n\" + obiektString + \"\\n\" + obiektInt[2] + \"\\n\" + tablicaInt[3] + \"\\n\"\n + wielkoscTablicy);\n\n // modulo mniejszej przez większą = reszta*większa\n int b = 7 % 12;\n System.out.println(\"Modulo = \" + b);\n }",
"@Override\n\tpublic String toString() {\n\t\tString cad=tractor.getRow() + \" \" + tractor.getColumn() + \" \" + getK() + \" \" + getMax() + \" \" + getRows() + \n\t\t\t\t\" \" + getColumns() + \"\\n\";\n\t\tfor (int i=0;i<cells.length;i++) {\n\t\t\tfor (int j=0;j<cells[0].length;j++) {\n\t\t\t\tcad+=cells[i][j].getSand()+ \" \";\n\t\t\t}\n\t\t\tcad+=\"\\n\";\n\t\t} \n\t\treturn cad;\n\t}",
"@Override\n public String toString() {\n\treturn \"\"+rowIndex+colIndex; \n }",
"public void majAffichage() {\n this.grid.getChildren().clear(); // vide tout le gridpane\n for (int i = 0; i < this.matrice.getNbLigne(); i++) {\n for (int j = 0; j < this.matrice.getNbColonne(); j++) {\n Node n = this.matrice.getCell(i, j); // recupère les imgViews de la matrice\n this.grid.setHalignment(n, HPos.CENTER); // place les labels au centre des cases\n this.grid.add(this.matrice.getCell(i, j), j, i);\n }\n }\n }",
"public void nastav() {\n\t\ttabulkaZiak.setMaxWidth(velkostPolickaX * 3 + 2);\n\t\ttabulkaZiak.setPlaceholder(new Label(\"Žiadne známky.\"));\n\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn this.getsTenkhoanquy() + \" : \" + this.fSotienconlai\n\t\t\t\t+ this.sLoaitiente;\n\t}",
"@Override\r\n public String toString() { return new String( \"(\" + row + \", \" + col + \")\" ); }",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \" Corrente :\"+ super.getNumero();\n\t}",
"public void sortieBloc() {\n this.tableLocaleCourante = this.tableLocaleCourante.getTableLocalPere();\n }",
"public JPanel getRepresentacionGrafica();",
"@Override\n public String toString() {\n return rol;\n }",
"@Override\n\tpublic void tableChanged(TableModelEvent e) {\n\t\tSystem.out.println(e.toString());\n\t\t//tableDaysModel.addAufgabe(aufgabe);\n\t}"
] | [
"0.6140344",
"0.6084497",
"0.6037237",
"0.5982492",
"0.59338546",
"0.59133303",
"0.5849195",
"0.5831348",
"0.58312047",
"0.5774075",
"0.5753846",
"0.57523257",
"0.5733316",
"0.5711828",
"0.5697685",
"0.5648876",
"0.56417656",
"0.562306",
"0.5619452",
"0.5604496",
"0.5572206",
"0.5546804",
"0.5533242",
"0.55314314",
"0.5485283",
"0.54625225",
"0.5458743",
"0.543536",
"0.543293",
"0.5428624",
"0.5419012",
"0.5410217",
"0.53986365",
"0.5398596",
"0.5395859",
"0.5389733",
"0.538568",
"0.53719896",
"0.5362983",
"0.5358837",
"0.5357484",
"0.5345207",
"0.5344832",
"0.5336101",
"0.5333277",
"0.5332497",
"0.5326204",
"0.53170943",
"0.53127027",
"0.53080755",
"0.5305661",
"0.5300633",
"0.5298068",
"0.52946466",
"0.5294327",
"0.5293869",
"0.5293155",
"0.5286765",
"0.52835625",
"0.5280871",
"0.52758104",
"0.5270151",
"0.52699286",
"0.52684134",
"0.5265883",
"0.5262289",
"0.5261907",
"0.5260992",
"0.52591664",
"0.5259067",
"0.5248749",
"0.5247424",
"0.5244988",
"0.52419865",
"0.5239944",
"0.52373546",
"0.5234183",
"0.5233581",
"0.5231462",
"0.52311903",
"0.52296925",
"0.52294904",
"0.5227753",
"0.52252823",
"0.52239984",
"0.5220579",
"0.5217124",
"0.52166426",
"0.52159184",
"0.5214569",
"0.52126294",
"0.5208824",
"0.520527",
"0.51993126",
"0.5198354",
"0.5194588",
"0.5191915",
"0.5191414",
"0.51833075",
"0.51792353",
"0.51782274"
] | 0.0 | -1 |
Gibt die linke Gabel zurueck | public Fork getLeft() {
return left;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void llenarLogros(){\n DefaultTableModel table = (DefaultTableModel) logrosTabla.getModel();\n ArrayList<Logro> logros = ninno.getLogros();\n \n for(Logro logro: logros){\n table.addRow(new Object[]{logro.getBimestreString(), logro.getTitulo(), logro.getEstado()});\n }\n }",
"private void srediTabelu() {\n\n mtu = (ModelTabeleUlica) jtblUlica.getModel();\n ArrayList<Ulica> ulice = kontrolor.Kontroler.getInstanca().vratiUlice();\n mtu.setLista(ulice);\n\n }",
"@Override\n public String toString() {\n int numeritosY = 0;\n int numeritosX = 0;\n StringBuilder datos = new StringBuilder(\" \");\n\n //Imprime los numeros de arriba\n for (int x = 0; x < casillas.length; x++) {\n datos.append(\" \").append(numeritosX);\n numeritosX++;\n }\n datos.append(\"\\n \");\n //Imprime la primera linea que corresponde con la parte superior del tablero.\n for (int x = 0; x < casillas.length; x++) {\n datos.append(\"\\033[33m\"+\"+----\"+\"\\033[0m\");\n }\n datos.append(\"\\033[33m\"+\"+\"+\"\\033[0m\");\n datos.append(\"\\n\");\n //Imprime el resto del tablero.\n for (int y = 0; y < casillas.length; y++) {\n datos.append(numeritosY).append(\"\\033[33m\"+\" | \"+\"\\033[0m\");\n for (int x = 0; x < casillas[y].length; x++) {\n datos.append(casillas[y][x].toString());\n }\n datos.append(\"\\n\");\n datos.append(\" \");\n for (int i = 0; i < casillas[y].length; i++) {\n datos.append(\"\\033[33m\"+\"+----\"+\"\\033[0m\");\n }\n datos.append(\"\\033[33m\"+\"+\"+\"\\033[0m\");\n datos.append(\"\\n\");\n numeritosY++;\n }\n return datos.toString();\n }",
"public void affichageLabyrinthe () {\n\t\t//Affiche le nombre de coups actuel sur la console et sur la fenetre graphique\n\t\tSystem.out.println(\"Nombre de coups : \" + this.laby.getNbCoups() + \"\\n\");\t\t\n\t\tthis.enTete.setText(\"Nombre de coups : \" + this.laby.getNbCoups());\n\n\t\t//Affichage dans la fenêtre et dans la console du labyrinthe case par case, et quand la case est celle ou se trouve le mineur, affiche ce dernier\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tString ligne = new String();\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (i != this.laby.getMineur().getY() || j != this.laby.getMineur().getX()) {\n\t\t\t\t\tligne = ligne + this.laby.getLabyrinthe()[i][j].graphismeCase();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j]=new Case();\n\t\t\t\t\tligne = ligne + this.laby.getMineur().graphismeMineur();\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif (grille.getComponentCount() < this.laby.getLargeur()*this.laby.getHauteur()) {\n\t\t\t\t\tgrille.add(new JLabel());\n\t\t\t\t\t((JLabel)grille.getComponents()[i*this.laby.getLargeur()+j]).setIcon(this.laby.getLabyrinthe()[i][j].imageCase(themeJeu));\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(ligne);\n\t\t}\n\t\t((JLabel)grille.getComponents()[this.laby.getMineur().getY()*this.laby.getLargeur()+this.laby.getMineur().getX()]).setIcon(this.laby.getMineur().imageCase(themeJeu));\n\t}",
"private static void popuniTabelu() {\r\n\t\tDefaultTableModel dfm = (DefaultTableModel) teretanaGui.getTable().getModel();\r\n\r\n\t\tdfm.setRowCount(0);\r\n\r\n\t\tfor (int i = 0; i < listaClanova.size(); i++) {\r\n\t\t\tClan c = listaClanova.getClan(i);\r\n\t\t\tdfm.addRow(new Object[] { c.getBrojClanskeKarte(), c.getIme(), c.getPrezime(), c.getPol() });\r\n\t\t}\r\n\t\tcentrirajTabelu();\r\n\t}",
"private void srediTabelu() {\n ModelTabeleStavka mts = new ModelTabeleStavka();\n mts.setLista(n.getLista());\n tblStavka.setModel(mts);\n }",
"private void MembentukListHuruf(){\n for(int i = 0; i < Panjang; i ++){\n Huruf Hrf = new Huruf();\n Hrf.CurrHrf = Kata.charAt(i);\n if(!IsVertikal){\n //horizontal\n Hrf.IdX = StartIdxX;\n Hrf.IdY = StartIdxY+i;\n }else{\n Hrf.IdX = StartIdxX+i;\n Hrf.IdY = StartIdxY;\n }\n // System.out.println(\"iniii \"+Hrf.IdX+\" \"+Hrf.IdY+\" \"+Hrf.CurrHrf+\" \"+NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].AddNoSoal(NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].Huruf=Hrf.CurrHrf;\n \n }\n }",
"@Override\n public String toString(){\n String juego = \"\";\n for (int[] tablero1 : tablero) {\n for (int casilla : tablero1) {\n juego += String.format(\"%2d \", casilla);\n }\n juego += String.format(\"%n\");\n }\n return juego;\n }",
"@Override\n public String toString() {\n return String.format(\"[%d] [%d]\", dameFila(), dameColumna());\n }",
"private void popuniTabelu() {\n try {\n List<PutnikEntity> putnici=Controller.vratiSvePutnike();\n TableModel tm=new PutnikTableModel(putnici);\n jtblPutnici.setModel(tm);\n } catch (Exception ex) {\n Logger.getLogger(FIzaberiLet.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public void llenarTabla(int inicio, int limite) {\n DefaultTableModel dtm = (DefaultTableModel) jTableVerRondas.getModel();//se usa DefaultTableModel para manipular facilmente el Tablemodel\n dtm.setRowCount(0);//eliminando la s filas que ya hay. para agregar desde el principio.\n //los datos se agregan la defaultTableModel.\n ArrayList<Partido> llenar = miOpenAustralia.getPartidos();//sacando al informacion a agregar en la tabla.\n\n //como se va a llenar una tabla de 5 columnas, se crea un vector de 3 elementos.\n //se usa un arreglo de Object para poder agregar a la tabla cualquier tipo de datos.\n Object[] datos = new Object[5];\n for (int i = inicio; i < limite; i++) {\n\n Partido parti = llenar.get(i);\n //Se agrega este if para evitar que el extraiga datos en un campo null\n if (parti != null) {\n\n datos[0] = parti.getId();\n datos[1] = parti.getFechaHora();//el primer elemetno del arreglo va a ser el id,la primera col en la Tabla.\n datos[2] = parti.getJugador1().getNombre();\n datos[3] = parti.getJugador2().getNombre();\n datos[4] = parti.getPista().getNombre();\n\n //agrego al TableModleo ese arreglo\n dtm.addRow(datos);\n }\n }\n }",
"public void tablero(){\r\n System.out.println(\" X \");\r\n System.out.println(\" 1 2 3\");\r\n System.out.println(\" | |\");\r\n //imprimir primera fila\r\n System.out.println(\" 1 \"+gato[0][0]+\" | \"+gato[0][1]+\" | \"+gato[0][2]+\" \");\r\n System.out.println(\" _____|_____|_____\");\r\n System.out.println(\" | |\");\r\n //imprimir segunda fila\r\n System.out.println(\"Y 2 \"+gato[1][0]+\" | \"+gato[1][1]+\" | \"+gato[1][2]+\" \");\r\n System.out.println(\" _____|_____|_____\");\r\n System.out.println(\" | |\");\r\n //imprimir tercera fila\r\n System.out.println(\" 3 \"+gato[2][0]+\" | \"+gato[2][1]+\" | \"+gato[2][2]+\" \");\r\n System.out.println(\" | |\");\r\n }",
"void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = con.createStatement();\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo>=\" + SIGEPSA.IDOtrosPagosMin + \";\");\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago ;\");\n ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo<9 or codigo>10 and activo = 1;\");\n while(resultado.next()){\n ingresar[0]=String.valueOf((String)resultado.getObject(\"CODIGO\").toString());\n ingresar[1]=String.valueOf((String)resultado.getObject(\"DESCRIPCION\").toString());\n ingresar[2]=String.valueOf((String)resultado.getObject(\"CANTIDAD\").toString());\n datos.addRow(ingresar);\n }\n }catch (Exception ex) {\n \n }\n }",
"public void tabla_campos() {\n int rec = AgendarA.tblAgricultor.getSelectedRow();// devuelve un entero con la posicion de la seleccion en la tabla\n ccAgricultor = AgendarA.tblAgricultor.getValueAt(rec, 1).toString();\n crearModeloAgenda();\n }",
"private void setzeBeschriftungen(){ \t\t\t\n\t\tif (jRBtnLinie.isSelected()) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// wenn linie gewählt ist: ..\n\t\t\tjLPositionX1.setText(\"Startpunkt x:\");\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// .. verschiedene labels für die textfelder anpassen für parameter-werte (x1,y1,x2,y2) [y1 bleibt immer gleich]\n\t\t\tjLPositionX2.setText(\"Endpunkt x:\");\n\t\t\tjLPositionY2.setText(\" y:\");\n\t\t} else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// wenn rechteck, oval, kreis:..\n\t\t\tjLPositionX1.setText(\"Position x:\");\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ... labels anpassen auf parameter-werte (x1, y1, breite, höhe) [y1 bleibt immer gleich]\t\t\t\t\n\t\t\tjLPositionX2.setText(\"Breite:\");\n\t\t\tjLPositionY2.setText(\"Höhe:\");\n\t\t}\n\t}",
"public void echantillon_zone(){\n\n JLabel lbl_Echantillon = new JLabel(\"Offre d'\\u00E9chantillons :\");\n lbl_Echantillon.setBounds(340, 170, 119, 16);\n add(lbl_Echantillon);\n\n // MODEL\n final DefaultTableModel model = new DefaultTableModel();\n final DefaultTableCellRenderer rightRenderer = new DefaultTableCellRenderer();\n rightRenderer.setHorizontalAlignment(JLabel.RIGHT);\n Object[][] o = new Object[sizeVector][2];\n for(int i = 0; i < sizeVector; i++){\n o[i][0] = medicaments.get(i)[0];\n o[i][1] = medicaments.get(i)[1];\n }\n // TABLE DATA\n model.setDataVector(o, new Object[]{\"M\\u00E9dicament\",\"Qt\\u00E9\"});\n\n\n // TABLE\n result_table = new JTable(model);\n result_table.setBounds(475, 170, 200, 150);\n result_table.getColumnModel().getColumn(1).setMaxWidth(40);\n result_table.getColumnModel().getColumn(1).setCellRenderer(rightRenderer);\n result_table.setEnabled(false);\n add(result_table);\n\n\n // SCROLLPANE\n JScrollPane apne= new JScrollPane(result_table);\n apne.setBounds(475, 170, 200, 150);\n add(apne);\n\n\n }",
"private void xuLyLayMaDichVu() {\n int result = tbDichVu.getSelectedRow();\n String maDV = (String) tbDichVu.getValueAt(result, 0);\n hienThiDichVuTheoMa(maDV);\n }",
"@Override\npublic String toString() {// PARA MOSTRAR LOS DATOS DE ESTA CLASE\n// TODO Auto-generated method stub\nreturn MuestraCualquiera();\n}",
"public String toString() {\n\t\treturn \"(\" + obtenerFila() + \"/\" + obtenerColumna() + \")\";\n\t}",
"private void fillLabelsTabel() {\n }",
"public String llenarBase(){\n String estadoBase=\"\";\n //Vectores para cada uno de los campos de cada tabla\n //vectores empleado\n final String[] nombreEmpleado = {\"Jorge Pérez\",\"Maritza Cañas\",\"Sebastian Funes\",\"Carlos Dominguez\"};\n final int [] duiEmpleado={050034561,060023567,030034561,0500325677};\n final String[] sexoEmpleado={\"M\",\"F\",\"M\",\"M\"};\n final int[] edadEmpleado={24,50,32,40};\n final String[] direccionEmpleado={\"25 Av.Norte #17H, San Salvador\",\"Res.Los Altos,#5,Mejicanos\",\"Calle Las Flores #5A,Cuscatlan\",\"49 Av. Norte, Res.Los Lirios #6B,San Salvador\"};\n final int[] telefonoEmpleado={22563456,22784567,75946754,23564788};\n final int[] cantApEmpleado={1,3,5,2};\n final int[] cantRefEmpleado={3,2,2,3};\n\n //vectores Experiencia Laboral\n final String[] idTodos={\"1\",\"2\",\"3\",\"4\"};\n final String[] duracionExpLab={\"6\",\"8\",\"12\",\"16\"};\n //vectorees Empresa\n final String[] nombreEmpresa={\"Pizza Hut\",\"Office Depot\",\"C.E San Antonio\",\"Telefonica\"};\n final String[] nitEmpresa={\"0614-220605-113-0\",\"0675-330734\",\"0423-220812\",\"0614-345632-551-0\"};\n final String[] dirEmpresa={\"Blv.Los Proceres, Local 5A,San Salvador\",\"49 Av. Norte,#45, San Salvador\",\"Barrio San Juan,Boque 1A,Sonsonate\",\"Centro Comercial Metrocentro, 2° Nivel,San Salvador\"};\n final String[] telEmpresa={\"2276-4533\",\"79567843\",\"2233-6755\",\"2256-8977\"};\n final int[] canOfertasEmpresa={6,4,1,5};\n //vectores detalleestudio\n final int[] idEmpleadoDE={1,2,3,4};\n final int[] idEspecializacionDE={1,2,3,4};\n final int[] idInstEstudioDE={1,2,3,4};\n final int[] anyoGraducionDE={2008,2014,2010,2012};\n //Vectores tabla Moni\n //para la tabla cargo\n final String[] nombreCargo={\"Gerente de Creditos\",\"Jefe de Planta\",\"Jefe de tecnología\",\"Jefe de Reacciones\"};\n final String[] descripcionCargo={\"gerente para la gestion de creditos\",\"Ingeniero industrial para control de planta\",\"Ingeniero de Sistemas para el area de TI\",\"Ingeniero Quimico encargado de planta de reactivos\"};\n // para la tabla aplicacion\n final int[] idsAplicacionTodos={1,2,3,4};\n final String[] fechaAplicacion={\"23/05/15\",\"13/05/15\",\"20/05/15\",\"24/05/15\"};\n final String[] estadoAplicacion={\"Aceptada\",\"Aceptada\",\"En Proceso\",\"En Proceso\"};\n //Vectoress tabla Edgardo\n\n //Vectores tabla Eduardo\n final int[] gradoEspeIdSpe={1,2,3,4};\n final String[] gradoEspeNombre={\"Java Junior\",\"Oracle 11g\",\"Tecnico De Sistemas\",\"Java Senior\"};\n final int[] gradoEspeDuration={2,1,3,4};\n final int[] gradoEspeIdInsti={1,2,3,4};\n\n final int[] referenceId={1,2,3,4};\n final String[] referenceName={\"Juan Perez\",\"Rafael Molina\",\"Pompilio Marcebundo\",\"José Menjivar\"};\n final String[] referencePhone={\"22002200\",\"77777777\",\"22222222\",\"225777777\"};\n final int[] referenceIdEmple={1,2,3,4};\n final int[] referenceIdBusiness={1,2,3,4};\n\n /*------EMPIEZA LA INSERCION ---*/\n for (int i = 0; i < 4; i++) {\n //tabla empresa\n ContentValues values = new ContentValues();\n values.put(\"NOMBRE_EMPRESA\", nombreEmpresa[i]);\n values.put(\"NIT_EMPRESA\",nitEmpresa[i]);\n values.put(\"DIR_EMPRESA\",dirEmpresa[i]);\n values.put(\"TEL_EMPRESA\", telEmpresa[i]);\n values.put(\"CANTOFERTAS_EMPRESA\",canOfertasEmpresa[i]);\n db.insert(\"EMPRESA\", null, values);\n\n //tabla Empleado, se reutilizara el metodo insertarEmpleado\n Empleado empleado = new Empleado();\n empleado.setNombre_empleado(nombreEmpleado[i]);\n empleado.setDui_empleado(duiEmpleado[i]);\n empleado.setSexo_empleado(sexoEmpleado[i]);\n empleado.setEdad_empleado(edadEmpleado[i]);\n empleado.setDireccion_empleado(direccionEmpleado[i]);\n empleado.setTelefono_empleado(telefonoEmpleado[i]);\n empleado.setCantAplicaciones_empleado(cantApEmpleado[i]);\n empleado.setCantReferencias_empleado(cantRefEmpleado[i]);\n insertarEmpleado(empleado);\n\n //tabla ExperienciaLaboral, se reutilizara el metodo insertarExpLab\n insertarExpLab(idTodos[i],idTodos[i],idTodos[i],duracionExpLab[i]);\n //tabla DetalleEstudio\n ContentValues values2 = new ContentValues();\n values2.put(\"ID_EMPLEADO\",idEmpleadoDE[i]);\n values2.put(\"ID_ESPECIALIZACION\",idEspecializacionDE[i]);\n values2.put(\"ID_INSTITUTOESTUDIO\",idInstEstudioDE[i]);\n values2.put(\"ANYOGRADUACION_DETALLEEST\",anyoGraducionDE[i]);\n db.insert(\"DETALLEESTUDIO\", null, values2);\n\n //Tabla Cargo, se reutiliza el metodo insertar(cargo\n Cargo cargo= new Cargo();\n cargo.setNombreCargo(nombreCargo[i]);\n cargo.setDescripcionCargo(descripcionCargo[i]);\n insertar(cargo);\n\n //tabla Aplicacion se reutiliza el metodo inserta(aplicacion)\n Aplicacion aplicacion= new Aplicacion();\n aplicacion.setIdEmpleado(idsAplicacionTodos[i]);\n aplicacion.setIdEmpresa(idsAplicacionTodos[i]);\n aplicacion.setIdOfertaLaboral(idsAplicacionTodos[i]);\n aplicacion.setFechaAplicacion(fechaAplicacion[i]);\n aplicacion.setEstadoAplicacion(estadoAplicacion[i]);\n insertar(aplicacion);\n\n //tabla Referencia\n Referencia refe=new Referencia();\n refe.setNombre_referencia(referenceName[i]);\n refe.setId_empleado(referenceIdEmple[i]);\n refe.setId_empresa(referenceIdBusiness[i]);\n refe.setTelefono_referencia(referencePhone[i]);\n refe.setId_referencia(referenceId[i]);\n insertar(refe);\n\n\n //tabla GradoEspecializacion\n\n GradoEspecializacion grade=new GradoEspecializacion();\n grade.setId_especializacion(gradoEspeIdSpe[i]);\n grade.setNombre_especializacion(gradoEspeNombre[i]);\n grade.setId_institutoEstudio(gradoEspeIdInsti[i]);\n grade.setDuracion_especializacion(gradoEspeDuration[i]);\n insertar(grade);\n\n\n }//fin for\n\n return estadoBase=\"El llenado de la Base de Datos se hizo Satisfactoriamente\";\n }",
"private void load_anggota(){\n Object header[] = {\"ID ANGGOTA\",\"NIS\",\"NAMA ANGGOTA\",\"JK\",\"TINGKAT\",\"JURUSAN\",\"NO HP\",\"STATUS\"};\n DefaultTableModel tableModel = new DefaultTableModel(null, header);\n TabelAnggota.setModel(tableModel);\n\n String sql_data=\"SELECT * FROM tbl_anggota\";\n try{\n Connection kon = koneksi.getConnection();\n Statement st=kon.createStatement();\n ResultSet rs=st.executeQuery(sql_data);\n while(rs.next()){\n String d1=rs.getString(1);\n String d2=rs.getString(2);\n String d3=rs.getString(3);\n String d4=rs.getString(4);\n String d5=rs.getString(5);\n String d6=rs.getString(6);\n String d7=rs.getString(7);\n String d8=rs.getString(8);\n \n String d[]={d1,d2,d3,d4,d5,d6,d7,d8};\n tableModel.addRow(d);\n }\n }catch(Exception e){\n JOptionPane.showMessageDialog(null, e);\n }\n }",
"public void llenarTabla() {\n\n String matriz[][] = new String[lPComunes.size()][2];\n\n for (int i = 0; i < AccesoFichero.lPComunes.size(); i++) {\n matriz[i][0] = AccesoFichero.lPComunes.get(i).getPalabra();\n matriz[i][1] = AccesoFichero.lPComunes.get(i).getCodigo();\n\n }\n\n jTableComun.setModel(new javax.swing.table.DefaultTableModel(\n matriz,\n new String[]{\n \"Palabra\", \"Morse\"\n }\n ) {// Bloquea que las columnas se puedan editar, haciendo doble click en ellas\n @SuppressWarnings(\"rawtypes\")\n Class[] columnTypes = new Class[]{\n String.class, String.class\n };\n\n @SuppressWarnings({\"unchecked\", \"rawtypes\"})\n @Override\n public Class getColumnClass(int columnIndex) {\n return columnTypes[columnIndex];\n }\n boolean[] columnEditables = new boolean[]{\n false, false\n };\n\n @Override\n public boolean isCellEditable(int row, int column) {\n return columnEditables[column];\n }\n });\n\n }",
"private ArrayList<FornecedorModelo> iniciaTabela() {\n int i;\n DefaultTableModel model=(DefaultTableModel)tblFornecedor.getModel();\n // atribui 0 linhas à coluna\n model.setNumRows(0);\n // atribui um tamanho fixo a coluna codigo\n tblFornecedor.getColumnModel().getColumn(0).setPreferredWidth(2);\n ArrayList<FornecedorModelo> listaFornecedores = new ArrayList<FornecedorModelo>();\n listaFornecedores = new FornecedorControle().listarFornecedor();\n //adiciona alunos as tabelas\n for (i=0;i<=listaFornecedores.size()-1;i++){\n model.addRow(\n new Object[]{\n listaFornecedores.get(i).getCodFornecedor(),\n listaFornecedores.get(i).getNomeFantasia(),\n listaFornecedores.get(i).getRazaoSocial(),\n listaFornecedores.get(i).getEndereco(),\n listaFornecedores.get(i).getEmail(),\n listaFornecedores.get(i).getTelefone(),\n listaFornecedores.get(i).getCnpj(),\n Boolean.FALSE\n }\n );\n }\n return listaFornecedores;\n }",
"public void mostrarTablero(){\n\t\tIterator<String> itr = getIteradorMinas();\n\t\tString mina = null;\n\t\tint col;\n\t\tint fila;\n\t\tint conta=1;\n\t\tCasilla casilla;\n\t\tif (lMinas.size()>0){\n\t\t\twhile(itr.hasNext()){\n\t\t\t\tconta++;\n\t\t\t\tmina=itr.next(); \n\t\t\t\tcol=this.separarCoordenadasCol(this.separarCoordenadasString(mina));\n\t\t\t\tfila=this.separarCoordenadasFil(this.separarCoordenadasString(mina));\n\t\t\t\tcasilla=buscarCasilla(fila, col);\n\t\t\t\tif(!casilla.estaDesvelada()&&!casilla.tieneBandera()){\n\t\t\t\t\tcasilla.descubrir();\n\t\t\t\t\tsetChanged();\n\t\t\t\t\tnotifyObservers(fila+\",\"+col+\",\"+10);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcomprobarBanderas();\n\t\t\n\t}",
"public TabellaModel() {\r\n lista = new Lista();\r\n elenco = new Vector<Persona>();\r\n elenco =lista.getElenco();\r\n values = new String[elenco.size()][3];\r\n Iterator<Persona> iterator = elenco.iterator();\r\n while (iterator.hasNext()) {\r\n\t\t\tfor (int i = 0; i < elenco.size(); i++) {\r\n\t\t\t\tpersona = new Persona();\r\n\t\t\t\tpersona = (Persona) iterator.next();\r\n\t\t\t\tvalues[i][0] = persona.getNome();\r\n\t\t\t\tvalues[i][1] = persona.getCognome();\r\n\t\t\t\tvalues[i][2] = persona.getTelefono();\t\r\n\t\t\t}\r\n\t\t}\r\n setDataVector(values, columnNames);\t\r\n }",
"public void ukloniHranu() {\n\t\tthis.tabla[iHrana][jHrana] = '.';\t\t\n\t}",
"private void llenarCuadrosTablero() {\n tmp = new JLabel();\n tmp.setBounds(-100, -100, 56, 56);\n add(tmp);\n tablero = new CuadroPieza[8][8];\n setLayout(null);\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n tablero[x][y] = new CuadroPieza(x, y);\n add(tablero[x][y]);// para agregar los elementos\n }\n }\n rePintarTablero();\n }",
"public void rozmiarTablicy()\n {\n iloscWierszy = tabelaDanych.getRowCount();\n iloscKolumn = tabelaDanych.getColumnCount();\n tablica = new int[iloscWierszy][iloscKolumn];\n // wypelnienie tablicy pomocniczej z wartościami tabeli\n for (int i = 0; i < iloscWierszy ; i++)\n {\n for (int j = 0; j < iloscKolumn; j++)\n {\n tablica [i][j] = (int) tabelaDanych.getValueAt(i,j);\n }\n }\n }",
"private void vulTabel() {\n\t\ttblSessies.setItems(sc.getSessieObservableLijst());\n\t\tclnTitel.setCellValueFactory(cel -> cel.getValue().getTitelProperty());\n\t\tclnVerantwoordelijke.setCellValueFactory(cel -> cel.getValue().getVerantwoordelijkeNaamProperty());\n\t\tclnStartdatum.setCellValueFactory(cel -> cel.getValue().getStartDatumProperty());\n\t\tclnDuur.setCellValueFactory(cel -> cel.getValue().getDuurProperty());\n\t\ttblSessies.getSelectionModel().selectedItemProperty().addListener((obs, oldV, newV) -> {\n\t\t\tsc.setSessie(newV);\n\t\t});\n\t\tthis.setVgrow(tblSessies, Priority.SOMETIMES);\n\t}",
"public Exo2_Editeurpolylignes() {\n valeur_maximum = 5;\n initComponents();\n Tools.windowsInit(this);\n Tools.setIcone(\"./src/Icones/Icone_Lines.bmp\", this);\n this.setTitle(\"Editeur de poly-Lignes\");\n etat = Etat.Init;\n //rien\n initNombrePoints();\n\n }",
"private void establecerTablaPlatillos() {\n Object[] columnas = {\"Platillo\", \"Cantidad\", \"Costo\"};\n Object[][] modelo = new Object[platillosAVender.size()][3];\n int x = 0;\n\n for (VentaPlatillo ventaPlatillo : platillosAVender) {\n\n modelo[x][0] = ventaPlatillo.getPlatillo().getNombre();\n modelo[x][1] = ventaPlatillo.getCantidad();\n modelo[x][2] = ventaPlatillo.getCosto();\n x++;\n }\n // Se establece el modelo en la tabla con los datos\n tablaPlatillosAVender.setDefaultEditor(Object.class, null);\n tablaPlatillosAVender.setModel(new DefaultTableModel(modelo, columnas));\n tablaPlatillosAVender.setCellSelectionEnabled(false);\n tablaPlatillosAVender.setRowSelectionAllowed(false);\n txtTotal.setText(total + \"\");\n }",
"@Override\n public String toString(){\n return \"G(\"+this.getVidas()+\")\";\n }",
"private ArrayList<String> rows() {\r\n ArrayList<String> noteLabels = new ArrayList<>();\r\n\r\n //row labels\r\n for (int ii = this.no.highestNote().getNoteNumber();\r\n ii >= this.no.lowestNote().getNoteNumber();\r\n ii--) {\r\n noteLabels.add((Pitch\r\n .values()[Math.floorMod(ii - 1, 12)]\r\n .toString())\r\n + Integer.toString((ii - 1 - Math.floorMod(ii - 1, 12)) / 12));\r\n }\r\n return noteLabels;\r\n }",
"public void cambioLigas(){\n\t\ttry{\n\t\t\tmodelo.updatePartidosEmaitzak(ligasel.getSelectionModel().getSelectedItem().getIdLiga());\n\t\t}catch(ManteniException e){\n\t\t\t\n\t\t}\n\t\t\n\t}",
"private void dibujarReina(Graphics g) {\n\t\tint x = (fila - 1) * 50 + 10;\r\n\t\tint y = (columna - 1) * 50 + 40;\r\n\t\tg.drawLine(x + 5, y + 45, x + 45, y + 45);\r\n\t\tg.drawLine(x + 5, y + 45, x + 5, y + 5);\r\n\t\tg.drawLine(x + 45, y + 45, x + 45, y + 5);\r\n\t\tg.drawLine(x + 5, y + 35, x + 45, y + 35);\r\n\t\tg.drawLine(x + 5, y + 5, x + 15, y + 20);\r\n\t\tg.drawLine(x + 15, y + 20, x + 25, y + 5);\r\n\t\tg.drawLine(x + 25, y + 5, x + 35, y + 20);\r\n\t\tg.drawLine(x + 35, y + 20, x + 45, y + 5);\r\n\t\tg.drawOval(x + 20, y + 20, 10, 10);\r\n\t}",
"@Override\n\tpublic ArrayList<Lista> listaListeElettorali() {\n\t\t\t\n\t\t\t\n\t\t\tDB db = getDB();\n\t\t\tMap<Integer, Lista> map = db.getTreeMap(\"liste\");\n\t\t\tArrayList<Lista> liste = new ArrayList<Lista>();\n\t\t\tSet<Integer> keys = map.keySet();\n\t\t\tfor (int key : keys) {\n\t\t\t\tliste.add(map.get(key));\n\t\t\t}\n\t\n\t\t\treturn liste;\n\t\t\t\n\t\t}",
"private String creaElenco() {\n String testoTabella ;\n String riga = CostBio.VUOTO;\n ArrayList listaPagine = new ArrayList();\n ArrayList listaRiga;\n HashMap mappaTavola = new HashMap();\n String cognomeText;\n int num;\n int taglioPagine = Pref.getInt(CostBio.TAGLIO_COGNOMI_PAGINA);\n String tag = \"Persone di cognome \";\n ArrayList titoli = new ArrayList();\n titoli.add(LibWiki.setBold(\"Cognome\"));\n titoli.add(LibWiki.setBold(\"Voci\"));\n\n for (Map.Entry<String, Integer> mappa: mappaCognomi.entrySet()) {\n\n cognomeText = mappa.getKey();\n num = mappa.getValue();\n if (num >= taglioPagine) {\n cognomeText = tag + cognomeText + CostBio.PIPE + cognomeText;\n cognomeText = LibWiki.setQuadre(cognomeText);\n cognomeText = LibWiki.setBold(cognomeText);\n }// end of if cycle\n\n listaRiga = new ArrayList();\n listaRiga.add(cognomeText);\n listaRiga.add(num);\n listaPagine.add(listaRiga);\n\n }// end of for cycle\n mappaTavola.put(Cost.KEY_MAPPA_SORTABLE_BOOLEAN, true);\n mappaTavola.put(Cost.KEY_MAPPA_TITOLI, titoli);\n mappaTavola.put(Cost.KEY_MAPPA_RIGHE_LISTA, listaPagine);\n testoTabella = LibWiki.creaTable(mappaTavola);\n\n return testoTabella;\n }",
"@Override\n\tvoid ligar() {\n\t\tsuper.ligar();\n\t\tSystem.out.println(\"Automovel ligando\");\n\t}",
"public DefaultTableModel buscarlotes() {\n \n String encabezados[]= {\"Nombre\",\"Codigo\",\"Lote\",\"Vencimiento\",\"Dias Restantes\"};\n Control.ControlLote c = new Control.ControlLote();\n List<Modelo.Lotes> lotes = null;\n \n try {\n lotes = c.buscarlote();\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(AgregarStock.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n Long resta;//para saber cuanto queda de vencimiento\n java.util.Date fechaActual = new Date(); \n \n String [][] data = new String[lotes.size()][5];\n for (int i = 0; i < lotes.size(); i++) {\n \n resta=lotes.get(i).getVencimiento().getTime()-fechaActual.getTime();\n long dias = (resta / (1000 * 60 * 60 * 24))+1;\n \n \n data[i][0] = lotes.get(i).getNombre();\n data[i][1] = Long.toString(lotes.get(i).getCodigo());\n data[i][2] = lotes.get(i).getLote();\n data[i][3] = lotes.get(i).getVencimiento().toString();\n if(dias<1)\n data[i][4] = (\"Vencido\");\n else{\n data[i][4] = Long.toString(dias);\n }\n\n }\n\n jTable1.setDefaultRenderer (Object.class, new MiRender());\n \n return new DefaultTableModel(data,encabezados);\n }",
"private void caricaLivelloDiLegge() {\n\t\ttry {\n\t\t\t//TODO riutilizzo il piano dei conti caricato in precedenza ma associato al padre (per evitare un nuovo accesso a db)! verificare se va bene!\n\t\t\tlivelloDiLegge = conto.getContoPadre().getPianoDeiConti().getClassePiano().getLivelloDiLegge();\n\t\t} catch(NullPointerException npe) {\n\t\t\tthrow new BusinessException(\"Impossibile determinare il livello di legge associato al conto. Verificare sulla base dati il legame con il piano dei conti e la classe piano.\");\n\t\t}\n\t}",
"public tabelAnggota() {\n initComponents();\n \n //membuat tablemodel\n model = new DefaultTableModel();\n //menambah tablemodel ke tabel\n jTable1.setModel(model);\n \n model.addColumn(\"ID Anggota\");\n model.addColumn(\"Nama\");\n model.addColumn(\"Alamat\");\n model.addColumn(\"No HP\");\n model.addColumn(\"Tanggal Lahir\");\n model.addColumn(\"Tanggal Bergabung\");\n \n loadData();\n enaButtonSimpan();\n }",
"static void pritlnSouSuoBiaoToWindow()\n {\n System.out.println(\"\");\n System.out.println(\"方向状态到状态路径表 outToATable\");\n \n String[]tableHeads=\n {\n \"编号\",\"矩阵\",\"0号\",\"1号\",\"2号\",\"3号\",\"4号\",\"5号\",\"6号\",\"7号\",\"8号\",\"9号\",\"10号\",\"11号\",\"12号\",\"13号\",\"14号\",\"15号\",\"16号\",\"17号\",\"18号\",\"19号\",\"20号\",\"21号\",\"22号\",\"23号\" \n }\n ;\n Vector tableHeadName=new Vector();\n \n for(int l=0;l<tableHeads.length;l++)\n {\n tableHeadName.add(tableHeads[l]);\n }\n \n \n Vector row=new Vector();\n //row.add(tableHeadName);\n for(int i=0;i<statusJuZhenList.size();i++)\n {\n //if(statusJuZhenList.size ()==24){System.out.println(\"24个状态\");}\n Vector cell=new Vector();\n \n cell.add(String.valueOf(i));\n \n int[][]intArray ;\n intArray=(int[][])(statusJuZhenList.get(i));\n String statusJuZhenToString=\"\" ;\n for(int j=0;j<3;j++)\n {\n statusJuZhenToString+=\"[ \" ;\n for(int k=0;k<3;k++)\n {\n statusJuZhenToString+=String.valueOf(intArray[k][j])+\",\" ;\n }\n statusJuZhenToString+=\" ],\" ;\n }\n cell.add(statusJuZhenToString);\n \n //public static Vector[][]souSuoBiao=new Vector[24][24];\n for(int j=0;j<statusJuZhenList.size();j++)\n {\n Vector luJingArray=(Vector)souSuoBiao[i][j];\n String iToJAllLuJing=luJingArray.toString();\n cell.add(iToJAllLuJing);\n }\n \n \n \n \n row.add(cell);\n }\n \n \n DefaultTableModel tableModel=new DefaultTableModel();\n tableModel.setDataVector(row,tableHeadName);\n \n \n MoFang.theMainFrame.totlePanel.table2.setModel(tableModel);\n MoFang.theMainFrame.totlePanel.table2.setGridColor(Color.cyan);\n \n \n }",
"private void montarLabelNumeros() {\n\r\n\t\tlblNumeros = new JLabel[this.dificuldade.getValor()][this.dificuldade.getValor()];\r\n\r\n\t\tBorder borda = BorderFactory.createLineBorder(Color.BLACK, 2);\r\n\r\n\t\tfor (int i = 0; i < lblNumeros.length; i++) {\r\n\t\t\tfor (int j = 0; j < lblNumeros.length; j++) {\r\n\t\t\t\tlblNumeros[i][j] = new JLabel(\"\", SwingConstants.CENTER);\r\n\t\t\t\tlblNumeros[i][j].setVisible(true);\r\n\r\n\t\t\t\tconfiguraFonteNumeros(lblNumeros[i][j]);//CHAMA PRA CONFIGURAR A FONTE BASEADO NA DIFICULDADE\r\n\r\n\t\t\t\tthis.painelJogo2.add(lblNumeros[i][j]);//ADICIONA NO PAINEL\r\n\t\t\t\tif (this.mapa.getCelula(i, j).isBomba() == false) {//\r\n\t\t\t\t\tif (this.mapa.getCelula(i, j).isEmBranco() == false) {//SE NAO FOR BOMBA NEM EM BRANCO CONFIGURA OS NUMEROS DAQUELE LABEL\r\n\t\t\t\t\t\tconfigurarNumeros(i, j);\r\n\t\t\t\t\t} \r\n\t\t\t\t} else {//SE FOR BOMBA, DEIXA OPACO, DEIXA O BACKGROUND VERMELHO E COLOCA O ICONE\r\n\t\t\t\t\tlblNumeros[i][j].setOpaque(true);\r\n\t\t\t\t\tlblNumeros[i][j].setBackground(Color.RED);\r\n\t\t\t\t\tlblNumeros[i][j].setIcon(iconBomba);\r\n\t\t\t\t}\r\n\t\t\t\tlblNumeros[i][j].setBorder(borda);//COLOCA UMA BORDA NO LABEL\r\n\t\t\t\tlblNumeros[i][j].setVisible(false);//DEIXA INVISIVEL, SO FICA VISIVEL QND O BOTAO DA MESMA POSICAO EH ABERTO\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected void dataTableleibie(int i) {\n\t\r\n}",
"@Override\r\n public void paint(Graphics g) {\n super.paint(g);\r\n Color col = new Color(255, 255, 255);//color gris\r\n g.drawLine(0, 20, 245, 20);//pinta una linea en la parte superior de la ventana\r\n Dimension size = getSize();//encapsula el tamñao de un objeto\r\n int parteSuperiorTablero = (int) size.getHeight() - altoTablero * alturaPieza();\r\n\r\n for (int i = 0; i < altoTablero; ++i) {\r\n for (int j = 0; j < anchoTablero; ++j) {\r\n PiezasTetris pieza = dimensionar(j, altoTablero - i - 1);\r\n if (pieza != PiezasTetris.NoPieza) {\r\n pintarPiezas(g, 0 + j * anchoPieza(),\r\n parteSuperiorTablero + i * alturaPieza(), pieza);\r\n }\r\n }\r\n }\r\n\r\n if (piezaActual.getPieza() != PiezasTetris.NoPieza) {\r\n for (int i = 0; i < 4; ++i) {\r\n int x = posicionX + piezaActual.x(i);\r\n int y = posicionY - piezaActual.y(i);\r\n pintarPiezas(g, 0 + x * anchoPieza(),\r\n parteSuperiorTablero + (altoTablero - y - 1) * alturaPieza(),\r\n piezaActual.getPieza());\r\n }\r\n }\r\n }",
"static void obiektyTablice() {\n\n Object obiektString = new String();\n Object obiektObiekt = new Object();\n Integer[] obiektInt = new Integer[3];\n int[] tablicaInt = new int[5];\n\n obiektString = \"tekstStringa\";\n obiektObiekt = \"tekstObiektu\";\n obiektInt[2] = 3;\n tablicaInt[2] = 2;\n int wielkoscTablicy = tablicaInt.length;\n System.out.println(obiektObiekt + \"\\n\" + obiektString + \"\\n\" + obiektInt[2] + \"\\n\" + tablicaInt[3] + \"\\n\"\n + wielkoscTablicy);\n\n // modulo mniejszej przez większą = reszta*większa\n int b = 7 % 12;\n System.out.println(\"Modulo = \" + b);\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic void funkcie() {\n\t\tTableColumn<Znamka, String> datumColumn = new TableColumn<>(\"Datum pisomky\");\n\t\tdatumColumn.setMinWidth(velkostPolickaX - 1);\n\t\tdatumColumn.setCellValueFactory(new PropertyValueFactory<>(\"datumS\"));\n\n\t\tTableColumn<Znamka, Double> hodnotaColumn = new TableColumn<Znamka, Double>(\"Hodnota\");\n\t\thodnotaColumn.setMinWidth(velkostPolickaX - 1);\n\t\thodnotaColumn.setCellValueFactory(new PropertyValueFactory<>(\"hodnotaS\"));\n\n\t\tTableColumn<Znamka, Double> maxHodnotaColumn = new TableColumn<Znamka, Double>(\"Max. Hodnota\");\n\t\tmaxHodnotaColumn.setMinWidth(velkostPolickaX - 1);\n\t\tmaxHodnotaColumn.setCellValueFactory(new PropertyValueFactory<>(\"maxHodnotaS\"));\n\n\t\ttabulkaZiak.getColumns().addAll(hodnotaColumn, maxHodnotaColumn, datumColumn);\n\n\t\tvyberPredmetov.setItems(((Ziak) aktualnyPouzivatel).vratMenoPredmetov());\n\t\tvyberPredmetov.getSelectionModel().selectedIndexProperty()\n\t\t\t\t.addListener((ChangeListener<Number>) (ov, value, new_value) -> {\n\t\t\t\t\ttabulkaZiak.setItems(((Ziak) aktualnyPouzivatel).vratZnamkyPredmetu((int) new_value));\n\t\t\t\t});\n\t\tvyberPredmetov.getSelectionModel().selectFirst();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"Báo: \"+\"\\t\"+\", Số Trang: \"+soTrang+\", Nhà xuất bản: \"+nxb;\n\t}",
"Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);",
"@Override\n public String toString() {\n return \"\\tMunicipio: \" + municipio + \"\\t\" + \"Habitantes: \" + habitantes + \".\";\n }",
"public pasien() {\n initComponents();\n model = new DefaultTableModel();\n tabelpasien.setModel(model);\n model.addColumn(\"ID_PASIEN\");\n model.addColumn(\"NAMA_PASIEN\");\n model.addColumn(\"ALAMAT\");\n \n loadData();\n \n }",
"public void afficherLru() {\n\t\tint nbrCols = listEtape.size();\n\t\tint nbrRows = 0;\n\t\tfor(ArrayList<Processus> list: listEtape) {\n\t\t\tif(list.size() > nbrRows) nbrRows = list.size(); \n\t\t}\n\t\t\n\t\taddColsRows(resultPane, nbrCols+1, nbrRows);\n\t\taddPanelForResult(resultPane);\n\t\n\n\t\tresultPane.setStyle(\"-fx-background-color: #23CFDC\");\n\n\t\t// Affichage du résultat\n\t\tfor(int i=0; i< listEtape.size();i++) {\n\t\t\tArrayList<Processus> list = listEtape.get(i); \n\t\t\tfor(int j=0; j<list.size(); j++) {\n\t\t\t\tProcessus p = list.get(j); \n\t\t\t\tLabel label = new Label(\"\" + p.getValue());\n\n\t\t\t\tresultPane.add(label, i+1, j);\n\t\t\t\tGridPane.setHalignment(label, HPos.CENTER);\n\n\t\t\t}\n\t\t}\n\t\tresultPane.setVisible(true);\n\t\tgenere = true;\n\t}",
"public void loadData() {\n String[] header = {\"Tên Cty\", \"Mã Cty\", \"Cty mẹ\", \"Giám đốc\", \"Logo\", \"Slogan\"};\n model = new DefaultTableModel(header, 0);\n List<Enterprise> list = new ArrayList<Enterprise>();\n list = enterpriseBN.getAllEnterprise();\n for (Enterprise bean : list) {\n Enterprise enterprise = enterpriseBN.getEnterpriseByID(bean.getEnterpriseParent()); // Lấy ra 1 Enterprise theo mã\n Person person1 = personBN.getPersonByID(bean.getDirector());\n Object[] rows = {bean.getEnterpriseName(), bean.getEnterpriseID(), enterprise, person1, bean.getPicture(), bean.getSlogan()};\n model.addRow(rows);\n }\n listEnterprisePanel.getTableListE().setModel(model);\n setupTable();\n }",
"public void mostrarTablero(){\n for(int fila = 0; fila < FILAS; fila++){\n for(int columna : tablero[fila]){\n System.out.printf(\"%2d \", columna);\n }\n System.out.println();\n }\n }",
"private static void dodajClanaUTabelu(Clan c) {\r\n\t\tDefaultTableModel dtm = (DefaultTableModel) teretanaGui.getTable().getModel();\r\n\t\tdtm.addRow(new Object[] { c.getBrojClanskeKarte(), c.getIme(), c.getPrezime(), c.getPol() });\r\n\t\tcentrirajTabelu();\r\n\t}",
"Kerucut(){\r\n Tabung tab = new Tabung();\r\n tinggi=tab.getTinggi();\r\n }",
"public void afficher() {\n\t\tfor(int i=0;i<this.taille;i++) {\n\t\t\tfor (int j=0;j<this.taille;j++) {\n\t\t\t\tSystem.out.print(grille.get(i).get(j).getTypeOccupation()+\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\" \");\n\t\t}\n\t}",
"public void llenadoDeTablas() {\n DefaultTableModel modelo = new DefaultTableModel();\n modelo.addColumn(\"ID Articulo\");\n modelo.addColumn(\"Fecha Ingreso\");\n modelo.addColumn(\"Nombre Articulo\");\n modelo.addColumn(\"Talla XS\");\n modelo.addColumn(\"Talla S\");\n modelo.addColumn(\"Talla M\");\n modelo.addColumn(\"Talla L\");\n modelo.addColumn(\"Talla XL\");\n modelo.addColumn(\"Color Articulo\");\n modelo.addColumn(\"Nombre Proveedor\");\n modelo.addColumn(\"Existencias\");\n\n RegistroArticuloDAO registroarcticuloDAO = new RegistroArticuloDAO();\n\n List<RegistroArticulo> registroarticulos = registroarcticuloDAO.select();\n TablaArticulo.setModel(modelo);\n String[] dato = new String[11];\n for (int i = 0; i < registroarticulos.size(); i++) {\n dato[0] = Integer.toString(registroarticulos.get(i).getPK_id_articulo());\n dato[1] = registroarticulos.get(i).getFecha_ingreso();\n dato[2] = registroarticulos.get(i).getNombre_articulo();\n dato[3] = registroarticulos.get(i).getTalla_articuloXS();\n dato[4] = registroarticulos.get(i).getTalla_articuloS();\n dato[5] = registroarticulos.get(i).getTalla_articuloM();\n dato[6] = registroarticulos.get(i).getTalla_articuloL();\n dato[7] = registroarticulos.get(i).getTalla_articuloXL();\n dato[8] = registroarticulos.get(i).getColor_articulo();\n dato[9] = registroarticulos.get(i).getNombre_proveedor();\n dato[10] = registroarticulos.get(i).getExistencia_articulo();\n\n //System.out.println(\"vendedor:\" + vendedores);\n modelo.addRow(dato);\n }\n }",
"public void testColumnaIzquierdaLlena( )\n {\n setupEscenario2( );\n triqui.limpiarTablero( );\n triqui.marcarCasilla( 1, marcaJugador1 );\n triqui.marcarCasilla( 4, marcaJugador1 );\n triqui.marcarCasilla( 7, marcaJugador1 );\n assertTrue( triqui.columnaIzquierdaLlena( marcaJugador1 ) );\n assertTrue( triqui.ganoJuego( marcaJugador1 ) );\n }",
"public void sortieBloc() {\n this.tableLocaleCourante = this.tableLocaleCourante.getTableLocalPere();\n }",
"public void showNewTableaux() {\n System.out.println(\"Nowa tablica simpleksowa: \");\n DecimalFormat df = new DecimalFormat(\"0.00\");\n for (double[] row : tableaux) {\n for (double element : row) {\n System.out.print(df.format(element) + \"\\t\");\n }\n System.out.println();\n }\n double valueObjectiveFunction = tableaux[numberOfVariables][numberOfConstraints + numberOfVariables];\n System.out.println(\"Wartość funkcji celu = \" + df.format(valueObjectiveFunction));\n for (int i = 0; i < numberOfVariables; i++)\n if (basisVariables[i] < numberOfConstraints)\n System.out.println(\"x\"\n + basisVariables[i]\n + \" = \"\n + df.format(tableaux[numberOfVariables][numberOfConstraints + i]));\n }",
"public Drakkar(){\r\n\t\tanguilas=m;\r\n\t}",
"public UDKValgfagsRunde1(ArrayList<ValgfagsDTO> valgfagsListe) {\n fmt = new DecimalFormat(\"#.##\");\n fmt.setRoundingMode(RoundingMode.HALF_UP);\n this.valgfagsListe = valgfagsListe;\n initComponents();\n jList_Valgfag.setModel(new DefaultListModel());\n jList_Valgfag.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n \n jList_aPulje.setModel(new DefaultListModel());\n jList_bPulje.setModel(new DefaultListModel());\n \n for (ValgfagsDTO valgfagsDTO : valgfagsListe) {\n ((DefaultListModel)jList_Valgfag.getModel()).addElement(valgfagsDTO.getNavn());\n }\n \n tm = (DefaultTableModel)jTable1.getModel();\n\tjTable1.setDefaultRenderer(String.class, new EntryCellRenderer()); // the first parameter ensures the cell renderer will be used only for Integer type cells.\n \n jLabel_Score0.setOpaque(true);\n jLabel_Score1.setOpaque(true);\n jLabel_Score2.setOpaque(true);\n jLabel_Score3.setOpaque(true);\n jLabel_Score4.setOpaque(true);\n jLabel_Score6.setOpaque(true);\n \n jLabel_Score0.setBackground(EntryCellRenderer.score0);\n jLabel_Score1.setBackground(EntryCellRenderer.score1);\n jLabel_Score2.setBackground(EntryCellRenderer.score2);\n jLabel_Score3.setBackground(EntryCellRenderer.score3);\n jLabel_Score4.setBackground(EntryCellRenderer.score4);\n jLabel_Score6.setBackground(EntryCellRenderer.score6);\n refreshAllStatusLabels();\n }",
"protected void pretragaGledalac() {\n\t\tString Gledalac=tfPretraga.getText();\r\n\r\n\t\tObject[]redovi=new Object[9];\r\n\t\tdtm.setRowCount(0);\r\n\t\t\r\n\t\tfor(Rezervacije r:Kontroler.getInstanca().vratiRezervacije()) {\r\n\t\t\tif(r.getImePrezime().toLowerCase().contains(Gledalac.toLowerCase())) {\r\n\t\t\t\r\n\t\t\t\tredovi[0]=r.getID_Rez();\r\n\t\t\t\tredovi[1]=r.getImePrezime();\r\n\t\t\t\tredovi[2]=r.getImePozorista();\r\n\t\t\t\tredovi[3]=r.getNazivPredstave();\r\n\t\t\t\tredovi[4]=r.getDatumIzvodjenja();\r\n\t\t\t\tredovi[5]=r.getVremeIzvodjenja();\r\n\t\t\t\tredovi[6]=r.getScenaIzvodjenja();\r\n\t\t\t\tredovi[7]=r.getBrRezUl();\r\n\t\t\t\tredovi[8]=r.getCenaUlaznica();\r\n\t\t\t\tdtm.addRow(redovi);\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\n public String getGenericLabel() {\n return \"Počet sloupců v každé tabulce\";\n }",
"public String getLasagna(){\n return \"ID: \"+this.ID+\"\\nNombre: \"+this.nombre+\"\\nTipo: \"+this.tipo+\"\\nPrecio: \"+this.precio; //Devuelve todos los datos de la lasagna\n }",
"@Override\n public String toString(){\n return \"|Lege navn: \"+legeNavn+\" |Kon.ID: \"+konID+\"|\";\n }",
"public void popular(){\n DAO dao = new DAO();\n modelo.setNumRows(0);\n\n for(Manuais m: dao.selecTudoManuaisVenda()){\n modelo.addRow(new Object[]{m.getId(),m.getNome(),m.getClasse(),m.getEditora(),m.getPreco()+\".00 MZN\"});\n \n }\n }",
"public void llenadoDeTablas() {\n \n DefaultTableModel modelo1 = new DefaultTableModel();\n modelo1 = new DefaultTableModel();\n modelo1.addColumn(\"ID Usuario\");\n modelo1.addColumn(\"NOMBRE\");\n UsuarioDAO asignaciondao = new UsuarioDAO();\n List<Usuario> asignaciones = asignaciondao.select();\n TablaPerfiles.setModel(modelo1);\n String[] dato = new String[2];\n for (int i = 0; i < asignaciones.size(); i++) {\n dato[0] = (Integer.toString(asignaciones.get(i).getId_usuario()));\n dato[1] = asignaciones.get(i).getNombre_usuario();\n\n modelo1.addRow(dato);\n }\n }",
"@Override\r\n public Object getValueAt(int rad, int kol) {\n Lege legen = data.get(rad);\r\n Object[] linjen = legen.getTabelllinje();\r\n switch(kol){\r\n case 0: return linjen[0];//Autnr\r\n case 1: return linjen[1];//Navn\r\n case 2: return linjen[2];//Reseptbevilgning\r\n case 3: return linjen[3];//Arbeidsstedr\r\n default: return null;\r\n } \r\n }",
"@Override\n public String toString()\n {\n String res = \"\";\n int teller = 1;\n res += \"\\nrij: \" + ANSI_RED + \"1\" + ANSI_RESET + \" 2 \" + ANSI_RED + \"3\" + ANSI_RESET + \" 4 \" + ANSI_RED + \"5\" + ANSI_RESET + \" 6 \" + ANSI_RED + \"7\" + ANSI_RESET + \" \\n\";\n for (Gangkaart gg[] : gangkaarten)\n {\n res += \" \";\n for (Gangkaart g : gg)\n {\n res += String.format(\"%s \", g.toStringRij1());\n }\n res += \"\\n\";\n res += \" \" + teller + \" \";\n for (Gangkaart g : gg)\n {\n res += String.format(\"%s \", g.toStringRij2());\n }\n res += \" \" + teller;\n res += \"\\n\";\n res += \" \";\n for (Gangkaart g : gg)\n {\n res += String.format(\"%s \", g.toStringRij3());\n }\n res += \"\\n\";\n teller++;\n }\n res += \"\\nrij: \" + ANSI_RED + \"1\" + ANSI_RESET + \" 2 \" + ANSI_RED + \"3\" + ANSI_RESET + \" 4 \" + ANSI_RED + \"5\" + ANSI_RESET + \" 6 \" + ANSI_RED + \"7\" + ANSI_RESET + \" \\n\";\n return res;\n }",
"public void populaTabela(Vector[] linhas, JTable tabela){\n DefaultTableModel tb = (DefaultTableModel)tabela.getModel();\n int count = (tb).getRowCount();\n \n if(count>0){\n limpaTabela(tabela);\n }\n\n\n for(int i = 0; i<linhas.length; i++){\n tb.addRow(linhas[i]);\n }\n \n }",
"public MapperDeSalidaExcepcionFormat() {\n super();\n listaMappeo = new LinkedList();\n }",
"public void rePintarTablero() {\n int colorArriba = turnoComputadora != 0 ? turnoComputadora : -1;\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n if (x % 2 == 0) {\n tablero[x][y].setFondo(y % 2 == 1 ? getNegro() : getBlanco());\n tablero[x][y].setResaltar(y % 2 == 1 ? getNegroResaltado() : getBlancoResaltado());\n } else {\n tablero[x][y].setFondo(y % 2 == 0 ? getNegro() : getBlanco());\n tablero[x][y].setResaltar(y % 2 == 0 ? getNegroResaltado() : getBlancoResaltado());\n }\n tablero[x][y].setBounds(anchoCuadro * (colorArriba == -1 ? x : (7 - x)), altoCuadro * (colorArriba == -1 ? y : (7 - y)), anchoCuadro, altoCuadro);\n }\n }\n }",
"public void afficherLfu() {\n\t\tint nbrCols = listEtapeLfu.size();\n\t\tint nbrRows = 0;\n\t\tfor(ArrayList<ProcessusLfu> list: listEtapeLfu) {\n\t\t\tif(list.size() > nbrRows) nbrRows = list.size(); \n\t\t}\n\t\taddColsRows(resultPane, nbrCols+1, nbrRows);\n\t\taddPanelForResult(resultPane);\n\t\t\n\t\tresultPane.setStyle(\"-fx-background-color: #23CFDC\");\n\n\t\t// Affichage du résultat\n\t\tfor(int i=0; i< listEtapeLfu.size();i++) {\n\t\t\tArrayList<ProcessusLfu> list = listEtapeLfu.get(i); \n\t\t\tfor(int j=0; j<list.size(); j++) {\n\t\t\t\tProcessusLfu p = list.get(j); \n\t\t\t\tLabel label = new Label(\"\" + p.getValue());\n\n\t\t\t\tresultPane.add(label, i+1, j);\n\t\t\t\tGridPane.setHalignment(label, HPos.CENTER);\n\n\t\t\t}\n\t\t}\n\t\tresultPane.setVisible(true);\n\t\tgenere = true;\n\t}",
"public ListaPalabras() {\n\n //pos=0;\n }",
"private static void lanzaTablero() {\r\n\t\t// for (contadorPelotas = 0; contadorPelotas<numPelotasEnTablero;) { // Cambiado porque ahora el contador va dentro del objeto\r\n\t\twhile (tablero.size()<tablero.tamMaximo()) {\r\n\t\t\t// Crea pelota nueva\r\n\t\t\t// Con constructor por defecto sería:\r\n\t\t\t// Pelota p = new Pelota();\r\n\t\t\t//\tp.x = r.nextInt(5) * ANCHO_CASILLA + (ANCHO_CASILLA/2); // Posición aleatoria de centro en 5 filas\r\n\t\t\t//\tp.y = r.nextInt(5) * ALTO_CASILLA + (ALTO_CASILLA/2); // Posición aleatoria de centro en 5 columnas\r\n\t\t\t//\tp.radio = r.nextInt(21) + 50; // Radio aleatorio entre 50 y 70\r\n\t\t\t//\tp.color = COLORES_POSIBLES[ r.nextInt( COLORES_POSIBLES.length ) ];\r\n\t\t\t// Con constructor con parámetros:\r\n\t\t\tPelota p = new Pelota(\r\n\t\t\t\tr.nextInt(RADIO_MAXIMO-RADIO_MINIMO+1) + RADIO_MINIMO, // Radio aleatorio entre los valores dados\r\n\t\t\t\tr.nextInt(tamanyoTablero) * ANCHO_CASILLA + (ANCHO_CASILLA/2), // Posición aleatoria de centro en n filas\r\n\t\t\t\tr.nextInt(tamanyoTablero) * ALTO_CASILLA + (ALTO_CASILLA/2), // Posición aleatoria de centro en n columnas\r\n\t\t\t\tCOLORES_POSIBLES[ r.nextInt( COLORES_POSIBLES.length ) ]\r\n\t\t\t);\r\n\t\t\t// boolean existeYa = yaExistePelota( tablero, p, contadorPelotas ); // Método movido a la clase GrupoPelotas\r\n\t\t\tboolean existeYa = tablero.yaExistePelota( p ); // Observa que el contador deja de ser necesario\r\n\t\t\tif (!existeYa) {\r\n\t\t\t\t// Se dibuja la pelota y se añade al array\r\n\t\t\t\tp.dibuja( v );\r\n\t\t\t\t// tablero[contadorPelotas] = p; // Sustituido por el objeto:\r\n\t\t\t\ttablero.addPelota( p );\r\n\t\t\t\t// contadorPelotas++; // El contador deja de ser necesario (va incluido en el objeto GrupoPelotas)\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Comprueba que el tablero sea posible (no hay solo N-2 pelotas de un color dado)\r\n\t\tchar tabPosible = ' ';\r\n\t\tdo { // Repite hasta que el tablero sea posible\r\n\t\t\t\r\n\t\t\tif (tabPosible!=' ') {\r\n\t\t\t\tboolean existeYa = true;\r\n\t\t\t\tPelota p = null;\r\n\t\t\t\tdo {\r\n\t\t\t\t\tp = new Pelota(\r\n\t\t\t\t\t\tr.nextInt(RADIO_MAXIMO-RADIO_MINIMO+1) + RADIO_MINIMO, // Radio aleatorio entre los valores dados\r\n\t\t\t\t\t\tr.nextInt(tamanyoTablero) * ANCHO_CASILLA + (ANCHO_CASILLA/2), // Posición aleatoria de centro en n filas\r\n\t\t\t\t\t\tr.nextInt(tamanyoTablero) * ALTO_CASILLA + (ALTO_CASILLA/2), // Posición aleatoria de centro en n columnas\r\n\t\t\t\t\t\ttabPosible\r\n\t\t\t\t\t);\r\n\t\t\t\t\texisteYa = tablero.yaExistePelota( p );\r\n\t\t\t\t} while (existeYa);\r\n\t\t\t\tp.dibuja( v );\r\n\t\t\t\ttablero.addPelota( p );\r\n\t\t\t}\r\n\t\t\tquitaPelotasSiLineas( false );\r\n\t\t\ttabPosible = tableroPosible();\r\n\t\t} while (tabPosible!=' ');\r\n\t\tv.setMensaje( tablero.size() + \" pelotas creadas.\" );\r\n\t}",
"public void LlenarPagos(){\n datos=new DefaultTableModel();\n LlenarModelo();\n this.TablaPagos.setModel(datos);\n }",
"private void limparTabela() {\n while (tmLivro.getRowCount() > 0) {\n tmLivro.removeRow(0);\n }\n }",
"public void reloadTable() {\n\n this.removeAllData();// borramos toda la data \n for (int i = 0; i < (list.size()); i++) { // este for va de la primera casilla hast ael largo del arreglo \n Balanza object = list.get(i);\n this.AddtoTable(object);\n }\n\n }",
"private void load_table() {\n DefaultTableModel model = new DefaultTableModel();\n model.addColumn(\"Nis\");\n model.addColumn(\"Nama\");\n model.addColumn(\"Sekolah\");\n model.addColumn(\"Jurusan\");\n model.addColumn(\"Tempat PKL\");\n model.addColumn(\"Total Nilai\");\n\n //menampilkan data database kedalam tabel\n try {\n int no = 1;\n String sql = \"select * from tampil_nilai\";\n java.sql.Connection conn = (Connection) config.configDB();\n java.sql.Statement stm = conn.createStatement();\n java.sql.ResultSet res = stm.executeQuery(sql);\n while (res.next()) {\n model.addRow(new Object[]{res.getString(1), res.getString(2), res.getString(3),\n res.getString(4), res.getString(5), res.getString(6)});\n \n }\n jTable1.setModel(model);\n } catch (SQLException e) {\n }\n\n \n \n try {\n String sql = \"select * from jurusan\";\n java.sql.Connection conn = (Connection) config.configDB();\n java.sql.Statement stm = conn.createStatement();\n java.sql.ResultSet res = stm.executeQuery(sql);\n \n this.hasil1 = new Object[3];\n int counter = 0;\n while (res.next()) { \n jComboBoxjurusan.addItem(res.getString(2));\n this.hasil1[counter++] = res.getString(1);\n }\n } catch(SQLException e) {\n \n }\n \n try {\n String sql = \"select * from lab\";\n java.sql.Connection conn = (Connection) config.configDB();\n java.sql.Statement stm = conn.createStatement();\n java.sql.ResultSet res = stm.executeQuery(sql);\n \n this.hasil2 = new Object[5];\n int counter = 0;\n while (res.next()) {\n \n jComboBoxpkl.addItem(res.getString(2));\n this.hasil2[counter++] = res.getString(1);\n }\n } catch(SQLException e) {\n \n }\n }",
"private void utvidtabellen() {\n\t\tCD[] hjelpeTab;\n\t\tif (cdTabell.length == 0) {\n\t\t\thjelpeTab = new CD[1];\n\t\t\tmaksAntall = 1;\n\t\t} else {\n\t\t\thjelpeTab = new CD[(int) Math.ceil(cdTabell.length * 1.1)];\n\t\t\tmaksAntall = hjelpeTab.length;\n\t\t}\n\t\tfor (int i = 0; i < cdTabell.length; i++) {\n\t\t\thjelpeTab[i] = cdTabell[i];\n\t\t}\n\t\tcdTabell = hjelpeTab;\n\t}",
"private final void prepareOrginalValiesTable() {\n\t\torig_values_list = new ArrayList<ArrayList<String>>();\n\t\tfor (int col = 0; col < previewTable.getColumnCount(); ++col) {\n\t\t\tfinal ArrayList<String> n = new ArrayList<String>();\n\t\t orig_values_list.add( n);\n\t\t for (int row = 0; row < previewTable.getRowCount(); ++row) {\n\t\t \t//TODO what about list values?\n\t\t\t\tString v = (String) previewTable.getValueAt(row, col);\n\t\t\t\tn.add(v);\n\t\t\t}\n\t\t}\n\t}",
"public void paintLigne(Graphics g) {\r\n g.setColor(Color.BLACK);\r\n for (int i = 0; i < this.ligne.getTailleListePoints() - 1; i++) {\r\n g.drawLine((int) this.ligne.getPoint(i).getX(), (int) this.ligne.getPoint(i).getY(),\r\n (int) this.ligne.getPoint(i + 1).getX(), (int) this.ligne.getPoint(i + 1).getY());\r\n }\r\n }",
"public void affiche(){\r\n\t\tfor (int i = 0; i < this.grille.length; i++){\r\n\t\t\tfor (int j = 0; j < this.grille.length; j++){\r\n\t\t\t\tSystem.out.print(this.grille[i][j]);\r\n\t\t\t}\r\n\t\t\tSystem.out.print('\\n');\r\n\t\t}\r\n\t}",
"private void tabelaFevereiroMouseClicked(java.awt.event.MouseEvent evt) {\n \n Compromisso.setText(this.indexesToString());\n \n }",
"String getTabela();",
"public Listado() {\n initComponents();\n\n for (int i=0;i<tbl_listado.getRowCount();i++)\n {\n Float precio = (Float)tbl_listado.getModel().getValueAt(i, 1);\n double iva = precio*0.12;\n tbl_listado.getModel().setValueAt(iva,i,4);\n }\n }",
"private void limparTabela() { \n while (tmLivro.getRowCount() > 0) { \n tmLivro.removeRow(0);\n }\n }",
"int getNombreColonnesPlateau();",
"public DataMahasiswa() {\n initComponents();\n load_table();\n }",
"@Override // prekrytie danej metody predka\r\n public String toString() {\r\n return super.toString()\r\n + \" vaha: \" + String.format(\"%.1f kg,\", dajVahu())\r\n + \" farba: \" + dajFarbu() + \".\";\r\n }",
"private void loadTable() {\n model.getDataVector().removeAllElements();\n model.fireTableDataChanged();\n try {\n String sql = \"select * from tb_mahasiswa\";\n Statement n = a.createStatement();\n ResultSet rs = n.executeQuery(sql);\n while (rs.next()) {\n Object[] o = new Object[6];\n o[0] = rs.getString(\"id_mahasiswa\");\n o[1] = rs.getString(\"nama\");\n o[2] = rs.getString(\"tempat\");\n o[3] = rs.getString(\"waktu\");\n o[4] = rs.getString(\"status\");\n model.addRow(o);\n }\n } catch (Exception e) {\n }\n }",
"public void printLines(String valu){\r\n List<String>Map=new ArrayList<>();\r\n switch(valu){\r\n case \"C\":\r\n Map.addAll(CirclesLines);\r\n break;\r\n case \"V\": \r\n Map.addAll(VocalistsLines);\r\n break;\r\n case \"A\":\r\n Map.addAll(ArrangersLines);\r\n break;\r\n }\r\n for(String arrang:Map){\r\n System.out.println(arrang);\r\n }\r\n System.out.println(ArrangersInsert.size());\r\n }",
"public String toString() {\r\n if(t!=null && t.getLettre()!=System.getProperty(\"line.separator\").charAt(0))\r\n {\r\n return \"(f= \"+String.valueOf(this.frequence)+\" L= \"+this.t.getLettre()+\")\";\r\n }\r\n else if(t!=null && t.getLettre()==System.getProperty(\"line.separator\").charAt(0)){\r\n return \"(f= \"+String.valueOf(this.frequence)+\" L=[saut_ligne])\";\r\n }\r\n else {\r\n return \"(f= \" + String.valueOf(this.frequence) + \" g= \" + this.getGauche() + \" d= \" + this.getDroite()+\"\";\r\n }\r\n }",
"public TablaInmueble() {\n initComponents();\n this.setLocationRelativeTo(null);\n inmd = new InmuebleData();\n this.cargarTabla();\n \n }",
"public void tableViewExpulsoes(Liga liga) throws SQLException {\n jogador.setCellValueFactory(cellData\n -> new SimpleObjectProperty<String>(cellData.getValue().getNome()));\n qtdJogos.setCellValueFactory(cellData\n -> new SimpleObjectProperty<Integer>(cellData.getValue().getQtdJogos()));\n qtdAmarelos.setCellValueFactory(cellData\n -> new SimpleObjectProperty<Integer>(cellData.getValue().getAmarelos()));\n expulsao.setCellValueFactory(cellData\n -> new SimpleObjectProperty<Integer>(cellData.getValue().getVemelho()));\n autogolos.setCellValueFactory(cellData\n -> new SimpleObjectProperty<Integer>(cellData.getValue().getGolosAnulados()));\n \n // Se a liga estiver vazia apresenta estatisticas gerais senao \n if(liga != null){\n listaJogador = DbJogador.obterJogadorExpulsõesLiga(liga);\n }else {\n listaJogador = DbJogador.obterJogadorExpulsões();\n }\n \n observableList = FXCollections.observableArrayList(listaJogador);\n tableviewExpul.setItems(observableList);\n\n }",
"public void limpiar() {\n\t//txtBuscar.setText(\"\");\n\n\t// codTemporal.setText(\"\");\n\thabilita(true, false, false, false, false, true, false, true, true);\n }",
"@Override\n\tpublic void llenarArreglo(){\n\n\t\tString[] textoSeparado = texto.toLowerCase().split(\"\\\\W+\"); //pasa todo a minusculas y despues busca todas las no palabras con W y con + junta los que estan seguidos para separador, ver http://regexr.com/3dcpk\n\n\t\tif (palabras==null) {\n\t\t\t//agregar el primer elemento manualmente\n\t\t\tLabel etiqueta = new Label(textoSeparado[0]);\n\t\t\tpalabras = new Palabra[1];\n\t\t\tpalabras[0] = new Palabra(textoSeparado[0], etiqueta);\n\t\t}\n\n\t\t\tfor (int i=1; i<textoSeparado.length; i++) { //importante el uno para no contar la primera palabra dos veces\n\t\t\t\tString buscar= textoSeparado[i];\n\t\t\t\tif (!checarListaNegra(buscar)) { //solo se hace la operacion por cada palabra si no esta en la lista negra\n\t\t\t\t\tboolean yaExiste = false;\n\t\t\t\t\tfor (Palabra palabraActual : palabras) {\n\t\t\t\t\t\tif (palabraActual.getContenido().equals(buscar)) {\n\t\t\t\t\t\t\tyaExiste = true;\n\t\t\t\t\t\t\tpalabraActual.actualizarFrecuencia();\n\t\t\t\t\t\t//\tSystem.out.println(\"se actualizo\"+ palabraActual.getContenido());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!yaExiste) {\n\t\t\t\t\t\t//no se encontro la palabra (String buscar) en el gran arreglo de palabras entonces hay que crearla\n\t\t\t\t\t\tagregarPalabra(buscar);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"@Override\r\n public String toString() {\r\n StringBuilder cad = new StringBuilder(\"\");\r\n cad.append(\"\\nTabla: {\\n\");\r\n for (int i = 0; i < this.table.length; i++) {\r\n if(this.table[i] == null){\r\n cad.append(\"\\t()\\n\");\r\n }else{\r\n cad.append(\"\\t\").append(this.table[i].toString()).append(\"\\n\");\r\n }\r\n }\r\n cad.append(\"}\");\r\n return cad.toString();\r\n }"
] | [
"0.6114069",
"0.6069602",
"0.6045963",
"0.6041268",
"0.5936158",
"0.5934714",
"0.5892237",
"0.58578366",
"0.5832577",
"0.58108115",
"0.5810126",
"0.5709918",
"0.56442994",
"0.5611212",
"0.56081456",
"0.5605005",
"0.5603072",
"0.55949306",
"0.5576123",
"0.5574193",
"0.5569048",
"0.5565984",
"0.55626386",
"0.5543769",
"0.5509295",
"0.5482503",
"0.54698944",
"0.5469739",
"0.546414",
"0.5463018",
"0.5461362",
"0.54554284",
"0.5454099",
"0.544103",
"0.5421013",
"0.5414984",
"0.54042554",
"0.5399695",
"0.5396277",
"0.53870314",
"0.5386164",
"0.53739333",
"0.53694403",
"0.5369282",
"0.53595257",
"0.53576285",
"0.5350551",
"0.534959",
"0.53482777",
"0.5344863",
"0.5344363",
"0.5342928",
"0.5342011",
"0.5323364",
"0.53228813",
"0.53114414",
"0.53058386",
"0.53051895",
"0.5299624",
"0.52928126",
"0.5284989",
"0.5281634",
"0.52768284",
"0.5275636",
"0.5268179",
"0.52680093",
"0.52532303",
"0.5251119",
"0.52444917",
"0.5242806",
"0.52274406",
"0.5223386",
"0.5220303",
"0.5206721",
"0.52041054",
"0.5196804",
"0.5195903",
"0.5191365",
"0.51903355",
"0.5186111",
"0.5178766",
"0.5178048",
"0.5175783",
"0.5175626",
"0.51697016",
"0.5167823",
"0.516747",
"0.51667386",
"0.51618946",
"0.51579297",
"0.5154898",
"0.5153279",
"0.515147",
"0.51480144",
"0.51461303",
"0.51433563",
"0.51430225",
"0.51395595",
"0.51367086",
"0.5135796",
"0.51322967"
] | 0.0 | -1 |
Setzt die Rechte Gabel. | public void setRight(Fork right) {
this.right = right;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setzeBeschriftungen(){ \t\t\t\n\t\tif (jRBtnLinie.isSelected()) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// wenn linie gewählt ist: ..\n\t\t\tjLPositionX1.setText(\"Startpunkt x:\");\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// .. verschiedene labels für die textfelder anpassen für parameter-werte (x1,y1,x2,y2) [y1 bleibt immer gleich]\n\t\t\tjLPositionX2.setText(\"Endpunkt x:\");\n\t\t\tjLPositionY2.setText(\" y:\");\n\t\t} else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// wenn rechteck, oval, kreis:..\n\t\t\tjLPositionX1.setText(\"Position x:\");\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ... labels anpassen auf parameter-werte (x1, y1, breite, höhe) [y1 bleibt immer gleich]\t\t\t\t\n\t\t\tjLPositionX2.setText(\"Breite:\");\n\t\t\tjLPositionY2.setText(\"Höhe:\");\n\t\t}\n\t}",
"public void setzeAllePunkteanzeigenSichtbar() \n {\n anzeige.punkteLinksSichtbarSetzen( true );\n anzeige.punkteRechtsSichtbarSetzen( true );\n }",
"private void setupSpalteAnzMitarbeiter() {\r\n\t\t// legt fest, welches Attribut von Arbeitspaket in dieser Spalte angezeigt wird\r\n\t\tspalteAnzMitarbeiter.setCellValueFactory(new PropertyValueFactory<>(\"mitarbeiteranzahl\"));\r\n\r\n\t\t// lässt die Zelle mit Hilfe der Klasse EditCell bei Tastatureingabe bearbeitbar\r\n\t\t// machen\r\n\t\tspalteAnzMitarbeiter.setCellFactory(\r\n\t\t\t\tEditCell.<ArbeitspaketTableData, Integer>forTableColumn(new MyIntegerStringConverter()));\r\n\r\n\t\t// überschreibt den alten Attributwert mit der User-Eingabe\r\n\t\tspalteAnzMitarbeiter.setOnEditCommit(event -> {\r\n\t\t\tfinal Integer value = event.getNewValue() != null ? event.getNewValue() : event.getOldValue();\r\n\t\t\tevent.getTableView().getItems().get(event.getTablePosition().getRow()).setMitarbeiteranzahl(value);\r\n\t\t\ttabelle.refresh();\r\n\t\t});\r\n\t}",
"private void srediTabelu() {\n\n mtu = (ModelTabeleUlica) jtblUlica.getModel();\n ArrayList<Ulica> ulice = kontrolor.Kontroler.getInstanca().vratiUlice();\n mtu.setLista(ulice);\n\n }",
"public void setzeNurRechtePunkteanzeigeSichtbar() \n {\n anzeige.punkteLinksSichtbarSetzen( false );\n anzeige.punkteRechtsSichtbarSetzen( true );\n }",
"public void setzeNurLinkePunkteanzeigeSichtbar() \n {\n anzeige.punkteLinksSichtbarSetzen( true );\n anzeige.punkteRechtsSichtbarSetzen( false );\n }",
"@Override\n public void setLabel(String arg0)\n {\n \n }",
"void setAnzahlVerkauft(String anzahlVerkauft);",
"public void setzeAllePunkteanzeigenUnsichtbar() \n {\n anzeige.punkteLinksSichtbarSetzen( false );\n anzeige.punkteRechtsSichtbarSetzen( false );\n }",
"private void setupSpalteSez() {\r\n\t\t// legt fest, welches Attribut von Arbeitspaket in dieser Spalte angezeigt wird\r\n\t\tspalteSez.setCellValueFactory(new PropertyValueFactory<>(\"sez\"));\r\n\r\n\t\t// lässt die Zelle mit Hilfe der Klasse EditCell bei Tastatureingabe bearbeitbar\r\n\t\t// machen\r\n\t\tspalteSez.setCellFactory(\r\n\t\t\t\tEditCell.<ArbeitspaketTableData, Integer>forTableColumn(new MyIntegerStringConverter()));\r\n\r\n\t\t// überschreibt den alten Attributwert mit der User-Eingabe\r\n\t\tspalteSez.setOnEditCommit(event -> {\r\n\t\t\tfinal Integer value = event.getNewValue() != null ? event.getNewValue() : event.getOldValue();\r\n\t\t\tevent.getTableView().getItems().get(event.getTablePosition().getRow()).setSez(value);\r\n\t\t\ttabelle.refresh();\r\n\t\t});\r\n\t}",
"private void setupSpalteFez() {\r\n\t\t// legt fest, welches Attribut von Arbeitspaket in dieser Spalte angezeigt wird\r\n\t\tspalteFez.setCellValueFactory(new PropertyValueFactory<>(\"fez\"));\r\n\r\n\t\t// lässt die Zelle mit Hilfe der Klasse EditCell bei Tastatureingabe bearbeitbar\r\n\t\t// machen\r\n\t\tspalteFez.setCellFactory(\r\n\t\t\t\tEditCell.<ArbeitspaketTableData, Integer>forTableColumn(new MyIntegerStringConverter()));\r\n\r\n\t\t// überschreibt den alten Attributwert mit der User-Eingabe\r\n\t\tspalteFez.setOnEditCommit(event -> {\r\n\t\t\tfinal Integer value = event.getNewValue() != null ? event.getNewValue() : event.getOldValue();\r\n\t\t\tevent.getTableView().getItems().get(event.getTablePosition().getRow()).setFez(value);\r\n\t\t\ttabelle.refresh();\r\n\t\t});\r\n\t}",
"public void set() {\r\n\t\tage = 19;\r\n\t\tname = \"ΎΛ·»\";\r\n\t\theight = 161;\r\n\t\tsetWeight(50);\r\n\t\tSystem.out.println(getWeight());\r\n\t}",
"private void srediTabelu() {\n ModelTabeleStavka mts = new ModelTabeleStavka();\n mts.setLista(n.getLista());\n tblStavka.setModel(mts);\n }",
"@Override\r\n\tpublic void setDefault(String oletus) {\r\n\t\ttextVastaus.setText(oletus);\r\n\t}",
"public abstract void setAcma_cierre(java.lang.String newAcma_cierre);",
"public MaschinenVerwaltung() {\r\n setMaschinenListe();\r\n setEinKopfMaschinenListe();\r\n setZweiBisAchtKopfMaschine();\r\n setZehnUndMehrKopfMaschine();\r\n }",
"@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}",
"private void setupSpalteSaz() {\r\n\t\t// legt fest, welches Attribut von Arbeitspaket in dieser Spalte angezeigt wird\r\n\t\tspalteSaz.setCellValueFactory(new PropertyValueFactory<>(\"saz\"));\r\n\r\n\t\t// lässt die Zelle mit Hilfe der Klasse EditCell bei Tastatureingabe bearbeitbar\r\n\t\t// machen\r\n\t\tspalteSaz.setCellFactory(\r\n\t\t\t\tEditCell.<ArbeitspaketTableData, Integer>forTableColumn(new MyIntegerStringConverter()));\r\n\r\n\t\t// überschreibt den alten Attributwert mit der User-Eingabe\r\n\t\tspalteSaz.setOnEditCommit(event -> {\r\n\t\t\tfinal Integer value = event.getNewValue() != null ? event.getNewValue() : event.getOldValue();\r\n\t\t\tevent.getTableView().getItems().get(event.getTablePosition().getRow()).setSaz(value);\r\n\t\t\ttabelle.refresh();\r\n\t\t});\r\n\t}",
"public RuimteFiguur() {\n kleur = \"zwart\";\n }",
"public void setBunga(int tipeBunga){\n }",
"@Override\n\tpublic void yürü() {\n\n\t}",
"public void setzePunkteanzeigeFarbe( String farbe ) \n { \n anzeige.setzeFarbePunktestand( farbe ); \n }",
"public Stabel(){\n elementer = 0;\n hode = new Node(null);\n hale = hode;\n hode.neste = hale;\n hale.forrige = hode;\n }",
"public data_kelahiran() {\n initComponents();\n ((javax.swing.plaf.basic.BasicInternalFrameUI)this.getUI()).setNorthPane(null);\n autonumber();\n data_tabel();\n lebarKolom();\n \n \n \n }",
"public abstract void setLibelle(String unLibelle);",
"public void setlbr_IE (String lbr_IE);",
"public v_pembelian() {\n initComponents();\n disable_info();\n setTabel();\n initFaktur();\n }",
"private void setupSpalteAufwand() {\r\n\t\t// legt fest, welches Attribut von Arbeitspaket in dieser Spalte angezeigt wird\r\n\t\tspalteAufwand.setCellValueFactory(new PropertyValueFactory<>(\"aufwand\"));\r\n\r\n\t\t// lässt die Zelle mit Hilfe der Klasse EditCell bei Tastatureingabe bearbeitbar\r\n\t\t// machen\r\n\t\tspalteAufwand.setCellFactory(\r\n\t\t\t\tEditCell.<ArbeitspaketTableData, Integer>forTableColumn(new MyIntegerStringConverter()));\r\n\r\n\t\t// überschreibt den alten Attributwert mit der User-Eingabe\r\n\t\tspalteAufwand.setOnEditCommit(event -> {\r\n\t\t\tfinal Integer value = event.getNewValue() != null ? event.getNewValue() : event.getOldValue();\r\n\t\t\tevent.getTableView().getItems().get(event.getTablePosition().getRow()).setAufwand(value);\r\n\t\t\ttabelle.refresh();\r\n\t\t});\r\n\t}",
"public void setEnqueteur(Enqueteur enqueteur)\r\n/* */ {\r\n/* 65 */ this.enqueteur = enqueteur;\r\n/* */ }",
"private void setupSpalteFaz() {\r\n\t\t// legt fest, welches Attribut von Arbeitspaket in dieser Spalte angezeigt wird\r\n\t\tspalteFaz.setCellValueFactory(new PropertyValueFactory<>(\"faz\"));\r\n\r\n\t\t// lässt die Zelle mit Hilfe der Klasse EditCell bei Tastatureingabe bearbeitbar\r\n\t\t// machen\r\n\t\tspalteFaz.setCellFactory(\r\n\t\t\t\tEditCell.<ArbeitspaketTableData, Integer>forTableColumn(new MyIntegerStringConverter()));\r\n\r\n\t\t// überschreibt den alten Attributwert mit der User-Eingabe\r\n\t\tspalteFaz.setOnEditCommit(event -> {\r\n\t\t\tfinal Integer value = event.getNewValue() != null ? event.getNewValue() : event.getOldValue();\r\n\t\t\tevent.getTableView().getItems().get(event.getTablePosition().getRow()).setFaz(value);\r\n\t\t\ttabelle.refresh();\r\n\t\t});\r\n\t}",
"public BestellingAfleveradres() {\n initComponents();\n txtGemeente.setText(gemeente);\n txtGemeente.setEnabled(false);\n txtPostcode.setText(postcode2);\n txtPostcode.setEnabled(false);\n }",
"private void resetLexeme(){\n\t\tcola = \"\";\n\t}",
"public abstract void setCod_tecnico(java.lang.String newCod_tecnico);",
"public void setGeslacht(char geslacht)\n {\n if (geslacht == 'm' || geslacht == 'v'){\n\n if (geslacht == 'm'){\n this.geslacht = \"man\";\n }\n\n if (geslacht == 'v'){\n this.geslacht = \"vrouw\"; \n }\n }\n else {\n System.out.println (\"geslacht moet m of v zijn\"); \n }\n }",
"public BitacoraHotelera() {\n initComponents();\n tabla();\n this.setTitle(\"BITACORA DEL ÁREA DE HOTELERIA\");\n }",
"public void setdat()\n {\n }",
"public void effacerSaisie()\n\t{\n\t\ttfCltNew.setText(\"\");\n\t\ttfNumero.setText(\"\");\n\t\ttfNom.setText(\"\");\n\t\ttfPrenom.setText(\"\");\n\t\tselectDefaultValue();\n\t}",
"public void verarbeite() {\n\t\t\r\n\t}",
"public void setGenero(Genero genero)\r\n/* 148: */ {\r\n/* 149:271 */ this.genero = genero;\r\n/* 150: */ }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void farbeSetzen(String farbe) {\r\n\t\t//farbeSetzen(zuFarbeKonvertieren(farbe));\r\n\t}",
"public void setNombre(String nombre)\r\n/* 65: */ {\r\n/* 66: 76 */ this.nombre = nombre;\r\n/* 67: */ }",
"@Override\n\tpublic void set() {\n\t\tSystem.out.println(\"A==========set\");\n\t}",
"void setLabel(String label);",
"public void setLocacion(String locacion);",
"void setLabel(Label label);",
"public void setMenu(){\n opciones='.';\n }",
"void setGruppo(Gruppo gruppo);",
"public void setEtiqueta(String etiqueta)\n/* 32: */ {\n/* 33:48 */ this.etiqueta = etiqueta;\n/* 34: */ }",
"public formdatamahasiswa() {\n initComponents();\n }",
"String setValue();",
"public void steuern() {\n\t\teinlesenUndInitialisieren();\n\t\tausgabe();\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"public void limpiar() {\n\t//txtBuscar.setText(\"\");\n\n\t// codTemporal.setText(\"\");\n\thabilita(true, false, false, false, false, true, false, true, true);\n }",
"@Override\n\tpublic void setLabel(String label) {\n\t\t\n\t}",
"@Override\n\tvoid ligar() {\n\t\tsuper.ligar();\n\t\tSystem.out.println(\"Automovel ligando\");\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"public hesapekrani() {\n initComponents();\n getedits();\n \n \n }",
"public datakontrak() {\n initComponents();\n this.setLocationRelativeTo(this);\n tb_kontrak.changeSelection(0, 0, true, false);\n }",
"public void initialisieren(String neuerName, int neuesAlter, float neuesGewicht, String neuesUrsprungsland, boolean neuGefaehrlich) {\n // deshalb kann man hier auch ohne super arbeiten\n initialisieren(\"Affe\", neuerName, neuesAlter, neuesGewicht, neuesUrsprungsland, neuGefaehrlich);\n }",
"void setRecensione(String recensione);",
"public Drakkar(){\r\n\t\tanguilas=m;\r\n\t}",
"public void setLabel(T2 eLabel) {\r\n\t\tthis.label = eLabel;\r\n\t\tcheckRep();\r\n\t}",
"private void ulangiEnkripsi() {\n this.tfieldP.setText(\"P\");\n this.tfieldQ.setText(\"Q\");\n this.tfieldN.setText(\"N\");\n this.tfieldTN.setText(\"TN\");\n this.tfieldE.setText(\"E\");\n this.tfieldD.setText(\"D\");\n this.tfieldLokasidannamafilehasilenkripsi.setText(\"Lokasi & Nama File Hasil Enkripsi\");\n this.tfieldLokasidannamafileenkripsi.setText(\"Lokasi & Nama File\");\n this.fileAsli = null;\n this.pbEnkripsi.setValue(0);\n this.enkripsi.setP(null);\n this.enkripsi.setQ(null);\n this.enkripsi.setN(null);\n this.enkripsi.setTn(null);\n this.enkripsi.setE(null);\n this.enkripsi.setD(null);\n }",
"void setEditore(String editore);",
"private void fillLabelsTabel() {\n }",
"public void setKelas(String sekolah){\n\t\ttempat = sekolah;\n\t}",
"public void initialize() {\n\t\tanzPakete = Integer.parseInt(textFieldAnzPakete.getText());\r\n\r\n\t\t// Tabelle erzeugen\r\n\t\tsetupTabelle();\r\n\t}",
"private void m50368G() {\n this.f30729a0.setText(C10527a.f28546g);\n this.f30736g0.setText(\"01/21\");\n this.f30737h0.setText(\"111\");\n this.f30738i0.setText(\"Test User\");\n }",
"public void setzeHintergrundgrafik( String pfad ) \n {\n ea.edu.FensterE.getFenster().hintergrundSetzen( new Bild(0,0,pfad) );\n }",
"private void limpaTela() {\n txfNomeGrupo.setText(\"\");\n ftfValorViagem.setText(\"0\");\n ftfDataSaida.setText(\"\");\n ftfHoraSaida.setText(\"\");\n ftfDataRetorno.setText(\"\");\n ftfHoraRetorno.setText(\"\");\n\n txfNumPessoas.setText(\"\");\n txfIntegrante.setText(\"\");\n\n txfNomeGrupo.setBackground(null);\n ftfValorViagem.setBackground(Color.white);\n ftfDataSaida.setBackground(Color.white);\n ftfHoraSaida.setBackground(Color.white);\n ftfDataRetorno.setBackground(Color.white);\n ftfHoraRetorno.setBackground(Color.white);\n txfNumPessoas.setBackground(null);\n txfIntegrante.setBackground(Color.white);\n\n }",
"public void flagg() {\n if (trykketPaa) {\n return;\n }\n // Setter ruten som flagget, dersom den ikke var flagget fra foer\n if (!getText().equals(\"#\")) {\n setText(\"#\");\n flagget = true;\n bombeTeller.oppdaterAntBomber(-1); // Minsker antall bomber\n }\n // Fjerner flaggingen, dersom ruten var flagget fra foer\n else {\n flagget = false;\n setText(\" \");\n bombeTeller.oppdaterAntBomber(+1); // Oeker ant bomber\n }\n }",
"@Override\n\tprotected void setValueOnUi() {\n\n\t}",
"public Aufgabe06() {\n initComponents();\n postInitComponents();\n }",
"void setTitolo(String titolo);",
"public void setzePunkteanzeigeRechts( int neuerPunktestand ) \n {\n anzeige.punkteRechtsSetzen( neuerPunktestand );\n }",
"public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }",
"public void erzaehlWas() {\n // Das Gleiche was jedes Tier sagt.\n super.erzaehlWas();\n\n // Zusaetzliche Aussage des Affen\n System.out.println(\"Affen sind einfach die besten Tiere.\");\n }",
"private void setStaticData() {\n\t\t// TODO Auto-generated method stub\n\t\tlblGradesSubj.setText(i18n.GL3045());\n\t\tlblStandards.setText(i18n.GL0575());\n\t}",
"public void fjernAlle() {\n listehode.neste = null;\n antall = 0;\n }",
"public void trenneVerbindung();",
"@Override\n\tpublic void setData() {\n\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"public void nastav() {\n\t\ttabulkaZiak.setMaxWidth(velkostPolickaX * 3 + 2);\n\t\ttabulkaZiak.setPlaceholder(new Label(\"Žiadne známky.\"));\n\n\t}",
"Kerucut(){\r\n Tabung tab = new Tabung();\r\n tinggi=tab.getTinggi();\r\n }",
"public void setNombre(String nombre)\r\n/* 118: */ {\r\n/* 119:214 */ this.nombre = nombre;\r\n/* 120: */ }",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"public void setLabel(Object v) \n {\n this.label = v;\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"public void setFarbe(FarbEnum farbe) {\n\t\tif(farbe==null){\n\t\t\tthrow new RuntimeException(\"Waehle eine Farbe !\");\n\t\t}\n\t\tthis.farbe = farbe;\n\t}",
"public void setAutorizacion(String autorizacion)\r\n/* 139: */ {\r\n/* 140:236 */ this.autorizacion = autorizacion;\r\n/* 141: */ }",
"public void setInfor() {\n\t\t\t\tidJLabel.setSize(200,30);\n\t\t\t\tidJLabel.setLocation(100,20);\n\t\t\t\tadd(idJLabel);\n\t\t\t\tidField.setSize(200, 30);\n\t\t\t\tidField.setLocation(300,20);\n\t\t\t\tadd(idField);\n\t\t\t\t\n\t\t\t\t//set thong tin cho title label\n\t\t\t\ttitleJLabel.setSize(200,30);\n\t\t\t\ttitleJLabel.setLocation(100,60);\n\t\t\t\tadd(titleJLabel);\n\t\t\t\ttitleField.setSize(200, 30);\n\t\t\t\ttitleField.setLocation(300,60);\n\t\t\t\tadd(titleField);\n\t\t\t\t\n\t\t\t\t//set thong tin cho category label\n\t\t\t\tcategoryJLabel.setSize(200,30);\n\t\t\t\tcategoryJLabel.setLocation(100,100);\n\t\t\t\tadd(categoryJLabel);\n\t\t\t\tcateField.setSize(200, 30);\n\t\t\t\tcateField.setLocation(300,100);\n\t\t\t\tadd(cateField);\n\t\t\t\t\n\t\t\t\t// set thong tin cho cost label\n\t\t\t\tcostJLabel.setSize(200,30);\n\t\t\t\tcostJLabel.setLocation(100,140);\n\t\t\t\tadd(costJLabel);\n\t\t\t\tcostField.setSize(200, 30);\n\t\t\t\tcostField.setLocation(300,140);\n\t\t\t\tadd(costField);\n\t\t\t\t\n\t\t\t\t// set thong tin cho nut 'ok'\t\n\t\t\t\tokJButton.setSize(100,30);\n\t\t\t\tokJButton.setLocation(250,330);\n\t\t\t\tokJButton.setFocusPainted(false);\n\t\t\t\tadd(okJButton);\n \n\t}",
"public PlatzVerkaufsWerkzeug()\r\n\t{\r\n\t\t_ui = new PlatzVerkaufsWerkzeugUI();\r\n\t\tregistriereUIAktionen();\r\n\t\t// Am Anfang wird keine Vorstellung angezeigt:\r\n\t\tsetVorstellung(null);\r\n//\t\t_auswahl = new Map<Platz, Boolean>; Alternative mit Map\r\n\t}",
"public void affichageLabyrinthe () {\n\t\t//Affiche le nombre de coups actuel sur la console et sur la fenetre graphique\n\t\tSystem.out.println(\"Nombre de coups : \" + this.laby.getNbCoups() + \"\\n\");\t\t\n\t\tthis.enTete.setText(\"Nombre de coups : \" + this.laby.getNbCoups());\n\n\t\t//Affichage dans la fenêtre et dans la console du labyrinthe case par case, et quand la case est celle ou se trouve le mineur, affiche ce dernier\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tString ligne = new String();\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (i != this.laby.getMineur().getY() || j != this.laby.getMineur().getX()) {\n\t\t\t\t\tligne = ligne + this.laby.getLabyrinthe()[i][j].graphismeCase();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j]=new Case();\n\t\t\t\t\tligne = ligne + this.laby.getMineur().graphismeMineur();\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif (grille.getComponentCount() < this.laby.getLargeur()*this.laby.getHauteur()) {\n\t\t\t\t\tgrille.add(new JLabel());\n\t\t\t\t\t((JLabel)grille.getComponents()[i*this.laby.getLargeur()+j]).setIcon(this.laby.getLabyrinthe()[i][j].imageCase(themeJeu));\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(ligne);\n\t\t}\n\t\t((JLabel)grille.getComponents()[this.laby.getMineur().getY()*this.laby.getLargeur()+this.laby.getMineur().getX()]).setIcon(this.laby.getMineur().imageCase(themeJeu));\n\t}",
"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 setar_campos() {\n int setar = tblEmpresas.getSelectedRow();\n txtEmpId.setText(tblEmpresas.getModel().getValueAt(setar, 0).toString());\n txtEmpNome.setText(tblEmpresas.getModel().getValueAt(setar, 1).toString());\n txtEmpCNPJ.setText(tblEmpresas.getModel().getValueAt(setar, 2).toString());\n txtEmpEnd.setText(tblEmpresas.getModel().getValueAt(setar, 3).toString());\n txtEmpTel.setText(tblEmpresas.getModel().getValueAt(setar, 4).toString());\n txtEmpEmail.setText(tblEmpresas.getModel().getValueAt(setar, 5).toString());\n\n // a linha abaixo desabilita o botao add\n btnAdicionar.setEnabled(false);\n }",
"public abstract void setCod_localidad(java.lang.String newCod_localidad);",
"public void inizializza() {\n\n /* invoca il metodo sovrascritto della superclasse */\n super.inizializza();\n\n }",
"public void setAnio(int p) { this.anio = p; }",
"@Override\r\n\tpublic void setGela_kop(int gela_kop) {\n\t\tsuper.setGela_kop(gela_kop);\r\n\t}",
"public void setThisManual()\n { \n actual = 1;\n \n nextPage = new Label();\n addObject(nextPage, 1132, 2001);\n \n prePage = new Label();\n addObject(prePage, 122, 2007);\n \n prePage.setImage(new GreenfootImage(\"\", 0, null, null));\n nextPage.setImagine(\"sipka1\");\n \n callMenu = new CallMenu();\n addObject(callMenu, 667, 60);\n }"
] | [
"0.6571501",
"0.6531755",
"0.65138453",
"0.6419106",
"0.63583994",
"0.6349657",
"0.6339533",
"0.6336995",
"0.6288125",
"0.61330885",
"0.61326045",
"0.61016494",
"0.609859",
"0.6089535",
"0.606151",
"0.60601807",
"0.6009628",
"0.6005306",
"0.59997296",
"0.5997827",
"0.59956115",
"0.5980812",
"0.59740883",
"0.5964208",
"0.5961113",
"0.5945095",
"0.59426945",
"0.5937887",
"0.59290045",
"0.5909884",
"0.58815914",
"0.58804303",
"0.58800906",
"0.58700407",
"0.5869757",
"0.58688605",
"0.58681524",
"0.5855687",
"0.58405095",
"0.583627",
"0.5818555",
"0.5817766",
"0.5814702",
"0.5813434",
"0.58117414",
"0.580872",
"0.5806495",
"0.58015704",
"0.5794775",
"0.57873225",
"0.5777835",
"0.57643336",
"0.5762986",
"0.57559025",
"0.57474756",
"0.5745294",
"0.57248247",
"0.5720561",
"0.5717885",
"0.5714856",
"0.5708767",
"0.57079834",
"0.5701921",
"0.5699321",
"0.56983066",
"0.56962454",
"0.5696114",
"0.5693168",
"0.5691092",
"0.5689731",
"0.56839925",
"0.56805503",
"0.5679277",
"0.56748754",
"0.5674316",
"0.5664879",
"0.5658191",
"0.5651815",
"0.5642403",
"0.5642062",
"0.5641193",
"0.56403494",
"0.5639056",
"0.5637643",
"0.5636987",
"0.5632431",
"0.56251097",
"0.56180054",
"0.5612805",
"0.56112236",
"0.56099683",
"0.560697",
"0.56064016",
"0.56028056",
"0.5601595",
"0.55927867",
"0.5591576",
"0.55911773",
"0.5586997",
"0.55866",
"0.5584007"
] | 0.0 | -1 |
Setzt die Linke Gabel | public void setLeft(Fork left) {
this.left = left;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setKlinik(Klinik klinik) {\r\n // variabel klinik sama dengan variabel lokal klinik\r\n this.klinik = klinik;\r\n }",
"@Override\n\tvoid ligar() {\n\t\tsuper.ligar();\n\t\tSystem.out.println(\"Automovel ligando\");\n\t}",
"public void setLien(String lien) {\n this.lien1 = lien;\n this.lien2 = lien;\n this.lien3 = lien;\n this.lien4 = lien;\n this.lien5 = lien;\n }",
"@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}",
"public void setLaji(String laji) {\n this.laji = laji; \n }",
"public void setzeNurLinkePunkteanzeigeSichtbar() \n {\n anzeige.punkteLinksSichtbarSetzen( true );\n anzeige.punkteRechtsSichtbarSetzen( false );\n }",
"private void setzeBeschriftungen(){ \t\t\t\n\t\tif (jRBtnLinie.isSelected()) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// wenn linie gewählt ist: ..\n\t\t\tjLPositionX1.setText(\"Startpunkt x:\");\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// .. verschiedene labels für die textfelder anpassen für parameter-werte (x1,y1,x2,y2) [y1 bleibt immer gleich]\n\t\t\tjLPositionX2.setText(\"Endpunkt x:\");\n\t\t\tjLPositionY2.setText(\" y:\");\n\t\t} else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// wenn rechteck, oval, kreis:..\n\t\t\tjLPositionX1.setText(\"Position x:\");\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ... labels anpassen auf parameter-werte (x1, y1, breite, höhe) [y1 bleibt immer gleich]\t\t\t\t\n\t\t\tjLPositionX2.setText(\"Breite:\");\n\t\t\tjLPositionY2.setText(\"Höhe:\");\n\t\t}\n\t}",
"public void setIdKlinik(String idKlinik) {\n this.idKlinik = idKlinik;\r\n }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"public void setLb(String lb) {\n this.lb = lb;\n }",
"public void setLn(final int ln) {\r\n this.ln = ln;\r\n }",
"private void resetLexeme(){\n\t\tcola = \"\";\n\t}",
"public void setLB(LivingBeing lb){\n\t\tthis.lb=lb; \n\t}",
"public void setL(boolean l) {\n\tthis.l = l;\n }",
"@Override\r\n\tpublic void setGela_kop(int gela_kop) {\n\t\tsuper.setGela_kop(gela_kop);\r\n\t}",
"public void setNrLoja(int nrLoja) {\n this.nrLoja = nrLoja;\n }",
"@Override\n\tpublic void setLord(Lord l) {\n\t\t\n\t}",
"public Drakkar(){\r\n\t\tanguilas=m;\r\n\t}",
"void setLegs(int legs);",
"public void setLivello(String l){\n \n this.livello = l;\n \n }",
"public void setLignes(List<OrderLine> lignes) {\n\t\t_lignes = lignes;\n\t}",
"public void setGeslacht(char geslacht)\n {\n if (geslacht == 'm' || geslacht == 'v'){\n\n if (geslacht == 'm'){\n this.geslacht = \"man\";\n }\n\n if (geslacht == 'v'){\n this.geslacht = \"vrouw\"; \n }\n }\n else {\n System.out.println (\"geslacht moet m of v zijn\"); \n }\n }",
"public void loescheEintrag() {\n\t\tzahl = 0;\n\t\tistEbenenStart = false;\n\t}",
"public void cambioLigas(){\n\t\ttry{\n\t\t\tmodelo.updatePartidosEmaitzak(ligasel.getSelectionModel().getSelectedItem().getIdLiga());\n\t\t}catch(ManteniException e){\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public void setLuogo (String luogo) {\r\n\t\tthis.luogo=luogo;\r\n\t}",
"public void setLongueur(int l) {\n\t\tthis.longueur = l;\n\t}",
"public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"@Override\n public void setLabel(String arg0)\n {\n \n }",
"public void laadSpelIn(int keuze){\r\n String naam = spellen[keuze-1][0];\r\n this.dc.selecteerSpel(naam);\r\n UC1.ua.geefSpelbordWeer();\r\n this.uc3.start();\r\n }",
"public RuimteFiguur() {\n kleur = \"zwart\";\n }",
"public void setzeEigenenStein(int spielzug){\t\t\n\t\t//Setze eigenen Stein\n\t\tfor(int i=0; i<6; i++) {\n\t\t\tif(spielfeld[spielzug][i].equals(\"_\")){\n\t\t\t\tspielfeld[spielzug][i] = eigenerStein;\n\t\t\t\teigenerPunkt.setLocation(spielzug, i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\t\n\t}",
"public void setLsjg(Float lsjg) {\n this.lsjg = lsjg;\n }",
"public void setlado(int lado) {\r\n this.lado = lado;\r\n }",
"public void setKinkenriyou07(Long kinkenriyou07) {\r\n this.kinkenriyou07 = kinkenriyou07;\r\n }",
"@Override\n public void setJoke(String aJoke) {\n }",
"static void set_ksl_tl(FM_OPL OPL, int slot, int v) {\n OPL_CH CH = OPL.P_CH[slot / 2];\n OPL_SLOT SLOT = CH.SLOT[slot & 1];\n int ksl = v >> 6;\n /* 0 / 1.5 / 3 / 6 db/OCT */\n\n /*RECHECK*/\n SLOT.ksl = (ksl != 0 ? 3 - ksl : 31);\n SLOT.TL = (int) ((v & 0x3f) * (0.75 / EG_STEP));\n /* 0.75db step */\n\n if ((OPL.mode & 0x80) == 0) {\n /* not CSM latch total level */\n\n SLOT.TLL = (int) (SLOT.TL + (CH.ksl_base >> SLOT.ksl));\n }\n }",
"public void setKinkenriyou08(Long kinkenriyou08) {\r\n this.kinkenriyou08 = kinkenriyou08;\r\n }",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"public void setlbr_IE (String lbr_IE);",
"public void setKinkenriyou18(Long kinkenriyou18) {\r\n this.kinkenriyou18 = kinkenriyou18;\r\n }",
"public void setzeGegnerStein(int gegnerZug){\t\n\t\t//Falls eigener Agent startet wird -1 uebergeben\n\t\tif(gegnerZug >= 0){\t\t\t\t\n\t\t\tfor(int i=0; i<6; i++) {\n\t\t\t\tif(spielfeld[gegnerZug][i].equals(\"_\")){\n\t\t\t\t\tspielfeld[gegnerZug][i] = gegnerStein;\n\t\t\t\t\tgegnerPunkt.setLocation(gegnerZug, i);\n\t\t\t\t\tbreak;\n\t\t\t\t} //end if\n\t\t\t} //end for\t\t\t\t\n\t\t} \t\t\n\t}",
"public Exo2_Editeurpolylignes() {\n valeur_maximum = 5;\n initComponents();\n Tools.windowsInit(this);\n Tools.setIcone(\"./src/Icones/Icone_Lines.bmp\", this);\n this.setTitle(\"Editeur de poly-Lignes\");\n etat = Etat.Init;\n //rien\n initNombrePoints();\n\n }",
"public void setLaSign(int laSign) {\n this.laSign = laSign;\n }",
"public void setGslly(String gslly) {\r\n this.gslly = gslly;\r\n }",
"public void setLBR_SitNF (String LBR_SitNF);",
"public Builder setL(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n l_ = value;\n onChanged();\n return this;\n }",
"public void setOrigen(Vertex origen) {\n this.origen = origen;\n }",
"@Override\n\tpublic void verkaufen() {\n\t}",
"private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }",
"public void setKinkenriyou01(Long kinkenriyou01) {\r\n this.kinkenriyou01 = kinkenriyou01;\r\n }",
"public void setLid (String lid)\n {\n this.lid = lid;\n }",
"private Pool setUpGamelin() {\n final int gamelinVolume = 4300;\n final int gamelinTemperature = 37;\n final double gamelinPH = 7.5;\n final double gamelinNutrientCoefficient = 1.0;\n final int gamelinNumberOfGuppies = 30;\n final int gamelinMinAge = 15;\n final int gamelinMaxAge = 49;\n final double gamelinMinHealthCoefficient = 0.0;\n final double gamelinMaxHealthCoefficient = 1.0;\n\n GuppySet gamelinGuppies = new GuppySet(gamelinNumberOfGuppies,\n gamelinMinAge, gamelinMaxAge, gamelinMinHealthCoefficient,\n gamelinMaxHealthCoefficient);\n\n Pool gamelin = setUpPool(\"Gamelin\", gamelinVolume, gamelinTemperature,\n gamelinPH, gamelinNutrientCoefficient, gamelinGuppies);\n\n return gamelin;\n }",
"public void setKinkenriyou28(Long kinkenriyou28) {\r\n this.kinkenriyou28 = kinkenriyou28;\r\n }",
"public void setL1(JLabel l1) {\n this.l1 = l1;\n }",
"public void setKinkenriyou04(Long kinkenriyou04) {\r\n this.kinkenriyou04 = kinkenriyou04;\r\n }",
"public void setKinkenriyou27(Long kinkenriyou27) {\r\n this.kinkenriyou27 = kinkenriyou27;\r\n }",
"public void affichageLabyrinthe () {\n\t\t//Affiche le nombre de coups actuel sur la console et sur la fenetre graphique\n\t\tSystem.out.println(\"Nombre de coups : \" + this.laby.getNbCoups() + \"\\n\");\t\t\n\t\tthis.enTete.setText(\"Nombre de coups : \" + this.laby.getNbCoups());\n\n\t\t//Affichage dans la fenêtre et dans la console du labyrinthe case par case, et quand la case est celle ou se trouve le mineur, affiche ce dernier\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tString ligne = new String();\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (i != this.laby.getMineur().getY() || j != this.laby.getMineur().getX()) {\n\t\t\t\t\tligne = ligne + this.laby.getLabyrinthe()[i][j].graphismeCase();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j]=new Case();\n\t\t\t\t\tligne = ligne + this.laby.getMineur().graphismeMineur();\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif (grille.getComponentCount() < this.laby.getLargeur()*this.laby.getHauteur()) {\n\t\t\t\t\tgrille.add(new JLabel());\n\t\t\t\t\t((JLabel)grille.getComponents()[i*this.laby.getLargeur()+j]).setIcon(this.laby.getLabyrinthe()[i][j].imageCase(themeJeu));\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(ligne);\n\t\t}\n\t\t((JLabel)grille.getComponents()[this.laby.getMineur().getY()*this.laby.getLargeur()+this.laby.getMineur().getX()]).setIcon(this.laby.getMineur().imageCase(themeJeu));\n\t}",
"public void lisaaKomennot() {\n this.komennot.put(1, new TarkasteleListoja(1, \"Tarkastele listoja\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n this.komennot.put(2, new LisaaListalle(2, \"Lisää listalle\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n this.komennot.put(3, new PoistaListalta(3, \"Poista listalta\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n }",
"public void setLowerLip(EditableParametrisedCylinder lowerLip) {\n\t\tremoveSceneObject(this.lowerLip);\n\t\t\n\t\t// ... and add the new one\n\t\tthis.lowerLip = lowerLip;\n\t\taddSceneObject(lowerLip);\n\t}",
"public void schritt() {\r\n\t\tfor (int i = 0; i < anzahlRennautos; i++) {\r\n\t\t\tlisteRennautos[i].fahren(streckenlaenge);\r\n\t\t}\r\n\t}",
"public void setKinkenriyou11(Long kinkenriyou11) {\r\n this.kinkenriyou11 = kinkenriyou11;\r\n }",
"public void setLOAI( String LOAI )\n {\n this.LOAI = LOAI;\n }",
"public void setPyscleunik(int pyscleunik) {\r\r\r\r\r\r\r\n this.pyscleunik = pyscleunik;\r\r\r\r\r\r\r\n }",
"public abstract void setLibelle(String unLibelle);",
"private void poetries() {\n\n\t}",
"public void setKelas(String sekolah){\n\t\ttempat = sekolah;\n\t}",
"@Test\n public void testSetL1LanId() throws Exception {\n isisNeighbor.setL1LanId(lanId);\n result1 = isisNeighbor.l1LanId();\n assertThat(result1, is(lanId));\n }",
"public void setLsjgcc(String lsjgcc) {\n this.lsjgcc = lsjgcc;\n }",
"public void setLydoTraVe(String lydoTraVe);",
"void setAnzahlVerkauft(String anzahlVerkauft);",
"void setCode(LineLoader in) {\n code=in;\n }",
"public void setNumeroLave(int numeroLave) {\n\t\tthis.numeroLave = numeroLave;\n\t}",
"private void setLabelInloggNamn() {\n String hittaNamn = (\"select namn from agent where agent_id = \" + agentID);\n\n try {\n inloggadSom.setText(\"Du är inloggad som: \" + mib.fetchSingle(hittaNamn));\n } catch (InfException ettUndantag) {\n JOptionPane.showMessageDialog(null, \"Databasfel!\");\n System.out.println(\"1,5 - Internt felmeddelande\" + ettUndantag.getMessage());\n } catch (Exception ettUndantag) {\n JOptionPane.showMessageDialog(null, \"Något gick fel!\");\n System.out.println(\"2 - Internt felmeddelande\" + ettUndantag.getMessage());\n }\n }",
"public void trenneVerbindung();",
"public void setNamaKlinik(String namaKlinik) {\n this.namaKlinik = namaKlinik;\r\n }",
"public static void Latihan() {\n Model.Garis();\n System.out.println(Model.subTitel[0]);\n Model.Garis();\n\n System.out.print(Model.subTitel[1]);\n Model.nilaiTebakan = Model.inputUser.nextInt();\n\n System.out.println(Model.subTitel[2] + Model.nilaiTebakan);\n\n // Operasi Logika\n Model.statusTebakan = (Model.nilaiTebakan == Model.nilaiBenar);\n System.out.println(Model.subTitel[3] + Model.hasilTebakan(Model.TrueFalse) + \"\\n\\n\");\n }",
"public void lower() {\n fangSolenoid.set(DoubleSolenoid.Value.kForward);\n }",
"Lingua getLingua();",
"public KI(String spielerwahl){\n\t\teigenerStein = spielerwahl;\n\t\t\n\t\tswitch (spielerwahl) {\n\t\tcase \"o\":\n\t\t\tgegnerStein = \"x\";\n\t\t\tbreak;\n\t\tcase\"x\":\n\t\t\tgegnerStein = \"o\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Ungueltige Spielerwahl.\");\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\thatAngefangen = gegnerStein;\n\t\t\n\t\tfor(int i=0; i<7; i++) { //initialisiert spielfeld\n\t\t\tfor(int j=0; j<6; j++){\t\t\t\t\n\t\t\t\tspielfeld[i][j] = \"_\";\n\t\t\t}\n\t\t\tmoeglicheZuege[i] = -1; //initialisiert die moeglichen zuege\n\t\t}\n\t\t\n\t}",
"protected abstract void setSpl();",
"public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"public void setKinkenriyou10(Long kinkenriyou10) {\r\n this.kinkenriyou10 = kinkenriyou10;\r\n }",
"public void fjernAlle() {\n listehode.neste = null;\n antall = 0;\n }",
"public void setKinkenriyou14(Long kinkenriyou14) {\r\n this.kinkenriyou14 = kinkenriyou14;\r\n }",
"@Override\n\tpublic void setLinienFarbe(Farbe farbe) {\n\n\t}",
"public Klinik getKlinik() {\r\n return klinik;\r\n }",
"private void caricaLivelloDiLegge() {\n\t\ttry {\n\t\t\t//TODO riutilizzo il piano dei conti caricato in precedenza ma associato al padre (per evitare un nuovo accesso a db)! verificare se va bene!\n\t\t\tlivelloDiLegge = conto.getContoPadre().getPianoDeiConti().getClassePiano().getLivelloDiLegge();\n\t\t} catch(NullPointerException npe) {\n\t\t\tthrow new BusinessException(\"Impossibile determinare il livello di legge associato al conto. Verificare sulla base dati il legame con il piano dei conti e la classe piano.\");\n\t\t}\n\t}",
"public void setKinkenriyou06(Long kinkenriyou06) {\r\n this.kinkenriyou06 = kinkenriyou06;\r\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void setzeAllePunkteanzeigenSichtbar() \n {\n anzeige.punkteLinksSichtbarSetzen( true );\n anzeige.punkteRechtsSichtbarSetzen( true );\n }",
"public void setKinkenriyou22(Long kinkenriyou22) {\r\n this.kinkenriyou22 = kinkenriyou22;\r\n }",
"public void initialisieren(String neuerName, int neuesAlter, float neuesGewicht, String neuesUrsprungsland, boolean neuGefaehrlich) {\n // deshalb kann man hier auch ohne super arbeiten\n initialisieren(\"Affe\", neuerName, neuesAlter, neuesGewicht, neuesUrsprungsland, neuGefaehrlich);\n }",
"@Override\n\tpublic void setGLSeqNum(BigInteger arg0) {\n\n\t}",
"public void setLow(int L)\t\n\t{\t//start of setLow method\n\t\tLOW_NUM = L;\n\t}",
"public void setL(double value) {\n this.l = value;\n }",
"public void setKinkenriyou03(Long kinkenriyou03) {\r\n this.kinkenriyou03 = kinkenriyou03;\r\n }",
"public void setKinkenriyou09(Long kinkenriyou09) {\r\n this.kinkenriyou09 = kinkenriyou09;\r\n }",
"public void setJGSL(String jgsl) {\n //To change body of implemented methods use File | Settings | File Templates.\n }",
"public void setLA(long value) {\n this.la = value;\n }",
"public void setlbr_NFeID (String lbr_NFeID);"
] | [
"0.66772884",
"0.63947237",
"0.6347329",
"0.6326851",
"0.61456126",
"0.61430174",
"0.6132404",
"0.59859324",
"0.59691525",
"0.59312457",
"0.5913319",
"0.5894234",
"0.5887398",
"0.5859423",
"0.58420324",
"0.5753416",
"0.5744666",
"0.57415175",
"0.57391924",
"0.5729791",
"0.5721457",
"0.5704285",
"0.56867236",
"0.5683798",
"0.5681469",
"0.5680553",
"0.565934",
"0.5652752",
"0.56362873",
"0.5636051",
"0.56242585",
"0.56153774",
"0.559554",
"0.5578444",
"0.55669886",
"0.5559777",
"0.55544114",
"0.55485064",
"0.5528218",
"0.5527501",
"0.5522099",
"0.5507754",
"0.54960394",
"0.54951155",
"0.5488544",
"0.54718614",
"0.5459558",
"0.54588264",
"0.54571813",
"0.54536694",
"0.5448308",
"0.54325724",
"0.5428843",
"0.5422056",
"0.54214823",
"0.54201245",
"0.5418616",
"0.54164326",
"0.54000956",
"0.5399425",
"0.5394799",
"0.5394698",
"0.5394426",
"0.539058",
"0.5390072",
"0.538279",
"0.538206",
"0.5377553",
"0.5374118",
"0.5373615",
"0.5373467",
"0.53683186",
"0.53578883",
"0.5353672",
"0.53508335",
"0.5349767",
"0.53478885",
"0.5344618",
"0.5337888",
"0.53375995",
"0.5336225",
"0.533595",
"0.5334797",
"0.53250694",
"0.5323926",
"0.53210306",
"0.53156936",
"0.53151315",
"0.53085405",
"0.53002816",
"0.5299952",
"0.52981424",
"0.5294944",
"0.5293908",
"0.5288645",
"0.5287183",
"0.5285732",
"0.52842575",
"0.5278385",
"0.527563",
"0.5272735"
] | 0.0 | -1 |
Gibt den Client zurueck. | public ClientI getClient() {
return client;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract Client getClient();",
"public void updateClient()\n\t{\n\t\t// TODO\n\t}",
"public Cliente() {\n\t\tsuper();\n\t}",
"@Override\n\tpublic void updateClient() {\n\t\t\n\t}",
"@Override\n\tpublic void readClient(Client clt) {\n\t\t\n\t}",
"@Override\n\tpublic void createClient() {\n\t\t\n\t}",
"protected Client getRealClient() {\n\t\treturn client;\n\t}",
"private void resetClient()\n\t{\n\t\tSystem.out.println(\"\\n---Resetting client...\");\n\t\tSystem.out.println(\"\\n\");\n\t\tinitialize();\n\t}",
"private SOSCommunicationHandler getClient() {\r\n\t\treturn client;\r\n\t}",
"@Override\n\tpublic void createClient(Client clt) {\n\t\t\n\t}",
"@Override\n\tpublic boolean isClient() {\n\t\treturn true;\n\t}",
"@Override\n\t\tpublic Client getClient(int idClient) {\n\t\t\treturn null;\n\t\t}",
"Client getClient();",
"public Client() {\n\t\t// TODO Auto-generated constructor stub\n\t}",
"@Override\r\n\tpublic void updateclient(Client client) {\n\t\t\r\n\t}",
"public void newClient() throws StatsDClientException {\n Lock wl = lock.writeLock();\n StatsDClient newClient = null;\n try {\n newClient = new NonBlockingStatsDClient(prefix, hostname, port);\n LOGGER.info(\"New StatsD client created. \" + newClient.hashCode());\n } catch (StatsDClientException e) {\n LOGGER.warning(\"Could not refresh client, will continue to use old instance\");\n\n if (this.client == null) {\n throw e;\n }\n return;\n }\n\n // only acquire write lock if hostname resolution succeeded.\n wl.lock();\n try {\n if (this.client != null) {\n // this will flush remaining messages out of queue.\n this.client.stop();\n }\n this.client = newClient;\n } catch (Exception e) {\n LOGGER.warning(\"Could not refresh client, will continue to use old instance\");\n if (this.client == null) {\n throw e;\n }\n } finally {\n wl.unlock();\n }\n }",
"@Override\n\tpublic Boolean isClient() {\n\t\treturn true;\n\t}",
"public Client() {}",
"public Cliente() {\r\n\t\tSystem.out.println(\"El cliente es: Diego Juarez \"+\"\\n\");\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic Client getClientById(int id) {\n\t\treturn null;\n\t}",
"public Client() {\r\n\t// TODO Auto-generated constructor stub\r\n\t \r\n }",
"@Override\n\tpublic void deleteClient() {\n\t\t\n\t}",
"@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tRecieveSocketOfClient(SocketForClient);\r\n\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}",
"public Echange_Client() throws UnknownHostException, IOException {\n start_Connexion(); \n }",
"@Override\n\tpublic void setClient(Client client) {\n\t\tlog.warn(\"setClient is not implemented\");\n\t}",
"public static DucktalesClient getClient() {\n \treturn client;\n }",
"@Override\r\n\tpublic void addclient(Client client) {\n\t\t\r\n\t}",
"void clientConnected(Client client);",
"public Cliente() {\n }",
"@Override\n\tpublic Player getClient() {\n\t\treturn client;\n\t}",
"private void createClient() {\n tc = new TestClient();\n }",
"Cliente(){}",
"public Client() {\n }",
"private void listaClient() {\n\t\t\r\n\t\tthis.listaClient.add(cliente);\r\n\t}",
"@Override\r\n\tpublic Client consulterClient(Long codeClient) {\n\t\treturn dao.consulterClient(codeClient);\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\trunClient();\r\n\t}",
"public Client() {\n initComponents();\n \n Server server = new Server();\n server.start();\n \n }",
"public Interfaz_RegistroClientes() {\n initComponents();\n limpiar();\n }",
"public JSONRPC2Session getClient()\n {\n return client;\n }",
"public Client(Client client) {\n\n }",
"private Client lireClientServ(int idClient) {\n\t\tClient client = daoclient.readClientDaoById(idClient);\n\t\treturn client;\n\t}",
"void clientReady();",
"public void setClient(Client client) {\r\n\t\tthis.client = client;\r\n\t}",
"public Client getClient() {\n return client;\n }",
"public Client getClient() {\n return client;\n }",
"public Client loadClient(int id) {\n\t\treturn null;\n\t}",
"public AbaloneClient() {\n server = new AbaloneServer();\n clientTUI = new AbaloneClientTUI();\n }",
"public EchoClientHandler() {\n firstMessage = Unpooled.buffer(EchoClient.SIZE);\n for (int i = 0; i < firstMessage.capacity(); i ++) {\n firstMessage.writeByte((byte) i);\n }\n }",
"public interface Client {\n\n}",
"public static Client getCurrentClient(){\r\n return currClient;\r\n }",
"public void setClient(Client client) {\n\t\tthis.client = client;\n\t}",
"public abstract void onClientConnect(ClientWrapper client);",
"public Client getClient() {\r\n\t\treturn this.client;\r\n\t}",
"public Client getClient() {\n\t\treturn client;\n\t}",
"public Client getClient() {\n\t\treturn client;\n\t}",
"ClientHandler(Socket socket) {\n this.client = socket;\n }",
"public Client(String nickname) throws RemoteException {\n\t\n\tthis.nickname=nickname;\n\n\t\t\t\t\t\t\t\t}",
"public MiAhorcadoCliente() throws RemoteException{}",
"public ServiceClient() {\n\t\tsuper();\n\t}",
"public ClientGui() throws RemoteException, NotBoundException, Exception {\n // Layout initiieren\n initComponents();\n \n //Dem Client mitteilen, wo sein TrustStore liegt. Dieser wurde zuvor mit Keytool erzeugt:\n //keytool erzeugt KeyStore dann wird selbstsigniertes Zertifikat exportiert um im Client importiert und als Vertrauenswürdig erteilt\n System.setProperty(\"javax.net.ssl.trustStore\", \"clientstore.jks\");\n System.setProperty(\"javax.net.ssl.trustStorePassword\", \"password\");\n \n //Dem Client mitteilen, wo sein KeyStore liegt, in diesem Fall gleichzeitig sein TrustStore\n System.setProperty(\"javax.net.ssl.keyStore\", \"clientstore.jks\");\n System.setProperty(\"javax.net.ssl.keyStorePassword\", \"password\");\n\n //KeyStore aus der Datei laden\n KeyStore ks = KeyStore.getInstance(\"JKS\");\n ks.load(new FileInputStream(\"clientstore.jks\"), \"password\".toCharArray());\n \n // SSLServerSocketFactory initialisieren\n SSLServerSocketFactory sssf ;\n \n try{\n //SSLRMIClientSocketFactory erzeugen\n SslRMIClientSocketFactory csf = new SslRMIClientSocketFactory();\n //Verbindung aufbauen zum Registry auf Localhost, Port 2222 und dem SslRMiClientSocketFactory, um mittels RMI Methodenaufrufe zu starten.\n Registry registry =LocateRegistry.getRegistry(\"localhost\", 2222, csf);\n \n \n //Verbindung aufbauen zum Registry um mittels RMI Methodenaufrufe zu starten. Ohne RMI,deshalbt auskommentiert\n //Registry registry =LocateRegistry.getRegistry(\"localhost\", 2222);\n \n //Anlegenen eines TestRemotes Objektes um auf die Methoden zugreifen zu können.\n remote= (TestRemote) registry.lookup(\"remote\");\n }catch(NotBoundException | RemoteException e){\n Logger.getLogger(ClientGui.class.getName()).log(Level.SEVERE, null, e);\n \n }\n \n //Überprüfen ob Methodenaufruf klappt\n System.out.println(remote.isLoginValid(\"heiko\"));\n //AES Objekt erzeugen um auf die Methoden der Klasse zuzugreifen zu können.\n aes = new AES();\n //RSA Schlüsselpaar erzeugen und in Datei speichern\n generateRSA();\n //Liste wer online ist updaten\n online(remote.online());\n \n \n }",
"public ServerInfo clientInterface()\n {\n return client_stub;\n }",
"public void setClient(Client client_) {\n\t\tclient = client_;\n\t}",
"public void novo() {\n cliente = new Cliente();\n }",
"public GameServerClient(){\r\n\t\tinitComponents();\r\n\t\t}",
"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 }",
"@Override\r\n \tpublic void clientConnectedCallback(RoMClient newClient) {\r\n \t\t// Add new client and start listening to this one\r\n \t\tthis.clients.addClient(newClient);\r\n \r\n \t\t// Create the ReceiveClientCommandThread for this client\r\n \t\tReceiveClientCommandThread receiveCommandThread = new ReceiveClientCommandThread(newClient, this, this);\r\n \t\treceiveCommandThread.start();\r\n \r\n \t\t// Create the CommandQueue Thread for this client\r\n \t\tClientCommandQueueThread commandQueueThread = new ClientCommandQueueThread(newClient);\r\n \t\tcommandQueueThread.start();\r\n \t}",
"public void createClient() {\n client = new UdpClient(Util.semIp, Util.semPort, this);\n\n // Le paso true porque quiero que lo haga en un hilo nuevo\n client.connect(true);\n }",
"Client createNewClient(Client client);",
"public void clientRun() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\ttry {\r\n\t\t\t\t InetAddress address = InetAddress.getLocalHost();\r\n\t\t\t\tSocket clientSocket = new Socket(address, this.localport);\r\n\t\t\t\tPrintStream output = new PrintStream(clientSocket.getOutputStream());\r\n\t\t\t\tString text = Integer.toString(this.compteur);\r\n\t\t\t\tScanner sc = new Scanner(clientSocket.getInputStream());\r\n\t\t\t\tPrintWriter printWrite= new PrintWriter(output);\r\n\t\t\t\tprintWrite.println(text);\r\n\t\t\t\tprintWrite.flush();// Nécessaire pour le bon fonctionnement.\r\n\t\t\t\tif (sc.hasNext()) {\r\n\t\t\t\t\tString texte2 = sc.nextLine();\r\n\t\t\t\t\tthis.result = Integer.parseInt(texte2);\r\n\t\t\t\t}\r\n\t\t\t\tclientSocket.close();\r\n\t\t\t\tsc.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t}",
"public SpigetClient() {\n\t\tthis.userAgent = \"SpigetJavaClient/2.0\";\n\t}",
"Client updateClient(Client client) throws BaseException;",
"public static Client getClient(){\n // Create a new client if it hasn't been created yet\n if(client == null) client = new Client(60000,60000);\n return client;\n }",
"public GerenciarCliente() {\n initComponents();\n }",
"protected void setClient(Client _client) {\n\t\tclient = _client;\n\t}",
"ClientConnection connection();",
"public DmaiClient() {\r\n\t\tthis.mainView = new MainView();\r\n\t\tconnexionServeur();\r\n\r\n\t}",
"public void initiate(TelnetClient client) {\n\t}",
"public void setClient(ConnectionToClient client) {\n this.client = client;\n }",
"public void addClient() throws IOException {\n BufferedReader in;\n Socket clientSocket; //pour chaque nouveau client\n System.out.println(\"New Client connected.\");\n clientSocket = serverSocket.accept();\n out = new PrintWriter(clientSocket.getOutputStream());\n in = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\n tabClientsout.addElement(out);\n Runnable r = new recevoir(out, in);\n // genere le Thread pour le nouveau client\n new Thread(r).start();\n }",
"public void connect()\n {\n System.out.println(\"CLIENT partito in esecuzione\");\n try\n {\n //Initialize socket variables and json formatter\n socket = new Socket(serverIP, serverPort);\n outputStream = new DataOutputStream(socket.getOutputStream());\n inputStream = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n gson = new Gson();\n \n receiverThread = new ClientReceiver(this);\n } \n catch (UnknownHostException e)\n {\n System.out.println(e.getMessage());\n System.out.println(\"Host sconosciuto\");\n System.exit(1);\n }\n catch (ConnectException e)\n {\n System.out.println(e.getMessage());\n System.out.println(\"Non c'è posto per te, mi spiace\");\n System.exit(1);\n }\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n System.exit(1);\n }\n }",
"private void deleteClient()\n {\n System.out.println(\"Delete client with the ID: \");\n\n BufferedReader bufferRead = new BufferedReader(new InputStreamReader(System.in));\n try {\n Long id = Long.valueOf(bufferRead.readLine());\n ctrl.deleteClient(id);\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n\n }",
"public abstract void handleClient(Client conn);",
"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 void readFromClient() throws IOException {\n\t\tserverBuffer.writeFrom(clientChannel);\n\t\tif (serverBuffer.isReadyToRead()) {\n\t\t\tregister();\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 frmClient() {\n initComponents();\n clientside=new Client(this);\n \n }",
"public Client getCurrentClient() {\n return currentClient;\n }",
"private ClientBootstrap() {\r\n init();\r\n }",
"Client(String server, int port, String username, ClientGUI cg) {\n\t\tthis.server = server;\n\t\tthis.port = port;\n\t\tthis.username = username;\n\t\tthis.cg = cg; // Saved if in GUI mode or not\n\t}",
"@Override\n public Client get(String uuid) {\n return null;\n }",
"public void startClient() throws RemoteException {\n\t\t\n\t\t// object to be passed to server\n\t\tString[] details = { name, dob, country, clientServiceName, hostName };\n\n\t\t// creating server stub \n\t\ttry {\n\t\t\tNaming.rebind(\"rmi://\" + hostName + \"/\" + clientServiceName, this);\n\t\t\tIServer = (IChatServer) Naming.lookup(\"rmi://\" + hostName + \"/\" + serviceName);\n\t\t} catch (ConnectException e) {\n\t\t\tJOptionPane.showMessageDialog(chatGUI.frame, \"The server seems to be unavailable\\nPlease try later\",\n\t\t\t\t\t\"Connection problem\", JOptionPane.ERROR_MESSAGE);\n\t\t\tconnectionProblem = true;\n\t\t\te.printStackTrace();\n\t\t} catch (NotBoundException | MalformedURLException me) {\n\t\t\tconnectionProblem = true;\n\t\t\tme.printStackTrace();\n\t\t}\n\t\t// if no problem sends details object to the server to be processed\n\t\tif (!connectionProblem) {\n\t\t\tIServer.initiateRegister(details);\n\n\t\t}\n\t\t// print this if it was able to reach this point\n\t\tSystem.out.println(\"Client Listen RMI Server is running...\\n\");\n\t}",
"@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 }",
"@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}",
"interface myClient {\n}",
"private void removeClient () {\n AutomatedClient c = clients.pollFirstEntry().getValue();\n Nnow--;\n\n c.signalToLeave();\n System.out.println(\"O cliente \" + c.getUsername() + \" foi sinalizado para sair\");\n }",
"public static void setClient(DucktalesClient clientInstance) {\n \tclient = clientInstance;\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tserveurConnect.add(client.getNomClient() + \" / \" + client.getClientSocket().getRemoteSocketAddress()\n\t\t\t\t\t\t+ \" déconnecté\");\n\n\t\t\t\tCompte c = new Compte(client.getNomClient(), client.getPassClient());\n\t\t\t\tComptes.remove(c);\n\n\t\t\t\tclients.remove(clientThreads.indexOf(client));\n\t\t\t\tSystem.out.println(\"erreur\" + clientThreads.indexOf(client));\n\t\t\t\tclientThreads.remove(clientThreads.indexOf(client));\n\t\t\t}",
"public interface ClientsInterface {\r\n\t/**\r\n\t * Gibt die Anzahl an Kunden in der Warteschlange an.\r\n\t * @return\tAnzahl an Kunden in der Warteschlange\r\n\t */\r\n\tint count();\r\n\r\n\t/**\r\n\t * Legt fest, dass ein bestimmter Kunde für den Weitertransport freigegeben werden soll.\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t */\r\n\tvoid release(final int index);\r\n\r\n\t/**\r\n\t * Liefert den Namen eines Kunden\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @return\tName des Kunden\r\n\t */\r\n\tString clientTypeName(final int index);\r\n\r\n\t/**\r\n\t * Liefert die ID der Station, an der der aktuelle Kunde erzeugt wurde oder an der ihm sein aktueller Typ zugewiesen wurde.\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @return\tID der Station\r\n\t */\r\n\tint clientSourceStationID(final int index);\r\n\r\n\t/**\r\n\t * Liefert ein Client-Daten-Element eines Kunden\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @param data\tIndex des Datenelements\r\n\t * @return\tDaten-Element des Kunden\r\n\t */\r\n\tdouble clientData(final int index, final int data);\r\n\r\n\t/**\r\n\t * Stellt ein Client-Daten-Element eines Kunden ein\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @param data\tIndex des Datenelements\r\n\t * @param value\tNeuer Wert\r\n\t */\r\n\tvoid clientData(final int index, final int data, final double value);\r\n\r\n\t/**\r\n\t * Liefert ein Client-Textdaten-Element eins Kunden\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @param key\tSchlüssel des Datenelements\r\n\t * @return\tDaten-Element des Kunden\r\n\t */\r\n\tString clientTextData(final int index, final String key);\r\n\r\n\t/**\r\n\t * Stellt ein Client-Textdaten-Element eines Kunden ein\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @param key\tSchlüssel des Datenelements\r\n\t * @param value\tNeuer Wert\r\n\t */\r\n\tvoid clientTextData(final int index, final String key, final String value);\r\n\r\n\t/**\r\n\t * Liefert die bisherige Wartezeit eines Kunden in Sekunden als Zahlenwert\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @return Bisherige Wartezeit des Kunden\r\n\t * @see ClientsInterface#clientWaitingTime(int)\r\n\t */\r\n\tdouble clientWaitingSeconds(final int index);\r\n\r\n\t/**\r\n\t * Liefert die bisherige Wartezeit eines Kunden in formatierter Form als Zeichenkette\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @return Bisherige Wartezeit des Kunden\r\n\t * @see ClientsInterface#clientWaitingSeconds(int)\r\n\t */\r\n\tString clientWaitingTime(final int index);\r\n\r\n\t/**\r\n\t * Stellt die Wartezeit des Kunden ein.\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @param time\tWartezeit des Kunden (in Sekunden)\r\n\t * @see ClientsInterface#clientWaitingSeconds(int)\r\n\t */\r\n\tvoid clientWaitingSecondsSet(final int index, final double time);\r\n\r\n\t/**\r\n\t * Liefert die bisherige Transferzeit eines Kunden in Sekunden als Zahlenwert\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @return Bisherige Transferzeit des Kunden\r\n\t * @see ClientsInterface#clientTransferTime(int)\r\n\t */\r\n\tdouble clientTransferSeconds(final int index);\r\n\r\n\t/**\r\n\t * Liefert die bisherige Transferzeit eines Kunden in formatierter Form als Zeichenkette\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @return Bisherige Transferzeit des Kunden\r\n\t * @see ClientsInterface#clientTransferSeconds(int)\r\n\t */\r\n\tString clientTransferTime(final int index);\r\n\r\n\t/**\r\n\t * Stellt die Transferzeit des Kunden ein.\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @param time\tTransferzeit des Kunden (in Sekunden)\r\n\t * @see ClientsInterface#clientTransferSeconds(int)\r\n\t */\r\n\tvoid clientTransferSecondsSet(final int index, final double time);\r\n\r\n\t/**\r\n\t * Liefert die bisherige Bedienzeit eines Kunden in Sekunden als Zahlenwert\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @return Bisherige Bedienzeit des Kunden\r\n\t * @see ClientsInterface#clientProcessTime(int)\r\n\t */\r\n\tdouble clientProcessSeconds(final int index);\r\n\r\n\t/**\r\n\t * Liefert die bisherige Bedienzeit eines Kunden in formatierter Form als Zeichenkette\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @return Bisherige Bedienzeit des Kunden\r\n\t * @see ClientsInterface#clientProcessSeconds(int)\r\n\t */\r\n\tString clientProcessTime(final int index);\r\n\r\n\t/**\r\n\t * Stellt die Bedienzeit des Kunden ein.\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @param time\tBedienzeit des Kunden (in Sekunden)\r\n\t * @see ClientsInterface#clientProcessSeconds(int)\r\n\t */\r\n\tvoid clientProcessSecondsSet(final int index, final double time);\r\n\r\n\t/**\r\n\t * Liefert die bisherige Verweilzeit eines Kunden in Sekunden als Zahlenwert\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @return Bisherige Verweilzeit des Kunden\r\n\t * @see ClientsInterface#clientResidenceTime(int)\r\n\t */\r\n\tdouble clientResidenceSeconds(final int index);\r\n\r\n\t/**\r\n\t * Liefert die bisherige Verweilzeit eines Kunden in formatierter Form als Zeichenkette\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @return Bisherige Verweilzeit des Kunden\r\n\t * @see ClientsInterface#clientResidenceSeconds(int)\r\n\t */\r\n\tString clientResidenceTime(final int index);\r\n\r\n\t/**\r\n\t * Stellt die Verweilzeit des Kunden ein.\r\n\t * @param index\t0-basierender Index des Kunden\r\n\t * @param time\tVerweilzeit des Kunden (in Sekunden)\r\n\t * @see ClientsInterface#clientResidenceSeconds(int)\r\n\t */\r\n\tvoid clientResidenceSecondsSet(final int index, final double time);\r\n}",
"public Client() {\n initComponents();\n setIcon();\n }",
"@Override\n\tprotected void doRemoveClient(Client c) {\n\t\tlog.warn(\"doRemoveClient is not implemented\");\n\t}"
] | [
"0.73313725",
"0.7324783",
"0.73098797",
"0.72010875",
"0.71549475",
"0.712269",
"0.7045966",
"0.6986994",
"0.6974322",
"0.6945989",
"0.69446963",
"0.6935203",
"0.6904001",
"0.6883291",
"0.68672335",
"0.68564534",
"0.68271524",
"0.6805603",
"0.6788741",
"0.67694134",
"0.6767699",
"0.6752774",
"0.6741881",
"0.6715634",
"0.6689493",
"0.66393197",
"0.6623425",
"0.6622561",
"0.6622233",
"0.66161156",
"0.6614492",
"0.65814835",
"0.6578778",
"0.65755564",
"0.6573135",
"0.65660495",
"0.6565474",
"0.654775",
"0.65285957",
"0.65276676",
"0.6505882",
"0.65057755",
"0.6501215",
"0.6500798",
"0.6500798",
"0.64978963",
"0.64864904",
"0.64821744",
"0.6478621",
"0.6474487",
"0.64688647",
"0.6464715",
"0.64455223",
"0.6444935",
"0.6444935",
"0.6441009",
"0.64323115",
"0.6427967",
"0.6426966",
"0.6425227",
"0.6418736",
"0.64181",
"0.6416979",
"0.6406694",
"0.6401393",
"0.6392286",
"0.6391132",
"0.63807046",
"0.6370301",
"0.6359492",
"0.63546556",
"0.6348758",
"0.6345632",
"0.6338552",
"0.63275325",
"0.63266164",
"0.632624",
"0.63245714",
"0.6314023",
"0.63063866",
"0.630278",
"0.6293398",
"0.6290263",
"0.6289546",
"0.6288252",
"0.6270529",
"0.62658364",
"0.62637836",
"0.6254168",
"0.6251254",
"0.6247965",
"0.6235191",
"0.62303644",
"0.62298846",
"0.62291217",
"0.6224339",
"0.6222835",
"0.6219038",
"0.6211845",
"0.62016964"
] | 0.6558377 | 37 |
Data Formatter with extended functionality to format data for output as a standardized file. | public interface IDataExporter <T> extends IDataFormatter <T>{
/**Format the data so that it can be written to a plain text file appropriate to the datatype
*
*/
public IDataExporter<CRBBase> setInvoiceDate(LocalDate invoiceDate);
public IDataExporter<CRBBase> setBillingParty(String billingParty);
public IDataExporter<CRBBase> setBilledParty(String billedParty);
public IDataExporter<CRBBase> setAccountDate(LocalDate accountDate);
public IDataExporter<CRBBase> setInvoiceNumber(String invoiceNumber);
public IDataExporter<CRBBase> setPriceMaster(char priceMaster);
public IDataExporter<CRBBase> setTaxPayerId(String taxPayerId);
public IDataExporter<CRBBase> setPaymentTerms(int paymentTerms);
public IDataExporter<CRBBase> setPaymentDueDate(LocalDate paymentDueDate);
public IDataExporter<CRBBase> setInquiryContact(CRBContactInfo inquiryContact);
public IDataExporter<CRBBase> setRemitToContact(CRBContactInfo remitToContact);
public IDataExporter<CRBBase> setExceptionsContact(CRBContactInfo exceptionsContact);
public IDataExporter<CRBBase> setBillingContact(CRBContactInfo billingContact);
public IDataExporter<CRBBase> setBilledContact(CRBContactInfo billedContact);
void formatForPlainText() throws IllegalArgumentException;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getFormatter();",
"private void toFile(OutputData data) {\n if(data == null) {\r\n JOptionPane.showMessageDialog(this, \"Dane wynikowe nie zostały jeszcze umieszczone w pamieci\");\r\n return;\r\n }\r\n\r\n // Sprawdzenie sciezki zapisu\r\n String filePath = this.outputFileSelector.getPath();\r\n if(filePath.length() <= 5) {\r\n JOptionPane.showMessageDialog(this, \"Nie można zapisać wyniku w wybranej lokacji!\");\r\n return;\r\n }\r\n\r\n // Zapisujemy plik na dysk\r\n try{\r\n PrintWriter writer = new PrintWriter(filePath, \"UTF-8\");\r\n OutputDataFormatter odf = new OutputDataFormatter(this.outputData);\r\n\r\n String userPattern = this.outputFormatPanel.getPattern();\r\n writer.write(odf.getParsedString(userPattern.length() < 2 ? defaultFormatting : userPattern));\r\n\r\n writer.close();\r\n } catch (IOException e) {\r\n JOptionPane.showMessageDialog(this, \"Wystąpił błąd IO podczas zapisu.\");\r\n }\r\n\r\n }",
"public String formatData() {\n\t\tStringBuilder builder = new StringBuilder();\n\t\n\t\t\tbuilder.append(this.iataCode);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.latitude);\n\t\t\tbuilder.append(\",\");\n\t\t\tbuilder.append(this.longitude);\n\t\t\tbuilder.append(\",\");\n\t\t\tbuilder.append(this.altitude);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.localTime);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.condition);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.temperature);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.pressure);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.humidity);\n\t\t\tbuilder.append(\"\\n\");\n\t\t\n\n\t\treturn builder.toString();\n\n\t}",
"public interface IFormatter {\n /**\n * refactor code\n * @param reader input code\n * @param writer output code\n * @throws StreamException if input or output errors\n */\n void format(IReader reader, IWriter writer) throws StreamException;\n}",
"void format();",
"protected abstract String format();",
"private static void format() {\n\t\tSystem.out.println(\"\\nThe following is a sample input file.\");\n\t\tSystem.out.println(\"-----------------------------------------\");\n\t\tSystem.out.println(\"low\\t\\t\\t // The first line should be the wind speed (low or high\");\n\t\tSystem.out.println(\"Babe:cscow:32.54\\r\\n\" + \n\t\t\t\t\"Renegade:420:38.01\\r\\n\" + \n\t\t\t\t\"Top:xboat:41.20\\r\\n\" + \n\t\t\t\t\"Jeanie-K:xboat:41.35\\r\\n\" + \n\t\t\t\t\"JuiceBox:capri:42.40\\r\\n\" + \n\t\t\t\t\"LadyBug:nj2k:55.40\\r\\n\" + \n\t\t\t\t\"XQ'sMe:xboat:56.58\\r\\n\" + \n\t\t\t\t\"Steve:mcscow:57.29\\r\\n\" + \n\t\t\t\t\"TunaFish:nj2k:60.32\\r\\n\" + \n\t\t\t\t\"NoName:nj2k:67.20\");\n\t\tSystem.out.println(\"-----------------------------------------\");\n\t\tSystem.out.println(\"Each boat entry follows the pattern of name:type:time\");\n\t\tSystem.out.println(\"Boat times should be formatted as mm.ss\");\n\t\tSystem.out.println(\"\\nThe total list of boat types can be seen with the types command.\\n\");\n\t}",
"IFormatter getFormatter(Appendable dest, String format);",
"private StringBuffer getFormattedOutput(StringBuffer displayData,\r\n \t\tString format)\r\n {\r\n \tString[] split = displayData.toString().split(\"!=!\");\r\n \tFormatter formatter = new Formatter();\r\n \tdisplayData = new StringBuffer(formatter.format(format,split).toString());\r\n \treturn displayData;\r\n }",
"private FormatUtilities() {}",
"GorgeousFormatter() {\r\n\t\t}",
"String saveToFile(Object data, String fileName, FileFormat fileFormat) throws IOException;",
"protected abstract CounterFormatter createFormatter();",
"protected String getDataFormat() {\n return this.dataFormat;\n }",
"static void writeFile(final PropertyArray data, final String file, boolean prettyPrint) throws IOException {\n if(data == null || data.isEmpty() || file == null || file.isEmpty())\n throw new IOException(\"data or file path is null or empty.\");\n\n if(prettyPrint) {\n writeFile(data, file, 2);\n return;\n }\n\n writeFile(data, file, 0);\n }",
"public interface IFormatter {\r\n /**\r\n * Formatting a code.\r\n * @param source source of code\r\n * @param destination where the result will be recorded\r\n * @throws FormatException when there is formatting error\r\n */\r\n void format(ISource<String> source, IDestination destination)\r\n throws FormatException;\r\n}",
"public String getDataString() {\r\n return formatoData.format(data);\r\n }",
"public interface DataHandler {\n\n\tpublic String formatData(DataResponse dr);\n}",
"@Override\n protected void loadAndFormatData()\n {\n // Create an object to hold the log data\n final Object[][] tableLogList = new Object[perfLog.getPerfLogData().size()][NUM_COLUMNS];\n int row = 0;\n\n // Create the output format string for the time stamps so that\n // the decimals align with the text centered\n String timeFormat = \"%\"\n + (String.valueOf((int) (plotPrefs.isShowDataGaps(false)\n ? perfLog.getMaximumTimeStamp()\n : perfLog.getAdjustedDataTimeSpan())).length()\n + TIME_PRECISION + 1)\n + TIME_FORMAT.substring(1);\n\n // Collect the log data and format it for the table cells\n for (PerfLog log : perfLog.getPerfLogData())\n {\n // Get the performance ID object associated with the log ID\n PerformanceID pid = perfIDs.getPerfID(log.getPerfID());\n\n tableLogList[row][INDEX] = row;\n tableLogList[row][ID] = perfIDs.convertIDToHexString(log.isEntryEvent()\n ? pid.getPerfID()\n : pid.getPerfID()\n | EXIT_MASK);\n tableLogList[row][NAME] = pid.getPerfIDName(false);\n tableLogList[row][TIME] = String.format(timeFormat, log.getTimeStamp());\n tableLogList[row][ENT_EX] = log.isEntryEvent();\n tableLogList[row][SEQ_ERR] = log.isSequenceError();\n tableLogList[row][OVER] = log.getOverrun() == 0.0\n ? \"\"\n : String.format(TIME_FORMAT,\n log.getOverrun());\n tableLogList[row][NOTES] = log.getNotes();\n\n row++;\n }\n\n // Place the log data into the table model along with the\n // column names, set up the editors and renderers for the table\n // cells, set up the table grid lines, and calculate the\n // minimum width required to display the table information\n int totalWidth = setUpdatableCharacteristics(tableLogList,\n new String[] {\"Index\",\n \"ID\",\n \"Name\",\n \"<html><center>Time Stamp<br>(sec)\",\n \"<html><center>Entry/<br>Exit\",\n \"<html><center>Seq<br>Err\",\n \"<html><center>Overrun<br>(sec)\",\n \"<html><center>Notes\"},\n true,\n true,\n true);\n\n // Fit the dialog to the table and set the minimum size based\n // on the column widths\n setDialogMinimumSize(totalWidth);\n\n // Set the dialog's title so that it includes the log file\n // name(s)\n setTitle(\"Log Data: \"\n + perfLog.getLogFileName(perfMain.getPreference(PERF_LOG_FILE)));\n }",
"public Options dataFormat(String dataFormat) {\n this.dataFormat = dataFormat;\n return this;\n }",
"public abstract void format(Job job, Order order, Object formatConfig) throws Exception;",
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tprivate Formatter getDynamicCSVFormatters() {\n\t\t int i = 1;\n\t\t CSVFomatter formatter = new CSVFomatter(FormatPattern.getFormatPattern(i),converter);\n\t\t CSVFomatter chainedFormatter = formatter,\n\t\t \t\t nextFormatter ;\n\t\t //Create a dynamic chain of the formatters -- Chain of Responsibility(COR)\n\t\t for(i = i + 1; i<=FormatPattern.DATA_PATTERNS.size(); i++) {\n\t\t \t nextFormatter = new CSVFomatter(FormatPattern.getFormatPattern(i),converter);\n\t\t \t chainedFormatter.setNextFormatter(nextFormatter);\n\t\t \t chainedFormatter = nextFormatter;\n\t\t }\n\t\t \n\t\t return formatter;\n\t}",
"public interface CustomFormatter {\n\n ExtensionPointName<CustomFormatter> EP_NAME =\n ExtensionPointName.create(\"com.google.idea.blaze.CustomFormatter\");\n\n boolean appliesToFile(Project project, PsiFile file);\n\n /** Displayed to the user in a progress dialog while waiting for the formatting results. */\n String progressMessage();\n\n /**\n * Given the input file and a list of line ranges, returns the formatting replacements, or null if\n * the formatting failed.\n *\n * <p>Will be called in a background thread, under a progress dialog.\n */\n @Nullable\n Replacements getReplacements(\n Project project, FileContentsProvider fileContents, Collection<TextRange> ranges);\n\n /** If true, then when formatting VCS changed text will actually format the entire file. */\n default boolean alwaysFormatEntireFile() {\n return false;\n }\n}",
"public interface IFormatter {\n // returns lines after formatting\n List<String> getLines();\n}",
"public static String formatData(final MLData data, int precision) {\r\n \t\tfinal StringBuilder result = new StringBuilder();\r\n \t\tfor (int i = 0; i < data.size(); i++) {\r\n \t\t\tif (i != 0) {\r\n \t\t\t\tresult.append(\"; \");\r\n \t\t\t}\r\n \t\t\tString str = Format\r\n \t\t\t\t\t.formatDouble(\r\n \t\t\t\t\t\t\tConfigLoto.denormalizeMapminmax(data.getData(i)),\r\n \t\t\t\t\t\t\tprecision);\r\n \t\t\tresult.append(str);\r\n \t\t}\r\n \t\treturn result.toString();\r\n \t}",
"public interface IContactInformationFormatter {\n\n\tvoid readContactInformation(String[] filePaths);\n\n\t/* read contact information from a list of files given the file paths */\n\tvoid formatContactInformation(String fileName);\n\n\t/* format the contact information in one file */\n\tvoid formatEmail(String email) throws EmailAddressFormatException;\n\n\t/* format one email address */\n\tvoid formatPhoneNumber(String phoneNumber) throws PhoneNumberFormatException; /* Format one phone number */\n\n\tvoid formatName(String name) throws NameFormatException;\n\t/* format one name */\n\n}",
"public static void outputRawData(String fn, String extra, Hypocenter[] data)\n\t{\n\t\ttry\n\t\t{\n\t\t\tPrintWriter out = new PrintWriter(new FileWriter(fn, true));\n\t\t\tout.print(\"Earthquake hypocenters\");\n\t\t\tif (extra != null)\n\t\t\t\tout.println(\" [\" + extra + \"]\");\n\t\t\telse\n\t\t\t\tout.println();\n\t\t\tgetHeaderLine();\n\t\t\tfor (int i = 0; i < data.length; i++)\n\t\t\t\tout.println(data[i].toString());\n\t\t\tout.close();\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void setDataFormat(String dataFormat) {\n this.dataFormat = dataFormat;\n }",
"public static String exportFieldData(Hashtable data, String delimiter, DateFormat df, NumberFormat numberFormat) {\r\n\r\n // format : key1 + delimiter + value1 + delimiter + key2 + delimiter +\r\n // value2 + delimiter + ... + keyN + delimiter + valueN\r\n if (data == null) {\r\n throw new IllegalArgumentException(\"exportFieldData: data is null\");\r\n }\r\n\r\n StringBuilder res = new StringBuilder();\r\n\r\n Object[] keys = data.keySet().toArray();\r\n for (int i = 0; i < keys.length; i++) {\r\n Object key = keys[i];\r\n res.append(key);\r\n res.append(delimiter);\r\n if (data.get(key) instanceof Vector) {\r\n if (((Vector) data.get(key)).get(0) != null) {\r\n Object currentData = ((Vector) data.get(key)).get(0);\r\n if ((df != null) && (currentData instanceof Date)) {\r\n res.append(df.format(currentData));\r\n } else {\r\n res.append(currentData.toString());\r\n }\r\n\r\n } else {\r\n res.append(\" \");\r\n }\r\n } else {\r\n if ((df != null) && (data.get(key) instanceof Date)) {\r\n res.append(df.format(data.get(key)));\r\n } else if (data.get(key) instanceof Number) {\r\n res.append(AbstractTemplateGenerator.parseNumber((Number) data.get(key), numberFormat));\r\n } else {\r\n res.append(data.get(key).toString());\r\n }\r\n\r\n }\r\n if (i < (keys.length - 1)) {\r\n res.append(delimiter);\r\n }\r\n }\r\n return res.toString();\r\n }",
"public BibFileFormatter(String indent) {\n this.indent = indent;\n }",
"public void dataFileCreate() {\r\n\t\tString COMMA_DELIMITER = \",\";\r\n\t\tString NEW_LINE_SEPERATOR = \"\\n\";\r\n\t\tString FILE_HEADER = \"Title,First Name,Last Name,Email,Phone Number\";\r\n\t\ttry {\r\n\t\t\tList<Customer> dataList = new ArrayList<Customer>();\r\n\t\t\tdataList.add(\r\n\t\t\t\t\tnew Customer(title, customerFirstName, customerLastName, custromerEmailId, customerPhoneNumber));\r\n\r\n\t\t\tFileWriter fileWriter = new FileWriter(\"CustomerDetails.csv\");\r\n\t\t\tBufferedWriter bufferWriter = new BufferedWriter(fileWriter);\r\n\t\t\tbufferWriter.append(FILE_HEADER);\r\n\r\n\t\t\tfor (Customer c : dataList) {\r\n\t\t\t\tbufferWriter.write(NEW_LINE_SEPERATOR);\r\n\t\t\t\tbufferWriter.write(c.getTitle());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(c.getFirstName());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(c.getLastName());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(c.getEmailAddress());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(String.valueOf(c.getPhone()));\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t}\r\n\r\n\t\t\tbufferWriter.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}",
"public void parseAndPrintRecords() {\n ArrayList<Employee> employees;\n\n employees = parseData(data);\n\n System.out.printf(\"%10s%10s%10s\\n\", \"Last\", \"First\", \"Salary\");\n for(Employee employee : employees) {\n System.out.printf(\"%10s%10s%10d\\n\", employee.lName, employee.fName, employee.salary);\n }\n\n }",
"public void formatFields() {\r\n\t}",
"public interface IFormatter {\r\n\tpublic String format(IResultElement value);\r\n\t\r\n\tpublic IResultElement unformat(String value, IElementType type) throws NumberFormatException;\r\n}",
"private static void writeFile(final PropertyArray data, final String file, int indent) throws IOException {\n loadParser();\n parser_.setIndent(indent);\n parser_.writeConfig(data, file);\n parser_.setIndent(0);\n }",
"public interface Formatter {\n\n\t/**\n\t * Formats alignment list to previously defined location depending \n\t * on concrete implementation.\n\t * @param alignmentList alignment list\n\t */\n\tpublic void format(List<Alignment> alignmentList);\n\n}",
"private static void writeToFile(String[] data) {\n\t\t// Regatta hasn't been calculated.\n\t\tif(r == null) {\n\t\t\tSystem.out.println(\"\\nYou haven't processed a regatta yet! \\nUse regatta to begin processing.\\n\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Just the command was specified, we need to get the filename.\n\t\tif(data.length == 1) {\n\t\t\tSystem.out.println(\"Oops, looks like you didn't specify an output file.\\n\");\n\t\t\tinitializeOutput(getFilename());\n\t\t}\n\n\t\t// Filename was specified but is invalid. Need to get another one.\n\t\tif(!isValidFileName(data[1])) {\n\t\t\tSystem.out.println(\"Looks like your filename is incorrect.\\n\");\n\t\t\tinitializeOutput(getFilename());\n\t\t}\n\n\t\tinitializeOutput(data[1]);\n\n\t\t// Write out.\n\t\tfileOutput.print(r.podium());\n\t\tfileOutput.close();\n\t}",
"String FormatDataType(int dataType, int scale, int precision);",
"public SmartFormater() {\n\t\t\tsimpleFormats[0] = new DecimalFormat(\"###0\");\n\t\t\tsimpleFormats[1] = new DecimalFormat(\"###0.#\");\n\t\t\tsimpleFormats[2] = new DecimalFormat(\"###0.##\");\n\t\t\tsimpleFormats[3] = new DecimalFormat(\"###0.###\");\n\t\t\tsimpleFormats[4] = new DecimalFormat(\"###0.####\");\n\n\t\t\tscientificFormats[0] = new DecimalFormat(\"#.E0\");\n\t\t\tscientificFormats[1] = new DecimalFormat(\"#.#E0\");\n\t\t\tscientificFormats[2] = new DecimalFormat(\"#.##E0\");\n\t\t\tscientificFormats[3] = new DecimalFormat(\"#.###E0\");\n\t\t\tscientificFormats[4] = new DecimalFormat(\"#.####E0\");\n\t\t}",
"public String getFormattedFileContents ();",
"public static void main( String[] args ) {\n try ( DataOutputStream dos\n = new DataOutputStream( new FileOutputStream( \"temp.data\" ) ) ) {\n for ( int i = 0 ; i < 10 ; i++ ) {\n dos.writeByte( i );\n dos.writeShort( i );\n dos.writeInt( i );\n dos.writeLong( i );\n dos.writeFloat( i );\n dos.writeDouble( i );\n }\n\n }\n catch ( FileNotFoundException ex ) {\n Logger.getLogger( ExemploDataStream.class.getName() ).log( Level.SEVERE , null , ex );\n }\n\n catch ( IOException ex ) {\n Logger.getLogger( ExemploDataStream.class.getName() ).log( Level.SEVERE , null , ex );\n }\n\n //agora vamos ler os dados escritos\n try ( DataInputStream dis = new DataInputStream( new FileInputStream( \"temp.data\" ) ) ) {\n for ( int i = 0 ; i < 10 ; i++ ) {\n System.out.printf( \"%d %d %d %d %g %g %n\" ,\n dis.readByte() ,\n dis.readShort() ,\n dis.readInt() ,\n dis.readLong() ,\n dis.readFloat() ,\n dis.readDouble() );\n }\n }\n catch ( FileNotFoundException ex ) {\n Logger.getLogger( ExemploDataStream.class.getName() ).log( Level.SEVERE , null , ex );\n }\n catch ( IOException ex ) {\n Logger.getLogger( ExemploDataStream.class.getName() ).log( Level.SEVERE , null , ex );\n }\n }",
"public BibFileFormatter() {\n this(\" \");\n }",
"interface RowFormatter {\n char[] NULL_STRING = new char[]{'\\\\', 'N'};\n char[] EMPTY_STRING = new char[0];\n\n String format(char[][] row);\n\n String getFormat();\n\n static RowFormatter newInstance(String format, ResultSetSchema rsSchema) throws SQLException {\n if (format.equals(\"csv\")) return new CSVRowFormatter(rsSchema.getColumnTypes().size());\n if (format.equals(\"tsv\")) return new TSVRowFormatter(rsSchema.getColumnTypes().size());\n if (format.equals(\"json\")) return new JSONRowFormatter(rsSchema);\n throw new IllegalArgumentException(\"\\\"\" + format + \"\\\" is not supported. Use csv, tsv or json.\");\n }\n}",
"private Format()\n {\n super();\n }",
"default boolean alwaysFormatEntireFile() {\n return false;\n }",
"private static void printDataFormat(ArrayList<Person> p) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter path for output file\");\n\t\tString input = scan.next();\n\t\tboolean again = true;\n\t\twhile (again) {\n\t\t\tagain = false;\n\t\t\ttry (PrintWriter out = new PrintWriter(input, \"ASCII\")) {\n\t\t\t\tfor (int i = 0; i < p.size(); i++) {\n\t\t\t\t\tDateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"yyyyMMdd\", Locale.ENGLISH);\n\t\t\t\t\tDateTimeFormatter dtf2 = DateTimeFormatter.ofPattern(\"MMMM dd, yyyy\", Locale.ENGLISH);\n\t\t\t\t\tLocalDate ld = LocalDate.parse(p.get(i).getStartDate(), dtf);\n\t\t\t\t\tString month_name = dtf2.format(ld);\n\n\t\t\t\t\tout.println(i + 1 + \"\\n\" + p.get(i).getFirstName() + \" \" + p.get(i).getLastName() + \", \"\n\t\t\t\t\t\t\t+ month_name + \"\\n\" + p.get(i).getAddress() + \", \" + p.get(i).getAptNum() + \",\\n\"\n\t\t\t\t\t\t\t+ p.get(i).getCity() + \", \" + p.get(i).getState() + \"\\n\" + p.get(i).getCountry() + \", \"\n\t\t\t\t\t\t\t+ p.get(i).getZipCode());\n\t\t\t\t}\n\t\t\t} catch (FileNotFoundException | UnsupportedEncodingException e) {\n\t\t\t\tagain = true;\n\t\t\t\tSystem.out.println(\"Could not create file, enter a correct file path\");\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t}",
"DataFormatter getDataFormatter( int type_id, String mask ) throws Exception\n {\n String language_code = getASPManager().getUserPreferredLanguage();\n if (Str.isEmpty(language_code))\n language_code = ASPConfigFile.language_code;\n return getDataFormatter( type_id, mask, language_code );\n }",
"private Formats() {\n }",
"private Formatter() {\r\n // Do nothing\r\n }",
"public static void writeAsOrange(InputData data, String fileName) throws IOException {\n Logger.getLogger(\"at.tuwien.ifs.somtoolbox\").info(\"Writing input data as Orange file to '\" + fileName + \"'.\");\n PrintWriter writer = FileUtils.openFileForWriting(\"Orange data\", fileName, false);\n\n TemplateVector tv = data.templateVector();\n if (tv == null) {\n Logger.getLogger(\"at.tuwien.ifs.somtoolbox\").info(\"Template vector not loaded - creating a generic one.\");\n tv = new SOMLibTemplateVector(data.numVectors(), data.dim());\n }\n SOMLibClassInformation classInformation = data.classInformation();\n boolean haveClassInfo = classInformation != null;\n\n /* - first the tab-separated names of the features\n - then the types of the features\n - and then the indicator whether a feature is the class assignment\n e.g. for IRIS:\n sepallength sepalwidth petallength petalwidth class\n continuous continuous continuous continuous discrete\n class\n */\n\n // row 1: tab-separated label names\n writer.print(StringUtils.toString(tv.getLabels(), \"\", \"\", \"\\t\"));\n if (haveClassInfo) { // and optionally the class\n writer.print(\"\\tclass\");\n }\n writer.println();\n\n // row 2: data types\n for (int i = 0; i < tv.dim(); i++) {\n writer.print(\"continuous\"); // all are continuous\n if (i + 1 < tv.dim()) {\n writer.print(\"\\t\");\n }\n }\n if (haveClassInfo) {\n writer.print(\"\\tdiscrete\"); // just the class is discrete\n }\n writer.println();\n\n // row 3: indicating options to the attributes\n writer.print(StringUtils.repeatString(tv.dim() - 1, \"\\t\"));\n if (haveClassInfo) {\n writer.print(\"\\tclass\"); // the class attribute\n }\n writer.println();\n\n // now the data, tab separated, and optionally with the class assignment\n\n // now all data, appended by the class name\n for (int i = 0; i < data.numVectors(); i++) {\n for (int j = 0; j < data.dim(); j++) {\n writer.print(data.getValue(i, j));\n if (j + 1 < data.dim()) {\n writer.print(\"\\t\");\n }\n }\n if (haveClassInfo) {\n writer.print(\"\\t\" + classInformation.getClassName(i));\n }\n writer.println();\n }\n writer.close();\n }",
"public abstract String getOutputFormat();",
"public static String transformFieldData(Hashtable dataField, DateFormat df, NumberFormat numberFormat) {\r\n String stringResult = AbstractTemplateGenerator.exportFieldData(dataField, \"$#\", df, numberFormat);\r\n stringResult = stringResult.replace('\\n', '\\r');\r\n return stringResult;\r\n }",
"private void parseData() throws IOException {\n // The data section ends with a dashed line...\n //\n while (true) {\n String line = reader.readLine();\n\n if (line == null || isDashedLine(line))\n return;\n else\n parseLine(line);\n }\n }",
"public static void main(String[] args) {\n\n DataWriter dataWriter = new DataWriter();\n dataWriter.writeText();\n }",
"@Override\n public void makeOutPutData(File file) {\n\n prepareHtmlDataList();\n\n PrintWriter pw = null;\n int cnt = 0;\n\n try {\n pw = new PrintWriter(new FileOutputStream(file, true));\n\n pw.println(\"******************** MainData info ********************\");\n pw.println(\"startLoggingTime : \"\n + ALTHelper\n .DateToString(ALTHelper\n .getTimeStartedBefore(1000)));\n pw.println(\"endLoggingTime : \"\n + ALTHelper\n .DateToString(ALTHelper\n .getTimeLaunched()));\n\n pw.println(\"\");\n\n pw.println(\"******************** Launched info ********************\");\n\n // should implement\n\n pw.println(\"\");\n\n pw.println(\"******************** gc info (top5) sorted by total_time ********************\");\n\n // -----------------------\n\n pw.println(String.format(\"%-20s\", \"time\")\n + String.format(\"%-10s\", \"PID\")\n + String.format(\"%-15s\", \"GC_cause\")\n + String.format(\"%-12s\", \"freedObject\")\n + String.format(\"%-10s\", \"freedByte\")\n + String.format(\"%-13s\", \"freedLObject\")\n + String.format(\"%-11s\", \"freedLByte\")\n + String.format(\"%-13s\", \"percent_free\")\n + String.format(\"%-18s\", \"current_heap_size\")\n + String.format(\"%-13s\", \"total_memory\")\n + String.format(\"%-11s\", \"pause_time\")\n + String.format(\"%-11s\", \"Total_time\"));\n\n ArrayList<GCData> totalTimeList = (ArrayList<GCData>)getGCDataList()\n .clone();\n Collections.sort(totalTimeList, new GCDataComparator(\n GCDataComparator.DataSortType.TOTAL_TIME));\n\n for (GCData gc : totalTimeList) {\n\n if (cnt >= 5)\n break;\n\n pw.println(String.format(\"%-20s\",\n ALTHelper.DateToString(gc.valutOfdate))\n + String.format(\"%-10s\", gc.PID)\n + String.format(\"%-15s\", gc.GC_cause)\n + String.format(\"%-12s\", gc.freedObject)\n + String.format(\"%-10s\", gc.freedByte)\n + String.format(\"%-13s\", gc.freedLObject)\n + String.format(\"%-11s\", gc.freedLByte)\n + String.format(\"%-13s\", gc.percent_free)\n + String.format(\"%-18s\", gc.current_heap_size)\n + String.format(\"%-13s\", gc.total_memory)\n + String.format(\"%-11s\", gc.pause_time)\n + String.format(\"%-11s\", gc.Total_time));\n cnt++;\n }\n\n pw.println(\"\");\n\n // -----------------------\n\n pw.println(\"******************** gc info sorted by date ********************\");\n\n pw.println(String.format(\"GC Total count : %5s\", getGCDataList()\n .size() + \" times\"));\n\n pw.println(String.format(\"%-20s\", \"time\")\n + String.format(\"%-10s\", \"processName\")\n + String.format(\"%-15s\", \"GC_cause\")\n + String.format(\"%-12s\", \"freedObject\")\n + String.format(\"%-10s\", \"freedByte\")\n + String.format(\"%-13s\", \"freedLObject\")\n + String.format(\"%-11s\", \"freedLByte\")\n + String.format(\"%-13s\", \"percent_free\")\n + String.format(\"%-18s\", \"current_heap_size\")\n + String.format(\"%-13s\", \"total_memory\")\n + String.format(\"%-11s\", \"pause_time\")\n + String.format(\"%-11s\", \"Total_time\"));\n\n for (GCData gc : getGCDataList()) {\n pw.println(String.format(\"%-20s\",\n ALTHelper.DateToString(gc.valutOfdate))\n + String.format(\"%-10s\", gc.PID)\n + String.format(\"%-15s\", gc.GC_cause)\n + String.format(\"%-12s\", gc.freedObject)\n + String.format(\"%-10s\", gc.freedByte)\n + String.format(\"%-13s\", gc.freedLObject)\n + String.format(\"%-11s\", gc.freedLByte)\n + String.format(\"%-13s\", gc.percent_free)\n + String.format(\"%-18s\", gc.current_heap_size)\n + String.format(\"%-13s\", gc.total_memory)\n + String.format(\"%-11s\", gc.pause_time)\n + String.format(\"%-11s\", gc.Total_time));\n }\n pw.println(\"\");\n\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } finally {\n if (pw != null)\n pw.close();\n }\n }",
"interface Data {\r\n //DataReader.class.getProtectionDomain().getCodeSource().getLocation().getPath() + \"resources/data/\r\n String PATH = \"src/resources/\";\r\n String DATA = PATH + \"data/data.txt\";\r\n int DESCRIPTION_dl = 0;\r\n int TOTAL_QUESTIONS_dl = 1;\r\n int CURRENT_INDEX_dl = 2;\r\n int QUESTIONS_dl = 3;\r\n int POWERS_dl = 4;\r\n int FULLSCREEN_dl = 5;\r\n\r\n static String get(int index){\r\n try{\r\n File dataFile = new File(DATA);\r\n Scanner S = new Scanner(dataFile);\r\n int counter = 0;\r\n while(S.hasNextLine()){\r\n String data = S.nextLine();\r\n if(counter == index){\r\n return data;\r\n }\r\n counter++;\r\n }\r\n S.close();\r\n }catch (FileNotFoundException e){\r\n JOptionPane.showMessageDialog(null, \"ERROR v.1.1 Can't Find data Data File\");\r\n System.out.println(\"An Error Occured.\");\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }\r\n static int strip(String str){\r\n\r\n return Integer.parseInt(str.replaceAll(\"[^0-9]\", \"\"));\r\n }\r\n static int[] strip(String[] str){\r\n int[] array = new int[str.length];\r\n\r\n for (int i = 0; i < str.length; i++) {\r\n// array[i] = Integer.parseInt(str[i].replaceAll(\"[^0-9]\", \"\"));\r\n array[i] = Integer.parseInt(str[i]);\r\n }\r\n return array;\r\n }\r\n static void replace(int index, String str) {\r\n try{\r\n File dataFile = new File(DATA);\r\n Scanner S = new Scanner(dataFile);\r\n ArrayList<String> allLines = new ArrayList<>();\r\n int counter = 0;\r\n while(S.hasNextLine()){\r\n if(counter == index){\r\n allLines.add(str);\r\n S.nextLine();\r\n }else{\r\n allLines.add(S.nextLine());\r\n }\r\n counter++;\r\n }\r\n S.close();\r\n FileWriter dataFileNew = new FileWriter(DATA);\r\n for(String i: allLines){\r\n dataFileNew.write(i + \"\\n\");\r\n }\r\n dataFileNew.close();\r\n }catch (FileNotFoundException e){\r\n System.out.println(\"We can't find the file.\");\r\n e.printStackTrace();\r\n }catch(IOException e){\r\n System.out.println(\"There was an error\");\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n}",
"public String fileFormat() {\n DateTimeFormatter df = DateTimeFormatter.ofPattern(\"dd MMM yyyy HHmm\");\n return \"D | \" + (super.isDone ? \"1 | \" : \"0 | \") + this.description + \" | \" + df.format(this.date);\n }",
"private void reformatInputFile() throws IOException, InvalidInputException{\r\n new InputFileConverter(this.inputFileName);\r\n }",
"@Override\n\tpublic void customFormat(String facetBackground, String facetFontSize, String facetFontColor,\n\t\t\tString facetFontStyle, String fontName, String cellFontSize, String cellFontColor,\n\t\t\tString cellFontStyle, String datasetPadding, String orientation) throws IOException {\n\n\t}",
"static void initializeData() {\n\n if (timeLimitInHour != -1) {\n endTime = startTime + timeLimitInHour * 60 * 60 * 1000;\n }\n\n // Read the data file.\n data = new Data(dataFileName);\n\n // Build all variables.\n allVariable = data.buildAllVariable();\n\n // Read the target gene set.\n GeneSet geneSet = new GeneSet(allVariable, targetGeneSetFileName, minGeneSetSize, maxGeneSetSize, selectedCollections);\n listOfTargetGeneSets = geneSet.buildListOfGeneSets();\n\n // Read sample class labels.\n readSampleClass();\n\n // Initialize remaining fields.\n if (numberOfThreads == 0)\n numberOfThreads = getRuntime().availableProcessors();\n\n // Initialize BufferedWriter with preliminary info for log file.\n String fileInfo = \"EDDY OUTPUT FILE\\n\";\n fileInfo += (\"Data File: \" + dataFileName + \"\\n\");\n fileInfo += (\"Target Gene Set(s) File: \" + targetGeneSetFileName + \"\\n\");\n fileInfo += (\"Class Label File: \" + sampleClassInformationFileName + \"\\n\");\n fileInfo += (\"Number of Gene Sets: \" + listOfTargetGeneSets.size() + \"\\n\");\n fileInfo += (\"Number of Threads: \" + numberOfThreads + \"\\n\\n\");\n \n // log command line options, in verbatim \n fileInfo += concatStrings(commandLine) + \"\\n\\n\";\n \n fileInfo += (\"Name: \\tCollection: \\tSize: \\tURL: \\tJS Divergence: \\tP-Value: \\t#Permutations: \\tGenes: \\n\");\n try {\n \t// TODO: need to come up with a better way to assign the output file name.\n String fileName = targetGeneSetFileName.substring(0, targetGeneSetFileName.indexOf(\".gmt\")) + \"_output.txt\";\n \n File file = new File(fileName);\n \n output = new BufferedWriter(new FileWriter(file));\n output.write(fileInfo);\n } catch ( IOException e ) {\n e.printStackTrace();\n }\n\n }",
"@Override\n protected void accept(ParameterVisitor visitor, Object value) {\n if (FormatType.INTEGRAL.canFormat(value)) {\n visitor.visit(value, FormatChar.DECIMAL, WITH_GROUPING);\n } else if (FormatType.FLOAT.canFormat(value)) {\n // Technically floating point formatting via {0} differs from \"%,f\", but as \"%,f\" results in\n // more precision it seems better to mimic \"%,f\" rather than discard both precision and type\n // information by calling visitPreformatted().\n visitor.visit(value, FormatChar.FLOAT, WITH_GROUPING);\n } else if (value instanceof Date) {\n // MessageFormat is not thread safe, so we always clone().\n String formatted = ((MessageFormat) prototypeMessageFormatter.clone())\n .format(new Object[] {value}, new StringBuffer(), null /* field position */)\n .toString();\n visitor.visitPreformatted(value, formatted);\n } else if (value instanceof Calendar) {\n visitor.visitDateTime(value, DateTimeFormat.DATETIME_FULL, getFormatOptions());\n } else {\n visitor.visit(value, FormatChar.STRING, getFormatOptions());\n }\n }",
"public void setDataFormatPattern(String dataFormatPattern) {\r\n this.dataFormatPattern = dataFormatPattern;\r\n }",
"public void writeData(StringBuilder sb) {\n\t\tif(!(fieldSimulation.getSimulationOwner() instanceof SimulationContext)) {\n\t\t\tsb.append(\"\\n\");\n\t\t\treturn;\n\t\t}\n\t\tSimulationContext sc = (SimulationContext)fieldSimulation.getSimulationOwner();\n\t\tif(sc.getApplicationType() != Application.SPRINGSALAD) {\n\t\t\tsb.append(\"\\n\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// ending time is editable, starting time is non-editable, always 0\n\t\tdouble totalTime = getTimeBounds().getEndingTime() - getTimeBounds().getStartingTime();\n\t\tsb.append(\"Total time: \" + totalTime);\t\t// TODO: for langevin, initialize to 1.00E-2\n\t\tsb.append(\"\\n\");\n\t\t\n\t\tdouble defaultTimeStep = getTimeStep().getDefaultTimeStep();\n\t\tsb.append(\"dt: \" + defaultTimeStep);\t\t// TODO: initialize to 1.00E-8\n\t\tsb.append(\"\\n\");\n\t\t\n\t\tif(!(getOutputTimeSpec() instanceof UniformOutputTimeSpec)) {\n\t\t\tthrow new RuntimeException(\"Output interval must be uniform\");\n\t\t}\n\t\tUniformOutputTimeSpec uots = (UniformOutputTimeSpec)getOutputTimeSpec();\n\t\tdouble outputInterval = uots.getOutputTimeStep();\n\t\tsb.append(\"dt_data: \" + outputInterval);\t// TODO: initialize to 1.00E-4\n\t\tsb.append(\"\\n\");\n\t}",
"void format05(String line, int lineCount) {\n\n float spldepDifference = 0f;\n\n // is this the first record in the file?\n checkFirstRecord(code, lineCount);\n\n String tmpStationId = \"\";\n String tmpSubdes = \"\";\n float tmpSpldep = -9999f;\n\n // get the data off the line\n java.util.StringTokenizer t = new java.util.StringTokenizer(line, \" \");\n String dummy = t.nextToken(); // get 'rid' of the code\n\n int subCode = 0;\n if (dataType == WATERWOD) {\n if (t.hasMoreTokens()) subCode = toInteger(t.nextToken());\n switch (subCode) {\n case 1: if (t.hasMoreTokens()) t.nextToken(); //watProfQC.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) //set profile temperature quality flag\n watProfQC.setTemperature((toInteger(t.nextToken())));\n if (t.hasMoreTokens()) //set profile salinity quality flag\n watProfQC.setSalinity((toInteger(t.nextToken())));\n if (t.hasMoreTokens()) //set profile disoxygen quality flag\n watProfQC.setDisoxygen((toInteger(t.nextToken())));\n break;\n\n } // switch (subCode)\n } // if (dataType = WATERWOD)\n if (dbg) System.out.println(\"format05: subCode = \" + subCode);\n\n if (dataType == CURRENTS) {\n\n //01 a2 format code always \"05\" n/a\n //02 a12 stnid station id: composed as for format 03 currents\n //03 f7.2 sample depth in m currents\n //04 i3 current dir in deg TN currents\n //05 f5.2 current speed in m/s currents\n\n if (t.hasMoreTokens()) currents.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) currents.setSpldep(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) currents.setCurrentDir(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) currents.setCurrentSpeed(toFloat(t.nextToken(), 1f));\n\n tmpStationId = currents.getStationId(\"\");\n tmpSubdes = currents.getSubdes(\"\");\n tmpSpldep = currents.getSpldep();\n\n } else if (dataType == SEDIMENT) {\n\n // This is a new sub-station record - set flags for code 06 to 13\n // to false\n code06Count = 0;\n code07Count = 0;\n //code08Count = 0;\n code09Count = 0;\n //code10Count = 0;\n code11Count = 0;\n code12Count = 0;\n code13Count = 0;\n\n //01 a2 format code always “05\" n/a\n //02 a12 stnid station id: composed as for format 03 sedphy\n //03 f7.2 sample depth in m sedphy\n //04 f6.3 cod mg O2 / litre sedphy\n //05 f8.4 dwf sedphy\n //06 i5 meanpz µns sedphy\n //07 i5 medipz µns sedphy\n //08 f8.3 kurt sedphy\n //09 f8.3 skew sedphy\n\n if (t.hasMoreTokens()) sedphy.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) sedphy.setSpldep(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedphy.setCod(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedphy.setDwf(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedphy.setMeanpz(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) sedphy.setMedipz(toInteger(t.nextToken()));\n if (t.hasMoreTokens()) sedphy.setKurt(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) sedphy.setSkew(toFloat(t.nextToken(), 1f));\n\n tmpStationId = sedphy.getStationId(\"\");\n tmpSubdes = sedphy.getSubdes(\"\");\n tmpSpldep = sedphy.getSpldep();\n if (dbg) System.out.println(\"<br>format05: subdes = \" + subdes +\n \", sedphy.getSubdes() = \" + sedphy.getSubdes(\"\"));\n if (dbg) System.out.println(\"<br>format05: tmpSpldep = \" + tmpSpldep);\n\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n\n // This is a new sub-station record - set flags for code 06 to 13\n // to false\n code06Count = 0;\n code07Count = 0;\n code08Count = 0;\n code09Count = 0;\n code10Count = 0;\n code11Count = 0;\n code12Count = 0;\n code13Count = 0;\n\n // subCode = 1 - ignore\n // subCode = 0 (WATER) or subCode = 2 (WATERWOD)\n if (subCode != 1) {\n //01 a2 format code always \"05\" n/a\n //02 a12 stnid station id: composed as for format 03 watphy\n //03 f7.2 sample depth in m watphy\n //04 f5.2 temperature in deg C watphy\n //05 f6.3 salinity in parts per thousand (?) watphy\n //06 f5.2 dis oxygen in ml / litre watphy\n\n if (t.hasMoreTokens()) watphy.setStationId(toString(t.nextToken()));\n if (t.hasMoreTokens()) watphy.setSpldep(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) // set spldep quality flag\n watQC.setSpldep((toInteger(t.nextToken())));\n\n if (t.hasMoreTokens()) watphy.setTemperature(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) // set temperature quality flag\n watQC.setTemperature((toInteger(t.nextToken())));\n\n if (t.hasMoreTokens()) watphy.setSalinity(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) // set salinity quality flag\n watQC.setSalinity((toInteger(t.nextToken())));\n\n if (t.hasMoreTokens()) watphy.setDisoxygen(toFloat(t.nextToken(), 1f));\n if ((dataType == WATERWOD) && (t.hasMoreTokens())) // set disoxygen quality flag\n watQC.setDisoxygen((toInteger(t.nextToken())));\n\n if (t.hasMoreTokens()) watphy.setTurbidity(toFloat(t.nextToken(), 1f));\n if (t.hasMoreTokens()) watphy.setPressure(toFloat(t.nextToken(), 1f)); // ub09\n if (t.hasMoreTokens()) watphy.setFluorescence(toFloat(t.nextToken(), 1f)); // ub09\n\n if (watphy.getSpldep() == Tables.FLOATNULL) { // ub11\n if ((watphy.getPressure() != Tables.FLOATNULL) && // ub11\n (station.getLatitude() != Tables.FLOATNULL)) { // ub11\n watphy.setSpldep( // ub11\n calcDepth(watphy.getPressure(), // ub11\n station.getLatitude())); // ub11\n } // if ((watphy.getPressure() != Tables.FLOATNULL) && .// ub11\n } // if (watphy.getSpldep() == Tables.FLOATNULL) // ub11\n\n tmpStationId = watphy.getStationId(\"\");\n tmpSubdes = watphy.getSubdes(\"\");\n tmpSpldep = watphy.getSpldep();\n if (dbg) System.out.println(\"<br>format05: subdes = \" + subdes +\n \", watphy.getSubdes() = \" + watphy.getSubdes(\"\"));\n } // if (subCode != 1)\n\n } // if (dataType == CURRENTS)\n\n // subCode = 1 - ignore\n // subCode = 0 (WATER/CURRENTS/SEDIMENT) or subCode = 2 (WATERWOD)\n if (subCode != 1) {\n // station Id must match that of previous station record\n checkStationId(lineCount, tmpStationId);\n\n // samples must be at least 0.5 metre deeper than the previous.\n // If this is not the case, reject the sample.\n // Only valid for CTD-type data, not for XBT or currents\n if (\"CTD\".equals(tmpSubdes)) {\n if (\"U\".equals(upIndicator)) {\n spldepDifference = prevDepth - tmpSpldep;\n } else {\n spldepDifference = tmpSpldep - prevDepth;\n } // if (\"U\".equals(upIndicator))\n } else {\n spldepDifference = 1f;\n } // if (\"CTD\".equals(tmpSubdes))\n\n if ((spldepDifference < 0.5f) && (tmpSpldep != 0f) &&\n (prevDepth != 0f)) {\n rejectDepth = true;\n stationSampleRejectCount++;\n sampleRejectCount++;\n\n if ((dataType == WATER) || (dataType == WATERWOD)) {\n watchem1 = new MrnWatchem1();\n watchem1 = new MrnWatchem1();\n watchl = new MrnWatchl();\n watnut = new MrnWatnut();\n watpol1 = new MrnWatpol1();\n watpol2 = new MrnWatpol2();\n } // if ((dataType == WATER) || (dataType == WATERWOD))\n if (dataType == WATERWOD) {\n watQC = new MrnWatqc();\n } // if (dataType == WATERWOD)\n } else {\n rejectDepth = false;\n prevDepth = tmpSpldep;\n\n // update the minimum and maximum depth\n if (tmpSpldep < depthMin) {\n depthMin = tmpSpldep;\n } // if (tmpSpldep < depthMin)\n if (tmpSpldep > depthMax) {\n depthMax = tmpSpldep;\n } // if (tmpSpldep < depthMin)\n\n } // if ((spldepDifference < 0.5f) &&\n\n // update the counters\n sampleCount++;\n stationSampleCount++;\n\n if (dbg) System.out.println(\"<br>format05: depthMax = \" + depthMax);\n // keep the maximum depth for the station\n station.setMaxSpldep(depthMax);\n //if (dbg) System.out.println(\"format05: station = \" + station);\n if (dbg) {\n if (dataType == CURRENTS) {\n System.out.println(\"<br>format05: currents = \" + currents);\n } else if (dataType == SEDIMENT) {\n System.out.println(\"<br>format05: sedphy = \" + sedphy);\n } else if (dataType == WATER) {\n System.out.println(\"<br>format05: watphy = \" + watphy);\n } else if (dataType == WATERWOD) {\n System.out.println(\"format05: watProfQC = \" + watProfQC);\n System.out.println(\"format05: watQC = \" + watQC);\n System.out.println(\"format05: watphy = \" + watphy);\n } // if (dataType == CURRENTS)\n } // if (dbg)\n\n } // if (subCode != 1)\n\n }",
"private ClassFileReadRuntimeException dataFormatError() {\n\n return classFileReadException(\"Data format error\"); // NOI18N\n }",
"public static interface DataTypeWithFormat {\r\n \r\n /**\r\n * Format\r\n * \r\n * @return\r\n */\r\n public abstract String getFormat();\r\n \r\n /**\r\n * Locale\r\n * \r\n * @return\r\n */\r\n public abstract Locale getLocale();\r\n }",
"String getOutputFormat();",
"public abstract String format(T t);",
"public static void main(String[] args) {\n BufferedReader console = new BufferedReader(\r\n new InputStreamReader(System.in));\r\n System.out.print(\"Please enter data file names: \");\r\n \r\n String params = null;\r\n try {\r\n \tparams = console.readLine();\r\n } catch (IOException e) {\r\n \tparams = null;\r\n }\r\n if (params == null) {\r\n \tSystem.out.print(\"Please enter valid file names.\");\r\n \treturn;\r\n }\r\n \r\n StringTokenizer token = new StringTokenizer(params, \",\");\r\n String[] inputParams = new String[100];\r\n int count = 0;\r\n while (token.hasMoreTokens())\r\n \tinputParams[count++] = token.nextToken().trim();\r\n \r\n String[] inputFiles = new String[count];\r\n System.arraycopy(inputParams, 0, inputFiles, 0, count);\r\n \r\n // Start program\r\n Log log = Log.getInstance();\r\n \r\n scanners = new Scanner[inputFiles.length];\r\n writers = new PrintWriter[inputFiles.length];\r\n filenames = inputFiles;\r\n \r\n for (int i = 0; i < inputFiles.length; i++) {\r\n try {\r\n scanners[i] = new Scanner(new File(inputFiles[i]));\r\n } catch (IOException e) {\r\n System.out.println(\"Could not open input file \" + inputFiles[i] + \" for reading.\");\r\n System.out.println(\"Please check if file exists! \" +\r\n \"Program will terminate after closing any opened files.\");\r\n closeScanners();\r\n return;\r\n }\r\n }\r\n \r\n for (int i = 0; i < inputFiles.length; i++) {\r\n try {\r\n writers[i] = new PrintWriter(getJson(inputFiles[i]));\r\n } catch (IOException e) {\r\n System.out.println(\"Could not open input file \" + inputFiles[i] + \" for writing.\");\r\n System.out.println(\"Program will terminate after closing any opened files.\");\r\n \r\n closeScanners();\r\n closeWriters();\r\n return;\r\n }\r\n }\r\n \r\n /*\r\n */\r\n if (!processFilesForValidation(scanners, writers)) {\r\n closeScanners();\r\n cleanWriters();\r\n return;\r\n }\r\n\r\n /*\r\n * Ask the user to enter the name of one of the created output files to display\r\n */\r\n for (int i = 0; i < 2; ++i) {\r\n System.out.print(\"Enter JSON file name: \");\r\n String file = \"\";\r\n try {\r\n file = console.readLine();\r\n } catch (IOException e) {\r\n\r\n }\r\n BufferedReader reader = null;\r\n try {\r\n reader = new BufferedReader(new FileReader(file));\r\n String line;\r\n while ((line = reader.readLine()) != null)\r\n System.out.println(line);\r\n break;\r\n } catch (FileNotFoundException e) {\r\n System.out.println(\"The file does not exist.\");\r\n } catch (IOException e) {\r\n System.out.println(\"Failed to read the file.\");\r\n } finally {\r\n try {\r\n if (reader != null)\r\n reader.close();\r\n } catch (IOException e) {\r\n }\r\n }\r\n }\r\n log.close();\r\n \r\n closeScanners();\r\n closeWriters();\r\n }",
"@Override\n protected void dump(Formatter formatter)\n {\n PeerConnectionStatistics s = rawStatistics;\n\n double drate = s.download.average(4);\n drate /= 1024*1024;\n double urate = s.upload.average(4);\n urate /= 1024*1024;\n\n formatter.format(\"%24s %2S%2S %1c%1c %1c%1c %5.1f %3d %6d | %5.1f %2d %6d %5d %s\\n\",\n peer.address,\n connected ? \"+\" : \"-\",\n handshaked ? \"+\" : \"-\",\n\n choke ? 'c' : '-',\n interested ? 'i' : '-',\n peerChoke ? 'c' : '-',\n peerInterested ? 'i' : '-',\n\n drate, blockRequests.size(), statistics.blocksReceived,\n urate, 0, statistics.blocksSent,\n getPeerCompletionPercent(),\n StdPeerProtocol.extractClientNameFromId(peer.peerId));\n }",
"private void startWrite()\n\t\tthrows IOException\n\t{\n\t\tif(! lists[level] && ! nextKey)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tif(hasData[level]) writer.write(',');\n\n\t\thasData[level] = true;\n\n\t\tif(beautify && level > 0)\n\t\t{\n\t\t\twriter.write('\\n');\n\n\t\t\tfor(int i=0; i<level; i++)\n\t\t\t{\n\t\t\t\twriter.write('\\t');\n\t\t\t}\n\t\t}\n\t}",
"public String getDataFormatPattern() {\r\n return dataFormatPattern;\r\n }",
"public static void setFileLoggerFormatter(Formatter formatter){\n fileLoggerFormatter = formatter;\n }",
"public static String formatarData(String data) {\r\n\t\tString retorno = \"\";\r\n\r\n\t\tif (data != null && !data.equals(\"\") && data.trim().length() == 8) {\r\n\r\n\t\t\tretorno = data.substring(6, 8) + \"/\" + data.substring(4, 6) + \"/\" + data.substring(0, 4);\r\n\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}",
"public interface InputFormat {\n /**\n * Return a FileFilter that can be used to identify files which can be restored\n * with this Storage Format. Typically, each input format has its own \n * recognizable file naming convention.\n *\n * @return FileFilter to be used with a javax.swing.JFileChooser\n */\n public javax.swing.filechooser.FileFilter getFileFilter();\n \n /**\n * Return a JFileChooser accessory that can be used to customize the input\n * format.\n *\n * @return A JFileChooser accessory to be used with a javax.swing.JFileChooser\n * Returns null, if no accessory is provided for this format.\n */\n public JComponent getInputFormatAccessory();\n \n /**\n * Reads figures from a file and replaces the children of the drawing\n * with them.\n * <p>\n * This is a convenience method for calling read(File,Drawing,true).\n *\n * @param file The file.\n * @param drawing The drawing.\n */\n public void read(File file, Drawing drawing) throws IOException;\n \n /**\n * Reads figures from a file and adds them to the specified drawing.\n *\n * @param file The file.\n * @param drawing The drawing.\n * @param replace Set this to true, if the contents of the file replaces the\n * contents of the drawing (for example, when loading a drawing from a file).\n * Set this to false, to add the contents of the file to the drawing (for\n * example, when the file has been dropped into the drawing view).\n */\n public void read(File file, Drawing drawing, boolean replace) throws IOException;\n\n /**\n * Reads figures from a file and adds them to the specified drawing.\n *\n * @param in The input stream.\n * @param drawing The drawing.\n * @param replace Set this to true, if the contents of the stream replaces the\n * contents of the drawing (for example, when loading a drawing from a stream).\n * Set this to false, to add the contents of the file to the drawing (for\n * example, when the stream has been dropped into the drawing view).\n */\n public void read(InputStream in, Drawing drawing, boolean replace) throws IOException;\n\n /**\n * Returns true, if this InputFormat can readFigures TransferData using the \n * specified DataFlavor.\n * \n * @param flavor A DataFlavor.\n */\n public boolean isDataFlavorSupported(DataFlavor flavor);\n \n /**\n * Reads figures from the specified Transferable and adds them to the\n * specified drawing.\n * \n * @param t The Transferable. \n * @param drawing The drawing.\n * @param replace Set this to true, if the contents of the transferable\n * replaces the contents of the drawing (for example, when loading a drawing\n * from a transferable). Set this to false, to add the contents of the \n * transferable to the drawing (for example, when the transferable has been\n * dropped or pasted into the drawing view).\n */\n public void read(Transferable t, Drawing drawing, boolean replace) throws UnsupportedFlavorException, IOException;\n}",
"public static Options dataFormat(String dataFormat) {\n return new Options().dataFormat(dataFormat);\n }",
"public Formatter() {\n\t\t// locale the locale for weekday names.\n\t\tfinal Locale locale = Locale.ENGLISH;\n\t\tdateFormatter = DateTimeFormatter.ofPattern(\"dd.MM.yyyy 'at' HH:mm\", locale);\n\t\tweekdayFormatter = DateTimeFormatter.ofPattern(\"EEEE\", locale);\n\t}",
"public static String formatDataByUSLocale(final String data, final String inFormat) {\n\n\t\tString dateFormatted = \"\";\n\t\tif (!StringUtils.isNullOrEmpty(data)) {\n\n\t\t\tString format = inFormat;\n\t\t\tif (inFormat == null) {\n\t\t\t\tformat = DD_MM_YYYY;\n\t\t\t}\n\t\t\t\n\t\t\tSimpleDateFormat dateStandard = null;\n\t\t\tDate d = null;\n\t\t\ttry {\n\t\t\t\tdateStandard = new SimpleDateFormat(\n\t\t\t\t\t\t\"EEE MMM dd HH:mm:ss Z yyyy\", Locale.ENGLISH);\n\t\t\t\td = dateStandard.parse(data);\n\t\t\t} catch (ParseException e) {\n\t\t\t\tthrow new FenixException(\"Errore nella formattazione della data. \" + e.getMessage());\n\t\t\t}\n\n\t\t\tSimpleDateFormat dateFormatter = new SimpleDateFormat(format);\n\t\t\tdateFormatter.setTimeZone(TimeZone.getDefault());\n\n\t\t\tdateFormatted = dateFormatter.format(d);\n\t\t}\n\n\t\treturn dateFormatted;\n\t}",
"public DefaultFormat() {\n }",
"public DataFormat createDataFormat() {\n\t\treturn null;\n\t}",
"static void headerFormat(FileWriter fw) throws IOException { \r\n\t\t//fw.append(\"\\n\");\r\n\t\tfw.append(\"levelId\");\r\n fw.append(',');\r\n fw.append(\"rideName\");\r\n fw.append(',');\r\n fw.append(\"ridestartEndLocation\");\r\n fw.append(',');\r\n fw.append(\"rideData\");\r\n fw.append('\\n');\r\n\t}",
"@Test\n @Ignore(\"Need to implement\")\n public void testOutputDynamicDelimitedMode() throws Throwable {\n testOutputDynamic(false);\n }",
"public interface TraceListFormat{\n\tString getSuffix();\n\t/**\n\t * Read trace list from a file\n\t *\n\t * @param file the file\n\t * @return the trace list\n\t * @throws IOException\n\t */\n\tTraceList read(File file) throws IOException;\n\t/**\n\t * Save trace list to a file\n\t *\n\t * @param traceList trace list\n\t * @param file the file\n\t * @throws IOException\n\t */\n\tvoid write(TraceList traceList,File file) throws IOException;\n\t/**\n\t * Read trace list from a file\n\t *\n\t * @param file the file\n\t * @return the trace list\n\t * @throws IOException\n\t */\n\tpublic static TraceList readFrom(File file) throws IOException{\n\t\tString fileName=file.getName();\n\t\tString formatName=fileName.contains(\".\")?fileName.substring(fileName.indexOf('.')+1):\"png\";\n\t\tfor(TraceListFormat next:ServiceLoader.load(TraceListFormat.class)){\n\t\t\tif(formatName.endsWith(next.getSuffix())){\n\t\t\t\treturn next.read(file);\n\t\t\t}\n\t\t}\n\t\treturn Extractor.getDefault().extract(ImageIO.read(file));\n\t}\n\t/**\n\t * Save trace list to a file\n\t *\n\t * @param traceList trace list\n\t * @param file the file\n\t * @throws IOException\n\t */\n\tpublic static void writeTo(TraceList traceList,File file) throws IOException{\n\t\tString fileName=file.getName();\n\t\tString formatName=fileName.contains(\".\")?fileName.substring(fileName.indexOf('.')+1):\"png\";\n\t\tfor(TraceListFormat next:ServiceLoader.load(TraceListFormat.class)){\n\t\t\tif(formatName.endsWith(next.getSuffix())){\n\t\t\t\tnext.write(traceList,file);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tImageIO.write(TraceListViewer.renderColorImage(traceList),formatName,file);\n\t}\n}",
"@Override\n public void writeRow(final Object... columnData) {\n TextOutputFormat outputFormat = this.outputFormat;\n if (outputFormat == TextOutputFormat.text) {\n outputFormat = TextOutputFormat.tsv;\n }\n final Tag row = tableRow().make();\n for (final Object element : columnData) {\n final TagBuilder tableCell = tableCell().withEscapedText(toString(element));\n if (element == null) {\n tableCell.withStyleClass(\"data_null\");\n } else if (element instanceof BinaryData) {\n tableCell.withStyleClass(\"data_binary\");\n } else if (element instanceof Number) {\n tableCell.withStyleClass(\"data_number\");\n }\n row.addInnerTag(tableCell.make());\n }\n\n out.println(row.render(TagOutputFormat.valueOf(outputFormat.name())));\n }",
"public void printData() {\n\t\ttry {\n\t\t\tFiles.lines(new File(PAYROLL_FILE_NAME).toPath())\n\t\t\t.forEach(System.out::println); \n\t\t}catch(IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void write(DataContainer data, File destination) throws IOException {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint countColumn = data.getAttributes().size();\n\t\tint i = 0;\n\t\t\n\t\t//write attribute names\n\t\tfor(String attribute : data.getAttributes()){\n\t\t\tif(attribute.contains(\";\")){\n\t\t\t\tsb.append(\"\\\"\" + attribute.replace(\"\\\"\", \"\\\"\\\"\") + \"\\\"\");\n\t\t\t} else {\n\t\t\t\tsb.append(attribute.replace(\"\\\"\", \"\\\"\\\"\"));\n\t\t\t}\n\t\t\t//if this is not the last element in the row, append semicolon\n\t\t\tif(i != countColumn - 1) sb.append(\";\");\n\t\t\ti++;\n\t\t}\n\t\tsb.append(NEWLINE);\n\t\t\n\t\t//write data\n\t\tfor(i = 0; i < data.getNumberOfRows(); i++){\n\t\t\tif(data.getDataRow(i) == null) continue;\n\t\t\tint j = 0;\n\t\t\tfor(String value : data.getDataRow(i)){\n\t\t\t\tif(value.contains(\";\")){\n\t\t\t\t\tsb.append(\"\\\"\" + value.replace(\"\\\"\", \"\\\"\\\"\") + \"\\\"\");\n\t\t\t\t} else {\n\t\t\t\t\tsb.append(value.replace(\"\\\"\", \"\\\"\\\"\"));\n\t\t\t\t}\n\t\t\t\t//if this is not the last element in the row, append semicolon\n\t\t\t\tif (j != countColumn - 1) sb.append(\";\");\n\t\t\t\tj++;\n\t\t\t}\n\t\t\tsb.append(NEWLINE);\n\t\t}\n\t\t\n\t\t//write the assembled content to the file\n\t\tFileOutputStream fos = new FileOutputStream(destination);\n\t\tOutputStreamWriter osw = new OutputStreamWriter(fos, \"UTF8\");\n\t\tosw.write(sb.toString());\n\t\tosw.close();\n\t}",
"@VTID(8)\r\n java.lang.String format();",
"public void setDataWriter(DataWriter dataWriter);",
"public StringFormatter getStringFormatter();",
"@Override\n public String formatSave() {\n return \"BI\" + \" | \"\n + people + \" | \"\n + amount + \" | \"\n + amount / people + \" | \"\n + nameString(nameList);\n }",
"public static void main(String args[])\n {\n try (DataOutputStream dout = new DataOutputStream(new FileOutputStream(\"Test.data\")))\n {\n dout.writeDouble(98.6);\n dout.writeInt(42);\n dout.writeBoolean(true);\n } catch(FileNotFoundException exc){\n System.out.println(\"Error: File not found Exception - \" + exc);\n return;\n } catch(IOException exc){\n System.out.println(\"I/O exception - \" + exc);\n }\n\n //now read the data back\n try (DataInputStream din = new DataInputStream(new FileInputStream(\"Test.data\")))\n {\n double d = din.readDouble();\n int i = din.readInt();\n boolean b = din.readBoolean();\n\n System.out.println(\"here are the values: \" + d + \", \" + i + \", \" + b);\n } catch (FileNotFoundException exc) {\n System.out.println(\"Error: read error, file not found - \" + exc);\n return;\n } catch(IOException exc) {\n System.out.println(\"Error: I/O readfile - \" + exc);\n }\n }",
"public static String exportFieldData(Hashtable data, String delimiter, DateFormat df) {\r\n return AbstractTemplateGenerator.exportFieldData(data, delimiter, df, null);\r\n }",
"private FileFormats(String fileFormat, TeaFileReader reader, TeaFileWriter writer, String description) {\r\n\t\tthis.fileFormat = fileFormat;\r\n\t\tthis.reader = reader;\r\n\t\tthis.writer = writer;\r\n\t\tthis.description = description;\r\n\t}",
"@Override\n public String getDataInCSV() {\n return String.format(Locale.US, \"%d,%s\", this.timestamp, this.getStatusString());\n }",
"public static void main(String[] args) throws IOException{\n\tFile data = new File(\"src/example.dat\");\r\n\r\n\t DataOutputStream out = new DataOutputStream(\r\n\t\t\t\t\t\t\t new BufferedOutputStream(\r\n\t\t\t\t\t\t\t new FileOutputStream(data)));\r\n\t out.writeInt(5);\r\n\t out.writeChar('c');\r\n\t out.writeBoolean(true);\r\n\t out.writeUTF(\"Java\");\r\n\t out.writeChar('\\n');\r\n\t out.writeChars(\"End of file\");\r\n\t out.close();\r\n }",
"@Override\n public void readDataFromTxtFile()\n throws NumberFormatException, DepartmentCreationException, EmployeeCreationException {\n\n }",
"public CSVCustomFormat getCustomFormatData() {\n return csvCustomFormat.getValue();\n }",
"public void formatValue(ElementFormatter elemFormatter, Row row, String ordinalValue, CallingContext cc) throws ODKDatastoreException;",
"@Override\n protected void dataParser() {\n for (String dataLine : dataFile) {\n if (totalErrors > 200) {\n totalErrors = 0;\n throw new RuntimeException(\n \"File rejected: more than 200 lines contain errors.\\n\" + getErrorMessage(false));\n }\n parseLine(dataLine);\n }\n }",
"public void outputToConsole() {\r\n for (String line : data) {\r\n System.out.println(line);\r\n }\r\n }"
] | [
"0.58274746",
"0.570829",
"0.54110116",
"0.53604245",
"0.52553684",
"0.5232488",
"0.5227039",
"0.52253157",
"0.5223275",
"0.5203163",
"0.5179291",
"0.5173477",
"0.5158742",
"0.51391804",
"0.5136384",
"0.5119134",
"0.5112433",
"0.5105127",
"0.50821143",
"0.5074272",
"0.49963143",
"0.4982053",
"0.4978013",
"0.49511823",
"0.49503",
"0.4946981",
"0.49402627",
"0.49294436",
"0.4913536",
"0.48999447",
"0.48974478",
"0.48867595",
"0.4882604",
"0.48805076",
"0.48645836",
"0.48587787",
"0.48564792",
"0.4847174",
"0.4838033",
"0.48260066",
"0.48206404",
"0.48181656",
"0.48076296",
"0.48010382",
"0.47833902",
"0.47815776",
"0.47698694",
"0.4765528",
"0.4759444",
"0.47244975",
"0.47155562",
"0.47145563",
"0.47139606",
"0.47122568",
"0.47076717",
"0.47068772",
"0.47048464",
"0.46994832",
"0.46977836",
"0.46970913",
"0.46553895",
"0.4650128",
"0.46336868",
"0.46254838",
"0.4610091",
"0.46005887",
"0.45948613",
"0.4587296",
"0.4585255",
"0.45834976",
"0.4583174",
"0.45759162",
"0.4571462",
"0.4568104",
"0.45637",
"0.4559529",
"0.45581758",
"0.4556073",
"0.4553411",
"0.45479402",
"0.45443663",
"0.45383108",
"0.4535673",
"0.4534625",
"0.4530007",
"0.4524992",
"0.45218024",
"0.45191538",
"0.45182908",
"0.45149416",
"0.45106906",
"0.45095956",
"0.44946036",
"0.4494214",
"0.44936538",
"0.44922426",
"0.44877788",
"0.4485388",
"0.447723",
"0.4473859"
] | 0.5186391 | 10 |
Format the data so that it can be written to a plain text file appropriate to the datatype | public IDataExporter<CRBBase> setInvoiceDate(LocalDate invoiceDate); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void saveDataType(int type) throws IOException {\r\n FileWriter fileWriter = new FileWriter(\"././ressources/datatype.txt\");\r\n BufferedWriter writer = new BufferedWriter(fileWriter);\r\n writer.write(type + \"\\n\");\r\n writer.close();\r\n fileWriter.close();\r\n }",
"public String formatData() {\n\t\tStringBuilder builder = new StringBuilder();\n\t\n\t\t\tbuilder.append(this.iataCode);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.latitude);\n\t\t\tbuilder.append(\",\");\n\t\t\tbuilder.append(this.longitude);\n\t\t\tbuilder.append(\",\");\n\t\t\tbuilder.append(this.altitude);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.localTime);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.condition);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.temperature);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.pressure);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.humidity);\n\t\t\tbuilder.append(\"\\n\");\n\t\t\n\n\t\treturn builder.toString();\n\n\t}",
"@Override\n public void writeDataToTxtFile() {\n\n }",
"String saveToFile(Object data, String fileName, FileFormat fileFormat) throws IOException;",
"private void toFile(OutputData data) {\n if(data == null) {\r\n JOptionPane.showMessageDialog(this, \"Dane wynikowe nie zostały jeszcze umieszczone w pamieci\");\r\n return;\r\n }\r\n\r\n // Sprawdzenie sciezki zapisu\r\n String filePath = this.outputFileSelector.getPath();\r\n if(filePath.length() <= 5) {\r\n JOptionPane.showMessageDialog(this, \"Nie można zapisać wyniku w wybranej lokacji!\");\r\n return;\r\n }\r\n\r\n // Zapisujemy plik na dysk\r\n try{\r\n PrintWriter writer = new PrintWriter(filePath, \"UTF-8\");\r\n OutputDataFormatter odf = new OutputDataFormatter(this.outputData);\r\n\r\n String userPattern = this.outputFormatPanel.getPattern();\r\n writer.write(odf.getParsedString(userPattern.length() < 2 ? defaultFormatting : userPattern));\r\n\r\n writer.close();\r\n } catch (IOException e) {\r\n JOptionPane.showMessageDialog(this, \"Wystąpił błąd IO podczas zapisu.\");\r\n }\r\n\r\n }",
"protected void writeData(Array values, Layout index, DataType dataType) throws java.io.IOException {\n if ((dataType == DataType.BYTE) || (dataType == DataType.CHAR)) {\n IndexIterator ii = values.getIndexIterator();\n while (index.hasNext()) {\n Layout.Chunk chunk = index.next();\n raf.seek(chunk.getSrcPos());\n for (int k = 0; k < chunk.getNelems(); k++)\n raf.write(ii.getByteNext());\n }\n return;\n\n } else if (dataType == DataType.STRING) { // LOOK not legal\n IndexIterator ii = values.getIndexIterator();\n while (index.hasNext()) {\n Layout.Chunk chunk = index.next();\n raf.seek(chunk.getSrcPos());\n for (int k = 0; k < chunk.getNelems(); k++) {\n String val = (String) ii.getObjectNext();\n if (val != null)\n raf.write(val.getBytes(StandardCharsets.UTF_8)); // LOOK ??\n }\n }\n return;\n\n } else if (dataType == DataType.SHORT) {\n IndexIterator ii = values.getIndexIterator();\n while (index.hasNext()) {\n Layout.Chunk chunk = index.next();\n raf.seek(chunk.getSrcPos());\n for (int k = 0; k < chunk.getNelems(); k++)\n raf.writeShort(ii.getShortNext());\n }\n return;\n\n } else if (dataType == DataType.INT) {\n IndexIterator ii = values.getIndexIterator();\n while (index.hasNext()) {\n Layout.Chunk chunk = index.next();\n raf.seek(chunk.getSrcPos());\n for (int k = 0; k < chunk.getNelems(); k++)\n raf.writeInt(ii.getIntNext());\n }\n return;\n\n } else if (dataType == DataType.FLOAT) {\n IndexIterator ii = values.getIndexIterator();\n while (index.hasNext()) {\n Layout.Chunk chunk = index.next();\n raf.seek(chunk.getSrcPos());\n for (int k = 0; k < chunk.getNelems(); k++)\n raf.writeFloat(ii.getFloatNext());\n }\n return;\n\n } else if (dataType == DataType.DOUBLE) {\n IndexIterator ii = values.getIndexIterator();\n while (index.hasNext()) {\n Layout.Chunk chunk = index.next();\n raf.seek(chunk.getSrcPos());\n for (int k = 0; k < chunk.getNelems(); k++)\n raf.writeDouble(ii.getDoubleNext());\n }\n return;\n }\n\n throw new IllegalStateException(\"dataType= \" + dataType);\n }",
"String FormatDataType(int dataType, int scale, int precision);",
"public String writeDetails ()\n {\n String memberData = \"\";\n memberData = memberData.concat(fname);\n memberData = memberData.concat(\",\");\n memberData = memberData.concat(sname);\n memberData = memberData.concat(\",\");\n memberData = memberData.concat(Float.toString(mark));\n return memberData;\n }",
"public String getDataString() {\r\n return formatoData.format(data);\r\n }",
"public void doConvertion() throws IOException{\n String filename = \"test\";\n writer = new PrintWriter(new FileWriter(filename));\n writer.write(\"\\\"token\\\",\\\"prev_word\\\",\\\"next_word\\\",\\\"tag\\\",\\\"prev_tag\\\",\\\"next_tag\\\",\\\"is_number\\\",\\\"is_punctuation\\\",\\\"is_place_directive\\\",\\\"is_url\\\",\\\"is_twitter_account\\\",\\\"is_hashtag\\\",\\\"is_month_name\\\",\\\"is_gazeteer\\\",\\\"label\\\"\");\n // write header first.. \n \n // Select from db.\n// ArrayList<String> tweets = selectTweet();\n// for (int i = 0; i < tweets.size(); i++) {\n// String tobewriten = parseTweet(tweets.get(i));\n// writer.write(tobewriten);\n// }\n // put arff header in bottom but next to be moved to top..\n writer.write(parseTweet());\n //writer.write(getArffHeader());\n \n writer.close();\n // write to external file\n \n }",
"public void addDataformatToSaveToSystemList(FileType type) {\r\n\t\tList<String> dataformatsToSystem;\r\n\t\tif(this.settings.containsKey(\"dataformatsToSystem\")) {\r\n\t\t\tdataformatsToSystem = new ArrayList<String>(Arrays.asList(String.valueOf(this.settings.get(\"dataformatsToSystem\")).split(\",\")));\r\n\t\t\tif(!dataformatsToSystem.contains(type.toString())) {\r\n\t\t\t\tdataformatsToSystem.add(type.toString());\r\n\t\t\t}\r\n\t\t\tthis.settings.setProperty(\"dataformatsToSystem\", String.join(\",\", dataformatsToSystem));\r\n\t\t} else {\r\n\t\t\tdataformatsToSystem = new ArrayList<>();\r\n\t\t\tdataformatsToSystem.add(type.toString());\r\n\t\t\tthis.settings.setProperty(\"dataformatsToSystem\", String.join(\",\", dataformatsToSystem));\r\n\t\t}\t\t\r\n\t\tthis.saveChanges();\r\n\t}",
"public void dataFileCreate() {\r\n\t\tString COMMA_DELIMITER = \",\";\r\n\t\tString NEW_LINE_SEPERATOR = \"\\n\";\r\n\t\tString FILE_HEADER = \"Title,First Name,Last Name,Email,Phone Number\";\r\n\t\ttry {\r\n\t\t\tList<Customer> dataList = new ArrayList<Customer>();\r\n\t\t\tdataList.add(\r\n\t\t\t\t\tnew Customer(title, customerFirstName, customerLastName, custromerEmailId, customerPhoneNumber));\r\n\r\n\t\t\tFileWriter fileWriter = new FileWriter(\"CustomerDetails.csv\");\r\n\t\t\tBufferedWriter bufferWriter = new BufferedWriter(fileWriter);\r\n\t\t\tbufferWriter.append(FILE_HEADER);\r\n\r\n\t\t\tfor (Customer c : dataList) {\r\n\t\t\t\tbufferWriter.write(NEW_LINE_SEPERATOR);\r\n\t\t\t\tbufferWriter.write(c.getTitle());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(c.getFirstName());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(c.getLastName());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(c.getEmailAddress());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(String.valueOf(c.getPhone()));\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t}\r\n\r\n\t\t\tbufferWriter.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}",
"public void record_data(String filename, String data_type) throws IOException {\t\t\n\t\tString _filename;\n\t\tVector<svm_node[]> _set;\n\t\t/* set file name for record */\n\t\tif (data_type.toLowerCase() == ORIGINAL) {\n\t\t\t_filename = \"./datasets/data.\" + filename + \"_original\";\n\t\t\t_set = original_set;\n\t\t} else if (data_type.toLowerCase() == SCALED) {\n\t\t\t_filename = \"./datasets/data.\" + filename + \"_scaled\";\n\t\t\t_set = scaled_set;\n\t\t} else {\n\t\t\tSystem.out.println(\"wrong data type, record failed\");\n\t\t\treturn;\n\t\t}\n\t\tFile file = new File(_filename);\n\t\tFileOutputStream fos = new FileOutputStream(file);\n\t\tOutputStreamWriter writer = new OutputStreamWriter(fos, \"UTF-8\");\n\t\t\n\t svm_node[] sample;\n\t for (int i = 0; i < this.sample_num; i++) {\n\t \twriter.append(labels.get(i) + \" \");\n\t \tsample = _set.get(i);\n\t \tfor (int j = 0; j < this.feature_num; j++) {\n\t \t\twriter.append(sample[j].index + \":\" + sample[j].value + \" \");\n\t \t}\n\t \twriter.append(\"\\n\");\n\t }\n\t System.out.println(\"Data record done! see \" + _filename);\n\t if (writer != null) {\n\t \twriter.close();\n\t }\n\t\tif (fos != null) {\n\t\t\tfos.close();\n\t\t}\n\t}",
"public void saveStage1(String format)\n {\n super.saveStage1(format);\n try{\n writer.write(\"CB336\");\n writer.write(\"\\t\");\n writer.write(checkValue(input.get(33).getText()));\n writer.write(\"\\t\");\n writer.write(checkValue(input.get(34).getText()));\n writer.write(\"\\t\");\n writer.write(checkValue(input.get(35).getText()));\n writer.write(\"\\r\\n\");\n\n writer.write(\"CB714\");\n writer.write(\"\\t\");\n writer.write(checkValue(input.get(36).getText()));\n writer.write(\"\\t\");\n writer.write(checkValue(input.get(37).getText()));\n writer.write(\"\\t\");\n writer.write(checkValue(input.get(38).getText()));\n writer.write(\"\\t\");\n writer.write(checkValue(input.get(39).getText())); \n writer.close();\n }\n catch(IOException e){\n JOptionPane.showMessageDialog(null, \"Error in exporting file\", \"Error\",\n JOptionPane.ERROR_MESSAGE);\n }\n }",
"public String plainDataToString()\n {\n String plainDataOut = \"\";\n String vetVisitData = super.plainDataToString();\n String vetVisitUrgData = \"\";\n \n vetVisitUrgData = this.getDiagnosis() + \"\\n\" +\n this.getTreatment();\n \n plainDataOut = vetVisitData + \"\\n\" + vetVisitUrgData;\n \n return plainDataOut;\n \n }",
"public void Write_data() {\n // add-write text into file\n try {\n FileOutputStream fileout=openFileOutput(\"savedata11.txt\", MODE_PRIVATE);\n OutputStreamWriter outputWriter=new OutputStreamWriter(fileout);\n outputWriter.write(Integer.toString(_cnt));\n outputWriter.close();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private void _writeDatatypeAware(final DatatypeAware datatyped) throws IOException {\n final String datatype = datatyped.getDatatype().getReference();\n String value = XSD.ANY_URI.equals(datatype) ? datatyped.locatorValue().toExternalForm()\n : datatyped.getValue();\n _writeKeyValue(\"value\", value);\n if (!XSD.STRING.equals(datatype)) {\n _writeKeyValue(\"datatype\", datatyped.getDatatype().toExternalForm());\n }\n }",
"@Override\n public void writeToDb(List<String> data) {\n\n try {\n openConnection();\n if (validateData((ArrayList<String>) data)) {\n for (String datum : data) {\n bufferedWriter.write(getDate() + \" - \" + datum);\n bufferedWriter.newLine();\n }\n bufferedWriter.write(\"==================\\n\");\n System.out.println(\"All data is written to MS SQL DB\");\n closeConnection();\n }\n } catch (IOException e) {\n System.err.println(\"ERROR!!!\");\n e.printStackTrace();\n }\n\n }",
"public static void saveData(ArrayList<String> dataList, char[][]wordSoup){\r\n // Create File\r\n try {\r\n File myObj = new File(\"sdl_01.txt\");\r\n myObj.createNewFile();\r\n } catch (IOException e) {\r\n System.out.println(\"An error occurred.\");\r\n e.printStackTrace();\r\n }\r\n \r\n // Write data to file\r\n try {\r\n FileWriter myWriter = new FileWriter(\"sdl_01.txt\");\r\n // Data writing\r\n int size = wordSoup.length;\r\n for(int i = 0 ; i < size ; i++) {\r\n\t \tfor(int j = 0 ; j < size ; j++) {\r\n\t \t\tmyWriter.write(wordSoup[i][j]);\r\n System.out.print(wordSoup[i][j]);\r\n\t \t}\r\n\t \tmyWriter.write(\"\\n\");\r\n System.out.print(\"\\n\");\r\n\t }\r\n size = dataList.size();\r\n for(int i = 0 ; i < size ; i++) {\r\n myWriter.write(dataList.get(i) + \"\\n\");\r\n System.out.print(dataList.get(i) + \"\\n\");\r\n }\r\n myWriter.close();\r\n } catch (IOException e) {\r\n System.out.println(\"An error occurred.\");\r\n e.printStackTrace();\r\n }\r\n }",
"private static void format() {\n\t\tSystem.out.println(\"\\nThe following is a sample input file.\");\n\t\tSystem.out.println(\"-----------------------------------------\");\n\t\tSystem.out.println(\"low\\t\\t\\t // The first line should be the wind speed (low or high\");\n\t\tSystem.out.println(\"Babe:cscow:32.54\\r\\n\" + \n\t\t\t\t\"Renegade:420:38.01\\r\\n\" + \n\t\t\t\t\"Top:xboat:41.20\\r\\n\" + \n\t\t\t\t\"Jeanie-K:xboat:41.35\\r\\n\" + \n\t\t\t\t\"JuiceBox:capri:42.40\\r\\n\" + \n\t\t\t\t\"LadyBug:nj2k:55.40\\r\\n\" + \n\t\t\t\t\"XQ'sMe:xboat:56.58\\r\\n\" + \n\t\t\t\t\"Steve:mcscow:57.29\\r\\n\" + \n\t\t\t\t\"TunaFish:nj2k:60.32\\r\\n\" + \n\t\t\t\t\"NoName:nj2k:67.20\");\n\t\tSystem.out.println(\"-----------------------------------------\");\n\t\tSystem.out.println(\"Each boat entry follows the pattern of name:type:time\");\n\t\tSystem.out.println(\"Boat times should be formatted as mm.ss\");\n\t\tSystem.out.println(\"\\nThe total list of boat types can be seen with the types command.\\n\");\n\t}",
"private static void writeDataBaseText (boolean printStdOut) throws IOException {\n \t\n \tPath pt = new Path(Mediator.getHDFSLocation()+Mediator.getLearnerDatabasePath()+\"_text.txt\");\n FileSystem fs = FileSystem.get(Mediator.getConfiguration());\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(fs.create(pt,true)));\n bw.write(\"\\nDATA BASE (\"+Mediator.getNumVariables()+\" variables):\\n\\n\");\n if (printStdOut)\n \tSystem.out.println(\"\\nDATA BASE (\"+Mediator.getNumVariables()+\" variables):\\n\");\n for (Variable variable:Mediator.getVariables()){\n \tbw.write(variable+\"\\n\");\n \tif (printStdOut)\n \t\tSystem.out.println(variable);\n }\n bw.close();\n \t\n }",
"public void saveFile(String theFileLocation){\r\n try {\r\n File fileArchive = new File(theFileLocation);\r\n if (!fileArchive.exists()){ //if there is no file then it creates a new file\r\n fileArchive.createNewFile();\r\n }\r\n FileWriter fW = new FileWriter(theFileLocation);\r\n BufferedWriter bW = new BufferedWriter(fW);\r\n \r\n for (int p = 0; p < buckets.length; p++){\r\n for (int i = 0; i < buckets[p].size(); i++){\r\n EmployeeInfo theEmployee = buckets[p].get(i);\r\n \r\n if (theEmployee instanceof FTE){\r\n bW.write(\"FTE\");\r\n bW.write(\"*\");\r\n } else {\r\n if (theEmployee instanceof PTE){\r\n bW.write(\"PTE\");\r\n bW.write(\"*\");\r\n } \r\n }\r\n // general for both\r\n bW.write(Integer.toString(theEmployee.getEmpNum()));;\r\n bW.write(\"*\");\r\n bW.write(theEmployee.getFirstName());\r\n bW.write(\"*\");\r\n bW.write(theEmployee.getLastName());\r\n bW.write(\"*\");\r\n bW.write(Integer.toString(theEmployee.getGender()));\r\n bW.write(\"*\");\r\n bW.write(Integer.toString(theEmployee.getWorkLoc()));\r\n bW.write(\"*\");\r\n bW.write(Integer.toString(theEmployee.getEmpRole()));\r\n bW.write(\"*\");\r\n bW.write(Double.toString(theEmployee.getDeductRate()));\r\n bW.write(\"*\");\r\n \r\n if (theEmployee instanceof FTE){\r\n FTE theFTE = (FTE) theEmployee;\r\n bW.write(Double.toString(theFTE.yearlySalary));\r\n\r\n } else {\r\n if (theEmployee instanceof PTE){\r\n PTE thePTE = (PTE) theEmployee;\r\n bW.write(Double.toString(thePTE.hourlyWage));\r\n bW.write(\"*\");\r\n bW.write(Double.toString(thePTE.hoursPerWeek));\r\n bW.write(\"*\");\r\n bW.write(Double.toString(thePTE.weeksPerYear));\r\n } \r\n }\r\n \r\n bW.newLine(); \r\n \r\n }\r\n \r\n }\r\n bW.write(\"$$$$$$$\");\r\n bW.close();\r\n }\r\n \r\n catch (IOException IOE){\r\n IOE.printStackTrace();\r\n }\r\n }",
"@Override\n public String toFile() {\n String isDoneString = (isDone) ? \"1\" : \"0\";\n return getDescription() + \" | \" + getGrade() + \" | \" + getMc() + \" | \" + getSemester() + \" | \" + isDoneString;\n }",
"public void printDataToFile(){\n\ttry {\n\t File file = new File(\"media/gameOutput.txt\");\n \n\t // if file doesnt exists, then create it\n\t if (!file.exists()) {\n\t\tfile.createNewFile();\n\t }\n \n\t FileWriter fw = new FileWriter(file.getAbsoluteFile());\n\t BufferedWriter bw = new BufferedWriter(fw);\n\t bw.write(printString);\n\t bw.close();\n\t} catch (IOException e) {\n\t e.printStackTrace();\n\t}\n }",
"public void addDataformatToSendToHTTP(FileType type) {\r\n\t\tList<String> dataformatsToSystem;\r\n\t\tif(this.settings.containsKey(\"dataformatsToHTTP\")) {\r\n\t\t\tdataformatsToSystem = new ArrayList<String>(Arrays.asList(String.valueOf(this.settings.get(\"dataformatsToHTTP\")).split(\",\")));\r\n\t\t\tif(!dataformatsToSystem.contains(type.toString())) {\r\n\t\t\t\tdataformatsToSystem.add(type.toString());\r\n\t\t\t}\r\n\t\t\tthis.settings.setProperty(\"dataformatsToHTTP\", String.join(\",\", dataformatsToSystem));\r\n\t\t} else {\r\n\t\t\tdataformatsToSystem = new ArrayList<>();\r\n\t\t\tdataformatsToSystem.add(type.toString());\r\n\t\t\tthis.settings.setProperty(\"dataformatsToHTTP\", String.join(\",\", dataformatsToSystem));\r\n\t\t}\t\t\r\n\t\tthis.saveChanges();\r\n\t}",
"public static void writeAsOrange(InputData data, String fileName) throws IOException {\n Logger.getLogger(\"at.tuwien.ifs.somtoolbox\").info(\"Writing input data as Orange file to '\" + fileName + \"'.\");\n PrintWriter writer = FileUtils.openFileForWriting(\"Orange data\", fileName, false);\n\n TemplateVector tv = data.templateVector();\n if (tv == null) {\n Logger.getLogger(\"at.tuwien.ifs.somtoolbox\").info(\"Template vector not loaded - creating a generic one.\");\n tv = new SOMLibTemplateVector(data.numVectors(), data.dim());\n }\n SOMLibClassInformation classInformation = data.classInformation();\n boolean haveClassInfo = classInformation != null;\n\n /* - first the tab-separated names of the features\n - then the types of the features\n - and then the indicator whether a feature is the class assignment\n e.g. for IRIS:\n sepallength sepalwidth petallength petalwidth class\n continuous continuous continuous continuous discrete\n class\n */\n\n // row 1: tab-separated label names\n writer.print(StringUtils.toString(tv.getLabels(), \"\", \"\", \"\\t\"));\n if (haveClassInfo) { // and optionally the class\n writer.print(\"\\tclass\");\n }\n writer.println();\n\n // row 2: data types\n for (int i = 0; i < tv.dim(); i++) {\n writer.print(\"continuous\"); // all are continuous\n if (i + 1 < tv.dim()) {\n writer.print(\"\\t\");\n }\n }\n if (haveClassInfo) {\n writer.print(\"\\tdiscrete\"); // just the class is discrete\n }\n writer.println();\n\n // row 3: indicating options to the attributes\n writer.print(StringUtils.repeatString(tv.dim() - 1, \"\\t\"));\n if (haveClassInfo) {\n writer.print(\"\\tclass\"); // the class attribute\n }\n writer.println();\n\n // now the data, tab separated, and optionally with the class assignment\n\n // now all data, appended by the class name\n for (int i = 0; i < data.numVectors(); i++) {\n for (int j = 0; j < data.dim(); j++) {\n writer.print(data.getValue(i, j));\n if (j + 1 < data.dim()) {\n writer.print(\"\\t\");\n }\n }\n if (haveClassInfo) {\n writer.print(\"\\t\" + classInformation.getClassName(i));\n }\n writer.println();\n }\n writer.close();\n }",
"private static void printDataFormat(ArrayList<Person> p) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter path for output file\");\n\t\tString input = scan.next();\n\t\tboolean again = true;\n\t\twhile (again) {\n\t\t\tagain = false;\n\t\t\ttry (PrintWriter out = new PrintWriter(input, \"ASCII\")) {\n\t\t\t\tfor (int i = 0; i < p.size(); i++) {\n\t\t\t\t\tDateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"yyyyMMdd\", Locale.ENGLISH);\n\t\t\t\t\tDateTimeFormatter dtf2 = DateTimeFormatter.ofPattern(\"MMMM dd, yyyy\", Locale.ENGLISH);\n\t\t\t\t\tLocalDate ld = LocalDate.parse(p.get(i).getStartDate(), dtf);\n\t\t\t\t\tString month_name = dtf2.format(ld);\n\n\t\t\t\t\tout.println(i + 1 + \"\\n\" + p.get(i).getFirstName() + \" \" + p.get(i).getLastName() + \", \"\n\t\t\t\t\t\t\t+ month_name + \"\\n\" + p.get(i).getAddress() + \", \" + p.get(i).getAptNum() + \",\\n\"\n\t\t\t\t\t\t\t+ p.get(i).getCity() + \", \" + p.get(i).getState() + \"\\n\" + p.get(i).getCountry() + \", \"\n\t\t\t\t\t\t\t+ p.get(i).getZipCode());\n\t\t\t\t}\n\t\t\t} catch (FileNotFoundException | UnsupportedEncodingException e) {\n\t\t\t\tagain = true;\n\t\t\t\tSystem.out.println(\"Could not create file, enter a correct file path\");\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t}",
"static void headerFormat(FileWriter fw) throws IOException { \r\n\t\t//fw.append(\"\\n\");\r\n\t\tfw.append(\"levelId\");\r\n fw.append(',');\r\n fw.append(\"rideName\");\r\n fw.append(',');\r\n fw.append(\"ridestartEndLocation\");\r\n fw.append(',');\r\n fw.append(\"rideData\");\r\n fw.append('\\n');\r\n\t}",
"private static void writeToFile(String[] data) {\n\t\t// Regatta hasn't been calculated.\n\t\tif(r == null) {\n\t\t\tSystem.out.println(\"\\nYou haven't processed a regatta yet! \\nUse regatta to begin processing.\\n\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Just the command was specified, we need to get the filename.\n\t\tif(data.length == 1) {\n\t\t\tSystem.out.println(\"Oops, looks like you didn't specify an output file.\\n\");\n\t\t\tinitializeOutput(getFilename());\n\t\t}\n\n\t\t// Filename was specified but is invalid. Need to get another one.\n\t\tif(!isValidFileName(data[1])) {\n\t\t\tSystem.out.println(\"Looks like your filename is incorrect.\\n\");\n\t\t\tinitializeOutput(getFilename());\n\t\t}\n\n\t\tinitializeOutput(data[1]);\n\n\t\t// Write out.\n\t\tfileOutput.print(r.podium());\n\t\tfileOutput.close();\n\t}",
"public static void storeDataIntoFile() {\n\r\n try {\r\n FileWriter writer = new FileWriter(\"DetailsOfVaccination.txt.txt\");\r\n writer.write(\"Vaccination booth info - First names-\" + Arrays.toString(firstName)); //Write the patients first name\r\n writer.write(\"\\n Patient's surnames - \" + Arrays.toString(surname)); //Write the patients surname\r\n writer.write(\"\\n Number of remaining vaccines = \" + vaccines); //Write the remaining of vaccines in stock\r\n writer.close();\r\n System.out.println(\"Successfully stored data into the file.\");\r\n }\r\n catch (IOException e) { //Runs if there was an error in file\r\n System.out.println(\"An error occurred while storing data into the file. Please try again.\");\r\n e.printStackTrace(); //Tool used to handle exceptions and errors (gives the line number and class name where exception happened)\r\n }\r\n }",
"@Override\r\n\tpublic void Write_text(String CustomerCode, String Device, String Lot, String CP, File DataSorce,String FileName)\r\n\t\t\tthrows IOException {\n\t\tFile[] Filelist=DataSorce.listFiles();\r\n\t\tfor (int k = 0; k < Filelist.length; k++) {\t\t\t\t\t\r\n\t\t\tparseRawdata parseRawdata=new parseRawdata(Filelist[k]);\r\n\t\t\tLinkedHashMap<String, String> properties=parseRawdata.getProperties();\r\n\t\t\t\r\n\t\t\tString Wafer_ID_R=properties.get(\"Wafer ID\");\r\n\t\t\tString waferid=properties.get(\"Wafer ID\");\r\n\t\t\tString[][] MapCell_R=parseRawdata.getAllDiesDimensionalArray();\r\n\t\t\tString Flat_R=null;\r\n\t\t\tString notch=properties.get(\"Notch\");\r\n\t\t\tif (notch.equals(\"0-Degree\")) {\r\n\t\t\t\tFlat_R=\"Up\";\r\n\t\t\t}else if (notch.equals(\"90-Degree\")) {\r\n\t\t\t\tFlat_R=\"Right\";\r\n\t\t\t}else if (notch.equals(\"180-Degree\")) {\r\n\t\t\t\tFlat_R=\"Down\";\r\n\t\t\t}else {\r\n\t\t\t\tFlat_R=\"Left\";\r\n\t\t\t}\r\n\t\t\tInteger PassDie_R=Integer.parseInt(properties.get(\"Pass Die\"));\t\r\n\t\t\tInteger RightID_R=Integer.valueOf(properties.get(\"RightID\"));\r\n\t\t\tInteger Col_R=(Integer.parseInt(properties.get(\"Map Cols\"))) ;\r\n\t\t\tInteger Row_R=(Integer.parseInt(properties.get(\"Map Rows\")));\r\n\t\t\t\r\n\t\t\tMapCell_R=TurnNighteenDegree.turnNegativeNighteen(MapCell_R, Row_R, Col_R);\t\t\r\n\t\t\tInteger temp=Row_R;\r\n\t\t\tRow_R=Col_R;\r\n\t\t\tCol_R=temp;\r\n\t\t\t\r\n\t\t\tString FailDie_R=properties.get(\"Fail Die\");\r\n\t\t\tString FinalID=RightID_R.toString();\r\n\t\t\tString TestStartTime_R=properties.get(\"Test Start Time\");\r\n\t\t\tString Wafer_Load_Time_R=properties.get(\"Test Start Time\");\r\n\t\t\tTreeMap<Integer, Integer> Bin_Summary_R=parseRawdata.getBinSummary();\r\n\t\t\tString OPerater_R=properties.get(\"Operator\");\r\n\t\t\tString Yeild_R=properties.get(\"Wafer Yield\");\r\n\t\t\tString TestEndTime_R=properties.get(\"Test End Time\");\r\n\t\t\tInteger gross_die=Integer.parseInt(properties.get(\"Gross Die\"));\r\n\t\t\tString waferSize_R=properties.get(\"WF_Size\");\r\n\t\t\tString slotId=properties.get(\"Slot\");\r\n\t\t\tTextReportModel9TurnN90 model1=new TextReportModel9TurnN90();\r\n\t\t\tString VERSION=\"NA\";\r\n\t\t\tif (RightID_R<10) {\r\n\t\t\t\tFinalID=\"0\"+RightID_R.toString();\r\n\t\t\t}\r\n\t\t\tHashMap<String, String> NameMap=model1.InitMap(Lot, FinalID, CP, Wafer_Load_Time_R, Device, Wafer_ID_R, VERSION);\r\n\t\t\tSet<String> keyset1=NameMap.keySet();\r\n\t\t\tString FinalName=FileName;\r\n\t\t\tfor (String key : keyset1) {\r\n\t\t\t\tif (FinalName.contains(key)) {\r\n\t\t\t\t\tFinalName=FinalName.replace(key, NameMap.get(key));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tFile Result_Text=new File(reportBath+CustomerCode+\"/\"+Device+\"/\"+Lot+\"/\"+CP+\"/\"+FinalName);\r\n\r\n\t\t\tPrintWriter out=null;\r\n\t\t\ttry {\r\n\t\t\t\tout=new PrintWriter(new FileWriter(Result_Text));\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO: handle exception\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tout.print(\" \");\r\n\t\t\tfor(int i = 1;i<Col_R;i++)\r\n\t\t\t{\r\n\t\t\t\tif (i<10) {\r\n\t\t\t\t\tout.print(\" 0\"+i);\r\n\t\t\t\t}else\r\n\t\t\t\t{\r\n\t\t\t\t\tout.print(\" \"+i);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tout.print(\"\\r\\n\");\r\n\t\t\tout.print(\" \");\r\n\t\t\tfor(int i = 1;i<Col_R;i++)\r\n\t\t\t{\r\n\t\t\t\tout.print(\"++-\");\r\n\t\t\t}\r\n\t\t\tout.print(\"\\r\\n\");\r\n\t\t\tfor (int i = 0; i < Row_R; i++) {\r\n\t\t\t\tif (i<10) {\r\n\t\t\t\t\tout.print(\"00\"+i+\"|\");\r\n\t\t\t\t}else if (i>9&&i<100) {\r\n\t\t\t\t\tout.print(\"0\"+i+\"|\");\r\n\t\t\t\t}else {\r\n\t\t\t\t\tout.print(i+\"|\");\r\n\t\t\t\t}\r\n\t\t\t\tfor (int j = 0; j < Col_R; j++) {\r\n\t\t\t\t\tif (MapCell_R[i][j]==null) {\r\n\t\t\t\t\t\tout.print(String.format(\"%3s\",\" \"));\r\n\t\t\t\t\t}else if (MapCell_R[i][j].equals(\"S\")||MapCell_R[i][j].equals(\"M\")) {\r\n\t\t\t\t\t\tout.print(String.format(\"%3s\",\" \"));\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tif (Integer.valueOf(MapCell_R[i][j])>9) {\r\n\t\t\t\t\t\t\tout.print(String.format(\"%3s\", MapCell_R[i][j]));\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tout.print(String.format(\"%3s\", \"0\"+MapCell_R[i][j]));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tout.print(\"\\r\\n\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tout.print(\"============ Wafer Information () ===========\"+\"\\r\\n\");\r\n\t\t\tout.print(\" Device: \"+Device+\"\\r\\n\");\r\n\t\t\tout.print(\" Lot NO: \"+Lot+\"\\r\\n\");\r\n\t\t\tout.print(\" Slot No: \"+(slotId.length()==1?\"0\"+slotId:slotId)+\"\\r\\n\");\r\n\t\t\tout.print(\" Wafer ID: \"+waferid+\"\\r\\n\");\r\n\t\t\tout.print(\" Operater: \"+OPerater_R+\"\\r\\n\");\r\n\t\t\tout.print(\" Wafer Size: \"+waferSize_R+\" Inch\"+\"\\r\\n\");\r\n\t\t\tout.print(\" Flat Dir: \"+Flat_R+\"\\r\\n\");\r\n//\t\t\tif (Flat_R.equals(\"LEFT\")) {\r\n//\t\t\t\tout.print(\" Flat Dir: \"+270+\"-Degree\"+\"\\r\\n\");\r\n//\t\t\t}\r\n//\t\t\tif (Flat_R.equals(\"RIGHT\")) {\r\n//\t\t\t\tout.print(\" Flat Dir: \"+90+\"-Degree\"+\"\\r\\n\");\r\n//\t\t\t}\r\n//\t\t\tif (Flat_R.equals(\"UP\")) {\r\n//\t\t\t\tout.print(\" Flat Dir: \"+0+\"-Degree\"+\"\\r\\n\");\r\n//\t\t\t}\r\n//\t\t\tif (Flat_R.equals(\"DOWN\")) {\r\n//\t\t\t\tout.print(\" Flat Dir: \"+180+\"-Degree\"+\"\\r\\n\");\r\n//\t\t\t}\r\n\t\t\tout.print(\" Wafer Test Start Time: \"+TestStartTime_R+\"\\r\\n\");\r\n\t\t\tout.print(\" Wafer Test Finish Time: \"+TestEndTime_R+\"\\r\\n\");\r\n\t\t\tout.print(\" Wafer Load Time: \"+TestStartTime_R+\"\\r\\n\");\r\n\t\t\tout.print(\" Wafer Unload Time: \"+TestEndTime_R+\"\\r\\n\");\r\n\t\t\tout.print(\" Total test die: \"+gross_die+\"\\r\\n\");\r\n\t\t\tout.print(\" Pass Die: \"+PassDie_R+\"\\r\\n\");\r\n\t\t\tout.print(\" Fail Die: \"+FailDie_R+\"\\r\\n\");\r\n\t\t\tout.print(\" Yield: \"+Yeild_R+\"\\r\\n\");\r\n\t\t\tout.print(\"\\r\\n\");\r\n\t\t\tout.print(\"\\r\\n\");\r\n\t\t\tout.print(\" Bin (0~63) Data Deatil Summary\"+\"\\r\\n\");\r\n\t\t\tout.print(\"=======================================================================\"+\"\\r\\n\");\r\n\t\t \r\n\t\t\tString Bin_Sum=\"\";\r\n\t\t\tString Bin_yield_percent=\"\";\r\n\t\t\tfor (int i = 0; i < 64; i++) {\r\n\t\t\t\tString Every_Bininfor=\"\";\r\n\t\t\t\tInteger Sum=0;\r\n\t\t\t\tif (Bin_Summary_R.containsKey(i+1)) {\r\n\t\t\t\t\tSum=Bin_Summary_R.get(i+1);\r\n\t\t\t\t}\r\n\t\t\t\tfor(int j=0;j<5-(\"\"+Sum).length();j++)\r\n\t\t\t\t{\r\n\t\t\t\t\tEvery_Bininfor+=\"0\";\r\n\t\t\t\t}\r\n\t\t\t\tBin_Sum+=Every_Bininfor+Sum+\" | \";\r\n\t\t\t\tString percent=String.format(\"%.2f\", ((double)Sum*100/gross_die));\r\n\t\t\t\tif (percent.length()!=5) {\t\t\r\n\t\t\t\t\tpercent=\"0\"+percent;\r\n\t\t\t\t}\r\n\t\t\t\tBin_yield_percent+= percent+\"% | \";\r\n\t\t\t\t\r\n\t\t\t\tif ((i+1)>9) {\r\n\t\t\t\t\tout.print(\"Bin \"+(i+1)+\" | \");\r\n\t\t\t\t}else\r\n\t\t\t\t{\r\n\t\t\t\t\tout.print(\"Bin \"+(i+1)+\" | \");\r\n\t\t\t\t}\r\n\t\t\t\tif ((i+1)%8==0) {\r\n\t\t\t\r\n\t\t\t\t\tout.print(\"\\r\\n\");\t\t\r\n\t\t\t\t\tout.print(Bin_Sum);\r\n\t\t\t\t\tBin_Sum=\"\";\t\r\n\t\t\t\t\tout.print(\"\\r\\n\");\r\n\t\t\t\t\tout.print(Bin_yield_percent);\r\n\t\t\t\t\tBin_yield_percent=\"\";\r\n\t\t\t\t}\t\t\t\r\n\t\t\t\tif ((i+1)%8==0) {\r\n\t\t\t\t\tout.print(\"\\r\\n\");\r\n\t\t\t\t\tout.print(\"=======================================================================\"+\"\\r\\n\");\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t\tout.flush();\r\n\t\t\tout.close();\r\n\t\t\tFTP_Release(CustomerCode, Device, Lot, CP, Result_Text);\r\n\t\t}\r\n\r\n\t}",
"@Override\n public void readDataFromTxtFile()\n throws NumberFormatException, DepartmentCreationException, EmployeeCreationException {\n\n }",
"public interface IOData<T> {\n\t/**\n\t * An abstract method to write/overwrite class object data to text file.\n\t * \n\t * @param fileName The name of the file to write to.\n\t * @param overwrite To indicate whether to overwrite the file or to simply\n\t * append at the bottom of the text file.\n\t * @return boolean value to confirm if writing is successful.\n\t */\n\tpublic abstract boolean writeDataToFile(String fileName, boolean overwrite);\n\n\t/**\n\t * To read each line of data from the text file.\n\t * \n\t * @param fileLine To indicate which line of code to read from.\n\t * @return relevant information.\n\t */\n\tpublic abstract T readDataFile(String fileLine);\n}",
"private void createSaveData(){\n try {\n File f = new File(filePath, highScores);\n FileWriter output = new FileWriter(f);\n BufferedWriter writer = new BufferedWriter(output);\n\n writer.write(\"0-0-0-0-0\");\n writer.newLine();\n writer.write(\".....-.....-.....-.....-.....\");\n writer.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void formatFields() {\r\n\t}",
"public static void saveDataToFile() {\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy MM dd, HH mm\");\n Date date = new Date();\n String fileName= dateFormat.format(date)+\".txt\";\n\n try {\n PrintWriter writer = new PrintWriter(fileName, \"UTF-8\");\n writer.print(\"Wins: \");\n writer.println(wins);\n writer.print(\"Draws: \");\n writer.println(draws);\n writer.print(\"Losses: \");\n writer.println(loses);\n writer.close();\n System.out.println(\"File Write Successful\");\n } catch (IOException e) {\n\n }\n\n\n }",
"void format();",
"public static void textFile() throws IOException\n \t{ \n \t// Initialize the list\n \tArrayList<String[]> list = new ArrayList<String[]>();\n \t// Calling to random string generated by the randGenerator function! \n \tlist.add(new String[] {Datatostring});\n \t\t // File writer\n \tFileWriter Datawriter = new FileWriter(\"NumOUTPUT.txt\",true); // by adding true at the end is save to text file without overwriting older data\n \t\n \t\n \t// For loop for list data\n \tfor(String[] arr: list)\n \t{\n \t\tString appender = \"\";\n \t\tfor(String s : arr)\n \t\t{\n \t\tDatawriter.write(appender + s);\n \t\t\tappender = \",\";\n \t\t}\n \t\tDatawriter.flush();\n \t}\n \tDatawriter.close();\n }",
"private static Ms3Person convertDataToRequiredDataType(String[] personArray,int index) {\r\n\t\t\r\n\t\tString firstName = \"\", lastName = \"\", email = \"\", gender = \"\", urlLink = \"\", card = \"\", city = \"\";\r\n\t\tfloat charges = 0f;\r\n\t\tboolean h_column = false, i_column = false;\r\n\t\t\r\n\t\tboolean flag = false;\r\n\t\tint i = 0;\r\n\t\t//ignore the bad data if read\r\n\t\tif(personArray.length<2 || personArray.length >11)\r\n\t\t\treturn null;\r\n\t\t//iterate the person details & set details in PErson object\r\n\t\tfor (; i < personArray.length; i++) {\r\n\t\t\tString temp = personArray[i];\r\n\t\t\tif(temp.length()<=1)\r\n\t\t\t\treturn null;\r\n\t\t\t// if current string is empty or null\r\n\t\t\tif (temp == null || temp.length() <=1) {\r\n\t\t\t\t// contains bad data\r\n\t\t\t\t// so new file is to be created & append\r\n\t\t\t\treturn null;\r\n\t\t\t} else {\r\n\t\t\t\tif (i == 0) {\r\n\t\t\t\t\tfirstName = personArray[0];\r\n\t\t\t\t} else if (i == 1) {\r\n\t\t\t\t\tlastName = personArray[1];\r\n\t\t\t\t} else if (i == 2) {\r\n\t\t\t\t\temail = personArray[2];\r\n\t\t\t\t} else if (i == 3) {\r\n\t\t\t\t\tgender = personArray[3];\r\n\t\t\t\t} else if (i == 4) {//urllink contains comma in it we need to be careful for this\r\n\t\t\t\t\turlLink = personArray[4] + personArray[i + 1];\r\n\t\t\t\t\ti = 5;\r\n\t\t\t\t} else if (i == 6) {//card name\r\n\t\t\t\t\tcard = personArray[6];\r\n\t\t\t\t} else if (i == 7) {//// $0.02 we need to trim $ from it\r\n\t\t\t\t\t//few ccolumns contains empty data so we need to check that as well\r\n\t\t\t\t\tString stringCharge = personArray[7];\r\n\t\t\t\t\tstringCharge = stringCharge.substring(1);\r\n\t\t\t\t\t//parse String to double to take care of \r\n\t\t\t\t\t//exception\r\n\t\t\t\t\t//System.out.println(\"Cost: \"+stringCharge);\r\n\t\t\t\t\tcharges = (float)Double.parseDouble(stringCharge);\r\n\t\t\t\t} else if (i == 8) {//parse String to Boolean \r\n\t\t\t\t\th_column = Boolean.parseBoolean(personArray[8]);\r\n\t\t\t\t} else if (i == 9) {\r\n\t\t\t\t\ti_column = Boolean.parseBoolean(personArray[9]);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (i == 10)\r\n\t\t\t\t\t\tcity = personArray[10];\r\n \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t} // while loop ends\r\n\r\n\t\t//create object & initialise all data members\r\n\t\tMs3Person person = new Ms3Person(firstName, lastName, email, gender, urlLink, card, charges, h_column, i_column,\r\n\t\t\t\tcity);\r\n\t\tlineCount++;\r\n\t\t//know how many lines are being read\r\n\t\tSystem.out.println(person + \" lineNo: \" + lineCount);\r\n\t\treturn person;//return the PErson object\r\n \r\n\t}",
"private static void writeData(String file, String writable)\n\t\t\tthrows IOException {\n\t\tFileWriter fw = new FileWriter(FILE_PATH + file + \".txt\", true);\n\t\ttry {\n\t\t\tfw.write(getTime() + writable + \"\\t\");\n\t\t\tfw.write(System.lineSeparator());\n\t\t\tfw.close();\n\t\t} catch (Exception e) {\n\t\t\tfw.write(\"Error processing data: \" + e);\n\t\t}\n\t}",
"private void writeToFile() throws IOException {\n\t\tFileWriter write = new FileWriter(path);\n\t\tPrintWriter print_line = new PrintWriter(write);\n\t\t\n\t\tEnumeration<String> fd_key_Enum = fileData.keys();\n\t\tEnumeration<String> fd_value_Enum = fileData.elements();\n\t\twhile (fd_key_Enum.hasMoreElements() && fd_value_Enum.hasMoreElements()) {\n\t\t\tprint_line.printf(\"%s\" + \"%n\", fd_key_Enum.nextElement() + \":\" + fd_value_Enum.nextElement());\n\t\t}\n\t\t\n\t\tprint_line.close();\n\t\twrite.close();\n\t}",
"public static void makeText(double[] numbers){\r\n\t\tPrintWriter outStream = null;\r\n\t\ttry {\r\n\t\t\toutStream = new PrintWriter(new FileOutputStream(\"textFile.txt\"));\r\n\t\t} catch(FileNotFoundException e){\r\n\t\t\tSystem.out.println(\"Error opening the file\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\tfor (double x : AvgAndStanDev.tehNumbs){\r\n\t\t\toutStream.println(x);\r\n\t\t}\r\n\t\tSystem.out.println(\"Text File Created\");\r\n\t\toutStream.close();\t\t//Important to close so that we can re-open later\r\n\t}",
"@Override\n public void makeOutPutData(File file) {\n\n prepareHtmlDataList();\n\n PrintWriter pw = null;\n int cnt = 0;\n\n try {\n pw = new PrintWriter(new FileOutputStream(file, true));\n\n pw.println(\"******************** MainData info ********************\");\n pw.println(\"startLoggingTime : \"\n + ALTHelper\n .DateToString(ALTHelper\n .getTimeStartedBefore(1000)));\n pw.println(\"endLoggingTime : \"\n + ALTHelper\n .DateToString(ALTHelper\n .getTimeLaunched()));\n\n pw.println(\"\");\n\n pw.println(\"******************** Launched info ********************\");\n\n // should implement\n\n pw.println(\"\");\n\n pw.println(\"******************** gc info (top5) sorted by total_time ********************\");\n\n // -----------------------\n\n pw.println(String.format(\"%-20s\", \"time\")\n + String.format(\"%-10s\", \"PID\")\n + String.format(\"%-15s\", \"GC_cause\")\n + String.format(\"%-12s\", \"freedObject\")\n + String.format(\"%-10s\", \"freedByte\")\n + String.format(\"%-13s\", \"freedLObject\")\n + String.format(\"%-11s\", \"freedLByte\")\n + String.format(\"%-13s\", \"percent_free\")\n + String.format(\"%-18s\", \"current_heap_size\")\n + String.format(\"%-13s\", \"total_memory\")\n + String.format(\"%-11s\", \"pause_time\")\n + String.format(\"%-11s\", \"Total_time\"));\n\n ArrayList<GCData> totalTimeList = (ArrayList<GCData>)getGCDataList()\n .clone();\n Collections.sort(totalTimeList, new GCDataComparator(\n GCDataComparator.DataSortType.TOTAL_TIME));\n\n for (GCData gc : totalTimeList) {\n\n if (cnt >= 5)\n break;\n\n pw.println(String.format(\"%-20s\",\n ALTHelper.DateToString(gc.valutOfdate))\n + String.format(\"%-10s\", gc.PID)\n + String.format(\"%-15s\", gc.GC_cause)\n + String.format(\"%-12s\", gc.freedObject)\n + String.format(\"%-10s\", gc.freedByte)\n + String.format(\"%-13s\", gc.freedLObject)\n + String.format(\"%-11s\", gc.freedLByte)\n + String.format(\"%-13s\", gc.percent_free)\n + String.format(\"%-18s\", gc.current_heap_size)\n + String.format(\"%-13s\", gc.total_memory)\n + String.format(\"%-11s\", gc.pause_time)\n + String.format(\"%-11s\", gc.Total_time));\n cnt++;\n }\n\n pw.println(\"\");\n\n // -----------------------\n\n pw.println(\"******************** gc info sorted by date ********************\");\n\n pw.println(String.format(\"GC Total count : %5s\", getGCDataList()\n .size() + \" times\"));\n\n pw.println(String.format(\"%-20s\", \"time\")\n + String.format(\"%-10s\", \"processName\")\n + String.format(\"%-15s\", \"GC_cause\")\n + String.format(\"%-12s\", \"freedObject\")\n + String.format(\"%-10s\", \"freedByte\")\n + String.format(\"%-13s\", \"freedLObject\")\n + String.format(\"%-11s\", \"freedLByte\")\n + String.format(\"%-13s\", \"percent_free\")\n + String.format(\"%-18s\", \"current_heap_size\")\n + String.format(\"%-13s\", \"total_memory\")\n + String.format(\"%-11s\", \"pause_time\")\n + String.format(\"%-11s\", \"Total_time\"));\n\n for (GCData gc : getGCDataList()) {\n pw.println(String.format(\"%-20s\",\n ALTHelper.DateToString(gc.valutOfdate))\n + String.format(\"%-10s\", gc.PID)\n + String.format(\"%-15s\", gc.GC_cause)\n + String.format(\"%-12s\", gc.freedObject)\n + String.format(\"%-10s\", gc.freedByte)\n + String.format(\"%-13s\", gc.freedLObject)\n + String.format(\"%-11s\", gc.freedLByte)\n + String.format(\"%-13s\", gc.percent_free)\n + String.format(\"%-18s\", gc.current_heap_size)\n + String.format(\"%-13s\", gc.total_memory)\n + String.format(\"%-11s\", gc.pause_time)\n + String.format(\"%-11s\", gc.Total_time));\n }\n pw.println(\"\");\n\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } finally {\n if (pw != null)\n pw.close();\n }\n }",
"protected void writeChartDataToFile(FileWriter jOut) throws IOException {\n try {\n\n Object[][] p_oTableData; \n int iSp, iRow, iCol;//Write a header label\n \n jOut.write(\"Volume by DBH size class (m3 / ha). MAI is mean annual increment of total volume. \");\n if (m_bIncludeLive && m_bIncludeSnags)\n jOut.write(\"Showing live trees + snags\\n\");\n else if (m_bIncludeLive)\n jOut.write(\"Showing live trees only\\n\");\n else if (m_bIncludeSnags)\n jOut.write(\"Showing snags only\\n\");\n else\n jOut.write(\"Showing no trees\\n\");\n\n for (iSp = 0; iSp <= m_iNumSpecies; iSp++) {\n\n p_oTableData = createTable(iSp);\n \n //Write the species\n if (iSp < m_iNumSpecies) {\n jOut.write(m_oLegend.getSpeciesDisplayName(iSp) + \"\\n\");\n } else {\n jOut.write(\"All Species\\n\");\n }\n\n //Write the header row\n jOut.write(mp_sHeaders[0]);\n for (iCol = 1; iCol < mp_sHeaders.length; iCol++) {\n jOut.write(\"\\t\" + mp_sHeaders[iCol]);\n }\n jOut.write(\"\\n\"); \n\n //Write the data\n for (iRow = 0; iRow < p_oTableData.length; iRow++) {\n jOut.write(String.valueOf(p_oTableData[iRow][0]));\n for (iCol = 1; iCol < p_oTableData[iRow].length; iCol++) {\n jOut.write(\"\\t\" + String.valueOf(p_oTableData[iRow][iCol]));\n }\n jOut.write(\"\\n\");\n }\n jOut.write(\"\\n\");\n }\n }\n catch (sortie.data.simpletypes.ModelException oErr) {;}\n }",
"private void save(List<String[]> data, Integer numFichier, String nomFichier) throws IOException {\n FileWriter fileWriter = null;\n CSVWriter cSVWriter2 = null;\n //-------------------------------------------------------------\n // Construction du nom de fichier\n //-------------------------------------------------------------\n\n\n// String nomFichier = constructionNomFichier(flux);\n\n// // Mini rappel sur les ternaire en java : variable = (condition) ? valeur_si_vrai : valeur_si_faux; \n// String pays = (flux.getJournalLie() != null && flux.getJournalLie().getPays() != null && !flux.getJournalLie().getPays().isEmpty()) ? flux.getJournalLie().getPays() : \"XX\";\n// String ville = (flux.getJournalLie() != null && flux.getJournalLie().getCodeVille() != null && !flux.getJournalLie().getCodeVille().isEmpty()) ? flux.getJournalLie().getCodeVille() : \"XX\";\n// String langue = (flux.getJournalLie() != null && flux.getJournalLie().getLangue() != null && !flux.getJournalLie().getLangue().isEmpty()) ? flux.getJournalLie().getLangue() : \"XX\";\n// String codeJournal = (flux.getJournalLie() != null && flux.getJournalLie().getCodeJournal() != null && !flux.getJournalLie().getCodeJournal().isEmpty()) ? flux.getJournalLie().getCodeJournal() : \"XX\";\n// String codeTypeFlux = (flux.getTypeFlux() != null && flux.getTypeFlux().getCodeType() != null && !flux.getTypeFlux().getCodeType().isEmpty()) ? flux.getTypeFlux().getCodeType() : \"XXX\";\n//\n// nomFichier = langue + \"_\" + pays + \"_\" + codeJournal + \"_\" + codeTypeFlux;\n\n //--------------------------------------------------------------------------------\n // Enregistrement \n //--------------------------------------------------------------------------------\n try {\n fileWriter = new FileWriter(exportPath + nomFichier + \"__F__\" + numFichier.toString() + \".csv\");\n\n if (escapebySlash) {\n cSVWriter2 = new CSVWriter(fileWriter, '\\t', '\"', '\\\\');\n } else {\n cSVWriter2 = new CSVWriter(fileWriter, '\\t', '\"');\n }\n\n cSVWriter2.writeAll(data);\n\n\n } catch (Exception e) {\n logger.debug(\"Erreur lors de l'enregistrement\");\n } finally {\n if (cSVWriter2 != null) {\n try {\n cSVWriter2.close();\n } catch (Exception e) {\n }\n }\n\n if (fileWriter != null) {\n try {\n fileWriter.close();\n } catch (Exception e) {\n }\n }\n }\n\n data.clear(); // On purge le fichier data\n //---------------------------------------------------------------------------\n // Assemblage \n //---------------------------------------------------------------------------\n // Si ce n'est pas le premier fichier. Il faut réassembler\n// if (numFichier != 0) {\n// File f1 = new File(exportPath + nomFichier + \"__F__0.csv\");\n// File fCurrent = new File(exportPath + nomFichier + \"__F__\" + numFichier.toString() + \".csv\");\n// \n// String content = FileUtils.readFileToString(fCurrent);\n// FileUtils.write(f1, content, true);\n// \n// fCurrent.delete();\n// }\n }",
"private void writeData(Employee[] employees, DataOutput out) throws IOException {\n // write number of employees\n out.writeInt(employees.length);\n\n for (Employee e : employees) {\n out.writeInt(e.getName().length());\n out.writeChars(e.getName());\n out.writeInt(e.getHireDay().toString().length());\n out.writeChars(e.getHireDay().toString());\n out.writeDouble(e.getSalary());\n }\n }",
"public static void main(String[] args) throws Exception{\n\t\tFile file=new File(\"file.txt\");\n\t\tFileOutputStream fos=new FileOutputStream(file);\n\t\tDataOutputStream dos=new DataOutputStream(fos);\n\t\tdos.writeInt(1);\n\t\tdos.writeUTF(\"ABC\");\n\t\tdos.writeDouble(12009);\n\t\tdos.writeInt(2);\n\t\tdos.writeUTF(\"DEF\");\n\t\tdos.writeDouble(1780082);\n\t\tdos.writeInt(3);\n\t\tdos.writeUTF(\"GHI\");\n\t\tdos.writeDouble(21316);\n\t\tdos.flush();\n\t\tfos.flush();\n\t\tdos.close();\n\t\tfos.close();\n\t}",
"void formatContactInformation(String fileName);",
"@Override\n public void write(DataAdaptor snkData) {\n \n DataAdaptor daptDev = snkData.createChild( this.dataLabel() );\n daptDev.setValue(STR_ATTR_TYPID, this.strTypId);\n daptDev.setValue(STR_ATTR_DEVID, this.strDevId);\n daptDev.setValue(STR_ATTR_FMTVER, LNG_VAL_FMTVER);\n \n this.cfgDevice.write(daptDev);\n \n this.datRaw.write(daptDev);\n this.datFit.write(daptDev);\n \n this.sigFitAttrs.write(daptDev);\n }",
"private String convertDataToString(List<DataFormat> trainData) {\n return trainData\n .stream()\n .map(d -> convertBooleanToInteger(d.getValue()) + \" \" +\n convertPredicateListToString(d.getPredicateList()) + System.lineSeparator())\n .collect(Collectors.joining());\n }",
"public void writeData(IOService fileIO) {\n if (fileIO.equals(IOService.CONSOLE_IO)) {\n System.out.println(employeePayrollDataList);\n } else if (fileIO.equals(IOService.FILE_IO)) {\n new EmployeePayrollFileIOService().writeDataToFile(employeePayrollDataList);\n }\n }",
"public void convert(File inputFile, File outputFile) throws IOException {\n\n setType(inputFile);\n\n BufferedReader reader = null;\n PrintWriter writer = null;\n\n try {\n reader = new BufferedReader(new FileReader(inputFile));\n writer = new PrintWriter(new BufferedWriter(new FileWriter(outputFile)));\n\n String nextLine = null;\n\n // Skip meta data. Note for GCT files this includes the mandatory first line\n while ((nextLine = reader.readLine()).startsWith(\"#\") && (nextLine != null)) {\n writer.println(nextLine);\n }\n\n // This is the first non-meta line\n writer.println(nextLine);\n\n // for TAB and RES files the first row contains the column headings.\n int nCols = 0;\n if (type == FileType.TAB || type == FileType.RES) {\n nCols = nextLine.split(\"\\t\").length;\n }\n\n\n if (type == FileType.GCT) {\n // GCT files. Column headings are 3rd row (read next line)\n nextLine = reader.readLine();\n nCols = nextLine.split(\"\\t\").length;\n writer.println(nextLine);\n } else if (type == FileType.RES) {\n // Res files -- skip lines 2 and 3\n writer.println(reader.readLine());\n writer.println(reader.readLine());\n }\n\n\n // Compute the # of data points\n int columnSkip = 1;\n if (type == FileType.RES) {\n columnSkip = 2;\n nCols++; // <= last call column of a res file is sometimes blank, if not this will get\n }\n nPts = (nCols - dataStartColumn) / columnSkip;\n\n // Now for the data\n while ((nextLine = reader.readLine()) != null) {\n String[] tokens = nextLine.split(\"\\t\");\n\n for (int i = 0; i < dataStartColumn; i++) {\n writer.print(tokens[i] + \"\\t\");\n }\n\n DataRow row = new DataRow(tokens, nextLine);\n for (int i = 0; i < nPts; i++) {\n\n if (Double.isNaN(row.scaledData[i])) {\n writer.print(\"\\t\");\n } else {\n\n writer.print(row.scaledData[i]);\n if (type == FileType.RES) {\n writer.print(\"\\t\" + row.calls[i]);\n }\n if (i < nPts - 1) {\n writer.print(\"\\t\");\n }\n }\n }\n writer.println();\n }\n }\n finally {\n if (reader != null) {\n reader.close();\n }\n if (writer != null) {\n writer.close();\n }\n }\n }",
"public static void writeToStringToFile(Player p)\r\n {\r\n try \r\n { \r\n //Create file \r\n PrintWriter fileOutput = new PrintWriter(new FileWriter(\"playersData.txt\", true), true); \r\n\r\n //Write data from given ArrayList to the file \r\n fileOutput.println(p);\r\n\r\n //Close file\r\n fileOutput.close();\r\n } \r\n catch (IOException ioException) \r\n { \r\n //Output error message \r\n System.out.println(\"Error: The file cannot be created\"); \r\n }//end try \r\n }",
"public void writeFile()\n\t{\n\t\t//Printwriter object\n\t\tPrintWriter writer = FileUtils.openToWrite(\"TobaccoUse.txt\");\n\t\twriter.print(\"Year, State, Abbreviation, Percentage of Tobacco Use\\n\");\n\t\tfor(int i = 0; i < tobacco.size(); i++)\n\t\t{\n\t\t\tStateTobacco state = tobacco.get(i);\n\t\t\tString name = state.getState();\n\t\t\tString abbr = state.getAbbreviation();\n\t\t\tdouble percent = state.getPercentUse();\n\t\t\tint year = state.getYear();\n\t\t\twriter.print(\"\"+ year + \", \" + name + \", \" + abbr + \", \" + percent + \"\\n\");\n\t\t} \n\t\twriter.close(); //closes printwriter object\n\t}",
"@Override\n public void writeFile(String arg0, Map result) {\n\n // Initial variables\n ArrayList<HashMap> records;\n ArrayList<HashMap> recordT;\n ArrayList<HashMap> observeRecords; // Array of data holder for time series data\n BufferedWriter bwT; // output object\n StringBuilder sbData = new StringBuilder(); // construct the data info in the output\n HashMap<String, String> altTitleList = new HashMap(); // Define alternative fields for the necessary observation data fields; key is necessary field\n // P.S. Add alternative fields here\n HashMap titleOutput; // contain output data field id\n DssatObservedData obvDataList = DssatObservedData.INSTANCE; // Varibale list definition\n\n try {\n\n // Set default value for missing data\n setDefVal();\n\n // Get Data from input holder\n Object tmpData = getObjectOr(result, \"observed\", new Object());\n if (tmpData instanceof ArrayList) {\n records = (ArrayList) tmpData;\n } else if (tmpData instanceof HashMap) {\n records = new ArrayList();\n records.add((HashMap) tmpData);\n } else {\n return;\n }\n if (records.isEmpty()) {\n return;\n }\n\n observeRecords = new ArrayList();\n for (HashMap record : records) {\n recordT = getObjectOr(record, \"timeSeries\", new ArrayList());\n String trno = getValueOr(record, \"trno\", \"1\");\n if (!recordT.isEmpty()) {\n String[] sortIds = {\"date\"};\n Collections.sort(recordT, new DssatSortHelper(sortIds));\n for (HashMap recordT1 : recordT) {\n recordT1.put(\"trno\", trno);\n }\n observeRecords.addAll(recordT);\n }\n }\n\n // Initial BufferedWriter\n String fileName = getFileName(result, \"T\");\n if (fileName.endsWith(\".XXT\")) {\n String crid = DssatCRIDHelper.get2BitCrid(getValueOr(result, \"crid\", \"XX\"));\n fileName = fileName.replaceAll(\"XX\", crid);\n }\n arg0 = revisePath(arg0);\n outputFile = new File(arg0 + fileName);\n bwT = new BufferedWriter(new FileWriter(outputFile));\n\n // Output Observation File\n // Titel Section\n sbError.append(String.format(\"*EXP.DATA (T): %1$-10s %2$s\\r\\n\\r\\n\",\n fileName.replaceAll(\"\\\\.\", \"\").replaceAll(\"T$\", \"\"),\n getObjectOr(result, \"local_name\", defValBlank)));\n\n titleOutput = new HashMap();\n // TODO get title for output\n // Loop all records to find out all the titles\n for (HashMap record : observeRecords) {\n // Check if which field is available\n for (Object key : record.keySet()) {\n // check which optional data is exist, if not, remove from map\n if (obvDataList.isTimeSeriesData(key)) {\n titleOutput.put(key, key);\n\n } // check if the additional data is too long to output\n else if (key.toString().length() <= 5) {\n if (!key.equals(\"date\") && !key.equals(\"trno\")) {\n titleOutput.put(key, key);\n }\n\n } // If it is too long for DSSAT, give a warning message\n else {\n sbError.append(\"! Waring: Unsuitable data for DSSAT observed data (too long): [\").append(key).append(\"]\\r\\n\");\n }\n }\n // Check if all necessary field is available // P.S. conrently unuseful\n for (String title : altTitleList.keySet()) {\n\n // check which optional data is exist, if not, remove from map\n if (getValueOr(record, title, \"\").equals(\"\")) {\n\n if (!getValueOr(record, altTitleList.get(title), \"\").equals(\"\")) {\n titleOutput.put(title, altTitleList.get(title));\n } else {\n sbError.append(\"! Waring: Incompleted record because missing data : [\").append(title).append(\"]\\r\\n\");\n }\n\n } else {\n }\n }\n }\n\n // decompress observed data\n// decompressData(observeRecords);\n // Observation Data Section\n Object[] titleOutputId = titleOutput.keySet().toArray();\n Arrays.sort(titleOutputId);\n String pdate = getPdate(result);\n for (int i = 0; i < (titleOutputId.length / 39 + titleOutputId.length % 39 == 0 ? 0 : 1); i++) {\n\n sbData.append(\"@TRNO DATE\");\n int limit = Math.min(titleOutputId.length, (i + 1) * 39);\n for (int j = i * 39; j < limit; j++) {\n sbData.append(String.format(\"%1$6s\", titleOutput.get(titleOutputId[j]).toString().toUpperCase()));\n }\n sbData.append(\"\\r\\n\");\n\n for (HashMap record : observeRecords) {\n \n if (record.keySet().size() <= 2 && record.containsKey(\"trno\") && record.containsKey(\"date\")) {\n continue;\n }\n sbData.append(String.format(\" %1$5s\", getValueOr(record, \"trno\", \"1\")));\n sbData.append(String.format(\" %1$5s\", formatDateStr(getObjectOr(record, \"date\", defValI))));\n for (int k = i * 39; k < limit; k++) {\n\n if (obvDataList.isDapDateType(titleOutputId[k], titleOutput.get(titleOutputId[k]))) {\n sbData.append(String.format(\"%1$6s\", formatDateStr(pdate, getObjectOr(record, titleOutput.get(titleOutputId[k]).toString(), defValI))));\n } else if (obvDataList.isDateType(titleOutputId[k])) {\n sbData.append(String.format(\"%1$6s\", formatDateStr(getObjectOr(record, titleOutput.get(titleOutputId[k]).toString(), defValI))));\n } else {\n sbData.append(\" \").append(formatNumStr(5, record, titleOutput.get(titleOutputId[k]), defValI));\n }\n\n }\n sbData.append(\"\\r\\n\");\n }\n }\n // Add section deviding line\n sbData.append(\"\\r\\n\");\n\n // Output finish\n bwT.write(sbError.toString());\n bwT.write(sbData.toString());\n bwT.close();\n } catch (IOException e) {\n LOG.error(DssatCommonOutput.getStackTrace(e));\n }\n }",
"public final void writeText(String[] data) {\n myRow.setText(data);\n writeRow(myRow);\n }",
"public static boolean writeToTextFile(String fname, //write to txt file - \n\t\t\t ArrayList<Cats> datapulled) {\n\t\t\t try {\n PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(fname)));\n\t\t\t for (Cats m: datapulled) {\n\t\t\t pw.println(m);\n\t\t\t }\n\t\t\t pw.close();\n\t\t\t return true;\n\t\t\t } catch (Exception ex) {\n\t\t\t return false;\n\t\t\t }\n\t\t\t }",
"private void writeTextFile(\r\n\t\t\tGDMSMain theMainHomePage,\r\n\t\t\tArrayList<QtlDetailElement> listOfAllQTLDetails, HashMap<Integer, String> hmOfQtlPosition, HashMap<String, Integer> hmOfQtlNameId,\r\n\t\t\tHashMap<Integer, String> hmOfQtlIdandName, String strSelectedExportType, boolean bQTLExists) throws GDMSException {\n\t\t\r\n\t\t\r\n\t\tString strFlapjackTextFile = \"Flapjack\";\r\n\t\tFile baseDirectory = theMainHomePage.getMainWindow().getApplication().getContext().getBaseDirectory();\r\n\t\tFile absoluteFile = baseDirectory.getAbsoluteFile();\r\n\r\n\t\tFile[] listFiles = absoluteFile.listFiles();\r\n\t\tFile fileExport = baseDirectory;\r\n\t\tfor (File file : listFiles) {\r\n\t\t\tif(file.getAbsolutePath().endsWith(\"Flapjack\")) {\r\n\t\t\t\tfileExport = file;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tString strFilePath = fileExport.getAbsolutePath();\r\n\t\t//System.out.println(\"strFilePath=:\"+strFilePath);\r\n\t\tgeneratedTextFile = new File(strFilePath + \"\\\\\" + strFlapjackTextFile + \".txt\");\r\n\r\n\t\t/**\twriting tab delimited qtl file for FlapJack \r\n\t\t * \tconsisting of marker chromosome & position\r\n\t\t * \r\n\t\t * **/\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t//factory = new ManagerFactory(GDMSModel.getGDMSModel().getLocalParams(), GDMSModel.getGDMSModel().getCentralParams());\r\n\t\t\tfactory=GDMSModel.getGDMSModel().getManagerFactory();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tOntologyDataManager ontManager=factory.getOntologyDataManager();\r\n\t\t\t*/\r\n\t\t\tFileWriter flapjackTextWriter = new FileWriter(generatedTextFile);\r\n\t\t\tBufferedWriter flapjackBufferedWriter = new BufferedWriter(flapjackTextWriter);\r\n\t\t\t//getAllelicValuesByGidsAndMarkerNames\r\n\t\t\t//genoManager.getAlle\r\n\t\t\t//\t\t\t fjackQTL.write(\"QTL\\tChromosome\\tPosition\\tMinimum\\tMaximum\\tTrait\\tExperiment\\tTrait Group\\tLOD\\tR2\\tFlanking markers in original publication\");\r\n\t\t\tflapjackBufferedWriter.write(\"QTL\\tChromosome\\tPosition\\tMinimum\\tMaximum\\tTrait\\tExperiment\\tTrait Group\\tLOD\\tR2\\tFlanking markers in original publication\\teffect\");\r\n\t\t\tflapjackBufferedWriter.write(\"\\n\");\r\n\t\t\tfor (int i = 0 ; i < listOfAllQTLDetails.size(); i++){\r\n\t\t\t\t//System.out.println(listOfAllQTLDetails.get(i));\r\n\t\t\t\tQtlDetailElement qtlDetails = listOfAllQTLDetails.get(i);\r\n\t\t\t\t\r\n\t\t\t\t/*QtlDetailsPK id = qtlDetails.getQtlName().get.getId();\r\n\t\t\t\tInteger qtlId = id.getQtlId();*/\r\n\t\t\t\t//String strQtlName = hmOfQtlIdandName.get(qtlId);\r\n\t\t\t\tString strQtlName =qtlDetails.getQtlName();\r\n\t\t\t\tint qtlId=hmOfQtlNameId.get(strQtlName);\r\n\t\t\t\t//qtlDetails.get\r\n\t\t\t\t//Float clen = qtlDetails.getClen();\r\n\t\t\t\t//Float fEffect = qtlDetails.getEffect();\r\n\t\t\t\tint fEffect = qtlDetails.getEffect();\r\n\t\t\t\tFloat fMaxPosition = qtlDetails.getMaxPosition();\r\n\t\t\t\tFloat fMinPosition = qtlDetails.getMinPosition();\r\n\t\t\t\t//Float fPosition = qtlDetails.getPosition();\r\n\t\t\t\tString fPosition = hmOfQtlPosition.get(qtlId);\r\n\t\t\t\tFloat frSquare = qtlDetails.getRSquare();\r\n\t\t\t\tFloat fScoreValue = qtlDetails.getScoreValue();\r\n\t\t\t\tString strExperiment = qtlDetails.getExperiment();\r\n\t\t\t\t//String strHvAllele = qtlDetails..getHvAllele();\r\n\t\t\t\t//String strHvParent = qtlDetails.getHvParent();\r\n\t\t\t\t//String strInteractions = qtlDetails.getInteractions();\r\n\t\t\t\tString strLeftFlankingMarker = qtlDetails.getLeftFlankingMarker();\r\n\t\t\t\tString strLinkageGroup = qtlDetails.getChromosome();\r\n\t\t\t\t//String strLvAllele = qtlDetails.getLvAllele();\r\n\t\t\t\t//String strLvParent = qtlDetails.getLvParent();\r\n\t\t\t\tString strRightFM = qtlDetails.getRightFlankingMarker();\r\n\t\t\t\t//String strSeAdditive = qtlDetails.getSeAdditive();\r\n\t\t\t\t\r\n\t\t\t\t//String strTrait = qtlDetails.getTrait();\r\n\t\t\t\tString strTrait = qtlDetails.getTRName();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tflapjackBufferedWriter.write(strQtlName + \"\\t\" + strLinkageGroup + \"\\t\" + fPosition + \"\\t\" + fMinPosition + \"\\t\" + fMaxPosition + \"\\t\" +\r\n\t\t\t\t\t\tstrTrait + \"\\t\" + strExperiment + \"\\t \\t\" + fScoreValue + \"\\t\" + frSquare+\r\n\t \"\\t\" + strLeftFlankingMarker+\"/\"+strRightFM + \"\\t\" + fEffect);\r\n\t\t\t\t\r\n\t\t\t\tflapjackBufferedWriter.write(\"\\n\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tflapjackBufferedWriter.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new GDMSException(e.getMessage());\r\n\t\t} \r\n\t\t\r\n\t}",
"private String createStandardGZFieldTexts()\n\t{\n\t\tStringBuffer result = new StringBuffer();\n\t\tfor (Entry<String, String[]> entry : standardJournalFieldColumns.entrySet())\n\t\t{\n\t\t\tif (result.length() != 0)\n\t\t\t{\n\t\t\t\tresult.append(\", \");\n\t\t\t}\n\t\t\tresult.append(entry.getKey());\n\t\t\tresult.append(\" TEXT IS '\");\n\t\t\tString[] strings = entry.getValue();\n\t\t\tfor (int index = 0; index < strings.length; index++)\n\t\t\t{\n\t\t\t\tresult.append(strings[index]);\n\t\t\t\tif (index < strings.length)\n\t\t\t\t{\n\t\t\t\t\tresult.append(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tresult.append(\"'\");\n\t\t}\n\t\treturn result.toString();\n\t}",
"private void writeDeviceInfo() {\n StringBuffer text = new StringBuffer(getDeviceReport());\n dataWriter.writeTextData(text, \"info.txt\");\n }",
"public String writeFileUnderGrad(String fileName) {\n Formatter f = new Formatter();//Use Formatter\r\n f.format(\"%s (%d, %s, %s)%n\", super.getStudentName(), super.getStudentNumber(), super.getStudentSex(), super.getStudentDOB());//Format Student Output\r\n //System.out.println(f);\r\n BufferedWriter out = null; //BufferedWriter\r\n PrintWriter out1 = null; //Use PrintWriter\r\n //Try and Catch method to create the txt file, flush and close\r\n try {\r\n\r\n out = new BufferedWriter(new FileWriter(fileName, true));\r\n out1 = new PrintWriter(out);\r\n out1.write(f.toString());\r\n out1.flush();//Flush text file\r\n } catch (IOException e) {\r\n System.out.println(\"Exception \");\r\n } finally {\r\n try {\r\n out.close();\r\n out1.close();\r\n } catch (IOException ex) {\r\n Logger.getLogger(UnderGraduate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n return \"\";\r\n\r\n }",
"public static String exportFieldData(Hashtable data, String delimiter, DateFormat df, NumberFormat numberFormat) {\r\n\r\n // format : key1 + delimiter + value1 + delimiter + key2 + delimiter +\r\n // value2 + delimiter + ... + keyN + delimiter + valueN\r\n if (data == null) {\r\n throw new IllegalArgumentException(\"exportFieldData: data is null\");\r\n }\r\n\r\n StringBuilder res = new StringBuilder();\r\n\r\n Object[] keys = data.keySet().toArray();\r\n for (int i = 0; i < keys.length; i++) {\r\n Object key = keys[i];\r\n res.append(key);\r\n res.append(delimiter);\r\n if (data.get(key) instanceof Vector) {\r\n if (((Vector) data.get(key)).get(0) != null) {\r\n Object currentData = ((Vector) data.get(key)).get(0);\r\n if ((df != null) && (currentData instanceof Date)) {\r\n res.append(df.format(currentData));\r\n } else {\r\n res.append(currentData.toString());\r\n }\r\n\r\n } else {\r\n res.append(\" \");\r\n }\r\n } else {\r\n if ((df != null) && (data.get(key) instanceof Date)) {\r\n res.append(df.format(data.get(key)));\r\n } else if (data.get(key) instanceof Number) {\r\n res.append(AbstractTemplateGenerator.parseNumber((Number) data.get(key), numberFormat));\r\n } else {\r\n res.append(data.get(key).toString());\r\n }\r\n\r\n }\r\n if (i < (keys.length - 1)) {\r\n res.append(delimiter);\r\n }\r\n }\r\n return res.toString();\r\n }",
"public void writeFile(String data){\n\t\t\n\t\tcurrentLine = data;\n\t\t\n\t\t\ttry{ \n\t\t\t\tFile file = new File(\"/Users/bpfruin/Documents/CSPP51036/hw3-bpfruin/src/phfmm/output.txt\");\n \n\t\t\t\t//if file doesnt exists, then create it\n\t\t\t\tif(!file.exists()){\n\t\t\t\t\tfile.createNewFile();\n\t\t\t\t}\n \n\t\t\t\t//true = append file\n\t\t\t\tFileWriter fileWriter = new FileWriter(file,true);\n \t \tBufferedWriter bufferWriter = new BufferedWriter(fileWriter);\n \t \tbufferWriter.write(data);\n \t \tbufferWriter.close();\n \n \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}",
"public void recordOrder(){ \n PrintWriter output = null;\n try{\n output = \n new PrintWriter(new FileOutputStream(\"record.txt\", true));\n }\n catch(Exception e){\n System.out.println(\"File not found\");\n System.exit(0);\n }\n output.println(Tea);//writes into the file contents of String Tea\n output.close();//closes file\n }",
"public String convertToSaveFormat() {\n String dataStr = \"\";\n if (USER_TASKS.size() == 0) {\n return dataStr;\n }\n for (int i = 0; i < USER_TASKS.size() - 1; i++) {\n Task data = USER_TASKS.get(i);\n dataStr += data.convertToSaveFormat() + \"\\n\";\n }\n dataStr += USER_TASKS.get(USER_TASKS.size() - 1).convertToSaveFormat();\n return dataStr;\n }",
"public String toFileFormat()\n\t{\n\t\t\n\t\treturn startx + \" \" + starty + \"; \" + endx + \" \" + endy + \"; \"+ texture + \";\\r\\n\";\n\t\t\n\t}",
"private void writeData(String data) throws IOException\n {\n this.writer.println(data);\n this.writer.flush();\n }",
"static void writeTimeCSV(String data_structure){\n\n try {\n\n // Getting current directory\n String path = System.getProperty(\"user.dir\");\n // Initializing data directory\n String dataPath = path + \"/Data/\";\n // Initializing CSV directory \n String csvPath = path + \"/CSV/\";\n\n // Creating filename with given data structure\n String filename = String.format(\"%s.csv\",data_structure);\n\n // Initializing FileWrite object \n FileWriter write = new FileWriter(csvPath + filename);\n\n // Initializing header string for csv file\n String header = \"Total_Word_Count,t\\n\";\n write.append(header);\n\n // Initializing counter object\n WordCounter2 counter = new WordCounter2(data_structure);\n\n // Creating data format string\n String dataFormat = \"%s,%s\\n\";\n\n // Getting data directory\n File dataDirectory = new File(dataPath);\n\n // Going through each file in the directory\n for (File data : dataDirectory.listFiles()) {\n \n // getting the data file's name\n String name = data.getAbsolutePath();\n\n // Initializing arraylist of words\n ArrayList<String> words = counter.readWords(name);\n\n // Getting the average amount of time taken to create a word map\n // Converted to ms \n double t = averageTime(counter, words);\n\n // Getting the total number of words\n int total = counter.getTotalWordCount();\n\n // Creating data string and appending it to the csv\n String dataString = String.format(dataFormat, total,t);\n write.append(dataString);\n\n // Clearing word map\n counter.clearMap();\n\n System.out.println(\"Finished reading file \" + data.getName());\n }\n \n write.close();\n } \n catch (IOException ex) {\n System.out.println(\"TimeComplexity.writeTimeCSV():: Could not write file\");\n }\n }",
"static void writeFile(final PropertyArray data, final String file, boolean prettyPrint) throws IOException {\n if(data == null || data.isEmpty() || file == null || file.isEmpty())\n throw new IOException(\"data or file path is null or empty.\");\n\n if(prettyPrint) {\n writeFile(data, file, 2);\n return;\n }\n\n writeFile(data, file, 0);\n }",
"public static String formatData(final MLData data, int precision) {\r\n \t\tfinal StringBuilder result = new StringBuilder();\r\n \t\tfor (int i = 0; i < data.size(); i++) {\r\n \t\t\tif (i != 0) {\r\n \t\t\t\tresult.append(\"; \");\r\n \t\t\t}\r\n \t\t\tString str = Format\r\n \t\t\t\t\t.formatDouble(\r\n \t\t\t\t\t\t\tConfigLoto.denormalizeMapminmax(data.getData(i)),\r\n \t\t\t\t\t\t\tprecision);\r\n \t\t\tresult.append(str);\r\n \t\t}\r\n \t\treturn result.toString();\r\n \t}",
"public static void textToBinary(){\r\n\t\tScanner textIn3 = null;\r\n\t\tObjectOutputStream binOut = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\ttextIn3 = new Scanner(new FileInputStream(\"textFile.txt\"));\r\n\t\t\tbinOut = new ObjectOutputStream(new FileOutputStream(\"binFile.dat\"));\r\n\t\t} catch (FileNotFoundException e){\r\n\t\t\tSystem.out.println(\"Error finding or opening txt file\");\r\n\t\t\tSystem.exit(0);\r\n\t\t} catch (IOException f){\r\n\t\t\tSystem.out.println(\"Error making bin file\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t\r\n\t\t//Loop reads until the end of the file\r\n\t\twhile (textIn3.hasNext()){\r\n\t\t\ttry {\r\n\t\t\t\tbinOut.writeDouble(Double.parseDouble(textIn3.nextLine()));\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.out.println(\"Error closing bin file\");\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}\r\n\t\t}\r\n\t\ttextIn3.close();\r\n\t\ttry {\r\n\t\t\tbinOut.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"Error closing bin file\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\tSystem.out.println(\"Binary File Created from Text File\");\r\n\t}",
"public void writeFile(Context inContext, String Name, String Category, String ObjectType, String Latitude, String Longitude){\n\r\n\t\tFileWriter fWriter;\r\n\r\n\t\t\r\n\t\t\r\n\t\ttry{\r\n\t\t\tfWriter = new FileWriter(\"/sdcard/data/filename.txt\");\r\n\r\n\t\t\tString newLine = System.getProperty(\"line.separator\");\r\n\t\t\t\r\n\t\t\t//Read all lines in txt file until strikes empty line and writes on that line\r\n\r\n\t\t\tFileInputStream fstream = new FileInputStream(\"filename.txt\");\r\n\t\t\t// Get the object of DataInputStream\r\n\t\t\tDataInputStream in = new DataInputStream(fstream);\r\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(in));\r\n\t\t\tString strLine;\r\n\t\t\t\r\n\t\t\t//Read File Line By Line\r\n\t\t\twhile ((strLine = br.readLine()) == null) {\r\n\t\t\t\t// Print the content on the console\r\n\t\t\t\tSystem.out.println (strLine);\r\n\t\t\t\tfWriter.write(\"penis\" + newLine);\r\n\t\t\t}\r\n\r\n\t\t\t//System.out.println(\"if\"+i);\r\n\t\t\tfWriter.write(Name + \":\" + Category + \":\" + ObjectType + \":\" + Latitude + \":\" + Longitude + \";\");\r\n\t\t\tfWriter.flush();\r\n\t\t\tfWriter.close();\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}",
"public void write(String s, ArrayList<String[]> data) throws IOException {\n\t\tFile metaFile = new File(s);\n\t\tmetaFile.createNewFile();\n\t\tFileWriter fw = new FileWriter(metaFile);\n\t\tBufferedWriter bw = new BufferedWriter(fw);\n\n\t\tfor (int i = 0; i < data.size(); i++) {\n\t\t\tString row = \"\";\n\t\t\tfor (int j = 0; j < 5; j++) {\n\t\t\t\trow = row + data.get(i)[j] + \",\";\n\t\t\t}\n\t\t\trow = row + data.get(i)[5];\n\t\t\tbw.write(row);\n\t\t\tbw.newLine();\n\t\t}\n\t\tbw.close();\n\t}",
"Builder addFileFormat(Text value);",
"public void textSaver(BufferedWriter writer)throws IOException{\r\n\t\tfor(int i=0;i<getColumn();i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<getRow();j++)\r\n\t\t\t\twriter.write(warehouse[i][j].getChar());\r\n\t\twriter.newLine();\r\n\r\n\t\t}\r\n\t\t\r\n\t}",
"public void saveTypesAsStrings(TextLabels labels,File file,boolean includeOffset) throws IOException\n\t{\n\t\tPrintStream out = new PrintStream(new FileOutputStream(file));\n\t\tfor (Iterator j=labels.getTypes().iterator(); j.hasNext(); ) {\n\t\t\tString type = (String)j.next();\n\t\t\tfor (Span.Looper i=labels.instanceIterator(type); i.hasNext(); ) {\n\t\t\t\tSpan span = i.nextSpan();\n\t\t\t\tout.print( type );\n\t\t\t\tif (includeOffset) { \n\t\t\t\t\tout.print(\":\"+span.getDocumentId()+\":\"+span.getTextToken(0).getLo()+\":\"+span.getTextToken(span.size()-1).getHi());\n\t\t\t\t}\n\t\t\t\tout.println( \"\\t\" + span.asString().replace('\\n',' '));\n\t\t\t}\n\t\t}\n\t\tout.close();\n\t}",
"protected abstract String format();",
"private void toSave() {\n File file4=new File(\"trial.txt\");\n try\n {\n String row;\n BufferedWriter bw=new BufferedWriter(new FileWriter(file4));\n for(int i=0;i<jt.getRowCount();i++)\n {\n row = \"\";\n for(int j=0;j<jt.getColumnCount();j++)\n {\n row += (jt.getValueAt(i, j) +\",\");\n }\n row = row.substring(0, row.length()-1);\n //System.out.println(row);\n bw.write(row);\n bw.newLine();\n }\n bw.close();\n \n \n JOptionPane.showMessageDialog(rootPane,\"Details saved succesfully\");\n }\n \n catch(Exception ex)\n {\n JOptionPane.showMessageDialog(rootPane,\"Exception occured\");\n }\n }",
"public static void write(String fname){\r\n\t\t\ttry {\r\n\t\t\t\tFile file = new File(fname);\r\n\t\t\t\t\r\n\t\t\t\tFileWriter fw = new FileWriter(file.getAbsoluteFile());\r\n\t\t\t\tBufferedWriter bw = new BufferedWriter(fw);\r\n\t\t\t\t//establish variable str and call to write header row\r\n\t\t\t\tString str = \"Employee Name, Employee Number, State, Zip, Age, Sex\\n\";\r\n\t\t\t\tbw.write(str);\r\n\t\t\t\t//parse the array list and retrieve data for employees of age 30 or less\r\n\t\t\t\tfor(int i=0;i<data.size();i++){\r\n\t\t\t\t\tif(data.get(i).Age <= 30) {\r\n\t\t\t\t\t//call the information stored in the arraylist in each particular index and then call to write\r\n\t\t\t\t\tbw.write(data.get(i).Name+\",\"+data.get(i).Num + \",\" + data.get(i).State + \",\" + data.get(i).Zip + \",\" + data.get(i).Age + \",\" + data.get(i).Sex + \"\\n\");\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbw.close();\r\n\t\t\t\tfw.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\t\r\n\t\t\tSystem.out.println(\"Finish writing data to file \"+ fname);\r\n\t\t}",
"public void writeBinary(RandomAccessFile stream) {\r\n\t\t\r\n\t\t// Create paddable stringBuffers\r\n\t\tStringBuffer dateSB = new StringBuffer(trmt_date);\r\n\t\tStringBuffer stratumSB = new StringBuffer(stratum);\r\n\t\tStringBuffer raceOtherSB = new StringBuffer(race_other);\r\n\t\tStringBuffer diagOtherSB = new StringBuffer(diag_other);\r\n\t\tStringBuffer narr1SB = new StringBuffer(narr1);\r\n\t\tStringBuffer narr2SB = new StringBuffer(narr2);\r\n\t\t\r\n\t\t// Write to the Binary file\r\n\t\ttry {\r\n\t\t\tstream.writeInt(cpscCase);\r\n\t\t\tdateSB.setLength(dateLength);\r\n\t\t\tstream.writeBytes(dateSB.toString());\r\n\t\t\tstream.writeInt(psu);\r\n\t\t\tstream.writeDouble(weight);\r\n\t\t\tstratumSB.setLength(stratumLength);\r\n\t\t\tstream.writeBytes(stratumSB.toString());\r\n\t\t\tstream.writeInt(age);\r\n\t\t\tstream.writeInt(sex);\r\n\t\t\tstream.writeInt(race);\r\n\t\t\traceOtherSB.setLength(raceOtherLength);\r\n\t\t\tstream.writeBytes(raceOtherSB.toString());\r\n\t\t\tstream.writeInt(diag);\r\n\t\t\tdiagOtherSB.setLength(diagOtherLength);\r\n\t\t\tstream.writeBytes(diagOtherSB.toString());\r\n\t\t\tstream.writeInt(body_part);\r\n\t\t\tstream.writeInt(disposition);\r\n\t\t\tstream.writeInt(location);\r\n\t\t\tstream.writeInt(fmv);\r\n\t\t\tstream.writeInt(prod1);\r\n\t\t\tstream.writeInt(prod2);\r\n\t\t\tnarr1SB.setLength(narr1Length);\r\n\t\t\tstream.writeBytes(narr1SB.toString());\r\n\t\t\tnarr2SB.setLength(narr2Length);\r\n\t\t\tstream.writeBytes(narr2SB.toString());\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void saveText() {\n\t\t\tapp.saveStrings(\"./data/exports/ID_Order.txt\", saveIDOrder);\n\t\t\t//Saving the new name text\n\t\t\tapp.saveStrings(\"./data/exports/Name_Order.txt\", saveNameOrder);\n\t\t\t//Saving the new breed text\n\t\t\tapp.saveStrings(\"./data/exports/Breed_Order.txt\", saveBreedOrder);\n\t\t\t//Saving the new date text\n\t\t\tapp.saveStrings(\"./data/exports/Date_Order.txt\", saveDateOrder);\n\t\t\n\t}",
"protected String getDataFormat() {\n return this.dataFormat;\n }",
"public void writeData(StringBuilder sb) {\n\t\tif(!(fieldSimulation.getSimulationOwner() instanceof SimulationContext)) {\n\t\t\tsb.append(\"\\n\");\n\t\t\treturn;\n\t\t}\n\t\tSimulationContext sc = (SimulationContext)fieldSimulation.getSimulationOwner();\n\t\tif(sc.getApplicationType() != Application.SPRINGSALAD) {\n\t\t\tsb.append(\"\\n\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// ending time is editable, starting time is non-editable, always 0\n\t\tdouble totalTime = getTimeBounds().getEndingTime() - getTimeBounds().getStartingTime();\n\t\tsb.append(\"Total time: \" + totalTime);\t\t// TODO: for langevin, initialize to 1.00E-2\n\t\tsb.append(\"\\n\");\n\t\t\n\t\tdouble defaultTimeStep = getTimeStep().getDefaultTimeStep();\n\t\tsb.append(\"dt: \" + defaultTimeStep);\t\t// TODO: initialize to 1.00E-8\n\t\tsb.append(\"\\n\");\n\t\t\n\t\tif(!(getOutputTimeSpec() instanceof UniformOutputTimeSpec)) {\n\t\t\tthrow new RuntimeException(\"Output interval must be uniform\");\n\t\t}\n\t\tUniformOutputTimeSpec uots = (UniformOutputTimeSpec)getOutputTimeSpec();\n\t\tdouble outputInterval = uots.getOutputTimeStep();\n\t\tsb.append(\"dt_data: \" + outputInterval);\t// TODO: initialize to 1.00E-4\n\t\tsb.append(\"\\n\");\n\t}",
"@Override\r\n\tpublic void serialize() throws Exception {\n\t\tFile dtRowFile = new File(twcnbOutputDir, Constant.TWCNB_META_FILE);\r\n\t\tFileWriter fw = new FileWriter(dtRowFile);\r\n\t\tBufferedWriter bw = new BufferedWriter(fw);\r\n\r\n\t\tbw.write(String.valueOf(this.documentCnt));\r\n\t\tbw.newLine();\r\n\t\tbw.write(String.valueOf(this.labelCnt));\r\n\t\tbw.newLine();\r\n\t\tbw.write(String.valueOf(this.featureCnt));\r\n\t\tbw.newLine();\r\n\r\n\t\tbw.flush();\r\n\t\tbw.close();\r\n\t\tfw.close();\r\n\t}",
"@Test\n public void testToFileFormat() {\n ToDo t = new ToDo(\"test\");\n assertEquals(t.toFileFormat(), \"Ttest,false\");\n t.setDoneStatus(true);\n assertEquals(t.toFileFormat(), \"Ttest,true\");\n }",
"private static void writeOutput (int[][] outData) {\r\n\t\tString outFile = \"Input_\" + outData.length + \".txt\";\r\n\t\t\r\n\t\ttry {\r\n\t\t\tFile fileLocation = new File(outFile);\t\t\r\n\t\t\tPrintWriter Writer = new PrintWriter(fileLocation, \"UTF-8\");\t\r\n\t\t\tfor (int i = 0; i < outData.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < outData[i].length; j++) {\r\n\t\t\t\t\tif (outData[i][j] == INFINITY) {\r\n\t\t\t\t\t\tWriter.print(\"NA\");\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tWriter.print(outData[i][j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (j != outData[i].length - 1) {\r\n\t\t\t\t\t\tWriter.print(\"\\t\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tWriter.println();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tWriter.close();\r\n\t\t} catch (Exception ex) {\r\n System.out.println(ex.toString()); \r\n\t\t}\r\n\t}",
"@Override\n\tpublic void WriteData(String obj) {\n\t\t\n\t}",
"protected String obterData(String format) {\n\t\tDateFormat formato = new SimpleDateFormat(format);\n\t\tDate data = new Date();\n\t\treturn formato.format(data).toString();\n\t}",
"public static String transformFieldData(Hashtable dataField, DateFormat df, NumberFormat numberFormat) {\r\n String stringResult = AbstractTemplateGenerator.exportFieldData(dataField, \"$#\", df, numberFormat);\r\n stringResult = stringResult.replace('\\n', '\\r');\r\n return stringResult;\r\n }",
"public void format( RawDisk disk) {\n \tthis.tempDisk.format();\n }",
"private void writeToFile(){\n try(BufferedWriter br = new BufferedWriter(new FileWriter(filename))){\n for(Teme x:getAll())\n br.write(x.toString()+\"\\n\");\n br.close();\n }catch (IOException e){\n e.printStackTrace();\n }\n }",
"public static void outputRawData(String fn, String extra, Hypocenter[] data)\n\t{\n\t\ttry\n\t\t{\n\t\t\tPrintWriter out = new PrintWriter(new FileWriter(fn, true));\n\t\t\tout.print(\"Earthquake hypocenters\");\n\t\t\tif (extra != null)\n\t\t\t\tout.println(\" [\" + extra + \"]\");\n\t\t\telse\n\t\t\t\tout.println();\n\t\t\tgetHeaderLine();\n\t\t\tfor (int i = 0; i < data.length; i++)\n\t\t\t\tout.println(data[i].toString());\n\t\t\tout.close();\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public String reformatDBObject(DBObject record);",
"@Override\n protected void createInputFile()\n throws IOException {\n // CHECKSTYLE:OFF\n // @format:off\n TypeDescription schema = TypeDescription.fromString(\n \"struct<\" + \"userID:int,\" + \"firstName:string,\" + \"bids:array<int>,\" + \"cost:double,\" + \"timestamp:bigint,\"\n + \"simpleStruct:struct<structString:string,structLong:bigint,structDouble:double>,\"\n + \"complexStruct:struct<structString:string,nestedStruct:struct<nestedStructInt:int,\"\n + \"nestedStructLong:bigint>>,\"\n + \"complexList:array<struct<complexListInt:int,complexListDouble:double>>,\" + \"simpleMap:map<string,int>,\"\n + \"complexMap:map<string,struct<doubleField:double,stringField:string>>\" + \">\");\n // @format:on\n // CHECKSTYLE:ON\n\n int numRecords = _inputRecords.size();\n VectorizedRowBatch rowBatch = schema.createRowBatch(numRecords);\n LongColumnVector userIdVector = (LongColumnVector) rowBatch.cols[0];\n userIdVector.noNulls = false;\n BytesColumnVector firstNameVector = (BytesColumnVector) rowBatch.cols[1];\n firstNameVector.noNulls = false;\n\n // simple list containing long\n ListColumnVector bidsVector = (ListColumnVector) rowBatch.cols[2];\n bidsVector.noNulls = false;\n LongColumnVector bidsElementVector = (LongColumnVector) bidsVector.child;\n bidsElementVector.ensureSize(6, false);\n\n DoubleColumnVector costVector = (DoubleColumnVector) rowBatch.cols[3];\n LongColumnVector timestampVector = (LongColumnVector) rowBatch.cols[4];\n\n // simple struct - string, long, and double\n StructColumnVector simpleStructVector = (StructColumnVector) rowBatch.cols[5];\n simpleStructVector.noNulls = false;\n BytesColumnVector simpleStructBytesVector = (BytesColumnVector) simpleStructVector.fields[0];\n LongColumnVector simpleStructLongVector = (LongColumnVector) simpleStructVector.fields[1];\n DoubleColumnVector simpleStructDoubleVector = (DoubleColumnVector) simpleStructVector.fields[2];\n\n // complex struct - string and struct containing int and long\n StructColumnVector complexStructVector = (StructColumnVector) rowBatch.cols[6];\n complexStructVector.noNulls = false;\n BytesColumnVector complexStructBytesVector = (BytesColumnVector) complexStructVector.fields[0];\n StructColumnVector complexStructInnerVector = (StructColumnVector) complexStructVector.fields[1];\n LongColumnVector complexStructIntVector = (LongColumnVector) complexStructInnerVector.fields[0];\n LongColumnVector complexStructLongVector = (LongColumnVector) complexStructInnerVector.fields[1];\n\n // complex list elements - each element is a struct containing int and long\n ListColumnVector complexListVector = (ListColumnVector) rowBatch.cols[7];\n complexListVector.noNulls = false;\n StructColumnVector complexListElementVector = (StructColumnVector) complexListVector.child;\n LongColumnVector complexListIntVector = (LongColumnVector) complexListElementVector.fields[0];\n complexListIntVector.ensureSize(5, false);\n DoubleColumnVector complexListDoubleVector = (DoubleColumnVector) complexListElementVector.fields[1];\n complexListDoubleVector.ensureSize(5, false);\n\n // simple map - string key and value long\n MapColumnVector simpleMapVector = (MapColumnVector) rowBatch.cols[8];\n simpleMapVector.noNulls = false;\n BytesColumnVector simpleMapKeysVector = (BytesColumnVector) simpleMapVector.keys;\n LongColumnVector simpleMapValuesVector = (LongColumnVector) simpleMapVector.values;\n simpleMapKeysVector.ensureSize(6, false);\n simpleMapValuesVector.ensureSize(6, false);\n\n // complex map - string key and struct value containing double and string\n MapColumnVector complexMapVector = (MapColumnVector) rowBatch.cols[9];\n complexMapVector.noNulls = false;\n BytesColumnVector complexMapKeysVector = (BytesColumnVector) complexMapVector.keys;\n complexMapKeysVector.ensureSize(6, false);\n StructColumnVector complexMapValuesVector = (StructColumnVector) complexMapVector.values;\n DoubleColumnVector complexMapValueDoubleVector = (DoubleColumnVector) complexMapValuesVector.fields[0];\n complexMapValueDoubleVector.ensureSize(6, false);\n BytesColumnVector complexMapValueBytesVector = (BytesColumnVector) complexMapValuesVector.fields[1];\n complexMapValueBytesVector.ensureSize(6, false);\n\n Writer writer = OrcFile.createWriter(new Path(_dataFile.getAbsolutePath()),\n OrcFile.writerOptions(new Configuration()).setSchema(schema));\n for (int i = 0; i < numRecords; i++) {\n Map<String, Object> record = _inputRecords.get(i);\n\n Integer userId = (Integer) record.get(\"userID\");\n if (userId != null) {\n userIdVector.vector[i] = userId;\n } else {\n userIdVector.isNull[i] = true;\n }\n\n String firstName = (String) record.get(\"firstName\");\n if (firstName != null) {\n firstNameVector.setVal(i, firstName.getBytes(UTF_8));\n } else {\n firstNameVector.isNull[i] = true;\n }\n\n List<Integer> bids = (List<Integer>) record.get(\"bids\");\n if (bids != null) {\n bidsVector.offsets[i] = bidsVector.childCount;\n bidsVector.lengths[i] = bids.size();\n for (int bid : bids) {\n bidsElementVector.vector[bidsVector.childCount++] = bid;\n }\n } else {\n bidsVector.isNull[i] = true;\n }\n\n costVector.vector[i] = (double) record.get(\"cost\");\n timestampVector.vector[i] = (long) record.get(\"timestamp\");\n\n // simple map with string key and int value\n Map<String, Integer> simpleMap = (Map<String, Integer>) record.get(\"simpleMap\");\n if (simpleMap != null) {\n simpleMapVector.offsets[i] = simpleMapVector.childCount;\n simpleMapVector.lengths[i] = simpleMap.size();\n for (Map.Entry<String, Integer> entry : simpleMap.entrySet()) {\n simpleMapKeysVector.setVal(simpleMapVector.childCount, entry.getKey().getBytes(UTF_8));\n simpleMapValuesVector.vector[simpleMapVector.childCount] = entry.getValue();\n simpleMapVector.childCount++;\n }\n } else {\n simpleMapVector.isNull[i] = true;\n }\n\n // simple struct with long and double values\n Map<String, Object> struct1 = (Map<String, Object>) record.get(\"simpleStruct\");\n if (struct1 != null) {\n simpleStructBytesVector.setVal(i, ((String) struct1.get(\"structString\")).getBytes(UTF_8));\n simpleStructLongVector.vector[i] = (long) struct1.get(\"structLong\");\n simpleStructDoubleVector.vector[i] = (double) struct1.get(\"structDouble\");\n } else {\n simpleStructVector.isNull[i] = true;\n }\n\n // complex struct - string, struct containing int and long\n Map<String, Object> complexStruct = (Map<String, Object>) record.get(\"complexStruct\");\n if (complexStruct != null) {\n complexStructBytesVector.setVal(i, ((String) complexStruct.get(\"structString\")).getBytes(UTF_8));\n // Set nested struct vector\n complexStructIntVector.vector[i] =\n (Integer) ((Map<String, Object>) complexStruct.get(\"nestedStruct\")).get(\"nestedStructInt\");\n complexStructLongVector.vector[i] =\n (Long) ((Map<String, Object>) complexStruct.get(\"nestedStruct\")).get(\"nestedStructLong\");\n } else {\n complexStructVector.isNull[i] = true;\n }\n\n // complex list elements\n List<Map<String, Object>> complexList = (List<Map<String, Object>>) record.get(\"complexList\");\n if (complexList != null) {\n complexListVector.offsets[i] = complexListVector.childCount;\n complexListVector.lengths[i] = complexList.size();\n for (Map<String, Object> complexElement : complexList) {\n complexListIntVector.vector[complexListVector.childCount] = (int) complexElement.get(\"complexListInt\");\n complexListDoubleVector.vector[complexListVector.childCount] =\n (double) complexElement.get(\"complexListDouble\");\n complexListVector.childCount++;\n }\n } else {\n complexListVector.isNull[i] = true;\n }\n\n // complex map with key string and struct. struct contains double and string.\n Map<String, Map<String, Object>> complexMap = (Map<String, Map<String, Object>>) record.get(\"complexMap\");\n if (complexMap != null) {\n complexMapVector.offsets[i] = complexMapVector.childCount;\n complexMapVector.lengths[i] = complexMap.size();\n for (Map.Entry<String, Map<String, Object>> entry : complexMap.entrySet()) {\n complexMapKeysVector.setVal(complexMapVector.childCount, entry.getKey().getBytes(UTF_8));\n complexMapValueDoubleVector.vector[complexMapVector.childCount] =\n (double) entry.getValue().get(\"doubleField\");\n complexMapValueBytesVector.setVal(complexMapVector.childCount,\n ((String) entry.getValue().get(\"stringField\")).getBytes(UTF_8));\n complexMapVector.childCount++;\n }\n } else {\n complexMapVector.isNull[i] = true;\n }\n\n rowBatch.size++;\n }\n\n writer.addRowBatch(rowBatch);\n rowBatch.reset();\n writer.close();\n }",
"public String toFile(){\n\t\tString personInfo = this.firstName + \" ; \" + this.lastName + \" ; \";\n\t\t\n\t\treturn personInfo;\n\t}",
"private static void SaveTable(Class<?> itemClass, List<CSVItem> data) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException, NoSuchFieldException {\n\t\tString tl = (String)itemClass.getMethod(\"readTitle\").invoke(null, null);\n\t\tString val = \"\";\n\t\tString fn = (String)itemClass.getField(\"file\").get(val);\n\t\t\n\t\t\n\t\t\n\t\tfn = \"C:\\\\Users\\\\Chebakov.AA\\\\neo4j\\\\import\\\\pitc\\\\\" + fn + \".csv\";\n\t\ttry (OutputStreamWriter out = new OutputStreamWriter(new FileOutputStream(fn), \"UTF8\")) { //\"cp1251\"\n\t\t\tout.write(tl + \"\\r\\n\");\n\t\t\tdata.stream()\n\t\t\t\t.map(v -> v.readDataRow())\n\t\t\t\t.forEach(v -> {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tout.write(v + \"\\r\\n\");\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tvoid putData() {\n\t\tSystem.out.println(\"Brand : \"+brand);\n\t\tSystem.out.println(\"Model : \"+model);\n\t\tSystem.out.println(\"Year of manufacture : \"+year_of_manufacture);\n\t\tSystem.out.println(\"CC : \"+cc);\n\t}",
"public static void dumpData(String text, byte[] data, int offset, int length) {\n StringBuilder outString = new StringBuilder(512);\n outString.append(text);\n outString.append(\"\\n\");\n for (int i=0; i<length; i++) {\n if (i%32 == 0)\n outString.append(String.format(\" %14X \", i));\n else if (i%4 == 0)\n outString.append(\" \");\n outString.append(String.format(\"%02X\", data[offset+i]));\n if (i%32 == 31)\n outString.append(\"\\n\");\n }\n if (length%32 != 0)\n outString.append(\"\\n\");\n log.info(outString.toString());\n }",
"@Override\n public String formatSave() {\n return \"BI\" + \" | \"\n + people + \" | \"\n + amount + \" | \"\n + amount / people + \" | \"\n + nameString(nameList);\n }",
"private void insertIntoFile(String data){\n\t\tOutputStream os = null;\n try {\n os = new FileOutputStream(file);\n os.write(data.getBytes(), 0, data.length());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\t}",
"public interface IDataExporter <T> extends IDataFormatter <T>{\n\n\t/**Format the data so that it can be written to a plain text file appropriate to the datatype\n\t * \n\t */\n\tpublic IDataExporter<CRBBase> setInvoiceDate(LocalDate invoiceDate);\n\n\tpublic IDataExporter<CRBBase> setBillingParty(String billingParty);\n\n\tpublic IDataExporter<CRBBase> setBilledParty(String billedParty);\n\n\tpublic IDataExporter<CRBBase> setAccountDate(LocalDate accountDate);\n\n\tpublic IDataExporter<CRBBase> setInvoiceNumber(String invoiceNumber);\n\n\tpublic IDataExporter<CRBBase> setPriceMaster(char priceMaster);\n\n\tpublic IDataExporter<CRBBase> setTaxPayerId(String taxPayerId);\n\n\tpublic IDataExporter<CRBBase> setPaymentTerms(int paymentTerms);\n\n\tpublic IDataExporter<CRBBase> setPaymentDueDate(LocalDate paymentDueDate);\n\t\n\tpublic IDataExporter<CRBBase> setInquiryContact(CRBContactInfo inquiryContact);\n\n\tpublic IDataExporter<CRBBase> setRemitToContact(CRBContactInfo remitToContact);\n\n\tpublic IDataExporter<CRBBase> setExceptionsContact(CRBContactInfo exceptionsContact);\n\n\tpublic IDataExporter<CRBBase> setBillingContact(CRBContactInfo billingContact);\n\n\tpublic IDataExporter<CRBBase> setBilledContact(CRBContactInfo billedContact);\n\n\tvoid formatForPlainText() throws IllegalArgumentException;\n}"
] | [
"0.6040346",
"0.603875",
"0.59707177",
"0.59682226",
"0.58965486",
"0.57521725",
"0.56793964",
"0.5675053",
"0.56340677",
"0.5613128",
"0.5582385",
"0.55472386",
"0.5478313",
"0.54416066",
"0.5436696",
"0.54201037",
"0.54125863",
"0.5403633",
"0.54017884",
"0.5400223",
"0.53945965",
"0.5380009",
"0.535158",
"0.5342289",
"0.5336497",
"0.5307341",
"0.5306508",
"0.53047895",
"0.5298392",
"0.52891386",
"0.52807844",
"0.52792525",
"0.5273006",
"0.5271284",
"0.527123",
"0.52601284",
"0.5259719",
"0.52502775",
"0.52388686",
"0.52374554",
"0.5235645",
"0.52227527",
"0.5211512",
"0.5210646",
"0.5196014",
"0.51925176",
"0.51904863",
"0.51901126",
"0.51807845",
"0.51756966",
"0.5168583",
"0.51668787",
"0.5164009",
"0.5154035",
"0.51526296",
"0.5145881",
"0.5143183",
"0.51371497",
"0.5128949",
"0.51253724",
"0.51248777",
"0.51181465",
"0.51166004",
"0.51105994",
"0.5110032",
"0.5107065",
"0.5105271",
"0.5102238",
"0.5085581",
"0.50849456",
"0.5083817",
"0.5082904",
"0.5082116",
"0.50791633",
"0.50790316",
"0.50740445",
"0.50598186",
"0.505359",
"0.5047085",
"0.50462747",
"0.50451505",
"0.5044927",
"0.50445783",
"0.5040563",
"0.5037686",
"0.50359225",
"0.50352484",
"0.5033938",
"0.50240797",
"0.50206095",
"0.5018022",
"0.50133115",
"0.5011107",
"0.5009742",
"0.49991542",
"0.49946615",
"0.49935922",
"0.49761555",
"0.4971644",
"0.49676716",
"0.49667802"
] | 0.0 | -1 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.activity_main, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}",
"public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}",
"@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }"
] | [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.68621665",
"0.68621665",
"0.68621665",
"0.68515885",
"0.68467957",
"0.68194443",
"0.6817494",
"0.6813087",
"0.6813087",
"0.6812847",
"0.6805774",
"0.6801204",
"0.6797914",
"0.6791314",
"0.6789091",
"0.67883503",
"0.6783642",
"0.6759701",
"0.6757412",
"0.67478645",
"0.6744127",
"0.6744127",
"0.67411774",
"0.6740183",
"0.6726017",
"0.6723245",
"0.67226785",
"0.67226785",
"0.67208904",
"0.67113477",
"0.67079866",
"0.6704564",
"0.6699229",
"0.66989094",
"0.6696622",
"0.66952467",
"0.66865396",
"0.6683476",
"0.6683476",
"0.6682188",
"0.6681209",
"0.6678941",
"0.66772443",
"0.6667702",
"0.66673946",
"0.666246",
"0.6657578",
"0.6657578",
"0.6657578",
"0.6656586",
"0.66544783",
"0.66544783",
"0.66544783",
"0.66524047",
"0.6651954",
"0.6650132",
"0.66487855",
"0.6647077",
"0.66467404",
"0.6646615",
"0.66464466",
"0.66449624",
"0.6644209",
"0.6643461",
"0.6643005",
"0.66421187",
"0.6638628",
"0.6634786",
"0.6633529",
"0.6632049",
"0.6632049",
"0.6632049",
"0.66315657",
"0.6628954",
"0.66281766",
"0.6627182",
"0.6626297",
"0.6624309",
"0.6619582",
"0.6618876",
"0.6618876"
] | 0.0 | -1 |
int numTimesLooped = 10000; | @Override
public void run() {
long startTime = System.nanoTime();
int value = 0;
int i = 0;
LibInterfaceOneTest app2class = new LibInterfaceOneTest(
getApplicationContext());
System.gc();
for (; i < testCases; i++) {
value += app2class.testMethodCall2(value);
}
long finishTime = System.nanoTime();
long totalTime = finishTime - startTime;
long displayTime1 = (totalTime / 1000);
long displayTime2 = (displayTime1 / 1000);
long displayTime3 = (displayTime2 / 1000);
Log.d("MAIN ACTIVITY", "Total: " + value + " total time: "
+ totalTime + " display: " + displayTime1 + ", "
+ displayTime2 + ", " + displayTime3);
longToChange = displayTime1;
Toast.makeText(
getApplicationContext(),
"Total Time : " + displayTime1 + " μs. " + displayTime2
+ " ms. " + displayTime3 + " ns.",
Toast.LENGTH_LONG).show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void increment() {\n for (int i=0; i < 10000; i++) {\n count++;\n }\n }",
"static void loopcomp () {\r\n\t\tint t40k= timer(8000,40000); \r\n\t\tint t1k= timer(8000,1000); \r\n\t\tSystem.out.println(\"Total number of loops for printing every 40k loops = \" + t40k);\r\n\t\tSystem.out.println(\"Total number of loops for printing every 1k loops = \"+ t1k);\r\n\t}",
"public void incrementLoopCount() {\n this.loopCount++;\n }",
"@Override\r\n public void run() {\n try {\r\n for (int x = 1; x <= 10500; x++) {\r\n System.out.println(x);\r\n sleep(5000);\r\n if (x % 50 == 0) {\r\n System.out.println(\"counting\");\r\n }\r\n }\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public void run( ) {\n long sum = 0;\n for (int i = 0; i < 1000; i++) {\n sum += i;\n }\n System.out.println(sum);\n }",
"void test(int loop){\n\t\tfor(int i=0; i<loop; i++){\n\t\t\ttest(loop / 2);\n\t\t}\n//\t\tSystem.out.printf(\"loop done: %d\\n\", loop);\n//\t\tlong end = System.nanoTime();\n\t}",
"public int getNumTimes();",
"public long getLoopTime();",
"@Override public void init_loop() {\n loop_cnt_++;\n }",
"private static void testLongLoop() {\n test(1000 * 1000 * 1000);\n //uncomment the following line to see the hand-written cache performance\n //testManual( 1000 * 1000 * 1000 );\n }",
"private static void testLongLoop() {\n test(1000 * 1000 * 1000);\n //uncomment the following line to see the hand-written cache performance\n //testManual( 1000 * 1000 * 1000 );\n }",
"static void loop() {\r\n\r\n\t\tfor (int i =1; i<=10; i++) { \r\n\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n Runnable run = new Runnable() {\n private int origin = 0;\n @Override\n public void run() {\n for (int i=0;i<2;i++) {\n int value = ++(origin);\n try {\n TimeUnit.SECONDS.sleep(2);\n }catch (InterruptedException e){\n e.printStackTrace();\n }\n System.out.print(Thread.currentThread().getId()+\":\"+value+\"\\n\");\n }\n }\n };\n for(int i=0;i<100;i++){\n new Thread(run).start();\n }\n }",
"public static void main(String[] args) {\n\t\tint maxRepeats = 0, number = -1;\n\t\tfor(int i = 1; i < 1000; i++) {\n\t\t\tif(!willTerminate(i)) {\n\t\t\t\tList<Integer> remainders = new ArrayList<Integer>();\n\t\t\t\tint repeats = numberOfRepeats(i, remainders);\n\t\t\t\tif(repeats > maxRepeats) {\n\t\t\t\t\tmaxRepeats = repeats;\n\t\t\t\t\tnumber = i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(number);\n\t}",
"int getRepeatCount();",
"int getIterations();",
"int getServerProcessingIterations();",
"@Override\r\n public void run() {\n super.run();\r\n for (int i = 0; i < 50000; i++) {\r\n System.out.println(\"i=\" + (i + 1));\r\n }\r\n }",
"@Test\n void shouldIncrementCounter100kTimes() throws InterruptedException {\n Collection<Thread> threads = new ArrayList<>();\n for (int threadIdx = 0; threadIdx < 20; threadIdx++) {\n Thread thread = new Thread(() -> {\n for (int i = 0; i < 100_000 / 20; i++) {\n counter.increment();\n }\n });\n thread.start();\n threads.add(thread);\n }\n for (Thread thread : threads) {\n thread.join();\n }\n\n // then: counter value should be 100k\n assertEquals(100_000, counter.total(),\n \"Counter wasn't incremented expected number of times\");\n }",
"private static void test1() {\n\n\tint n=10000;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint val=rand7();\n\t\t\tcount[val]++;\n\t\t}\n\t\t\n\t\tfor(int i:count)\n\t\t\tSystem.out.println(i);\n\t}",
"@Override\r\n\tpublic void run() {\r\n\t\tfor ( int i = 0; i < 10; i++ ) {\r\n\t\t\tSystem.out.println(i);\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(900);\r\n\t\t\t}catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic Integer call() {\n\t\tint count = ThreadLocalRandom.current().nextInt(1, 11);\n\n\t\tfor (int i = 1; i <= count; i++) {\n\t\t\tSystem.out.println(\"Running...\" + i);\n\t\t}\n\n\t\treturn count;\n\t}",
"public static void pause() {\n int m = 0;\n for (int j = 0; j <= 1000000000; ++j) {\n for (int i = 0; i <= 1000000000; ++i) ++m;\n }\n\n }",
"public void run() {\n int counter = 0;\n while (true) {\n counter++;\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.out.println(counter);\n if (counter > 5) break;\n }\n }",
"public void loop(){\n\t\t\n\t}",
"public void nextIteration() {t++;}",
"public void crunch(){\n cpuBurstTime--;\n rem--;\n }",
"int getServerWorkIterations();",
"static int timer (long maxTime, int loopSteps) {\r\n\t\tlong TStart = System.currentTimeMillis(); //starting time\r\n\t\tlong TEnd = TStart + maxTime; \r\n\t\tint t=0;\r\n\t\twhile (System.currentTimeMillis() <= TEnd) { //\r\n\t\t\tt++; //loop counter \r\n\t\t\tif (t % loopSteps == 0) { \r\n\t\t\t\tSystem.out.println(\"Number of loops: \"+t);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Total number of loops: \"+t); \r\n\t\treturn t;\r\n\t}",
"public void loop(){\n\t}",
"static long GetCycleCount() {\n\t\treturn System.currentTimeMillis();\n\t}",
"public void time(int value) \n{\n runtimes = value;\n}",
"public static void main(String[] args) {\n int a = 0;\r\n int numLoops = 0;\r\n Scanner userInputScanner = new Scanner(System.in);\r\n \r\n System.out.print(\"How many times do you want to loop? \");\r\n try {\r\n numLoops = userInputScanner.nextInt();\r\n } catch (Exception e) {\r\n System.out.println(\"Error in integer entered. Not an integer\");\r\n }\r\n \r\n while (a < numLoops ) {\r\n System.out.println(\"a is: \" + a);\r\n a++ ;\r\n \r\n if ((a % 1000) == 0) {\r\n System.out.println(\"Still Working!\");\r\n }\r\n \r\n } //end while\r\n System.out.println(\"I'm outside of the while loop!\");\r\n System.out.println(\"a is: \" + a );\r\n\r\n\r\n }",
"public void resetLoop(){\n\t\tloopTime = 0;\n\t}",
"public int wait_cycle(){\n\t\tRandom r1=new Random();\n\t\tint r2=r1.nextInt((999)+1)+1;\n\t\treturn r2;\n\t}",
"public void incrementTimesPlayed() {\r\n\t\ttimesPlayed++;\r\n\t}",
"public int getLoopCount() {\n return this.loopCount;\n }",
"@Override\r\n\tpublic void gameLoopLogic(double time) {\n\r\n\t}",
"@Override\r\n\tpublic void run() {\n\r\n\t\tfor (int i = 0; i < 20; i++) {\r\n\t\t\ttry {\r\n\t\t\t\tsleep(1000);\r\n\t\t\t\tSystem.out.println(\"TTT\"+i);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}",
"Loop createLoop();",
"public void loop(){\n \n \n }",
"public int getLoopCount() {\n\t\treturn numLoops;\n\t}",
"public void faster()\n {\n if(speed < 9){\n speed += 1;\n }\n }",
"@Override\n public void run() {\n while(true){\n// double a = Math.random()*Math.random();//占用 CPU\n// System.out.println(a);\n }\n }",
"protected int getTimesOptimized()\r\n {\r\n return timesOptimized;\r\n }",
"public void run() {\nfor (int i = 0; i < times ; i++) {\n System.out.print(ToPrint + \"-\");\n }\n }",
"void speedUp(int a);",
"public void resetRunCount() {\n\n }",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t\tint i=0; \r\n\t\twhile(true) {\r\n\t\t\t System.out.print(i);\r\n\t\t\tSystem.out.print(\"rahul\");\r\n\t\t\t try {\r\n\t\t\t\tThread.sleep(1000);\r\n\t\t\t\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t if(i==10) {\r\n\t\t\t\t i=0;\r\n\t\t\t }\r\n\t\t\t i++;\r\n\t\t }\r\n\t\t\r\n\t}",
"public int getLoopCount() {\n\t\treturn loopCount;\n\t}",
"@Override\n\tpublic void run() {\n\t\tfor(int x = 0; x< 10; x++){\n\t\t\tSystem.out.println(Thread.currentThread().getName()+\" -> \"+(int)(Math.random()*10));\n\t\t}\n\t\t\n\t}",
"public void step() {\n \tinternaltime ++;\n \n }",
"@Override\n public void run() {\n add10000();\n }",
"private static int randomCycleCap() {\n int newValue = 0;\n int iterations = 3;\n Random bombRandGen = new Random();\n\n for (int i = 0; i <= iterations; i++) {\n newValue += bombRandGen.nextInt(4);\n }\n\n return newValue;\n }",
"public void run() {\n\t\t\t\t\tfor (int i = 0; i < times; i++) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tlogger.info(String.format(\"线程-%s:总数%d,第%d次\", name, times, i));\n\t\t\t\t\t\t\tThread.sleep(divide);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}",
"public void timeToRunDec()\n\t{\n\t\tthis.time_to_run -- ;\n\t}",
"@Ignore\r\n @Test\r\n public void speedTest() throws InterruptedException {\n for (int i = 0; i < 10; i++) {\r\n singleSpeedTest();\r\n }\r\n }",
"public long timeIncrement(long reps) {\n long result = 0;\n for (; result < reps; result++) {\n }\n return result;\n }",
"@Override\n\tpublic void run() {\n\t\t\n\t\tfor(int i = 0 ;i<10;i++){\n\t\t\tSystem.out.println(\"Runner \"+i);\n\t\t}\n\t}",
"Long getRunningCount();",
"public static synchronized void inccount()\r\n\t{\r\n\t\tcount++;\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\tint i=0;\r\n\t\twhile(i<1000) {\r\n\t\t\tq.put(i++);\r\n\t\t}\r\n\t}",
"protected void runEachSecond() {\n \n }",
"private synchronized void incrementCount()\n\t{\n\t\tcount++;\n\t}",
"int getNumIterations(int precision);",
"public static void main(String[] args) {\n\tint i=1;\n\tdo\n\t{\n\t\tSystem.out.println(i);\n\t\ti++;\n\t}\n\twhile(i<=10);\n\t\n}",
"private void loopy()\n\t{\n\t\tboolean isDone = false;\n\t\tint count = 0;\n\n\t\twhile (!isDone)\n\t\t// Test the variable\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"blah blah blah\");\n\t\t\t// Eventually change the loop variable\n\t\t\tcount++;\n\t\t\tif (count >= 10)\n\t\t\t{\n\t\t\t\tisDone = true; // update variable\n\t\t\t}\n\t\t}\n\n\t\tfor (int loop = 0; loop < 30; loop += 2)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"The loop value is : \" + loop);\n\t\t}\n\t}",
"private void loop() {\r\n\t\tfloat elapsed;\r\n\t\tfloat accumulated = 0f;\r\n\t\tfloat interval = 1f / TARGET_UPS;\r\n\t\tdouble time;\r\n\t\tdouble lastCall = System.nanoTime();\r\n\t\t\r\n\t\trunning = true;\r\n\t\t//loop while running and the window hasn't received a close command\r\n\t\twhile (running) {\r\n\t\t\ttime = System.nanoTime();\r\n\t\t\t\r\n\t\t\telapsed = (float) ((time-lastCall) / 1e9);\r\n\t\t\tlastCall = time;\r\n\t\t\t\r\n\t\t\taccumulated += elapsed;\r\n\t\t\t\r\n\t\t\twhile (accumulated >= interval) {\r\n\t\t\t\tupdate();\r\n\t\t\t\taccumulated -= interval;\r\n\t\t\t}\r\n\t\t\t//render once per loop, then wait until the render time slot is over before restarting\r\n\t\t\tgame.render();\r\n\t\t\tsync(lastCall/1e9);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\tfor (int i = 6; i <= 10; i++) {\r\n System.out.println(Thread.currentThread().getName() + \": \" + i); \t\r\n\r\n}\r\n\t}",
"public int getLoopInterval()\r\n {\r\n return loopInterval;\r\n }",
"public void testForNThreads();",
"@Override\r\n\tpublic void iterateCount() {\n\t\t\r\n\t}",
"public static void main(String[] args) {\n int counter = 1;\n while (counter <=500){\n if (counter % 7 == 0 || counter % 5 == 0 || counter % 3 == 0){\n System.out.println( counter);\n }\n counter ++;\n }\n\n int counter2 = 500;\n do {\n System.out.println(\"do counter < 100\");\n }while (counter2 < 100); //mind. 1 Durchlauf da Bedingung am schluss ist, sonst gleich wie while\n }",
"@Override\r\n\tpublic void doTimeStep() {\n\t\tthis.run(Critter.getRandomInt(8));\r\n\t}",
"@Override\n\tpublic void run() {\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t\tSystem.out.println(\"uzay \" + i);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tlong milli1 = System.currentTimeMillis();\n\t\t\tint[] algoriteOne = fillArray(80000000);\n\t\t\tlong milli2 = System.currentTimeMillis();\n\t\t\tSystem.out.println(\"Test \" + (i+1) + \" milis: \" + (milli2 - milli1));\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\t\nfor(int contador=1;contador<=100;contador+=1)\n{\n\tSystem.out.println(contador);\n}\n\t}",
"private void _wait() {\n\t\tfor (int i = 1000; i > 0; i--)\n\t\t\t;\n\t}",
"public static void main(String[] args) {\n\n\n counter(10);\n }",
"public static void main(String[] args) { \r\n\t\t\r\n long elapsed, time=0; \r\n\r\n for (int n=100; n < 1000; n *= 2) { \r\n \t\t// Set the time variable. This will be used\r\n \t\t// later to output the time the loops have run.\r\n time = System.nanoTime(); \r\n int [] x = new int[n]; \r\n \r\n // Loop through x.\r\n for (int i=1; i<n; i++) \r\n x[i]=x[i-1]*2; \r\n\r\n // Set the time that was elapsed for the loop\r\n // and print it out.\r\n elapsed = System.nanoTime() - time; \r\n System.out.print(n + \"\\t\" + elapsed); \r\n\r\n // Reset time. We will run another loop to measure\r\n // the time again.\r\n time = System.nanoTime(); \r\n\r\n x=new int[n]; \r\n \r\n // Loop again. \r\n for (int i=1; i<n; i++) \r\n for (int j=1; j<n; j++) \r\n x[j]=x[j-1]*2; \r\n\r\n // Set the elapsed time for the \r\n // nested loops and print it out.\r\n elapsed = System.nanoTime() - time; \r\n System.out.println(\"\\t\" + elapsed); \r\n } \r\n\t}",
"private void plusTime(){\n\n if(totalTimeCountInMilliseconds < 10000)\n {\n countDownTimer.cancel();\n countDownTimer = new MyCountDown(totalTimeCountInMilliseconds + 3000, 50);// give extra 3000 milliseconds if they get the answer right\n }\n else\n {\n countDownTimer.cancel();\n countDownTimer = new MyCountDown(10000, 50);// set the timer to 10000 millisec if totalTimeCountInMilliseconds + 3000 > 10000\n }\n\n countDownTimer.start();\n\n\n }",
"public int slowWindowsIterations() {\n if (Util.isWindows())\n return ITERATIONS / 5;\n return ITERATIONS;\n }",
"private static void timerTest2() {\n\t\tTimer timer = new Timer();\n\t\ttimer.schedule(new TimerTask() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (count < 5) {\n\t\t\t\t\tSystem.out.println(\"timertest2\" + \" \" + ++count);\n\t\t\t\t} else {\n\t\t\t\t\ttimer.cancel();\n\t\t\t\t}\n\n\t\t\t}\n\t\t}, 2000, 1000);\n\n\t}",
"public void nextIteration()\n {\n actuelIteration++;\n }",
"@Override\n\tpublic void run() {\n\t\tint result;\n\t\tRandom random=new Random(Thread.currentThread().getId());\n\t\twhile (true) {\n\t\t\tresult=1000/(int)(random.nextDouble()*1000000000);\n\t\t\tif (Thread.currentThread().isInterrupted()) {\n\t\t\t\tSystem.out.printf(\"%d : interrupted\\n\",Thread.currentThread().getId());\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"@Override\r\n public long problem2() {\r\n ArrayList<String> arrList = new ArrayList<>();\r\n long start = System.currentTimeMillis(); \r\n for(int i = 0; i<1234567; i++){\r\n arrList.add(Integer.toString(i));\r\n }\r\n long end = System.currentTimeMillis(); \r\n return end - start; \r\n }",
"public static void main(String[] args) {\n double SumOfTimes = 0;\n for(int j=0; j<100; j++) {\n\n TimeCounter timer = new TimeCounter();\n timer.StartToCount();\n\n for (int i = 1; i <= 100000; i++) {\n if (i % 3 == 0) {\n System.out.print(\"fizz \");\n }\n if (i % 5 == 0) {\n System.out.print(\"buzz\");\n }\n if (i % 3 != 0 && i % 5 != 0) {\n System.out.print(i);\n }\n System.out.println();\n }\n\n timer.FinishToCount();\n SumOfTimes+=timer.GetCountedTime();\n\n }\n System.out.println(\"Average time = \"+SumOfTimes/100); // Average time = 0.318....... (in my processor)\n }",
"private void randomTest(){\n\n int time = 5 ;\n\n test(time) ;\n }",
"public void run() //Called by the Timer when scheduled.\n {\n timeElapsed++;\n if (timeElapsed > 999) //999 is the highest 3 digit integer, the highest number that can\n {\t\t\t\t\t\t\t //be shown on the displays. Beyond that, the player automatically loses.\n endGame(false);\n return;\n }\n repaint();\n }",
"public int getCycles();",
"public static void dormir(long milis)\r\n\t{\r\n\t\tlong inicial=System.currentTimeMillis();\r\n\t\twhile(System.currentTimeMillis()-inicial < milis) {/*Esperar a que pase el tiempo*/}\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t\tfor(int i=0;i<=4;i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Hii ....\");\r\n\t\t\ttry {\r\n\t\t\t\tThread.currentThread().sleep(1000);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private static void asymptoticAnalysis() {\n\t\tfor(int i = 1; i <= 10; i++) {\n\t\t\tint[] array = getMeRandomArray(100*i);\n\t\t\t// Start timer here\n\t\t\tSystem.out.println(maximumSubarray(array));\n\t\t\t// End timer here\n\t\t\t// Print time here\n\t\t}\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tint loopidx = 1\r\n\t\tint sum =0;\r\n\t\tfinal LAST_loop_IDX =10;\r\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t\twhile(true){\n\t\t\t\t\t\n\t\t\t\t\tlong time = System.currentTimeMillis();\n\t\t\t\t\tgameLoop();\n\t\t\t\t\t\n\t\t\t\t\tlong waitTime = 100 - time;\n\t\t\t\t\t\n\t\t\t\t\tif(waitTime < 10){\n\t\t\t\t\t\t\n\t\t\t\t\t\twaitTime = 10;\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(waitTime);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"@Override\n\tpublic int getIterationsNumber() {\n\t\treturn 0;\n\t}",
"public void increaseCount(){\n myCount++;\n }",
"public void incrementCount(){\n count+=1;\n }",
"public static void main(String[] args) {\n int count = 0;\n int sum = 0;\n final int supremum = 1000;\n\n while (count < supremum) {\n if ((count % 3) == 0 || (count % 5) == 0) {\n sum += count;\n }\n count += 1;\n }\n System.out.println(sum);\n }",
"void incrementCount();",
"public int run() {\n\n int n = 1;\n\n int primeCounter = 0;\n\n while (true) {\n\n if (isPrime.run(n) == true) {\n\n primeCounter += 1;\n\n }\n\n if (primeCounter == 10001) {\n\n break;\n\n }\n\n n += 1;\n\n }\n\n return n;\n\n }"
] | [
"0.7297159",
"0.70575464",
"0.6988471",
"0.66688865",
"0.6606241",
"0.6602437",
"0.65999925",
"0.6539316",
"0.6529994",
"0.6518619",
"0.6518619",
"0.65066963",
"0.64440316",
"0.64422756",
"0.63403636",
"0.6334615",
"0.63315934",
"0.63312143",
"0.63097674",
"0.6290967",
"0.62888896",
"0.6282688",
"0.6266477",
"0.6250114",
"0.6238222",
"0.6193067",
"0.61930436",
"0.61523455",
"0.6142466",
"0.6137419",
"0.6121092",
"0.6091364",
"0.6086571",
"0.6063933",
"0.605617",
"0.6032134",
"0.6027523",
"0.602318",
"0.6008675",
"0.59993625",
"0.5984933",
"0.59793377",
"0.5965926",
"0.5960375",
"0.5911582",
"0.59061193",
"0.5893601",
"0.58812183",
"0.58796537",
"0.5878914",
"0.5860973",
"0.58608925",
"0.58553004",
"0.58514357",
"0.58396965",
"0.58387786",
"0.5828832",
"0.5802592",
"0.5793218",
"0.5783215",
"0.5782428",
"0.57817113",
"0.5778195",
"0.57766384",
"0.57713026",
"0.5761274",
"0.5748155",
"0.57305294",
"0.5726213",
"0.5723502",
"0.57223755",
"0.5720896",
"0.5719518",
"0.5710758",
"0.5706689",
"0.56992215",
"0.5696864",
"0.5665391",
"0.56632584",
"0.56573105",
"0.56554013",
"0.5654376",
"0.56475717",
"0.5642422",
"0.56403685",
"0.5638177",
"0.56377035",
"0.56298614",
"0.56212693",
"0.5619331",
"0.56094867",
"0.5594141",
"0.55930686",
"0.5589706",
"0.55872977",
"0.5582322",
"0.5579011",
"0.5576199",
"0.5574277",
"0.5573934",
"0.5564015"
] | 0.0 | -1 |
int numTimesLooped = 10000; | @Override
public void run() {
long startTime = System.nanoTime();
int value = 0;
int i = 0;
MainActivity tester = new MainActivity();
System.gc();
for (; i < testCases; i++) {
value += tester.intMethod(value);
}
long finishTime = System.nanoTime();
Log.d("MAIN ACTIVITY",
"************** math = " + tester.intMethod(100));
long totalTime = finishTime - startTime;
long displayTime1 = (totalTime / 1000);
long displayTime2 = (displayTime1 / 1000);
long displayTime3 = (displayTime2 / 1000);
Log.d("MAIN ACTIVITY", "value: " + value + " total time: "
+ totalTime + " display: " + displayTime1 + ", "
+ displayTime2 + ", " + displayTime3);
longToChange = displayTime1;
Toast.makeText(
getApplicationContext(),
"Total: " + value + " Total Time : " + displayTime1
+ " μs. " + displayTime2 + " ms. " + displayTime3
+ " ns.", Toast.LENGTH_LONG).show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void increment() {\n for (int i=0; i < 10000; i++) {\n count++;\n }\n }",
"static void loopcomp () {\r\n\t\tint t40k= timer(8000,40000); \r\n\t\tint t1k= timer(8000,1000); \r\n\t\tSystem.out.println(\"Total number of loops for printing every 40k loops = \" + t40k);\r\n\t\tSystem.out.println(\"Total number of loops for printing every 1k loops = \"+ t1k);\r\n\t}",
"public void incrementLoopCount() {\n this.loopCount++;\n }",
"@Override\r\n public void run() {\n try {\r\n for (int x = 1; x <= 10500; x++) {\r\n System.out.println(x);\r\n sleep(5000);\r\n if (x % 50 == 0) {\r\n System.out.println(\"counting\");\r\n }\r\n }\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public void run( ) {\n long sum = 0;\n for (int i = 0; i < 1000; i++) {\n sum += i;\n }\n System.out.println(sum);\n }",
"void test(int loop){\n\t\tfor(int i=0; i<loop; i++){\n\t\t\ttest(loop / 2);\n\t\t}\n//\t\tSystem.out.printf(\"loop done: %d\\n\", loop);\n//\t\tlong end = System.nanoTime();\n\t}",
"public int getNumTimes();",
"public long getLoopTime();",
"@Override public void init_loop() {\n loop_cnt_++;\n }",
"private static void testLongLoop() {\n test(1000 * 1000 * 1000);\n //uncomment the following line to see the hand-written cache performance\n //testManual( 1000 * 1000 * 1000 );\n }",
"private static void testLongLoop() {\n test(1000 * 1000 * 1000);\n //uncomment the following line to see the hand-written cache performance\n //testManual( 1000 * 1000 * 1000 );\n }",
"static void loop() {\r\n\r\n\t\tfor (int i =1; i<=10; i++) { \r\n\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n Runnable run = new Runnable() {\n private int origin = 0;\n @Override\n public void run() {\n for (int i=0;i<2;i++) {\n int value = ++(origin);\n try {\n TimeUnit.SECONDS.sleep(2);\n }catch (InterruptedException e){\n e.printStackTrace();\n }\n System.out.print(Thread.currentThread().getId()+\":\"+value+\"\\n\");\n }\n }\n };\n for(int i=0;i<100;i++){\n new Thread(run).start();\n }\n }",
"public static void main(String[] args) {\n\t\tint maxRepeats = 0, number = -1;\n\t\tfor(int i = 1; i < 1000; i++) {\n\t\t\tif(!willTerminate(i)) {\n\t\t\t\tList<Integer> remainders = new ArrayList<Integer>();\n\t\t\t\tint repeats = numberOfRepeats(i, remainders);\n\t\t\t\tif(repeats > maxRepeats) {\n\t\t\t\t\tmaxRepeats = repeats;\n\t\t\t\t\tnumber = i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(number);\n\t}",
"int getRepeatCount();",
"int getIterations();",
"int getServerProcessingIterations();",
"@Override\r\n public void run() {\n super.run();\r\n for (int i = 0; i < 50000; i++) {\r\n System.out.println(\"i=\" + (i + 1));\r\n }\r\n }",
"@Test\n void shouldIncrementCounter100kTimes() throws InterruptedException {\n Collection<Thread> threads = new ArrayList<>();\n for (int threadIdx = 0; threadIdx < 20; threadIdx++) {\n Thread thread = new Thread(() -> {\n for (int i = 0; i < 100_000 / 20; i++) {\n counter.increment();\n }\n });\n thread.start();\n threads.add(thread);\n }\n for (Thread thread : threads) {\n thread.join();\n }\n\n // then: counter value should be 100k\n assertEquals(100_000, counter.total(),\n \"Counter wasn't incremented expected number of times\");\n }",
"private static void test1() {\n\n\tint n=10000;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint val=rand7();\n\t\t\tcount[val]++;\n\t\t}\n\t\t\n\t\tfor(int i:count)\n\t\t\tSystem.out.println(i);\n\t}",
"@Override\r\n\tpublic void run() {\r\n\t\tfor ( int i = 0; i < 10; i++ ) {\r\n\t\t\tSystem.out.println(i);\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(900);\r\n\t\t\t}catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic Integer call() {\n\t\tint count = ThreadLocalRandom.current().nextInt(1, 11);\n\n\t\tfor (int i = 1; i <= count; i++) {\n\t\t\tSystem.out.println(\"Running...\" + i);\n\t\t}\n\n\t\treturn count;\n\t}",
"public static void pause() {\n int m = 0;\n for (int j = 0; j <= 1000000000; ++j) {\n for (int i = 0; i <= 1000000000; ++i) ++m;\n }\n\n }",
"public void run() {\n int counter = 0;\n while (true) {\n counter++;\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.out.println(counter);\n if (counter > 5) break;\n }\n }",
"public void loop(){\n\t\t\n\t}",
"public void nextIteration() {t++;}",
"public void crunch(){\n cpuBurstTime--;\n rem--;\n }",
"int getServerWorkIterations();",
"static int timer (long maxTime, int loopSteps) {\r\n\t\tlong TStart = System.currentTimeMillis(); //starting time\r\n\t\tlong TEnd = TStart + maxTime; \r\n\t\tint t=0;\r\n\t\twhile (System.currentTimeMillis() <= TEnd) { //\r\n\t\t\tt++; //loop counter \r\n\t\t\tif (t % loopSteps == 0) { \r\n\t\t\t\tSystem.out.println(\"Number of loops: \"+t);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Total number of loops: \"+t); \r\n\t\treturn t;\r\n\t}",
"public void loop(){\n\t}",
"static long GetCycleCount() {\n\t\treturn System.currentTimeMillis();\n\t}",
"public void time(int value) \n{\n runtimes = value;\n}",
"public static void main(String[] args) {\n int a = 0;\r\n int numLoops = 0;\r\n Scanner userInputScanner = new Scanner(System.in);\r\n \r\n System.out.print(\"How many times do you want to loop? \");\r\n try {\r\n numLoops = userInputScanner.nextInt();\r\n } catch (Exception e) {\r\n System.out.println(\"Error in integer entered. Not an integer\");\r\n }\r\n \r\n while (a < numLoops ) {\r\n System.out.println(\"a is: \" + a);\r\n a++ ;\r\n \r\n if ((a % 1000) == 0) {\r\n System.out.println(\"Still Working!\");\r\n }\r\n \r\n } //end while\r\n System.out.println(\"I'm outside of the while loop!\");\r\n System.out.println(\"a is: \" + a );\r\n\r\n\r\n }",
"public void resetLoop(){\n\t\tloopTime = 0;\n\t}",
"public int wait_cycle(){\n\t\tRandom r1=new Random();\n\t\tint r2=r1.nextInt((999)+1)+1;\n\t\treturn r2;\n\t}",
"public void incrementTimesPlayed() {\r\n\t\ttimesPlayed++;\r\n\t}",
"public int getLoopCount() {\n return this.loopCount;\n }",
"@Override\r\n\tpublic void gameLoopLogic(double time) {\n\r\n\t}",
"@Override\r\n\tpublic void run() {\n\r\n\t\tfor (int i = 0; i < 20; i++) {\r\n\t\t\ttry {\r\n\t\t\t\tsleep(1000);\r\n\t\t\t\tSystem.out.println(\"TTT\"+i);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}",
"Loop createLoop();",
"public void loop(){\n \n \n }",
"public int getLoopCount() {\n\t\treturn numLoops;\n\t}",
"public void faster()\n {\n if(speed < 9){\n speed += 1;\n }\n }",
"@Override\n public void run() {\n while(true){\n// double a = Math.random()*Math.random();//占用 CPU\n// System.out.println(a);\n }\n }",
"protected int getTimesOptimized()\r\n {\r\n return timesOptimized;\r\n }",
"public void run() {\nfor (int i = 0; i < times ; i++) {\n System.out.print(ToPrint + \"-\");\n }\n }",
"void speedUp(int a);",
"public void resetRunCount() {\n\n }",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t\tint i=0; \r\n\t\twhile(true) {\r\n\t\t\t System.out.print(i);\r\n\t\t\tSystem.out.print(\"rahul\");\r\n\t\t\t try {\r\n\t\t\t\tThread.sleep(1000);\r\n\t\t\t\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t if(i==10) {\r\n\t\t\t\t i=0;\r\n\t\t\t }\r\n\t\t\t i++;\r\n\t\t }\r\n\t\t\r\n\t}",
"public int getLoopCount() {\n\t\treturn loopCount;\n\t}",
"@Override\n\tpublic void run() {\n\t\tfor(int x = 0; x< 10; x++){\n\t\t\tSystem.out.println(Thread.currentThread().getName()+\" -> \"+(int)(Math.random()*10));\n\t\t}\n\t\t\n\t}",
"public void step() {\n \tinternaltime ++;\n \n }",
"@Override\n public void run() {\n add10000();\n }",
"private static int randomCycleCap() {\n int newValue = 0;\n int iterations = 3;\n Random bombRandGen = new Random();\n\n for (int i = 0; i <= iterations; i++) {\n newValue += bombRandGen.nextInt(4);\n }\n\n return newValue;\n }",
"public void run() {\n\t\t\t\t\tfor (int i = 0; i < times; i++) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tlogger.info(String.format(\"线程-%s:总数%d,第%d次\", name, times, i));\n\t\t\t\t\t\t\tThread.sleep(divide);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}",
"public void timeToRunDec()\n\t{\n\t\tthis.time_to_run -- ;\n\t}",
"@Ignore\r\n @Test\r\n public void speedTest() throws InterruptedException {\n for (int i = 0; i < 10; i++) {\r\n singleSpeedTest();\r\n }\r\n }",
"public long timeIncrement(long reps) {\n long result = 0;\n for (; result < reps; result++) {\n }\n return result;\n }",
"@Override\n\tpublic void run() {\n\t\t\n\t\tfor(int i = 0 ;i<10;i++){\n\t\t\tSystem.out.println(\"Runner \"+i);\n\t\t}\n\t}",
"Long getRunningCount();",
"public static synchronized void inccount()\r\n\t{\r\n\t\tcount++;\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\tint i=0;\r\n\t\twhile(i<1000) {\r\n\t\t\tq.put(i++);\r\n\t\t}\r\n\t}",
"protected void runEachSecond() {\n \n }",
"private synchronized void incrementCount()\n\t{\n\t\tcount++;\n\t}",
"int getNumIterations(int precision);",
"public static void main(String[] args) {\n\tint i=1;\n\tdo\n\t{\n\t\tSystem.out.println(i);\n\t\ti++;\n\t}\n\twhile(i<=10);\n\t\n}",
"private void loopy()\n\t{\n\t\tboolean isDone = false;\n\t\tint count = 0;\n\n\t\twhile (!isDone)\n\t\t// Test the variable\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"blah blah blah\");\n\t\t\t// Eventually change the loop variable\n\t\t\tcount++;\n\t\t\tif (count >= 10)\n\t\t\t{\n\t\t\t\tisDone = true; // update variable\n\t\t\t}\n\t\t}\n\n\t\tfor (int loop = 0; loop < 30; loop += 2)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"The loop value is : \" + loop);\n\t\t}\n\t}",
"private void loop() {\r\n\t\tfloat elapsed;\r\n\t\tfloat accumulated = 0f;\r\n\t\tfloat interval = 1f / TARGET_UPS;\r\n\t\tdouble time;\r\n\t\tdouble lastCall = System.nanoTime();\r\n\t\t\r\n\t\trunning = true;\r\n\t\t//loop while running and the window hasn't received a close command\r\n\t\twhile (running) {\r\n\t\t\ttime = System.nanoTime();\r\n\t\t\t\r\n\t\t\telapsed = (float) ((time-lastCall) / 1e9);\r\n\t\t\tlastCall = time;\r\n\t\t\t\r\n\t\t\taccumulated += elapsed;\r\n\t\t\t\r\n\t\t\twhile (accumulated >= interval) {\r\n\t\t\t\tupdate();\r\n\t\t\t\taccumulated -= interval;\r\n\t\t\t}\r\n\t\t\t//render once per loop, then wait until the render time slot is over before restarting\r\n\t\t\tgame.render();\r\n\t\t\tsync(lastCall/1e9);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\tfor (int i = 6; i <= 10; i++) {\r\n System.out.println(Thread.currentThread().getName() + \": \" + i); \t\r\n\r\n}\r\n\t}",
"public int getLoopInterval()\r\n {\r\n return loopInterval;\r\n }",
"public void testForNThreads();",
"@Override\r\n\tpublic void iterateCount() {\n\t\t\r\n\t}",
"public static void main(String[] args) {\n int counter = 1;\n while (counter <=500){\n if (counter % 7 == 0 || counter % 5 == 0 || counter % 3 == 0){\n System.out.println( counter);\n }\n counter ++;\n }\n\n int counter2 = 500;\n do {\n System.out.println(\"do counter < 100\");\n }while (counter2 < 100); //mind. 1 Durchlauf da Bedingung am schluss ist, sonst gleich wie while\n }",
"@Override\r\n\tpublic void doTimeStep() {\n\t\tthis.run(Critter.getRandomInt(8));\r\n\t}",
"@Override\n\tpublic void run() {\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t\tSystem.out.println(\"uzay \" + i);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tlong milli1 = System.currentTimeMillis();\n\t\t\tint[] algoriteOne = fillArray(80000000);\n\t\t\tlong milli2 = System.currentTimeMillis();\n\t\t\tSystem.out.println(\"Test \" + (i+1) + \" milis: \" + (milli2 - milli1));\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\t\nfor(int contador=1;contador<=100;contador+=1)\n{\n\tSystem.out.println(contador);\n}\n\t}",
"private void _wait() {\n\t\tfor (int i = 1000; i > 0; i--)\n\t\t\t;\n\t}",
"public static void main(String[] args) {\n\n\n counter(10);\n }",
"public static void main(String[] args) { \r\n\t\t\r\n long elapsed, time=0; \r\n\r\n for (int n=100; n < 1000; n *= 2) { \r\n \t\t// Set the time variable. This will be used\r\n \t\t// later to output the time the loops have run.\r\n time = System.nanoTime(); \r\n int [] x = new int[n]; \r\n \r\n // Loop through x.\r\n for (int i=1; i<n; i++) \r\n x[i]=x[i-1]*2; \r\n\r\n // Set the time that was elapsed for the loop\r\n // and print it out.\r\n elapsed = System.nanoTime() - time; \r\n System.out.print(n + \"\\t\" + elapsed); \r\n\r\n // Reset time. We will run another loop to measure\r\n // the time again.\r\n time = System.nanoTime(); \r\n\r\n x=new int[n]; \r\n \r\n // Loop again. \r\n for (int i=1; i<n; i++) \r\n for (int j=1; j<n; j++) \r\n x[j]=x[j-1]*2; \r\n\r\n // Set the elapsed time for the \r\n // nested loops and print it out.\r\n elapsed = System.nanoTime() - time; \r\n System.out.println(\"\\t\" + elapsed); \r\n } \r\n\t}",
"private void plusTime(){\n\n if(totalTimeCountInMilliseconds < 10000)\n {\n countDownTimer.cancel();\n countDownTimer = new MyCountDown(totalTimeCountInMilliseconds + 3000, 50);// give extra 3000 milliseconds if they get the answer right\n }\n else\n {\n countDownTimer.cancel();\n countDownTimer = new MyCountDown(10000, 50);// set the timer to 10000 millisec if totalTimeCountInMilliseconds + 3000 > 10000\n }\n\n countDownTimer.start();\n\n\n }",
"public int slowWindowsIterations() {\n if (Util.isWindows())\n return ITERATIONS / 5;\n return ITERATIONS;\n }",
"private static void timerTest2() {\n\t\tTimer timer = new Timer();\n\t\ttimer.schedule(new TimerTask() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (count < 5) {\n\t\t\t\t\tSystem.out.println(\"timertest2\" + \" \" + ++count);\n\t\t\t\t} else {\n\t\t\t\t\ttimer.cancel();\n\t\t\t\t}\n\n\t\t\t}\n\t\t}, 2000, 1000);\n\n\t}",
"public void nextIteration()\n {\n actuelIteration++;\n }",
"@Override\n\tpublic void run() {\n\t\tint result;\n\t\tRandom random=new Random(Thread.currentThread().getId());\n\t\twhile (true) {\n\t\t\tresult=1000/(int)(random.nextDouble()*1000000000);\n\t\t\tif (Thread.currentThread().isInterrupted()) {\n\t\t\t\tSystem.out.printf(\"%d : interrupted\\n\",Thread.currentThread().getId());\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"@Override\r\n public long problem2() {\r\n ArrayList<String> arrList = new ArrayList<>();\r\n long start = System.currentTimeMillis(); \r\n for(int i = 0; i<1234567; i++){\r\n arrList.add(Integer.toString(i));\r\n }\r\n long end = System.currentTimeMillis(); \r\n return end - start; \r\n }",
"public static void main(String[] args) {\n double SumOfTimes = 0;\n for(int j=0; j<100; j++) {\n\n TimeCounter timer = new TimeCounter();\n timer.StartToCount();\n\n for (int i = 1; i <= 100000; i++) {\n if (i % 3 == 0) {\n System.out.print(\"fizz \");\n }\n if (i % 5 == 0) {\n System.out.print(\"buzz\");\n }\n if (i % 3 != 0 && i % 5 != 0) {\n System.out.print(i);\n }\n System.out.println();\n }\n\n timer.FinishToCount();\n SumOfTimes+=timer.GetCountedTime();\n\n }\n System.out.println(\"Average time = \"+SumOfTimes/100); // Average time = 0.318....... (in my processor)\n }",
"private void randomTest(){\n\n int time = 5 ;\n\n test(time) ;\n }",
"public void run() //Called by the Timer when scheduled.\n {\n timeElapsed++;\n if (timeElapsed > 999) //999 is the highest 3 digit integer, the highest number that can\n {\t\t\t\t\t\t\t //be shown on the displays. Beyond that, the player automatically loses.\n endGame(false);\n return;\n }\n repaint();\n }",
"public int getCycles();",
"public static void dormir(long milis)\r\n\t{\r\n\t\tlong inicial=System.currentTimeMillis();\r\n\t\twhile(System.currentTimeMillis()-inicial < milis) {/*Esperar a que pase el tiempo*/}\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t\tfor(int i=0;i<=4;i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Hii ....\");\r\n\t\t\ttry {\r\n\t\t\t\tThread.currentThread().sleep(1000);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private static void asymptoticAnalysis() {\n\t\tfor(int i = 1; i <= 10; i++) {\n\t\t\tint[] array = getMeRandomArray(100*i);\n\t\t\t// Start timer here\n\t\t\tSystem.out.println(maximumSubarray(array));\n\t\t\t// End timer here\n\t\t\t// Print time here\n\t\t}\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tint loopidx = 1\r\n\t\tint sum =0;\r\n\t\tfinal LAST_loop_IDX =10;\r\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t\twhile(true){\n\t\t\t\t\t\n\t\t\t\t\tlong time = System.currentTimeMillis();\n\t\t\t\t\tgameLoop();\n\t\t\t\t\t\n\t\t\t\t\tlong waitTime = 100 - time;\n\t\t\t\t\t\n\t\t\t\t\tif(waitTime < 10){\n\t\t\t\t\t\t\n\t\t\t\t\t\twaitTime = 10;\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(waitTime);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"@Override\n\tpublic int getIterationsNumber() {\n\t\treturn 0;\n\t}",
"public void increaseCount(){\n myCount++;\n }",
"public void incrementCount(){\n count+=1;\n }",
"public static void main(String[] args) {\n int count = 0;\n int sum = 0;\n final int supremum = 1000;\n\n while (count < supremum) {\n if ((count % 3) == 0 || (count % 5) == 0) {\n sum += count;\n }\n count += 1;\n }\n System.out.println(sum);\n }",
"void incrementCount();",
"public int run() {\n\n int n = 1;\n\n int primeCounter = 0;\n\n while (true) {\n\n if (isPrime.run(n) == true) {\n\n primeCounter += 1;\n\n }\n\n if (primeCounter == 10001) {\n\n break;\n\n }\n\n n += 1;\n\n }\n\n return n;\n\n }"
] | [
"0.7297159",
"0.70575464",
"0.6988471",
"0.66688865",
"0.6606241",
"0.6602437",
"0.65999925",
"0.6539316",
"0.6529994",
"0.6518619",
"0.6518619",
"0.65066963",
"0.64440316",
"0.64422756",
"0.63403636",
"0.6334615",
"0.63315934",
"0.63312143",
"0.63097674",
"0.6290967",
"0.62888896",
"0.6282688",
"0.6266477",
"0.6250114",
"0.6238222",
"0.6193067",
"0.61930436",
"0.61523455",
"0.6142466",
"0.6137419",
"0.6121092",
"0.6091364",
"0.6086571",
"0.6063933",
"0.605617",
"0.6032134",
"0.6027523",
"0.602318",
"0.6008675",
"0.59993625",
"0.5984933",
"0.59793377",
"0.5965926",
"0.5960375",
"0.5911582",
"0.59061193",
"0.5893601",
"0.58812183",
"0.58796537",
"0.5878914",
"0.5860973",
"0.58608925",
"0.58553004",
"0.58514357",
"0.58396965",
"0.58387786",
"0.5828832",
"0.5802592",
"0.5793218",
"0.5783215",
"0.5782428",
"0.57817113",
"0.5778195",
"0.57766384",
"0.57713026",
"0.5761274",
"0.5748155",
"0.57305294",
"0.5726213",
"0.5723502",
"0.57223755",
"0.5720896",
"0.5719518",
"0.5710758",
"0.5706689",
"0.56992215",
"0.5696864",
"0.5665391",
"0.56632584",
"0.56573105",
"0.56554013",
"0.5654376",
"0.56475717",
"0.5642422",
"0.56403685",
"0.5638177",
"0.56377035",
"0.56298614",
"0.56212693",
"0.5619331",
"0.56094867",
"0.5594141",
"0.55930686",
"0.5589706",
"0.55872977",
"0.5582322",
"0.5579011",
"0.5576199",
"0.5574277",
"0.5573934",
"0.5564015"
] | 0.0 | -1 |
int numTimesLooped = 10000; | @Override
public void run() {
long startTime = System.nanoTime();
int value = 0;
int i = 0;
System.gc();
for (; i < testCases; i++) {
value += MainActivity.intMethod2(value);
}
long finishTime = System.nanoTime();
long totalTime = finishTime - startTime;
long displayTime1 = (totalTime / 1000);
long displayTime2 = (displayTime1 / 1000);
long displayTime3 = (displayTime2 / 1000);
Log.d("MAIN ACTIVITY", "total time: " + totalTime + " display: "
+ displayTime1 + ", " + displayTime2 + ", " + displayTime3);
longToChange = displayTime1;
Toast.makeText(
getApplicationContext(),
"Value: " + value + "Total Time : " + displayTime1
+ " μs. " + displayTime2 + " ms. " + displayTime3
+ " ns.", Toast.LENGTH_LONG).show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void increment() {\n for (int i=0; i < 10000; i++) {\n count++;\n }\n }",
"static void loopcomp () {\r\n\t\tint t40k= timer(8000,40000); \r\n\t\tint t1k= timer(8000,1000); \r\n\t\tSystem.out.println(\"Total number of loops for printing every 40k loops = \" + t40k);\r\n\t\tSystem.out.println(\"Total number of loops for printing every 1k loops = \"+ t1k);\r\n\t}",
"public void incrementLoopCount() {\n this.loopCount++;\n }",
"@Override\r\n public void run() {\n try {\r\n for (int x = 1; x <= 10500; x++) {\r\n System.out.println(x);\r\n sleep(5000);\r\n if (x % 50 == 0) {\r\n System.out.println(\"counting\");\r\n }\r\n }\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public void run( ) {\n long sum = 0;\n for (int i = 0; i < 1000; i++) {\n sum += i;\n }\n System.out.println(sum);\n }",
"void test(int loop){\n\t\tfor(int i=0; i<loop; i++){\n\t\t\ttest(loop / 2);\n\t\t}\n//\t\tSystem.out.printf(\"loop done: %d\\n\", loop);\n//\t\tlong end = System.nanoTime();\n\t}",
"public int getNumTimes();",
"public long getLoopTime();",
"@Override public void init_loop() {\n loop_cnt_++;\n }",
"private static void testLongLoop() {\n test(1000 * 1000 * 1000);\n //uncomment the following line to see the hand-written cache performance\n //testManual( 1000 * 1000 * 1000 );\n }",
"private static void testLongLoop() {\n test(1000 * 1000 * 1000);\n //uncomment the following line to see the hand-written cache performance\n //testManual( 1000 * 1000 * 1000 );\n }",
"static void loop() {\r\n\r\n\t\tfor (int i =1; i<=10; i++) { \r\n\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n Runnable run = new Runnable() {\n private int origin = 0;\n @Override\n public void run() {\n for (int i=0;i<2;i++) {\n int value = ++(origin);\n try {\n TimeUnit.SECONDS.sleep(2);\n }catch (InterruptedException e){\n e.printStackTrace();\n }\n System.out.print(Thread.currentThread().getId()+\":\"+value+\"\\n\");\n }\n }\n };\n for(int i=0;i<100;i++){\n new Thread(run).start();\n }\n }",
"public static void main(String[] args) {\n\t\tint maxRepeats = 0, number = -1;\n\t\tfor(int i = 1; i < 1000; i++) {\n\t\t\tif(!willTerminate(i)) {\n\t\t\t\tList<Integer> remainders = new ArrayList<Integer>();\n\t\t\t\tint repeats = numberOfRepeats(i, remainders);\n\t\t\t\tif(repeats > maxRepeats) {\n\t\t\t\t\tmaxRepeats = repeats;\n\t\t\t\t\tnumber = i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(number);\n\t}",
"int getRepeatCount();",
"int getIterations();",
"int getServerProcessingIterations();",
"@Override\r\n public void run() {\n super.run();\r\n for (int i = 0; i < 50000; i++) {\r\n System.out.println(\"i=\" + (i + 1));\r\n }\r\n }",
"@Test\n void shouldIncrementCounter100kTimes() throws InterruptedException {\n Collection<Thread> threads = new ArrayList<>();\n for (int threadIdx = 0; threadIdx < 20; threadIdx++) {\n Thread thread = new Thread(() -> {\n for (int i = 0; i < 100_000 / 20; i++) {\n counter.increment();\n }\n });\n thread.start();\n threads.add(thread);\n }\n for (Thread thread : threads) {\n thread.join();\n }\n\n // then: counter value should be 100k\n assertEquals(100_000, counter.total(),\n \"Counter wasn't incremented expected number of times\");\n }",
"private static void test1() {\n\n\tint n=10000;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint val=rand7();\n\t\t\tcount[val]++;\n\t\t}\n\t\t\n\t\tfor(int i:count)\n\t\t\tSystem.out.println(i);\n\t}",
"@Override\r\n\tpublic void run() {\r\n\t\tfor ( int i = 0; i < 10; i++ ) {\r\n\t\t\tSystem.out.println(i);\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(900);\r\n\t\t\t}catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic Integer call() {\n\t\tint count = ThreadLocalRandom.current().nextInt(1, 11);\n\n\t\tfor (int i = 1; i <= count; i++) {\n\t\t\tSystem.out.println(\"Running...\" + i);\n\t\t}\n\n\t\treturn count;\n\t}",
"public static void pause() {\n int m = 0;\n for (int j = 0; j <= 1000000000; ++j) {\n for (int i = 0; i <= 1000000000; ++i) ++m;\n }\n\n }",
"public void run() {\n int counter = 0;\n while (true) {\n counter++;\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.out.println(counter);\n if (counter > 5) break;\n }\n }",
"public void loop(){\n\t\t\n\t}",
"public void nextIteration() {t++;}",
"public void crunch(){\n cpuBurstTime--;\n rem--;\n }",
"int getServerWorkIterations();",
"static int timer (long maxTime, int loopSteps) {\r\n\t\tlong TStart = System.currentTimeMillis(); //starting time\r\n\t\tlong TEnd = TStart + maxTime; \r\n\t\tint t=0;\r\n\t\twhile (System.currentTimeMillis() <= TEnd) { //\r\n\t\t\tt++; //loop counter \r\n\t\t\tif (t % loopSteps == 0) { \r\n\t\t\t\tSystem.out.println(\"Number of loops: \"+t);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Total number of loops: \"+t); \r\n\t\treturn t;\r\n\t}",
"public void loop(){\n\t}",
"static long GetCycleCount() {\n\t\treturn System.currentTimeMillis();\n\t}",
"public void time(int value) \n{\n runtimes = value;\n}",
"public static void main(String[] args) {\n int a = 0;\r\n int numLoops = 0;\r\n Scanner userInputScanner = new Scanner(System.in);\r\n \r\n System.out.print(\"How many times do you want to loop? \");\r\n try {\r\n numLoops = userInputScanner.nextInt();\r\n } catch (Exception e) {\r\n System.out.println(\"Error in integer entered. Not an integer\");\r\n }\r\n \r\n while (a < numLoops ) {\r\n System.out.println(\"a is: \" + a);\r\n a++ ;\r\n \r\n if ((a % 1000) == 0) {\r\n System.out.println(\"Still Working!\");\r\n }\r\n \r\n } //end while\r\n System.out.println(\"I'm outside of the while loop!\");\r\n System.out.println(\"a is: \" + a );\r\n\r\n\r\n }",
"public void resetLoop(){\n\t\tloopTime = 0;\n\t}",
"public int wait_cycle(){\n\t\tRandom r1=new Random();\n\t\tint r2=r1.nextInt((999)+1)+1;\n\t\treturn r2;\n\t}",
"public void incrementTimesPlayed() {\r\n\t\ttimesPlayed++;\r\n\t}",
"public int getLoopCount() {\n return this.loopCount;\n }",
"@Override\r\n\tpublic void gameLoopLogic(double time) {\n\r\n\t}",
"@Override\r\n\tpublic void run() {\n\r\n\t\tfor (int i = 0; i < 20; i++) {\r\n\t\t\ttry {\r\n\t\t\t\tsleep(1000);\r\n\t\t\t\tSystem.out.println(\"TTT\"+i);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}",
"Loop createLoop();",
"public void loop(){\n \n \n }",
"public int getLoopCount() {\n\t\treturn numLoops;\n\t}",
"public void faster()\n {\n if(speed < 9){\n speed += 1;\n }\n }",
"@Override\n public void run() {\n while(true){\n// double a = Math.random()*Math.random();//占用 CPU\n// System.out.println(a);\n }\n }",
"protected int getTimesOptimized()\r\n {\r\n return timesOptimized;\r\n }",
"public void run() {\nfor (int i = 0; i < times ; i++) {\n System.out.print(ToPrint + \"-\");\n }\n }",
"void speedUp(int a);",
"public void resetRunCount() {\n\n }",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t\tint i=0; \r\n\t\twhile(true) {\r\n\t\t\t System.out.print(i);\r\n\t\t\tSystem.out.print(\"rahul\");\r\n\t\t\t try {\r\n\t\t\t\tThread.sleep(1000);\r\n\t\t\t\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t if(i==10) {\r\n\t\t\t\t i=0;\r\n\t\t\t }\r\n\t\t\t i++;\r\n\t\t }\r\n\t\t\r\n\t}",
"public int getLoopCount() {\n\t\treturn loopCount;\n\t}",
"@Override\n\tpublic void run() {\n\t\tfor(int x = 0; x< 10; x++){\n\t\t\tSystem.out.println(Thread.currentThread().getName()+\" -> \"+(int)(Math.random()*10));\n\t\t}\n\t\t\n\t}",
"public void step() {\n \tinternaltime ++;\n \n }",
"@Override\n public void run() {\n add10000();\n }",
"private static int randomCycleCap() {\n int newValue = 0;\n int iterations = 3;\n Random bombRandGen = new Random();\n\n for (int i = 0; i <= iterations; i++) {\n newValue += bombRandGen.nextInt(4);\n }\n\n return newValue;\n }",
"public void run() {\n\t\t\t\t\tfor (int i = 0; i < times; i++) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tlogger.info(String.format(\"线程-%s:总数%d,第%d次\", name, times, i));\n\t\t\t\t\t\t\tThread.sleep(divide);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}",
"public void timeToRunDec()\n\t{\n\t\tthis.time_to_run -- ;\n\t}",
"@Ignore\r\n @Test\r\n public void speedTest() throws InterruptedException {\n for (int i = 0; i < 10; i++) {\r\n singleSpeedTest();\r\n }\r\n }",
"public long timeIncrement(long reps) {\n long result = 0;\n for (; result < reps; result++) {\n }\n return result;\n }",
"@Override\n\tpublic void run() {\n\t\t\n\t\tfor(int i = 0 ;i<10;i++){\n\t\t\tSystem.out.println(\"Runner \"+i);\n\t\t}\n\t}",
"Long getRunningCount();",
"public static synchronized void inccount()\r\n\t{\r\n\t\tcount++;\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\tint i=0;\r\n\t\twhile(i<1000) {\r\n\t\t\tq.put(i++);\r\n\t\t}\r\n\t}",
"protected void runEachSecond() {\n \n }",
"private synchronized void incrementCount()\n\t{\n\t\tcount++;\n\t}",
"int getNumIterations(int precision);",
"public static void main(String[] args) {\n\tint i=1;\n\tdo\n\t{\n\t\tSystem.out.println(i);\n\t\ti++;\n\t}\n\twhile(i<=10);\n\t\n}",
"private void loopy()\n\t{\n\t\tboolean isDone = false;\n\t\tint count = 0;\n\n\t\twhile (!isDone)\n\t\t// Test the variable\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"blah blah blah\");\n\t\t\t// Eventually change the loop variable\n\t\t\tcount++;\n\t\t\tif (count >= 10)\n\t\t\t{\n\t\t\t\tisDone = true; // update variable\n\t\t\t}\n\t\t}\n\n\t\tfor (int loop = 0; loop < 30; loop += 2)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"The loop value is : \" + loop);\n\t\t}\n\t}",
"private void loop() {\r\n\t\tfloat elapsed;\r\n\t\tfloat accumulated = 0f;\r\n\t\tfloat interval = 1f / TARGET_UPS;\r\n\t\tdouble time;\r\n\t\tdouble lastCall = System.nanoTime();\r\n\t\t\r\n\t\trunning = true;\r\n\t\t//loop while running and the window hasn't received a close command\r\n\t\twhile (running) {\r\n\t\t\ttime = System.nanoTime();\r\n\t\t\t\r\n\t\t\telapsed = (float) ((time-lastCall) / 1e9);\r\n\t\t\tlastCall = time;\r\n\t\t\t\r\n\t\t\taccumulated += elapsed;\r\n\t\t\t\r\n\t\t\twhile (accumulated >= interval) {\r\n\t\t\t\tupdate();\r\n\t\t\t\taccumulated -= interval;\r\n\t\t\t}\r\n\t\t\t//render once per loop, then wait until the render time slot is over before restarting\r\n\t\t\tgame.render();\r\n\t\t\tsync(lastCall/1e9);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\tfor (int i = 6; i <= 10; i++) {\r\n System.out.println(Thread.currentThread().getName() + \": \" + i); \t\r\n\r\n}\r\n\t}",
"public int getLoopInterval()\r\n {\r\n return loopInterval;\r\n }",
"public void testForNThreads();",
"@Override\r\n\tpublic void iterateCount() {\n\t\t\r\n\t}",
"public static void main(String[] args) {\n int counter = 1;\n while (counter <=500){\n if (counter % 7 == 0 || counter % 5 == 0 || counter % 3 == 0){\n System.out.println( counter);\n }\n counter ++;\n }\n\n int counter2 = 500;\n do {\n System.out.println(\"do counter < 100\");\n }while (counter2 < 100); //mind. 1 Durchlauf da Bedingung am schluss ist, sonst gleich wie while\n }",
"@Override\r\n\tpublic void doTimeStep() {\n\t\tthis.run(Critter.getRandomInt(8));\r\n\t}",
"@Override\n\tpublic void run() {\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t\tSystem.out.println(\"uzay \" + i);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tlong milli1 = System.currentTimeMillis();\n\t\t\tint[] algoriteOne = fillArray(80000000);\n\t\t\tlong milli2 = System.currentTimeMillis();\n\t\t\tSystem.out.println(\"Test \" + (i+1) + \" milis: \" + (milli2 - milli1));\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\t\nfor(int contador=1;contador<=100;contador+=1)\n{\n\tSystem.out.println(contador);\n}\n\t}",
"private void _wait() {\n\t\tfor (int i = 1000; i > 0; i--)\n\t\t\t;\n\t}",
"public static void main(String[] args) {\n\n\n counter(10);\n }",
"public static void main(String[] args) { \r\n\t\t\r\n long elapsed, time=0; \r\n\r\n for (int n=100; n < 1000; n *= 2) { \r\n \t\t// Set the time variable. This will be used\r\n \t\t// later to output the time the loops have run.\r\n time = System.nanoTime(); \r\n int [] x = new int[n]; \r\n \r\n // Loop through x.\r\n for (int i=1; i<n; i++) \r\n x[i]=x[i-1]*2; \r\n\r\n // Set the time that was elapsed for the loop\r\n // and print it out.\r\n elapsed = System.nanoTime() - time; \r\n System.out.print(n + \"\\t\" + elapsed); \r\n\r\n // Reset time. We will run another loop to measure\r\n // the time again.\r\n time = System.nanoTime(); \r\n\r\n x=new int[n]; \r\n \r\n // Loop again. \r\n for (int i=1; i<n; i++) \r\n for (int j=1; j<n; j++) \r\n x[j]=x[j-1]*2; \r\n\r\n // Set the elapsed time for the \r\n // nested loops and print it out.\r\n elapsed = System.nanoTime() - time; \r\n System.out.println(\"\\t\" + elapsed); \r\n } \r\n\t}",
"private void plusTime(){\n\n if(totalTimeCountInMilliseconds < 10000)\n {\n countDownTimer.cancel();\n countDownTimer = new MyCountDown(totalTimeCountInMilliseconds + 3000, 50);// give extra 3000 milliseconds if they get the answer right\n }\n else\n {\n countDownTimer.cancel();\n countDownTimer = new MyCountDown(10000, 50);// set the timer to 10000 millisec if totalTimeCountInMilliseconds + 3000 > 10000\n }\n\n countDownTimer.start();\n\n\n }",
"public int slowWindowsIterations() {\n if (Util.isWindows())\n return ITERATIONS / 5;\n return ITERATIONS;\n }",
"private static void timerTest2() {\n\t\tTimer timer = new Timer();\n\t\ttimer.schedule(new TimerTask() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (count < 5) {\n\t\t\t\t\tSystem.out.println(\"timertest2\" + \" \" + ++count);\n\t\t\t\t} else {\n\t\t\t\t\ttimer.cancel();\n\t\t\t\t}\n\n\t\t\t}\n\t\t}, 2000, 1000);\n\n\t}",
"public void nextIteration()\n {\n actuelIteration++;\n }",
"@Override\n\tpublic void run() {\n\t\tint result;\n\t\tRandom random=new Random(Thread.currentThread().getId());\n\t\twhile (true) {\n\t\t\tresult=1000/(int)(random.nextDouble()*1000000000);\n\t\t\tif (Thread.currentThread().isInterrupted()) {\n\t\t\t\tSystem.out.printf(\"%d : interrupted\\n\",Thread.currentThread().getId());\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"@Override\r\n public long problem2() {\r\n ArrayList<String> arrList = new ArrayList<>();\r\n long start = System.currentTimeMillis(); \r\n for(int i = 0; i<1234567; i++){\r\n arrList.add(Integer.toString(i));\r\n }\r\n long end = System.currentTimeMillis(); \r\n return end - start; \r\n }",
"public static void main(String[] args) {\n double SumOfTimes = 0;\n for(int j=0; j<100; j++) {\n\n TimeCounter timer = new TimeCounter();\n timer.StartToCount();\n\n for (int i = 1; i <= 100000; i++) {\n if (i % 3 == 0) {\n System.out.print(\"fizz \");\n }\n if (i % 5 == 0) {\n System.out.print(\"buzz\");\n }\n if (i % 3 != 0 && i % 5 != 0) {\n System.out.print(i);\n }\n System.out.println();\n }\n\n timer.FinishToCount();\n SumOfTimes+=timer.GetCountedTime();\n\n }\n System.out.println(\"Average time = \"+SumOfTimes/100); // Average time = 0.318....... (in my processor)\n }",
"private void randomTest(){\n\n int time = 5 ;\n\n test(time) ;\n }",
"public void run() //Called by the Timer when scheduled.\n {\n timeElapsed++;\n if (timeElapsed > 999) //999 is the highest 3 digit integer, the highest number that can\n {\t\t\t\t\t\t\t //be shown on the displays. Beyond that, the player automatically loses.\n endGame(false);\n return;\n }\n repaint();\n }",
"public int getCycles();",
"public static void dormir(long milis)\r\n\t{\r\n\t\tlong inicial=System.currentTimeMillis();\r\n\t\twhile(System.currentTimeMillis()-inicial < milis) {/*Esperar a que pase el tiempo*/}\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t\tfor(int i=0;i<=4;i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Hii ....\");\r\n\t\t\ttry {\r\n\t\t\t\tThread.currentThread().sleep(1000);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private static void asymptoticAnalysis() {\n\t\tfor(int i = 1; i <= 10; i++) {\n\t\t\tint[] array = getMeRandomArray(100*i);\n\t\t\t// Start timer here\n\t\t\tSystem.out.println(maximumSubarray(array));\n\t\t\t// End timer here\n\t\t\t// Print time here\n\t\t}\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tint loopidx = 1\r\n\t\tint sum =0;\r\n\t\tfinal LAST_loop_IDX =10;\r\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t\twhile(true){\n\t\t\t\t\t\n\t\t\t\t\tlong time = System.currentTimeMillis();\n\t\t\t\t\tgameLoop();\n\t\t\t\t\t\n\t\t\t\t\tlong waitTime = 100 - time;\n\t\t\t\t\t\n\t\t\t\t\tif(waitTime < 10){\n\t\t\t\t\t\t\n\t\t\t\t\t\twaitTime = 10;\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(waitTime);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"@Override\n\tpublic int getIterationsNumber() {\n\t\treturn 0;\n\t}",
"public void increaseCount(){\n myCount++;\n }",
"public void incrementCount(){\n count+=1;\n }",
"public static void main(String[] args) {\n int count = 0;\n int sum = 0;\n final int supremum = 1000;\n\n while (count < supremum) {\n if ((count % 3) == 0 || (count % 5) == 0) {\n sum += count;\n }\n count += 1;\n }\n System.out.println(sum);\n }",
"void incrementCount();",
"public int run() {\n\n int n = 1;\n\n int primeCounter = 0;\n\n while (true) {\n\n if (isPrime.run(n) == true) {\n\n primeCounter += 1;\n\n }\n\n if (primeCounter == 10001) {\n\n break;\n\n }\n\n n += 1;\n\n }\n\n return n;\n\n }"
] | [
"0.7297159",
"0.70575464",
"0.6988471",
"0.66688865",
"0.6606241",
"0.6602437",
"0.65999925",
"0.6539316",
"0.6529994",
"0.6518619",
"0.6518619",
"0.65066963",
"0.64440316",
"0.64422756",
"0.63403636",
"0.6334615",
"0.63315934",
"0.63312143",
"0.63097674",
"0.6290967",
"0.62888896",
"0.6282688",
"0.6266477",
"0.6250114",
"0.6238222",
"0.6193067",
"0.61930436",
"0.61523455",
"0.6142466",
"0.6137419",
"0.6121092",
"0.6091364",
"0.6086571",
"0.6063933",
"0.605617",
"0.6032134",
"0.6027523",
"0.602318",
"0.6008675",
"0.59993625",
"0.5984933",
"0.59793377",
"0.5965926",
"0.5960375",
"0.5911582",
"0.59061193",
"0.5893601",
"0.58812183",
"0.58796537",
"0.5878914",
"0.5860973",
"0.58608925",
"0.58553004",
"0.58514357",
"0.58396965",
"0.58387786",
"0.5828832",
"0.5802592",
"0.5793218",
"0.5783215",
"0.5782428",
"0.57817113",
"0.5778195",
"0.57766384",
"0.57713026",
"0.5761274",
"0.5748155",
"0.57305294",
"0.5726213",
"0.5723502",
"0.57223755",
"0.5720896",
"0.5719518",
"0.5710758",
"0.5706689",
"0.56992215",
"0.5696864",
"0.5665391",
"0.56632584",
"0.56573105",
"0.56554013",
"0.5654376",
"0.56475717",
"0.5642422",
"0.56403685",
"0.5638177",
"0.56377035",
"0.56298614",
"0.56212693",
"0.5619331",
"0.56094867",
"0.5594141",
"0.55930686",
"0.5589706",
"0.55872977",
"0.5582322",
"0.5579011",
"0.5576199",
"0.5574277",
"0.5573934",
"0.5564015"
] | 0.0 | -1 |
int numTimesLooped = 10000; | @Override
public void run() {
long startTime = System.nanoTime();
int value = 99;
int i = 0;
System.gc();
int time1 = MainActivity.intMethod2(value);
MainActivity tester = new MainActivity();
int time2 = tester.intMethod(value);;
long finishTime = System.nanoTime();
long totalTime = finishTime - startTime;
long displayTime1 = (totalTime / 1000);
long displayTime2 = (displayTime1 / 1000);
long displayTime3 = (displayTime2 / 1000);
Log.d("MAIN ACTIVITY", "total time: " + totalTime + " display: "
+ displayTime1 + ", " + displayTime2 + ", " + displayTime3);
longToChange = displayTime1;
Toast.makeText(
getApplicationContext(),
"Value: " + value + "Total Time : " + displayTime1
+ " μs. " + displayTime2 + " ms. " + displayTime3
+ " ns.", Toast.LENGTH_LONG).show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void increment() {\n for (int i=0; i < 10000; i++) {\n count++;\n }\n }",
"static void loopcomp () {\r\n\t\tint t40k= timer(8000,40000); \r\n\t\tint t1k= timer(8000,1000); \r\n\t\tSystem.out.println(\"Total number of loops for printing every 40k loops = \" + t40k);\r\n\t\tSystem.out.println(\"Total number of loops for printing every 1k loops = \"+ t1k);\r\n\t}",
"public void incrementLoopCount() {\n this.loopCount++;\n }",
"@Override\r\n public void run() {\n try {\r\n for (int x = 1; x <= 10500; x++) {\r\n System.out.println(x);\r\n sleep(5000);\r\n if (x % 50 == 0) {\r\n System.out.println(\"counting\");\r\n }\r\n }\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public void run( ) {\n long sum = 0;\n for (int i = 0; i < 1000; i++) {\n sum += i;\n }\n System.out.println(sum);\n }",
"void test(int loop){\n\t\tfor(int i=0; i<loop; i++){\n\t\t\ttest(loop / 2);\n\t\t}\n//\t\tSystem.out.printf(\"loop done: %d\\n\", loop);\n//\t\tlong end = System.nanoTime();\n\t}",
"public int getNumTimes();",
"public long getLoopTime();",
"@Override public void init_loop() {\n loop_cnt_++;\n }",
"private static void testLongLoop() {\n test(1000 * 1000 * 1000);\n //uncomment the following line to see the hand-written cache performance\n //testManual( 1000 * 1000 * 1000 );\n }",
"private static void testLongLoop() {\n test(1000 * 1000 * 1000);\n //uncomment the following line to see the hand-written cache performance\n //testManual( 1000 * 1000 * 1000 );\n }",
"static void loop() {\r\n\r\n\t\tfor (int i =1; i<=10; i++) { \r\n\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n Runnable run = new Runnable() {\n private int origin = 0;\n @Override\n public void run() {\n for (int i=0;i<2;i++) {\n int value = ++(origin);\n try {\n TimeUnit.SECONDS.sleep(2);\n }catch (InterruptedException e){\n e.printStackTrace();\n }\n System.out.print(Thread.currentThread().getId()+\":\"+value+\"\\n\");\n }\n }\n };\n for(int i=0;i<100;i++){\n new Thread(run).start();\n }\n }",
"public static void main(String[] args) {\n\t\tint maxRepeats = 0, number = -1;\n\t\tfor(int i = 1; i < 1000; i++) {\n\t\t\tif(!willTerminate(i)) {\n\t\t\t\tList<Integer> remainders = new ArrayList<Integer>();\n\t\t\t\tint repeats = numberOfRepeats(i, remainders);\n\t\t\t\tif(repeats > maxRepeats) {\n\t\t\t\t\tmaxRepeats = repeats;\n\t\t\t\t\tnumber = i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(number);\n\t}",
"int getRepeatCount();",
"int getIterations();",
"int getServerProcessingIterations();",
"@Override\r\n public void run() {\n super.run();\r\n for (int i = 0; i < 50000; i++) {\r\n System.out.println(\"i=\" + (i + 1));\r\n }\r\n }",
"@Test\n void shouldIncrementCounter100kTimes() throws InterruptedException {\n Collection<Thread> threads = new ArrayList<>();\n for (int threadIdx = 0; threadIdx < 20; threadIdx++) {\n Thread thread = new Thread(() -> {\n for (int i = 0; i < 100_000 / 20; i++) {\n counter.increment();\n }\n });\n thread.start();\n threads.add(thread);\n }\n for (Thread thread : threads) {\n thread.join();\n }\n\n // then: counter value should be 100k\n assertEquals(100_000, counter.total(),\n \"Counter wasn't incremented expected number of times\");\n }",
"private static void test1() {\n\n\tint n=10000;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint val=rand7();\n\t\t\tcount[val]++;\n\t\t}\n\t\t\n\t\tfor(int i:count)\n\t\t\tSystem.out.println(i);\n\t}",
"@Override\r\n\tpublic void run() {\r\n\t\tfor ( int i = 0; i < 10; i++ ) {\r\n\t\t\tSystem.out.println(i);\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(900);\r\n\t\t\t}catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic Integer call() {\n\t\tint count = ThreadLocalRandom.current().nextInt(1, 11);\n\n\t\tfor (int i = 1; i <= count; i++) {\n\t\t\tSystem.out.println(\"Running...\" + i);\n\t\t}\n\n\t\treturn count;\n\t}",
"public static void pause() {\n int m = 0;\n for (int j = 0; j <= 1000000000; ++j) {\n for (int i = 0; i <= 1000000000; ++i) ++m;\n }\n\n }",
"public void run() {\n int counter = 0;\n while (true) {\n counter++;\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.out.println(counter);\n if (counter > 5) break;\n }\n }",
"public void loop(){\n\t\t\n\t}",
"public void nextIteration() {t++;}",
"public void crunch(){\n cpuBurstTime--;\n rem--;\n }",
"int getServerWorkIterations();",
"static int timer (long maxTime, int loopSteps) {\r\n\t\tlong TStart = System.currentTimeMillis(); //starting time\r\n\t\tlong TEnd = TStart + maxTime; \r\n\t\tint t=0;\r\n\t\twhile (System.currentTimeMillis() <= TEnd) { //\r\n\t\t\tt++; //loop counter \r\n\t\t\tif (t % loopSteps == 0) { \r\n\t\t\t\tSystem.out.println(\"Number of loops: \"+t);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Total number of loops: \"+t); \r\n\t\treturn t;\r\n\t}",
"public void loop(){\n\t}",
"static long GetCycleCount() {\n\t\treturn System.currentTimeMillis();\n\t}",
"public void time(int value) \n{\n runtimes = value;\n}",
"public static void main(String[] args) {\n int a = 0;\r\n int numLoops = 0;\r\n Scanner userInputScanner = new Scanner(System.in);\r\n \r\n System.out.print(\"How many times do you want to loop? \");\r\n try {\r\n numLoops = userInputScanner.nextInt();\r\n } catch (Exception e) {\r\n System.out.println(\"Error in integer entered. Not an integer\");\r\n }\r\n \r\n while (a < numLoops ) {\r\n System.out.println(\"a is: \" + a);\r\n a++ ;\r\n \r\n if ((a % 1000) == 0) {\r\n System.out.println(\"Still Working!\");\r\n }\r\n \r\n } //end while\r\n System.out.println(\"I'm outside of the while loop!\");\r\n System.out.println(\"a is: \" + a );\r\n\r\n\r\n }",
"public void resetLoop(){\n\t\tloopTime = 0;\n\t}",
"public int wait_cycle(){\n\t\tRandom r1=new Random();\n\t\tint r2=r1.nextInt((999)+1)+1;\n\t\treturn r2;\n\t}",
"public void incrementTimesPlayed() {\r\n\t\ttimesPlayed++;\r\n\t}",
"public int getLoopCount() {\n return this.loopCount;\n }",
"@Override\r\n\tpublic void gameLoopLogic(double time) {\n\r\n\t}",
"@Override\r\n\tpublic void run() {\n\r\n\t\tfor (int i = 0; i < 20; i++) {\r\n\t\t\ttry {\r\n\t\t\t\tsleep(1000);\r\n\t\t\t\tSystem.out.println(\"TTT\"+i);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}",
"Loop createLoop();",
"public void loop(){\n \n \n }",
"public int getLoopCount() {\n\t\treturn numLoops;\n\t}",
"public void faster()\n {\n if(speed < 9){\n speed += 1;\n }\n }",
"@Override\n public void run() {\n while(true){\n// double a = Math.random()*Math.random();//占用 CPU\n// System.out.println(a);\n }\n }",
"protected int getTimesOptimized()\r\n {\r\n return timesOptimized;\r\n }",
"public void run() {\nfor (int i = 0; i < times ; i++) {\n System.out.print(ToPrint + \"-\");\n }\n }",
"void speedUp(int a);",
"public void resetRunCount() {\n\n }",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t\tint i=0; \r\n\t\twhile(true) {\r\n\t\t\t System.out.print(i);\r\n\t\t\tSystem.out.print(\"rahul\");\r\n\t\t\t try {\r\n\t\t\t\tThread.sleep(1000);\r\n\t\t\t\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t if(i==10) {\r\n\t\t\t\t i=0;\r\n\t\t\t }\r\n\t\t\t i++;\r\n\t\t }\r\n\t\t\r\n\t}",
"public int getLoopCount() {\n\t\treturn loopCount;\n\t}",
"@Override\n\tpublic void run() {\n\t\tfor(int x = 0; x< 10; x++){\n\t\t\tSystem.out.println(Thread.currentThread().getName()+\" -> \"+(int)(Math.random()*10));\n\t\t}\n\t\t\n\t}",
"public void step() {\n \tinternaltime ++;\n \n }",
"@Override\n public void run() {\n add10000();\n }",
"private static int randomCycleCap() {\n int newValue = 0;\n int iterations = 3;\n Random bombRandGen = new Random();\n\n for (int i = 0; i <= iterations; i++) {\n newValue += bombRandGen.nextInt(4);\n }\n\n return newValue;\n }",
"public void run() {\n\t\t\t\t\tfor (int i = 0; i < times; i++) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tlogger.info(String.format(\"线程-%s:总数%d,第%d次\", name, times, i));\n\t\t\t\t\t\t\tThread.sleep(divide);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}",
"public void timeToRunDec()\n\t{\n\t\tthis.time_to_run -- ;\n\t}",
"@Ignore\r\n @Test\r\n public void speedTest() throws InterruptedException {\n for (int i = 0; i < 10; i++) {\r\n singleSpeedTest();\r\n }\r\n }",
"public long timeIncrement(long reps) {\n long result = 0;\n for (; result < reps; result++) {\n }\n return result;\n }",
"@Override\n\tpublic void run() {\n\t\t\n\t\tfor(int i = 0 ;i<10;i++){\n\t\t\tSystem.out.println(\"Runner \"+i);\n\t\t}\n\t}",
"Long getRunningCount();",
"public static synchronized void inccount()\r\n\t{\r\n\t\tcount++;\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\tint i=0;\r\n\t\twhile(i<1000) {\r\n\t\t\tq.put(i++);\r\n\t\t}\r\n\t}",
"protected void runEachSecond() {\n \n }",
"private synchronized void incrementCount()\n\t{\n\t\tcount++;\n\t}",
"int getNumIterations(int precision);",
"public static void main(String[] args) {\n\tint i=1;\n\tdo\n\t{\n\t\tSystem.out.println(i);\n\t\ti++;\n\t}\n\twhile(i<=10);\n\t\n}",
"private void loopy()\n\t{\n\t\tboolean isDone = false;\n\t\tint count = 0;\n\n\t\twhile (!isDone)\n\t\t// Test the variable\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"blah blah blah\");\n\t\t\t// Eventually change the loop variable\n\t\t\tcount++;\n\t\t\tif (count >= 10)\n\t\t\t{\n\t\t\t\tisDone = true; // update variable\n\t\t\t}\n\t\t}\n\n\t\tfor (int loop = 0; loop < 30; loop += 2)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"The loop value is : \" + loop);\n\t\t}\n\t}",
"private void loop() {\r\n\t\tfloat elapsed;\r\n\t\tfloat accumulated = 0f;\r\n\t\tfloat interval = 1f / TARGET_UPS;\r\n\t\tdouble time;\r\n\t\tdouble lastCall = System.nanoTime();\r\n\t\t\r\n\t\trunning = true;\r\n\t\t//loop while running and the window hasn't received a close command\r\n\t\twhile (running) {\r\n\t\t\ttime = System.nanoTime();\r\n\t\t\t\r\n\t\t\telapsed = (float) ((time-lastCall) / 1e9);\r\n\t\t\tlastCall = time;\r\n\t\t\t\r\n\t\t\taccumulated += elapsed;\r\n\t\t\t\r\n\t\t\twhile (accumulated >= interval) {\r\n\t\t\t\tupdate();\r\n\t\t\t\taccumulated -= interval;\r\n\t\t\t}\r\n\t\t\t//render once per loop, then wait until the render time slot is over before restarting\r\n\t\t\tgame.render();\r\n\t\t\tsync(lastCall/1e9);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\tfor (int i = 6; i <= 10; i++) {\r\n System.out.println(Thread.currentThread().getName() + \": \" + i); \t\r\n\r\n}\r\n\t}",
"public int getLoopInterval()\r\n {\r\n return loopInterval;\r\n }",
"public void testForNThreads();",
"@Override\r\n\tpublic void iterateCount() {\n\t\t\r\n\t}",
"public static void main(String[] args) {\n int counter = 1;\n while (counter <=500){\n if (counter % 7 == 0 || counter % 5 == 0 || counter % 3 == 0){\n System.out.println( counter);\n }\n counter ++;\n }\n\n int counter2 = 500;\n do {\n System.out.println(\"do counter < 100\");\n }while (counter2 < 100); //mind. 1 Durchlauf da Bedingung am schluss ist, sonst gleich wie while\n }",
"@Override\r\n\tpublic void doTimeStep() {\n\t\tthis.run(Critter.getRandomInt(8));\r\n\t}",
"@Override\n\tpublic void run() {\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t\tSystem.out.println(\"uzay \" + i);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tlong milli1 = System.currentTimeMillis();\n\t\t\tint[] algoriteOne = fillArray(80000000);\n\t\t\tlong milli2 = System.currentTimeMillis();\n\t\t\tSystem.out.println(\"Test \" + (i+1) + \" milis: \" + (milli2 - milli1));\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\t\nfor(int contador=1;contador<=100;contador+=1)\n{\n\tSystem.out.println(contador);\n}\n\t}",
"private void _wait() {\n\t\tfor (int i = 1000; i > 0; i--)\n\t\t\t;\n\t}",
"public static void main(String[] args) {\n\n\n counter(10);\n }",
"public static void main(String[] args) { \r\n\t\t\r\n long elapsed, time=0; \r\n\r\n for (int n=100; n < 1000; n *= 2) { \r\n \t\t// Set the time variable. This will be used\r\n \t\t// later to output the time the loops have run.\r\n time = System.nanoTime(); \r\n int [] x = new int[n]; \r\n \r\n // Loop through x.\r\n for (int i=1; i<n; i++) \r\n x[i]=x[i-1]*2; \r\n\r\n // Set the time that was elapsed for the loop\r\n // and print it out.\r\n elapsed = System.nanoTime() - time; \r\n System.out.print(n + \"\\t\" + elapsed); \r\n\r\n // Reset time. We will run another loop to measure\r\n // the time again.\r\n time = System.nanoTime(); \r\n\r\n x=new int[n]; \r\n \r\n // Loop again. \r\n for (int i=1; i<n; i++) \r\n for (int j=1; j<n; j++) \r\n x[j]=x[j-1]*2; \r\n\r\n // Set the elapsed time for the \r\n // nested loops and print it out.\r\n elapsed = System.nanoTime() - time; \r\n System.out.println(\"\\t\" + elapsed); \r\n } \r\n\t}",
"private void plusTime(){\n\n if(totalTimeCountInMilliseconds < 10000)\n {\n countDownTimer.cancel();\n countDownTimer = new MyCountDown(totalTimeCountInMilliseconds + 3000, 50);// give extra 3000 milliseconds if they get the answer right\n }\n else\n {\n countDownTimer.cancel();\n countDownTimer = new MyCountDown(10000, 50);// set the timer to 10000 millisec if totalTimeCountInMilliseconds + 3000 > 10000\n }\n\n countDownTimer.start();\n\n\n }",
"public int slowWindowsIterations() {\n if (Util.isWindows())\n return ITERATIONS / 5;\n return ITERATIONS;\n }",
"private static void timerTest2() {\n\t\tTimer timer = new Timer();\n\t\ttimer.schedule(new TimerTask() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (count < 5) {\n\t\t\t\t\tSystem.out.println(\"timertest2\" + \" \" + ++count);\n\t\t\t\t} else {\n\t\t\t\t\ttimer.cancel();\n\t\t\t\t}\n\n\t\t\t}\n\t\t}, 2000, 1000);\n\n\t}",
"public void nextIteration()\n {\n actuelIteration++;\n }",
"@Override\n\tpublic void run() {\n\t\tint result;\n\t\tRandom random=new Random(Thread.currentThread().getId());\n\t\twhile (true) {\n\t\t\tresult=1000/(int)(random.nextDouble()*1000000000);\n\t\t\tif (Thread.currentThread().isInterrupted()) {\n\t\t\t\tSystem.out.printf(\"%d : interrupted\\n\",Thread.currentThread().getId());\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"@Override\r\n public long problem2() {\r\n ArrayList<String> arrList = new ArrayList<>();\r\n long start = System.currentTimeMillis(); \r\n for(int i = 0; i<1234567; i++){\r\n arrList.add(Integer.toString(i));\r\n }\r\n long end = System.currentTimeMillis(); \r\n return end - start; \r\n }",
"public static void main(String[] args) {\n double SumOfTimes = 0;\n for(int j=0; j<100; j++) {\n\n TimeCounter timer = new TimeCounter();\n timer.StartToCount();\n\n for (int i = 1; i <= 100000; i++) {\n if (i % 3 == 0) {\n System.out.print(\"fizz \");\n }\n if (i % 5 == 0) {\n System.out.print(\"buzz\");\n }\n if (i % 3 != 0 && i % 5 != 0) {\n System.out.print(i);\n }\n System.out.println();\n }\n\n timer.FinishToCount();\n SumOfTimes+=timer.GetCountedTime();\n\n }\n System.out.println(\"Average time = \"+SumOfTimes/100); // Average time = 0.318....... (in my processor)\n }",
"private void randomTest(){\n\n int time = 5 ;\n\n test(time) ;\n }",
"public void run() //Called by the Timer when scheduled.\n {\n timeElapsed++;\n if (timeElapsed > 999) //999 is the highest 3 digit integer, the highest number that can\n {\t\t\t\t\t\t\t //be shown on the displays. Beyond that, the player automatically loses.\n endGame(false);\n return;\n }\n repaint();\n }",
"public int getCycles();",
"public static void dormir(long milis)\r\n\t{\r\n\t\tlong inicial=System.currentTimeMillis();\r\n\t\twhile(System.currentTimeMillis()-inicial < milis) {/*Esperar a que pase el tiempo*/}\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t\tfor(int i=0;i<=4;i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Hii ....\");\r\n\t\t\ttry {\r\n\t\t\t\tThread.currentThread().sleep(1000);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private static void asymptoticAnalysis() {\n\t\tfor(int i = 1; i <= 10; i++) {\n\t\t\tint[] array = getMeRandomArray(100*i);\n\t\t\t// Start timer here\n\t\t\tSystem.out.println(maximumSubarray(array));\n\t\t\t// End timer here\n\t\t\t// Print time here\n\t\t}\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tint loopidx = 1\r\n\t\tint sum =0;\r\n\t\tfinal LAST_loop_IDX =10;\r\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t\twhile(true){\n\t\t\t\t\t\n\t\t\t\t\tlong time = System.currentTimeMillis();\n\t\t\t\t\tgameLoop();\n\t\t\t\t\t\n\t\t\t\t\tlong waitTime = 100 - time;\n\t\t\t\t\t\n\t\t\t\t\tif(waitTime < 10){\n\t\t\t\t\t\t\n\t\t\t\t\t\twaitTime = 10;\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(waitTime);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"@Override\n\tpublic int getIterationsNumber() {\n\t\treturn 0;\n\t}",
"public void increaseCount(){\n myCount++;\n }",
"public void incrementCount(){\n count+=1;\n }",
"public static void main(String[] args) {\n int count = 0;\n int sum = 0;\n final int supremum = 1000;\n\n while (count < supremum) {\n if ((count % 3) == 0 || (count % 5) == 0) {\n sum += count;\n }\n count += 1;\n }\n System.out.println(sum);\n }",
"void incrementCount();",
"public int run() {\n\n int n = 1;\n\n int primeCounter = 0;\n\n while (true) {\n\n if (isPrime.run(n) == true) {\n\n primeCounter += 1;\n\n }\n\n if (primeCounter == 10001) {\n\n break;\n\n }\n\n n += 1;\n\n }\n\n return n;\n\n }"
] | [
"0.7297159",
"0.70575464",
"0.6988471",
"0.66688865",
"0.6606241",
"0.6602437",
"0.65999925",
"0.6539316",
"0.6529994",
"0.6518619",
"0.6518619",
"0.65066963",
"0.64440316",
"0.64422756",
"0.63403636",
"0.6334615",
"0.63315934",
"0.63312143",
"0.63097674",
"0.6290967",
"0.62888896",
"0.6282688",
"0.6266477",
"0.6250114",
"0.6238222",
"0.6193067",
"0.61930436",
"0.61523455",
"0.6142466",
"0.6137419",
"0.6121092",
"0.6091364",
"0.6086571",
"0.6063933",
"0.605617",
"0.6032134",
"0.6027523",
"0.602318",
"0.6008675",
"0.59993625",
"0.5984933",
"0.59793377",
"0.5965926",
"0.5960375",
"0.5911582",
"0.59061193",
"0.5893601",
"0.58812183",
"0.58796537",
"0.5878914",
"0.5860973",
"0.58608925",
"0.58553004",
"0.58514357",
"0.58396965",
"0.58387786",
"0.5828832",
"0.5802592",
"0.5793218",
"0.5783215",
"0.5782428",
"0.57817113",
"0.5778195",
"0.57766384",
"0.57713026",
"0.5761274",
"0.5748155",
"0.57305294",
"0.5726213",
"0.5723502",
"0.57223755",
"0.5720896",
"0.5719518",
"0.5710758",
"0.5706689",
"0.56992215",
"0.5696864",
"0.5665391",
"0.56632584",
"0.56573105",
"0.56554013",
"0.5654376",
"0.56475717",
"0.5642422",
"0.56403685",
"0.5638177",
"0.56377035",
"0.56298614",
"0.56212693",
"0.5619331",
"0.56094867",
"0.5594141",
"0.55930686",
"0.5589706",
"0.55872977",
"0.5582322",
"0.5579011",
"0.5576199",
"0.5574277",
"0.5573934",
"0.5564015"
] | 0.0 | -1 |
Constructor Declaration of Class | public Tile(String num, int boardSize)
{
this.num = num;
this.color = "GREEN";
button.setText("_");
button.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent arg) {
if(occupied != true) {
System.out.println(num);//print which button was clicked
occupied = true; //make the button register itself as clicked so the game can see it has happened
//close();//closing the button makes it unable to have text... not sure why
//button.setBackground(Color.RED); coloring the buttons also seems to not work for ome reason...
//button.setOpaque(true); ^
//button.setBorderPainted(false); ^
button.setText("♘⦻♞_"); //sets the text of the button to a default of all possible text values
//if the tile has already been occupied then it will do nothing when clicked
}
}
});
//this.button.addActionListener(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Constructor(){\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"private void __sep__Constructors__() {}",
"private Instantiation(){}",
"defaultConstructor(){}",
"public CyanSus() {\n\n }",
"ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}",
"void DefaultConstructor(){}",
"public PSRelation()\n {\n }",
"public Classe() {\r\n }",
"ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}",
"public Clade() {}",
"public _355() {\n\n }",
"public Student() {\n//\t\tname = \"\";\n//\t\tage = 0;\n\t\t\n\t\t\n\t\t//call constructors inside of other constructors\n\t\tthis(999,0);\n\t}",
"public CSSTidier() {\n\t}",
"public Pasien() {\r\n }",
"public OOP_207(){\n\n }",
"@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }",
"public Pitonyak_09_02() {\r\n }",
"public Spec__1() {\n }",
"public ClassTemplate() {\n\t}",
"public Method() {\n }",
"public Classroom() {\n\t}",
"public Parameters() {\n\t}",
"public Chauffeur() {\r\n\t}",
"TypesOfConstructor(){\n System.out.println(\"This is default constructor\");\n }",
"public Overview() {\n\t\t// It will work whenever i create object with using no parameter const\n\t\tSystem.out.println(\"This is constructor\");\n\t}",
"public Chick() {\n\t}",
"public SubjectClass() {\n }",
"public ConstructorsDemo() \n\t {\n\t x = 5; // Set the initial value for the class attribute x\n\t }",
"public Excellon ()\n {}",
"public Contructor(int year, String name) {\n // constructor name must match class name and cannot have return type\n // all classes have constructor by default\n // f you do not create a class constructor yourself, Java creates one for you.\n // However, then you are not able to set initial values for object attributes.\n // constructor can also take parameters\n batchYear = year;\n studentName = name;\n }",
"public Curso() {\r\n }",
"public Car(){\n\t\t\n\t}",
"public Achterbahn() {\n }",
"public Person() {\n\t\t\n\t}",
"public Student(){}",
"public Supercar() {\r\n\t\t\r\n\t}",
"public Calculator() {\r\n\t\t/*\r\n\t\t * Constructor - Method name which has the same class name is called a Consatructor\r\n\t\t */\r\n\t\tSystem.out.println(\"Calling constructor\");\r\n\t}",
"public AbstractClass() { //Sobrecarga del constructor AbstractClass ya que se puede inicializar de 2 maneras\n }",
"public Self__1() {\n }",
"public Employee()\n\t{\n\t\tthis(\"(2)Invoke Employee's overload constructor\");\n\t\tSystem.out.println(\"(3)Employee's no-arg constructor is invoked\");\n\t}",
"public Parser()\n {\n //nothing to do\n }",
"public Book() {\n\t\t// Default constructor\n\t}",
"VehicleClass() {}",
"public Phl() {\n }",
"public Bicycle() {\n // You can also call another constructor:\n // this(1, 50, 5, \"Bontrager\");\n System.out.println(\"Bicycle.Bicycle- no arguments\");\n gear = 1;\n cadence = 50;\n speed = 5;\n name = \"Bontrager\";\n }",
"private SingleObject()\r\n {\r\n }",
"public Demo3() {}",
"public prueba()\r\n {\r\n }",
"public Carrera(){\n }",
"public SlanjePoruke() {\n }",
"private Solution() {\n /**.\n * { constructor }\n */\n }",
"public MonHoc() {\n }",
"public ASNClassNumber() {\n }",
"public Soil()\n\t{\n\n\t}",
"public ClassBundle() {\n }",
"public Orbiter() {\n }",
"public Person() {}",
"public Trening() {\n }",
"public Demo() {\n\t\t\n\t}",
"public CMN() {\n\t}",
"public Odontologo() {\n }",
"public StudentChoresAMImpl() {\n }",
"public Cohete() {\n\n\t}",
"public Person() {\n }",
"public Person() {\n }",
"public Person() {\n }",
"public Person() {\n }",
"public JSFOla() {\n }",
"public Car() {\n }",
"public Lanceur() {\n\t}",
"public Book() {}",
"public Car() {\n }",
"Classroom() {}",
"public TennisCoach () {\n\t\tSystem.out.println(\">> inside default constructor.\");\n\t}",
"public Basic() {}",
"private TMCourse() {\n\t}",
"public Professor()\n\t{\n\t\t//stuff\n\t}",
"public Sad() {\n }",
"public Account() {\n this(0, 0.0, \"Unknown name\"); // Invole the 2-param constructor\n }",
"public Aanbieder() {\r\n\t\t}",
"public TTau() {}",
"public ObjectFactory() {\n\t}",
"public Hello()\n {\n // initialise instance variables\n \n }",
"public Mannschaft() {\n }",
"public ChaCha()\n\t{\n\t\tsuper();\n\t}",
"public Car() {\r\n this(\"\", \"\", \"\", 0, Category.EMPTY, 0.00, \"\", 0, \"\", 0.00, \"\", DriveTrain.EMPTY,\r\n Aspiration.EMPTY, 0.00, 0.00, 0.00, 0.00, 0.0, 0.0, 0.0, 0.0, 0.0);\r\n }",
"public ExamMB() {\n }",
"public Customer() {\n\t}",
"public Customer() {\n\t}",
"public Student() {\r\n }",
"public Customer(){}",
"public Ov_Chipkaart() {\n\t\t\n\t}",
"private Sequence() {\n this(\"<Sequence>\", null, null);\n }",
"public SgaexpedbultoImpl()\n {\n }",
"protected abstract void construct();",
"public Data() {\n \n }",
"DefaultConstructor(int a){}",
"public AccessSqlParser ()\n\t{\n\t}",
"private ATCres() {\r\n // prevent to instantiate this class\r\n }"
] | [
"0.79834956",
"0.77859634",
"0.7594428",
"0.7475746",
"0.74625134",
"0.7373163",
"0.73665136",
"0.72334945",
"0.72122896",
"0.7111211",
"0.7089239",
"0.70019174",
"0.69959855",
"0.6945893",
"0.6912709",
"0.6902503",
"0.6902414",
"0.6901879",
"0.69006515",
"0.6878792",
"0.68780553",
"0.6872362",
"0.6870377",
"0.6870061",
"0.6861672",
"0.6859202",
"0.6834974",
"0.68327284",
"0.6825823",
"0.6808378",
"0.6794028",
"0.67908907",
"0.678475",
"0.6763851",
"0.6759567",
"0.675703",
"0.67546964",
"0.6748875",
"0.67488706",
"0.6739349",
"0.6736738",
"0.67328423",
"0.67320335",
"0.6729243",
"0.6716972",
"0.6715711",
"0.6701728",
"0.66997665",
"0.66926336",
"0.6679144",
"0.6670886",
"0.66538376",
"0.66502786",
"0.6636344",
"0.6627087",
"0.66266584",
"0.6617332",
"0.6614019",
"0.6611987",
"0.6608238",
"0.6604638",
"0.6600203",
"0.65985507",
"0.6592931",
"0.65919495",
"0.65915823",
"0.65915823",
"0.65915823",
"0.65915823",
"0.6577111",
"0.6572597",
"0.65676385",
"0.6562542",
"0.6560997",
"0.6560655",
"0.6550981",
"0.6533295",
"0.65303034",
"0.6525267",
"0.6520016",
"0.6519786",
"0.65183884",
"0.6517411",
"0.6511198",
"0.6509356",
"0.650917",
"0.65080154",
"0.6501818",
"0.64938235",
"0.6493421",
"0.6493421",
"0.6492917",
"0.64905196",
"0.64896476",
"0.64885646",
"0.6487328",
"0.6486799",
"0.6484012",
"0.64826185",
"0.64770263",
"0.6476805"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public IBinder onBind(Intent arg0) {
return null;
} | {
"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 |
User: guangtou Date: 2018/6/27 14:44 | @Repository
public interface TbRefundDividendDetailRepository extends JpaRepository<TbRefundDividendDetail, Long> {
List<TbRefundDividendDetail> findAllByDataTimeGreaterThanEqualAndDataTimeLessThanAndState(Date startDate, Date endDate, Integer state);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Long getUserCreated();",
"private static String getStamp() {\n\t\t\t return new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\r\n\t\t}",
"public Date getUserCreateTime() {\r\n return userCreateTime;\r\n }",
"public String getDateCreationLibelle() {\n\t\tDateTimeFormatter format = DateTimeFormatter.ofPattern(\"dd/MM/yyyy hh:mm:ss\");\n\t\treturn this.dateCreation.format(format);\n\t}",
"public String getUserDateString() {\n\t\tString[] tmpArr = this.getUserDate();\n\t\tString year = tmpArr[0];\n\t\tString month = tmpArr[1];\n\t\tString day = tmpArr[2];\n\t\tString out = year + \"/\" + month + \"/\" + day;\n\t\treturn out;\n\t}",
"public static String getUserPassDate() {\n return getUserPassDate(user);\n }",
"public Date getGmtLogin() {\n return gmtLogin;\n }",
"public java.lang.String getUser(){\r\n return localUser;\r\n }",
"public java.lang.String getUser(){\r\n return localUser;\r\n }",
"public java.lang.String getUser(){\r\n return localUser;\r\n }",
"public static void main(String[] args) throws Exception {\n Calendar cal = Calendar.getInstance();\n SimpleDateFormat simpleformat = new SimpleDateFormat(\"E, dd MMM yyyy HH:mm:ss Z\");\n System.out.println(\"Today's date and time = \"+simpleformat.format(cal.getTime()));\n // displaying date\n simpleformat = new SimpleDateFormat(\"dd/MMMM/yyyy\");\n String str = simpleformat.format(new Date());\n System.out.println(\"Current Date = \"+str);\n // current time\n simpleformat = new SimpleDateFormat(\"HH:mm:ss\");\n String strTime = simpleformat.format(new Date());\n System.out.println(\"Current Time = \"+strTime);\n // displaying hour in HH format\n simpleformat = new SimpleDateFormat(\"HH\");\n String strHour = simpleformat.format(new Date());\n System.out.println(\"Hour in HH format = \"+strHour);\n\n\n\n //formato ideal\n simpleformat = new SimpleDateFormat(\"dd/MM/yyyy - HH:mm:ss\");\n String strTimeDay = simpleformat.format(new Date());\n System.out.println(\"Dia e Hora = \" + strTimeDay);\n\n }",
"void setUserCreated(final Long userCreated);",
"Long getUserUpdated();",
"private void getUserInfo() {\n\t}",
"@Override\n public void setUserTimestamp(Date date) {\n }",
"Date getLastLogin();",
"public java.lang.String getUserCreated() {\n\t\treturn _tempNoTiceShipMessage.getUserCreated();\n\t}",
"String timeCreated();",
"public long getCreatedByUser();",
"public Date getDateCreated(){return DATE_CREATED;}",
"private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }",
"private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }",
"private static String getDate() {\n return new SimpleDateFormat(\"yyyyMMddHHmmss\").format\n (new Date(System.currentTimeMillis()));\n }",
"private void logUser() {\n }",
"public static String timestamp(){\n\t\tDate date = new Date();\n\t\tDateFormat hourdateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss \");\n\t\treturn hourdateFormat.format(date);\n\t}",
"private String getDate()\r\n\t{\r\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\r\n\t\treturn sdf.format(cal.getTime());\r\n\t}",
"public String getUsername()\r\n/* 11: */ {\r\n/* 12:30 */ return this.username;\r\n/* 13: */ }",
"@Override\r\n public String toString() {\r\n return timeStamp + username + \": \" + message;\r\n }",
"public int getUserTime() {\n\t\treturn this.userTime;\n\t}",
"java.lang.String getUser();",
"@Override\n public String toString() {\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd'@'HH:mm:ss\");\n String userInformation = new String();\n Date date = new Date();\n userInformation = \"[\" + username + \" - \" +\n socket.getInetAddress().getHostAddress() +\n \":\" + socket.getPort() + \" - \" + formatter.format(date)\n + \"]: \";\n return userInformation;\n }",
"String getCreated_at();",
"public String getDateCreated(){\n return dateCreated.toString();\n }",
"private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }",
"public static String getUserPassDate(String username) {\n if (username.equals(\"\")) return \"\";\n String s = dateMap.get(username);\n return (s != null) ? s : \"\";\n }",
"long getLoginAt();",
"public String getTimestamp() \n{\n Calendar now = Calendar.getInstance();\n return String.format(\"20%1$ty-%1$tm-%1$td_%1$tHh%1$tMm%1$tSs\", now);\n}",
"public User() {\n this.dateRegister = DateTime.now();\n }",
"UserInfo getUserInfo();",
"public String getCreatedUser() {\r\n return this.createdUser;\r\n }",
"public java.lang.String getTimeStamp(){\r\n return localTimeStamp;\r\n }",
"private static String getDate()\n\t{\n\t\tString dateString = null;\n\t\tDate sysDate = new Date( System.currentTimeMillis() );\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-yy HH:mm:ss\");\n\t\tdateString = sdf.format(sysDate);\n\t\treturn dateString;\n\t}",
"public String[] getUserDate() {\n\t\treturn this.userDate;\n\t}",
"Date getDateCreated();",
"public final String mo69547a() {\n return \"user\";\n }",
"public String parseUser(String userLine) {\n final int START_OF_USER_NAME = 6;\n \t\tString userName = userLine.substring(\n START_OF_USER_NAME, userLine.indexOf(\"Date: \") - 1).trim();\n \n \t\treturn userName;\n \t}",
"public String getUser(){\n \treturn user;\n }",
"public String getLastUpdateUser() {\n return lastUpdateUser;\n }",
"public String getLastUpdateUser() {\n return lastUpdateUser;\n }",
"Date getLastLoginDate();",
"private String getTimestamp() {\n return Calendar.getInstance().getTime().toString();\n }",
"private String getDateTime() {\n DateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy HH:mm\");\n Date date = new Date();\n return dateFormat.format(date);\n }",
"private static String getTime() {\n\t\tDate getDate = new Date();\n\t\tString timeFormat = \"M/d/yy hh:mma\";\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(timeFormat);\n\t\treturn \"[\" + sdf.format(getDate) + \"]\\t\";\n\t}",
"@Override\r\n\tpublic String gettime() {\n\t\treturn user.gettime();\r\n\t}",
"public Date getCreationDate() {\n\n \n return creationDate;\n\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n String dvalue = dataSnapshot.getValue(String.class);\n\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference upd = database.getReference(\"Info\").child(FirebaseAuth.getInstance().getCurrentUser().getUid()).child(\"olddate\");\n upd.setValue(dvalue);\n\n }",
"int getSignOnTime();",
"String getUser();",
"String getUser();",
"public static void main(String[] args) {\n\n\t\tDate d=new Date();\n\t\tSimpleDateFormat sdf= new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tSimpleDateFormat hms= new SimpleDateFormat(\"MM/dd/yyyy HH:mm:ss\");\n\t\tSystem.out.println(sdf.format(d));\n\t\tSystem.out.println(hms.format(d));\n\t\tSystem.out.println(d.toString());\n\t}",
"static String utc(String column, String user_id) {\n return \"SELECT \" + column + \" FROM \" + TableList.TABLE_UTC + \" WHERE \" + Constants.USER_ID + \"=\" + user_id;\n }",
"public String getDate(){\n return date;\n }",
"public String getLastupdateby() {\n return lastupdateby;\n }",
"public static String getDate()\r\n {\r\n Date now = new Date();\r\n DateFormat df = new SimpleDateFormat (\"yyyy-MM-dd'T'hh-mm-ss\");\r\n String currentTime = df.format(now);\r\n return currentTime; \r\n \r\n }",
"int getCreatedBy();",
"public static void main(String[] args) {\n System.out.println(new Date().getTime());\n\n // 2016-12-16 11:48:08\n Calendar calendar = Calendar.getInstance();\n calendar.set(2016, 11, 16, 12, 0, 1);\n System.out.println(calendar.getTime());\n Date date=new Date();\n SimpleDateFormat simpleDateFormat=new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n System.out.println(simpleDateFormat.format(date));\n\n\n }",
"public static void main(String[] args) {\n\t\t\n\t\tDate d=new Date();\n\t\tSystem.out.println(d.toString());\n\t\t\n\t\t/**\n\t\t * mm/dd/yyyy format or HH:MM:SS format\n\t\t */\n\t\t//SimpleDateFormat sdf=new SimpleDateFormat(\"M/d/yyyy\");\n\t\t\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"M/d/yyyy hh:mm:ss\");\n\t\t\n\t\tSystem.out.println(sdf.format(d));\n\t\t\n\n\t}",
"@NonNull\n public String toString(){\n return this.hora+\":\"+this.minutos+\" \"+this.segundos+\" Sec \"+this.dia+\"/\"+this.mes+\"/\"+this.anno;\n }",
"@Override\r\n\tpublic Date getApp_latest_logon_dt() {\n\t\treturn super.getApp_latest_logon_dt();\r\n\t}",
"public Long getUserCreate() {\n return userCreate;\n }",
"public String Get_date() \n {\n \n return date;\n }",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public void updateUserDate(User user){\n ContentValues values = new ContentValues();\n values.put(COLUMN_USER_AGE, user.getNume());\n // updating row\n db.update(TABLE_USER, values, COLUMN_USER_EMAIL + \" = ?\",\n new String[]{String.valueOf(user.getEmail())});\n db.close();\n }",
"public static void main(String[] args) {\n\t\tDate today = new Date();\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy:MM:dd hh:MM:ss\");\n\t\tString s= sdf.format(today);\n\t\tSystem.out.println(s);\n\t}",
"private static String getTimeStamp()\r\n\t{\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd_HH.mm.ss\");\r\n\t\tDate date = new Date();\r\n\t\treturn dateFormat.format(date);\r\n\t}",
"private String getCurrentTime() {\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\n Date date = new Date();\n return dateFormat.format(date);\n }",
"public String getFromUser(){\r\n\t\treturn fromUser;\r\n\t}",
"@Override\r\n\tpublic Date getApp_first_logon_dt() {\n\t\treturn super.getApp_first_logon_dt();\r\n\t}",
"public Timestamp getBPJSRegistrationDate();",
"@Override\n\tpublic java.util.Date getCheckpoint() {\n\t\treturn _userSync.getCheckpoint();\n\t}",
"public static void main(String[] args) {\n DateFormat df=new SimpleDateFormat(\"MM/dd/yyyy HH:mm:ss a\");\n \n //Get the date today using calender object.\n Date today=Calendar.getInstance().getTime();\n //using DateFormat format method we can create a string\n //representation of a date with the defined format.\n String reportDate=df.format(today);\n //print what date is today!\n System.out.println(\"Current Date: \"+reportDate);\n }",
"public String getUser()\n {\n return _user;\n }",
"public String getDate(){ return this.start_date;}",
"public Date getCreationDate();",
"public Date getDateCreated();",
"public Date getUserUpdateTime() {\r\n return userUpdateTime;\r\n }",
"public User() {\n this.firstName = \"Lorenzo\";\n this.lastName = \"Malferrari\";\n this.username = \"[email protected]\";\n this.email = \"[email protected]\";\n this.password = \"123456\";\n this.city = \"Bologna\";\n this.country = \"Italia\";\n this.gender = \"Maschio\";\n this.birthdate = new Date();\n this.age = 21;\n this.imgUser = 1;\n this.last_access = new Date();\n this.registration_date = new Date();\n }",
"public Long getCreateduser() {\n return createduser;\n }",
"public String getDate(){\n return date;\n }"
] | [
"0.6315092",
"0.5910108",
"0.58042663",
"0.57673377",
"0.57425785",
"0.5729741",
"0.57272726",
"0.5708322",
"0.5708322",
"0.5708322",
"0.5700198",
"0.56979",
"0.56850374",
"0.5670478",
"0.5669754",
"0.56526",
"0.564405",
"0.5636252",
"0.56185657",
"0.56136495",
"0.5606351",
"0.5606351",
"0.55989116",
"0.5566066",
"0.556085",
"0.55607224",
"0.55574995",
"0.5552316",
"0.5551226",
"0.5539356",
"0.55345243",
"0.55321705",
"0.55243886",
"0.55211335",
"0.5514007",
"0.5502724",
"0.5494799",
"0.5489831",
"0.54689026",
"0.5468278",
"0.5465707",
"0.5459773",
"0.5449829",
"0.54456115",
"0.5440656",
"0.5440382",
"0.5434981",
"0.54291594",
"0.54291594",
"0.5427946",
"0.54200876",
"0.5416988",
"0.54130846",
"0.5410657",
"0.5401647",
"0.53853095",
"0.53846604",
"0.53839725",
"0.53839725",
"0.53703225",
"0.5356224",
"0.5351211",
"0.5343432",
"0.5342548",
"0.5321287",
"0.5319361",
"0.531766",
"0.5314205",
"0.53135955",
"0.5313449",
"0.5307278",
"0.5305866",
"0.5305866",
"0.5305866",
"0.5305866",
"0.5305866",
"0.5305866",
"0.5305866",
"0.5305866",
"0.5305866",
"0.5305866",
"0.5305866",
"0.5305866",
"0.5305866",
"0.5303738",
"0.53025484",
"0.53016424",
"0.53009737",
"0.53008527",
"0.52893925",
"0.5286453",
"0.5285994",
"0.52842075",
"0.5282556",
"0.52802056",
"0.52801114",
"0.52738667",
"0.5271967",
"0.5266743",
"0.526424",
"0.52630675"
] | 0.0 | -1 |
Return the first value of the query parameter used to paginate (often 1 or empty string) | T getOrderedQueryParameterFirstValue(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getFirstItemOnPage();",
"static int getPageNumber(String value){\n int pageNumber = 1;\n if(!TextUtils.isEmpty(value)){\n pageNumber = Integer.getInteger(value, pageNumber);\n }\n return pageNumber;\n }",
"private static int getFirstResultRelativeToPageNumber(int pageNumber, int pageSize) {\n\t\treturn (pageNumber - 1) * pageSize;\n\t}",
"public int getFirstPage() {\n\t\treturn firstPage;\n\t}",
"public Integer getCurrentPage();",
"public String param() {\n\tif (param_count >= params.size())\n\t return null;\n\treturn (String) params.elementAt(param_count++);\n }",
"public String getParamNameOfPage()\n\t{\n\t\treturn paramNameOfPage;\n\t}",
"public static String getParamStr(HttpServletRequest request,boolean isAll){ // isAll true all paran.... false value not null param\n\t\tString rtn=\"\";\n\t\tEnumeration<String> reqParamNames = request.getParameterNames();\n\n\t\tint cnt=0;\n // try {\n while (reqParamNames.hasMoreElements()) {\n String reqParamName = reqParamNames.nextElement();\n if(!\"pageIndex\".equals(reqParamName)){\n \tString value=request.getParameter(reqParamName);\n if(isAll){\n \trtn += (cnt==0?\"?\":\"&\")+reqParamName+\"=\"+value;\n \tcnt++;\n }else{\n \tif(value!=null && !\"\".equals(value)){\n \t\trtn += (cnt==0?\"?\":\"&\")+reqParamName+\"=\"+value;\n \t\tcnt++;\n \t}\n }\n }\n }\n return rtn;\n\t}",
"public int getFirstParameterIndexForCallString() {\r\n return 1;\r\n }",
"public Integer getPerPage();",
"Integer getPage();",
"public int getCurrentPage();",
"protected int getInitialPage(HttpServletRequest request) {\n return 0;\n }",
"public String getQueryParameter(){\n return this.queryParameter;\n }",
"io.dstore.values.IntegerValue getPageNo();",
"io.dstore.values.IntegerValue getPageNo();",
"public Integer getCurrentPageSize();",
"public int getQueryStart()\n\t{\n\t\treturn myQueryStart;\n\t}",
"int getCurrentPage();",
"public int getStartIndex() {\n int cacheRange = 100 / numResultsPerPage;\n int base = pageNumber % cacheRange;\n if (base == 0) {\n return 100 - numResultsPerPage;\n } else {\n return (base - 1) * numResultsPerPage;\n }\n }",
"protected String getListingParameter() {\n if (!isMono) {\n return listing ? \"/listing\" : \"/nolisting\";\n }\n return null;\n }",
"String getStartpage();",
"public StrColumn getPageFirst() {\n return delegate.getColumn(\"page_first\", DelegatingStrColumn::new);\n }",
"public String getParamNameOfPageSize()\n\t{\n\t\treturn paramNameOfPageSize;\n\t}",
"@Override\n\tpublic String findPage(Set<String> filterField) {\n\t\treturn null;\n\t}",
"String first(String collection);",
"Integer getMaxPageResults();",
"public int getFirst();",
"public ReviewsArguments currentPage(Integer value) {\n if (value != null) {\n startArgument(\"currentPage\");\n _queryBuilder.append(value);\n }\n return this;\n }",
"boolean getPageNoNull();",
"public int getPageStart() {\n return _totalRecords == 0 ? 0 : ((_pageIndex) * _pageSize) + 1;\n }",
"public abstract PaginatedResult<T> first() throws AblyException;",
"protected int getSkipPage(){\n\t\tint pageNum = 0;\n\t\tfor (Integer p : mPageNum){\n\t\t\tpageNum *= 10;\n\t\t\tpageNum += p.intValue();\n\t\t}\n\t\tif (pageNum > Integer.MAX_VALUE){\n\t\t\tpageNum = Integer.MAX_VALUE;\n\t\t}\n\t\tif (pageNum <= getTotalPage()){\n\t\t\tmSkipPage = pageNum;\n\t\t}\n\t\treturn mSkipPage;\n\t}",
"int getPageNumber();",
"public int getDefaultPage()\n\t{\n\t\treturn defaultPage;\n\t}",
"public int getPageStart(){\r\n\t\treturn (this.page -1) * perPageNum;\r\n\t}",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"public int getStartingPage() {\n return startingPage;\n }",
"public boolean isFirstPage();",
"public SQLInteger getPage() {\n\t\treturn page;\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 }",
"@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}",
"private String getQueryStringFromParser() {\n return (getString() == null) ? \"\" : getString();\n }",
"Optional<Integer> getPageCount();",
"public Pageable first() {\n\t\t\t\treturn null;\r\n\t\t\t}",
"@Override\r\n\tpublic String paging(String sql) {\n\t\treturn null;\r\n\t}",
"String getFirstIndex();",
"@Override\n\tpublic T queryFirstObj(QueryBuilder mQueryBuilder) {\n\t\tmQueryBuilder.limitIndex = 1;\n\t\tmQueryBuilder.offsetIndex = 0;\n\t\tList<T> list = queryObjs(mQueryBuilder);\n\t\tif (list.size() > 0) {\n\t\t\treturn list.get(0);\n\t\t}\n\t\treturn null;\n\t}",
"ReviewService() {queryMap.put(PAGE_QUERY_PARAM, \"1\");}",
"String getFirst(int n);",
"io.dstore.values.IntegerValueOrBuilder getPageNoOrBuilder();",
"io.dstore.values.IntegerValueOrBuilder getPageNoOrBuilder();",
"@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}",
"public java.lang.Integer getFirstResult()\r\n {\r\n return this.firstResult;\r\n }",
"int getPage();",
"public static String getQueryValue(String name) {\n String result = null;\n Map<String, ArrayList<String>> query = getQuery();\n\n if (query != null) {\n result = query.get(name).get(0);\n }\n\n return result;\n }",
"public String getParameter(String name) {\n String[] values = getParameterValues(name);\n return (values != null) ? values[0] : null;\n }",
"protected String getCurrentLocaleQueryParam() {\n return LocaleInfo.getCurrentLocale().getLocaleQueryParam();\n }",
"public Integer getPage() {\n return page;\n }",
"private int getResultsPerPage()\n {\n final int RESULTS_0 = 16;\n final int RESULTS_1 = 32;\n final int RESULTS_2 = 46;\n \n int index = filterNumResults.getSelectedIndex();\n switch(index)\n {\n case 0: return RESULTS_0;\n case 1: return RESULTS_1;\n case 2: return RESULTS_2;\n default: return 0;\n }\n }",
"public static Optional<String> optString(String param) {\n if (param == null) {\n return Optional.empty();\n } else {\n return Optional.of(param + 1);\n }\n }",
"@Override public String getParamDefault(final String param) {\n final String common = getDrbdInfo().getParamSaved(param);\n if (common != null) {\n return common;\n }\n return getBrowser().getDrbdXML().getParamDefault(param);\n }",
"public io.dstore.values.StringValue getPage() {\n return page_ == null ? io.dstore.values.StringValue.getDefaultInstance() : page_;\n }",
"public int getFormalParameterIndex() {\n/* 401 */ return (this.value & 0xFF0000) >> 16;\n/* */ }",
"String getFirstInt();",
"public int getPage() {\n return page;\n }",
"public int getPage() {\n return page;\n }",
"public int getPage() {\n return page;\n }",
"public int getPage() {\n return page;\n }",
"public String getCGIParam(String param) {\n\t\tString retour = cgiParams.get(param);\n\t\tif( param == null || retour == null) {\n\t\t\treturn \"not set\";\n\t\t}\n\t\telse return retour;\n\t}",
"public Pageable previousOrFirst() {\n\t\t\t\treturn null;\r\n\t\t\t}",
"public static int getIntParameter( HttpServletRequest request, String paramName, int defaultNum ) {\n String temp = request.getParameter(paramName);\n if( temp != null && !temp.equals(\"\") ) {\n int num = defaultNum;\n try {\n num = Integer.parseInt(temp);\n }\n catch( Exception ignored ) {}\n return num;\n } else {\n return defaultNum;\n }\n }",
"public static int getIntParameter( HttpServletRequest request, String paramName, int defaultNum ) {\n String temp = request.getParameter(paramName);\n if( temp != null && !temp.equals(\"\") ) {\n int num = defaultNum;\n try {\n num = Integer.parseInt(temp);\n }\n catch( Exception ignored ) {}\n return num;\n } else {\n return defaultNum;\n }\n }",
"public java.math.BigInteger getStartPage()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STARTPAGE$12);\n if (target == null)\n {\n return null;\n }\n return target.getBigIntegerValue();\n }\n }",
"public String getPagenumber() {\n return pagenumber;\n }",
"protected String getStringParam(HttpServletRequest request, String name) {\r\n String[] p = request.getParameterValues(name);\r\n \r\n if (p == null) {\r\n return null;\r\n } else {\r\n return p[0];\r\n }\r\n }",
"public int getPageStartEntry() {\n\t\treturn this.skipEntries;\n\t}",
"public int getParameterOffset();",
"int getFirstNumber();",
"default Integer getPageSize() {\n return 10;\n }",
"public String getQueryParameter(String name) {\n\t\tcheckArgument(name != null && !name.isEmpty(), \"Invalid parameter name\");\n\t\treturn query.get(name);\n\t}",
"java.lang.String getQuery();",
"java.lang.String getQuery();",
"public static int getNumber(String query);",
"public int getStartPage() {\n return startPage;\n }",
"public static String getQueryString(String key) {\n String value = Http.Context.current().request().getQueryString(key);\n if (value != null) {\n value = value.trim();\n }\n return value;\n }",
"public int getFirst() {\n\t\treturn first;\n\t}",
"@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }",
"private boolean isPaginationAndSortNotUsed( HttpServletRequest request )\n {\n return request.getParameter( PARAMETER_PAGE_INDEX ) == null && request.getParameter( FormsConstants.PARAMETER_SORT_COLUMN_POSITION ) == null;\n }",
"public int getRowsPerPage();",
"public String getFirst(int n) {\n return \"\";\n }",
"@Override\r\n\tpublic int[] calPageParameter(int curPage) {\n\t\tint start = curPage*BATCH_NUM+1;\r\n\t\tint end = (curPage+1)*BATCH_NUM;\r\n return new int[]{start,end};\r\n\t}",
"public String getPageno() {\r\n return pageno;\r\n }",
"public Page<T> firstPage() {\n return firstPage(Twilio.getRestClient());\n }",
"@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerFirstPage();",
"public int getPageNo() {\n return pageNo;\n }",
"short getPageStart();",
"public String getParam() {\n return param;\n }"
] | [
"0.6426877",
"0.62433535",
"0.6181315",
"0.6081765",
"0.6042247",
"0.58522874",
"0.5831845",
"0.5755878",
"0.5740874",
"0.57130224",
"0.5549746",
"0.5514188",
"0.5498065",
"0.5446333",
"0.5426272",
"0.5426272",
"0.54110456",
"0.53826463",
"0.5364425",
"0.5362215",
"0.53616226",
"0.5338681",
"0.5333456",
"0.53295296",
"0.5327138",
"0.5276864",
"0.52762115",
"0.5272623",
"0.52671564",
"0.5261137",
"0.5244224",
"0.5243767",
"0.52363217",
"0.52354085",
"0.52292174",
"0.5227988",
"0.5220262",
"0.5220262",
"0.5220262",
"0.5211929",
"0.51821387",
"0.51707447",
"0.5166415",
"0.516156",
"0.5154274",
"0.5148497",
"0.5110507",
"0.5086674",
"0.50839907",
"0.5067385",
"0.5060278",
"0.50573695",
"0.5055893",
"0.5055893",
"0.5030234",
"0.50260794",
"0.5014118",
"0.50096583",
"0.50033456",
"0.49911296",
"0.4990644",
"0.49878058",
"0.4967452",
"0.49530265",
"0.49393624",
"0.49331015",
"0.49294508",
"0.49289912",
"0.49289912",
"0.49289912",
"0.49289912",
"0.49238402",
"0.4922193",
"0.49139842",
"0.49139842",
"0.49109557",
"0.49072686",
"0.49042815",
"0.4883269",
"0.48771474",
"0.4872229",
"0.48716044",
"0.48581526",
"0.4854724",
"0.4854724",
"0.4847867",
"0.48465466",
"0.48422393",
"0.48390654",
"0.48200542",
"0.4817087",
"0.4815259",
"0.47974575",
"0.47928494",
"0.47863275",
"0.4782356",
"0.47712043",
"0.47652382",
"0.47639453",
"0.47635454"
] | 0.6763164 | 0 |
Set the value of the query parameter used to paginate with the last fetch value | void setOrderedQueryParameter(Query query, T value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPagination(Query query) {\r\n\t\tif (getCount() != null && getCount() > 0) {\r\n\t\t\tquery.setMaxResults(getCount());\r\n\t\t}\r\n\t\tif (getPage() != null && getCount() != null) {\r\n\t\t\tquery.setFirstResult(getCount() * (getPage() - 1));\r\n\t\t}\r\n\t}",
"public void setLastPage(int lastPage) {\n\t\tthis.lastPage = lastPage;\n\t}",
"void setPagination(Pagination pagination);",
"public QueryResultBuilder<T> setPage(Option<Page> page);",
"int getLastItemOnPage();",
"public void setLastResult(final Object val) {\n lastResult = val;\n }",
"ReviewService() {queryMap.put(PAGE_QUERY_PARAM, \"1\");}",
"public String getQueryParameter(){\n return this.queryParameter;\n }",
"void setFirstResult(int offset);",
"public void setQueryParameter(String queryParameter){\n this.queryParameter = queryParameter;\n }",
"public void setFirstResult(int begin) {\n\r\n\t}",
"@Override\r\n\tpublic int[] calPageParameter(int curPage) {\n\t\tint start = curPage*BATCH_NUM+1;\r\n\t\tint end = (curPage+1)*BATCH_NUM;\r\n return new int[]{start,end};\r\n\t}",
"protected void setPageInformation(QueryParameters queryParameters,\r\n PageableList<? extends IdentifiableEntityData> result) {\r\n int pagingInterval = getIntParameter(PARAM_PAGING_INTERVAL, 5);\r\n pageInformation = queryParameters.getPageInformation(result, pagingInterval);\r\n }",
"@Override\r\n\tpublic String select() {\n\t\tList<Object> paramList=new ArrayList<Object>();\r\n\t\tparamList.add(numPerPage*(pageIndex-1));\r\n\t\tparamList.add(numPerPage);\r\n\t\tthis.setResultMesg(adminDao.doCount(), adminDao.doSelect(paramList));\r\n\t\treturn SUCCESS;\r\n\t}",
"public int getLastPage() {\n\t\treturn lastPage;\n\t}",
"public void setResultsPage(int resultsPage)\r\n\t{\r\n\t\tthis.resultsPage = resultsPage;\r\n\t}",
"private void appendSearchParam(String query, HttpUrl.Builder urlBuilder) {\n urlBuilder.addQueryParameter(\"generator\", \"search\")\n .addQueryParameter(\"gsrwhat\", \"text\")\n .addQueryParameter(\"gsrnamespace\", \"6\")\n .addQueryParameter(\"gsrlimit\", \"25\")\n .addQueryParameter(\"gsrsearch\", query);\n }",
"@Override\r\n\tpublic String paging(String sql) {\n\t\treturn null;\r\n\t}",
"private void pagination()\n {\n if (value==0)\n {\n aBoolean=true;\n setAdapter(postModels);\n value=1;\n count=count+10;\n }\n else if (value==1)\n {\n if (count<page_count)\n {\n aBoolean=true;\n count=count+10;\n temp_list.addAll(postModels);\n adapter.notifyDataSetChanged();\n }\n }\n }",
"public void setPagination(Number value) {\n setAttributeInternal(PAGINATION, value);\n }",
"public ReviewsArguments currentPage(Integer value) {\n if (value != null) {\n startArgument(\"currentPage\");\n _queryBuilder.append(value);\n }\n return this;\n }",
"Integer getMaxPageResults();",
"@ImageOptions(flipRtl = true)\r\n\t\tImageResource simplePagerLastPage();",
"public void setDirectQueryReturn(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localDirectQueryReturn=param;\n \n\n }",
"@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}",
"public void searchNextPage() {\n if (!isPerformingQuery\n && isViewingRecipes\n && !isQueryExhausted().getValue()) {\n recipeRepository.searchNextPage();\n }\n }",
"protected ActionForward previousPage( UserRequest request )\n {\n int pageNumber = request.getParameterAsInt( PAGE_KEY, 2 );\n HttpServletRequest req = request.getRequest();\n req.setAttribute( PAGE_KEY, \"\"+ --pageNumber );\n return request.getMapping().findForward( PAGE_KEY + pageNumber );\n }",
"private void appendQueryContinueValues(String query, HttpUrl.Builder urlBuilder) {\n Map<String, String> continueValues = getContinueValues(query);\n if (continueValues != null && continueValues.size() > 0) {\n for (Map.Entry<String, String> entry : continueValues.entrySet()) {\n urlBuilder.addQueryParameter(entry.getKey(), entry.getValue());\n }\n }\n }",
"public void setPage(int value) {\n this.page = value;\n }",
"private static int getFirstResultRelativeToPageNumber(int pageNumber, int pageSize) {\n\t\treturn (pageNumber - 1) * pageSize;\n\t}",
"@Override\n protected void elaboraParametri() {\n super.elaboraParametri();\n titoloPagina = TITOLO_PAGINA;\n }",
"Sort desc(QueryParameter parameter);",
"public void setParamNameOfPage(String newParamNameOfPage)\n\t{\n\t\tparamNameOfPage = newParamNameOfPage;\n\t}",
"@Test\n public void testSelectListLast() {\n QueryWrapper<User> queryWrapper = new QueryWrapper<>();\n queryWrapper.last(\"limit 1\");\n List<User> users = userMapper.selectList(queryWrapper);\n users.forEach(System.out::println);\n }",
"public Integer getCurrentPageSize();",
"public void previousPage() {\n\t\tthis.skipEntries -= NUM_PER_PAGE;\n\t\tif (this.skipEntries < 1) {\n\t\t\tskipEntries = 1;\n\t\t}\n\t\tloadEntries();\n\t}",
"private String getNext(\n final int offset,\n final int limit,\n String filter,\n String sortColumn,\n ResultOrder order,\n int previousReturn,\n int level\n ) {\n if (previousReturn != limit) {\n return null;\n }\n\n StringBuilder sb = getNext(offset, limit, level);\n if (filter != null) {\n sb.append(\"&filter=\");\n sb.append(esc(filter));\n }\n\n if (sortColumn != null) {\n sb.append(\"&sort=\");\n sb.append(esc(sortColumn));\n }\n\n if (order != null) {\n sb.append(\"&order=\");\n sb.append(order.name());\n }\n return sb.toString();\n }",
"@Override\n\tpublic void onLoadMore() {\n\t\tpage++;\n\t\texecutorService.submit(new Runnable() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\ttry {\n\t\t\t\t\tgetResultByKeyword(page);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public void setRetrievalQuery(final String query)\n {\n immutableSetRetrievalQuery(query);\n }",
"void setQueryParam(String name, @Nullable Object value) {\n removeQueryParam(name);\n if (value != null) {\n appendQueryParam(name, String.valueOf(value));\n }\n }",
"public void setPage(SQLInteger page) {\n\t\tthis.page = page;\n\t}",
"public void setQuery(Integer query) {\n this.query = query;\n }",
"public void setResultsPerPage(int resultsPerPage)\r\n\t{\r\n\t\tthis.resultsPerPage = resultsPerPage;\r\n\t}",
"public ReviewsArguments pageSize(Integer value) {\n if (value != null) {\n startArgument(\"pageSize\");\n _queryBuilder.append(value);\n }\n return this;\n }",
"public void setEndPage(int value) {\n this.endPage = value;\n }",
"void setMaxResults(int limit);",
"@Override\n public DefaultUrlBuilder queryParam(String name, String value) {\n this.queryNamesAndValues.put(\n BaseUrl.UrlEncoder.encodeQueryNameOrValue(name), BaseUrl.UrlEncoder.encodeQueryNameOrValue(value));\n return this;\n }",
"protected ActionForward nextPage( UserRequest request )\n {\n int pageNumber = request.getParameterAsInt( PAGE_KEY, 0 );\n HttpServletRequest req = request.getRequest();\n req.setAttribute( PAGE_KEY, \"\"+ ++pageNumber );\n return request.getMapping().findForward( PAGE_KEY + pageNumber );\n }",
"public void setNumResultsPerPage(int newNumResults) {\n this.numResultsPerPage = newNumResults;\n this.pageNumber = 1;\n this.errorMessage = \"\";\n }",
"private String calculateLastQuery(RangeFacet<?, ?> facet) {\n return fieldName + \":[\" + facet.getEnd().toString() + \" TO \" + \"*\" + \"]\";\n }",
"@Override\n\tpublic String addPagination(String sql, PageInfo pageInfo) {\n\t\treturn sql;\n\t}",
"void setPageSize(DriveRequest<?> request, Integer pageSize);",
"T getOrderedQueryParameterFirstValue();",
"Results setRowsPerPage(FilterSpecifier.ListBy listBy, int rowsPerPage) throws SearchServiceException;",
"public Integer getPerPage();",
"public void setRecordsPerPage(int p_int)\n {\n m_recsPerPage = p_int < 1 ? DEFAULT_RPP : p_int;\n }",
"protected void setPageInformation(PageableList<?> result,\r\n ResultSpecification resultSpecification) {\r\n int pagingInterval = getIntParameter(PARAM_PAGING_INTERVAL, 5);\r\n pageInformation = QueryParameters.getPageInformation(result, resultSpecification,\r\n pagingInterval);\r\n\r\n }",
"DbQuery setEndAtFilter(long value) {\n return setEndAtFilter((double) value);\n }",
"public String getParamNameOfPage()\n\t{\n\t\treturn paramNameOfPage;\n\t}",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"void setQueryParam(DriveRequest<?> request, String queryParam);",
"public void setDirectOrderStateQueryReturn(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localDirectOrderStateQueryReturn=param;\n \n\n }",
"public String getPageSuffixTpl() {\r\n\t\tswitch (this) {\r\n\t\t\tcase MySql:\r\n\t\t\t\treturn \" limit ?, ?\";\r\n\t\t\tcase SqlServer:\r\n\t\t\t\treturn \" OFFSET ? ROWS FETCH NEXT ? ROWS ONLY\";\r\n\t\t\tdefault:\r\n\t\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public void setPreviousPage(boolean value) {\n this.previousPage = value;\n }",
"@Override\r\n\tpublic IPage<T> setCurrent(long current) {\n\t\treturn null;\r\n\t}",
"public abstract void onLoadMore(int page, int totalItemsCount);",
"public abstract void onLoadMore(int page, int totalItemsCount);",
"public void setParamNameOfPageSize(String newParamNameOfPageSize)\n\t{\n\t\tparamNameOfPageSize = newParamNameOfPageSize;\n\t}",
"void setQueryResultsUrl(String queryResultsUrl);",
"public Builder setPageSize(long value) {\n \n pageSize_ = value;\n onChanged();\n return this;\n }",
"public Builder setPageSize(long value) {\n \n pageSize_ = value;\n onChanged();\n return this;\n }",
"public Builder setPageSize(long value) {\n \n pageSize_ = value;\n onChanged();\n return this;\n }",
"@Override\n protected void finishLoading() {\n if(super.getCount() == 0) {\n \tthis.onNoResult(); \n \tSearchList.this.finish();\n }\n \n if (lastCnt + Const.DEFAULT_RESULT > super.getCount()) {\n keepOnAppending = false;\n notifyDataSetChanged();\n } else {\n fetchMoreResult();\n }\n lastCnt = super.getCount();\n }",
"QueryLocator(final long initialValue) {\n counter = new AtomicLong(initialValue);\n }",
"@Override\n\tpublic void onLoadMore() {\n\t\tLog.d(\"load\", \"\");\n\t\tcurrentPage++;\n\t\tmodel.getPostsByType(userId, currentPage, method, postListiner);\n\t}",
"public void setNextPage(boolean value) {\n this.nextPage = value;\n }",
"CamelJpaConsumerBindingModel setMaximumResults(Integer maximumResults);",
"public void setAfterResult(Integer afterResult) {\r\n this.afterResult = afterResult;\r\n }",
"public void setMaximumPagesToFetch(int max)\n\t{\n\t\tFrontier.setMaximumPagesToFetch(max);\n\t}",
"private void setLast() { this._last = true; }",
"public int getEndingPage() {\n return endingPage;\n }",
"@Override\n public int doStartTag() throws JspException {\n\n int pageCount = (this.recordCount + this.pageSize - 1) / this.pageSize;\n StringBuilder sb = new StringBuilder();\n\n if (this.recordCount != 0 && this.recordCount > this.pageSize) {\n sb.append(\"<ol class=\\\"paginator\\\">\");\n if (this.pageNo > pageCount) {\n this.pageNo = pageCount;\n }\n if (this.pageNo < 1) {\n this.pageNo = 1;\n }\n HttpServletRequest request = (HttpServletRequest) this.pageContext.getRequest();\n\n url = request.getAttribute(\"originalUrl\").toString();\n url += \"?\";\n if (StringUtil.isNotEmpty(request.getQueryString())) {\n String queryString = request.getQueryString();\n url += queryString.replaceAll(\"page=[0-9]*\", \"\");\n if (!url.endsWith(\"&\") && !url.endsWith(\"?\")) {\n url += \"&\";\n }\n }\n\n if (this.pageNo > 1) {\n sb.append(\"<li class=\\\"paginator__item paginator__item--prev\\\"><a class=\\\"paginator__item__text\\\" href='\" + this.url + \"page=\" + (this.pageNo - 1) + \"'><span class=\\\"paginator__item__text__icon\\\"></span></a></li>\");\n }\n int start = 1;\n if (this.pageNo > 4) {\n start = this.pageNo - 1;\n sb.append(\"<li class=\\\"paginator__item paginator__item--number\\\"><a class=\\\"paginator__item__text\\\" href='\" + this.url + \"page=1'>1</a></li>\");\n sb.append(\"<li class=\\\"paginator__item paginator__item--number\\\"><a class=\\\"paginator__item__text\\\" href='\" + this.url + \"page=2'>2</a></li>\");\n sb.append(\"<li class=\\\"paginator__item paginator__item--ellipsis\\\"><span class=\\\"paginator__item__text\\\"><span class=\\\"paginator__item__text__icon\\\"></span></span></li>\");\n }\n int end = this.pageNo + 1;\n if (end > pageCount) {\n end = pageCount;\n }\n for (int i = start; i <= end; i++) {\n if (this.pageNo == i) {\n sb.append(\"<li class=\\\"paginator__item paginator__item--number paginator__item--current\\\"><span class=\\\"paginator__item__text\\\">\" + i + \"</span></li>\");\n } else {\n sb.append(\"<li class=\\\"paginator__item paginator__item--number\\\"><a class=\\\"paginator__item__text\\\" href='\" + this.url + \"page=\" + i + \"'>\").append(i).append(\"</a></li>\");\n }\n }\n if (end < pageCount - 2) {\n sb.append(\"<li class=\\\"paginator__item paginator__item--ellipsis\\\"><span class=\\\"paginator__item__text\\\"><span class=\\\"paginator__item__text__icon\\\"></span></span></li>\");\n }\n if (end < pageCount - 1) {\n sb.append(\"<li class=\\\"paginator__item paginator__item--number\\\"><a class=\\\"paginator__item__text\\\" href='\" + this.url + \"page=\" + (pageCount - 1) + \"'>\").append((pageCount - 1) + \"</a></li>\");\n }\n if (end < pageCount) {\n sb.append(\"<li class=\\\"paginator__item paginator__item--number\\\"><a class=\\\"paginator__item__text\\\" href='\" + this.url + \"page=\" + pageCount + \"'>\").append(pageCount + \"</a></li>\");\n }\n if (this.pageNo != pageCount) {\n sb.append(\"<li class=\\\"paginator__item paginator__item--next\\\"><a class=\\\"paginator__item__text\\\" href='\" + this.url + \"page=\" + (this.pageNo + 1) + \"'><span class=\\\"paginator__item__text__icon\\\"></span></a></li>\");\n }\n }\n if (anchor != null) {\n sb.append(\"<script type='text/javascript'>$('.paginator a').each(function(){var href=$(this).attr('href');$(this).attr('href',href+'\" + anchor + \"')});</script>\");\n }\n sb.append(\"</ol>\");\n try {\n this.pageContext.getOut().println(sb.toString());\n } catch (IOException e) {\n // TODO Auto-generated catch block\n\n e.printStackTrace();\n }\n return 0;\n }",
"public String getParamNameOfPageSize()\n\t{\n\t\treturn paramNameOfPageSize;\n\t}",
"public void setOrderAndLimit(YadaPageRequest pageable) {\r\n\t\tsetOrder(pageable);\r\n\t\tStringBuffer sqlLimit = new StringBuffer(\" limit \");\r\n\t\tsqlLimit.append(pageable.getOffset()).append(\",\").append(pageable.getPageSize());\r\n\t\tthis.orderAndLimit = this.orderAndLimit + sqlLimit.toString();\r\n\t}",
"DbQuery setEndAtFilter(int value) {\n return setEndAtFilter((double) value);\n }",
"@Override\n\tpublic void onLoadMore() {\n\t\tif (onRefresh_number) {\n\t\t\tpage = page + 1;\n\n\t\t\tonRefresh_number = false;\n\t\t\tgetData();\n\n\t\t\t// if (Tools.isConnect(getApplicationContext())) {\n\t\t\t// onRefresh_number = false;\n\t\t\t// getData();\n\t\t\t// } else {\n\t\t\t// onRefresh_number = true;\n\t\t\t// handler.sendEmptyMessage(2);\n\t\t\t// }\n\t\t} else {\n\t\t\thandler.sendEmptyMessage(3);\n\t\t}\n\t}",
"public void setPageSize(int pageSize) {\r\n\t\tif (pageSize < 1) {\r\n\t\t\tthis.pageSize = DEF_COUNT;\r\n\t\t} else {\r\n\t\t\tthis.pageSize = pageSize;\r\n\t\t}\r\n\t}",
"void setEndSearch(int endSearch);",
"private void removeEndQuery(){\n setMainQuery(getMainQuery().substring(0,getMainQuery().length()-1));\n setCountQuery(getCountQuery().substring(0,getCountQuery().length()-1));\n }",
"private void setQueryResults(final QueryResultBundle bundle){\n\t\t// Get the sort info\n\t\tthis.synapseClient.getSortFromTableQuery(this.startingQuery.getSql(), new AsyncCallback<List<SortItem>>() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onSuccess(List<SortItem> sortItems) {\n\t\t\t\tsetQueryResultsAndSort(bundle, sortItems);\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\tshowError(caught);\n\t\t\t}\n\t\t});\n\n\t}",
"@Generated\n @Selector(\"setFetchOffset:\")\n public native void setFetchOffset(@NUInt long value);",
"public Integer getCurrentPage();",
"public void setPaging(boolean paging) {\n this.paging = paging;\n }",
"void appendQueryParam(String name, Object value) {\n if (name == null) {\n throw new IllegalArgumentException(\"Name cannot be null\");\n }\n if (value == null) {\n throw new IllegalArgumentException(\"Value cannot be null\");\n }\n queryParams.add(new Param(name, String.valueOf(value)));\n }",
"public void setPageSize(int value) {\n this.pageSize = value;\n }",
"public StrColumn getPageLast() {\n return delegate.getColumn(\"page_last\", DelegatingStrColumn::new);\n }",
"public static String doPaginationResponseFormlet(HttpServletRequest request, Paginator paginator, List page) {\n request.setAttribute(\"pageRows\", page);\n return \"success\";\n }",
"public Builder setQueryParameter(String name, String value) {\n\t\t\tcheckArgument(name != null && !name.isEmpty(), \"Invalid parameter name\");\n\n\t\t\turl.query.put(name, value);\n\t\t\treturn this;\n\t\t}"
] | [
"0.63038397",
"0.59366465",
"0.5649312",
"0.5626355",
"0.5575252",
"0.54923105",
"0.54360616",
"0.5392978",
"0.5376164",
"0.5287089",
"0.52839136",
"0.5240283",
"0.52253634",
"0.52046466",
"0.51944536",
"0.5189603",
"0.5188154",
"0.5188037",
"0.51781166",
"0.51614743",
"0.51587856",
"0.5150663",
"0.5141702",
"0.5106957",
"0.50902724",
"0.50867975",
"0.50644857",
"0.5061388",
"0.5033244",
"0.503196",
"0.5031778",
"0.5028968",
"0.5023658",
"0.5023096",
"0.50225824",
"0.50171727",
"0.5002033",
"0.5000438",
"0.4994578",
"0.49938223",
"0.4988702",
"0.49861082",
"0.4983717",
"0.496713",
"0.4925908",
"0.49203175",
"0.49200228",
"0.49021417",
"0.48652947",
"0.48158368",
"0.4809835",
"0.48074165",
"0.48028985",
"0.48014802",
"0.47934195",
"0.47874594",
"0.47790867",
"0.47775257",
"0.47662964",
"0.47659883",
"0.47659883",
"0.47659883",
"0.47651026",
"0.47626245",
"0.4761624",
"0.4758047",
"0.47555572",
"0.4732857",
"0.4732857",
"0.47200865",
"0.4719203",
"0.47186428",
"0.47186428",
"0.47186428",
"0.47148746",
"0.47080317",
"0.47059554",
"0.47027957",
"0.46974206",
"0.46830037",
"0.46797758",
"0.46794602",
"0.46747077",
"0.4671945",
"0.46697974",
"0.46691146",
"0.46690422",
"0.46652046",
"0.46635216",
"0.4661721",
"0.46595895",
"0.46556884",
"0.46515155",
"0.46514732",
"0.4650903",
"0.46505612",
"0.46486533",
"0.46474922",
"0.46457487",
"0.46454445"
] | 0.5645121 | 3 |
should use regex with whitespaces | private String normolize(String str) {
String str1 = str.replaceAll("<div class=\"cl\"/></div>", "");
//str1 = new String(str1.getBytes(), "");
return str1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testRegEx(){\n\t\tString emptyLineRegEx = \"\\\\s*\";\r\n\t\t\r\n\t\tassertTrue(\"\".matches(emptyLineRegEx));\r\n\t\tassertTrue(\" \".matches(emptyLineRegEx));\r\n\t\tassertTrue(\"\\n\".matches(emptyLineRegEx));\r\n\t\tassertTrue(\"\\t\".matches(emptyLineRegEx));\r\n\t\tassertTrue(\"\\r\".matches(emptyLineRegEx));\r\n\t\tassertTrue(\"\\n \\t \".matches(emptyLineRegEx));\r\n\t\tassertTrue(\" \\n \\t \\n\\n\\n \".matches(emptyLineRegEx));\r\n\t\tassertFalse(\" . \\n \".matches(emptyLineRegEx));\r\n\t\t\r\n\t\t// space or tab any number of times\r\n\t\tString spaceTabRegEx = \"[ \\t]*\";\r\n\t\t\r\n\t\tassertTrue(\"\".matches(spaceTabRegEx));\r\n\t\tassertTrue(\" \".matches(spaceTabRegEx));\r\n\t\tassertTrue(\"\\t\".matches(spaceTabRegEx));\r\n\t\tassertTrue(\" \".matches(spaceTabRegEx));\r\n\t\tassertTrue(\"\\t\\t\".matches(spaceTabRegEx));\r\n\t\tassertTrue(\" \\t \\t \\t \".matches(spaceTabRegEx));\r\n\t\tassertFalse(\"\\n\".matches(spaceTabRegEx));\r\n\t\tassertFalse(\" l \".matches(spaceTabRegEx));\r\n\t\tassertFalse(\"\\t\\n\".matches(spaceTabRegEx));\r\n\t\t\r\n\t\t\r\n\t\t//Nucleotide sequence\r\n\t\tString ntRegEx = \"[ACGTacgt]+\";\r\n\t\t\r\n\t\tassertTrue(\"CAGTATGCATACC\".matches(ntRegEx));\r\n\t\tassertTrue(\"CTTATTTCAGGAAAATTTTTTCAAAACTGTAAAACAAAAACCATTTTTCACAGAATCTAAGGGTATCTGAAAGCTTAAAATAACTTCAGAAAGATATCAATTCCAGCTGTTTAGTACCTGAACTGTCTGTAAACGTTTCTTCTCGAATTATAGAAAATTTTCCACTTTTTCAAGTTCAGGTTTTCAAGAAACCCCACGATTTCCACTCATCGTTTCCAATGTCCAATTTCCCATCCAATTTGCCGCACTCTGACCCAATGACTTGTTCCTTTGCCAATCAATGCTACCTAATAAATTTAAAAGTTTAACACGCATCCAATTGACACACAGGTAACCGCCCTTTCTTCTTTTACATAATTCGGAAACTTCAAAGAGCCGAAGGTGTCGGTTGTAGCAGCAGCGGAGGAACGGATGCCAATTGCGCAACTCTCGGCTCAACTCTTTTAGTGCTCCGAGAGCAGGAAGAAGAATACTGTTGGGTTGTAATAAAGACGGATGTTTTTGTTCAGAGTAGATTAGCTCGTGTTTGATTGGATTTGACCGGATCAAGAGGGGAATGTCCTGGTGGAATTAAATTTTATTAGAATAAATTGTATTTGGTGTTTAAATTCGAATCAATAATATTTATGAGCTTTAATGAATAAGTGTTAGATTATATAATTCTATAATTTTTGAACAAGCAATTCAAAAAGAAAACAAATTTTAGTAACCTCCGAAATCAAGCTGGGTGGCCTCTAGAAGTTTTGAAAAAACTTTTTTTATATTCTGTTGGAGTTTTTTTAAGTTTTATAATTATAGGTTAATCTTTCTAATTTGTAAGCTTTTTCTTAACCAATTTTTTTTGTTAACATTTTTTTGGAATTATGCTATATGACCTATACCTAAAACAGTTTAAAAGTTTAAAAAAATTTTCTATATTTTTCACTTCGTATTGAACCTCCTGGGTACATATATTGACAGCACATATCTTGTTTGTCTCAGATTTTATCAAATAAGTTTAACAAGTAAACCATGCACCAAATATTTTTCTAGGTCTCTGTAGTTAGGAAATATTTAATAAAAATAAAAATAACCGAGATATGAGCCATCAAAGTAGATCAATTAAGGCACAGGAAAAAAGATCTGAATAAAATCGAAGTTCTTAAAAATATAAATCAAACAAAATTTTTTCCAGAATTTCAGCCGAGAATTTCCAGCCGATTTGTTTATATTTTCCACATCACTCCCCACACTTCTCTCACACAAACACGATAAAATCTTGAGAAGCAATTAGCGCCAATCAACTCAACACAAAAACGAAAAGCCAACGAAAAGCTAAAGCTATCATCGTTGTCGCGTCTATGAGCAACTCAATCGTTCATCATCCTCATCTTCAGAGTGCTCAAACCTACCGTAACCCGAATTGGGCGGAGCCAAAGGGTCCGAAACAGTGCACCAGGGCGGGGAGGGACCCTGAGAAACGAGAGGGAAGTGAGCAATTGTTGAAGTGTCAGTTGTGCTCATCGAGGTCCGATGAAGAGACGCGCCTGCTCACCTACACAACTGACTTCCCCCATATACCTTTTTCTAGAATTTCCTTTTTTAGATTTATACGGTCAGGTAAAAAGGTAGAGTTTTACAGTGTAGAAATTAGGAAATTGCTCAAAAAGCCGAGCAGAATGCATATAAGAAGTACCATAGCCCCAAAGATTCGATTTTCCAGGGTTCAATCAATTTTTGTACTTTGACAGCGTATATCTCAGTTTTCTTTGATTTTATCAAAAACTAGTCAACTGACAAAATACTTGAAAAGTATTCCTTTATATTTTGGTAGCTGACCATTGTTTGTTAAAATATAAGGGAATCGAAATGTCGGTTATCAAAGTAGAACCTAACCTAAATCGCTATATATGCTATTTTTCAAAAAAAAAAACACGTTTTACTTTGTCTCAACTTATTAATATTCTTTAATATTTTTTCTATTTCTACCATTTTCCAAATTTTCCAATAATTTTCCAGAA\".matches(ntRegEx));\r\n\t\tassertTrue(\"cagtagta\".matches(ntRegEx));\r\n\t\tassertTrue(\"aCgtTG\".matches(ntRegEx));\r\n\t\tassertFalse(\"a CgtTG\".matches(ntRegEx));\r\n\t\tassertFalse(\"aCXtTG\".matches(ntRegEx));\r\n\t\tassertFalse(\"a.CgtTG\".matches(ntRegEx));\r\n\t\tassertFalse(\"a1CgtTG\".matches(ntRegEx));\r\n\t\tassertFalse(\"aNCgtTG\".matches(ntRegEx));\r\n\t\tassertFalse(\"AGTATAATGACAACTTACAAAzTTGGGAAATCTGGAAAACCGAGC\".matches(ntRegEx));\r\n\t\t\r\n\t\t//PWM line \r\n\t\t// unicode for | is \\u007C\r\n\t\t// space: \\u0020\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"\\u007C\");\r\n\r\n\t\tString pwmRexEx = \"[ACGT][\\\\t ]+\\\\|([\\\\t ]+[0-9]+)+\";\r\n\t\t\r\n\t\tassertTrue(\"G\t|\t12 \t2\t 2343\".matches(pwmRexEx));\r\n\t\tassertTrue(\"A | 1 2 3\".matches(pwmRexEx));\r\n\t\tassertTrue(\"C | 11 2234 3\".matches(pwmRexEx));\r\n\t\tassertTrue(\"T |\t1\t12\t3123\".matches(pwmRexEx));\r\n\t\tassertTrue(\"A\t|\t49\t0\t288\t26\t77\t67\t45\t50\".matches(pwmRexEx));\r\n\t\tassertTrue(\"A\\t|\\t49\\t0\\t288\\t26\\t77\\t67\\t45\\t50\".matches(pwmRexEx));\r\n\t\tassertFalse(\"a | 1 2 3\".matches(pwmRexEx));\r\n\t\tassertFalse(\"A |\\n 1 2 3\".matches(pwmRexEx));\r\n\t\tassertFalse(\"A 1 2 3\".matches(pwmRexEx));\r\n\t\tassertFalse(\"A |\t1 C 3\".matches(pwmRexEx));\r\n\t\tassertFalse(\"C |1 2 3\".matches(pwmRexEx));\r\n\t\t\r\n\t\t\r\n\t\t// fasta sequence name\r\n\t\t\r\n\t\tString fastaNameSeqRegEx = \">[ \\t]*\\\\w+.*\"; \r\n\t\t\r\n\t\tassertTrue(\"> name \".matches(fastaNameSeqRegEx));\r\n\t\tassertTrue(\">name\".matches(fastaNameSeqRegEx));\r\n\t\tassertTrue(\">\\t name\\t\".matches(fastaNameSeqRegEx));\r\n\t\tassertTrue(\"> name123 stuf\\t12342 \\t\".matches(fastaNameSeqRegEx));\r\n\t\tassertTrue(\">check sda\".matches(fastaNameSeqRegEx));\r\n\t\tassertTrue(\"> negExSeq_0_B0304.1\".matches(fastaNameSeqRegEx));\r\n\t\t\r\n\t\tassertFalse(\"\".matches(fastaNameSeqRegEx));\r\n\t\tassertFalse(\" > name \".matches(fastaNameSeqRegEx));\r\n\t\tassertFalse(\">\\tname\\t\\n\".matches(fastaNameSeqRegEx));\r\n\t\tassertFalse(\">\\t\".matches(fastaNameSeqRegEx));\r\n\t\t\r\n\t\t\r\n\t\t//fasta file sequence\r\n\t\t\r\n\t\tString oneFastaSection = \"\\\\s*\" + fastaNameSeqRegEx + \"\\\\s*\\n+\" + \"[ACGTacgt]+\" ;\r\n\t\tString fastaSeqRegEx = \"(\" + oneFastaSection + \"[ \\t\\r]*\\n\" + \")*\" + oneFastaSection + \"\\\\s*\" ;\r\n\t\t\r\n\t\tassertTrue(\"> Y105E8B.1c\\nacgtacgtacggttacCTTACAAAATTGGGAAATCTGGAAAACCGAGC\".matches(fastaSeqRegEx));\r\n\t\tassertTrue(\"> negExSeq_0_B0304.1\\nCCACGCTTGATATATGGA\\n\".matches(fastaSeqRegEx));\r\n\t\tassertTrue(\"> negExSeq_0_B0304.1\\nCCACGCTTGATATATGGAAGCGTACAACAGGCATTATTCCATC\\n>C02B8.4\\nCTTATTTCAGGAAAATTTTTTCAAA\".matches(fastaSeqRegEx));\r\n\t\tassertTrue(\"\\t\\t\\t\\t\\t\\n> negExSeq_0_B0304.1\\nCCACGCTTGATATATGGAAGCGTACAACAGGCATTATTCCATC\\n\\t\\t\\t\\t\\n> C02B8.4\\nCTTATTTCAGGAAAATTTTTTCAAAA\\n\\t\\t \\n \\t\".matches(fastaSeqRegEx));\r\n\t\tassertTrue(\"\\t\\t\\t\\t\\r\\n> negExSeq_0_B0304.1\\r\\nCCACGCTTGATATATGGAAGCGTACAACAGGCATTATTCCATC\\n\\t\\t\\t\\t\\n> C02B8.4\\nCTTATTTCAGGAAAATTTTTTCAAAA\\n\\t\\t \\n \\t\".matches(fastaSeqRegEx));\r\n\t\tString realOutput = \"\\t\\t\\t\\t\\t\\r\\n> B0304.1\\r\\nCTTATTTCAGGGAA\\r\\n\\r\\n> F29F11.5\\r\\nGCCACATGG\\r\\n\\r\\n\\t\\t\\t\";\r\n\t\tassertTrue(realOutput.matches(fastaSeqRegEx));\r\n\t\r\n\t\t\r\n\t\t\r\n\t\tassertFalse(\"\".matches(fastaSeqRegEx));\r\n\t\tassertFalse(\"> Y105E8B.1c\\n\".matches(fastaSeqRegEx));\r\n\t\tassertFalse(\"> Y105E8B.1c\\nAGTATAATGACAACTTACAAAzTTGGGAAATCTGGAAAACCGAGC\".matches(fastaSeqRegEx));\r\n\t\tassertFalse(\"> Y105E8B.1c acgtacgtacggttacCTTACAAAATTGGGAAATCTGGAAAACCGAGC\".matches(fastaSeqRegEx));\r\n\t\tassertFalse(\"> negExSeq_0_B0304.1\\nCCACGCTTGATATATGGAAGCGTACAACAGGCATTATTCCATC >C02B8.4\\nCTTATTTCAGGAAAATTTTTTCAAA\".matches(fastaSeqRegEx));\r\n\t\tassertFalse(\"> negExSeq_0_B0304.1\\nCCACGCTTGATATATGGAAGCGTACAACAGGCATTATTCCATC\\n\\nCTTATTTCAGGAAAATTTTTTCAAA\".matches(fastaSeqRegEx));\r\n\t\tassertFalse(\"\".matches(fastaSeqRegEx));\r\n\t\t\r\n\t\t\r\n\t\t// pwm line: \r\n\r\n\t\tString pwmLineRegEx1 = \"[ACGTacgt][ \\t]*\\\\|([ \\t]*\\\\d+)+[ \\t]*\";\r\n\t\t\r\n\t\tassertTrue(\"A | 2 26 7\".matches(pwmLineRegEx1));\r\n\t\tassertTrue(\"A |2 26 7\".matches(pwmLineRegEx1));\r\n\t\tassertTrue(\"A| 2 26 7\".matches(pwmLineRegEx1));\r\n\t\tassertTrue(\"A\\t| \\t2 \\t\\t\\t26 7\\t\\t \".matches(pwmLineRegEx1));\r\n\r\n\t\tassertFalse(\"\".matches(pwmLineRegEx1));\r\n\t\tassertFalse(\" \\t \\t \".matches(pwmLineRegEx1));\r\n\t\tassertFalse(\"abra-cadabra\".matches(pwmLineRegEx1));\r\n\t\tassertFalse(\"> test A | 1 2 3\".matches(pwmLineRegEx1));\r\n\t\tassertFalse(\"A 2 26 7\".matches(pwmLineRegEx1));\r\n\t\tassertFalse(\"A | 2 A 7\".matches(pwmLineRegEx1));\r\n\t\tassertFalse(\"A 2 26 7\".matches(pwmLineRegEx1));\r\n\t\tassertFalse(\"A [ 2 26 7]\".matches(pwmLineRegEx1));\r\n\t\t\r\n\t\t\r\n\t\tString pwmLineRegEx2 = \"[ACGTacgt][ \\t]*\\\\[([ \\t]*\\\\d+)+[ \\t]*\\\\][ \\t]*\";\r\n\r\n\t\tassertTrue(\"A [ 2 26 7]\".matches(pwmLineRegEx2));\r\n\t\tassertTrue(\"A\\t[\\t2\\t26\\t7\\t]\".matches(pwmLineRegEx2));\r\n\t\tassertTrue(\"A[ 2 26 7]\".matches(pwmLineRegEx2));\r\n\t\t\r\n\t\tassertFalse(\"\".matches(pwmLineRegEx2));\r\n\t\tassertFalse(\" \\t \\t \".matches(pwmLineRegEx2));\r\n\t\tassertFalse(\"abra-cadabra\".matches(pwmLineRegEx2));\r\n\t\tassertFalse(\"> test A | 1 2 3\".matches(pwmLineRegEx2));\r\n\t\tassertFalse(\"A 2 26 7\".matches(pwmLineRegEx2));\r\n\t\tassertFalse(\"2 26 7\".matches(pwmLineRegEx2));\r\n\t\tassertFalse(\"A | 2 A 7\".matches(pwmLineRegEx2));\r\n\t\tassertFalse(\"A 2 26 7\".matches(pwmLineRegEx2));\r\n\t\tassertFalse(\"A 2 26 7\".matches(pwmLineRegEx2));\r\n\t\tassertFalse(\"A [ 2 26 7\".matches(pwmLineRegEx2));\r\n\t\tassertFalse(\"A [ ]\".matches(pwmLineRegEx2));\r\n\t\tassertFalse(\"A | 2 26 7\".matches(pwmLineRegEx2));\r\n\t\t\r\n\t\tString pwmRegEx1 = \"[Aa][ \\t]*\\\\|([ \\t]*\\\\d+)+[ \\t]*\\\\s*\\n\" +\r\n\t\t\t\t\"[Cc][ \\t]*\\\\|([ \\t]*\\\\d+)+[ \\t]*\\\\s*\\n\" +\r\n\t\t\t\t\"[Gg][ \\t]*\\\\|([ \\t]*\\\\d+)+[ \\t]*\\\\s*\\n\" +\r\n\t\t\t\t\"[Tt][ \\t]*\\\\|([ \\t]*\\\\d+)+[ \\t]*\\\\s*\";\r\n\t\t\r\n\t\tassertTrue(\"A | 2 26 7\\nC | 2 26 7\\nG | 2 26 7\\nT | 2 26 7\".matches(pwmRegEx1));\r\n\t\tassertTrue(\"A | 2 26 7\\nC | 2 26 7\t\\nG | 2 26 7\\nT |\t2\t\t26 7\\r\\n\".matches(pwmRegEx1));\r\n\r\n\t\tassertFalse(\"\".matches(pwmRegEx1));\r\n\t\tassertFalse(\"A | 2 26 7\\nC | 2 26 7\\nG | 2 26 7\".matches(pwmRegEx1));\r\n\t\tassertFalse(\"A 2 26 7\\nC | 2 26 7\t\\nG | 2 26 7\\nT |\t2\t\t26 7\\r\\n\".matches(pwmRegEx1));\r\n\r\n\t\r\n\t\tString pwmRegEx2 = \"[Aa][ \\t]*\\\\[([ \\t]*\\\\d+)+[ \\t]*\\\\][ \\t]*\\\\s*\\n\" +\r\n\t\t\"[Cc][ \\t]*\\\\[([ \\t]*\\\\d+)+[ \\t]*\\\\][ \\t]*\\\\s*\\n\" +\r\n\t\t\"[Gg][ \\t]*\\\\[([ \\t]*\\\\d+)+[ \\t]*\\\\][ \\t]*\\\\s*\\n\" +\r\n\t\t\"[Tt][ \\t]*\\\\[([ \\t]*\\\\d+)+[ \\t]*\\\\][ \\t]*\\\\s*\";\r\n\r\n\t\tassertTrue(\"A [ 2 26 7]\\r\\nC [ 2 26 7]\\r\\nG [ 2 26 7]\\nT [ 2 26 7]\".matches(pwmRegEx2));\r\n\t\tassertTrue(\"A [\\t2 26 7]\\r\\nC [ 2 26 7]\\r\\nG [ 2 26 7]\\nT [ 2 26 7]\\n\".matches(pwmRegEx2));\r\n\r\n\t\tassertFalse(\"\".matches(pwmRegEx2));\r\n\t\tassertFalse(\"A [ 2 26 7]\\r\\nC [ 2 26 7]\\r\\nG [ 2 26 7]\\nT [ 2 26 7\".matches(pwmRegEx2));\r\n\t\tassertFalse(\"A [ 2 26 7]\\r\\nC [ 2 26 7]G [ 2 26 7]\\nT [ 2 26 7]\".matches(pwmRegEx2));\r\n\t\tassertFalse(\"A [ 2 26 7]\\r\\nC [ 2 26 7]\\r\\nG [ 2 26 7]\\nA [ 2 26 7]\".matches(pwmRegEx2));\r\n\t\tassertFalse(\"\\tA [ 2 26 7]\\r\\nC [ 2 26 7]\\r\\nG [ 2 26 7]\\nT [ 2 26 7]\".matches(pwmRegEx2));\r\n\t\t\r\n\t}",
"Rule WhiteSpace() {\n return ZeroOrMore(AnyOf(\" \\n\\r\\t\\f\"));\n }",
"@Test //TEST FOUR\n void testSpacesAndCapitalsBreedName()\n {\n Rabbit_RegEx rabbit_breed = new Rabbit_RegEx();\n rabbit_breed.setBreedName(\"Netherland Dwarf\");\n assertTrue(rabbit_breed.getBreedName().matches(\"^[A-Za-z][a-zA-Z-][a-zA-z- ]*\"));\n }",
"@Test //TEST FIVE\n void testSpacesAndLowercaseBreedName()\n {\n Rabbit_RegEx rabbit_breed = new Rabbit_RegEx();\n rabbit_breed.setBreedName(\"silver fox\");\n assertTrue(rabbit_breed.getBreedName().matches(\"^[A-Za-z][a-zA-Z-][a-zA-z- ]*\"));\n }",
"@Test\n public void shouldRetainDigitsAndWhiteSpace() {\n Assert.assertThat(\"match any digits\",CharMatcher.DIGIT.or(CharMatcher.WHITESPACE)\n .retainFrom(\"123TT T4\"),is(\"123 4\"));\n }",
"protected String hookGetRegex() \r\n\t{\n\t\treturn \"\\\\s+\"; \r\n\t}",
"@Test\n public void shouldMatchBreakingWhitespace(){\n Assert.assertThat(\"match any breaking white space\",CharMatcher.BREAKING_WHITESPACE.matchesAnyOf(\"\\n\\r\"),is(true));\n }",
"@Test\n public void shouldMatchDigitsWithSpace() {\n Assert.assertThat(\"match any digits with space\",CharMatcher.DIGIT.matchesAllOf(\"123T TT4\"),is(false));\n Assert.assertThat(\"match any digits with space\",CharMatcher.DIGIT.matchesAnyOf(\"123 TTT4\"),is(true));\n }",
"private static void assertEqualsIgnoringWhitespace(final String expected, final String actual){\n // assertEquals(expected.replaceAll(\"^ +\", \"\"), actual.replaceAll(\"^ +\", \"\"));\n assertEquals(expected.replaceAll(\"\\\\s+\", \"\"), actual.replaceAll(\"\\\\s+\", \"\"));\n }",
"@Override\n public boolean isRegex() {\n return false;\n }",
"@Test\n public void shouldReplaceSign() {\n Assert.assertThat(\"match any digits\", CharMatcher.is('$').trimAndCollapseFrom(\"$$ this is $ test $$\",'x'),containsString(\" this is x test \"));\n Assert.assertThat(\"match any digits\", CharMatcher.is('$').or(CharMatcher.is(' ')).trimFrom(\"$$ this is $ test $$\"),equalTo(\"this is $ test\"));\n }",
"boolean canMatchEmptyString() {\n return false;\n }",
"@Test\n public void shouldRemoveSignInAString() {\n Assert.assertThat(\"match any digits\", CharMatcher.is('$').trimFrom(\"$$ this is $ test $$\"),containsString(\"this is $ test\"));\n Assert.assertThat(\"match any digits\", CharMatcher.is('$').trimLeadingFrom(\"$$ this is $ test $$\"),containsString(\"this is $ test $$\"));\n Assert.assertThat(\"match any digits\", CharMatcher.is('$').trimTrailingFrom(\"$$ this is $ test $$\"),containsString(\"this is $ test \"));\n }",
"private String genWhiteSpaceRegex(int noOfWhiteSpace,\n String multiWhiteSpace,\n String zeroWhiteSpace) {\n\n return (noOfWhiteSpace == 0) ? zeroWhiteSpace\n : multiWhiteSpace.replace(\"%%\", String.valueOf(noOfWhiteSpace));\n }",
"@Test\n public void givenFirstName_WhenSpChar_ShouldReturnFalse() {\n RegexTest valid = new RegexTest();\n boolean result = valid.firstName(\"Fat@ha\");\n Assert.assertEquals(false,result);\n }",
"public abstract boolean isSingleCharMatcher();",
"private\n\tRegExHelper()\n\t{\n\t\tsuper();\n\t}",
"@Test //TEST FIVE\n void testSpecialCharactersRabbitName()\n {\n Rabbit_RegEx rabbit_Name = new Rabbit_RegEx();\n rabbit_Name.setRabbitName(\"Pot!at!*\"); //potat or potato w/out an o\n assertFalse(rabbit_Name.getRabbitName().matches(\"[A-Za-z-]*\"));\n }",
"@Test //TEST SIX\n void testSpecialCharactersBreedName()\n {\n Rabbit_RegEx rabbit_breed = new Rabbit_RegEx();\n rabbit_breed.setBreedName(\"Champagne d'Argent\");\n assertFalse(rabbit_breed.getBreedName().matches(\"^[A-Za-z][a-zA-Z- ][a-zA-z- ]*\"));\n }",
"java.lang.String getRegex();",
"java.lang.String getRegex();",
"private static boolean isWhiteSpace(final String strval)\n\t{\n\t\tif (null != strval)\n\t\t{\n\t\t\tfinal int n = strval.length();\n\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t{\n\t\t\t\tfinal char ch = strval.charAt(i);\n\n\t\t\t\t// The follwing pattern is denormalized for speed.\n\t\t\t\tif ((ch == 0x20) || (ch == 0x09) || (ch == 0xD) || (ch == 0xA))\n\t\t\t\t{\n\t\t\t\t\t// Try the next one, all must be whiteSpace.\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}",
"private String normalizeSpace(final String arg) {\n return arg.replaceAll(Constants.SPACE_PATTERN, Constants.SPACE);\n }",
"@Test\n public void spacesInKeywordTest() {\n tester.correct(\"Laaa Laaa Laaaa Li\" );\n }",
"abstract boolean canMatchEmptyString();",
"@Test\n\t public void test3()\n\t{\n\t\t\tString s = new String();\n\t s = s.replaceAll(\"\\\\s+\", \" \");\n\t assertEquals(\"\", LRS.lrs(s)); \n\t}",
"@Test //TEST TWO\n void testallLowerBreedName()\n {\n Rabbit_RegEx rabbit_breed = new Rabbit_RegEx();\n rabbit_breed.setBreedName(\"dwarfhotot\"); //Dwarf Hotot\n assertTrue(rabbit_breed.getBreedName().matches(\"^[A-Za-z][a-zA-Z-][a-zA-z- ]*\"));\n }",
"public String getRegEx();",
"@Test\n\tvoid runRegExNoOperands_LegalCase() throws Exception {\n\t\tmaxScore += 10;\n\t\tRegEx.regEx = \"Sargon\";\n\t\ttry {\n\t\t\tRegExTree ret = RegEx.parse();\n\t\t\tAutomaton a = RegEx.RegExTreeToAutomaton(ret);\n\t\t\ta.toTable();\n\t\t\ta.eliminateEpsilonTransitions();\n\t\t\ta.minimize();\n\t\t\tArrayList<MatchResponse> response = a.search(\"books/babylon.txt\");\n\t\t} catch (Exception e) {\n\t\t\tfail();\n\t\t}\n\t\tactualScore += 10;\n\t}",
"@Test\n\tvoid testFormattedRE() {\n\t\tRegularLanguage rl[] = new RegularLanguage[lengthToFormatRE]; \n\t\tint i = 0;\n\t\tfor (String re : toFormatRE) {\n\t\t\trl[i++] = RegularExpression.isValidRE(re);\n\t\t}\n\t\t// Verify if all objects were created\n\t\tfor (RegularLanguage re : rl) {\n\t\t\tif (re.equals(null)) {\n\t\t\t\tfail(); // object couldn't be created\n\t\t\t}\n\t\t}\n\n\t\t// a***** -> a*\n\t\tassertEquals(\"a*\", rl[0].getRE().getFormattedRegex());\n\t\t// aa????? -> a?\n\t\tassertEquals(\"a?\", rl[1].getRE().getFormattedRegex());\n\t\t// a+++++ -> a+\n\t\tassertEquals(\"a+\", rl[2].getRE().getFormattedRegex());\n\t\t// a?*?*?***???* -> a*\n\t\tassertEquals(\"a*\", rl[3].getRE().getFormattedRegex());\n\t\t// a?+?+?+++???+ -> a*\n\t\tassertEquals(\"a*\", rl[4].getRE().getFormattedRegex());\n\t\t// a*+*+*++++***+* -> a*\n\t\tassertEquals(\"a*\", rl[5].getRE().getFormattedRegex());\n\t\t// a?+*?+?***???+++***?+?*+* -> a*\n\t\tassertEquals(\"a*\", rl[6].getRE().getFormattedRegex());\n\t\t\t\n\t}",
"private static String trimWhiteSpace(String sentence) {\n\t\tsentence = sentence.replaceAll(\"[^a-zA-Z]\", \" \");\n//\t\tsentence = sentence.replaceAll(\"\\n\", \" \");\n//\t\tsentence = sentence.replaceAll(\"\\t\", \" \");\n// sentence = sentence.replaceAll(\"\\\\.\", \" \");\n// sentence = sentence.replaceAll(\",\", \" \");\n \n//\t\tint length;\n//\t\tdo {\n//\t\t\tlength = sentence.length();\n//\t\t\tsentence = sentence.replaceAll(\" \", \" \");\n//\n//\t\t} while (sentence.length() < length);\n\t\treturn sentence;\n\t}",
"private static String stripRegexCharacters(String text) {\r\n if (StringUtils.isBlank(text)) {\r\n return \"\";\r\n }\r\n return text.replaceAll(\"\\\\*\", \".*\").replaceAll(\"\\\\(\", \"\").replaceAll(\"\\\\)\", \"\").replaceAll(\"\\\\?\", \"\")\r\n .replaceAll(\"\\\\{\", \"\").replaceAll(\"\\\\}\", \"\").replaceAll(\"\\\\[\", \"\").replaceAll(\"\\\\]\", \"\")\r\n .replaceAll(\"\\\\+\", \"\").toLowerCase();\r\n }",
"@Test\n public void shouldCollapseAllDigitsByX(){\n Assert.assertThat(\"match any digits\",CharMatcher.DIGIT.replaceFrom(\"123TT T4\",\"x\"),is(\"xxxTT Tx\"));\n Assert.assertThat(\"match any digits\",CharMatcher.DIGIT.or(CharMatcher.WHITESPACE).replaceFrom(\"123TT T4\", \"x\"),is(\"xTTxTx\"));\n }",
"public interface RegExp {\n String NAME_REGEXP = \"^[А-Я][а-я]{2,30}$\";\n String AGE_REGEXP = \"^((1[012][0-9])|([1-9][0-9]))$\";\n String EMAIL_REGEXP = \"^[-z0-9_.]{1,30}@([A-z]+[A-z0-9]{1,15}.){1,2}([A-z]+[A-z0-9]{1,15})$\";\n String CELL_PHONE_REGEXP = \"([\\\\+]\\\\d{2}\\\\s?)?(([\\\\(\\\\s]\\\\d{3}[\\\\)\\\\s])|\" +\n \"(\\\\d{3}))[\\\\s-]?\\\\d{3}[\\\\s-]?\\\\d{2}[\\\\s-]?\\\\d{2}$\";\n String CELL_PHONE_OPTIONAL_REGEXP = \"^(([\\\\+]\\\\d{2}\\\\s?)?(([\\\\(\\\\s]\\\\d{3}[\\\\)\\\\s])|\" +\n \"(\\\\d{3}))[\\\\s-]?\\\\d{3}[\\\\s-]?\\\\d{2}[\\\\s-]?\\\\d{2})?\";\n String LOCAL_PHONE_REGEXP = \"^([\\\\+]\\\\d{2}\\\\s?)?(([\\\\(\\\\s]\\\\d{3}[\\\\)\\\\s])|(\\\\d{3}))?[\\\\s-]?\\\\d{3}[\\\\s-]?\\\\d{3}$\";\n String COMMENT_REGEXP = \"^([\\\\d\\\\s\\\\w\\\\.\\\\,\\\\!]){0,127}$\";\n String GROUP_REGEXP = \"^[А-я]{4,10}$\";\n String SKYPE_NICK_REGEXP = \"^[\\\\w\\\\d\\\\_]{3,20}$\";\n String INDEX_REGEXP = \"^[\\\\d]{8}$\";\n String CITY_STREET_REGEXP = \"^[А-Я][а-я]{3,20}$\";\n String BUILDING_REGEXP = \"^[\\\\d]{1,3}[\\\\w]?$\";\n String FLAT_REGEXP = \"^[\\\\d]{1,3}$\";\n}",
"@Test\r\n public final void rawInputNamesShouldNotHaveSpaces() {\r\n \tString actual = proc.preprocessRawInputName(\" AndThis String\");\r\n \tassertEquals(\"AndThisString\", actual);\r\n }",
"public String getRegex();",
"@Test\n public void testIsStringOnlyAlphabetAndNumbersAndWhiteSpaces() {\n System.out.println(\"isStringOnlyAlphabetAndNumbersAndWhiteSpaces\");\n String input = \".%6gwdye\";\n boolean expResult = false;\n boolean result = ValidVariables.isStringOnlyAlphabetAndNumbersAndWhiteSpaces(input);\n assertEquals(expResult, result);\n }",
"private void skipSpaces() {\r\n\t\twhile (currentIndex < expression.length && (expression[currentIndex] == ' ' || expression[currentIndex] == '\\t'\r\n\t\t\t\t|| expression[currentIndex] == '\\n' || expression[currentIndex] == '\\r')) {\r\n\t\t\tcurrentIndex++;\r\n\t\t}\r\n\t}",
"@Test\n\t public void test2()\n\t{\n\t\t\tString s = new String(\"abcdefg\");\n\t s = s.replaceAll(\"\\\\s+\", \" \");\n\t assertEquals(\"\", LRS.lrs(s)); \n\t}",
"@Test\n\tpublic void testRemoveWhiteSpacesAndPunctuation() {\n\t\tString input = \"2$2?5 5!63\";\n\t\tString actual = GeneralUtility.removeWhiteSpacesAndPunctuation(input);\n\t\tString expected = \"225563\";\n\t\tAssert.assertEquals(expected, actual);\n\t}",
"@Test\n\tvoid runRegEx_IllegalCharacters() throws Exception {\n\t\tmaxScore += 10;\n\t\tRegEx.regEx = \"|*\";\n\t\ttry {\n\t\t\tRegExTree ret = RegEx.parse();\n\t\t\tAutomaton a = RegEx.RegExTreeToAutomaton(ret);\n\t\t\ta.toTable();\n\t\t\ta.eliminateEpsilonTransitions();\n\t\t\ta.minimize();\n\t\t\tfail();\n\t\t} catch (Exception e) {\n\t\t\tactualScore += 10;\n\t\t}\n\t}",
"protected abstract Regex pattern();",
"public static void main(String[] args) {\r\n\t\t boolean matches_1 = Pattern.matches(\"[a-zA-Z0-9]{4}\", \"0Aa1\");\r\n\t\t boolean matches_2 = Pattern.matches(\"[a-zA-Z0-9]{4}\", \"0A@a1\");\r\n\t\t\t System.out.println(\"Regular Expression is \"+matches_1 +\" for given string(0Aa1)\");\r\n\t\t\t System.out.println(\"Regular Expression is \"+matches_2 +\" for given string(0A@a1)\");\r\n\t}",
"public interface RegExp {\n String NUMBER_OF_COMPOSITION = \"^[1-2][0-9]|[1-9]$\";\n String BREAK_DATE_BY_DOT = \"[.]\";\n String IDENTIFY_BUMDLE = \"^([E|e][N|n])|[У|у][К|к][Р|р]$\";\n String DURATION = \"^[1-9]|[1-9][0-9]|[1-4][0-9][0-9]$\";\n}",
"boolean hasRegex();",
"private boolean startsWithSpace(String str) {\r\n\t\treturn str.length() != 0 && str.charAt(0) == ' ';\r\n\t}",
"@Test\n public void testParseRegexp_valid3() throws InvalidRegexpException {\n BasicRegexp re = BasicRegexp.parseRegexp(\"a b c d\");\n assertEquals(re.toString(), \"abcd\");\n }",
"private String checkNullString(String text) {\n if ( text.contains( \" \" )) {\n return null;\n }\n\n // otherwise, we're totally good\n return text;\n }",
"@Test\n public void shouldReturnFirstIndexOfFirstWhitespace() {\n Assert.assertThat(\"match any digits\",CharMatcher.DIGIT\n .indexIn(\"123TT T4\"),is(0));\n }",
"public static void main(String[] args) {\n\n String pattern = \"abba\", inStr = \"dog cat cat fish\";\n System.out.println(matchWithSpace(pattern, inStr));\n\n //Given a pattern and a string str, find if str follows the same pattern. NO SPACE IN STRING\n // pattern = \"abab\", str = \"redblueredblue\" => true\n // pattern = \"aaaa\", str = \"asdasdasdasd\" => true\n // pattern = \"aabb\", str = \"xyzabcxyzabc\" => false\n\n System.out.println(matchNoSpace(\"abab\",\"redblueredblue\"));\n System.out.println(matchNoSpace(\"aabb\",\"xyzabcxzyabc\"));\n\n }",
"@BeforeEach\n\tvoid setUpInvalidRE(){\n\t\tinvalidRE= new String[lengthInvalid];\n\t\t// (ab\n\t\tinvalidRE[0] = \"(ab\";\n\t\t// ab)\n\t\tinvalidRE[1] = \"ab)\";\n\t\t// *\n\t\tinvalidRE[2] = \"*\";\n\t\t// ?\n\t\tinvalidRE[3] = \"?\";\n\t\t// +\n\t\tinvalidRE[4] = \"+\";\n\t\t// a | b | +c\n\t\tinvalidRE[5] = \"a | b | +c\";\n\t\t// a | b | *c\n\t\tinvalidRE[6] = \"a | b | *c\";\n\t\t// a | b | ?c\n\t\tinvalidRE[7] = \"a | b | ?c\";\n\t\t// a | b | | c\n\t\tinvalidRE[8] = \"a | b | | c\";\n\t\t// uneven parenthesis\n\t\tinvalidRE[9] = \"(a(b(c(d)*)+)*\";\n\t\t// a | b |\n\t\tinvalidRE[10] = \"a | b | \";\n\t\t// invalid symbols\n\t\tinvalidRE[11] = \"a | b | $ | -\";\n\t\t// (*)\n\t\tinvalidRE[12] = \"(*)\";\n\t\t// (|a)\n\t\tinvalidRE[13] = \"(|a)\";\n\t\t// (.b)\n\t\tinvalidRE[14] = \"(.b)\";\n\t}",
"@Test\n public void testIsStringOnlyAlphabetAndWhiteSpaces() {\n System.out.println(\"isStringOnlyAlphabetAndWhiteSpaces\");\n String str = \"52374ggs\";\n boolean expResult = false;\n boolean result = ValidVariables.isStringOnlyAlphabetAndWhiteSpaces(str);\n assertEquals(expResult, result);\n }",
"@org.junit.Test\n public void markingSpaces()\n {\n assertEquals(\"empty\", \"\", markSpaces(\"\"));\n assertEquals(\"simple\", \"just_a_test\", markSpaces(\"just a test\"));\n assertEquals(\"all\", \"just\\\\ta\\\\ntest\\\\f\\\\r_with___all_\\\\n\\\\nthings\",\n markSpaces(\"just\\ta\\ntest\\f\\r with all \\n\\nthings\"));\n }",
"@Test\n public void testParseRegexp_correctness1new()\n throws InvalidRegexpException {\n BasicRegexp re = BasicRegexp.parseRegexp(\"(01|10)*1111\");\n assertEquals(re.toString(), \"(01|10)*1111\");\n }",
"private boolean startsWithWhite(String str) {\r\n if ((str != null) &&\r\n (str.length() > 0) &&\r\n isWhitespace( str.charAt(0))) {\r\n return true;\r\n }\r\n return false;\r\n }",
"private static boolean noWhiteSpace(String password) {\n\t\tint whitespaces = 0;\n\t\tfor (int i = 0; i < password.length(); i++) {\n\t\t char c = password.charAt(i);\n\t\t if ( Character.isWhitespace(c) ) {\n\t\t \t whitespaces++;\n\t\t }\n\t\t}\n\t\tif (whitespaces >= 1) {\n\t\t\tSystem.out.println(\"no whitespaces!\");\n\t\t\treturn false;\n\t\t} else return true;\n\t}",
"private boolean isPhoneValid(String phone) {\n return !phone.contains(\" \");\r\n }",
"public static void main(String[] args) {\n String myRegExString = \"[a-zA-Z\\\\s]+\";\n\n // This is the string we will check to see if our regex matches:\n String myString = \"The quick brown fox jumped over the lazy dog...\";\n\n // Create a Pattern object (compiled RegEx) and save it as 'p'\n Pattern p = Pattern.compile(myRegExString);\n\n // We need a Matcher to match our compiled RegEx to a String\n Matcher m = p.matcher(myString);\n\n // if our Matcher finds a match\n if (m.find()) {\n // Print the match\n System.out.println(m.group());\n }\n\n String s = \"Hello, Goodbye, Farewell\";\n Pattern p1 = Pattern.compile(\"\\\\p{Alpha}+\");\n Matcher m1 = p1.matcher(s);\n\n while( m.find() ){\n System.out.println(m1.group());\n }\n\n String s1 = \"Hello, Goodbye, Farewell\";\n String s2 = \"Hola, Adios, Hasta Luego\";\n\n String myDelimiter = \", \";\n\n String[] s1array = s1.split(myDelimiter);\n String[] s2array = s2.split(myDelimiter);\n\n System.out.println(\"s1array[0]: \" + s1array[0]);\n System.out.println(\"s1array[1]: \" + s1array[1]);\n System.out.println(\"s1array[2]: \" + s1array[2]);\n System.out.println(\"s2array[0]: \" + s2array[0]);\n System.out.println(\"s2array[1]: \" + s2array[1]);\n System.out.println(\"s2array[2]: \" + s2array[2]);\n\n }",
"@Test //TEST THREE\n void testallNumbersRabbitName()\n {\n Rabbit_RegEx rabbit_Name = new Rabbit_RegEx();\n rabbit_Name.setRabbitName(\"12345\");\n assertFalse(rabbit_Name.getRabbitName().matches(\"[A-Za-z-]*\"));\n }",
"@Test\n void testWhiteSpace() {\n assertEquals(1, Calculator.calculate(\" 5 - 4\"));\n }",
"private static boolean containsIllegals(String toExamine) {\n Pattern pattern = Pattern.compile(\"[+]\");\n Matcher matcher = pattern.matcher(toExamine);\n return matcher.find();\n }",
"@Test\n public void macroParseTest1() throws TapisException\n {\n var s = \"$varname\";\n var m = _pattern.matcher(s);\n var b = m.matches();\n Assert.assertEquals(b, true, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.groupCount(), 3, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.group(1), s, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.group(3), null, \"Failed on \\\"\"+ s + \"\\\"\");\n \n s = \"varname\";\n m = _pattern.matcher(s);\n b = m.matches();\n Assert.assertEquals(b, true, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.groupCount(), 3, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.group(1), s, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.group(3), null, \"Failed on \\\"\"+ s + \"\\\"\");\n \n s = \"$varname,/path/name\";\n m = _pattern.matcher(s);\n b = m.matches();\n Assert.assertEquals(b, true, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.groupCount(), 3, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.group(1), \"$varname\", \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.group(3), \"/path/name\", \"Failed on \\\"\"+ s + \"\\\"\");\n \n s = \"$varname ,/path/name\";\n m = _pattern.matcher(s);\n b = m.matches();\n Assert.assertEquals(b, true, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.groupCount(), 3, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.group(1), \"$varname\", \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.group(3), \"/path/name\", \"Failed on \\\"\"+ s + \"\\\"\");\n \n s = \"$varname , /path/name\";\n m = _pattern.matcher(s);\n b = m.matches();\n Assert.assertEquals(b, true, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.groupCount(), 3, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.group(1), \"$varname\", \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.group(3), \"/path/name\", \"Failed on \\\"\"+ s + \"\\\"\");\n \n s = \"$varname , /path/name \";\n m = _pattern.matcher(s);\n b = m.matches();\n Assert.assertEquals(b, true, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.groupCount(), 3, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.group(1), \"$varname\", \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.group(3), \"/path/name\", \"Failed on \\\"\"+ s + \"\\\"\");\n \n s = \"$varname \";\n m = _pattern.matcher(s);\n b = m.matches();\n Assert.assertEquals(b, true, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.groupCount(), 3, \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.group(1), \"$varname\", \"Failed on \\\"\"+ s + \"\\\"\");\n Assert.assertEquals(m.group(3), null, \"Failed on \\\"\"+ s + \"\\\"\");\n\n s = \"$varname,\";\n m = _pattern.matcher(s);\n b = m.matches();\n Assert.assertEquals(b, false, \"Failed on \\\"\"+ s + \"\\\"\");\n \n s = \"$varname /path/name\";\n m = _pattern.matcher(s);\n b = m.matches();\n Assert.assertEquals(b, false, \"Failed on \\\"\"+ s + \"\\\"\");\n }",
"@Test //TEST TWO\n void testlowerRabbitName()\n {\n Rabbit_RegEx rabbit_Name = new Rabbit_RegEx();\n rabbit_Name.setRabbitName(\"snowflake\");\n assertTrue(rabbit_Name.getRabbitName().matches(\"[A-Za-z-]*\"));\n }",
"private boolean validate(String s)\r\n\t{\r\n\t\tint i=0;\r\n\t\tchar[] s1=s.toLowerCase().toCharArray();\r\n\t\twhile(i<s1.length)\r\n\t\t{\r\n\t\t\tif(s1[i]=='*' || s1[i]=='?')\r\n\t\t\t\tbreak;\r\n\t\t\tif(s1[i]<'a' || s1[i]>'z') return false;\r\n\t\t\ti++;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@Test(timeout = 4000)\n public void test076() throws Throwable {\n String string0 = SQLUtil.normalize(\"renamed,k3__[c*z4nv8e@bl6\", true);\n assertEquals(\"renamed, k3__ [ c * z4nv8e @ bl6\", string0);\n }",
"public static void main(String[] args) {\n// System.out.println(alphanumeric.replaceAll(\"[aei]\", \"x\"));\n\n\n String regex = \"^[A-Z]|[a-z]\";\n String username = \"kaaviya\";\n\n System.out.println(username.replaceAll( \"^[A-Za-z][A-Za-z0-9_]{7,29}$\", \"x\"));\n System.out.println(username.matches(regex));\n\n }",
"@Test //TEST FOUR\n void testOneNumberinRabbitName()\n {\n Rabbit_RegEx rabbit_Name = new Rabbit_RegEx();\n rabbit_Name.setRabbitName(\"MO0N\");\n assertFalse(rabbit_Name.getRabbitName().matches(\"[A-Za-z-]*\"));\n }",
"private Annotation[] testRegEx(String regEx) {\n\t\tQueriableAnnotation data = this.parent.getActiveDocument();\n\t\treturn ((data == null) ? null : Gamta.extractAllMatches(data, regEx, 64));\n\t}",
"@Test //TEST ONE\n void testCapital1stLetterBreedName()\n {\n Rabbit_RegEx rabbit_breed = new Rabbit_RegEx();\n rabbit_breed.setBreedName(\"AmericanFuzzyLop\"); //American Fuzzy Lop, very cute!\n assertTrue(rabbit_breed.getBreedName().matches(\"^[A-Za-z][a-zA-Z-][a-zA-z- ]*\"));\n }",
"private void skipWhitespace() {\n while (currentPos < endPos && filterString.charAt(currentPos) == ' ') {\n currentPos++;\n }\n }",
"@BeforeEach\n\tvoid setUpValidRE(){\n\t\tvalidRE= new String[lengthValid];\n\t\t// ab\n\t\tvalidRE[0] = \"ab\";\n\t\t// (ab)\n\t\tvalidRE[1] = \"(ab)\";\n\t\t//(ab)*\n\t\tvalidRE[2] = \"(ab)*\";\n\t\t// a???\n\t\tvalidRE[3] = \"a???\";\n\t\t// a***\n\t\tvalidRE[4] = \"a***\";\n\t\t// a+++\n\t\tvalidRE[5] = \"a+++\";\n\t\t// (((a)))\n\t\tvalidRE[6] = \"(((a)))\";\n\t\t// (a | ab | c*)*\n\t\tvalidRE[7] = \"(a | ab | c*)*\";\n\t\t// (a | ab | c*)**??\n\t\tvalidRE[8] = \"(a | ab | c*)*??\";\n\t\t// ( a | (ab | cd)+ )+\n\t\tvalidRE[9] = \"(a | (ab | cd)+)+\";\n\t\t// 0 (01 | (02) * | (03)++) | (1?01?)\n\t\tvalidRE[10] = \"0 (01 | (02) * | (03)++) | (a?01?)\";\n\t\t// a | &\n\t\tvalidRE[11] = \"a | &\";\n\t\t// &*\n\t\tvalidRE[12] = \"&*\";\n\t\t// (())* (empty language)\n\t\tvalidRE[13] = \"(())*\";\n\t\t// (a*b)*\n\t\tvalidRE[14] = \"(a*b)*\";\n\t\t// (a | & | a*b?c+)*\n\t\tvalidRE[15] = \"(a | & | a*b?c+)*\";\n\t}",
"@Override\n protected void compileRegex(String regex) {\n }",
"@Test\n public void wrongCommentMatch() {\n comment.match(\"jhadj //kasf \");\n assertEquals(null, comment.getToken());\n }",
"@Test\r\n\t\tpublic void testTokenizeWhitespace() {\r\n\t\t\t\r\n\t\t\tdriver.findElement(By.id(\"code_code\")).sendKeys(\"a = 5\\nb = 6\\nc = a + (b * 4)\");;\r\n\t\t\t\r\n\t\t\tWebElement submitButton = driver.findElement(By.name(\"commit\"));\r\n\t\t\tsubmitButton.click();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tWebElement e = driver.findElement(By.tagName(\"code\"));\r\n\t\t\t\tString elementText = e.getText();\r\n\t\t\t\tassertTrue(elementText.contains(\":on_sp\"));\r\n\t\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\t\tfail();\r\n\t\t\t}\r\n\t\t}",
"@Override\n\tpublic boolean test(MyRegex t) {\n\t\treturn false;\n\t}",
"public String getWordRegex(String word){\n\t\treturn String.format(\"\\\\b%1$s\\\\b|\\\\b%1$ss\\\\b\", word);\n\t}",
"@Test\n\tpublic void caseNameWithEmpty() {\n\t\tString caseName = \" \";\n\t\ttry {\n\t\t\tStringNumberUtil.stringUtil(caseName);\n\t\t} catch (StringException e) {\n\t\t}\n\t}",
"private String regex(Edge e) {\n return EdgeWriter.toRegex(e, false /* use dot match */);\n }",
"private static String escapeWhitespace( final String input )\n {\n return input.replaceAll( \"\\\\ \", \"\\\\\\\\ \" );\n }",
"@Test\n public void noSpacesBetweenKeywordsTest() {\n tester.yields(\"LaLaLaLaLaaaLi\", lala.EXPRESSION);\n }",
"@Test(timeout = 4000)\n public void test062() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.consume(2033);\n Token token0 = xPathLexer0.whitespace();\n assertEquals((-2), token0.getTokenType());\n assertEquals(\"\", token0.getTokenText());\n }",
"private boolean preTest(String str) {\n\t\treturn str.matches(\"^[\\\"A-Z][\\u0000-\\u0080]+$\");\n\t}",
"private String cleanString(String data){\n Pattern ptn = Pattern.compile(\"//.*\");\n Matcher mc = ptn.matcher(data);\n while(mc.find())data = data.replace(mc.group(),\"\");\n ptn = Pattern.compile(\"/\\\\*(.|\\n)*?\\\\*/\");\n mc = ptn.matcher(data);\n while(mc.find()) data = data.replace(mc.group(),\"\");\n return data.trim();\n }",
"public static String ungroupify(String text){\r\n return text.replaceAll(\"[\\\\sx]\", \"\");\r\n}",
"@Override\n\tpublic String clean(String input) {\n\t\tinput = input.replaceAll(removeCommonWords.toString(), \" \");\n\t\t//input = input.replaceAll(removeSingleCharacterOrOnlyDigits.toString(), \" \");\n\t\t//input = input.replaceAll(removeTime.toString(), \" \");\n\t\t//input = input.replaceAll(\"(\\\\s+>+\\\\s+)+\", \" \");\n\t\treturn input;\n\t}",
"static String re_screen(String str) {\n String screened = str.replaceAll(\"([\\\\\\\\\\\\^\\\\$\\\\.\\\\[\\\\]\\\\|\\\\(\\\\)\\\\?\\\\*\\\\+\\\\{\\\\}])\", \"\\\\\\\\$1\");\n //System.err.println(\"screened: \"+screened);\n return screened;\n }",
"private String filter(String line) {\n return line.toLowerCase().replaceAll(\"[^a-z]\", \"\");\n }",
"@Test\r\n\tpublic void testParseSpace() {\r\n\r\n\t\t// Enter the code\r\n\r\n\t\tdriver.findElement(By.name(\"code[code]\"))\r\n\t\t\t\t.sendKeys(\"the_best_cat = \\\"Noogie Cat\\\"\\nputs \\\"The best cat is: \\\" + the_best_cat\");\r\n\r\n\t\t// Look for the \"Parse\" button and click\r\n\r\n\t\tdriver.findElements(By.name(\"commit\")).get(1).click();\r\n\r\n\t\t// Check that there contains space and newlines\r\n\r\n\t\ttry {\r\n\t\t\tWebElement code = driver.findElement(By.tagName(\"code\"));\r\n\t\t\tassertFalse(code.getText().contains(\":op_nl\"));\r\n\t\t\tassertFalse(code.getText().contains(\":op_sp\"));\r\n\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\tfail();\r\n\t\t}\r\n\t}",
"@Test\n public void wordPatternTest() {\n String pattern = \"aaa\", str = \"aa aa aa aa\";\n boolean ans = instance.wordPattern(pattern, str);\n System.out.println(ans);\n }",
"private String parseRegExp(String exp) throws Exception {\r\n\t\treturn RegexpTranslationHelper.translateANTLRToAutomatonStyle(exp);\r\n\t}",
"private boolean checkInputContent(String contents){\n try {\n char[] temC = contents.toCharArray();\n for (int i=0;i<temC.length;i++) {\n char mid = temC[i];\n if(mid>=48&&mid<=57){//数字\n continue;\n }\n if(mid>=65&&mid<=90){//大写字母\n continue ;\n }\n if(mid>=97&&mid<=122){//小写字母\n continue ;\n }\n// temp.replace(i, i+1, \" \");\n return false;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return true;\n }",
"@Test\n void checkIsTrueForStringWithNumbersWithSpacesAtTheBeginningAndEnd() {\n // Act, Assert\n assertTrue(IsNumeric.check(\" 3\"));\n assertTrue(IsNumeric.check(\"32 \"));\n assertTrue(IsNumeric.check(\" 3.2 \"));\n assertTrue(IsNumeric.check(\" -0.2\"));\n assertTrue(IsNumeric.check(\" -0.2d\"));\n assertTrue(IsNumeric.check(\"0.24D \"));\n assertTrue(IsNumeric.check(\"0.28 \"));\n assertTrue(IsNumeric.check(\" 3.8f\"));\n assertTrue(IsNumeric.check(\"-3.87F \"));\n }",
"@Test\n\tpublic void fixWhiteSpaceTest() {\n\t\tString query1 = \"((hello))\";\n\t\tString query2 = \"\\\"hello my\\\"\";\n\t\tString query3 = \"( hello & goodbye) \";\n\t\t\n\t\tString query1Result = \"( ( hello ) )\";\n\t\tString query2Result = \"\\\" hello my \\\"\";\n\t\tString query3Result = \"( hello & goodbye )\";\n\t\t\n\t\t\n\t\tassertEquals(query1Result, queryTest.fixSpacing(query1));\n\t\tassertEquals(query2Result, queryTest.fixSpacing(query2));\n\t\tassertEquals(query3Result, queryTest.fixSpacing(query3));\n\t}",
"private String spacing(String line) {\n \n \t\t/* Remove redundant spaces (keep only one space between two words) */\n \t\tint limit = 0;\n \t\tMatcher matcher = patternSpaces.matcher(line);\n \n \t\tString oldLine = line;\n \n \t\tremSpaces: while (matcher.find()) {\n \n \t\t\tint offset = matcher.start();\n \n \t\t\t// do not remove spaces at the beginning of a line\n \t\t\tif (line.substring(0, offset).trim().equals(\"\"))\n \t\t\t\tcontinue;\n \n \t\t\t/*\n \t\t\t * if the spaces (or tabs) are at the beginning of a line or before a comment, then we keep them\n \t\t\t */\n \t\t\t/*\n \t\t\t * Matcher matcherSpacesBeforeComment = patternSpacesBeforeComment.matcher(line); if\n \t\t\t * (matcherSpacesBeforeComment.find()) { if (offset < matcherSpacesBeforeComment.end()) continue\n \t\t\t * remSpaces; }\n \t\t\t */\n \n \t\t\t// if the spaces are before a comment, then we keep them\n \t\t\tString afterSpaces = line.substring(matcher.end());\n \t\t\tif (afterSpaces.startsWith(\"(*\"))\n \t\t\t\tcontinue remSpaces;\n \n \t\t\t// If we are inside a string, then we skip this replacing\n \t\t\tMatcher matcherString = patternString.matcher(line);\n \t\t\twhile (matcherString.find()) {\n \t\t\t\tif (matcherString.start() <= offset && offset < matcherString.end())\n \t\t\t\t\tcontinue remSpaces;\n \t\t\t}\n \n \t\t\t// If we are inside a comment, then we skip this replacing\n \t\t\tMatcher matcherComment = patternComment.matcher(line);\n \t\t\twhile (matcherComment.find()) {\n \t\t\t\tif (matcherComment.start() <= offset && offset < matcherComment.end())\n \t\t\t\t\tcontinue remSpaces;\n \t\t\t}\n \n \t\t\tline = line.substring(0, offset) + \" \" + line.substring(matcher.end());\n \n \t\t\t// we have to reset the matcher, because we modified the line\n \t\t\tmatcher = patternSpaces.matcher(line);\n \n \t\t\t// we put a limit, just in case we would get into an infinite loop\n \t\t\tif (limit++ > 10000) {\n \t\t\t\tOcamlPlugin.logError(\"Infinite loop detected in formatter during spacing (1): <<\" + oldLine\n \t\t\t\t\t\t+ \">>\");\n \t\t\t\tbreak;\n \t\t\t}\n \n \t\t}\n \n \t\t// remove spaces before commas\n \t\t//line = line.replaceAll(\" ,\", \",\");\n \t\t// remove spaces before semicolons\n \t\t//line = line.replaceAll(\" ;\", \";\");\n \n \t\tfor (int nPattern = 0; nPattern <= 1; nPattern++) {\n \t\t\tPattern patternSpacing;\n \t\t\tif (nPattern == 0)\n \t\t\t\tpatternSpacing = patternSpacingRight;\n \t\t\telse\n \t\t\t\tpatternSpacing = patternSpacingLeft;\n \n \t\t\t/*\n \t\t\t * We put a limit to the number of replacements, just in case we would get into an infinite loop\n \t\t\t */\n \t\t\tlimit = 0;\n \t\t\t// add spaces before some characters\n \t\t\tmatcher = patternSpacing.matcher(line);\n \n \t\t\toldLine = line;\n \n \t\t\taddSpaces: while (matcher.find()) {\n \n \t\t\t\tint offset = matcher.start() + 1;\n \t\t\t\tif (offset > line.length() - 1 || offset < 0) {\n \t\t\t\t\tocaml.OcamlPlugin.logError(\"OcamlIndenter:format : invalid position\");\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \n \t\t\t\t// if we are inside a string, then we skip this replacement\n \t\t\t\tMatcher matcherString = patternString.matcher(line);\n \t\t\t\twhile (matcherString.find()) {\n \t\t\t\t\tif (matcherString.start() <= offset && offset < matcherString.end())\n \t\t\t\t\t\tcontinue addSpaces;\n \t\t\t\t}\n \n \t\t\t\t// Skip replacement if in comment\n \t\t\t\tMatcher matcherComment = patternComment.matcher(line);\n \t\t\t\twhile (matcherComment.find()) {\n \t\t\t\t\tif (matcherComment.start() <= offset && offset < matcherComment.end())\n \t\t\t\t\t\tcontinue addSpaces;\n \t\t\t\t}\n \n \t\t\t\tline = line.substring(0, offset) + \" \" + line.substring(offset);\n \n \t\t\t\t// we have to reset the matcher, because we modified the line\n \t\t\t\tmatcher = patternSpacing.matcher(line);\n \t\t\t\tif (limit++ > 10000) {\n \t\t\t\t\tOcamlPlugin.logError(\"Infinite loop detected in formatter during spacing (2): <<\"\n \t\t\t\t\t\t\t+ oldLine + \">>\");\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\treturn line;\n \n \t}",
"@Test\n\tpublic void test1 ()\n\t{\n\t\t\tString s = new String(\"aaaaaaaaa\");\n\t s = s.replaceAll(\"\\\\s+\", \" \");\n\t\t\tassertEquals(\"aaaaaaaa\", LRS.lrs(s)); \n\t}",
"@Test(timeout = 4000)\n public void test06() throws Throwable {\n String string0 = SQLUtil.normalize(\"T/ayt.^*^>$)r\", false);\n assertEquals(\"T / ayt.^ * ^ > $) r\", string0);\n }",
"@Test\n\tpublic void testJustEmptyChars() {\n\t\tSmartScriptLexer lexer = new SmartScriptLexer(\" \\r\\n\\t \");\n\t\t\n\t\tSmartScriptToken expected = new SmartScriptToken(SmartScriptTokenType.TEXT, \" \\r\\n\\t \");\n\t\tassertEquals(lexer.nextToken().getType(), SmartScriptTokenType.TEXT);\n\t\tassertEquals(lexer.getToken().getValue(), expected.getValue());\n\t}",
"@Test(timeout = 4000)\n public void test087() throws Throwable {\n String string0 = SQLUtil.normalize(\"Wk-M{)u04i&=ml]M\", false);\n assertEquals(\"Wk - M {) u04i & = ml ] M\", string0);\n }",
"private static String adaptRegEx(Mode mode, String regex, int flagMask, boolean removeWhitespace)\n throws QueryException {\n StringBuilder sb = new StringBuilder();\n boolean escaped = false;\n boolean groupStart = false;\n int completeGroups = 0;\n int backRef = 0;\n int charClassDepth = 0;\n int groupDepth = 0;\n\n for (char c : regex.toCharArray()) {\n if (escaped) {\n if (backRef == 0 && c == '0') {\n throw new QueryException(ErrorCode.ERR_INVALID_REGULAR_EXPRESSION, \"Reference to group 0 not allowed\");\n } else if (c >= '0' && c <= '9') {\n if (charClassDepth > 0) {\n throw new QueryException(ErrorCode.ERR_INVALID_REGULAR_EXPRESSION,\n \"Back references in character class expressions\" + \" are disallowed.\");\n }\n backRef = backRef * 10 + Integer.parseInt(Character.toString(c));\n continue;\n }\n }\n\n if (backRef > 0) {\n // Check back reference that just ended\n if (backRef > completeGroups) {\n throw new QueryException(ErrorCode.ERR_INVALID_REGULAR_EXPRESSION,\n \"Back reference to nonexisting or unfinished group.\");\n } else {\n backRef = 0;\n escaped = false;\n }\n }\n\n if (c == '\\\\' && !escaped) {\n // Not preceded by backslash\n escaped = true;\n groupStart = false;\n continue;\n }\n\n if (c == '(' && !escaped) {\n groupStart = true;\n groupDepth++;\n escaped = false;\n continue;\n }\n\n if (c == '?' && !escaped && groupStart) {\n throw new QueryException(ErrorCode.ERR_INVALID_REGULAR_EXPRESSION,\n \"Pure groups are not supported in XQuery regular expressions.\");\n } else if (c == ')' && !escaped) {\n if (--groupDepth < 0) {\n throw new QueryException(ErrorCode.ERR_INVALID_REGULAR_EXPRESSION, \"Invalid sequence of brackets.\");\n }\n completeGroups++;\n } else if (c == '[' && !escaped) {\n charClassDepth++;\n } else if (c == ']' && !escaped) {\n if (--charClassDepth < 0) {\n throw new QueryException(ErrorCode.ERR_INVALID_REGULAR_EXPRESSION, \"Invalid sequence of brackets.\");\n }\n } else if (removeWhitespace) {\n // Remove whitespace outside of character classes\n if (charClassDepth == 0 && WHITESPACE.contains(c)) {\n // Don't touch boolean flags\n continue;\n }\n\n sb.append(c);\n }\n\n groupStart = false;\n escaped = false;\n }\n\n // Check for trailing '\\' (only valid with subsequent characters)\n if (escaped && backRef == 0) {\n throw new QueryException(ErrorCode.ERR_INVALID_REGULAR_EXPRESSION, \"Trailing backslash character in pattern.\");\n }\n\n // Check back reference if that was last token in pattern\n if (backRef > 0 && backRef > completeGroups) {\n throw new QueryException(ErrorCode.ERR_INVALID_REGULAR_EXPRESSION,\n \"Back reference to nonexisting or unfinished group.\");\n }\n\n // Check for dangling brackets\n if (charClassDepth != 0 || groupDepth != 0) {\n throw new QueryException(ErrorCode.ERR_INVALID_REGULAR_EXPRESSION, \"Pattern contains dangling brackets.\");\n }\n\n if (!removeWhitespace) {\n sb.append(regex);\n }\n\n if (mode == Mode.MATCH) {\n // Adapt for XQuery substring matching by extending pattern\n if (sb.charAt(0) != '^' || ((flagMask & Pattern.MULTILINE) == Pattern.MULTILINE)) {\n if ((flagMask & Pattern.DOTALL) == Pattern.DOTALL) {\n sb.insert(0, \".*\");\n } else {\n sb.insert(0, \"(?s:.*)\");\n }\n }\n\n if (sb.charAt(sb.length() - 1) != '$' || ((flagMask & Pattern.MULTILINE) == Pattern.MULTILINE)) {\n if ((flagMask & Pattern.DOTALL) == Pattern.DOTALL) {\n sb.append(\".*\");\n } else {\n sb.append(\"(?s:.*)\");\n }\n }\n }\n\n return sb.toString();\n }",
"@Test\n\tpublic void testTrimmingWhiteSpaces() {\n\t\t// Setup\n\t\tString file = \" file.name \";\n\n\t\t// Exercise\n\t\tLine line = new Line(\"5\", \"5\", file);\n\n\t\t// Verify\n\t\tassertEquals(\"file.name\", line.toString());\n\t}",
"private boolean isWhitespaceText(String text) {\n \n \t\tif (text == null || text.length() == 0)\n \t\t\treturn false;\n \n \t\tString[] delimiters= fDocument.getLegalLineDelimiters();\n \t\tint index= TextUtilities.startsWith(delimiters, text);\n \t\tif (index > -1) {\n \t\t\tchar c;\n \t\t\tint length= text.length();\n \t\t\tfor (int i= delimiters[index].length(); i < length; i++) {\n \t\t\t\tc= text.charAt(i);\n \t\t\t\tif (c != ' ' && c != '\\t')\n \t\t\t\t\treturn false;\n \t\t\t}\n \t\t\treturn true;\n \t\t}\n \n \t\treturn false;\n \t}"
] | [
"0.69458985",
"0.6744734",
"0.65348303",
"0.650481",
"0.64864063",
"0.6345411",
"0.62369794",
"0.6114548",
"0.61025697",
"0.6079018",
"0.60746074",
"0.60634565",
"0.603709",
"0.60336477",
"0.60173786",
"0.59902",
"0.5979935",
"0.59152436",
"0.5911301",
"0.59059775",
"0.59059775",
"0.5883023",
"0.58731365",
"0.5850003",
"0.58387965",
"0.58261794",
"0.5823153",
"0.58117634",
"0.57528657",
"0.5748288",
"0.5742407",
"0.5741005",
"0.57396495",
"0.5718928",
"0.5717434",
"0.568317",
"0.5673526",
"0.5660836",
"0.563379",
"0.5625481",
"0.5625236",
"0.561687",
"0.56145835",
"0.56137383",
"0.56059027",
"0.5604431",
"0.5602832",
"0.56013054",
"0.5592427",
"0.5584223",
"0.5582016",
"0.55660623",
"0.5547684",
"0.5544883",
"0.55383456",
"0.5532849",
"0.5528952",
"0.5515579",
"0.5506367",
"0.5504998",
"0.5501387",
"0.54988664",
"0.54952353",
"0.54908276",
"0.54887575",
"0.54858434",
"0.5478313",
"0.54782265",
"0.5477693",
"0.54741144",
"0.5473057",
"0.54438484",
"0.543555",
"0.54322803",
"0.5408017",
"0.5404368",
"0.5402904",
"0.5395555",
"0.53920674",
"0.5389434",
"0.5381868",
"0.53758264",
"0.53702575",
"0.5365324",
"0.53635657",
"0.5359328",
"0.5352474",
"0.5351932",
"0.5348362",
"0.5344424",
"0.53325343",
"0.5329278",
"0.5318711",
"0.53186285",
"0.5299385",
"0.5293115",
"0.52867115",
"0.5281841",
"0.52769285",
"0.5271864",
"0.5263583"
] | 0.0 | -1 |
The interface Ticket mapper. | @Mapper(uses = {PassengerMapper.class, TicketScheduleSectionMapper.class})
public interface TicketMapper {
/**
* To dto ticket dto.
*
* @param ticketEntity the ticket entity
* @return the ticket dto
*/
@Mappings({
@Mapping(target = "passengerDto", source = "ticketEntity.passengerEntity"),
@Mapping(target = "ticketScheduleSectionDtoList", source = "ticketEntity.ticketScheduleSectionEntityList")
})
TicketDto toDto(TicketEntity ticketEntity);
/**
* To dto list list.
*
* @param ticketEntityList the ticket entity list
* @return the list
*/
List<TicketDto> toDtoList(List<TicketEntity> ticketEntityList);
/**
* To entity ticket entity.
*
* @param ticketDto the ticket dto
* @return the ticket entity
*/
@Mappings({
@Mapping(target = "passengerEntity", source = "ticketDto.passengerDto"),
@Mapping(target = "ticketScheduleSectionEntityList", source = "ticketDto.ticketScheduleSectionDtoList")
})
TicketEntity toEntity(TicketDto ticketDto);
/**
* To entity list list.
*
* @param ticketDtoList the ticket dto list
* @return the list
*/
List<TicketEntity> toEntityList(List<TicketDto> ticketDtoList);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface ITicket {\n\n /**\n * Getter for the name of the ticket's passenger.\n *\n * @return passenger name in string format.\n */\n String getPassengerName();\n\n /**\n * Setter for the name of the ticket's passenger.\n *\n * @param passengerName passenger name in string format.\n */\n void setPassengerName(String passengerName);\n\n /**\n * Getter for the unique identification pertaining to the ticket's route.\n *\n * @return unique identification number related to the ticket in string format.\n */\n String getRouteID();\n\n /**\n * Setter for the unique identification pertaining to the ticket's route.\n *\n * @param routeID unique identification number related to the ticket in string format.\n */\n void setRoute(String routeID);\n\n /**\n * Getter for the departure city string.\n *\n * @return the departure city in string format.\n */\n String getDepartureLocation();\n\n /**\n * Getter for the arrival city string.\n *\n * @return the arrival city in string format.\n */\n String getArrivalLocation();\n\n /**\n * Setter for the ticket origin in using Locations enum.\n *\n * @param origination enum representing location.\n */\n void setOrigination(Locations origination);\n\n /**\n * Setter for the ticket destination using Locations enum.\n *\n * @param destination enum representing location.\n */\n void setDestination(Locations destination);\n\n /**\n * Getter for the departure date and time which is represented by util Calendar but printed out\n * in string format MM DD YYYY HH MM.\n *\n * @return the departure date and time in string format MM DD YYYY HH MM.\n */\n Calendar getDepartureDateAndTime();\n\n /**\n * Getter for the arrival date and time which is represented by util Calendar but printed out\n * in string format YYYY MM DD HH MM.\n *\n * @return the arrival date and time in string format YYYY MM DD HH MM.\n */\n Calendar getArrivalDateAndTime();\n\n /**\n * Setter for the trip dates using util Calendar for both departure and arrival in the format\n * YYYY Calendar.MONTH DD HH MM.\n *\n * @param departureDate Calendar departure date in the format YYYY Calendar.MONTH DD HH MM.\n * @param arrivalDate Calendar arrival date in the format YYYY Calendar.MONTH DD HH MM.\n */\n void setTripDates(Calendar departureDate, Calendar arrivalDate);\n\n /**\n * Getter for the class of service for certain tickets which allow class distinctions defined\n * in the enum ClassOfService.\n *\n * @return enum representing the class of service available on certain tickets.\n */\n ClassOfService getClassOfService();\n\n /**\n * Setter for the class of service for certain tickets which allow class distinctions defined\n * in the enum ClassOfService.\n *\n * @param serviceClass enum representing the class of service available on certain tickets.\n */\n void setClassOfService(ClassOfService serviceClass);\n }",
"Ticket ticketDTOToTicket(TicketDTO ticketDTO);",
"TicketDTO ticketToTicketDTO(Ticket ticket);",
"public interface TicketService extends BaseService<Ticket, TicketDTO> {\n}",
"@Override\r\n public TicketDAO getTicketDAO() {\n return new MySQLTicketDAO();\r\n }",
"void setTicket(Ticket ticket) {\n this.ticket = ticket;\n }",
"public interface TicketService extends BaseService<Ticket, String>{\r\n\r\n}",
"Ticket(int id)//Instanciacion del constructor de la clase con sus respectivos parametros.\r\n {\r\n ticketID=id;//inicializacion de atributo de la clase con los parametros recibidos en el constructor.\r\n }",
"public Ticket getTicket() {\n return ticket;\n }",
"@Mappings({\n\n @Mapping(target = \"passengerEntity\", source = \"ticketDto.passengerDto\"),\n @Mapping(target = \"ticketScheduleSectionEntityList\", source = \"ticketDto.ticketScheduleSectionDtoList\")\n })\n TicketEntity toEntity(TicketDto ticketDto);",
"public Ticket(){\n\t\tpass = new Passenger();\n\t}",
"public interface TicketService {\n\n public String getTicket();\n\n}",
"public Ticket getTicket(String id);",
"@Mappings({\n @Mapping(target = \"passengerDto\", source = \"ticketEntity.passengerEntity\"),\n @Mapping(target = \"ticketScheduleSectionDtoList\", source = \"ticketEntity.ticketScheduleSectionEntityList\")\n })\n TicketDto toDto(TicketEntity ticketEntity);",
"public Ticket() {\n\n }",
"public interface TicketService {\n\n List<Ticket> findAll();\n\n void saveTicket(Ticket role);\n\n Ticket findOne(Integer id);\n\n void delete(Integer id);\n\n List<Ticket> findByDate(Date date);\n\n List<Ticket> findByAirplaneid(int id);\n\n List<Ticket> findByPersonid(int id);\n}",
"public interface Serv2 {\n\t\npublic List<ParkingTicket> getTickets();\npublic ParkingTicket getTicket(int id);\npublic void updateTicket();\n}",
"public Ticket getCurrentTicket(){return this.currentTicket;}",
"public interface ITicketDao {\n void write(Ticket... tickets);\n\n void delete(Ticket... tickets);\n\n Ticket read(ObjectId id);\n\n Ticket read(User user, String identifier);\n\n PagingList<Ticket> readAssignedTicket(User user, String subject, int page, int pageSize);\n\n PagingList<KeyCount> readAssignedSubjects(User user, int page, int pageSize);\n}",
"List<Ticket> ticketDTOToTicket(List<TicketDTO> all);",
"@Override\n\tpublic Ticket mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\treturn ticketExtractor.extractData(rs);\n\t}",
"public static void assignTicket(Ticket ticket,String toT){\r\n\r\n\t\tDate dateCreated=new Date();\t\t\t\t\t\t\t\t\t\t\t\t\t\t//getting the current date\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy HH:mm:ss\");\r\n\t\t//int ticketID=1000;\r\n\r\n\t\twhile(true){\r\n\t\t\tticket.ticketID=Integer.toString(ticketID);\t\t\t\t\t\t\t\t\t\t//converting the ticket id to string and assigning it to ticket id.\r\n\t\t\tticketID++;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\r\n\t\tif(toT.equalsIgnoreCase(\"Phone\")){\t\t\t\t\t\t\t\t\t\t\t\t\t//if type of ticket is phone\r\n\t\t\tticket.CustomerRepID=arrayRepresentativeIDs[0];\t\t\t\t\t\t\t\t\t//assigning the ticket to representative 0\r\n\t\t}\r\n\t\telse if(toT.equalsIgnoreCase(\"InPerson\")){\t\t\t\t\t\t\t\t\t\t\t//if type of ticket is inperson\r\n\t\t\tticket.CustomerRepID=arrayRepresentativeIDs[1];\t\t\t\t\t\t\t\t\t//assigning the ticket to representative 1\r\n\t\t}\r\n\t\telse if(toT.equalsIgnoreCase(\"Email\")){\t\t\t\t\t\t\t\t\t\t\t\t//if type of ticket is email\r\n\t\t\tticket.CustomerRepID=arrayRepresentativeIDs[2];\t\t\t\t\t\t\t\t\t//assigning the ticket to representative 2\r\n\t\t}\r\n\r\n\t\tticket.CustomerserviceRepID=Integer.toString(new Random().nextInt(arrayServiceIDs.length));\t\t//randomly assigning the service representative id\r\n\t\tticket.DateCreated=dateFormat.format(dateCreated);\r\n\t\t\r\n\r\n\r\n\t}",
"public List<Ticket> getTickets() {return tickets;}",
"public int getticketId() {\n \treturn ticketId;\n }",
"List<TicketDTO> ticketToTicketDTO(List<Ticket> all);",
"public interface ITicketService {\r\n\t/**\r\n\t * The number of seats in the venue that are neither held nor reserved\r\n\t *\r\n\t * @return the number of tickets available in the venue\r\n\t */\r\n\tint numSeatsAvailable();\r\n\r\n\t/**\r\n\t * Find and hold the best available seats for a customer\r\n\t *\r\n\t * @param numSeats\r\n\t * - the number of seats to find and hold\r\n\t * @param customerEmail\r\n\t * - unique identifier for the customer\r\n\t * @return a SeatHoldInterface interface identifying the object identifying\r\n\t * the specific seats and related information\r\n\t * @throws SeatsNotAvailableException\r\n\t * - if the requested seats are not available\r\n\t */\r\n\tList<ISeatHold> findAndHoldSeats(int numSeats, String customerEmail) throws SeatsNotAvailableException;\r\n\r\n\t/**\r\n\t * Commit seats held for a specific customer\r\n\t *\r\n\t * @param seatHoldId\r\n\t * - the seat hold identifier\r\n\t * @param customerEmail\r\n\t * - the email address of the customer to which the seat hold is\r\n\t * assigned\r\n\t * @return a reservation confirmation code\r\n\t * @throws SeatsNotAvailableException\r\n\t * - - if the requested seats are not available\r\n\t * @throws BookingNotAvailableException\r\n\t * - if the requested hold is not valid or not available\r\n\t */\r\n\tString reserveSeats(String seatHoldId, String customerEmail) throws BookingNotAvailableException;\r\n\r\n\t/**\r\n\t * Get Venue object\r\n\t * \r\n\t * @return the venue object\r\n\t */\r\n\tIVenue getVenue();\r\n\r\n\t/**\r\n\t * Commit seats held for a specific customer\r\n\t *\r\n\t * @param seatHoldId\r\n\t * - the seat hold identifier\r\n\t * @param customerEmail\r\n\t * - the email address of the customer to which the seat hold is\r\n\t * assigned\r\n\t * @return a reservation confirmation code\r\n\t * @throws BookingNotAvailableException\r\n\t * - if the requested hold is not valid or not available\r\n\t */\r\n\tIBooking getSeatonHold(String seatHoldId, String customerEmail) throws BookingNotAvailableException;\r\n\r\n}",
"public Ticket() {\n\t\tticketStatus = TICKET_STATUS_OPEN;\n\t}",
"@Override\n\tprotected TicketModel getTicketImpl(RepositoryModel repository, long ticketId) {\n\t\tJedis jedis = pool.getResource();\n\t\tif (jedis == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\ttry {\n\t\t\tList<Change> changes = getJournal(jedis, repository, ticketId);\n\t\t\tif (ArrayUtils.isEmpty(changes)) {\n\t\t\t\tlog.warn(\"Empty journal for {}:{}\", repository, ticketId);\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tTicketModel ticket = TicketModel.buildTicket(changes);\n\t\t\tticket.project = repository.projectPath;\n\t\t\tticket.repository = repository.name;\n\t\t\tticket.number = ticketId;\n\t\t\tlog.debug(\"rebuilt ticket {} from Redis @ {}\", ticketId, getUrl());\n\t\t\treturn ticket;\n\t\t} catch (JedisException e) {\n\t\t\tlog.error(\"failed to retrieve ticket from Redis @ \" + getUrl(), e);\n\t\t\tpool.returnBrokenResource(jedis);\n\t\t\tjedis = null;\n\t\t} finally {\n\t\t\tif (jedis != null) {\n\t\t\t\tpool.returnResource(jedis);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public interface Ticket<SESSION> {\n /**\n * Each valid ticket points to session of the resource. The actual type\n * {@code SESSION} is provided by user (as a type parameter of enclosing\n * SessionManager). The actual resource should be accessible from\n * {@code SESSION}.\n * @return non-null current session\n * @throws IllegalStateException if ticket is no longer valid\n */\n SESSION getSession();\n\n /**\n * Releases resource and makes ticket invalid. Switches the resource\n * off if it was a last ticket.\n * @throws IllegalStateException if ticket is no more valid\n */\n void dismiss();\n }",
"public void setTicketId(Integer ticketId) {\r\n this.ticketId = ticketId;\r\n }",
"public int getTicketId() {\r\n return ticketId;\r\n }",
"public Ticket(String destination, int price)\n {\n this.destination = destination;\n this.price = price;\n issueDateTime = new Date();\n \n }",
"@Override\n\tpublic GetJiraTicketResponseDTO createJiraTicket(Integer id) {\n\t\treturn null;\n\t}",
"public Integer getTicketId() {\r\n return ticketId;\r\n }",
"public int getTicketId() {\n return ticketId;\n }",
"public java.lang.Object getTicketID() {\n return ticketID;\n }",
"@Override\n\tpublic Booking_ticket getTicket(String ticketid) {\n\t\treturn null;\n\t}",
"public ticket() {\n initComponents();\n autoID();\n }",
"@Override\n\tpublic int createTicket(Booking_ticket bt) {\n\t\treturn btr.createTicket(bt);\n\t}",
"public interface TicketCodeService {\r\n public JSONObject createCode(Map<String, Object> source);\r\n}",
"List<TicketEntity> toEntityList(List<TicketDto> ticketDtoList);",
"public void setTicketId(int value) {\r\n this.ticketId = value;\r\n }",
"List<TicketDto> toDtoList(List<TicketEntity> ticketEntityList);",
"public void setTicketId(int value) {\n this.ticketId = value;\n }",
"@GetMapping(value=\"/ticket/{ticketId}\")\n\tpublic Ticket getTicketById(@PathVariable(\"ticketId\") Integer ticketId){\n\t\treturn ticketBookingService.getTicket(ticketId);\n\t}",
"public List<Ticket> getAllTickets(){\n List<Ticket> tickets=ticketRepository.findAll();\n return tickets;\n }",
"public interface NetBookTicketService {\n\n\n /**\n * 查找更新,如果没有找到符合的记录,则将更新的记录插入库中\n * @param netBookTicket\n */\n public void updateInser(NetBookTicket netBookTicket);\n\n /**\n * 保存一个netBookTicket到mongo\n *\n * @param netBookTicket\n */\n void saveByRecord(NetBookTicket netBookTicket);\n\n\n public NetBookTicket getById(Integer code) ;\n\n}",
"public interface IIncludedOpenTicket {\r\n\t\r\n\t/**\r\n\t * Gets the departure date.\r\n\t *\r\n\t * @return the departure date\r\n\t */\r\n\tpublic Date getDepartureDate();\r\n\r\n\t/**\r\n\t * Sets the departure date.\r\n\t *\r\n\t * @param departureDate the new departure date\r\n\t */\r\n\tpublic void setDepartureDate(Date departureDate);\r\n\r\n\t/**\r\n\t * Gets the arrival date.\r\n\t *\r\n\t * @return the arrival date\r\n\t */\r\n\tpublic Date getArrivalDate() ;\r\n\r\n\t/**\r\n\t * Sets the arrival date.\r\n\t *\r\n\t * @param arrivalDate the new arrival date\r\n\t */\r\n\tpublic void setArrivalDate(Date arrivalDate);\r\n\r\n\r\n\t/**\r\n\t * Gets the product id.\r\n\t *\r\n\t * @return the product id\r\n\t */\r\n\tpublic String getProductId() ;\r\n\r\n\t/**\r\n\t * Sets the product id.\r\n\t *\r\n\t * @param productId the new product id\r\n\t */\r\n\tpublic void setProductId(String productId) ;\r\n\r\n\t/**\r\n\t * Gets the product owner.\r\n\t *\r\n\t * @return the product owner\r\n\t */\r\n\tpublic String getProductOwner();\r\n\r\n\t/**\r\n\t * Sets the product owner.\r\n\t *\r\n\t * @param productOwner the new product owner\r\n\t */\r\n\tpublic void setProductOwner(String productOwner);\r\n\r\n\t/**\r\n\t * Gets the external issuer.\r\n\t *\r\n\t * @return the external issuer\r\n\t */\r\n\tpublic int getExternalIssuer();\r\n\t\r\n\t/**\r\n\t * Sets the external issuer.\r\n\t *\r\n\t * Identification of the issuer provided by an external carrier\r\n\t * \r\n\t * @param externalIssuer the new external issuer\r\n\t */\r\n\tpublic void setExternalIssuer(int externalIssuer);\r\n\t\r\n\t/**\r\n\t * Gets the authorization code.\r\n\t *\r\n\t * Authorization code given by a carrier to the product owner to allow the sale\r\n\t *\r\n\t * @return the authorization code\r\n\t */\r\n\tpublic int getAuthorizationCode();\r\n\t\r\n\t/**\r\n\t * Sets the authorization code.\r\n\t *\r\n\t * An authorization code given by a carrier to the product owner to allow the sale\t \r\n\t *\r\n\t * @param authorizationCode the new authorization code\r\n\t */\r\n\tpublic void setAuthorizationCode(int authorizationCode);\r\n\r\n\t/**\r\n\t * Gets the station code table.\r\n\t *\r\n\t * Defines the station code table to be used to retrieve station information. \r\n\t * Default in this case is the UIC station codes table for standard UIC \r\n\t * station code from MERITS (UIC country code + 5 digit local code) \r\n\t * \r\n\t * @return the station code table\r\n\t */\r\n\tpublic IStationCodeTable getStationCodeTable();\r\n\r\n\t/**\r\n\t * Sets the station code table.\r\n\t *\r\n\t * Defines the station code table to be used to retrieve station information. \r\n\t * Default in this case is the UIC station codes table for standard UIC \r\n\t * station code from MERITS (UIC country code + 5 digit local code) \r\n\t * \t\r\n\t * @param stationCodeTable the new station code table\r\n\t */\r\n\tpublic void setStationCodeTable(IStationCodeTable stationCodeTable);\r\n\r\n\t/**\r\n\t * Gets the from station code.\r\n\t *\r\n\t * @return the from station code\r\n\t */\r\n\tpublic String getFromStation();\r\n\r\n\t/**\r\n\t * Sets the from station code.\r\n\t *\r\n\t * @param fromStation the new from station code\r\n\t */\r\n\tpublic void setFromStation(String fromStation);\r\n\r\n\t/**\r\n\t * Gets the to station code.\r\n\t *\r\n\t * @return the to station code\r\n\t */\r\n\tpublic String getToStation();\r\n\r\n\t/**\r\n\t * Sets the to station code.\r\n\t *\r\n\t * @param toStation the new to station code\r\n\t */\r\n\tpublic void setToStation(String toStation);\r\n\r\n\t/**\r\n\t * Gets the from station name.\r\n\t *\r\n\t * @return the from station name\r\n\t */\r\n\tpublic String getFromStationName();\r\n\r\n\t/**\r\n\t * Sets the from station name.\r\n\t *\r\n\t * @param fromStationName the new from station name\r\n\t */\r\n\tpublic void setFromStationName(String fromStationName);\r\n\r\n\t/**\r\n\t * Gets the to station name.\r\n\t *\r\n\t * @return the to station name\r\n\t */\r\n\tpublic String getToStationName();\r\n\r\n\t/**\r\n\t * Sets the to station name.\r\n\t *\r\n\t * @param toStationName the new to station name\r\n\t */\r\n\tpublic void setToStationName(String toStationName);\r\n\r\n\t/**\r\n\t * Gets the valid region description.\r\n\t *\r\n\t * @return the valid region desc\r\n\t */\r\n\tpublic String getValidRegionDesc();\r\n\r\n\t/**\r\n\t * Sets the valid region description.\r\n\t *\r\n\t * @param validRegionDesc the new valid region description\r\n\t */\r\n\tpublic void setValidRegionDesc(String validRegionDesc);\r\n\r\n\t/**\r\n\t * Gets the list of valid regions.\r\n\t *\r\n\t * @return the list of valid regions\r\n\t */\r\n\tpublic Collection<IRegionalValidity> getValidRegionList();\r\n\r\n\t/**\r\n\t * Adds a valid region.\r\n\t *\r\n\t * @param validRegion the valid region\r\n\t */\r\n\tpublic void addValidRegionList(IRegionalValidity validRegion);\r\n\r\n\t/**\r\n\t * Gets the valid from date and time.\r\n\t *\r\n\t * @return the valid from date and time.\r\n\t */\r\n\tpublic Date getValidFrom();\r\n\r\n\t/**\r\n\t * Sets the valid from date and time.\r\n\t *\r\n\t * @param validFrom the new valid from date and time.\r\n\t */\r\n\tpublic void setValidFrom(Date validFrom);\r\n\r\n\t/**\r\n\t * Gets the valid until date and time.\r\n\t *\r\n\t * @return the valid until date and time.\r\n\t */\r\n\tpublic Date getValidUntil();\r\n\r\n\t/**\r\n\t * Sets the valid until date and time.\r\n\t *\r\n\t * @param validUntil the new valid until date and time.\r\n\t */\r\n\tpublic void setValidUntil(Date validUntil);\r\n\r\n\t/**\r\n\t * Gets the travel class code.\r\n\t *\r\n\t * @return the travel class code\r\n\t */\r\n\tpublic ITravelClassType getClassCode();\r\n\r\n\t/**\r\n\t * Sets the travel class code.\r\n\t *\r\n\t * @param classCode the new travel class code\r\n\t */\r\n\tpublic void setClassCode(ITravelClassType classCode);\r\n\r\n\t/**\r\n\t * Gets the carriers included in the transport contract.\r\n\t *\r\n\t * @return the included carriers\r\n\t */\r\n\tpublic Collection<String> getIncludedCarriers();\r\n\r\n\t/**\r\n\t * Adds the included carrier.\r\n\t *\r\n\t * @param includedCarrier the included carrier\r\n\t */\r\n\tpublic void addIncludedCarrier(String includedCarrier);\r\n\r\n\t/**\r\n\t * Gets the included service brands on which the ticket is valid\r\n\t *\r\n\t * The list should be omitted in case all service brands are \r\n\t * included or a list of excluded service brands is provided.\r\n\t *\r\n\t * @return the included service brands\r\n\t */\r\n\tpublic Collection<Integer> getIncludedServiceBrands();\r\n\r\n\t/**\r\n\t * Adds an included service brand.\r\n\t *\r\n\t * The list should be omitted in case all service brands are \r\n\t * included or a list of excluded service brands is provided.\r\n\t * \r\n\t * @param includedServiceBrand the included service brand\r\n\t */\r\n\tpublic void addIncludedServiceBrand(Integer includedServiceBrand);\r\n\r\n\t/**\r\n\t * Gets the list of excluded service brands.\r\n\t *\r\n\t * The list should be omitted in case a complete \r\n\t * list of included service brands is provided.\t \r\n\t *\r\n\t * @return the list of excluded service brands\r\n\t */\r\n\tpublic Collection<Integer> getExcludedServiceBrands();\r\n\r\n\t/**\r\n\t * Adds an excluded service brand.\r\n\t *\r\n\t * The list should be omitted in case a complete \r\n\t * list of included service brands is provided.\t \r\n\t * \r\n\t * @param excludedServiceBrand the excluded service brand\r\n\t */\r\n\tpublic void addExcludedServiceBrand(Integer excludedServiceBrand);\r\n\t\r\n\t\r\n\t/**\r\n\t * Gets the list of excluded Transport Types.\r\n\t *\r\n\t * The list should be omitted in case a complete \r\n\t * list of included transport types is provided.\t \r\n\t *\r\n\t * @return the list of excluded transport types\r\n\t */\r\n\tpublic Collection<Integer> getExcludedTransportTypes();\r\n\r\n\t/**\r\n\t * Adds an excluded service brand.\r\n\t *\r\n\t * The list should be omitted in case a complete \r\n\t * list of included TransportTypes is provided.\t \r\n\t * \r\n\t * @param excluded TransportType the excluded TransportTypes\r\n\t */\r\n\tpublic void addExcludedTransportType(Integer excludedTransportType);\r\n\r\n\r\n\t/**\r\n\t * Gets the list of excluded Transport Types.\r\n\t *\r\n\t * The list should be omitted in case a complete \r\n\t * list of included transport types is provided.\t \r\n\t *\r\n\t * @return the list of included transport types\r\n\t */\r\n\tpublic Collection<Integer> getIncludedTransportTypes();\r\n\r\n\t/**\r\n\t * Adds an excluded service brand.\r\n\t *\r\n\t * The list should be omitted in case a complete \r\n\t * list of included TransportTypes is provided.\t \r\n\t * \r\n\t * @param excluded TransportType the excluded TransportTypes\r\n\t */\r\n\tpublic void addInludedTransportType(Integer includedTransportType);\r\n\r\n\t/**\r\n\t * Gets the tariffs.\r\n\t *\r\n\t * @return the tariffs\r\n\t */\r\n\tpublic Collection<ITariff> getTariffs();\r\n\t\r\n\t/**\r\n\t * Adds the tariff.\r\n\t *\r\n\t * @param tariff the tariff\r\n\t */\r\n\tpublic void addTariff(ITariff tariff);\r\n\r\n\t/**\r\n\t * Gets the info text.\r\n\t *\r\n\t * @return the info text\r\n\t */\r\n\tpublic String getInfoText();\r\n\r\n\t/**\r\n\t * Sets the info text.\r\n\t *\r\n\t * @param infoText the new info text\r\n\t */\r\n\tpublic void setInfoText(String infoText);\r\n\r\n\t/**\r\n\t * Gets the extension.\r\n\t *\r\n\t * @return the extension\r\n\t */\r\n\tpublic IExtension getExtension() ;\r\n\r\n\t/**\r\n\t * Sets the extension.\r\n\t *\r\n\t * @param extension the new extension\r\n\t */\r\n\tpublic void setExtension(IExtension extension);\r\n\t\r\n\t\r\n\t/**\r\n\t * Sets the until date and time.\r\n\t *\r\n\t * @param date the new until date and time\r\n\t */\r\n\tpublic void setUntilDate(Date date);\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Gets the validFrom date time offset to UTC in units of 15 minutes.\r\n\t *\r\n\t * @return the validFrom date time UTC offset\r\n\t */\r\n\tpublic Long getValidFromUTCoffset();\r\n\t\r\n\t/**\r\n\t * Sets the validFrom date time.\r\n\t *\r\n\t * @param validFromDateTime the new validFrom date time\r\n\t */\r\n\tpublic void setValidFromUTCoffset(Long validFromUTCoffset) ;\r\n\t\r\n\t/**\r\n\t * Gets the validUntil date time offset to UTC in units of 15 minutes.\r\n\t *\r\n\t * @return the validUntil date time UTC offset\r\n\t */\r\n\tpublic Long getValidUntilUTCoffset();\r\n\t\r\n\t/**\r\n\t * Sets the validUntil date time.\r\n\t *\r\n\t * @param validUntilDateTime the new validUntil date time\r\n\t */\r\n\tpublic void setValidUntilUTCoffset(Long validUntilUTCoffset) ;\r\n\t\r\n\t\r\n\tpublic String getServiceLevel();\r\n\t\r\n\tpublic void setServiceLevel(String serviceLevel);\r\n\r\n}",
"protected Ticket<SESSION> newTicket() {\n synchronized (manager) {\n if (isConnectionStopped) {\n throw new IllegalStateException(\"Connection has been stopped\");\n }\n TicketImpl ticketImpl = new TicketImpl();\n tickets.add(ticketImpl);\n return ticketImpl;\n }\n }",
"public phonecallTicket getTicket(){\n return currentticket;\n }",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface TerminalMapper extends EntityMapper<TerminalDTO, Terminal> {\n\n\n\n default Terminal fromId(Long id) {\n if (id == null) {\n return null;\n }\n Terminal terminal = new Terminal();\n terminal.setId(id);\n return terminal;\n }\n}",
"public TicketDto convertTicketDto(Ticket ticket) {\r\n\t\tTicketDto ticketDto = new TicketDto(ticket.getTicketId(),ticket.getNoOfSeats(),ticket.getSeatIds(),ticket.getScreenName());\r\n\t\treturn ticketDto;\r\n\t}",
"private TicketData Ticket2TicketData(Ticket t) {\n\n\t\tBuilder ticketBuilder = TicketData.newBuilder();\n\t\tticketBuilder.setDescription(t.getDescription());\n\t\tticketBuilder.setId(t.getId());\n\t\tticketBuilder.setPriority(de.uniba.rz.io.rpc.TicketData.Priority.values()[t.getPriority().ordinal()]);\n\t\tticketBuilder.setReporter(t.getReporter());\n\t\tticketBuilder.setStatus(de.uniba.rz.io.rpc.TicketData.Status.values()[t.getStatus().ordinal()]);\n\t\tticketBuilder.setTopic(t.getTopic());\n\t\tticketBuilder.setType(de.uniba.rz.io.rpc.TicketData.Type.values()[t.getType().ordinal()]);\n\n\t\treturn ticketBuilder.build();\n\n\t}",
"public void setTicketID(java.lang.Object ticketID) {\n this.ticketID = ticketID;\n }",
"public RegularTicket(int ticketNumber){\n\t\tthis.ticketNumber = ticketNumber;\n\t}",
"@GetMapping(value=\"/ticket/alltickets\")\n\tpublic List<Ticket> getAllTickets(){\n\t\treturn ticketBookingService.getAllTickets();\n\t}",
"public interface TicketDAO extends DomainObjectDAO<Ticket> {\n\n public List<Integer> getBookedSeatsForEventAndDate(Long eventId, LocalDateTime dateTime);\n}",
"int createTicket(Ticket ticket, int userId);",
"@Mapper(componentModel = \"spring\", uses = {ConsumerMapper.class, TransactionTypeMapper.class, })\npublic interface TransactionMapper extends EntityMapper <TransactionDTO, Transaction> {\n\n TransactionDTO toDto(Transaction transaction); \n\n Transaction toEntity(TransactionDTO transactionDTO); \n default Transaction fromId(Long id) {\n if (id == null) {\n return null;\n }\n Transaction transaction = new Transaction();\n transaction.setId(id);\n return transaction;\n }\n}",
"private TicketList() {\n initTicketList();\n }",
"public List<Ticket> getTicketList() {\r\n\t\treturn ticketList;\r\n\t}",
"public TicketContent(Ticket ticket) {\n this(ticket, null);\n }",
"@PostMapping(value=\"/create\")\n\tpublic Ticket creatTicket(@RequestBody Ticket ticket){\n\t\treturn ticketBookingService.createTicket(ticket);\n\t}",
"public interface CTicketStatusDao extends InterfaceDao<CTicketStatus> {\n}",
"public Ticket() throws GeneralSecurityException {\n macAlgorithm = new TicketMac();\n \n //TODO: Change hmac key according to your need\n byte[] hmacKey = new byte[16];\n macAlgorithm.setKey(hmacKey);\n \n ul = new Commands();\n utils = new Utilities(ul);\n }",
"public interface PaymentOrderMapper extends Mapper<PaymentOrder>{\n\n}",
"public interface BookingFacadeService {\n double getTicketsPrice(Long eventId, LocalDateTime dateTime, Long userId, Set<Integer> seats);\n\n Set<Integer> getAvailableSeats(Long eventId, LocalDateTime dateTime);\n\n Set<Integer> bookTickets(Long eventId, LocalDateTime dateTime, Long userId, Set<Integer> seats);\n\n void refillAccount(Long userId, double sum);\n\n Set<Ticket> getTickets(String userLogin, Long eventId, Long time, boolean onlyMyTickets);\n}",
"@Mapper(componentModel = \"spring\", uses = {UtilisateurMapper.class, DepotMapper.class})\npublic interface UtilisateurDepotPKMapper extends EntityMapper<UtilisateurDepotPKDTO, UtilisateurDepotPK> {\n\n @Mapping(source = \"utilisateur.id\", target = \"utilisateurId\")\n @Mapping(source = \"depot.id\", target = \"depotId\")\n UtilisateurDepotPKDTO toDto(UtilisateurDepotPK utilisateurDepotPK);\n\n @Mapping(source = \"utilisateurId\", target = \"utilisateur\")\n @Mapping(source = \"depotId\", target = \"depot\")\n UtilisateurDepotPK toEntity(UtilisateurDepotPKDTO utilisateurDepotPKDTO);\n\n default UtilisateurDepotPK fromId(Long id) {\n if (id == null) {\n return null;\n }\n UtilisateurDepotPK utilisateurDepotPK = new UtilisateurDepotPK();\n utilisateurDepotPK.setId(id);\n return utilisateurDepotPK;\n }\n}",
"public void setticketId(int ticketId) {\n\t\tthis.ticketId = ticketId;\n\t}",
"@Bean(name=\"ticketService\")\n public TicketService getTicketService() {\n int rowNum = Integer.valueOf(env.getProperty(\"rowNum\"));\n int columnNum = Integer.valueOf(env.getProperty(\"columnNum\"));\n TicketService ticketService = new TicketServiceImpl(rowNum, columnNum);\n return ticketService;\n }",
"public interface TokenHistoryMapper {\n\n\n void create(TokenHistory tokenHistory);\n\n}",
"public TAccountTicketFlow(){}",
"public interface TicketDetailsListener {\n\n void showTicketOnMap();\n\n void openTicketAnswer();\n\n void startFbLogin();\n}",
"public Tickets createTicket(Users user) {\n Tickets tickets = new Tickets();\n tickets.setTicketId(UUID.randomUUID().toString());\n tickets.setId(user.getId());\n entityManager.persist(tickets);\n return tickets;\n }",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface TarifLineMapper extends EntityMapper <TarifLineDTO, TarifLine> {\n \n \n default TarifLine fromId(Long id) {\n if (id == null) {\n return null;\n }\n TarifLine tarifLine = new TarifLine();\n tarifLine.setId(id);\n return tarifLine;\n }\n}",
"@Mapper\npublic interface SysUserTokenDao {\n int save(SysUserToken sysUserToken);\n int update(SysUserToken sysUserToken);\n int logout(SysUserToken sysUserToken);\n\n SysUserToken getSysUserTokenByUserId(Long userId);\n SysUserToken getSysUserTokenByToken(String token);\n\n}",
"public TestTicket() {\n\t}",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface StockOutFrozenTubeMapper {\n\n @Mapping(source = \"stockOutFrozenBox.id\", target = \"stockOutFrozenBoxId\")\n @Mapping(source = \"frozenTube.id\", target = \"frozenTubeId\")\n StockOutFrozenTubeDTO stockOutFrozenTubeToStockOutFrozenTubeDTO(StockOutFrozenTube stockOutFrozenTube);\n\n List<StockOutFrozenTubeDTO> stockOutFrozenTubesToStockOutFrozenTubeDTOs(List<StockOutFrozenTube> stockOutFrozenTubes);\n\n @Mapping(source = \"stockOutFrozenBoxId\", target = \"stockOutFrozenBox\")\n @Mapping(source = \"frozenTubeId\", target = \"frozenTube\")\n StockOutFrozenTube stockOutFrozenTubeDTOToStockOutFrozenTube(StockOutFrozenTubeDTO stockOutFrozenTubeDTO);\n\n List<StockOutFrozenTube> stockOutFrozenTubeDTOsToStockOutFrozenTubes(List<StockOutFrozenTubeDTO> stockOutFrozenTubeDTOs);\n\n default StockOutFrozenBox stockOutFrozenBoxFromId(Long id) {\n if (id == null) {\n return null;\n }\n StockOutFrozenBox stockOutFrozenBox = new StockOutFrozenBox();\n stockOutFrozenBox.setId(id);\n return stockOutFrozenBox;\n }\n\n default FrozenTube frozenTubeFromId(Long id) {\n if (id == null) {\n return null;\n }\n FrozenTube frozenTube = new FrozenTube();\n frozenTube.setId(id);\n return frozenTube;\n }\n}",
"@Override\n public TalTicket syncTalTicket(TalTicket talTicket) throws TalAdapterSyncException {\n try {\n // map status, priorities, users to comply with 3rd party ticketing system\n TicketMapper.mapSymphonyToThirdParty(talTicket, config);\n\n // 1. make call to 3rd party ticketing system\n // 2. handle response from 3rd party ticketing system\n // 3. if succeeded change talTicket, set thirdPartyId and thirdPartyLink set for ticket, comments and attachments provisioned in 3rd party system\n // 4. return updated instance using \"return statement\" to the caller\n\n return talTicket;\n\n } catch (Exception e) {\n logger.warn(\"Failed to sync ticket from TAL to InMemory Ticket System {}\", talTicket);\n throw new TalAdapterSyncException(\"Cannot sync TAL ticket\", e);\n }\n }",
"public Ticket(int codigo, int codigoSupermercado, LocalDate fechaCompra, LocalTime horaCompra, double PrecioTotal, ArrayList <LineaCompra> lineasTicket) {\n this.setCodigo(codigo);\n this.setCodigoSupermercado(codigoSupermercado);\n this.setFechaCompra(fechaCompra);\n this.setHoraCompra(horaCompra);\n this.setPrecioTotal(PrecioTotal);\n this.setLineasTicket(lineasTicket);\n }",
"public Ticket addTicket(Ticket ticket){\n ticket.setDate(Instant.now());\n ticket.setAddition(0);\n List<Met> mets= ticket.getMets();\n this.tableservice.searchById(ticket.getTable().getId());\n this.clientservice.searchById(ticket.getClient().getId());\n for (Met met:mets){\n Optional<Met> opt=metRepository.findById(met.getId());\n if(opt.isPresent()){\n ticket.setAddition(ticket.getAddition()+opt.get().getPrix());\n }else {\n throw new NoSuchElementException(\"Met avec id :\"+met.getId()+\" introuvable\");\n }\n }\n Ticket ticketInBase=ticketRepository.save(ticket);\n return ticketInBase;\n }",
"@Override\n\tpublic IAdhocTicket createTicket(String carparkId) {\n\t\tcurrentTicketNo++; // when a ticket is issued, ticketNo increments by 1\n\t\tIAdhocTicket adhocTicket = factory.make(carparkId, currentTicketNo); \n\t\t// make ticket in factory with the new ticketNo\n\t\tadhocTicketList.add(adhocTicket);\n\t\treturn adhocTicket;\n\t}",
"public Ticket(int codigoSupermercado, double precioTotal, ArrayList <LineaCompra> lineasTicket) throws SQLException {\n this.setCodigo();\n this.setCodigoSupermercado(codigoSupermercado);\n this.setFechaCompra();\n this.setHoraCompra();\n this.setPrecioTotal(precioTotal);\n this.setLineasTicket(lineasTicket);\n }",
"@Override\n protected Integer getTicketNumber() {\n return null;\n }",
"public interface CustMapper {\n public void createCust(CustDto custDto);\n\n public CustDto getCust(Long id);\n}",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface TxnActivityAuditMapper {\n\n @Mapping(source = \"editedBy.id\", target = \"editedById\")\n TxnActivityAuditDTO txnActivityAuditToTxnActivityAuditDTO(TxnActivityAudit txnActivityAudit);\n\n @Mapping(source = \"editedById\", target = \"editedBy\")\n TxnActivityAudit txnActivityAuditDTOToTxnActivityAudit(TxnActivityAuditDTO txnActivityAuditDTO);\n\n default Staff staffFromId(Long id) {\n if (id == null) {\n return null;\n }\n Staff staff = new Staff();\n staff.setId(id);\n return staff;\n }\n}",
"@Override\n\tpublic List<LotteryTicket> getAllLotteryTickets() {\n\t\tList<LotteryTicket> ticket = null;\n\t\ttry {\n\t\t\tticket = lotteryTicketRepository.findAllByIsCancelled(false);\n\t\t} catch (Exception exception) {\n\t\t\tLOGGER.error(\"Something went wrong in getAllLotteryTickets\" + exception);\n\t\t\tthrow new InternalServerError(\"Something went wrong in getting all lottery tickets\");\n\t\t}\n\n\t\t// Check if ticket list is empty\n\t\tif (ticket == null || ticket.size() == 0) {\n\t\t\tthrow new InternalServerError(\"No tickets found\");\n\t\t}\n\n\t\t// Return tickets list response\n\t\treturn ticket;\n\t}",
"@Override\n\tpublic List<TicketModel> getTickets(RepositoryModel repository, TicketFilter filter) {\n\t\tJedis jedis = pool.getResource();\n\t\tList<TicketModel> list = new ArrayList<TicketModel>();\n\t\tif (jedis == null) {\n\t\t\treturn list;\n\t\t}\n\t\ttry {\n\t\t\t// Deserialize each journal, build the ticket, and optionally filter\n\t\t\tSet<String> keys = jedis.keys(key(repository, KeyType.journal, \"*\"));\n\t\t\tfor (String key : keys) {\n\t\t\t\t// {repo}:journal:{id}\n\t\t\t\tString id = key.split(\":\")[2];\n\t\t\t\tlong ticketId = Long.parseLong(id);\n\t\t\t\tList<Change> changes = getJournal(jedis, repository, ticketId);\n\t\t\t\tif (ArrayUtils.isEmpty(changes)) {\n\t\t\t\t\tlog.warn(\"Empty journal for {}:{}\", repository, ticketId);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tTicketModel ticket = TicketModel.buildTicket(changes);\n\t\t\t\tticket.project = repository.projectPath;\n\t\t\t\tticket.repository = repository.name;\n\t\t\t\tticket.number = ticketId;\n\n\t\t\t\t// add the ticket, conditionally, to the list\n\t\t\t\tif (filter == null) {\n\t\t\t\t\tlist.add(ticket);\n\t\t\t\t} else {\n\t\t\t\t\tif (filter.accept(ticket)) {\n\t\t\t\t\t\tlist.add(ticket);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// sort the tickets by creation\n\t\t\tCollections.sort(list);\n\t\t} catch (JedisException e) {\n\t\t\tlog.error(\"failed to retrieve tickets from Redis @ \" + getUrl(), e);\n\t\t\tpool.returnBrokenResource(jedis);\n\t\t\tjedis = null;\n\t\t} finally {\n\t\t\tif (jedis != null) {\n\t\t\t\tpool.returnResource(jedis);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}",
"@Override\n\tpublic LotteryTicket getLotteryTicket(int ticketId) {\n\t\tLotteryTicket ticket = null;\n\t\ttry {\n\t\t\tticket = lotteryTicketRepository.findByTicketIdAndIsCancelled(ticketId, false);\n\t\t} catch (Exception exception) {\n\t\t\tLOGGER.error(\"Something went wrong in getLotteryTicket\" + exception);\n\t\t\tthrow new InternalServerError(\"Something went wrong in getting the lottery ticket\");\n\t\t}\n\n\t\t// Check if ticket object is empty\n\t\tif (ticket == null) {\n\t\t\tthrow new InternalServerError(\"This ticket id does not exists\");\n\t\t}\n\n\t\t// Return ticket response\n\t\treturn ticket;\n\t}",
"public void setTicketType(String ticketTypeOf)\r\n {\r\n ticketType = ticketTypeOf;\r\n }",
"public TicketRes modifierTicket(int num ,TicketReq ticketreq){\n Ticket newTicket=mapp.map(ticketreq,Ticket.class);\n searchById(num);\n Optional<Ticket> opt=ticketRepository.findById(num);\n\n Ticket oldTicket= opt.isPresent()?opt.get():null;\n\n //generated auto\n if (newTicket.getNumero()!=0)\n oldTicket.setNumero(newTicket.getNumero());\n if(newTicket.getAddition()!=0)\n oldTicket.setAddition(newTicket.getAddition());\n \n if (newTicket.getNbCouvert()!=0)\n oldTicket.setNbCouvert(newTicket.getNbCouvert());\n \n\n ticketRepository.save(oldTicket);\n\n return mapp.map(oldTicket,TicketRes.class);\n }",
"public interface verifyTicketDao {\r\n /**\r\n *\r\n * @return\r\n */\r\n public String inserVerifyTicketAppid(openPlatform opf);\r\n\r\n /**\r\n * 根据第三方appid获取10分钟ticket\r\n * @param appid\r\n * @return\r\n */\r\n public List<openPlatform> getVerifyTicketByAppid(String appid);\r\n}",
"@Mapper\npublic interface RecruitMapper {\n\n /**\n * 根据招募表主键ID查询\n * @param id\n * @return\n */\n public Recruit getRecruitById(String id);\n\n /**\n * 根据商家ID查询对应招募信息\n * @param owner\n * @return\n */\n public List<Recruit> getRecruitListByOwner(String owner);\n\n public int insertRecruit(Recruit recruit);\n\n public int updateRecruit(Recruit recruit);\n}",
"public Ticket(String name, javax.money.MonetaryAmount price, Festival festival){\n this.name = name;\n this.price = price;\n this.festival = festival;\n }",
"public static void createTicket(String toT){\n\r\n\t\tTicket total=new Ticket();\r\n\r\n\t\tif (toT.equalsIgnoreCase(\"Phone\")){\t\t\t\t\t\t\t\t\t\t\t\t\t//type of ticket is phone\r\n\r\n\t\t\tPhoneCall pc = new PhoneCall();\t\t\t\t\t\t\t\t\t\t\t\t\t//Creating a phone object\r\n\t\t\tSystem.out.println(\"\\n Assign Ticket Details\\n\");\t\t\t\t\t\t\t\t\r\n\t\t\tassignTicket(pc,toT);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//assigning the basic ticket details\r\n\r\n\t\t\ttotal=pc.contactHandler();\t\t\t\t\t\t\t\t\t\t\t\t\t\t//calling the contact handler method\r\n\r\n\t\t\tT.add(total);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//adding the details in transcript\r\n\t\t\t//System.out.println(\"Testing\");\r\n\t\t\treturn;\r\n\r\n\t\t}\r\n\r\n\t\telse if (toT.equalsIgnoreCase(\"inperson\")){\t\t\t\t\t\t\t\t\t\t\t//type of ticket is inperson\r\n\r\n\r\n\t\t\tInPerson ip=new InPerson();\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Creating a inperson object\r\n\t\t\tassignTicket(ip,toT);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//assigning the basic ticket details\r\n\t\t\ttotal=ip.contactHandler();\t\t\t\t\t\t\t\t\t\t\t\t\t\t//calling the contact handler method\r\n\r\n\t\t\tT.add(total);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//adding the details in transcript\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\telse if (toT.equalsIgnoreCase(\"email\"));{\t\t\t\t\t\t\t\t\t\t\t//type of ticket is email\r\n\r\n\t\t\tString email=\"\";\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\tString line=\"\";\r\n\t\t\tSystem.out.println(\"Enter the email Provided\\n\");\r\n\t\t\tSystem.out.println(\"Please enter your ID, name,phoneNumber,Address,serviceID,ServiceStartDate,ServiceEndDate , rest of email\\n\");\r\n\t\t\twhile(true){ // For taking input.Each sentence should end with \".\" and Representative goes to next line by pressing enter. \"Exit\" is used to get out of loop\r\n\t\t\t\t/*\r\n\t\t\t\t * Please enter the Email in ID,Name,PhnNumber,Address,ServiceID,ServiceStartDate,ServiceEndDate and rest of mail with \".\" after each line\r\n\t\t\t\t */\r\n\r\n\t\t\t\tline=Sc.nextLine(); // Infinite loop till \"exit\" is pressed\r\n\t\t\t\temail+=line;\r\n\t\t\t\tif(line.equalsIgnoreCase(\"\"))\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tArrayList<String>sentenceList=new ArrayList<String>(Arrays.asList(email.split(\"\\\\.\")));\t\t\t\t\t\t//splitting the email based on \".\"\t\t\t\r\n\r\n\t\t\tString ID=sentenceList.get(0);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//get first element from Sentencelist\t\t\t\t\t\t\t\t\t\r\n\t\t\tsentenceList.remove(0);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//remove the first element\r\n\t\t\tString Name=sentenceList.get(0);\r\n\t\t\tsentenceList.remove(0);\r\n\t\t\tint PhnNumber=Integer.parseInt(sentenceList.get(0));\r\n\t\t\tsentenceList.remove(0);\r\n\t\t\tString Address=sentenceList.get(0);\r\n\t\t\tsentenceList.remove(0);\r\n\t\t\tString ServiceID=sentenceList.get(0);\r\n\t\t\tsentenceList.remove(0);\r\n\t\t\tString ServiceStartDate=sentenceList.get(0);\r\n\t\t\tsentenceList.remove(0);\r\n\t\t\tString ServiceEndDate=sentenceList.get(0);\r\n\t\t\tsentenceList.remove(0);\r\n\t\t\tString Email=String.join(\". \",sentenceList);\r\n\r\n\r\n\t\t\tEmail em=new Email(ID,Name,PhnNumber,Address,ServiceID,ServiceStartDate,ServiceEndDate);\t\t\t\t\t//creating the email object\r\n\t\t\tassignTicket(em,toT);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//assigning the ticket\r\n\t\t\ttotal=em.contactHandler(Email);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//calling the email contacthandler\r\n\t\t\tT.add(total);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//adding the ticket to arraylist\r\n\t\t}\r\n\t\treturn ;\r\n\t\t//updateTicket();\r\n\r\n\t}",
"public Category getTicketCategory() { return ticketCategory; }",
"@PutMapping(value=\"/ticket/{ticketId}\")\n\tpublic Ticket updateTicket(@RequestBody Ticket ticket,@PathVariable(\"ticketId\") Integer ticketId){\n return ticketBookingService.updateTicket(ticket,ticketId);\t\t\n\t}",
"Ticket getTicketByAssignee(int ticketId, int userId);",
"public void addTicket(LotteryTicket ticket)\r\n\t{\r\n\t\tlotteryTickets.add(ticket);\r\n\t}",
"@Override\n\t@Transactional\n\tpublic LotteryTicket createLotteryTicket(LotteryTicketRequest lotteryTicketRequest) {\n\t\tcheckLotteryTicketRequest(lotteryTicketRequest);\n\t\ttry {\n\t\t\t// Create a lottery ticket\n\t\t\tLotteryTicket lotteryTicket = lotteryTicketRepository.save(new LotteryTicket());\n\n\t\t\t// Create lines per ticket\n\t\t\tList<LotteryTicketLine> linesList = createTicketLines(lotteryTicketRequest.getNumberOfLines(),\n\t\t\t\t\tlotteryTicket);\n\t\t\tlineRepository.saveAll(linesList);\n\t\t\tlotteryTicket.setLotteryTicketLine(linesList);\n\n\t\t\t// Return ticket response\n\t\t\treturn lotteryTicket;\n\t\t} catch (Exception exception) {\n\t\t\tLOGGER.error(\"Something went wrong in createLotteryTicket\" + exception);\n\t\t\tthrow new InternalServerError(\"Something went wrong in creating lottery ticket\");\n\t\t}\n\t}"
] | [
"0.6863328",
"0.68443453",
"0.6814248",
"0.6498212",
"0.63757986",
"0.63618773",
"0.6316457",
"0.6257052",
"0.624662",
"0.62221944",
"0.6196914",
"0.61583096",
"0.6122942",
"0.6110944",
"0.6090555",
"0.60360867",
"0.59709924",
"0.5957152",
"0.58267856",
"0.58076924",
"0.58052737",
"0.57423586",
"0.5735029",
"0.57098514",
"0.5709316",
"0.57017845",
"0.56904846",
"0.568681",
"0.56607425",
"0.5639696",
"0.5635424",
"0.5633543",
"0.5623926",
"0.5616205",
"0.5606257",
"0.55745256",
"0.5571928",
"0.5561306",
"0.5560558",
"0.55347955",
"0.5525503",
"0.55036026",
"0.5498024",
"0.54887724",
"0.5477141",
"0.5474171",
"0.5461919",
"0.54496723",
"0.5437679",
"0.5419712",
"0.54112834",
"0.53731483",
"0.5356107",
"0.53555334",
"0.5352204",
"0.5332481",
"0.5319261",
"0.53173727",
"0.5311481",
"0.5296595",
"0.5296514",
"0.5290398",
"0.5282782",
"0.527182",
"0.52663016",
"0.52646416",
"0.52548665",
"0.52439713",
"0.5238062",
"0.52090454",
"0.51744264",
"0.51493126",
"0.51438",
"0.5140767",
"0.51338494",
"0.5133623",
"0.51310396",
"0.5126078",
"0.51193064",
"0.51158655",
"0.510901",
"0.5108846",
"0.5087289",
"0.5086174",
"0.507612",
"0.5073752",
"0.5073497",
"0.5072143",
"0.5071783",
"0.50603205",
"0.506032",
"0.50583965",
"0.5027348",
"0.5024322",
"0.5023824",
"0.50138855",
"0.5004013",
"0.49876988",
"0.49844527",
"0.4983289"
] | 0.6610916 | 3 |
To dto ticket dto. | @Mappings({
@Mapping(target = "passengerDto", source = "ticketEntity.passengerEntity"),
@Mapping(target = "ticketScheduleSectionDtoList", source = "ticketEntity.ticketScheduleSectionEntityList")
})
TicketDto toDto(TicketEntity ticketEntity); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"TicketDTO ticketToTicketDTO(Ticket ticket);",
"Ticket ticketDTOToTicket(TicketDTO ticketDTO);",
"public TicketDto convertTicketDto(Ticket ticket) {\r\n\t\tTicketDto ticketDto = new TicketDto(ticket.getTicketId(),ticket.getNoOfSeats(),ticket.getSeatIds(),ticket.getScreenName());\r\n\t\treturn ticketDto;\r\n\t}",
"List<TicketDTO> ticketToTicketDTO(List<Ticket> all);",
"List<TicketDto> toDtoList(List<TicketEntity> ticketEntityList);",
"List<Ticket> ticketDTOToTicket(List<TicketDTO> all);",
"private TicketData Ticket2TicketData(Ticket t) {\n\n\t\tBuilder ticketBuilder = TicketData.newBuilder();\n\t\tticketBuilder.setDescription(t.getDescription());\n\t\tticketBuilder.setId(t.getId());\n\t\tticketBuilder.setPriority(de.uniba.rz.io.rpc.TicketData.Priority.values()[t.getPriority().ordinal()]);\n\t\tticketBuilder.setReporter(t.getReporter());\n\t\tticketBuilder.setStatus(de.uniba.rz.io.rpc.TicketData.Status.values()[t.getStatus().ordinal()]);\n\t\tticketBuilder.setTopic(t.getTopic());\n\t\tticketBuilder.setType(de.uniba.rz.io.rpc.TicketData.Type.values()[t.getType().ordinal()]);\n\n\t\treturn ticketBuilder.build();\n\n\t}",
"public ReportDTO convertToDTO() {\n return new ReportDTO()\n .id(id)\n .email(email)\n .type(type)\n .content(content)\n .status(status)\n .reporter((reporter != null) ? reporter.convertToDTO() : null)\n .announcement(announcement.convertToDTO())\n .createdAt(createdAt);\n }",
"List<TicketEntity> toEntityList(List<TicketDto> ticketDtoList);",
"public FeedbackDTO getFeedbackDTO() {\r\n\r\n\t\tFeedbackDTO feedbackdto = new FeedbackDTO();\r\n\t\tfeedbackdto.setFeedbackId(FEEDBACK_ID);\r\n\t\tfeedbackdto.setCandidateName(CANDIDATE_NAME);\r\n\t\tfeedbackdto.setInterviewerName(INTERVIEWER_NAME);\r\n\t\tfeedbackdto.setRound(ROUND);\r\n\t\tfeedbackdto.setExperience(EXPERIENCE);\r\n\t\tfeedbackdto.setJobRole(JOB_ROLE);\r\n\t\tfeedbackdto.setDateOfInterview(DATE_OF_INTERVIEW);\r\n\t\tfeedbackdto.setTechnicalSkill(TECHNICAL_SKILL);\r\n\t\tfeedbackdto.setOrganizationalSkill(ORGANIZATIONAL_SKILL);\r\n\t\tfeedbackdto.setEducationSkill(EDUCATIONAL_SKILL);\r\n\t\tfeedbackdto.setCommunicationSkill(COMMUNICATION_SKILL);\r\n\t\tfeedbackdto.setOverallRating(OVERALL_RATING);\r\n\t\tfeedbackdto.setCandidate(CANDIDATE_ID);\r\n\t\tfeedbackdto.setInterview(INTERVIEW_ID);\r\n\t\tfeedbackdto.setInterviewer(INTERVIEWER_ID);\r\n\t\tfeedbackdto.setInterviewResult(INTERVIEW_RESULT);\r\n\t\tfeedbackdto.setNextRound(NEXT_ROUND);\r\n\t\tfeedbackdto.setHrLeaderAbility(HR_ABILITY_SKILL);\r\n\t\treturn feedbackdto;\r\n\t}",
"public AtendimentoJuridicoDTO toDTO(AtendimentoJuridicoEntity entity){\n\t\tAtendimentoJuridicoDTO dto = new AtendimentoJuridicoDTO();\n\t\tBeanUtils.copyProperties(entity, dto); \n\t\treturn dto ;\n\t}",
"private TimeEntryDto convertTimeEntryToDto(final TimeEntry timeEntry) {\n\t\tfinal TimeEntryDto timeEntryDto = new TimeEntryDto();\n\t\ttimeEntryDto.setId(Optional.of(timeEntry.getId()));\n\t\ttimeEntryDto.setDate(this.dateFormat.format(timeEntry.getDate()));\n\t\ttimeEntryDto.setType(timeEntry.getType().toString());\n\t\ttimeEntryDto.setDescription(timeEntry.getDescription());\n\t\ttimeEntryDto.setLocation(timeEntry.getLocation());\n\t\ttimeEntryDto.setEmployeeId(timeEntry.getEmployee().getId());\n\n\t\treturn timeEntryDto;\n\t}",
"@Mappings({\n\n @Mapping(target = \"passengerEntity\", source = \"ticketDto.passengerDto\"),\n @Mapping(target = \"ticketScheduleSectionEntityList\", source = \"ticketDto.ticketScheduleSectionDtoList\")\n })\n TicketEntity toEntity(TicketDto ticketDto);",
"AccountDTO toDTO(Account account);",
"@Override\n public CommentDTO toDto(Comment entity) {\n CommentDTO dto = new CommentDTO();\n UserDTO sender = new UserDTO();\n sender.setName(entity.getSenderName());\n sender.setId(entity.getSenderId());\n dto.setId(entity.getId());\n dto.setSender(sender);\n dto.setStatus(entity.getStatus());\n dto.setText(entity.getText());\n dto.setId(entity.getId());\n return dto;\n }",
"@Override\n\tpublic BaseFWDTOImpl toDTO() {\n\t\treturn null;\n\t}",
"@Test\n public void testForumToDTO() {\n try {\n // Create a forum.\n User user = new User();\n user.setId(USER_ID);\n user.setUserName(USER_NAME);\n user.setEmail(USER_EMAIL);\n user.setPassword(USER_PASSWORD);\n Set<User> subscribers = new HashSet<>();\n subscribers.add(user);\n Comment comment = new Comment();\n comment.setTime(COMMENT_TIME);\n comment.setDatePosted(COMMENT_DATE);\n comment.setId(COMMENT_ID);\n comment.setText(COMMENT_TEXT);\n comment.setUser(user);\n Set<Comment> comments = new HashSet<>();\n comments.add(comment);\n Forum forum = new Forum();\n forum.setId(FORUM_ID);\n forum.setTitle(FORUM_TITLE);\n forum.setAuthor(user);\n forum.setComments(comments);\n forum.setLocked(false);\n forum.setSubscribers(subscribers);\n\n // Convert.\n ForumDTO forumDTO = forumService.forumToDTO(forum);\n\n // Test values.\n assertEquals(FORUM_ID, forumDTO.getId());\n assertEquals(USER_NAME, forumDTO.getAuthor().getUsername());\n assertTrue(\n forumDTO.getComments().stream()\n .map(CommentDTO::getText)\n .collect(Collectors.toSet())\n .contains(COMMENT_TEXT)\n );\n assertTrue(\n forumDTO.getSubscribers().stream()\n .map(UserDTO::getUsername)\n .collect(Collectors.toSet())\n .contains(USER_NAME)\n );\n } catch (Exception e) {\n fail(e.getMessage());\n }\n\n }",
"ExerciseDTO convertToExerciseDTO(Exercise exercise);",
"@Override\n public Comment toEntity(CommentDTO dto) {\n Comment entity = new Comment();\n entity.setId(dto.getId());\n entity.setStatus(dto.getStatus());\n entity.setSenderId(dto.getSender().getId());\n entity.setSenderName(dto.getSender().getName());\n entity.setText(dto.getText());\n// entity.setRentInfo(rentInfoDtoMapper.toEntity(dto.getRentInfo()));\n return entity;\n }",
"public abstract DTO toDTO(M model);",
"private OfferedServiceDto convertToDto(OfferedService s) {\n\t\tif (s == null) {\n\t\t\tthrow new InvalidInputException(\"There is no such OfferedService!\");\n\t\t}\n\t\tOfferedServiceDto offerServiceDto = new OfferedServiceDto(s.getOfferedServiceId(), s.getPrice(),\n\t\t\t\ts.getName(),s.getDuration(), s.getReminderTime(),s.getReminderDate(), s.getDescription());\n\t\treturn offerServiceDto;\n\n\t}",
"public TransportDTO makeDTO(ResultSet RS) {\n TransportDTO output = null;\n Connection conn = Repository.getInstance().connect();\n OrderDAO OrderDAO = new OrderDAO();\n try {\n String date = RS.getString(2);\n int weight = RS.getInt(1);\n String driverID = RS.getString(5);\n String Truckplate = RS.getString(4);\n int transportID = RS.getInt(3);\n List<OrderDTO> Orders = new ArrayList<OrderDTO>();\n boolean wasDel = RS.getString(6).equals(\"true\");\n ResultSet contractsRS = getWithInt(\"TransportsOrders\", \"TransportID\", transportID,conn);\n while (contractsRS.next()) {\n int OrderID = contractsRS.getInt(1);\n Orders.add(OrderDAO.get(OrderID));\n }\n output = new TransportDTO(date, weight, driverID, Truckplate, Orders, wasDel, transportID);\n } catch (Exception e) {\n output = null;\n }\n finally{\n Repository.getInstance().closeConnection(conn);\n }\n return output;\n }",
"private HistoryDTO convertEntityToDTO(History history) {\n\t\tHistoryDTO historyDto = modelMapper.map(history, HistoryDTO.class);\n\t\treturn historyDto;\n\t}",
"public static PerspectiveDTO toDTO(Perspective perspective) {\n return toDTO(perspective, false);\n }",
"static ForumDTO toDto(Forum forum) {\n\n List<Long> moderators = new ArrayList<Long>();\n List<CommentDTO> comments = new ArrayList<CommentDTO>();\n\n //get moderators\n if(forum.getModerators() != null) {\n for (User i : forum.getModerators()) {\n moderators.add(i.getId());\n }\n }\n\n //get comments\n if(forum.getModerators() != null) {\n for (Comment i : forum.getComments()) {\n comments.add(CommentMapper.toDto(i));\n }\n }\n\n Long animeTopicId = forum.getAnimeTopic() == null ? null : forum.getAnimeTopic().getId();\n\n ForumDTO in = new ForumDTO(forum.getId(), moderators, comments, animeTopicId);\n\n return in;\n\n }",
"@Override\n\tpublic GetJiraTicketResponseDTO createJiraTicket(Integer id) {\n\t\treturn null;\n\t}",
"D mapToDTO(E entity);",
"public static RoomDTO newDTO() {\n\n RoomDTO roomDTO = new RoomDTO();\n return roomDTO;\n }",
"public abstract D convertToDto(T entity);",
"AccountDTO coverAccountToEmpDTO(Account account);",
"public DetailDTO toDTO(OrderDetailEntity orderDetailEntity) {\n\t\t\n\t\tDetailDTO detailDTO = new DetailDTO();\n\t\t\n\t\tif(orderDetailEntity.getId() != null) {\n\t\t\tdetailDTO.setId(orderDetailEntity.getId());\n\t\t}\n\t\tdetailDTO.setShoesID(orderDetailEntity.getShoesEntity().getId());\n\t\tdetailDTO.setShoesName(orderDetailEntity.getShoesName());\n\t\tdetailDTO.setPrice(orderDetailEntity.getPrice());\n\t\tdetailDTO.setQuantity(orderDetailEntity.getQuantity());\n\t\tdetailDTO.setCreatedBy(orderDetailEntity.getCreatedBy());\n\t\tdetailDTO.setCreatedDate(orderDetailEntity.getCreatedDate());\n\t\tdetailDTO.setModifiedBy(orderDetailEntity.getModifiedBy());\n\t\tdetailDTO.setModifiedDate(orderDetailEntity.getModifiedDate());\n\t\tdetailDTO.setDeleted(orderDetailEntity.getDeleted());\t\n\t\treturn detailDTO;\n\t}",
"RunDTO toDto(Run run) {\n RunDTO result = new RunDTO();\n result.setId(0L);\n if (null != run) {\n this.fillDto(result, run);\n }\n return result;\n }",
"public static SystemDTO entityToDTO(final System entity){\n\t\tfinal SystemDTO result = new SystemDTO();\n\t\t\n\t\tresult.setCode(entity.getCode());\n\t\tresult.setName(entity.getName());\n\t\tresult.setId(entity.getId());\n\t\t\n\t\treturn result;\n\t}",
"private EmployeeDto toDto(Employee employee){\n\t\tEmployeeDto employeeDto = new EmployeeDto();\n\t\temployeeDto.id = employee.getId();\n\n\t\temployeeDto.name = employee.getName();\n\t\temployeeDto.email = employee.getEmail();\n\n\t\temployeeDto.jobTypeId = employee.getJobtype().getId();\n\n\t\temployeeDto.bossId = employee.getBossId();\n\n\t\temployeeDto.netPayment = employee.getNetPayment();\n\t\temployeeDto.grossPayment = employee.getGrossPayment();\n\t\temployeeDto.employerTotalCost = employee.getEmployerTotalCost();\n\t\temployeeDto.workHours = employee.getWorkHours();\n\n\t\temployeeDto.children = employee.getChildren();\n\n\t\temployeeDto.workStatus = employee.getWorkStatus().getStringValue();\n\n\t\temployeeDto.isEntrant = employee.isEntrant();\n\t\temployeeDto.isJustMarried = employee.isJustMarried();\n\t\temployeeDto.isSingleParent = employee.isSingleParent();\n\n\t\treturn employeeDto;\n\t}",
"V toDto(E entity);",
"private CategoryDTO getCategoryDto(){\n\t\tCategoryDTO category = new CategoryDTO(Long.valueOf(1L), \"categoryName\", \"categoryDesc\");\n\t\treturn category;\n\t}",
"public static BorrowOrderDto db2dto(BorrowOrder db) {\n BorrowOrderDto dto = new BorrowOrderDto();\n BorrowOrderConverter.db2dto(dto, db);\n return dto;\n }",
"public static EtudiantDto toDto(Etudiant stud) {\n\t\tUserDto uDto = UserDto.toUserDto(stud.getUser());\n\t\tEtudiantDto studDto = new EtudiantDto(stud.getId(), stud.getNom(), stud.getPrenom(), stud.getEmail(), stud.getTel(), uDto);\n\t\treturn studDto;\n\t}",
"public static <Entity,Dto> Dto entityToDTO(Entity entity,Class<Dto> classDTO)\n\t{\n\t\tModelMapper mapper = new ModelMapper();\n\t\treturn mapper.map(entity, classDTO);\n\t}",
"public abstract T convertToEntity(D dto);",
"private LecturerDto mapDto(Lecturer lecturer) {\n return new LecturerDto(lecturer.getLecturerID(), lecturer.getFirstName(), lecturer.getLastName(), lecturer.getEmail(), lecturer.getType());\n }",
"PersonaDTO PersonaToPersonaDTO(Persona persona);",
"public static UserDTO mapEntityIntoDTO(UserEntity entity) {\n \tif (entity == null) {\n \t\treturn null;\n \t}\n \n \tUserDTO dto = new UserDTO();\n \t\n \tdto.setLogin(entity.getLogin());\n\n \tdto.setPassword(entity.getPassword());\n \t// mapValue(entity, dto, \"password\");\n\n \t//dto.setQuota(entity.getQuota());\n \tModelDTOMapper.readEntityFieldToDto(dto, \"quota\", entity, \"quota\", new ConvertIntToLong());\n \t\n \t// dto.setEnabled(entity.getEnabled());\n \tModelDTOMapper.readEntityFieldToDto(dto, entity, \"enabled\");\n return dto;\n }",
"@Override\n\tpublic Izdavac convert(IzdavacDTO dto) {\n\t\tIzdavac izdavac=new Izdavac();\n\t\tif(dto.getId()!=null) {\n\t\t\tizdavac=izdavacService.findOne(dto.getId());\n\t\t\tif(izdavac==null) {\n\t\t\t\tthrow new IllegalStateException(\"greska izdavacDTO\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tizdavac.setAdresa(dto.getAdresa());\n\t\tizdavac.setId(dto.getId());\n\t\tizdavac.setNaziv(dto.getNaziv());\n\t\tizdavac.setTelefon(dto.getTelefon());\n\t\t\n\t\treturn izdavac;\n\t}",
"public OrderDTO toDto( Order order ) {\n\t\treturn transform.orderToDto( order );\n\t}",
"private UserDTO createUserDto(User userToReturn) {\n\t\tList<Account> accounts = userToReturn.getAccounts();\r\n\t\tList<AccountDTO> accountsDTO = new ArrayList<AccountDTO>(\r\n\t\t\t\taccounts != null ? accounts.size() : 0);\r\n\t\tif (accounts != null) {\r\n\t\t\tfor (Account account : accounts) {\r\n\t\t\t\taccountsDTO.add(new AccountDTO(account.getId(), account\r\n\t\t\t\t\t\t.getRib(), account.getOpeningDate(),\r\n\t\t\t\t\t\taccount.getSolde(), account.getType(), null, null,\r\n\t\t\t\t\t\tnew UserDTO(), null, null));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new UserDTO(userToReturn.getId(), userToReturn.getLogin(),\r\n\t\t\t\tuserToReturn.getPassword(), userToReturn.getFullName(),\r\n\t\t\t\taccountsDTO);\r\n\t}",
"CommentDto entityToDto(Comment comment);",
"Persona PersonaDTOToPersona(PersonaDTO personaDTO);",
"public FilmTypeDto convertEntityToDto(FilmType entity){\n\t\tFilmTypeDto dto = new FilmTypeDto();\n\t\tif(entity!=null){\n\t\t\tdto.setId(entity.getId());\n\t\t\tdto.setVersion(entity.getVersion());\n\t\t\tdto.setDescription(entity.getDescription());\n\t\t}\n\t\treturn dto;\n\t}",
"@Mappings({\n\t\t@Mapping(target=\"id\", source=\"entity.id\"),\n\t\t@Mapping(target=\"userId\", source=\"entity.userId\"),\n\t\t@Mapping(target=\"task_description\", source=\"entity.description\"),\n\t\t@Mapping(target=\"createdDate\", source=\"entity.createdDate\"),\n\t\t@Mapping(target=\"modifiedDate\", source=\"entity.modifiedDate\")\n\t\t//@Mapping(target=\"isDeleted\", source=\"entity.isDeleted\")\n\t\t})\n\n\t\tTaskDto taskToTaskDTO(Task entity);",
"public RaceDTO mapTo(Race race) {\n\t\tRaceDTO dto = new RaceDTO();\n\t\tdto.setId(race.getId());\n\t\tdto.setName(race.getName());\n\t\tdto.setDate(race.getDate());\n\t\tdto.setTime(race.getTime());\n\t\tList<DriverDTO> drivers = new ArrayList<>();\n\t\t\n\t\tfor(Driver driver : race.getDrivers()) {\n\t\t\tdrivers.add(this.driverMapper.mapTo(driver));\n\t\t}\n\t\tdto.setDrivers(drivers);\n\t\treturn dto;\n\t\t\n\t}",
"default ShopDTO entityToDto(Shop entity) {\n ShopDTO dto = ShopDTO.builder()\n .productID(entity.getProductID())\n .product(entity.getProduct())\n .image(entity.getImage())\n .content(entity.getContent())\n .price(entity.getPrice())\n .count(entity.getCount())\n .regDate(entity.getRegDate())\n .modDate(entity.getModDate())\n .build();\n return dto;\n }",
"public interface ITicket {\n\n /**\n * Getter for the name of the ticket's passenger.\n *\n * @return passenger name in string format.\n */\n String getPassengerName();\n\n /**\n * Setter for the name of the ticket's passenger.\n *\n * @param passengerName passenger name in string format.\n */\n void setPassengerName(String passengerName);\n\n /**\n * Getter for the unique identification pertaining to the ticket's route.\n *\n * @return unique identification number related to the ticket in string format.\n */\n String getRouteID();\n\n /**\n * Setter for the unique identification pertaining to the ticket's route.\n *\n * @param routeID unique identification number related to the ticket in string format.\n */\n void setRoute(String routeID);\n\n /**\n * Getter for the departure city string.\n *\n * @return the departure city in string format.\n */\n String getDepartureLocation();\n\n /**\n * Getter for the arrival city string.\n *\n * @return the arrival city in string format.\n */\n String getArrivalLocation();\n\n /**\n * Setter for the ticket origin in using Locations enum.\n *\n * @param origination enum representing location.\n */\n void setOrigination(Locations origination);\n\n /**\n * Setter for the ticket destination using Locations enum.\n *\n * @param destination enum representing location.\n */\n void setDestination(Locations destination);\n\n /**\n * Getter for the departure date and time which is represented by util Calendar but printed out\n * in string format MM DD YYYY HH MM.\n *\n * @return the departure date and time in string format MM DD YYYY HH MM.\n */\n Calendar getDepartureDateAndTime();\n\n /**\n * Getter for the arrival date and time which is represented by util Calendar but printed out\n * in string format YYYY MM DD HH MM.\n *\n * @return the arrival date and time in string format YYYY MM DD HH MM.\n */\n Calendar getArrivalDateAndTime();\n\n /**\n * Setter for the trip dates using util Calendar for both departure and arrival in the format\n * YYYY Calendar.MONTH DD HH MM.\n *\n * @param departureDate Calendar departure date in the format YYYY Calendar.MONTH DD HH MM.\n * @param arrivalDate Calendar arrival date in the format YYYY Calendar.MONTH DD HH MM.\n */\n void setTripDates(Calendar departureDate, Calendar arrivalDate);\n\n /**\n * Getter for the class of service for certain tickets which allow class distinctions defined\n * in the enum ClassOfService.\n *\n * @return enum representing the class of service available on certain tickets.\n */\n ClassOfService getClassOfService();\n\n /**\n * Setter for the class of service for certain tickets which allow class distinctions defined\n * in the enum ClassOfService.\n *\n * @param serviceClass enum representing the class of service available on certain tickets.\n */\n void setClassOfService(ClassOfService serviceClass);\n }",
"RootCauseDTO toDto(RootCause rootCause) {\n RootCauseDTO result = new RootCauseDTO();\n result.setId(0L);\n if (null != rootCause) {\n result.setId(rootCause.getId());\n result.setName(rootCause.getName());\n }\n return result;\n }",
"public GetUsuarioDTO convierteDTO(Integer id){\n Optional<Usuario> usuario = usuarioRepository.findById(id);\n return usuario.map(usuarioDTOConverter::convertToDTO).orElseThrow(()->new UsuarioNotFoundException(id));\n }",
"private Lecturer map(LecturerDto dto) {\n return Lecturer.builder().firstName(dto.getFirstName()).createdAt(Instant.now())\n .lastName(dto.getLastName()).email(dto.getEmail()).type(dto.getType().toLowerCase()).build();\n }",
"public PasswordChangeDTO() {}",
"Account coverEmpDTOToAccount(AccountDTO accountDTO);",
"public default D toDto(E entity) {\n\t\tif (entity == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn DtoUtilService.staticDtoFromEntity(getDtoClass(), entity);\n\t\t}\n\t}",
"Comment dtoToEntity(CommentDto commentDto);",
"public static EmployeeDTO valueOf(Employee employee){\n EmployeeDTO employeeDTO = new EmployeeDTO();\n BeanUtils.copyProperties(employee, employeeDTO);\n// employeeDto.setId( employee.getId() );\n// employeeDto.setFirstName( employee.getFirstName() );\n\n return employeeDTO;\n\n }",
"public static Eticket2 transformToEticket(Eticket2DTO eTicketDTO) {\n return new Eticket2(null, eTicketDTO.category,eTicketDTO.reference, eTicketDTO.description,eTicketDTO.law,eTicketDTO.nominative,\n eTicketDTO.validityDate, RateAdapter.transformToRateList(eTicketDTO.rates),\n eTicketDTO.image,eTicketDTO.provider,BasketAdapter.transformToBasketList(eTicketDTO.baskets));\n }",
"public OrderDTO getOrderAsDTO(Business business, Long orderId) {\n\t\treturn transform.orderToDto( getOrder(business, orderId) );\n\t}",
"StudentDTO toStudentDTO(Student student);",
"private CustomersDTO buildDTOToCreate(CustomersDTO customerDto) {\n if (customerDto.getBusinessMainId() < 0) {\n customerDto.setBusinessMainId(0);\n }\n if (customerDto.getBusinessSubId() < 0) {\n customerDto.setBusinessSubId(0);\n }\n if (customerDto.getEmployeeId() == null) {\n customerDto.setEmployeeId(ConstantsCustomers.LONG_VALUE_0L);\n }\n if (customerDto.getDepartmentId() == null) {\n customerDto.setDepartmentId(ConstantsCustomers.LONG_VALUE_0L);\n }\n if (customerDto.getGroupId() == null) {\n customerDto.setGroupId(ConstantsCustomers.LONG_VALUE_0L);\n }\n if (customerDto.getScenarioId() == null) {\n customerDto.setScenarioId(ConstantsCustomers.LONG_VALUE_0L);\n }\n customerDto.setCreatedUser(jwtTokenUtil.getEmployeeIdFromToken());\n customerDto.setUpdatedUser(jwtTokenUtil.getEmployeeIdFromToken());\n return customerDto;\n }",
"public BUserDto convertEntityToDto(BUser entity){\n\t\tBUserDto dto = new BUserDto();\n\t\tif(entity!=null){\n\t\t\tdto.setId(entity.getId());\n\t\t\tdto.setUsername(entity.getUsername());\n\t\t}\n\t\treturn dto;\n\t}",
"public ConnectionDTO getDto() {\n return dto;\n }",
"public static RoomDTO mapToDTO(Room room) {\n if (Objects.isNull(room)) {\n return null;\n }\n RoomDTO roomDTO = new RoomDTO();\n\n roomDTO.setRoomId(room.getRoomId());\n roomDTO.setDescription(room.getDescription());\n roomDTO.setHouseFloor(room.getHouseFloor());\n roomDTO.setWidth(room.getDimension().getWidth());\n roomDTO.setLength(room.getDimension().getLength());\n roomDTO.setHeight(room.getDimension().getHeight());\n\n return roomDTO;\n }",
"public MemberDto copyEntityToDto(Member entity, MemberDto dto) {\r\n reflectMemberIdToDto(entity, dto);\r\n reflectMemberNameToDto(entity, dto);\r\n reflectFormalizedDatetimeToDto(entity, dto);\r\n reflectUpdateDatetimeToDto(entity, dto);\r\n\r\n return dto;\r\n }",
"public CurrencyOfferDTO fromModelToDTO(CurrencyOffer currency);",
"public WorkspaceDTO toDTO(WorkspaceConfig workspace) {\n\t\tif (workspace == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tMap<String, Object> properties = workspace.getProperties();\n\t\tString propertiesString = JSONUtil.toJsonString(properties);\n\n\t\tWorkspaceDTO dto = new WorkspaceDTO();\n\n\t\tdto.setName(workspace.getName());\n\t\tdto.setManagementId(workspace.getManagementId());\n\t\tdto.setPropertiesString(propertiesString);\n\n\t\treturn dto;\n\t}",
"public static ContractorDetailsDto getContractorDetailsDto() {\n\t\treturn new ContractorDetailsDto();\n\t}",
"@Override\n public D entityToDTO( final E entity )\n {\n //final String methodName = \"cachedDataToDTO\";\n //logMethodBegin( methodName, entity );\n Objects.requireNonNull( entity, \"entity argument cannot be null\" );\n D dto = super.entityToDTO( entity );\n /*\n * I think this is a good use of instanceof...although I am not convinced, I'll have to think about this...\n * If any stock DTO is a stock company container, it will be populated automatically with the stock company\n * information. No need for any sub cvl\n *\n * NEED TO SERIOUSLY THINK ABOUT A BETTER SOLUTION HERE....5/9/2017 Mike.\n *\n * Need to develop some sort of \"conversion\" registration so that subclasses can register \"converters\" to be\n * run on entity.\n *\n /*\n * StockPriceQuoteContainers contain everything in a StockPriceContainer so get that instead\n */\n /*\n if ( dto instanceof StockQuoteDTOContainer )\n {\n this.stockQuoteEntityService\n .setQuoteInformation( dto );\n }\n */\n /*\n * The quote contains the company name\n */\n /*\n else if ( dto instanceof StockCompanyEntityContainer )\n {\n this.stockCompanyEntityService\n .setCompanyInformation( (StockCompanyDTOContainer) dto );\n }\n if ( dto instanceof StockPriceQuoteDTOContainer )\n {\n this.stockPriceQuoteService\n .setStockPriceQuote( dto, ASYNCHRONOUS );\n }\n */\n\n /*\n * Convert the UUID to a string and get the notes source name for the UUID\n */\n if ( entity instanceof NotesSourceUuidContainer &&\n dto instanceof NotesSourceIdContainer )\n {\n final NotesSourceUuidContainer notesSourceUuidContainer = (NotesSourceUuidContainer)entity;\n if ( notesSourceUuidContainer.getNotesSourceEntity().isPresent() )\n {\n final NotesSourceIdContainer notesSourceIdContainer = (NotesSourceIdContainer)dto;\n final StockNoteSourceEntity stockNoteSourceEntity = notesSourceUuidContainer.getNotesSourceEntity().get();\n notesSourceIdContainer.setNotesSourceName( stockNoteSourceEntity.getName() );\n notesSourceIdContainer.setNotesSourceId( stockNoteSourceEntity.getUuid().toString() );\n }\n }\n\n if ( dto instanceof TagsContainer )\n {\n final TagsContainer tagsContainer = (TagsContainer)dto;\n tagsContainer.setTags( this.stockTagService.findStockTags( UUIDUtil.uuid( tagsContainer.getCustomerId() ),\n StockTagEntity.StockTagReferenceType.STOCK_TO_BUY,\n UUIDUtil.uuid( tagsContainer.getEntityId() ) ) );\n }\n //logMethodEnd( methodName, dto );\n return dto;\n }",
"SurveyQuestionDTO convertSurveyQuestionToSurveyQuestionDTO(SurveyQuestion question);",
"public SkillDTO toDTO(Skill skill, int depth) {\n if (skill == null) {\n return null;\n }\n\n SkillDTO dto = new SkillDTO();\n\n dto.id = skill.getId();\n dto.name = skill.getName();\n dto.position = skill.getPosition();\n dto.onInit = skill.getOnInit();\n dto.creationDate = skill.getCreationDate();\n dto.creationAuthor = skill.getCreationAuthor();\n dto.lastModificationDate = skill.getLastModificationDate();\n dto.lastModificationAuthor = skill.getLastModificationAuthor();\n dto.version = skill.getVersion();\n if (depth-- > 0) {\n dto.skill2 = toDTO(skill.getSkill2(), depth);\n dto.script = scriptDTOService.toDTO(skill.getScript(), depth);\n final int fdepth = depth;\n dto.theChars = skill.getTheChars().stream().map(anChar -> characterDTOService.toDTO(anChar, fdepth)).collect(Collectors.toList());\n }\n\n return dto;\n }",
"OrderDTO create(OrderDTO orderDTO);",
"@Override\n protected E dtoToEntity( final D dto )\n {\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n final E entity = super.dtoToEntity( dto );\n /*\n * Convert the notes source ID to UUID\n */\n if ( dto instanceof NotesSourceIdContainer &&\n entity instanceof NotesSourceUuidContainer )\n {\n final NotesSourceIdContainer notesSourceIdContainer = (NotesSourceIdContainer) dto;\n /*\n * Check for new sources\n */\n this.stockNoteSourceService.checkForNewSource( notesSourceIdContainer );\n final NotesSourceUuidContainer notesSourceUuidContainer = (NotesSourceUuidContainer)entity;\n /*\n * Convert the String UUID to a real uuid if present\n */\n if ( notesSourceIdContainer.getNotesSourceId() != null &&\n !notesSourceIdContainer.getNotesSourceId().isEmpty() )\n {\n final StockNoteSourceEntity stockNoteSourceEntity = this.stockNoteSourceService\n .getStockNoteSource( ((CustomerUuidContainer)entity).getCustomerUuid(),\n notesSourceIdContainer.getNotesSourceId() );\n notesSourceUuidContainer.setNotesSourceEntity( stockNoteSourceEntity );\n }\n }\n //logMethodEnd( methodName, entity );\n return entity;\n }",
"private AdministratorDTO createDTO(Administrator administrator) {\r\n\t\tAdministratorDTO dto = new AdministratorDTO();\r\n\t\tif(administrator.getAccount() != null){\r\n\t\t\tdto.setEmail(administrator.getAccount().getEmail());\r\n\t\t\tdto.setPassword(administrator.getAccount().getPassword());\r\n\t\t\tdto.setEnabled(administrator.getAccount().isEnabled());\r\n\t\t\tfor(Role role : administrator.getAccount().getRoles()){\r\n\t\t\t\tdto.getListRoles().add(role.getName());\r\n\t\t\t}\r\n\t\t}\r\n\t\tdto.setId(administrator.getId());\r\n\t\tdto.setFirstName(administrator.getFirstName());\r\n\t\tdto.setLastName(administrator.getLastName());\r\n\t\treturn dto;\r\n\t}",
"public abstract M toModel(DTO dto);",
"public static WeaponDTO transformToDTO(Weapon weapon) {\n\n if (weapon == null) {\n throw new NullPointerException(\"Entity object for transformation cannot be null\");\n }\n\n WeaponDTO weaponDto = new WeaponDTO();\n\n weaponDto.setId(weapon.getId());\n weaponDto.setName(weapon.getName());\n weaponDto.setAmmunition(weapon.getAmmunition());\n weaponDto.setGunReach(weapon.getGunReach());\n return weaponDto;\n\n }",
"E toEntity(V dto);",
"public DataTableDto convertToDto(DataTable dataTable) {\n DataTableDto dataTableDto = modelMapper.map(dataTable, DataTableDto.class);\n return dataTableDto;\n }",
"public static IncomingDeliveryDTO mapToDTO(IncomingDelivery entity) {\r\n\t\tif(entity==null)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tIncomingDeliveryDTO dto = new IncomingDeliveryDTO();\r\n\r\n\t\tdto.setIncomingDeliveryId(entity.getIncomingDeliveryId());\r\n\t\tdto.setDeliveryNr(entity.getDeliveryNr());\r\n\t\tdto.setOrganisationId(entity.getOrganisation().getOrganisationId());\r\n\t\tdto.setLastEditorId(entity.getLastEditor().getPersonId());\r\n\t\tdto.setDeliveryNr(entity.getDeliveryNr());\r\n\t\tdto.setDate(df.format(entity.getDate()));\r\n\t\tdto.setComment(entity.getComment());\r\n\t\tdto.setUpdateTimestamp(df.format(entity.getUpdateTimestamp()));\r\n\t\tdto.setBooked(entity.getBooked());\r\n\t\tdto.setBookedAll(entity.getBookedAll());\r\n\t\tdto.setArchived(entity.getArchived());\r\n\r\n\t\tSet<IncomingArticleDTO> incomingArticleDTOs = new HashSet<IncomingArticleDTO>();\r\n\t\tfor(IncomingArticle incomingArticle : entity.getIncomingArticles())\r\n\t\t{\r\n\t\t\tincomingArticleDTOs.add(IncomingArticleMapper.mapToDTO(incomingArticle));\r\n\t\t}\r\n\r\n\t\tdto.setIncomingArticleDTOs(incomingArticleDTOs);\r\n\r\n\t\treturn dto;\r\n\t}",
"public static CustomerDetailsDto getCustomerDetailsDto() {\n\t\treturn new CustomerDetailsDto();\n\t}",
"Ticket(int id)//Instanciacion del constructor de la clase con sus respectivos parametros.\r\n {\r\n ticketID=id;//inicializacion de atributo de la clase con los parametros recibidos en el constructor.\r\n }",
"public static void assignTicket(Ticket ticket,String toT){\r\n\r\n\t\tDate dateCreated=new Date();\t\t\t\t\t\t\t\t\t\t\t\t\t\t//getting the current date\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy HH:mm:ss\");\r\n\t\t//int ticketID=1000;\r\n\r\n\t\twhile(true){\r\n\t\t\tticket.ticketID=Integer.toString(ticketID);\t\t\t\t\t\t\t\t\t\t//converting the ticket id to string and assigning it to ticket id.\r\n\t\t\tticketID++;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\r\n\t\tif(toT.equalsIgnoreCase(\"Phone\")){\t\t\t\t\t\t\t\t\t\t\t\t\t//if type of ticket is phone\r\n\t\t\tticket.CustomerRepID=arrayRepresentativeIDs[0];\t\t\t\t\t\t\t\t\t//assigning the ticket to representative 0\r\n\t\t}\r\n\t\telse if(toT.equalsIgnoreCase(\"InPerson\")){\t\t\t\t\t\t\t\t\t\t\t//if type of ticket is inperson\r\n\t\t\tticket.CustomerRepID=arrayRepresentativeIDs[1];\t\t\t\t\t\t\t\t\t//assigning the ticket to representative 1\r\n\t\t}\r\n\t\telse if(toT.equalsIgnoreCase(\"Email\")){\t\t\t\t\t\t\t\t\t\t\t\t//if type of ticket is email\r\n\t\t\tticket.CustomerRepID=arrayRepresentativeIDs[2];\t\t\t\t\t\t\t\t\t//assigning the ticket to representative 2\r\n\t\t}\r\n\r\n\t\tticket.CustomerserviceRepID=Integer.toString(new Random().nextInt(arrayServiceIDs.length));\t\t//randomly assigning the service representative id\r\n\t\tticket.DateCreated=dateFormat.format(dateCreated);\r\n\t\t\r\n\r\n\r\n\t}",
"@Override\n\tpublic ExamDTO toDto(Exam exam) {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic TableDTO getDTO(Table entity) {\n\t\treturn null;\r\n\t}",
"public EmployeeResponse convertToDto(Employee employee) {\n return new EmployeeResponse(employee.getId(), employee.getName(), employee.getSalary().getValue());\n }",
"public PartyFeedbackDTO() {\n\t}",
"public CambioComplementariosDTO(java.lang.String curpEmpleado,\n java.lang.String rfcEmpleado,\n java.lang.String primerApellido,\n java.lang.String segundoApellido,\n java.lang.String nombreEmpleado,\n java.lang.String clabeEmpleado,\n java.lang.String idBancoSar,\n java.util.Date ingresoGobFed, \n java.util.Date ingresoDependencia, \n java.util.Date terminoCargoSind, \n java.lang.String imssIssste, \n java.lang.String EMailOficial, \n java.lang.String EMailPersonal,\n java.lang.Integer idRusp, \n java.lang.String sistemaReparto, \n java.lang.String idTipoPago, \n java.lang.String idEdoCivil, \n java.lang.String idNacionalidad, \n java.lang.String idProfnCarrera, \n java.lang.Integer idNivelEscolar, \n java.lang.Integer idInstEducativa, \n java.lang.Integer idEspProtCivil, \n java.lang.Integer idInstProtcivil, \n java.util.Date fecNotDecPatr, \n java.util.Date fecIniDeclPatr, \n java.util.Date fecIngSpc, \n java.lang.String casoMuestra,\n java.lang.String discapacidad,\n java.lang.String estudiaSiNo,\n java.lang.String padreMadre,\n java.lang.String compatEmpleo,\n java.lang.String usuario,\n java.lang.Integer idInmuebleP,\n java.lang.String plazaTelOfc1,\n java.lang.String plazaExt1) { \n this.curpEmpleado = curpEmpleado;\n this.rfcEmpleado = rfcEmpleado;\n this.primerApellido = primerApellido;\n this.segundoApellido = segundoApellido;\n this.nombreEmpleado = nombreEmpleado;\n this.clabeEmpleado = clabeEmpleado;\n this.idBancoSar = idBancoSar;\n this.ingresoGobFed = ingresoGobFed;\n this.ingresoDependencia = ingresoDependencia;\n this.terminoCargoSind = terminoCargoSind;\n this.imssIssste = imssIssste;\n this.EMailOficial = EMailOficial;\n this.EMailPersonal = EMailPersonal;\n this.idRusp = idRusp;\n this.sistemaReparto = sistemaReparto;\n this.idTipoPago = idTipoPago;\n this.idEdoCivil = idEdoCivil;\n this.idNacionalidad = idNacionalidad;\n this.idProfnCarrera = idProfnCarrera;\n this.idNivelEscolar = idNivelEscolar;\n this.idInstEducativa = idInstEducativa;\n this.idEspProtCivil = idEspProtCivil;\n this.idInstProtcivil = idInstProtcivil;\n this.fecNotDecPatr = fecNotDecPatr;\n this.fecIniDeclPatr = fecIniDeclPatr;\n this.fecIngSpc = fecIngSpc;\n this.casoMuestra = casoMuestra;\n this.discapacidad = discapacidad;\n this.estudiaSiNo = estudiaSiNo;\n this.padreMadre = padreMadre;\n this.compatEmpleo = compatEmpleo;\n this.usuario = usuario;\n this.idInmuebleP = idInmuebleP;\n this.plazaTelOfc1 = plazaTelOfc1;\n this.plazaExt1 = plazaExt1;\n }",
"public CurrencyOffer toModelFromDTO(CurrencyOfferDTO currencyDTO);",
"private UserDTO getUserDTO(String username) {\n\t\tUserDTO userDTO = userRepository.getUserDTO(username);\n\t\tuserDTO.setUserTournaments(userRepository.getUserTournamentsByUserName(username));\n\t\tuserDTO.setUserGames(gameUserRepository.getAllGameUserByUsername(username));\n\t\treturn userDTO;\n\t}",
"private static HotelResponseDTO makeHotelResponseDTO(Hotel hotel) {\n HotelResponseDTO hotelResponse = new HotelResponseDTO();\n hotelResponse.setHotelId(hotel.getHotelId());\n hotelResponse.setName(hotel.getName());\n hotelResponse.setDescription(hotel.getDescription());\n hotelResponse.setLocation(hotel.getLocation());\n hotelResponse.setDefaultCheckInTime(hotel.getDefaultCheckInTime());\n hotelResponse.setDefaultCheckOutTime(hotel.getDefaultCheckOutTime());\n if (hotel.getFacilities() != null) {\n hotelResponse.setFacilities(Arrays.asList(hotel.getFacilities().split(\",\")));\n }\n if (hotel.getRooms() != null && hotel.getRooms().size() > 0) {\n List<RoomResponseDTO> roomResponses = hotel.getRooms().stream()\n .filter(room -> !room.isDeleted())\n .map(room -> {\n RoomResponseDTO roomResponse = new RoomResponseDTO();\n roomResponse.setRoomId(room.getRoomId());\n roomResponse.setRoomType(room.getRoomType().getCode());\n roomResponse.setBedType(room.getBedType().getCode());\n roomResponse.setNumberOfAdults(room.getNumberOfAdults());\n roomResponse.setNumberOfChildren(room.getNumberOfChildren());\n roomResponse.setNumberOfRooms(room.getNumberOfRooms());\n roomResponse.setBasicFare(room.getBasicFare());\n roomResponse.setTaxPercentage(room.getTaxPercentage());\n if (room.getFacilities() != null) {\n roomResponse.setFacilities(Arrays.asList(room.getFacilities().split(\",\")));\n }\n return roomResponse;\n }).collect(Collectors.toList());\n hotelResponse.setRooms(roomResponses);\n }\n List<Review> reviews = hotel.getReviews();\n if (reviews != null && reviews.size() > 0) {\n List<ReviewResponseDTO> reviewResponses = reviews.stream()\n .filter(review -> !review.isDeleted())\n .map(review -> {\n ReviewResponseDTO reviewResponse = new ReviewResponseDTO();\n reviewResponse.setReviewId(review.getReviewId());\n reviewResponse.setComment(review.getComment());\n reviewResponse.setRatingValue(review.getRatingValue());\n if (review.getReviewedBy() != null) {\n reviewResponse.setReviewedBy(review.getReviewedBy().getFullName());\n }\n reviewResponse.setReviewedDate(review.getReviewedDate());\n return reviewResponse;\n }).collect(Collectors.toList());\n hotelResponse.setReviews(reviewResponses);\n long ratingCount = reviews.stream().filter(review -> !review.isDeleted()).count();\n double averageRating = reviews.stream()\n .filter(review -> !review.isDeleted())\n .collect(Collectors.summarizingDouble(Review::getRatingValue))\n .getAverage();\n hotelResponse.setRatingCount(ratingCount);\n hotelResponse.setAverageRating(averageRating);\n }\n return hotelResponse;\n }",
"int createTicket(Ticket ticket, int userId);",
"public Object convListToDTO(List list) {\r\n\r\n\t\tObject retDTO = null;\r\n\t\ttry {\r\n\r\n\t\t\tListIterator iterator = list.listIterator();\r\n\t\t\twhile (iterator.hasNext()) {\r\n\r\n\t\t\t\tretDTO = iterator.next();\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t}\r\n\r\n\t\treturn retDTO;\r\n\r\n\t}",
"public static UserDTO getUserDTO(UserEntity userEntity) {\n\t\tUserDTO dto = null;\n\t\tif (userEntity != null) {\n\t\t\tdto = new UserDTO();\n\n\t\t\tdto.setUserId(userEntity.getUserId());\n\t\t\tdto.setInsertDate(userEntity.getInsertDate());\n\t\t\tdto.setUpdateDate(userEntity.getUpdateDate());\n\t\t\tdto.setName(userEntity.getUserName());\n\t\t\tdto.setEmail(userEntity.getUserEmail());\n\t\t\tdto.setPassword(userEntity.getUserPassword());\n\t\t\tdto.setIsActive(userEntity.getIsActive());\n\t\t\tdto.setLastLogin(userEntity.getLastLogin());\n\t\t}\n\t\treturn dto;\n\t}",
"public phonecallTicket makeTicket(int id, String who, String phone,String tag, String date,String problem, String notes, String status){\n \n phonecallTicket ticket = new phonecallTicket(id, who, phone, tag, date, problem, notes, status);\n currentticket = ticket;\n return ticket;\n }",
"public ProductoDTO(){\r\n\t\t\r\n\t}",
"public static PerspectiveDTO toDTO(Perspective perspective, boolean lazyFetching) {\n PerspectiveDTO perspectiveDTO = new PerspectiveDTO();\n\n perspectiveDTO.setId(perspective.getId());\n perspectiveDTO.setCode(perspective.getCode());\n perspectiveDTO.setDescription(perspective.getDescription());\n if (perspective.getOuTreeRoot() != null) {\n perspectiveDTO.setOuTreeRoot(OrganizationalUnitMapper.toDTO(perspective.getOuTreeRoot(), true));\n }\n if (!lazyFetching) {\n perspectiveDTO.setOrganization(OrganizationMapper.toDTO(perspective.getOrganization(), true));\n }\n return perspectiveDTO;\n }"
] | [
"0.81289333",
"0.77594656",
"0.732776",
"0.7090893",
"0.67809916",
"0.6702664",
"0.6376191",
"0.60906315",
"0.608752",
"0.60098296",
"0.59934103",
"0.59647685",
"0.5882081",
"0.5878054",
"0.5819349",
"0.5794317",
"0.57574016",
"0.5741125",
"0.5733747",
"0.5717892",
"0.5648127",
"0.5633143",
"0.56256723",
"0.5618035",
"0.55926585",
"0.55563325",
"0.5502651",
"0.5492881",
"0.5486229",
"0.54820526",
"0.5479522",
"0.54793054",
"0.5462143",
"0.54575616",
"0.5456577",
"0.5437616",
"0.5427105",
"0.53927237",
"0.53907174",
"0.53826946",
"0.5361154",
"0.53560317",
"0.5350513",
"0.53492016",
"0.53426063",
"0.5337342",
"0.531071",
"0.53024334",
"0.53007114",
"0.5269609",
"0.52680093",
"0.52671355",
"0.5264793",
"0.52467483",
"0.52378184",
"0.5235518",
"0.5235285",
"0.5233391",
"0.52305716",
"0.5219731",
"0.5219347",
"0.5217334",
"0.52096075",
"0.52044547",
"0.51972705",
"0.519221",
"0.5170606",
"0.5169969",
"0.5168439",
"0.5136136",
"0.5132662",
"0.5132203",
"0.5129112",
"0.5123768",
"0.5114006",
"0.51130784",
"0.51097625",
"0.5102303",
"0.50885",
"0.5084006",
"0.5068122",
"0.50615877",
"0.50589746",
"0.50587016",
"0.505722",
"0.5052845",
"0.50480634",
"0.50478804",
"0.5043376",
"0.5043072",
"0.5039804",
"0.5029249",
"0.50201803",
"0.5009906",
"0.50093246",
"0.5007968",
"0.5005648",
"0.5000178",
"0.49939358",
"0.4991049"
] | 0.6640829 | 6 |
To dto list list. | List<TicketDto> toDtoList(List<TicketEntity> ticketEntityList); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<PersonaDTO> PersonaListToPersonaDTOList(List<Persona> personaList);",
"@Override\n\tpublic List<PedidoDTO> toDto(List<Pedido> entityList) {\n\t\treturn null;\n\t}",
"private List<ComentarioDTO> listEntity2DTO(List<ComentarioEntity> entityList) {\n List<ComentarioDTO> list = new ArrayList();\n for (ComentarioEntity entity : entityList) {\n list.add(new ComentarioDTO(entity));\n }\n return list;\n }",
"public abstract List<D> convertToDtos(List<T> entities);",
"public List<ModuleDTO> convertListToDTO(List<Module> m);",
"List<D> mapToDTO(List<E> entity);",
"private List<ComentarioEntity> listDTO2Entity(List<ComentarioDTO> dtos) {\n List<ComentarioEntity> list = new ArrayList<>();\n for (ComentarioDTO dto : dtos) {\n list.add(dto.toEntity());\n }\n return list;\n }",
"private List<ArancelDTO> arancelesToDto(List<Arancel> aranceles) {\n\t\t// Lista a devolver\n\t\tList<ArancelDTO> arancelesDto = new ArrayList<ArancelDTO>();\n\t\tArancelDTO arancelDto;\n\t\t\n\t\t// Recorro cada uno de los aranceles\n\t\tfor (Arancel arancel : aranceles) {\n\t\t\t// Cargo los datos en el dto\n\t\t\tarancelDto = new ArancelDTO();\n\t\t\tarancelDto.setId(arancel.getId());\n\t\t\tarancelDto.setCodigo(arancel.getCodigo());\n\t\t\tarancelDto.setPrecioNoSocio(Formateador.formatNumero(arancel.getPrecioNoSocio()));\n\t\t\tarancelDto.setPrecioSocio(Formateador.formatNumero(arancel.getPrecioSocio()));\n\n\t\t\t// Cargo el objeto en la lista \n\t\t\tarancelesDto.add(arancelDto);\n\t\t}\n\n\t\treturn arancelesDto;\n\t}",
"public Object convListToDTO(List list) {\r\n\r\n\t\tObject retDTO = null;\r\n\t\ttry {\r\n\r\n\t\t\tListIterator iterator = list.listIterator();\r\n\t\t\twhile (iterator.hasNext()) {\r\n\r\n\t\t\t\tretDTO = iterator.next();\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t}\r\n\r\n\t\treturn retDTO;\r\n\r\n\t}",
"List<StudentDTO> toStudentDTOs(List<Student> students);",
"private List<VueloEntity> vuelosListDTO2Entity(List<VueloDTO> dtos) {\n List<VueloEntity> list = new ArrayList<>();\n for (VueloDTO dto : dtos) {\n list.add(dto.toEntity());\n }\n return list;\n }",
"private List<EquipoDetailDTO> listEntity2DTO(List<EquipoEntity> listaEntidades)\n {\n List<EquipoDetailDTO> lista = new ArrayList<>();\n for (EquipoEntity e: listaEntidades) \n {\n lista.add(new EquipoDetailDTO(e));\n }\n return lista;\n }",
"private List<MarcapasosDTO> listEntity2DTO(List<MarcapasosRealEntity> entityList) {\n List<MarcapasosDTO> list = new ArrayList<>();\n for (MarcapasosRealEntity entity : entityList) {\n list.add(new MarcapasosDTO(entity));\n }\n return list;\n }",
"public List<MemberDto> toDtoList(List<Member> entityList) {\r\n List<MemberDto> dtoList = new ArrayList<MemberDto>();\r\n for (Member entity : entityList) {\r\n dtoList.add(copyEntityToDto(entity, new MemberDto()));\r\n }\r\n return dtoList;\r\n }",
"private List<RestauranteDetailDTO> restauranteListEntity2DTO(List<RestauranteEntity> entityList){\n List<RestauranteDetailDTO> list = new ArrayList<>();\n for (RestauranteEntity entity : entityList) {\n list.add(new RestauranteDetailDTO(entity));\n }\n return list;\n }",
"public static List<CoordinadorDTO> tolistCoordinador(List<CoordinadorEntity> coordinadorEntitys){\n \n List<CoordinadorDTO> listaObjectoCoordinador = new ArrayList<>();\n for (int i = 0; i <coordinadorEntitys.size(); i++) {\n listaObjectoCoordinador.add(new CoordinadorDTO(coordinadorEntitys.get(i)));\n }\n \n return listaObjectoCoordinador;\n }",
"@Override\n\tpublic List<ExamDTO> toDto(List<Exam> entityList) {\n\t\treturn null;\n\t}",
"public abstract List<T> convertToEntities(List<D> dtos);",
"private List<PaseoEcologicoDetailDTO> listEntity2DTO(List<PaseoEcologicoEntity> listaEntrada)\r\n {\r\n List<PaseoEcologicoDetailDTO> l = new ArrayList<>( );\r\n for(PaseoEcologicoEntity entity : listaEntrada)\r\n {\r\n l.add(new PaseoEcologicoDetailDTO(entity));\r\n }\r\n return l; \r\n }",
"public List<PersonDTO> getDTOs(){\n\t\tList<PersonDTO> personDTOs = new ArrayList<PersonDTO>();\n\t\tList<Person> persons = personRepository.getAll();\n\t\tfor (Person person: persons) {\n\t\t\t// Create new data transfer object\n\t\t\tPersonDTO dto = new PersonDTO();\n\n\t\t\tdto.setId(person.getId());\n\t\t\tdto.setTitle(person.getTitle());\n\t\t\tdto.setFirstName(person.getFirstName());\n\t\t\tdto.setLastName(person.getLastName());\n\t\t\tdto.setEmail(person.getEmail());\n\t\t\tdto.setPhone(person.getPhone());\n\t\t\tdto.setAddress1(person.getAddress1());\n\t\t\tdto.setAddress2(person.getAddress2());\n\t\t\tdto.setZipCode(person.getZipCode());\n\t\t\tdto.setCity(person.getCity());\n\t\t\tdto.setCountry(person.getCountry());\n\t\t\t// Add to model list\n\t\t\tpersonDTOs.add(dto);\n\t\t}\n\t\treturn personDTOs;\n\t}",
"private List<TrayectoDetail> listEntity2DetailDTO(List<TrayectoEntity> entityList) {\n List<TrayectoDetail> list = new ArrayList<>();\n for (TrayectoEntity entity : entityList) {\n list.add(new TrayectoDetail(entity));\n }\n return list;\n }",
"Object getTolist();",
"List<TicketDTO> ticketToTicketDTO(List<Ticket> all);",
"private List<GroupDetailDTO> listEntity2DTO(List<GroupEntity> entityList) {\n List<GroupDetailDTO> list = new ArrayList<>();\n for (GroupEntity entity : entityList) {\n list.add(new GroupDetailDTO(entity));\n }\n return list;\n }",
"private List<CategoriaDetailDTO> listEntity2DTO(List<CategoriaEntity> entityList) {\n List<CategoriaDetailDTO> list = new ArrayList<>();\n for (CategoriaEntity entity : entityList) {\n list.add(new CategoriaDetailDTO(entity));\n }\n return list;\n }",
"public List<DateType> toDateList() {\n List<DateType> result = new ArrayList<>();\n if (fromDate != null) {\n result.add(fromDate);\n }\n if (toDate != null) {\n result.add(toDate);\n }\n if (fromToDate != null) {\n result.add(fromToDate);\n }\n return result;\n }",
"public static List<CarroDto> converter(List<Carro> carros) {\n return carros.stream().map(CarroDto::new).collect(Collectors.toList());\n }",
"@Override\n @Transactional\n public List<D> getDtoList(D dto, E entity, String... args) throws MedragServiceException {\n List<E> entityList;\n try {\n entityList = entityDao.getEntityList(entity, args);\n } catch (MedragRepositoryException e) {\n throw new MedragServiceException(e);\n }\n List<D> dtoList = new ArrayList<>();\n entityList.forEach(e -> dtoList.add((D) new ModelMapper().map(e, dto.getClass())));\n return dtoList;\n }",
"@Override\n\tpublic List<Pedido> toEntity(List<PedidoDTO> dtoList) {\n\t\treturn null;\n\t}",
"public List<BUserDto> convertListEntityToListDto(List<BUser> entities){\n\t\tList<BUserDto> dtos = new ArrayList<>();\n\t\tif(entities!=null){\n\t\t\tfor(BUser entity : entities){\n\t\t\t\tBUserDto dto = convertEntityToDto(entity);\n\t\t\t\tdtos.add(dto);\n\t\t\t}\n\t\t}\n\t\treturn dtos;\n\t}",
"List<TicketEntity> toEntityList(List<TicketDto> ticketDtoList);",
"public List<QuestionDTO> list() {\n QuestionExample questionExample = new QuestionExample();\n questionExample.createCriteria();\n List<Question> list = questionMapper.selectByExample(questionExample);\n List<QuestionDTO> questionDTOList = new ArrayList<>();\n for(Question question:list){\n //User user = userMapper.findByID(question.getCreator());\n UserExample userExample = new UserExample();\n userExample.createCriteria().andAccountIdEqualTo(question.getCreator().toString());\n List<User> users = userMapper.selectByExample(userExample);\n QuestionDTO questionDTO = new QuestionDTO();\n BeanUtils.copyProperties(question,questionDTO);\n questionDTO.setUser(users.get(0));\n questionDTOList.add(questionDTO);\n }\n return questionDTOList;\n }",
"public List<CurrencyOfferDTO> mapListFromModelToDTO(List<CurrencyOffer> listCurrency);",
"public static List<SystemDTO> entitoToDTO(final List<System> entitys){\n\t\tfinal List<SystemDTO> result = new ArrayList<>();\n\t\tfor (System entity : entitys) {\n\t\t\tresult.add(entityToDTO(entity));\n\t\t}\n\t\treturn result;\n\t}",
"Listof<X> toList();",
"private List<PhotoAlbumDetailDTO> listEntity2DTO(List<PhotoAlbumEntity> entityList){\n List<PhotoAlbumDetailDTO> list = new ArrayList<>();\n for (PhotoAlbumEntity entity : entityList) {\n list.add(new PhotoAlbumDetailDTO(entity));\n }\n return list;\n }",
"List<VoziloDto> sveVozila();",
"@IterableMapping(qualifiedByName = \"toLevelDTO\")\n public abstract List<LevelDTO> toLevelDTOList(final Iterable<Level> levelList) throws UnexpectedException;",
"public List<PersonaDTO> consultarPersonas() ;",
"List<OrderDTO> getAllOrdersDTO();",
"List<Ticket> ticketDTOToTicket(List<TicketDTO> all);",
"private String dtListToJson(Trip theTrip) {\n Gson gsonObj = new Gson(); // Create Gson object\n String jsonString = gsonObj.toJson(theTrip.getDt_list(), dtListType);\n\n return jsonString;\n }",
"public List<TodoDto> getAllTodos()\n {\n List<Todo> models = dao.getAllTodos();\n List<TodoDto> dtos = new ArrayList<TodoDto>();\n for(Todo model : models){\n TodoDto dto = new TodoDto();\n dto.setTotal_quantity(model.getTotal_quantity());\n dto.setTitle(model.getTitle());\n dto.setDescription(model.getDescription());\n dto.setId(model.getId());\n dtos.add(dto);\n }\n return dtos;\n }",
"public List<ClienteDto> recuperaTodos(){\n\t\tList<ClienteDto> clientes = new ArrayList<ClienteDto>();\n\t\tclienteRepository.findAll().forEach(cliente -> clientes.add(ClienteDto.creaDto(cliente)));\n\t\treturn clientes;\n\t}",
"public List<Member> toEntityList(List<MemberDto> dtoList) {\r\n List<Member> entityList = new ArrayList<Member>();\r\n for (MemberDto dto : dtoList) {\r\n entityList.add(copyDtoToEntity(dto, new Member()));\r\n }\r\n return entityList;\r\n }",
"@Override\n public List<CategoryDTO> listAll() {\n List<CategoryDTO> result = new ArrayList<>();\n List<Category> listCategory = categoryRepository.findAll();\n for (Category category: listCategory){\n result.add(categoryConverter.toDTO(category));\n }\n return result;\n }",
"public List<UserOutputDTO> convert(Collection<User> users){\n\t\treturn users\n\t\t\t\t.stream()\n\t\t\t\t.map(this :: convert)\n\t\t\t\t.collect(Collectors.toList());\n\t}",
"List<OrderDto> getOrders();",
"@Override\n public ArrayList<MultipleItemEntity> convert() {\n\n ArrayList<MultipleItemEntity> dataList = new ArrayList<>();\n\n final int status = JSON.parseObject(getJsonData()).getInteger(\"status\");\n switch (status){\n case 0:\n final int pageNum = JSON.parseObject(getJsonData()).getJSONObject(\"data\").getInteger(\"pageNum\");\n final JSONObject object = JSON.parseObject(getJsonData()).getJSONObject(\"data\");\n\n final JSONArray dataArray = object.getJSONArray(\"list\");\n\n final int size = dataArray.size();\n if (pageNum == 1) {\n mCommentId.clear();\n }\n for (int i = 0;i<size;i++){\n final JSONObject data = dataArray.getJSONObject(i);\n final int id = data.getInteger(\"id\");\n mCommentId.add(id);\n final String avatar = data.getString(\"avatar\");\n final int userId = data.getInteger(\"userId\");\n final String userName = data.getString(\"username\");\n final String content = data.getString(\"content\");\n// final Date createTime= data.getDate(\"createTime\");\n final String createTime= data.getString(\"createTime\");\n\n\n final MultipleItemEntity entity = MultipleItemEntity.builder()\n .setField(MultipleFields.ITEM_TYPE, ItemType.COMMENT_PROMO)\n .setField(MultipleFields.ID,id)\n .setField(MultipleFields.USER_ID,userId)\n .setField(MultipleFields.USER_NAME,userName)\n .setField(MultipleFields.AVATAR,avatar)\n .setField(MultipleFields.CREATE_TIME,createTime)\n .setField(MultipleFields.CONTENT,content)\n .build();\n\n dataList.add(entity);\n }\n break;\n default:\n final String message = JSON.parseObject(getJsonData()).getString(\"msg\");\n Toast.makeText(Higo.getApplicationContext(),message,Toast.LENGTH_LONG).show();\n HigoLogger.d(\"DATALIST\",dataList);\n break;\n }\n\n return dataList;\n }",
"List<Object> toList() {\n List<Object> results = new ArrayList<>(this.myArrayList.size());\n for (Object element : this.myArrayList) {\n if (element == null || PropertyObject.NULL.equals(element)) {\n results.add(null);\n } else if (element instanceof PropertyArray) {\n results.add(((PropertyArray) element).toList());\n } else if (element instanceof PropertyObject) {\n results.add(((PropertyObject) element).toMap());\n } else {\n results.add(element);\n }\n }\n return results;\n }",
"public List<FilmTypeDto> convertListEntityToListDto(List<FilmType> entities){\n\t\tList<FilmTypeDto> dtos = new ArrayList<>();\n\t\tif(entities!=null){\n\t\t\tfor(FilmType entity: entities){\n\t\t\t\tFilmTypeDto dto = convertEntityToDto(entity);\n\t\t\t\tdtos.add(dto);\n\t\t\t}\n\t\t}\n\t\treturn dtos;\n\t}",
"public static List<ViajeEntidad> getListaViajesEntidad(){\n List<ViajeEntidad> viajes = new ArrayList<>();\n Date date = new Date();\n ViajeEntidadPK viajePK = new ViajeEntidadPK();\n TaxiEntidad taxiByPkPlacaTaxi = new TaxiEntidad();\n ClienteEntidad clienteByPkCorreoCliente = new ClienteEntidad();\n clienteByPkCorreoCliente.setPkCorreoUsuario(\"[email protected]\");\n TaxistaEntidad taxistaByCorreoTaxi = new TaxistaEntidad();\n taxistaByCorreoTaxi.setPkCorreoUsuario(\"[email protected]\");\n OperadorEntidad agendaOperador = new OperadorEntidad();\n agendaOperador.setPkCorreoUsuario(\"[email protected]\");\n\n viajePK.setPkPlacaTaxi(\"CCC11\");\n viajePK.setPkFechaInicio(\"2019-01-01 01:01:01\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n viajePK.setPkPlacaTaxi(\"DDD11\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n viajePK.setPkPlacaTaxi(\"EEE11\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n\n return viajes;\n }",
"public List<CurrencyOffer> mapListToModelFromDTO(List<CurrencyOfferDTO> listCurrencyDTO);",
"List<Account> coverListEmpDTOToListAccount(List<AccountDTO> accountDTOList);",
"List<VideoDTO> getVideosList(List<Video> videos) throws TransferObjectException;",
"private List<ItemListaIntegracaoDTO> montarListaInstituicaoDTO(List<InstituicaoCooperativaSCIDTO> lista) {\n\t\tList<ItemListaIntegracaoDTO> listaVO = new ArrayList<ItemListaIntegracaoDTO>();\n\n\t\tfor(InstituicaoCooperativaSCIDTO instituicao:lista){\n\t\t\tItemListaIntegracaoDTO item = new ItemListaIntegracaoDTO(instituicao.getNumCooperativa().toString(), instituicao.getNumCooperativa() + \" - \" + instituicao.getNome());\n\t\t\tlistaVO.add(item);\n\t\t}\n\t\t\n\t\tCollections.sort(listaVO, new Comparator<ItemListaIntegracaoDTO>() {\n\t\t\tpublic int compare(ItemListaIntegracaoDTO o1, ItemListaIntegracaoDTO o2){\n\t\t\t\t\treturn o1.getCodListaItem().compareTo(o2.getCodListaItem());\n\t\t\t\t} \n\t\t});\n\t\t\n\t\treturn listaVO;\t\t\n\t}",
"public ArrayList<LoteriaDto> listarLoterias() {\n\n ArrayList<LoteriaDto> lista = new ArrayList();\n Connection con = null;\n try {\n con = Recurso.Conexion.getPool().getDataSource().getConnection();\n String sql = \"SELECT codigo,nombre,dia,hora,minuto,ruta FROM loteria\";\n PreparedStatement str;\n str = con.prepareStatement(sql);\n ResultSet rs = str.executeQuery();\n\n while (rs.next()) {\n LoteriaDto dto = new LoteriaDto();\n dto.setCodigo(rs.getInt(1));\n dto.setNombre(rs.getString(2));\n dto.setDia(rs.getInt(3));\n dto.setHora(rs.getInt(4));\n dto.setMinuto(rs.getInt(5));\n dto.setRuta(rs.getString(6));\n lista.add(dto);\n\n }\n str.close();\n rs.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n } finally {\n if (con != null) {\n try {\n con.close();\n } catch (SQLException ex) {\n Logger.getLogger(GestorLoteria.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return lista;\n }\n }",
"public List<UserDTO> getUsers();",
"public static List<RequestDTO> toDtoList(List<Reqs> reqses) {\n List<RequestDTO> dtos = new ArrayList<RequestDTO>();\n if (!CommonUtil.isNullOrEmpty(reqses)) {\n for (Reqs reqs : reqses) {\n dtos.add(toDto(reqs));\n }\n }\n return dtos;\n }",
"List<SurveyQuestionDTO> getSortedDtos(List<SurveyQuestion> questions);",
"@GetMapping\n\tpublic List<SalasDto> lista() {\n\n\t\tList<Salas> sala = salaRepository.findAll();\n\t\treturn SalasDto.converter(sala);\n\t}",
"public interface DtoConverter<D extends BaseDto, E extends BaseEntity> {\n\n /**\n * Verilen {@link BaseEntity} nesne listesini {@link Set<BaseDto>}'e cevirmektedir.\n *\n * @param entityList {@link BaseEntity} listesi\n * @return Set\n */\n Set<D> convertToDtoSet(Collection<E> entityList);\n\n /**\n * Verilen {@link BaseEntity} nesne listesini {@link List<BaseDto>}'e cevirmektedir.\n *\n * @param entityList {@link BaseEntity} listesi\n * @return List\n */\n List<D> convertToDtoList(Collection<E> entityList);\n\n /**\n * Verilen {@link BaseEntity} nesnesini {@link BaseDto} nesnesine cevirme islemini\n * yapmaktadir.\n *\n * @param entity {@link BaseEntity}\n * @return D\n */\n D convertToDto(E entity);\n}",
"List<E> mapToEntity(List<D> dto);",
"public static <D> List<D> convert(List<?> source, Class<D> type) {\n return modelMapper.map(source, new ListOfType<D>(type));\n }",
"public List<UsuarioDTO> consultarUsuarios();",
"public List<UsuarioDTO> consultarUsuarios();",
"public List<GrupoUsuarioUsuarioDTO> getGrupoUsuarioGrupoUsuarioUsuarioList(){\n return this.grupoUsuarioGrupoUsuarioUsuarioList;\n }",
"List<ProductDto> getProducts();",
"private List<ItemListaIntegracaoDTO> montarListaInstituicaoIdInstituicaoDTO(List<InstituicaoCooperativaSCIDTO> lista) {\n\t\tList<ItemListaIntegracaoDTO> listaVO = new ArrayList<ItemListaIntegracaoDTO>();\n\n\t\tfor(InstituicaoCooperativaSCIDTO instituicao:lista){\n\t\t\tString cooperativa = instituicao.getNumCooperativa().toString();\n\t\t\tif(instituicao.getNumCooperativa() == 300) {\n\t\t\t\tcooperativa = \"0300\";\n\t\t\t}\n\t\t\tItemListaIntegracaoDTO item = new ItemListaIntegracaoDTO(instituicao.getIdInstituicao().toString(), cooperativa + \" - \" + instituicao.getNome());\n\t\t\tlistaVO.add(item);\n\t\t}\n\t\t\n\t\tCollections.sort(listaVO, new Comparator<ItemListaIntegracaoDTO>() {\n\t\t\tpublic int compare(ItemListaIntegracaoDTO o1, ItemListaIntegracaoDTO o2){\n\t\t\t\t\treturn o1.getCodListaItem().compareTo(o2.getCodListaItem());\n\t\t\t\t} \n\t\t});\n\t\t\n\t\treturn listaVO;\t\t\n\t}",
"@Override\n\tpublic void getAll() {\n\t\tfor (int i = 0; i < dto.length; i++) {\n\t\t\tSystem.out.println(dto[i]);\n\t\t}\n\n\t}",
"public static List<UserDto> selectAllUserDto() {\n\t\t// create a new UserDaoImpl\n\t\tud = new UserDaoImpl();\n\t\tlogger.info(\"UserDaoImpl created\");\n\n\t\t// get all users from the database\n\t\tList<User> users = ud.selectAllUser();\n\t\tlogger.info(\"Users retrieved from database\");\n\n\t\t// create an empty list of UseDtos\n\t\tList<UserDto> userDtos = new ArrayList<>();\n\t\tlogger.info(\"Empty UserDto list created\");\n\n\t\tlogger.info(\"Iterating through list of users\");\n\t\tfor (User u : users) {\n\t\t\tlogger.debug(\"User: \" + u);\n\n\t\t\t// create a new UserDto to add to the list\n\t\t\tUserDto userDto = new UserDto(u.getId(), u.getUsername(), u.getfName(), u.getlName(), u.getPriv(),\n\t\t\t\t\tu.getActivation());\n\t\t\tlogger.info(\"UserDto created\");\n\t\t\tlogger.debug(\"UserDto: \" + userDto);\n\n\t\t\t// adding UserDto to list\n\t\t\tlogger.info(\"Adding UserDto to list\");\n\t\t\tuserDtos.add(userDto);\n\t\t}\n\n\t\t// return the list of UserDtos\n\t\tlogger.info(\"Returning UserDto list\");\n\t\treturn userDtos;\n\t}",
"List<ApplicationDto> asApplications(List<Application> applications);",
"public List toList() throws TemplateModelException {\n if (unwrappedList == null) {\n Class listClass = list.getClass();\n List result = null;\n try {\n result = (List) listClass.newInstance();\n } catch (Exception e) {\n throw new TemplateModelException(\"Error instantiating an object of type \" + listClass.getName() + \"\\n\" + e.getMessage());\n }\n BeansWrapper bw = BeansWrapper.getDefaultInstance();\n for (int i=0; i<list.size(); i++) {\n Object elem = list.get(i);\n if (elem instanceof TemplateModel) {\n elem = bw.unwrap((TemplateModel) elem);\n }\n result.add(elem);\n }\n unwrappedList = result;\n }\n return unwrappedList;\n }",
"public static List<BookingInfoDto> bookingInfoToBookingInfoDto(List<BookingInfo> bookingInfolist) {\n\t\tList<BookingInfoDto> listBookingInfoDto = new ArrayList<>();\n\t\t\n\t\tif (bookingInfolist != null) {\n\t\t\tfor (BookingInfo bookingInfo : bookingInfolist) {\n\t\t\t\tBookingInfoDto bookingInfoDto = new BookingInfoDto();\n\t\t\t\tbookingInfoDto.setId(bookingInfo.getId());\n\t\t\t\tbookingInfoDto.setName(bookingInfo.getName());\n\t\t\t\tbookingInfoDto.setAddress(bookingInfo.getAddress());\n\t\t\t\tbookingInfoDto.setCost(bookingInfo.getCost());\n\t\t\t\tbookingInfoDto.setMobileNo(bookingInfo.getMobileNo());\n\t\t\t\tlistBookingInfoDto.add(bookingInfoDto);\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tbookingInfolist = null;\n\t\t\t} catch (NullPointerException ne) {\n\t\t\t\tSystem.out.println(ne);\n\t\t\t}\n\t\t}\n\t\treturn listBookingInfoDto;\n\t}",
"List<SurveyQuestionDTO> getSurveyQuestionDtos(List<SurveyQuestion> surveyQuestions);",
"@Override\n public List<DuLieuBaoCaoDTO> findAll() {\n log.debug(\"Request to get all DuLieuBaoCaos\");\n return duLieuBaoCaoRepository.findAll().stream()\n .map(duLieuBaoCaoMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }",
"List<D> getAllNonDeletedDto();",
"private List<AtividadeOcorrenciaDTO> getAtividadesOcorrencias(Serializable idOcorrencia) {\n\n\t\tList<AtividadeOcorrencia> atvsOcs = ocorrenciaService.getAtividadesOcorrencias(idOcorrencia);\n\n\t\tList<AtividadeOcorrenciaDTO> lst = new ArrayList<AtividadeOcorrenciaDTO>();\n\t\tfor (AtividadeOcorrencia atvOc : atvsOcs) {\n\t\t\tAtividadeOcorrenciaDTO atividadeOcorrenciaREST = new AtividadeOcorrenciaDTO(atvOc.getId().toString(),\n\t\t\t\t\tatvOc.getId(), DataUtil.formataData(atvOc.getDataInicio()).toString(),\n\t\t\t\t\tatvOc.getDataFim().toString(), atvOc.getObservacao(), atvOc.getStatus().getNome(),\n\t\t\t\t\tatvOc.getNumeroItem().toString() + \" - \" + atvOc.getNome(), atvOc.getUsuarioResponsavel().getId().toString());\n\n\t\t\tlst.add(atividadeOcorrenciaREST);\n\t\t}\n\n\t\treturn lst;\n\t}",
"public ListConverting getListConverting() {\n return listConverting;\n }",
"public Optional<List<PessoaDto>> getListOtimizada() {\n\t\tList<Pessoa> pessoas = dao.buscaOtimizada();\n\t\tList<PessoaDto> pessoasDTO = new ArrayList<PessoaDto>();\n\t\tfor (Pessoa pessoa : pessoas) {\n\t\t\tpessoasDTO.add(toPessoaDTO(pessoa));\n\t\t}\n\t\treturn Optional.of(pessoasDTO);\n\t}",
"@Override\r\n\tpublic List<OrderDTO> findAllList() {\n\t\tList<OrderMaster> orderMasterList = orderMasterService.findAllOrderMaster();\r\n\t\t\r\n\t\tList<OrderDTO> orderDTOList = OrderMaster2OrderDTOConverter.convert(orderMasterList);\r\n\t\t\r\n\t\treturn orderDTOList;\r\n\t}",
"public List getList() {\n return Arrays.asList(toJavaArray()); \n }",
"public List<UsuarioDTO> obterListaUsuarios() throws RemoteException;",
"List<IdentificationDTO> getIdentificationList();",
"List<String> toList(Iterable<UUID> ids) {\n\t\tList<String> list = new ArrayList<String>();\n\t\tfor (UUID guid : ids) {\n\t\t\tlist.add(guid.toString());\n\t\t}\n\t\treturn list;\n\t}",
"@GET\r\n public List<DocumentoDTO> obtenerDocumento(){\r\n List<DocumentoEntity> documento= logic.obtenerDocumento(); \r\n return DocumentoDTO.toZooList(documento);\r\n }",
"public static List<BorrowOrderDto> borrowOrderDbListToBorrowOrderDtoList(List<BorrowOrder> dbBorrowOrderList) {\n List<BorrowOrderDto> borrowOrderDtoList = new ArrayList<>();\n for (BorrowOrder bo : dbBorrowOrderList) {\n borrowOrderDtoList.add(db2dto(bo));\n }\n return borrowOrderDtoList;\n }",
"public AtendimentoJuridicoDTO toDTO(AtendimentoJuridicoEntity entity){\n\t\tAtendimentoJuridicoDTO dto = new AtendimentoJuridicoDTO();\n\t\tBeanUtils.copyProperties(entity, dto); \n\t\treturn dto ;\n\t}",
"public COSArray toList() \n {\n return array;\n }",
"@Override\n\tpublic List<ExamenDTO> obtenerTodos() {\n\t\tList<ExamenDTO> examenes= new ArrayList<ExamenDTO>();\n\t\tdao.findAll().forEach(e -> examenes.add(Mapper.getDTOFromEntity(e)));\n\t\treturn examenes;\n\t}",
"java.util.List<com.demo.springprotobuff.Demoproto.Student> getStudentList();",
"private List<SubServicoTO> parseTO(List<AgvTabSubservico> listaResultado) {\r\n\t\t\r\n\t\tArrayList<SubServicoTO> lista = new ArrayList<SubServicoTO>();\r\n\t\t\r\n\t\tfor (Iterator<AgvTabSubservico> iterator = listaResultado.iterator(); iterator.hasNext();) {\r\n\t\t\tAgvTabSubservico element = (AgvTabSubservico) iterator.next();\r\n\t\t\t\r\n\t\t\tSubServicoTO to = new SubServicoTO();\r\n\t\t\tto.setCdServicoCsi( (element.getCdServicoCsi() == null ? null : element.getCdServicoCsi().toString()));\r\n\t\t\tto.setCdSerCom(element.getCdSerCom());\r\n\t\t\tto.setCdServExe(element.getCdServExe());\r\n\t\t\tto.setCdSubservico(element.getCdSubservico());\r\n\t\t\tto.setDataAtualizacao(element.getDtAtualizacao());\r\n\t\t\tto.setDataPublicacao(element.getDtPublicacao());\r\n\t\t\tto.setDsCondExec(element.getDsCondExec());\r\n\t\t\tto.setDsFormaPgto(element.getDsFormaPgto());\r\n\t\t\tto.setDsLink(element.getDsLink());\r\n\t\t\tto.setDsPrazoAtend(element.getDsPrazoAtend());\r\n\t\t\tto.setDsPreco(element.getDsPreco());\r\n\t\t\tto.setDsSubservico(element.getDsSubservico());\r\n\t\t\tto.setFlagPublicGuia(element.getFlPublicGuia());\r\n\t\t\tto.setFlagPublicTabPrecos(element.getFlPublicTabPrecos());\r\n\r\n\t\t\tlista.add(to);\r\n\t\t}\r\n\t\t\r\n\t\treturn lista;\r\n\t}",
"List<OrderDTORest> getAllOrdersDTORest();",
"public List<T> toList() {\n return Query.toList(iterable);\n }",
"@Override\r\n\tpublic List<ComunidadBean> getComunidadList() {\n\t\tList<ComunidadBean> result=new ArrayList<ComunidadBean>();\r\n\t\t\r\n\t\tList<JugComunidad> list= comunidadRepository.getComunidadList();\r\n\t\tfor (JugComunidad entiry : list) \r\n \t\tresult.add(new ComunidadBean(entiry.getId(), entiry.getCodigo(), entiry.getDescripcion()));\t\r\n\t\t\r\n\t\treturn result;\r\n\t}",
"List<InterventionItem> interventionItemDtoToInterventionItem(List<InterventionItemDto> dto);",
"List<ParqueaderoEntidad> listar();",
"List<CurrencyDTO> getCurrencies();",
"public static List<RatingShowDTO> toShowList(List<RatingShowEntity> RShow){\r\n List<RatingShowDTO> listaRShow = new ArrayList();\r\n for(int i = 0; i <RShow.size();i++){\r\n listaRShow.add(new RatingShowDTO(RShow.get(i)));\r\n }\r\n return listaRShow;\r\n }",
"public List<Persona> todasLasPersonas(){\n\n Iterable<Persona> ite=repo.findAll();\n Iterator<Persona> it=ite.iterator();\n List<Persona> actualList = new ArrayList<Persona>();\n while (it.hasNext()) {\n actualList.add(it.next());\n }\n\n return actualList;\n }"
] | [
"0.714651",
"0.71009296",
"0.7055669",
"0.70445156",
"0.690391",
"0.68621427",
"0.6854599",
"0.67835903",
"0.67513037",
"0.6717903",
"0.6710004",
"0.6685685",
"0.66490555",
"0.6628301",
"0.6586001",
"0.64289963",
"0.6426152",
"0.64123434",
"0.6401071",
"0.63468987",
"0.6326831",
"0.63242376",
"0.6323852",
"0.63032115",
"0.62899333",
"0.62612075",
"0.6254085",
"0.62506926",
"0.62193894",
"0.6188178",
"0.61805636",
"0.61775464",
"0.6173453",
"0.6169091",
"0.61584455",
"0.6130923",
"0.6108724",
"0.60735613",
"0.6069517",
"0.6049336",
"0.60483575",
"0.60385287",
"0.6036072",
"0.599602",
"0.5991129",
"0.5965789",
"0.58942556",
"0.58921397",
"0.58869183",
"0.58760476",
"0.5873103",
"0.58597195",
"0.5843687",
"0.582989",
"0.5826633",
"0.5815868",
"0.58052456",
"0.5790466",
"0.57860667",
"0.5782574",
"0.5773526",
"0.577277",
"0.5769354",
"0.57666993",
"0.5758242",
"0.5758242",
"0.5741928",
"0.5741832",
"0.5728938",
"0.5728577",
"0.5726637",
"0.56884116",
"0.5675527",
"0.56716174",
"0.5670169",
"0.5665258",
"0.56626636",
"0.5637617",
"0.56329966",
"0.5621593",
"0.5617273",
"0.5612486",
"0.5610444",
"0.56086755",
"0.56065124",
"0.5601006",
"0.5599336",
"0.55973804",
"0.5596731",
"0.55791837",
"0.55777127",
"0.5575719",
"0.5572249",
"0.55695045",
"0.55557746",
"0.5553152",
"0.5550969",
"0.55486244",
"0.55452734",
"0.55444866"
] | 0.7010413 | 4 |
To entity ticket entity. | @Mappings({
@Mapping(target = "passengerEntity", source = "ticketDto.passengerDto"),
@Mapping(target = "ticketScheduleSectionEntityList", source = "ticketDto.ticketScheduleSectionDtoList")
})
TicketEntity toEntity(TicketDto ticketDto); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Ticket ticketDTOToTicket(TicketDTO ticketDTO);",
"TicketDTO ticketToTicketDTO(Ticket ticket);",
"List<TicketEntity> toEntityList(List<TicketDto> ticketDtoList);",
"public void toEntity(){\n\n }",
"List<Ticket> ticketDTOToTicket(List<TicketDTO> all);",
"public CuentaEntity toEntity() {\r\n CuentaEntity cuentaE = super.toEntity();\r\n if (this.tarjeta != null) {\r\n if (!this.tarjeta.isEmpty()) {\r\n List<TarjetaEntity> tarjetasEntity = new ArrayList<>();\r\n for (TarjetaDTO dtoTarjeta : tarjeta) {\r\n tarjetasEntity.add(dtoTarjeta.toEntity());\r\n }\r\n cuentaE.setTarjeta(tarjetasEntity);\r\n }\r\n }\r\n if (this.ordenPagos != null) {\r\n if (!this.ordenPagos.isEmpty()) {\r\n List<OrdenPagoEntity> ordenesEntity = new ArrayList<>();\r\n for (OrdenPagoDTO dtoOrdenPago : ordenPagos) {\r\n ordenesEntity.add(dtoOrdenPago.toEntity());\r\n }\r\n cuentaE.setOrdenPagos(ordenesEntity);\r\n }\r\n }\r\n \r\n if (this.estudiante != null) {\r\n System.out.println(\"---------------------------------------------------343434343\");\r\n EstudianteEntity es = estudiante.toEntity();\r\n cuentaE.setEstudiante(es);\r\n System.out.println(es.getDocumento());\r\n System.out.println(cuentaE.getEstudiante());\r\n System.out.println(cuentaE.getEstudiante().getDocumento());\r\n }\r\n\r\n return cuentaE;\r\n }",
"E toEntity(V dto);",
"List<TicketDto> toDtoList(List<TicketEntity> ticketEntityList);",
"@Mappings({\n @Mapping(target = \"passengerDto\", source = \"ticketEntity.passengerEntity\"),\n @Mapping(target = \"ticketScheduleSectionDtoList\", source = \"ticketEntity.ticketScheduleSectionEntityList\")\n })\n TicketDto toDto(TicketEntity ticketEntity);",
"@Override\n public Comment toEntity(CommentDTO dto) {\n Comment entity = new Comment();\n entity.setId(dto.getId());\n entity.setStatus(dto.getStatus());\n entity.setSenderId(dto.getSender().getId());\n entity.setSenderName(dto.getSender().getName());\n entity.setText(dto.getText());\n// entity.setRentInfo(rentInfoDtoMapper.toEntity(dto.getRentInfo()));\n return entity;\n }",
"public OrderDetailEntity toEntity (DetailDTO detailDTO,OrderDetailEntity orderDetailEntity) {\n\t\t\n\t\tShoesEntity shoesEntity = shoesRepository.findOne(detailDTO.getShoesID());\n\t\torderDetailEntity.setShoesEntity(shoesEntity);\n\t\torderDetailEntity.setShoesName(shoesEntity.getShoesName());\n\t\torderDetailEntity.setPrice(detailDTO.getPrice());\n\t\torderDetailEntity.setQuantity(detailDTO.getQuantity());\n\t\treturn orderDetailEntity;\n\t}",
"List<TicketDTO> ticketToTicketDTO(List<Ticket> all);",
"@Override\n public CalificacionEntity toEntity() {\n CalificacionEntity calificacionEntity = super.toEntity();\n if (this.getHospedaje() != null) {\n calificacionEntity.setHospedaje(this.getHospedaje().toEntity());\n }\n return calificacionEntity;\n }",
"public static void assignTicket(Ticket ticket,String toT){\r\n\r\n\t\tDate dateCreated=new Date();\t\t\t\t\t\t\t\t\t\t\t\t\t\t//getting the current date\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy HH:mm:ss\");\r\n\t\t//int ticketID=1000;\r\n\r\n\t\twhile(true){\r\n\t\t\tticket.ticketID=Integer.toString(ticketID);\t\t\t\t\t\t\t\t\t\t//converting the ticket id to string and assigning it to ticket id.\r\n\t\t\tticketID++;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\r\n\t\tif(toT.equalsIgnoreCase(\"Phone\")){\t\t\t\t\t\t\t\t\t\t\t\t\t//if type of ticket is phone\r\n\t\t\tticket.CustomerRepID=arrayRepresentativeIDs[0];\t\t\t\t\t\t\t\t\t//assigning the ticket to representative 0\r\n\t\t}\r\n\t\telse if(toT.equalsIgnoreCase(\"InPerson\")){\t\t\t\t\t\t\t\t\t\t\t//if type of ticket is inperson\r\n\t\t\tticket.CustomerRepID=arrayRepresentativeIDs[1];\t\t\t\t\t\t\t\t\t//assigning the ticket to representative 1\r\n\t\t}\r\n\t\telse if(toT.equalsIgnoreCase(\"Email\")){\t\t\t\t\t\t\t\t\t\t\t\t//if type of ticket is email\r\n\t\t\tticket.CustomerRepID=arrayRepresentativeIDs[2];\t\t\t\t\t\t\t\t\t//assigning the ticket to representative 2\r\n\t\t}\r\n\r\n\t\tticket.CustomerserviceRepID=Integer.toString(new Random().nextInt(arrayServiceIDs.length));\t\t//randomly assigning the service representative id\r\n\t\tticket.DateCreated=dateFormat.format(dateCreated);\r\n\t\t\r\n\r\n\r\n\t}",
"private TicketData Ticket2TicketData(Ticket t) {\n\n\t\tBuilder ticketBuilder = TicketData.newBuilder();\n\t\tticketBuilder.setDescription(t.getDescription());\n\t\tticketBuilder.setId(t.getId());\n\t\tticketBuilder.setPriority(de.uniba.rz.io.rpc.TicketData.Priority.values()[t.getPriority().ordinal()]);\n\t\tticketBuilder.setReporter(t.getReporter());\n\t\tticketBuilder.setStatus(de.uniba.rz.io.rpc.TicketData.Status.values()[t.getStatus().ordinal()]);\n\t\tticketBuilder.setTopic(t.getTopic());\n\t\tticketBuilder.setType(de.uniba.rz.io.rpc.TicketData.Type.values()[t.getType().ordinal()]);\n\n\t\treturn ticketBuilder.build();\n\n\t}",
"public OrderDetailEntity toEntity (DetailDTO detailDTO) {\n\t\t\n\t\tOrderDetailEntity orderDetailEntity = new OrderDetailEntity();\n\t\tShoesEntity shoesEntity = shoesRepository.getShoesById(detailDTO.getShoesID());\n\t\torderDetailEntity.setShoesEntity(shoesEntity);\n\t\torderDetailEntity.setShoesName(shoesEntity.getShoesName());\n\t\torderDetailEntity.setPrice(detailDTO.getPrice());\n\t\torderDetailEntity.setQuantity(detailDTO.getQuantity());\n\t\torderDetailEntity.setDeleted(detailDTO.getDeleted());\n\t\t\n\t\treturn orderDetailEntity;\n\t}",
"<T> void toEntity(T entity, int type);",
"public TicketDto convertTicketDto(Ticket ticket) {\r\n\t\tTicketDto ticketDto = new TicketDto(ticket.getTicketId(),ticket.getNoOfSeats(),ticket.getSeatIds(),ticket.getScreenName());\r\n\t\treturn ticketDto;\r\n\t}",
"public abstract T convertToEntity(D dto);",
"Comment dtoToEntity(CommentDto commentDto);",
"@Override\r\n public ViviendaEntity toEntity() {\r\n ViviendaEntity viviendaEntity = super.toEntity();\r\n if (contratos != null) {\r\n List<ContratoEntity> contratosEntity = new ArrayList<>();\r\n for (ContratoDTO dtoContrato : contratos) {\r\n contratosEntity.add(dtoContrato.toEntity());\r\n }\r\n viviendaEntity.setContratos(contratosEntity);\r\n }\r\n\r\n if (cuartos != null) {\r\n List<CuartoEntity> cuartoEntities = new ArrayList<>();\r\n for (CuartoDTO dto : cuartos) {\r\n cuartoEntities.add(dto.toEntity());\r\n }\r\n viviendaEntity.setCuartos(cuartoEntities);\r\n }\r\n\r\n if (sitiosDeInteres != null) {\r\n List<SitioInteresEntity> entities = new ArrayList<>();\r\n for (SitioInteresDTO dto : sitiosDeInteres) {\r\n entities.add(dto.toEntity());\r\n }\r\n viviendaEntity.setSitiosDeInteres(entities);\r\n }\r\n\r\n if (calificaciones != null) {\r\n List<CalificacionEntity> entities = new ArrayList<>();\r\n for (CalificacionDTO dto : calificaciones) {\r\n entities.add(dto.toEntity());\r\n }\r\n viviendaEntity.setCalificaciones(entities);\r\n }\r\n\r\n if (serviciosOfrecidos != null) {\r\n viviendaEntity.setServiciosIncluidos(serviciosOfrecidos);\r\n }\r\n\r\n if (serviciosAdicionales != null) {\r\n List<ServicioAdicionalEntity> entities = new ArrayList<>();\r\n for (ServicioAdicionalDTO dto : serviciosAdicionales) {\r\n entities.add(dto.toEntity());\r\n }\r\n viviendaEntity.setServiciosAdicionales(entities);\r\n }\r\n\r\n return viviendaEntity;\r\n }",
"@Override\r\n public AseoEntity toEntity() {\r\n AseoEntity entity = new AseoEntity();\r\n entity.setBanho(this.banho);\r\n entity.setDientes(this.dientes);\r\n entity.setPeluqueria(this.peluqueria);\r\n entity.setCosto(this.getCosto());\r\n entity.setDuracion(this.getDuracion());\r\n entity.setEstado(this.isEstado());\r\n entity.setFecha(this.getFecha());\r\n entity.setRango(this.getRango());\r\n entity.setId(this.id);\r\n if (this.cliente != null) {\r\n entity.setCliente(cliente.toEntity());\r\n }\r\n if (this.mascota != null) {\r\n entity.setMascota(mascota.toEntity());\r\n }\r\n if (this.empleado != null) {\r\n entity.setEmpleado(empleado.toEntity());\r\n }\r\n if (this.factura != null) {\r\n entity.setFactura(factura.toEntity());\r\n }\r\n if (this.calificacion != null) {\r\n entity.setCalificacion(calificacion.toEntity());\r\n }\r\n if (this.getVeterinaria() != null) {\r\n entity.setVeterinaria(this.getVeterinaria().toEntity());\r\n }\r\n return entity;\r\n }",
"public static Eticket2 transformToEticket(Eticket2DTO eTicketDTO) {\n return new Eticket2(null, eTicketDTO.category,eTicketDTO.reference, eTicketDTO.description,eTicketDTO.law,eTicketDTO.nominative,\n eTicketDTO.validityDate, RateAdapter.transformToRateList(eTicketDTO.rates),\n eTicketDTO.image,eTicketDTO.provider,BasketAdapter.transformToBasketList(eTicketDTO.baskets));\n }",
"@Override\n protected E dtoToEntity( final D dto )\n {\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n final E entity = super.dtoToEntity( dto );\n /*\n * Convert the notes source ID to UUID\n */\n if ( dto instanceof NotesSourceIdContainer &&\n entity instanceof NotesSourceUuidContainer )\n {\n final NotesSourceIdContainer notesSourceIdContainer = (NotesSourceIdContainer) dto;\n /*\n * Check for new sources\n */\n this.stockNoteSourceService.checkForNewSource( notesSourceIdContainer );\n final NotesSourceUuidContainer notesSourceUuidContainer = (NotesSourceUuidContainer)entity;\n /*\n * Convert the String UUID to a real uuid if present\n */\n if ( notesSourceIdContainer.getNotesSourceId() != null &&\n !notesSourceIdContainer.getNotesSourceId().isEmpty() )\n {\n final StockNoteSourceEntity stockNoteSourceEntity = this.stockNoteSourceService\n .getStockNoteSource( ((CustomerUuidContainer)entity).getCustomerUuid(),\n notesSourceIdContainer.getNotesSourceId() );\n notesSourceUuidContainer.setNotesSourceEntity( stockNoteSourceEntity );\n }\n }\n //logMethodEnd( methodName, entity );\n return entity;\n }",
"void setTicket(Ticket ticket) {\n this.ticket = ticket;\n }",
"public Representante toEntity(RepresentanteDTO dto) {\n return toEntity(dto, Representante.builder().build());\n }",
"private History convertDTOToEntity(HistoryDTO historyDto) {\n\t\tHistory history = modelMapper.map(historyDto, History.class);\n\t\treturn history;\n\t}",
"public EventoEntity toEntity() {\n EventoEntity entity = new EventoEntity();\n entity.setId(this.id);\n entity.setCapacidad(this.capacidad);\n entity.setDistanciaVivienda(this.distanciaVivienda);\n entity.setFechaEvento(this.fechaEvento);\n entity.setNombreEvento(this.nombreEvento);\n entity.setPrivado(this.privado);\n entity.setTipoEvento(this.tipoEvento);\n entity.setUbicacionLat(this.ubicacionLat);\n entity.setUbicacionLon(this.ubicacionLon);\n return entity;\n }",
"public DefectEntity createDefectEntity(DefectEntity defectEntity);",
"public AtendimentoJuridicoEntity toEntity(AtendimentoJuridicoDTO dto){\n\t\tAtendimentoJuridicoEntity entity = new AtendimentoJuridicoEntity();\n\t\tBeanUtils.copyProperties(dto, entity);\n\t\treturn entity;\n\t}",
"@Override\n public D entityToDTO( final E entity )\n {\n //final String methodName = \"cachedDataToDTO\";\n //logMethodBegin( methodName, entity );\n Objects.requireNonNull( entity, \"entity argument cannot be null\" );\n D dto = super.entityToDTO( entity );\n /*\n * I think this is a good use of instanceof...although I am not convinced, I'll have to think about this...\n * If any stock DTO is a stock company container, it will be populated automatically with the stock company\n * information. No need for any sub cvl\n *\n * NEED TO SERIOUSLY THINK ABOUT A BETTER SOLUTION HERE....5/9/2017 Mike.\n *\n * Need to develop some sort of \"conversion\" registration so that subclasses can register \"converters\" to be\n * run on entity.\n *\n /*\n * StockPriceQuoteContainers contain everything in a StockPriceContainer so get that instead\n */\n /*\n if ( dto instanceof StockQuoteDTOContainer )\n {\n this.stockQuoteEntityService\n .setQuoteInformation( dto );\n }\n */\n /*\n * The quote contains the company name\n */\n /*\n else if ( dto instanceof StockCompanyEntityContainer )\n {\n this.stockCompanyEntityService\n .setCompanyInformation( (StockCompanyDTOContainer) dto );\n }\n if ( dto instanceof StockPriceQuoteDTOContainer )\n {\n this.stockPriceQuoteService\n .setStockPriceQuote( dto, ASYNCHRONOUS );\n }\n */\n\n /*\n * Convert the UUID to a string and get the notes source name for the UUID\n */\n if ( entity instanceof NotesSourceUuidContainer &&\n dto instanceof NotesSourceIdContainer )\n {\n final NotesSourceUuidContainer notesSourceUuidContainer = (NotesSourceUuidContainer)entity;\n if ( notesSourceUuidContainer.getNotesSourceEntity().isPresent() )\n {\n final NotesSourceIdContainer notesSourceIdContainer = (NotesSourceIdContainer)dto;\n final StockNoteSourceEntity stockNoteSourceEntity = notesSourceUuidContainer.getNotesSourceEntity().get();\n notesSourceIdContainer.setNotesSourceName( stockNoteSourceEntity.getName() );\n notesSourceIdContainer.setNotesSourceId( stockNoteSourceEntity.getUuid().toString() );\n }\n }\n\n if ( dto instanceof TagsContainer )\n {\n final TagsContainer tagsContainer = (TagsContainer)dto;\n tagsContainer.setTags( this.stockTagService.findStockTags( UUIDUtil.uuid( tagsContainer.getCustomerId() ),\n StockTagEntity.StockTagReferenceType.STOCK_TO_BUY,\n UUIDUtil.uuid( tagsContainer.getEntityId() ) ) );\n }\n //logMethodEnd( methodName, dto );\n return dto;\n }",
"public FacturaEntity toEntity() {\n FacturaEntity entity = new FacturaEntity();\n entity.setCosto(this.getCosto());\n entity.setId(this.getId());\n return entity;\n }",
"@Override\r\n public BlogEntity toEntity() {\r\n BlogEntity entity = super.toEntity();\r\n if(cliente !=null) entity.setCliente(this.cliente.toEntity());\r\n if(evento !=null) entity.setEvento(this.evento.toEntity());\r\n \r\n return entity;\r\n }",
"public Tickets createTicket(Users user) {\n Tickets tickets = new Tickets();\n tickets.setTicketId(UUID.randomUUID().toString());\n tickets.setId(user.getId());\n entityManager.persist(tickets);\n return tickets;\n }",
"public Ticket getTicket() {\n return ticket;\n }",
"@Override\n\tpublic int createTicket(Booking_ticket bt) {\n\t\treturn btr.createTicket(bt);\n\t}",
"@PostMapping(\"/tickets\")\n @Timed\n public ResponseEntity<Ticket> createTicket(@Valid @RequestBody Ticket ticket) throws URISyntaxException {\n log.debug(\"REST request to save Ticket : {}\", ticket);\n if (ticket.getId() != null) {\n throw new BadRequestAlertException(\"A new ticket cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n Ticket result = ticketRepository.save(ticket);\n return ResponseEntity.created(new URI(\"/api/tickets/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"public Representante toEntity(RepresentanteDTO dto, Representante entity) {\n\n entity.setIdRepresentante(dto.getIdRepresentante());\n entity.setNome(dto.getNome());\n entity.setTelefone(dto.getTelefone());\n entity.setSexo(dto.getSexo());\n entity.setEmail(dto.getEmail());\n\n return entity;\n }",
"public Entity toEntity(Object pojo) {\n return ofy().save().toEntity(pojo);\n }",
"int createTicket(Ticket ticket, int userId);",
"@Override\r\n public Share convertToEntity(InstrumentDto dto) {\r\n LocalDateTime stDate = getDateTimePersistenceConverter().convertToEntityAttribute(dto.getPaymentStartingDate());\r\n LocalDateTime endDate = getDateTimePersistenceConverter().convertToEntityAttribute(dto.getPaymentEndingDate());\r\n \r\n Share entity = new Share();\r\n entity.setId(dto.getId());\r\n entity.setInstrumentName(dto.getInstrumentName());\r\n entity.setStartOfPaymentPeriod(stDate);\r\n entity.setEndOfPaymentPeriod(endDate);\r\n \r\n return entity;\r\n }",
"Ticket(int id)//Instanciacion del constructor de la clase con sus respectivos parametros.\r\n {\r\n ticketID=id;//inicializacion de atributo de la clase con los parametros recibidos en el constructor.\r\n }",
"public void saveTicket(Ticket ticket) throws DavException;",
"Object toExternal (Object entity, Settings settings);",
"public Ticket getTicket(String id);",
"@Override\n\tpublic Contact toEntity(ResultSet rs) throws Exception {\n\t\tContact contact = new Contact();\n\t\tEntityUtils.fillEntity(rs, contact);\n\t\treturn contact;\n\t}",
"public CoordinadorEntity toEntity(){\n \n CoordinadorEntity entity = new CoordinadorEntity(); \n entity.setId_coordinador(this.id_coodinador);\n entity.setNombres(this.nombres);\n entity.setApellidos(this.apellidos);\n entity.setGenero(this.genero);\n entity.setEmail(this.email);\n entity.setTipoDocumento(tipo_documento_id);\n entity.setNro_documento(this.nro_documento);\n \n return entity;\n }",
"public abstract P toEntity();",
"@PostMapping(value=\"/create\")\n\tpublic Ticket creatTicket(@RequestBody Ticket ticket){\n\t\treturn ticketBookingService.createTicket(ticket);\n\t}",
"public TicketContent(Ticket ticket) {\n this(ticket, null);\n }",
"public Ticket(String destination, int price)\n {\n this.destination = destination;\n this.price = price;\n issueDateTime = new Date();\n \n }",
"@Override\n\tpublic GetJiraTicketResponseDTO createJiraTicket(Integer id) {\n\t\treturn null;\n\t}",
"boolean updateTicket(Ticket ticket, boolean createdByMe, boolean assignedToMe, boolean managedByMe);",
"public Ticket addTicket(Ticket ticket){\n ticket.setDate(Instant.now());\n ticket.setAddition(0);\n List<Met> mets= ticket.getMets();\n this.tableservice.searchById(ticket.getTable().getId());\n this.clientservice.searchById(ticket.getClient().getId());\n for (Met met:mets){\n Optional<Met> opt=metRepository.findById(met.getId());\n if(opt.isPresent()){\n ticket.setAddition(ticket.getAddition()+opt.get().getPrix());\n }else {\n throw new NoSuchElementException(\"Met avec id :\"+met.getId()+\" introuvable\");\n }\n }\n Ticket ticketInBase=ticketRepository.save(ticket);\n return ticketInBase;\n }",
"EntityOnCalendar saveEntity(int from, int untill, int year, int eFrom, int eUntill, Month name, long userId){\n MonthList monthInstance = new MonthList(from, untill, year, name);\n monthInstance.setFrom(eFrom);\n createEmptyList(monthInstance);\n // get User from database ? Shoudn't be necesary check dont genarate or update with null values\n User u = new User();\n u.setId(userId);\n\n Reservation reservation = new Reservation();\n reservation.setUser(u);\n\n LocalDate ldFrom = LocalDate.of(year, name, eFrom);\n LocalDate ldUntill = LocalDate.of(year, name, eUntill);\n reservation.from(ldFrom);\n reservation.untill(ldUntill);\n\n EntityOnCalendar e = new EntityOnCalendar();\n e.setReservation(reservation);\n\n for(int i=eFrom;i<eUntill;i++) {\n monthInstance.getMap().get(i).getList().add(e);\n }\n\n // call service and save all ( reservation, monthList SYNCRONIZE AVOID TWO CALENDARS SAME MONTH YEAR\n\n return e;\n }",
"@Override\n public EntityResponse createEntity(String entitySetName, OEntity entity) {\n return super.createEntity(entitySetName, entity);\n }",
"private HistoryDTO convertEntityToDTO(History history) {\n\t\tHistoryDTO historyDto = modelMapper.map(history, HistoryDTO.class);\n\t\treturn historyDto;\n\t}",
"@Override\n public Outcome toEntity(OutcomeResponseDTO outcomeResponseDTO)\n {\n return null;\n }",
"T createEntity();",
"Entity createEntity();",
"public static TranshipTube createEntity(EntityManager em) {\n TranshipTube transhipTube = new TranshipTube()\n .status(DEFAULT_STATUS)\n .memo(DEFAULT_MEMO)\n .columnsInTube(DEFAULT_COLUMNS_IN_TUBE)\n .rowsInTube(DEFAULT_ROWS_IN_TUBE);\n // Add required entity\n TranshipBox transhipBox = TranshipBoxResourceIntTest.createEntity(em);\n em.persist(transhipBox);\n em.flush();\n transhipTube.setTranshipBox(transhipBox);\n // Add required entity\n FrozenTube frozenTube = FrozenTubeResourceIntTest.createEntity(em);\n em.persist(frozenTube);\n em.flush();\n transhipTube.setFrozenTube(frozenTube);\n return transhipTube;\n }",
"void create(E entity);",
"E mapToEntity(D dto);",
"public phonecallTicket makeTicket(int id, String who, String phone,String tag, String date,String problem, String notes, String status){\n \n phonecallTicket ticket = new phonecallTicket(id, who, phone, tag, date, problem, notes, status);\n currentticket = ticket;\n return ticket;\n }",
"public OpenEcompComponentEntity toEntity() {\n OpenEcompComponentEntity destination = new OpenEcompComponentEntity();\n destination.setId(this.getId());\n destination.setName(this.getName());\n return destination;\n }",
"Ticket getTicketByAssignee(int ticketId, int userId);",
"public TicketRes modifierTicket(int num ,TicketReq ticketreq){\n Ticket newTicket=mapp.map(ticketreq,Ticket.class);\n searchById(num);\n Optional<Ticket> opt=ticketRepository.findById(num);\n\n Ticket oldTicket= opt.isPresent()?opt.get():null;\n\n //generated auto\n if (newTicket.getNumero()!=0)\n oldTicket.setNumero(newTicket.getNumero());\n if(newTicket.getAddition()!=0)\n oldTicket.setAddition(newTicket.getAddition());\n \n if (newTicket.getNbCouvert()!=0)\n oldTicket.setNbCouvert(newTicket.getNbCouvert());\n \n\n ticketRepository.save(oldTicket);\n\n return mapp.map(oldTicket,TicketRes.class);\n }",
"void buildFromEntity(E entity);",
"E create(E entity);",
"E create(E entity);",
"public static void createTicket(Ticket ticket) {\n try {\n Connection conn = Main.conn;\n PreparedStatement statement = conn.prepareStatement(\"INSERT INTO bs_tickets (username, admin, status, question, server, date_created, date_accepted, date_resolved) VALUES (?, ?, ?, ?, ?, ?, ?, ?)\");\n\n statement.setString(1, ticket.username);\n statement.setString(2, ticket.admin);\n statement.setString(3, ticket.status);\n statement.setString(4, ticket.question);\n statement.setString(5, ticket.server);\n statement.setInt(6, ticket.date_created);\n statement.setInt(7, ticket.date_accepted);\n statement.setInt(8, ticket.date_resolved);\n\n statement.executeUpdate();\n }\n catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic Exam toEntity(ExamDTO examDTO) {\n\t\treturn null;\n\t}",
"void create(T entity);",
"public Ticket() {\n\n }",
"public interface ITicket {\n\n /**\n * Getter for the name of the ticket's passenger.\n *\n * @return passenger name in string format.\n */\n String getPassengerName();\n\n /**\n * Setter for the name of the ticket's passenger.\n *\n * @param passengerName passenger name in string format.\n */\n void setPassengerName(String passengerName);\n\n /**\n * Getter for the unique identification pertaining to the ticket's route.\n *\n * @return unique identification number related to the ticket in string format.\n */\n String getRouteID();\n\n /**\n * Setter for the unique identification pertaining to the ticket's route.\n *\n * @param routeID unique identification number related to the ticket in string format.\n */\n void setRoute(String routeID);\n\n /**\n * Getter for the departure city string.\n *\n * @return the departure city in string format.\n */\n String getDepartureLocation();\n\n /**\n * Getter for the arrival city string.\n *\n * @return the arrival city in string format.\n */\n String getArrivalLocation();\n\n /**\n * Setter for the ticket origin in using Locations enum.\n *\n * @param origination enum representing location.\n */\n void setOrigination(Locations origination);\n\n /**\n * Setter for the ticket destination using Locations enum.\n *\n * @param destination enum representing location.\n */\n void setDestination(Locations destination);\n\n /**\n * Getter for the departure date and time which is represented by util Calendar but printed out\n * in string format MM DD YYYY HH MM.\n *\n * @return the departure date and time in string format MM DD YYYY HH MM.\n */\n Calendar getDepartureDateAndTime();\n\n /**\n * Getter for the arrival date and time which is represented by util Calendar but printed out\n * in string format YYYY MM DD HH MM.\n *\n * @return the arrival date and time in string format YYYY MM DD HH MM.\n */\n Calendar getArrivalDateAndTime();\n\n /**\n * Setter for the trip dates using util Calendar for both departure and arrival in the format\n * YYYY Calendar.MONTH DD HH MM.\n *\n * @param departureDate Calendar departure date in the format YYYY Calendar.MONTH DD HH MM.\n * @param arrivalDate Calendar arrival date in the format YYYY Calendar.MONTH DD HH MM.\n */\n void setTripDates(Calendar departureDate, Calendar arrivalDate);\n\n /**\n * Getter for the class of service for certain tickets which allow class distinctions defined\n * in the enum ClassOfService.\n *\n * @return enum representing the class of service available on certain tickets.\n */\n ClassOfService getClassOfService();\n\n /**\n * Setter for the class of service for certain tickets which allow class distinctions defined\n * in the enum ClassOfService.\n *\n * @param serviceClass enum representing the class of service available on certain tickets.\n */\n void setClassOfService(ClassOfService serviceClass);\n }",
"public Ticket getCurrentTicket(){return this.currentTicket;}",
"public static IncomingDelivery mapToEntity(IncomingDeliveryDTO dto) throws Exception {\r\n\r\n\t\tif(dto==null)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tIncomingDelivery entity = new IncomingDelivery();\r\n\r\n\r\n\t\tentity.setIncomingDeliveryId(dto.getIncomingDeliveryId());\r\n\t\tentity.setDeliveryNr(dto.getDeliveryNr());\r\n\r\n\t\t// organisation must be set outside of the mapper (the static functions require a static dataBaseService which is not supported and permanently return null)\r\n\t\t// lastEditor must be set outside of the mapper (the static functions require a static dataBaseService which is not supported and permanently return null)\r\n\r\n\t\tentity.setDeliveryNr(dto.getDeliveryNr());\r\n\r\n\t\ttry {\r\n\t\t\tentity.setDate(df.parse(dto.getDate()));\r\n\t\t} catch (ParseException e) {\r\n\t\t\t// set current Date if parsing fails\r\n\t\t\tentity.setDate(new Date(System.currentTimeMillis()));\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t// updateTimestamp does not have to be delivered by the frontend\r\n\t\tif (dto.getUpdateTimestamp() != null)\r\n\t\t{\r\n\t\t\ttry {\r\n\t\t\t\tentity.setUpdateTimestamp(df.parse(dto.getUpdateTimestamp()));\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\t// set current Date if parsing fails\r\n\t\t\t\tentity.setUpdateTimestamp(new Date(System.currentTimeMillis()));\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tentity.setComment(dto.getComment());\r\n\r\n\t\t// set archived Flag only by function, not by object\r\n\t\t// entity.setArchived(dto.getArchived());\r\n\t\t// booked status does not have to be set, because it is generated by Hibernate when getting the entity\r\n\r\n\t\tSet<IncomingArticle> incomingArticles = new HashSet<IncomingArticle>();\r\n\t\tfor(IncomingArticleDTO incomingArticleDTO : dto.getIncomingArticleDTOs())\r\n\t\t{\r\n\t\t\tincomingArticles.add(IncomingArticleMapper.mapToEntity(incomingArticleDTO));\r\n\t\t}\r\n\r\n\t\tentity.setIncomingArticles(incomingArticles);\r\n\r\n\t\treturn entity;\r\n\r\n\t}",
"public FacturaDTO(FacturaEntity entity) \n {\n if(entity != null)\n {\n this.costo = entity.getCosto();\n this.id = entity.getId();\n }\n \n }",
"@Transactional\n public Mechanic assignTicket(Long mechanicId, Long ticketId) {\n LOGGER.info(\"Assign Service Ticket with id {} to Mechanic with id {}\", ticketId, mechanicId);\n Mechanic mechanic = getEmployee(mechanicId);\n ServiceTicket ticket = ticketService.getServiceTicket(ticketId);\n if (Objects.nonNull(ticket.getMechanic())) {\n throw new AlreadyAssignedException(\n Entity.SERVICE_TICKET.toString(),\n ticketId,\n Entity.MECHANIC.toString(),\n ticket.getMechanic().getId(),\n HttpStatus.BAD_REQUEST\n );\n }\n mechanic.addServiceTicket(ticket);\n ticket.setMechanic(mechanic);\n return mechanic;\n }",
"private List<ComentarioEntity> listDTO2Entity(List<ComentarioDTO> dtos) {\n List<ComentarioEntity> list = new ArrayList<>();\n for (ComentarioDTO dto : dtos) {\n list.add(dto.toEntity());\n }\n return list;\n }",
"public static Edge createEntity(EntityManager em) {\n Edge edge = new Edge()\n .description(DEFAULT_DESCRIPTION);\n // Add required entity\n Stone from = StoneResourceIntTest.createEntity(em);\n em.persist(from);\n em.flush();\n edge.setFrom(from);\n // Add required entity\n Stone to = StoneResourceIntTest.createEntity(em);\n em.persist(to);\n em.flush();\n edge.setTo(to);\n return edge;\n }",
"public ViviendaEntity toEntity() {\r\n ViviendaEntity entity = new ViviendaEntity();\r\n entity.setIdVivienda(this.getIdVivienda());\r\n entity.setCiudad(this.getCiudad());\r\n entity.setDescripcion(this.getDescripcion());\r\n entity.setDireccion(this.getDireccion());\r\n entity.setCapacidad(this.getCapacidad());\r\n \r\n entity.setValorDiario(this.getValorDiario());\r\n entity.setImagen(this.getImagen());\r\n entity.setNumeroHabitaciones (this.getNumeroHabitaciones());\r\n return entity;\r\n }",
"public boolean ingresarPrimerContactoDeTicket(Ticket ticket, Usuario usuario) {\n try {\n //Se agrega la información de actualización y modificación\n ticket.setFechaDeModificacion(new Date());\n Calendar c = Calendar.getInstance();\n c.add(Calendar.HOUR, ticket.getItemProductonumeroSerial().getContratonumero().getSlaid().getTiempoDeActualizacionDeEscalacion());\n ticket.setFechaDeProximaActualizacion(c.getTime());\n //Se modifica el ticket y se agrega en el historial\n this.ticketFacade.edit(ticket);\n HistorialDeTicket historialDeTicket = new HistorialDeTicket();\n historialDeTicket.setEventoTicketcodigo(this.eventoTicketFacade.find(7));\n historialDeTicket.setFechaDelEvento(ticket.getFechaDePrimerContacto());\n historialDeTicket.setOrden(this.historialDeTicketFacade.obtenerOrdenDeHistorialDeTicket(ticket));\n historialDeTicket.setUsuarioid(usuario);\n historialDeTicket.setTicketticketNumber(ticket);\n this.historialDeTicketFacade.create(historialDeTicket);\n //Eliminamos el notificador de primer contacto\n Timer tarea = this.notificadorServicio.getTareaInfoById(\"t_sla\" + ticket.getTicketNumber());\n if (tarea != null) {\n tarea.cancel();\n }\n //Creamos el notificador de actualización de ticket\n TareaTicketInfo tareaTicketInfo = new TareaTicketInfo(\"t_update\" + ticket.getTicketNumber(), \"Notificador Actualizacion ticket# \" + ticket.getTicketNumber(), \"LoteTareaNotificarTiempoDeActualizacion\", ticket);\n Sla ticketSla = ticket.getItemProductonumeroSerial().getContratonumero().getSlaid();\n c = Calendar.getInstance();\n c.add(Calendar.HOUR, ticketSla.getTiempoDeActualizacionDeEscalacion());\n tareaTicketInfo.setStartDate(c.getTime());\n tareaTicketInfo.setSecond(String.valueOf(c.get(Calendar.SECOND)));\n tareaTicketInfo.setMinute(String.valueOf(c.get(Calendar.MINUTE)));\n tareaTicketInfo.setHour(String.valueOf(c.get(Calendar.HOUR_OF_DAY)) + \"/\" + ticketSla.getTiempoDeActualizacionDeEscalacion());\n c = Calendar.getInstance();\n c.add(Calendar.HOUR, ticketSla.getTiempoDeSolucion());\n tareaTicketInfo.setEndDate(c.getTime());\n tareaTicketInfo.setMonth(\"*\");\n tareaTicketInfo.setDayOfMonth(\"*\");\n tareaTicketInfo.setDayOfWeek(ticketSla.getTipoDisponibilidadid().getDisponibilidad().equals(\"8x5\") ? \"Mon, Tue, Wed, Thu, Fri\" : \"*\");\n tareaTicketInfo.setYear(\"*\");\n tareaTicketInfo.setDescription(\"Tarea Actualizacion para ticket# \" + ticket.getTicketNumber());\n this.notificadorServicio.createJob(tareaTicketInfo);\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n return true;\n }",
"public boolean crearNuevoTicket(Ticket ticket, Usuario usuario) {\n\n try {\n\n //Se determina el tiempo de vida del ticket según el SLA\n int tiempoDeVida = ticket.getItemProductonumeroSerial().getContratonumero().getSlaid().getTiempoDeSolucion();\n Calendar c = Calendar.getInstance();\n c.add(Calendar.HOUR, tiempoDeVida);\n ticket.setTiempoDeVida(c.getTime());\n //Se indica la fecha máxima de cierre\n ticket.setFechaDeCierre(c.getTime());\n //Se indica la fecha actual como fecha de creacion\n ticket.setFechaDeCreacion(new Date());\n //se ingresa la fecha de última modificación\n ticket.setFechaDeModificacion(ticket.getFechaDeCreacion());\n //Se determina el tiempo de actualizacion segun el SLA\n //int tiempoDeActualizacion = ticket.getItemProductonumeroSerial().getContratonumero().getSlaid().getTiempoDeActualizacionDeEscalacion();\n //Información del ticket y el sla\n Sla ticketSla = ticket.getItemProductonumeroSerial().getContratonumero().getSlaid();\n PrioridadTicket prioridadTicket = ticket.getPrioridadTicketcodigo();\n int tiempoDeActualizacion = prioridadTicket.getValor() == 1 ? ticketSla.getTiempoRespuestaPrioridadAlta() : prioridadTicket.getValor() == 2 ? ticketSla.getTiempoRespuestaPrioridadMedia() : ticketSla.getTiempoRespuestaPrioridadBaja();\n //Se añade el tiempo de actualización para pos-validación según SLA\n c = Calendar.getInstance();\n c.add(Calendar.HOUR, tiempoDeActualizacion);\n //Se hacen verificaciones por tipo de disponibilidad es decir 24x7 o 8x5\n int horaActual = c.get(Calendar.HOUR_OF_DAY);\n int diaDeLaSemana = c.get(Calendar.DAY_OF_WEEK);\n if (ticket.getItemProductonumeroSerial().getContratonumero().getSlaid().getTipoDisponibilidadid().getDisponibilidad().equals(\"8x5\") && (diaDeLaSemana == Calendar.SATURDAY || diaDeLaSemana == Calendar.SUNDAY || (diaDeLaSemana == Calendar.FRIDAY && horaActual > 17))) {\n if (diaDeLaSemana == Calendar.FRIDAY) {\n c.add(Calendar.DAY_OF_MONTH, 3);\n } else if (diaDeLaSemana == Calendar.SATURDAY) {\n c.add(Calendar.DAY_OF_MONTH, 2);\n } else {\n c.add(Calendar.DAY_OF_MONTH, 1);\n }\n c.set(Calendar.HOUR_OF_DAY, 8);\n c.set(Calendar.MINUTE, 0);\n c.set(Calendar.SECOND, 0);\n } else if (ticket.getItemProductonumeroSerial().getContratonumero().getSlaid().getTipoDisponibilidadid().getDisponibilidad().equals(\"8x5\") && (horaActual < 8 || horaActual > 17) && (diaDeLaSemana != Calendar.SATURDAY && diaDeLaSemana != Calendar.SUNDAY)) {\n if (horaActual > 17) {\n c.add(Calendar.DAY_OF_MONTH, 1);\n }\n c.set(Calendar.HOUR_OF_DAY, 8);\n c.set(Calendar.MINUTE, 0);\n c.set(Calendar.SECOND, 0);\n }\n ticket.setFechaDeProximaActualizacion(c.getTime());\n if (ticket.getFechaDeProximaActualizacion().compareTo(ticket.getFechaDeCierre()) > 0) {\n Calendar cierre = Calendar.getInstance();\n cierre.setTime(c.getTime());\n cierre.add(Calendar.HOUR, tiempoDeVida);\n ticket.setFechaDeCierre(cierre.getTime());\n }\n //Se indica la persona que crea el ticket\n ticket.setUsuarioidcreador(usuario);\n //Se indica el usuario propietario por defecto y el responsable (Soporte HELPDESK)\n Usuario usuarioHelpdek = this.usuarioFacade.obtenerUsuarioPorCorreoElectronico(\"[email protected]\");\n ticket.setUsuarioidpropietario(usuarioHelpdek);\n ticket.setUsuarioidresponsable(usuarioHelpdek);\n //Se indica el estado actual del ticket\n EstadoTicket estadoNuevo = this.estadoTicketFacade.find(1);\n ticket.setEstadoTicketcodigo(estadoNuevo);\n //Creamos el ticket\n this.ticketFacade.create(ticket);\n //Creamos el Notificador\n TareaTicketInfo tareaTicketInfo = new TareaTicketInfo(\"t_sla\" + ticket.getTicketNumber(), \"Notificador SLA ticket# \" + ticket.getTicketNumber(), \"LoteTareaNotificarSLA\", ticket);\n //Información del ticket y el sla\n //Sla ticketSla = ticket.getItemProductonumeroSerial().getContratonumero().getSlaid();\n //PrioridadTicket prioridadTicket = ticket.getPrioridadTicketcodigo();\n String hora = prioridadTicket.getValor() == 1 ? String.valueOf(ticketSla.getTiempoRespuestaPrioridadAlta()) : prioridadTicket.getValor() == 2 ? String.valueOf(ticketSla.getTiempoRespuestaPrioridadMedia()) : String.valueOf(ticketSla.getTiempoRespuestaPrioridadBaja());\n //Definir la hora de inicio\n //c = Calendar.getInstance();\n //c.add(Calendar.HOUR, Integer.parseInt(hora));\n c.add(Calendar.MINUTE, -30);\n tareaTicketInfo.setStartDate(c.getTime());\n tareaTicketInfo.setEndDate(ticket.getFechaDeCierre());\n tareaTicketInfo.setSecond(String.valueOf(c.get(Calendar.SECOND)));\n tareaTicketInfo.setMinute(String.valueOf(c.get(Calendar.MINUTE)) + \"/10\");\n tareaTicketInfo.setHour(String.valueOf(c.get(Calendar.HOUR_OF_DAY)));\n tareaTicketInfo.setMonth(\"*\");\n tareaTicketInfo.setDayOfMonth(\"*\");\n tareaTicketInfo.setDayOfWeek(ticketSla.getTipoDisponibilidadid().getDisponibilidad().equals(\"8x5\") ? \"Mon, Tue, Wed, Thu, Fri\" : \"*\");\n tareaTicketInfo.setYear(\"*\");\n tareaTicketInfo.setDescription(\"Tarea SLA para ticket# \" + ticket.getTicketNumber());\n this.notificadorServicio.createJob(tareaTicketInfo);\n\n //Se añade un historico del evento\n HistorialDeTicket historialDeTicket = new HistorialDeTicket();\n historialDeTicket.setEventoTicketcodigo(this.eventoTicketFacade.find(1));\n historialDeTicket.setFechaDelEvento(new Date());\n historialDeTicket.setOrden(this.historialDeTicketFacade.obtenerOrdenDeHistorialDeTicket(ticket));\n historialDeTicket.setUsuarioid(ticket.getUsuarioidcreador());\n historialDeTicket.setTicketticketNumber(ticket);\n this.historialDeTicketFacade.create(historialDeTicket);\n\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n\n return true;\n }",
"public PrestadorEntity toEntity() {\r\n PrestadorEntity prestadorEntity = new PrestadorEntity();\r\n prestadorEntity.setId(this.id);\r\n prestadorEntity.setNombre(this.nombre);\r\n prestadorEntity.setCedula(this.cedula);\r\n prestadorEntity.setCorreo(this.correo);\r\n prestadorEntity.setContrasena(this.contrasena);\r\n if(this.hojaDeVida != null)\r\n prestadorEntity.setHojaDeVida(this.hojaDeVida.toEntity());\r\n return prestadorEntity;\r\n }",
"@PostMapping(\"/prix-tickets\")\n @Timed\n public ResponseEntity<PrixTicketDTO> createPrixTicket(@RequestBody PrixTicketDTO prixTicketDTO) throws URISyntaxException {\n log.debug(\"REST request to save PrixTicket : {}\", prixTicketDTO);\n if (prixTicketDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new prixTicket cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n PrixTicketDTO result = prixTicketService.save(prixTicketDTO);\n return ResponseEntity.created(new URI(\"/api/prix-tickets/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"public static <DTO,Entity> Entity dtoToEntity(DTO dto,Class<Entity> classEntity)\n\t{\n\t\tModelMapper mapper = new ModelMapper();\n\t\treturn mapper.map(dto, classEntity);\n\t}",
"public UserInfoEntity toUserInfoEntity(){\n UserInfoEntity userInfoEntity = new UserInfoEntity();\n userInfoEntity.setUserId(IdGen.getNewUserID());\n userInfoEntity.setCreateBy(name);\n userInfoEntity.setCreateOn(DateUtils.getDate());\n return toUserInfoEntity(userInfoEntity);\n }",
"@Transactional(readOnly = false)\r\n\tpublic void editarticket(ComTicket comticket) {\n\t\tem.merge(comticket);\r\n\t}",
"@Override\n\tpublic List<Pedido> toEntity(List<PedidoDTO> dtoList) {\n\t\treturn null;\n\t}",
"public Ticket() {\n\t\tticketStatus = TICKET_STATUS_OPEN;\n\t}",
"@Transactional\n public EventTO createEvent(EventTO eventTO) {\n LOGGER.info(\"start of createEvent\");\n LOGGER.trace(\" create new event entity\");\n Event event = new Event();\n LOGGER.trace(\" mapping simple data types\");\n //map simple data types\n event.setName(eventTO.getName());\n if (eventTO.hasDescription()) { event.setDescription(eventTO.getDescription());}\n event.setDatetime(eventTO.getDatetime());\n event.setRadius(eventTO.getRadius());\n event.setLongitude(eventTO.getLongitude());\n event.setLatitude(eventTO.getLatitude());\n //map business user\n LOGGER.trace(\" mapping Business User {}\", eventTO.getBusinessUserId());\n BusinessUser businessUser = businessUserService.getBusinessUser(eventTO.getBusinessUserId());\n event.setBusinessUserId(businessUser);\n //map preferences\n if (eventTO.hasPreferences()) {\n LOGGER.trace(\" mapping preferences\");\n LOGGER.trace(\" create prefrences from eventTO\");\n preferenceService.createPreferencesFromEvent(eventTO);\n for (Preference p : eventTO.getPreferences()) {\n Preference preference = preferenceService.getPrefernceByValue(p.getValue()).get();\n LOGGER.trace(\" mapping preference {}-{}\", preference.getId(), preference.getValue());\n event.addPreference(preference);\n }\n }\n event = eventRepository.save(event);\n LOGGER.info(\"new event with id {} successfully created\", event.getId());\n EventTO newEventTO = mapperService.convertToEventTO(event);\n eventProducer.sendNewEvent(newEventTO);\n return newEventTO;\n }",
"public static MealTicket toModel(MealTicketSoap soapModel) {\n\t\tif (soapModel == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tMealTicket model = new MealTicketImpl();\n\n\t\tmodel.setCustom_key(soapModel.getCustom_key());\n\t\tmodel.setPersonID(soapModel.getPersonID());\n\t\tmodel.setMonth(soapModel.getMonth());\n\t\tmodel.setDueMeal(soapModel.getDueMeal());\n\n\t\treturn model;\n\t}",
"private IngredienteDTO converteIngredienteEntityEmDTO(final IngredienteEntity ingredienteEntity) {\n\n IngredienteDTO ingredienteDTO = new IngredienteDTO();\n\n ingredienteDTO.setCodigoIngrediente(ingredienteEntity.getCodigoIngrediente());\n ingredienteDTO.setNomeIngrediente(ingredienteEntity.getNomeIngrediente());\n ingredienteDTO.setValorIngrediente(ingredienteDTO.getValorIngrediente());\n\n return ingredienteDTO;\n }",
"private RecipeEntity mapToRecipeEntity(Recipe recipe) {\n\t\tRecipeEntity rEntity = new RecipeEntity();\n\t\t//Map primitive fields\n\t\trEntity.setId(recipe.getId());\n\t\trEntity.setName(recipe.getName());\n\t\trEntity.setType(recipe.getType());\n\t\trEntity.setServingCapacity(recipe.getServingCapacity());\n\t\t\n\t\t//Save current date time into recipe instance, if not given\n\t\tif(recipe.getCreationDateTime() == null) {\n\t\t\tOptional<Date> currentDateTime = Util.getCurrentDateTime();\n\t\t\tif(currentDateTime.isPresent())\n\t\t\t\tlog.debug(\"Current DateTime to be set in recipe entity: \"+currentDateTime.toString());\n\t\t\telse\n\t\t\t\tlog.warn(\"Setting null to current date time field in recipe entity\");\n\t\t\trEntity.setCreationDateTime(currentDateTime.get());\n\t\t} else {\n\t\t\tlog.debug(\"Retaining given creation date time value into recipe entity\");\n\t\t\trEntity.setCreationDateTime(recipe.getCreationDateTime());\n\t\t}\n\t\t\n\t\t//Convert ingredients list into String and set to recipe entity\n\t\tlog.debug(\"Number of ingredients to convert to string: \"+recipe.getIngredientsList().size());\n\t\tString ingredients = Util.convertToJSONString(recipe.getIngredientsList());\n\t\tlog.debug(\"Ingredients String: \"+ingredients);\n\t\trEntity.setIngredients(ingredients);\n\t\t\n\t\trEntity.setInstructions(recipe.getInstructions());\n\t\t\n\t\treturn rEntity;\n\t}",
"public BookingInfoEntity createBooking(BookingInfoEntity bookingInfoEntity) {\n System.out.println(bookingInfoEntity.getFromDate() + \"\\t\" + bookingInfoEntity.getToDate());\n long noOfDays = ChronoUnit.DAYS.between(bookingInfoEntity.getFromDate(), bookingInfoEntity.getToDate());\n bookingInfoEntity.setRoomPrice( 1000 * bookingInfoEntity.getNumOfRooms() * ((int)noOfDays) );\n bookingInfoEntity.setRoomNumbers(getRandomNumber(bookingInfoEntity.getNumOfRooms()));\n bookingInfoEntity = bookingRepository.save(bookingInfoEntity); \n return bookingInfoEntity;\n }",
"private void attachEntity(Usuario entity) {\n }",
"V toDto(E entity);",
"public FilmType convertDtoToEntity(FilmTypeDto dto){\n\t\tFilmType entity = new FilmType();\n\t\tif(dto!=null){\n\t\t\tentity.setId(dto.getId());\n\t\t\tentity.setVersion(dto.getVersion());\n\t\t\tentity.setDescription(dto.getDescription());\n\t\t}\n\t\treturn entity;\n\t}",
"public static void createTicket(String toT){\n\r\n\t\tTicket total=new Ticket();\r\n\r\n\t\tif (toT.equalsIgnoreCase(\"Phone\")){\t\t\t\t\t\t\t\t\t\t\t\t\t//type of ticket is phone\r\n\r\n\t\t\tPhoneCall pc = new PhoneCall();\t\t\t\t\t\t\t\t\t\t\t\t\t//Creating a phone object\r\n\t\t\tSystem.out.println(\"\\n Assign Ticket Details\\n\");\t\t\t\t\t\t\t\t\r\n\t\t\tassignTicket(pc,toT);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//assigning the basic ticket details\r\n\r\n\t\t\ttotal=pc.contactHandler();\t\t\t\t\t\t\t\t\t\t\t\t\t\t//calling the contact handler method\r\n\r\n\t\t\tT.add(total);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//adding the details in transcript\r\n\t\t\t//System.out.println(\"Testing\");\r\n\t\t\treturn;\r\n\r\n\t\t}\r\n\r\n\t\telse if (toT.equalsIgnoreCase(\"inperson\")){\t\t\t\t\t\t\t\t\t\t\t//type of ticket is inperson\r\n\r\n\r\n\t\t\tInPerson ip=new InPerson();\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Creating a inperson object\r\n\t\t\tassignTicket(ip,toT);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//assigning the basic ticket details\r\n\t\t\ttotal=ip.contactHandler();\t\t\t\t\t\t\t\t\t\t\t\t\t\t//calling the contact handler method\r\n\r\n\t\t\tT.add(total);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//adding the details in transcript\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\telse if (toT.equalsIgnoreCase(\"email\"));{\t\t\t\t\t\t\t\t\t\t\t//type of ticket is email\r\n\r\n\t\t\tString email=\"\";\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\tString line=\"\";\r\n\t\t\tSystem.out.println(\"Enter the email Provided\\n\");\r\n\t\t\tSystem.out.println(\"Please enter your ID, name,phoneNumber,Address,serviceID,ServiceStartDate,ServiceEndDate , rest of email\\n\");\r\n\t\t\twhile(true){ // For taking input.Each sentence should end with \".\" and Representative goes to next line by pressing enter. \"Exit\" is used to get out of loop\r\n\t\t\t\t/*\r\n\t\t\t\t * Please enter the Email in ID,Name,PhnNumber,Address,ServiceID,ServiceStartDate,ServiceEndDate and rest of mail with \".\" after each line\r\n\t\t\t\t */\r\n\r\n\t\t\t\tline=Sc.nextLine(); // Infinite loop till \"exit\" is pressed\r\n\t\t\t\temail+=line;\r\n\t\t\t\tif(line.equalsIgnoreCase(\"\"))\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tArrayList<String>sentenceList=new ArrayList<String>(Arrays.asList(email.split(\"\\\\.\")));\t\t\t\t\t\t//splitting the email based on \".\"\t\t\t\r\n\r\n\t\t\tString ID=sentenceList.get(0);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//get first element from Sentencelist\t\t\t\t\t\t\t\t\t\r\n\t\t\tsentenceList.remove(0);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//remove the first element\r\n\t\t\tString Name=sentenceList.get(0);\r\n\t\t\tsentenceList.remove(0);\r\n\t\t\tint PhnNumber=Integer.parseInt(sentenceList.get(0));\r\n\t\t\tsentenceList.remove(0);\r\n\t\t\tString Address=sentenceList.get(0);\r\n\t\t\tsentenceList.remove(0);\r\n\t\t\tString ServiceID=sentenceList.get(0);\r\n\t\t\tsentenceList.remove(0);\r\n\t\t\tString ServiceStartDate=sentenceList.get(0);\r\n\t\t\tsentenceList.remove(0);\r\n\t\t\tString ServiceEndDate=sentenceList.get(0);\r\n\t\t\tsentenceList.remove(0);\r\n\t\t\tString Email=String.join(\". \",sentenceList);\r\n\r\n\r\n\t\t\tEmail em=new Email(ID,Name,PhnNumber,Address,ServiceID,ServiceStartDate,ServiceEndDate);\t\t\t\t\t//creating the email object\r\n\t\t\tassignTicket(em,toT);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//assigning the ticket\r\n\t\t\ttotal=em.contactHandler(Email);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//calling the email contacthandler\r\n\t\t\tT.add(total);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//adding the ticket to arraylist\r\n\t\t}\r\n\t\treturn ;\r\n\t\t//updateTicket();\r\n\r\n\t}"
] | [
"0.74872226",
"0.7310208",
"0.70357794",
"0.6420507",
"0.63437986",
"0.6285042",
"0.62053686",
"0.6133707",
"0.6129079",
"0.6101311",
"0.6069639",
"0.6032688",
"0.60115606",
"0.6009041",
"0.59985965",
"0.597354",
"0.5942329",
"0.5941793",
"0.5940117",
"0.591368",
"0.5882594",
"0.5818858",
"0.5808604",
"0.5806087",
"0.5787309",
"0.5781355",
"0.57760316",
"0.5738012",
"0.57314014",
"0.57110184",
"0.5709893",
"0.5701155",
"0.5696539",
"0.5671054",
"0.56603354",
"0.5642441",
"0.5597498",
"0.55787057",
"0.55781585",
"0.5562983",
"0.5541374",
"0.55254966",
"0.55151415",
"0.5488397",
"0.5485322",
"0.5478638",
"0.54745305",
"0.547388",
"0.54730994",
"0.5467203",
"0.5439604",
"0.54160446",
"0.54113495",
"0.5400879",
"0.5390839",
"0.5383428",
"0.53752995",
"0.53744316",
"0.5367706",
"0.536183",
"0.5355059",
"0.53539884",
"0.5347359",
"0.5339935",
"0.533908",
"0.5331629",
"0.53255785",
"0.53222734",
"0.5318621",
"0.5318621",
"0.53116834",
"0.5311262",
"0.52589136",
"0.5257169",
"0.5257069",
"0.5241843",
"0.5239278",
"0.523588",
"0.5222649",
"0.5199202",
"0.5197641",
"0.5195196",
"0.5193509",
"0.5193487",
"0.5182454",
"0.51798594",
"0.5176201",
"0.51752627",
"0.51602083",
"0.51405734",
"0.5135688",
"0.5132484",
"0.5127511",
"0.51240396",
"0.51025975",
"0.50973314",
"0.50957716",
"0.5092903",
"0.5090577",
"0.5083881"
] | 0.6927811 | 3 |
To entity list list. | List<TicketEntity> toEntityList(List<TicketDto> ticketDtoList); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract List<T> convertToEntities(List<D> dtos);",
"@Override\n\tpublic List<Pedido> toEntity(List<PedidoDTO> dtoList) {\n\t\treturn null;\n\t}",
"private List<VueloEntity> vuelosListDTO2Entity(List<VueloDTO> dtos) {\n List<VueloEntity> list = new ArrayList<>();\n for (VueloDTO dto : dtos) {\n list.add(dto.toEntity());\n }\n return list;\n }",
"private List<ComentarioEntity> listDTO2Entity(List<ComentarioDTO> dtos) {\n List<ComentarioEntity> list = new ArrayList<>();\n for (ComentarioDTO dto : dtos) {\n list.add(dto.toEntity());\n }\n return list;\n }",
"List<ParqueaderoEntidad> listar();",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<T> getList() {\r\n\t\tgetEntityManager().flush();\r\n\t\treturn getEntityManager().createQuery(\r\n\t\t\t\t\"select OBJECT(o) from \" + getClassType().getSimpleName() + \" o order by o.id\")\r\n\t\t\t\t.getResultList();\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<T> getList() {\n\t\tthis.hql = \"select m from \" + entityClassName + \" as m \";\n\t\tList<T> resultSet = entity.createQuery(this.hql).getResultList();\n\t\treturn resultSet;\n\t}",
"Object getTolist();",
"@Override\n\tpublic List<Exam> toEntity(List<ExamDTO> dtoList) {\n\t\treturn null;\n\t}",
"public void getEntities() {\n\t\t\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\tEntityA entityA = exampleDao.getOne(1);\r\n\t\tEntityB entityB3 = entityBDao.getOne(3);\r\n\t \tEntityB entityB2 = entityBDao.getOne(2);\r\n\t \tEntityB entityB1 = entityBDao.getOne(1);\r\n\r\n\t \t\r\n\r\n\t\tentityA.setEntityBList(Arrays.asList(entityB2,entityB3,entityB1));\r\n\r\n\t}",
"List<IViewEntity> getEntities();",
"public List<Member> toEntityList(List<MemberDto> dtoList) {\r\n List<Member> entityList = new ArrayList<Member>();\r\n for (MemberDto dto : dtoList) {\r\n entityList.add(copyDtoToEntity(dto, new Member()));\r\n }\r\n return entityList;\r\n }",
"public List<T> toList() {\n return Query.toList(iterable);\n }",
"private List<EquipoDetailDTO> listEntity2DTO(List<EquipoEntity> listaEntidades)\n {\n List<EquipoDetailDTO> lista = new ArrayList<>();\n for (EquipoEntity e: listaEntidades) \n {\n lista.add(new EquipoDetailDTO(e));\n }\n return lista;\n }",
"List<E> mapToEntity(List<D> dto);",
"private List<ComentarioDTO> listEntity2DTO(List<ComentarioEntity> entityList) {\n List<ComentarioDTO> list = new ArrayList();\n for (ComentarioEntity entity : entityList) {\n list.add(new ComentarioDTO(entity));\n }\n return list;\n }",
"@Override // java.util.concurrent.Callable\n public final Result<List<? extends Entity>> call() {\n DataManager instance = DataManager.getInstance();\n Intrinsics.checkNotNullExpressionValue(instance, \"DataManager.getInstance()\");\n return EntityConvertUtils.convertEntityList(instance.getGson(), FakeDanmakuData.access$createJson(this.this$0));\n }",
"private List<PhotoAlbumDetailDTO> listEntity2DTO(List<PhotoAlbumEntity> entityList){\n List<PhotoAlbumDetailDTO> list = new ArrayList<>();\n for (PhotoAlbumEntity entity : entityList) {\n list.add(new PhotoAlbumDetailDTO(entity));\n }\n return list;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList<E> getEntities() {\n\t\treturn (ArrayList<E>) entities.clone();\n\t}",
"List<T> getEntitiesByIds(List<ID_TYPE> ids) throws NotImplementedException;",
"public StrColumn getEntityIdList() {\n return delegate.getColumn(\"entity_id_list\", DelegatingStrColumn::new);\n }",
"private void listarEntidades() {\r\n\t\tsetListEntidades(new ArrayList<EntidadDTO>());\r\n\t\tgetListEntidades().addAll(entidadController.encontrarTodos());\r\n\t\tif (!getListEntidades().isEmpty()) {\r\n\t\t\tfor (EntidadDTO entidadDTO : getListEntidades()) {\r\n\t\t\t\t// Conversión de decimales.\r\n\t\t\t\tDouble porcentaje = entidadDTO.getPorcentajeValorAsegurable() * 100;\r\n\t\t\t\tdouble por = Math.round(porcentaje * Math.pow(10, 2)) / Math.pow(10, 2);\r\n\t\t\t\tentidadDTO.setPorcentajeValorAsegurable(por);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private List<PaseoEcologicoDetailDTO> listEntity2DTO(List<PaseoEcologicoEntity> listaEntrada)\r\n {\r\n List<PaseoEcologicoDetailDTO> l = new ArrayList<>( );\r\n for(PaseoEcologicoEntity entity : listaEntrada)\r\n {\r\n l.add(new PaseoEcologicoDetailDTO(entity));\r\n }\r\n return l; \r\n }",
"private List<GroupDetailDTO> listEntity2DTO(List<GroupEntity> entityList) {\n List<GroupDetailDTO> list = new ArrayList<>();\n for (GroupEntity entity : entityList) {\n list.add(new GroupDetailDTO(entity));\n }\n return list;\n }",
"@SuppressWarnings(\"unchecked\")\r\n public List<DomainObject> getList() {\r\n Session session = getSession();\r\n try {\r\n session.flush();\r\n return session.createQuery(\"from \" + getPersistentClass().getName()).list();\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in getList() Method:\" + e, e);\r\n throw e;\r\n }\r\n }",
"private List<MarcapasosDTO> listEntity2DTO(List<MarcapasosRealEntity> entityList) {\n List<MarcapasosDTO> list = new ArrayList<>();\n for (MarcapasosRealEntity entity : entityList) {\n list.add(new MarcapasosDTO(entity));\n }\n return list;\n }",
"List<T> createEntityList(ResultSet resultSet)\n throws CreatorException;",
"@Override\r\n public List<User> darUsers() {\r\n Query q = em.createQuery(\"SELECT u FROM UserEntity u\");\r\n List<UserEntity> l = q.getResultList();\r\n List<User> ltr = new ArrayList();\r\n for(UserEntity te: l)\r\n {\r\n ltr.add(TransformadorEntityDto.getInstance().entityADtoUser(te));\r\n }\r\n return ltr;\r\n }",
"private List<TrayectoDetail> listEntity2DetailDTO(List<TrayectoEntity> entityList) {\n List<TrayectoDetail> list = new ArrayList<>();\n for (TrayectoEntity entity : entityList) {\n list.add(new TrayectoDetail(entity));\n }\n return list;\n }",
"@SuppressWarnings(\"unchecked\")\n public <T> List<T> list() {\n return (List<T>) journal\n .retrieve(BarbelQueries.all(id), queryOptions(orderBy(ascending(BarbelQueries.EFFECTIVE_FROM))))\n .stream().map(d -> processingState.expose(context, (Bitemporal) d)).collect(Collectors.toList());\n }",
"private List<RestauranteDetailDTO> restauranteListEntity2DTO(List<RestauranteEntity> entityList){\n List<RestauranteDetailDTO> list = new ArrayList<>();\n for (RestauranteEntity entity : entityList) {\n list.add(new RestauranteDetailDTO(entity));\n }\n return list;\n }",
"List<D> mapToDTO(List<E> entity);",
"public List<E> toList() {\r\n ArrayList<E> result = new ArrayList<E>(this.size());\r\n for (E e : this) {\r\n result.add(e);\r\n }\r\n return result;\r\n }",
"java.util.List<com.demo.springprotobuff.Demoproto.Student> getStudentList();",
"public List<Entity> getAll() {\n return entities;\n }",
"public List<Entity> getEntities() {\n return entities;\n }",
"List<TransportEntity> getAllEntityOfQuery();",
"@Override\n public ArrayList<MultipleItemEntity> convert() {\n\n ArrayList<MultipleItemEntity> dataList = new ArrayList<>();\n\n final int status = JSON.parseObject(getJsonData()).getInteger(\"status\");\n switch (status){\n case 0:\n final int pageNum = JSON.parseObject(getJsonData()).getJSONObject(\"data\").getInteger(\"pageNum\");\n final JSONObject object = JSON.parseObject(getJsonData()).getJSONObject(\"data\");\n\n final JSONArray dataArray = object.getJSONArray(\"list\");\n\n final int size = dataArray.size();\n if (pageNum == 1) {\n mCommentId.clear();\n }\n for (int i = 0;i<size;i++){\n final JSONObject data = dataArray.getJSONObject(i);\n final int id = data.getInteger(\"id\");\n mCommentId.add(id);\n final String avatar = data.getString(\"avatar\");\n final int userId = data.getInteger(\"userId\");\n final String userName = data.getString(\"username\");\n final String content = data.getString(\"content\");\n// final Date createTime= data.getDate(\"createTime\");\n final String createTime= data.getString(\"createTime\");\n\n\n final MultipleItemEntity entity = MultipleItemEntity.builder()\n .setField(MultipleFields.ITEM_TYPE, ItemType.COMMENT_PROMO)\n .setField(MultipleFields.ID,id)\n .setField(MultipleFields.USER_ID,userId)\n .setField(MultipleFields.USER_NAME,userName)\n .setField(MultipleFields.AVATAR,avatar)\n .setField(MultipleFields.CREATE_TIME,createTime)\n .setField(MultipleFields.CONTENT,content)\n .build();\n\n dataList.add(entity);\n }\n break;\n default:\n final String message = JSON.parseObject(getJsonData()).getString(\"msg\");\n Toast.makeText(Higo.getApplicationContext(),message,Toast.LENGTH_LONG).show();\n HigoLogger.d(\"DATALIST\",dataList);\n break;\n }\n\n return dataList;\n }",
"public void toEntity(){\n\n }",
"private List<CategoriaDetailDTO> listEntity2DTO(List<CategoriaEntity> entityList) {\n List<CategoriaDetailDTO> list = new ArrayList<>();\n for (CategoriaEntity entity : entityList) {\n list.add(new CategoriaDetailDTO(entity));\n }\n return list;\n }",
"public List<Object> retrieveIncrementalEntities() {\n List<Object> result = new ArrayList<Object>();\n for (ProvisioningEntityWrapper provisioningEntityWrapper : this.provisioningEntityWrappers) {\n \n if (provisioningEntityWrapper.getGrouperTargetEntity() != null) {\n result.add(provisioningEntityWrapper.getGrouperTargetEntity());\n } else if (provisioningEntityWrapper.getGrouperProvisioningEntity() != null) {\n result.add(provisioningEntityWrapper.getGrouperProvisioningEntity());\n } else if (provisioningEntityWrapper.getGcGrouperSyncMember() != null) {\n result.add(provisioningEntityWrapper.getGcGrouperSyncMember());\n } else if (provisioningEntityWrapper.getProvisioningStateEntity() != null) {\n result.add(provisioningEntityWrapper.getProvisioningStateEntity());\n }\n }\n return result;\n }",
"public List<PedidoMaterialModel> findAll(){\n \n List<PedidoMaterialModel> pedidosM = new ArrayList<>();\n \n return pedidosM = pedidoMaterialConverter.entitiesToModels(pedidoMaterialRepository.findAll());\n }",
"public static List<ViajeEntidad> getListaViajesEntidad(){\n List<ViajeEntidad> viajes = new ArrayList<>();\n Date date = new Date();\n ViajeEntidadPK viajePK = new ViajeEntidadPK();\n TaxiEntidad taxiByPkPlacaTaxi = new TaxiEntidad();\n ClienteEntidad clienteByPkCorreoCliente = new ClienteEntidad();\n clienteByPkCorreoCliente.setPkCorreoUsuario(\"[email protected]\");\n TaxistaEntidad taxistaByCorreoTaxi = new TaxistaEntidad();\n taxistaByCorreoTaxi.setPkCorreoUsuario(\"[email protected]\");\n OperadorEntidad agendaOperador = new OperadorEntidad();\n agendaOperador.setPkCorreoUsuario(\"[email protected]\");\n\n viajePK.setPkPlacaTaxi(\"CCC11\");\n viajePK.setPkFechaInicio(\"2019-01-01 01:01:01\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n viajePK.setPkPlacaTaxi(\"DDD11\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n viajePK.setPkPlacaTaxi(\"EEE11\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n\n return viajes;\n }",
"public abstract List<D> convertToDtos(List<T> entities);",
"public ArrayList<TEntity> getAll(){\n ArrayList<TEntity> list = new ArrayList<TEntity>();\n\n Cursor cursor = db.query(tableName, columns, null, null, null, null, null);\n\n cursor.moveToFirst();\n\n while (!cursor.isAfterLast()) {\n list.add(fromCursor(cursor));\n cursor.moveToNext();\n }\n\n return list;\n }",
"public List<FilmType> convertListDtoToLisEntity(List<FilmTypeDto> dtos){\n\t\tList<FilmType> entities = new ArrayList<>();\n\t\tif(dtos!=null){\n\t\t\tfor(FilmTypeDto dto: dtos){\n\t\t\t\tFilmType entity = convertDtoToEntity(dto);\n\t\t\t\tentities.add(entity);\n\t\t\t}\n\t\t}\n\t\treturn entities;\n\t}",
"public List<Class<?>> getEntities(){\n\t\tList<Class<?>> result = new ArrayList<Class<?>>();\n\t\t\n//\t\tresult.add(Equipo.class);\n\t\tresult.add(Formacion.class);\n\t\tresult.add(FormacionStrategy.class);\n\t\tresult.add(Habilidad.class);\n\t\tresult.add(Jugador.class);\n\t\tresult.add(Tecnico.class);\n\t\tresult.add(Titular.class);\n//\t\tresult.add(PartidoSimple.class);\n//\t\tresult.add(PartidoDeCopa.class);\n\t\t\n\t\treturn result;\n\t}",
"List<TicketDto> toDtoList(List<TicketEntity> ticketEntityList);",
"public List<Persona> todasLasPersonas(){\n\n Iterable<Persona> ite=repo.findAll();\n Iterator<Persona> it=ite.iterator();\n List<Persona> actualList = new ArrayList<Persona>();\n while (it.hasNext()) {\n actualList.add(it.next());\n }\n\n return actualList;\n }",
"public List toList() throws TemplateModelException {\n if (unwrappedList == null) {\n Class listClass = list.getClass();\n List result = null;\n try {\n result = (List) listClass.newInstance();\n } catch (Exception e) {\n throw new TemplateModelException(\"Error instantiating an object of type \" + listClass.getName() + \"\\n\" + e.getMessage());\n }\n BeansWrapper bw = BeansWrapper.getDefaultInstance();\n for (int i=0; i<list.size(); i++) {\n Object elem = list.get(i);\n if (elem instanceof TemplateModel) {\n elem = bw.unwrap((TemplateModel) elem);\n }\n result.add(elem);\n }\n unwrappedList = result;\n }\n return unwrappedList;\n }",
"@Override\n public Writable formatEntity(Entity entity) {\n /* Create HTML list. */\n HtmlElem list = new HtmlElem(\"ul\");\n /* Get the class. */\n Class _Class = (Class) entity;\n /* Fill the list that will represent the class with its values. */\n list.with(li(text(\"Class ID: \" + _Class.getId())))\n .with(li(text(\"Course Name: \" + _Class.getcName())))\n .with(li(text(\"Academic Year: \" + _Class.getaYear())))\n .with(li(text(\"Academic Semester: \" + _Class.getaSemester())));\n return list;\n }",
"public static List<CoordinadorDTO> tolistCoordinador(List<CoordinadorEntity> coordinadorEntitys){\n \n List<CoordinadorDTO> listaObjectoCoordinador = new ArrayList<>();\n for (int i = 0; i <coordinadorEntitys.size(); i++) {\n listaObjectoCoordinador.add(new CoordinadorDTO(coordinadorEntitys.get(i)));\n }\n \n return listaObjectoCoordinador;\n }",
"@Override\n public List list() throws TransactionException {\n return hibernateQuery.list();\n }",
"public java.util.List<String> listEntityLabels() { return Utils.jListGetValuesWrapper(entity_label_list); }",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<MarcaEntities> list() {\n\t\tList<MarcaEntities> lista = new ArrayList<MarcaEntities>();\n\t\ttry {\n\t\t\tQuery q = em.createQuery(\"from MarcaEntities m\");\n\t\t\tlista = (List<MarcaEntities>) q.getResultList();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error al listar una Marca: \" + e);\n\t\t}\n\t\treturn lista;\n\t}",
"List<Entidade> listarTodos();",
"@Override\n @Transactional\n public List<D> getDtoList(D dto, E entity, String... args) throws MedragServiceException {\n List<E> entityList;\n try {\n entityList = entityDao.getEntityList(entity, args);\n } catch (MedragRepositoryException e) {\n throw new MedragServiceException(e);\n }\n List<D> dtoList = new ArrayList<>();\n entityList.forEach(e -> dtoList.add((D) new ModelMapper().map(e, dto.getClass())));\n return dtoList;\n }",
"List<T> getAll() throws PersistException;",
"@GET\r\n public List<EnterpriseUserDTO> getEnterpriseUserList(){\r\n List <EnterpriseUserEntity> enterpriseUsers = enterpriseUsersLogic.obtenerEnterpriseUsers();\r\n return EnterpriseUserDTO.toEnterpriseUserList(enterpriseUsers);\r\n }",
"public List getList() {\n return Arrays.asList(toJavaArray()); \n }",
"@Override\n\tpublic List<PedidoDTO> toDto(List<Pedido> entityList) {\n\t\treturn null;\n\t}",
"@RequestMapping(value = \"/listAllForAddingEntity\", method = RequestMethod.GET)\n\tpublic @ResponseBody String listAllForAddingEntity() {\n\t\ttry {\n\t\t\treturn entityService.listAllForAddingEntity();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t}",
"public List<ClientProperty> mapToEntities(List<ClientPropertyDto> dtos)\r\n\t{\r\n\t\tList<ClientProperty> result = new ArrayList<ClientProperty>();\r\n\r\n\t\tdtos.forEach(e -> result.add(mapToEntity(e)));\r\n\r\n\t\treturn result;\r\n\t}",
"protected List<FloorDef> genEntities() {\n List<FloorDef> list = new ArrayList<>();\n\n // MUST ADD THE WORK IDS AFTER\n\n list.add(new FloorDef(1, 10, 7001));\n list.add(new FloorDef(2, 3, 7002));\n list.add(new FloorDef(3, 10, 7003));\n list.add(new FloorDef(4, 0, 7004));\n\n //int[] workIDs = new int[]{};\n\n //for (int i = 0; i < workIDs.length)\n\n return list;\n }",
"public List<V> transformList(List<E> list) {\n \tList<V> result = new ArrayList<>(list.size());\n if (list != null) {\n for (E entity : list) {\n result.add(getCachedVO(entity));\n }\n }\n \treturn result;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<T> list() {\n\t\treturn sessionFactory.getCurrentSession().createCriteria(clazz).addOrder(org.hibernate.criterion.Order.asc(\"id\")).list();\n\t}",
"ImmutableList<SchemaOrgType> getMainEntityList();",
"@Override\n @Transactional\n public List<Employee> getlistEmployee() {\n \tList<Employee> employees = entityManager.createQuery(\"SELECT e FROM Employee e\", Employee.class).getResultList();\n \tfor(Employee p : employees)\n \t\tLOGGER.info(\"employee list::\" + p);\n \treturn employees;\n }",
"public void llenarListas(PaseoEntity entity) {\r\n ofertas = new ArrayList<OfertaDTO>();\r\n List<OfertaEntity> ofertasEntities = entity.getOfertas();\r\n if (ofertasEntities == null) {\r\n return;\r\n }\r\n for (OfertaEntity of : ofertasEntities) {\r\n ofertas.add(new OfertaDTO(of));\r\n }\r\n fotos = new ArrayList<FotoDTO>();\r\n if (entity.getOfertas() == null || entity.getOfertas().isEmpty() || entity.getOfertas().get(0) == null) {\r\n return;\r\n }\r\n if (entity.getOfertas().get(0).getVisitas() == null || entity.getOfertas().get(0).getVisitas().isEmpty()) {\r\n\r\n return;\r\n }\r\n List<FotoEntity> lista = entity.getOfertas().get(0).getVisitas().get(0).getFotos();\r\n if (lista != null) {\r\n\r\n for (FotoEntity fotoEntity : lista) {\r\n fotos.add(new FotoDTO(fotoEntity));\r\n }\r\n }\r\n }",
"@Override\n\tpublic List<Entity> getEntities( final List<Entity> _entities )\n\t{\n\t\t_entities.addAll( entities ) ;\n\t\t_entities.addAll( entitiesToAdd ) ;\n\t\treturn _entities ;\n\t}",
"List<T> obtenerAll();",
"public List<Producto> traerTodos () {\n \n return jpaProducto.findProductoEntities();\n \n \n \n }",
"@SuppressWarnings(\"unchecked\")\t\r\n\t@Override\r\n\tpublic List<Distrito> listar() {\n\t\tList<Distrito> lista = new ArrayList<Distrito>();\r\n\t\tQuery q = em.createQuery(\"select m from Distrito m\");\r\n\t\tlista = (List<Distrito>) q.getResultList();\r\n\t\treturn lista;\r\n\t}",
"@Override\n\tpublic ArrayList<Object> getList() {\n\t\tSession session = HibernateUtil.getSession();\n\t\tsession.beginTransaction();\n\t\tString hsql=\"from hibernate.pojo.GmSite as site where site.display='true'\";\n\t\tQuery query = session.createQuery(hsql);\n\t\tsession.getTransaction().commit();\n\t\tArrayList<Object> list = new ArrayList<Object>();\n\t\tlist = (ArrayList<Object>) query.list();\n\t\t\n\t\tsession.close();\n\t\treturn list;\n\t}",
"public List<LugarEntity> findall(){\n Query q = em.createQuery(\"SELECT p FROM LugarEntity p\");\n return q.getResultList();\n }",
"@Override\n public List<T> getResultList() {\n if (this.sortParameters != null) {\n for (QueryParameter parameter : this.sortParameters) {\n if (isSortAscending()) {\n sortBy(this.queryBuilder.asc(parameter));\n } else {\n sortBy(this.queryBuilder.desc(parameter));\n }\n }\n }\n\n List<T> result = new ArrayList<T>();\n\n try {\n Set<IdentityStore<?>> identityStores = this.storeSelector.getStoresForIdentityQuery(this.context, this.getIdentityType());\n AttributeStore<?> attributeStore = this.storeSelector.getStoreForAttributeOperation(context);\n\n for (IdentityStore<?> store : identityStores) {\n for (T identityType : store.fetchQueryResults(this.context, this)) {\n configureDefaultPartition(this.context, identityType, store, this.partitionManager);\n\n if (attributeStore != null) {\n attributeStore.loadAttributes(this.context, identityType);\n }\n\n result.add(identityType);\n }\n }\n } catch (Exception e) {\n throw MESSAGES.queryIdentityTypeFailed(this, e);\n }\n\n return result;\n }",
"private List<E> convertObjects(List<PersistentObject> objects) throws IOException {\n List<E> entities = new ArrayList<>();\n\n for (PersistentObject object : objects) {\n entities.add(converter.convert(object));\n }\n\n return entities;\n }",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<Empregado> getList() {\n\t\treturn em.createQuery(\"SELECT e FROM Empregado e where e.ativo = true\").getResultList();\r\n\t}",
"public static <T extends Entidad> List<Object> buildValueList(T... entityList) {\r\n\t\tList<Object> values = new ArrayList<Object>();\r\n\t\tif (!ObjectUtils.isEmpty(entityList)) {\r\n\t\t\tfor (T entity: entityList) {\r\n\t\t\t\tvalues.add(entity.getValue());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn values;\r\n\t}",
"@Override\n public List<CategoryDTO> listAll() {\n List<CategoryDTO> result = new ArrayList<>();\n List<Category> listCategory = categoryRepository.findAll();\n for (Category category: listCategory){\n result.add(categoryConverter.toDTO(category));\n }\n return result;\n }",
"@NotNull\r\n Entity[] getEntities();",
"List<Product> getProductsList();",
"ArrayList<E> getAll();",
"@Override\n public List<R> getAll() {\n return onFindForList(getSession().createCriteria(entityClass).list());\n }",
"Listof<X> toList();",
"public static ArrayList<? extends Entity>getEntities(){\n\t\tArrayList<Entity> totalEntities = new ArrayList<Entity>();\n\t\ttotalEntities.addAll(humans);\n\t\ttotalEntities.addAll(zombies);\n\n\t\treturn totalEntities;\n\t}",
"public List<EspecieEntity> encontrarTodos(){\r\n Query todos =em.createQuery(\"select p from EspecieEntity p\");\r\n return todos.getResultList();\r\n }",
"List<BeanPedido> getPedidos();",
"@Override\r\n\tpublic List<OrderDTO> findAllList() {\n\t\tList<OrderMaster> orderMasterList = orderMasterService.findAllOrderMaster();\r\n\t\t\r\n\t\tList<OrderDTO> orderDTOList = OrderMaster2OrderDTOConverter.convert(orderMasterList);\r\n\t\t\r\n\t\treturn orderDTOList;\r\n\t}",
"private List<EnrichmentEntity> enrichmentEntities (BirthCaseEnrichment birthCaseEnrichment) {\n ArrayList<EnrichmentEntity> entities = new ArrayList<>();\n\n// for(OrganisationsToInformResponse otir : birthCaseEnrichment.getOrganisationsToInform()) {\n for(OrganisationsToInformResponse otir : birthCaseEnrichment.getOrganisationsToInformResponse()) {\n entities.add(\n createEnrichmentEntity(birthCaseEnrichment.getCouncil(), otir.getOrganisation(), otir.isResponse() ) );\n }\n\n return entities;\n }",
"public List<T> list()\n\t{\n\t\tfinal List<T> list = this.dao.findAll();\n\t\treturn list;\n\t}",
"public CuentaEntity toEntity() {\r\n CuentaEntity cuentaE = super.toEntity();\r\n if (this.tarjeta != null) {\r\n if (!this.tarjeta.isEmpty()) {\r\n List<TarjetaEntity> tarjetasEntity = new ArrayList<>();\r\n for (TarjetaDTO dtoTarjeta : tarjeta) {\r\n tarjetasEntity.add(dtoTarjeta.toEntity());\r\n }\r\n cuentaE.setTarjeta(tarjetasEntity);\r\n }\r\n }\r\n if (this.ordenPagos != null) {\r\n if (!this.ordenPagos.isEmpty()) {\r\n List<OrdenPagoEntity> ordenesEntity = new ArrayList<>();\r\n for (OrdenPagoDTO dtoOrdenPago : ordenPagos) {\r\n ordenesEntity.add(dtoOrdenPago.toEntity());\r\n }\r\n cuentaE.setOrdenPagos(ordenesEntity);\r\n }\r\n }\r\n \r\n if (this.estudiante != null) {\r\n System.out.println(\"---------------------------------------------------343434343\");\r\n EstudianteEntity es = estudiante.toEntity();\r\n cuentaE.setEstudiante(es);\r\n System.out.println(es.getDocumento());\r\n System.out.println(cuentaE.getEstudiante());\r\n System.out.println(cuentaE.getEstudiante().getDocumento());\r\n }\r\n\r\n return cuentaE;\r\n }",
"protected EntityList encodeList(Object object, MapEntity map) {\n\t\tif (map == null || object == null) {\n\t\t\treturn null;\n\t\t}\n\t\tEntityList target = (EntityList) map.getTarget();\n\t\tSimpleList<String> ignoreIds = new SimpleList<String>();\n\t\tif (object instanceof Collection<?>) {\n\t\t\tCollection<?> list = (Collection<?>) object;\n\t\t\tfor (Iterator<?> i = list.iterator(); i.hasNext();) {\n\t\t\t\tObject item = i.next();\n\t\t\t\t/* DEEP 0 */\n\t\t\t\tEntity ignore = encode(item, map);\n\t\t\t\tif (ignore != null) {\n\t\t\t\t\tignoreIds.add(ignore.getString(ID));\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (object.getClass().isArray()) {\n\t\t\tTokener tokener = map.getTokener();\n\t\t\tfor (Object item : ((Object[]) object)) {\n\t\t\t\tif (tokener.getKey(item) == null) {\n\t\t\t\t\t/* DEEP 0 */\n\t\t\t\t\tEntity ignore = encode(item, map);\n\t\t\t\t\tif (ignore != null) {\n\t\t\t\t\t\tignoreIds.add(ignore.getString(ID));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn target;\n\t\t} else {\n\t\t\tEntity ignore = encode(object, map);\n\t\t\tif (ignore != null) {\n\t\t\t\tignoreIds.add(ignore.getString(ID));\n\t\t\t}\n\t\t}\n\t\tif (target.isComparator() == false) {\n\t\t\tSimpleIterator<Entity> queueIterator = new SimpleIterator<Entity>(target);\n\t\t\twhile (queueIterator.hasNext()) {\n\t\t\t\tEntity json = queueIterator.next();\n\t\t\t\tString id = json.getString(ID);\n\t\t\t\tif (ignoreIds.contains(id) == false) {\n\t\t\t\t\tObject item = this.getObject(id);\n\t\t\t\t\tif (item != null) {\n\t\t\t\t\t\tString className = item.getClass().getName();\n\t\t\t\t\t\tencode(item, className, map, null);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn target;\n\t}",
"public abstract List toNameValueList();",
"@Override\r\n public ViviendaEntity toEntity() {\r\n ViviendaEntity viviendaEntity = super.toEntity();\r\n if (contratos != null) {\r\n List<ContratoEntity> contratosEntity = new ArrayList<>();\r\n for (ContratoDTO dtoContrato : contratos) {\r\n contratosEntity.add(dtoContrato.toEntity());\r\n }\r\n viviendaEntity.setContratos(contratosEntity);\r\n }\r\n\r\n if (cuartos != null) {\r\n List<CuartoEntity> cuartoEntities = new ArrayList<>();\r\n for (CuartoDTO dto : cuartos) {\r\n cuartoEntities.add(dto.toEntity());\r\n }\r\n viviendaEntity.setCuartos(cuartoEntities);\r\n }\r\n\r\n if (sitiosDeInteres != null) {\r\n List<SitioInteresEntity> entities = new ArrayList<>();\r\n for (SitioInteresDTO dto : sitiosDeInteres) {\r\n entities.add(dto.toEntity());\r\n }\r\n viviendaEntity.setSitiosDeInteres(entities);\r\n }\r\n\r\n if (calificaciones != null) {\r\n List<CalificacionEntity> entities = new ArrayList<>();\r\n for (CalificacionDTO dto : calificaciones) {\r\n entities.add(dto.toEntity());\r\n }\r\n viviendaEntity.setCalificaciones(entities);\r\n }\r\n\r\n if (serviciosOfrecidos != null) {\r\n viviendaEntity.setServiciosIncluidos(serviciosOfrecidos);\r\n }\r\n\r\n if (serviciosAdicionales != null) {\r\n List<ServicioAdicionalEntity> entities = new ArrayList<>();\r\n for (ServicioAdicionalDTO dto : serviciosAdicionales) {\r\n entities.add(dto.toEntity());\r\n }\r\n viviendaEntity.setServiciosAdicionales(entities);\r\n }\r\n\r\n return viviendaEntity;\r\n }",
"public <T extends Entity> List<T> getListObjectByResultSet(T entityT, ResultSet rs) throws NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, SQLException, InstantiationException{\n\t\tDBProperty dbProperty = entityT.getDbProperty();\n\t\tList<T> list = new ArrayList<T>();\n\t\twhile(rs.next())\n\t\t{\n\t\t\tT entity = (T) entityT.getClass().newInstance();\n\t\t\tfor (DBSimplePropertyItem item : dbProperty.getDbSimplePropertyItems()) {\n\t\t\t\tMethod mRs = RESULT_SET.getMethod(\n\t\t\t\t\t\tdbQueryUtil.getMethodGetName(item.getType().getSimpleName(), item.getType()), new Class[]{String.class});\n\t\t\t\tObject obRs = mRs.invoke(rs, item.getDbName());\n\t\t\t\tClass type = (item.getType().equals(Time.class))?Date.class:item.getType();\n\t\t\t\tMethod m = entity.getClass().getMethod(dbQueryUtil.getMethodSetName(item.getAppName()), new Class[]{type});\n\t\t\t\tm.invoke(entity, obRs);\n\t\t\t}\n\t\t\t\n\t\t\tfor (DBManyToOnePropertyItem item : dbProperty\n\t\t\t\t\t.getDbManyToOnePropertyItems()) {\n\t\t\t\t//obrs = rs.getInt(\"ID_FK\")\n\t\t\t\tMethod mRs = RESULT_SET.getMethod(dbQueryUtil.getMethodGetName(item.getClassFkName().getSimpleName(), \n\t\t\t\t\t\titem.getClassFkName()), new Class[]{String.class});\n\t\t\t\tObject obRs = mRs.invoke(rs, item.getDbName());\n\t\n\t\t\t\tObject ob= item.getClassName().newInstance();\n\t\t\t\t\n\t\t\t\t//ob.setId(obRs)\n\t\t\t\tMethod mFk = ob.getClass().getMethod(dbQueryUtil.getMethodSetName(item.getAppFkName()), new Class[]{item.getClassFkName()});\n\t\t\t\tmFk.invoke(ob, obRs);\n\t\t\t\tif(!item.isLazy()){\n\t\t\t\t\tob = getObjectByObject((Entity) ob);\n\t\t\t\t}\n\t\t\t\t//entity.setXXX(ob)\n\t\t\t\tMethod m = entity.getClass().getMethod(dbQueryUtil.getMethodSetName(item.getAppName()), new Class[]{item.getClassName()});\n\t\t\t\tm.invoke(entity, ob);\n\t\t\t}\n\n\t\t\tfor (DBOneToManyPropertyItem item : dbProperty.getDbOneToManyPropertyItems()) {\n\t\t\t\tList<Entity> result = null;\n\t\t\t\tif(!item.isLazy()){\n\t\t\t\t\tMethod mRs = RESULT_SET.getMethod(\n\t\t\t\t\t\t\tdbQueryUtil.getMethodGetName(item.getClassFkName().getSimpleName(),item.getClassFkName()), new Class[]{String.class});\n\t\t\t\t\tObject obRs = mRs.invoke(rs, item.getDbName());\n\t\t\t\t\t\n\t\t\t\t\tObject ob= dbProperty.getClassName().newInstance();\n\t\t\t\t\tMethod mFk = ob.getClass().getMethod(\n\t\t\t\t\t\t\t\tdbQueryUtil.getMethodSetName(item.getAppFkName()), new Class[]{item.getClassFkName()});\n\t\t\t\t\tmFk.invoke(ob, obRs);\n\t\t\t\t\t\n\t\t\t\t\tEntity obTemp= (Entity)item.getClassName().newInstance();\n\t\t\t\t\tMethod mTemp = obTemp.getClass().getMethod(\n\t\t\t\t\t\t\t\tdbQueryUtil.getMethodSetName(obTemp.getDbProperty().getAppNameByDbName(item.getDbFkName())), new Class[]{dbProperty.getClassName()});\n\t\t\t\t\tmTemp.invoke(obTemp, ob);\n\t\t\t\t\n\t\t\t\t\tresult = getListObjectByObject(obTemp);\n\t\t\t\t\t\n\t\t\t\t\tMethod m = entity.getClass().getMethod(dbQueryUtil.getMethodSetName(item.getAppName()), new Class[]{List.class});\n\t\t\t\t\tm.invoke(entity, result);\n\t\t\t\t}\n\t\t\t}\n\t\t\tlist.add(entity);\n\t\t}\n\t\treturn list;\n\t}",
"public ArrayList<Entity> getEntities() {\n\t\treturn entities;\n\t}",
"List<String> toList(Iterable<UUID> ids) {\n\t\tList<String> list = new ArrayList<String>();\n\t\tfor (UUID guid : ids) {\n\t\t\tlist.add(guid.toString());\n\t\t}\n\t\treturn list;\n\t}",
"private void populateEntityToDeletetList()\r\n\t{\r\n\t\tentityNameListDelete = new ArrayList<String>();\r\n\t\tentityNameListDelete.add(\"edu.wustl.catissuecore.domain.Quantity\");\r\n\t\tentityNameListDelete\r\n\t\t\t\t.add(\"edu.wustl.catissuecore.domain.SpecimenCollectionRequirementGroup\");\r\n\t}",
"public List<Ent> getChildList(){\n\t\tif(this.childList != null){\n\t\t\treturn Collections.unmodifiableList(this.childList);\n\t\t}else{\n\t\t\treturn new ArrayList<Ent>();\n\t\t}\n\t}"
] | [
"0.7204198",
"0.6945512",
"0.68613684",
"0.68457246",
"0.6800744",
"0.656455",
"0.6501077",
"0.6491884",
"0.64525133",
"0.64390045",
"0.6428649",
"0.64260066",
"0.6416855",
"0.64147043",
"0.6350479",
"0.6348693",
"0.63172126",
"0.62663555",
"0.6258004",
"0.62389845",
"0.6235333",
"0.62206936",
"0.6170967",
"0.61659896",
"0.6162131",
"0.6139849",
"0.6134407",
"0.6113092",
"0.60977066",
"0.60934657",
"0.60838354",
"0.6071559",
"0.6070255",
"0.6058279",
"0.60411036",
"0.60341275",
"0.601123",
"0.5995769",
"0.59905946",
"0.59846234",
"0.59835726",
"0.59711075",
"0.5968956",
"0.5953521",
"0.5941075",
"0.5928314",
"0.5919589",
"0.5903846",
"0.59035677",
"0.59008044",
"0.58974916",
"0.58911836",
"0.58881766",
"0.58665854",
"0.5845339",
"0.5834221",
"0.58335364",
"0.5833117",
"0.5823927",
"0.58122516",
"0.58101845",
"0.5791856",
"0.5781053",
"0.5769952",
"0.57682234",
"0.5761861",
"0.5758244",
"0.5749873",
"0.5749484",
"0.574437",
"0.5739722",
"0.5738555",
"0.5734187",
"0.5730505",
"0.5728991",
"0.5726352",
"0.57250345",
"0.57078636",
"0.57051784",
"0.57046413",
"0.569782",
"0.5686377",
"0.5676445",
"0.5675285",
"0.5674432",
"0.5673627",
"0.5668316",
"0.566533",
"0.56603855",
"0.56549454",
"0.5650685",
"0.5640089",
"0.5632981",
"0.56305015",
"0.5630321",
"0.562724",
"0.5626135",
"0.56256187",
"0.5620856",
"0.5616424"
] | 0.6688693 | 5 |
This method was generated by MyBatis Generator. This method corresponds to the database table qt_activitytype | int countByExample(QtActivitytypeExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected List<Daily_activity_type> getDailyActivityType() {\n return super.emMain.createQuery(\"FROM Daily_activity_type WHERE dat_code <> 0 ORDER BY dat_order ASC\",\n Daily_activity_type.class).getResultList();\n }",
"public Vector listActivityTypeActivity() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT A.activity_type_id,B.specification_id,B.specification_name, A.transaction_type_id FROM \"+ \n DBHelper.USEA_ACTIVITY_CATEGORY+\" A, \"+DBHelper.USEA_SPECIFICATION_MASTER+\" B \"+\n \" WHERE A.activity_type_id = B.activity_type_id AND A.activity_type_name = ? and B.active_status = ? order by B.specification_name\";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, \"Activity\");\n prepStmt.setBoolean(2, true);\n \n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) {\n \n this.specificationId = rs.getString(2);\n this.specificationName = rs.getString(3);\n String txnTypeId = rs.getString(4);\n \n String [] activityList = {specificationId,specificationName,txnTypeId};\n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"public void setActivityType(ActivityType activityType) {\n this.activityType = activityType;\n }",
"public String toXML() {\n StringBuffer ret = new StringBuffer();\n ret.append(\"<table name=\\\"MTBTypes\\\">\\n\");\n ret.append(\" <column name=\\\"_MTBTypes_key\\\"\\n\");\n ret.append(\" value=\\\"\").append((MTBTypesKey_is_initialized ? ((MTBTypesKey == null ? null : MTBTypesKey.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"type\\\"\\n\");\n ret.append(\" value=\\\"\").append((type_is_initialized ? ((type == null ? null : type)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"description\\\"\\n\");\n ret.append(\" value=\\\"\").append((description_is_initialized ? ((description == null ? null : description)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"tableName\\\"\\n\");\n ret.append(\" value=\\\"\").append((tableName_is_initialized ? ((tableName == null ? null : tableName)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"columnName\\\"\\n\");\n ret.append(\" value=\\\"\").append((columnName_is_initialized ? ((columnName == null ? null : columnName)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"create_user\\\"\\n\");\n ret.append(\" value=\\\"\").append((createUser_is_initialized ? ((createUser == null ? null : createUser)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"create_date\\\"\\n\");\n ret.append(\" value=\\\"\").append((createDate_is_initialized ? ((createDate == null ? null : createDate.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"update_user\\\"\\n\");\n ret.append(\" value=\\\"\").append((updateUser_is_initialized ? ((updateUser == null ? null : updateUser)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"update_date\\\"\\n\");\n ret.append(\" value=\\\"\").append((updateDate_is_initialized ? ((updateDate == null ? null : updateDate.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\"</table>\");\n return ret.toString();\n }",
"public int getSqlType() { return _type; }",
"@Query(\"SELECT * FROM wellbeing_questions WHERE activity_type == :activityType\")\n List<WellbeingQuestion> getQuestionsByActivityType(String activityType);",
"public abstract String getTipoByAct(Actividad activity) throws PersistenceException, ClassNotFoundException;",
"public abstract String toJavaType(int sqlType);",
"Collection<ActivityType> getActivityTypes() throws DataAccessException;",
"void storeActivityType(ActivityType activityType) throws DataAccessException;",
"List<QtActivitytype> selectByExample(QtActivitytypeExample example);",
"QtActivitytype selectByPrimaryKey(Integer id);",
"RelDataType getColumnType(String sql);",
"public void setActivitytypeid(Integer activitytypeid) {\n this.activitytypeid = activitytypeid;\n }",
"public ActivityType getActivityType() {\n return activityType;\n }",
"public void setActivityType(ActivityType activity, UsertypeType type) {\n\t\tactivity.setUsertype(type);\n\t}",
"private void setActivity(int relType){\n\t\tActivity act = new Activity();\n\t\tActivityDefinition actDef = new ActivityDefinition();\n\t\tactDef.setType(INTERACT_TYPE);\n\t\tactDef.setInteractionType(INTERACT_TYPE);\n\t\t//InteractionComponent iac = new InteractionComponent();\n\t\tact.setDefinition(actDef);\n\t\t\n\t\tHashMap<String, String> names = new HashMap<String, String>();\n\t\tnames.put(\"en\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"en\")));\n\t\tnames.put(\"de\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"de\")));\n\n\t\tactDef.setName(names);\n\t\tthis.setObject(act);\n\t\n\t}",
"public Vector listActivityTypeRegister() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT B.specification_id,B.specification_name, A.transaction_type_id FROM \"+ \n DBHelper.USEA_ACTIVITY_CATEGORY+\" A, \"+DBHelper.USEA_SPECIFICATION_MASTER+\" B \"+\n \" WHERE A.activity_type_id = B.activity_type_id AND A.activity_type_name = ? and B.active_status = ? \";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, \"Registration\");\n prepStmt.setBoolean(2 , true);\n \n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) { \n this.specificationId = rs.getString(1);\n this.specificationName = rs.getString(2);\n String txnTypeId = rs.getString(3);\n \n String [] activityList = {specificationId,specificationName,txnTypeId};\n Debug.print(\" Specification Id : \"+specificationId);\n Debug.print(\" specificationName : \"+specificationName);\n Debug.print(\" txnTypeId : \"+txnTypeId);\n \n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"private void setActivity(int relType){\n\t\tActivity act = new Activity();\n\t\tActivityDefinition actDef = new ActivityDefinition();\n\t\tactDef.setType(INTERACT_TYPE);\n\t\tactDef.setInteractionType(INTERACT_TYPE);\n\t\t//InteractionComponent iac = new InteractionComponent();\n\t\tact.setDefinition(actDef);\n\t\t\n\t\tHashMap<String, String> names = new HashMap<String, String>();\n\t\t//names.put(\"en\",\"Identifying problems\");\n\t\tnames.put(\"en\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"en\")));\n\t\tnames.put(\"de\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"de\")));\n\n\t\tactDef.setName(names);\n\t\tthis.setObject(act);\n\t\n\t}",
"public String getEntityTypeName() { return \"jp.sourceforge.ea2ddl.dao.exentity.TTrxtypes\"; }",
"public Column.Type getType();",
"public String getTableDbName() { return \"t_trxtypes\"; }",
"public int getJdbcType();",
"@Override\r\n\tpublic String getType() {\n\t\treturn \"column\";\r\n\t}",
"com.rpg.framework.database.Protocol.ItemType getType();",
"ActivityType loadActivityType(int id) throws DataAccessException;",
"private void setActivityType(int value) {\n this.bitField0_ |= 4;\n this.activityType_ = value;\n }",
"@Override\n public RelDataType getRowType(final RelDataTypeFactory typeFactory) {\n final Schema kuduSchema = this.getKuduTable().getSchema();\n final RelDataTypeFactory.Builder builder = new RelDataTypeFactory.Builder(typeFactory);\n\n for (int i = 0; i < kuduSchema.getColumnCount(); i++) {\n final ColumnSchema currentColumn = kuduSchema.getColumnByIndex(i);\n switch (currentColumn.getType()) {\n case INT8:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.TINYINT).nullable(currentColumn.isNullable());\n break;\n case INT16:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.SMALLINT).nullable(currentColumn.isNullable());\n break;\n case INT32:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.INTEGER).nullable(currentColumn.isNullable());\n break;\n case INT64:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.BIGINT).nullable(currentColumn.isNullable());\n break;\n case BINARY:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.VARBINARY).nullable(currentColumn.isNullable());\n break;\n case STRING:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.VARCHAR).nullable(currentColumn.isNullable());\n break;\n case BOOL:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.BOOLEAN).nullable(currentColumn.isNullable());\n break;\n case FLOAT:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.FLOAT).nullable(currentColumn.isNullable());\n break;\n case DOUBLE:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.DOUBLE).nullable(currentColumn.isNullable());\n break;\n case UNIXTIME_MICROS:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.TIMESTAMP).nullable(currentColumn.isNullable());\n break;\n case DECIMAL:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.DECIMAL).nullable(currentColumn.isNullable());\n break;\n }\n }\n\n return builder.build();\n }",
"public TypeData getTypeData(MigrationType type);",
"private String getNameFromType(int activityType) {\n switch (activityType) {\n case DetectedActivity.IN_VEHICLE:\n return \"in_vehicle\";\n case DetectedActivity.ON_BICYCLE:\n return \"on_bicycle\";\n case DetectedActivity.ON_FOOT:\n return \"on_foot\";\n case DetectedActivity.STILL:\n return \"still\";\n case DetectedActivity.UNKNOWN:\n return \"unknown\";\n case DetectedActivity.TILTING:\n return \"tilting\";\n }\n return \"unknown\";\n }",
"@Override\n public String convertToDatabaseColumn(TransactionType transactionType) {\n if (transactionType == null) return null;\n\n return transactionType.getTransactionType();\n }",
"@Override\n public Object toJdbcType(Object value) {\n return value;\n }",
"public List<LogRoomTypeHistory>getAllRoomTypeHistory(TblRoomType roomType);",
"ResultColumn getTypeIdColumn(TableReference tableReference);",
"public ScGridColumn<AcActionAutoCorrectedLog> newActualTypeColumn()\n {\n return newActualTypeColumn(\"Actual Type\");\n }",
"public static \tTransactionEventType getTransactionEventTypeSample(){\n\t\t\n\t\tTransactionEventType transactionEventType=new TransactionEventType();\n\t\t\n\t\tGregorianCalendar gRecordTime = new GregorianCalendar();\n\t\tXMLGregorianCalendar recordTime;\n\t\ttry {\n\t\t\trecordTime = DatatypeFactory.newInstance().newXMLGregorianCalendar(gRecordTime);\n\t\t\ttransactionEventType.setEventTime(recordTime);\n\t\t\ttransactionEventType.setRecordTime(recordTime);\n\t\t} catch (DatatypeConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttransactionEventType.setEventTimeZoneOffset(\"eventTimeZoneOffset_T\");\n\t\ttransactionEventType.setParentID(\"parentID_T\");\n\t\t\n\t\tEPCListType transactionEventEPCs=new EPCListType();\n\t\t\n\t\t\n\t\torg.oliot.model.epcis.EPC epc1=new org.oliot.model.epcis.EPC (\"epc1_T\");\n\t\t\n\t\torg.oliot.model.epcis.EPC epc2=new org.oliot.model.epcis.EPC (\"epc2_T\");\n\t\t\t\t\n\t\ttransactionEventEPCs.getEpc().add(epc1);\n\t\ttransactionEventEPCs.getEpc().add(epc2);\n\t\ttransactionEventType.setEpcList(transactionEventEPCs);\n\t\t\n\t\ttransactionEventType.setAction(ActionType.fromValue(\"ADD\"));\t\n\t\ttransactionEventType.setBizStep(\"bizStep_T\");\n\t\ttransactionEventType.setDisposition(\"disposition_T\");\n\t\t\n\t\t\n\t\tReadPointType readPoint=new ReadPointType();\n\t\treadPoint.setId(\"ReadPoint_object\");\n\t\tReadPointExtensionType readPointExtension=new ReadPointExtensionType();\n\t\treadPoint.setExtension(readPointExtension);\n\t\t\n\t\ttransactionEventType.setReadPoint(readPoint);\n\t\t\n\t\tBusinessLocationType businessLocation =new BusinessLocationType();\n\t\tbusinessLocation.setId(\"BusinessLocation_object\");\n\t\tBusinessLocationExtensionType businessLocationExtension= new BusinessLocationExtensionType();\n\t\tbusinessLocation.setExtension(businessLocationExtension);\n\t\t\n\t\ttransactionEventType.setBizLocation(businessLocation);\n\t\t\n\t\tBusinessTransactionListType businessTransactionList=new BusinessTransactionListType();\t\n\t\tBusinessTransactionType businessTransaction1=new BusinessTransactionType();\n\t\tbusinessTransaction1.setType(\"type1_o\");\n\t\tbusinessTransaction1.setValue(\"value1_o\");\n\t\tBusinessTransactionType businessTransaction2=new BusinessTransactionType();\n\t\tbusinessTransaction1.setType(\"type2_o\");\n\t\tbusinessTransaction1.setValue(\"value2_o\");\n\t\tbusinessTransactionList.getBizTransaction().add(businessTransaction1);\n\t\tbusinessTransactionList.getBizTransaction().add(businessTransaction2);\n\t\ttransactionEventType.setBizTransactionList(businessTransactionList);\n\t\t\n\t\t\n\t\tTransactionEventExtensionType transactionEventExtension =new TransactionEventExtensionType();\n\t\t\n\t\tQuantityListType quantityList =new QuantityListType();\n\t\tQuantityElementType quantityElement1=new QuantityElementType();\n\t\tquantityElement1.setEpcClass(\"epcClass1_O\");\n\t\tquantityElement1.setQuantity(111);\n\t\tquantityElement1.setUom(\"uom1_O\");\n\t\tQuantityElementType quantityElement2=new QuantityElementType();\n\t\tquantityElement2.setEpcClass(\"epcClass2_O\");\n\t\tquantityElement2.setQuantity(111);\n\t\tquantityElement2.setUom(\"uom2_O\");\n\t\tquantityList.getQuantityElement().add(quantityElement1);\n\t\tquantityList.getQuantityElement().add(quantityElement2);\n\t\t\n\t\ttransactionEventExtension.setQuantityList(quantityList);\n\t\t\n\t\tDestinationListType destinationList =new DestinationListType();\n\t\tSourceDestType sourceDest3=new SourceDestType( );\n\t\tSourceDestType sourceDest4=new SourceDestType( );\n\t\tsourceDest3.setValue(\"value3\");\n\t\tsourceDest3.setType(\"type3\");\n\t\tsourceDest4.setValue(\"value4\");\n\t\tsourceDest4.setType(\"type4\");\n\t\t\n\t\tdestinationList.getDestination().add(sourceDest3);\n\t\tdestinationList.getDestination().add(sourceDest4);\n\t\ttransactionEventExtension.setDestinationList(destinationList);\n\t\t\n\t\tSourceListType sourceList =new SourceListType();\n\t\tSourceDestType sourceDest1=new SourceDestType( );\n\t\tSourceDestType sourceDest2=new SourceDestType( );\n\t\tsourceDest1.setValue(\"value1\");\n\t\tsourceDest1.setType(\"type1\");\n\t\tsourceDest1.setValue(\"value2\");\n\t\tsourceDest1.setType(\"type2\");\n\t\t\n\t\tsourceList.getSource().add(sourceDest1);\n\t\tsourceList.getSource().add(sourceDest2);\n\t\t\n\t\t\n\t\ttransactionEventExtension.setSourceList(sourceList);\n\t\t\n\t\t\n\t\t\n\n\t\tTransactionEventExtension2Type transactionEventExtension2=\n\t\t\t\tnew TransactionEventExtension2Type();\n\t\t\n\t\ttransactionEventExtension.setExtension(transactionEventExtension2);\n\t\t\n\t\t\n\t\ttransactionEventType.setExtension(transactionEventExtension);\n\t\t\n\t\treturn transactionEventType;\n\t\t\n\t}",
"@Override\n\tpublic void setType(int type) {\n\t\t_expandoColumn.setType(type);\n\t}",
"private String getNameFromType(int activityType) {\n switch(activityType) {\n case DetectedActivity.IN_VEHICLE:\n return \"in_vehicle\";\n case DetectedActivity.ON_BICYCLE:\n return \"on_bicycle\";\n case DetectedActivity.ON_FOOT:\n return \"on_foot\";\n case DetectedActivity.STILL:\n return \"still\";\n case DetectedActivity.UNKNOWN:\n return \"unknown\";\n case DetectedActivity.TILTING:\n return \"tilting\";\n }\n return \"unrecognized\";\n }",
"public Integer getActivitytypeid() {\n return activitytypeid;\n }",
"@Nullable\n @Generated\n @Selector(\"handoffUserActivityType\")\n public native String handoffUserActivityType();",
"@Override\n public String getType(){\n return Type;\n }",
"public Vector listActivityCategory() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT activity_type_id,activity_type_name FROM \"+ DBHelper.USEA_ACTIVITY_CATEGORY;\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) {\n this.activityTypeId = rs.getString(1);\n this.activityTypeName = rs.getString(2);\n String [] activityList = {activityTypeId,activityTypeName};\n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"UserType getType();",
"HotelType selectByPrimaryKey(Integer typeiId);",
"public String getType() {return type;}",
"TableType getTableType()\n {\n return tableType;\n }",
"public static AuditType exampleAuditType() {\r\n AuditType auditType = new AuditType();\r\n auditType.setActionName(\"actionName\");\r\n auditType.setAuditCategory(\"auditCategory\");\r\n auditType.setContextId(\"contextId\");\r\n auditType.setCreatedOnDb(3L);\r\n auditType.setHibernateVersionNumber(4L);\r\n auditType.setId(\"id\");\r\n auditType.setLabelInt01(\"labelInt01\");\r\n auditType.setLabelInt02(\"labelInt02\");\r\n auditType.setLabelInt03(\"labelInt03\");\r\n auditType.setLabelInt04(\"labelInt04\");\r\n auditType.setLabelInt05(\"labelInt05\");\r\n auditType.setLabelString01(\"labelString01\");\r\n auditType.setLabelString02(\"labelString02\");\r\n auditType.setLabelString03(\"labelString03\");\r\n auditType.setLabelString04(\"labelString04\");\r\n auditType.setLabelString05(\"labelString05\");\r\n auditType.setLabelString06(\"labelString06\");\r\n auditType.setLabelString07(\"labelString07\");\r\n auditType.setLabelString08(\"labelString08\");\r\n auditType.setLastUpdatedDb(5L);\r\n return auditType;\r\n }",
"public abstract QCEntryType getType();",
"RelDataType getResultType(String sql);",
"@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);",
"public abstract String toHiveType(int sqlType);",
"@Override\n public String getJavaByJdbcType(DbAttribute attribute, int type) {\n String jdbcType = TypesMapping.getSqlNameByType(type);\n DbType dbType;\n if (attribute != null) {\n dbType = new DbType(\n jdbcType,\n attribute.getMaxLength(),\n attribute.getAttributePrecision(),\n attribute.getScale(),\n attribute.isMandatory());\n } else {\n dbType = new DbType(jdbcType);\n }\n\n String typeName = getJavaByJdbcType(dbType);\n\n if (usePrimitives != null && usePrimitives) {\n String primitive = classToPrimitive.get(typeName);\n if (primitive != null) {\n return primitive;\n }\n }\n\n return typeName;\n }",
"RelDataType getParameterRowType();",
"private static String mapStatementSetter(final FieldType.Type type) {\n switch (type) {\n case DATE:\n return \"setDate\";\n case INTEGER:\n return \"setInt\";\n case REAL:\n return \"setDouble\";\n case STRING:\n return \"setString\";\n default:\n return null;\n }\n }",
"@Override\n\tpublic int getType() {\n\t\treturn 1;\n\t}",
"CmsActivity selectByPrimaryKey(String activityId);",
"public void setTransactionType(int transactionChoice);",
"public int getType() { return type; }",
"public int getType() { return type; }",
"@Override\r\n\t\tpublic Map<String, Class<?>> getTypeMap() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public ConcatColumn(final Type type) {\n this.type = type;\n numTuples = 0;\n columnIds = Maps.newTreeMap();\n readOnly = false;\n }",
"@Override\n public String getType() {\n return \"\";\n }",
"@SuppressWarnings({ \"all\", \"unchecked\", \"rawtypes\" })\npublic interface IXActivity extends VertxPojo, Serializable {\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键\n */\n public IXActivity setKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键\n */\n public String getKey();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TYPE</code>. 「type」- 操作类型\n */\n public IXActivity setType(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TYPE</code>. 「type」- 操作类型\n */\n public String getType();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.SERIAL</code>. 「serial」- 变更记录号\n */\n public IXActivity setSerial(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.SERIAL</code>. 「serial」- 变更记录号\n */\n public String getSerial();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.DESCRIPTION</code>. 「description」-\n * 操作描述信息\n */\n public IXActivity setDescription(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.DESCRIPTION</code>. 「description」-\n * 操作描述信息\n */\n public String getDescription();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_ID</code>. 「modelId」-\n * 组所关联的模型identifier,用于描述\n */\n public IXActivity setModelId(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_ID</code>. 「modelId」-\n * 组所关联的模型identifier,用于描述\n */\n public String getModelId();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_KEY</code>. 「modelKey」-\n * 组所关联的模型记录ID,用于描述哪一个Model中的记录\n */\n public IXActivity setModelKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_KEY</code>. 「modelKey」-\n * 组所关联的模型记录ID,用于描述哪一个Model中的记录\n */\n public String getModelKey();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_CATEGORY</code>.\n * 「modelCategory」- 关联的category记录,只包含叶节点\n */\n public IXActivity setModelCategory(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_CATEGORY</code>.\n * 「modelCategory」- 关联的category记录,只包含叶节点\n */\n public String getModelCategory();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TASK_NAME</code>. 「taskName」- 任务名称\n */\n public IXActivity setTaskName(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TASK_NAME</code>. 「taskName」- 任务名称\n */\n public String getTaskName();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TASK_SERIAL</code>. 「taskSerial」-\n * 任务单号\n */\n public IXActivity setTaskSerial(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TASK_SERIAL</code>. 「taskSerial」-\n * 任务单号\n */\n public String getTaskSerial();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_OLD</code>. 「recordOld」-\n * 变更之前的数据(用于回滚)\n */\n public IXActivity setRecordOld(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_OLD</code>. 「recordOld」-\n * 变更之前的数据(用于回滚)\n */\n public String getRecordOld();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_NEW</code>. 「recordNew」-\n * 变更之后的数据(用于更新)\n */\n public IXActivity setRecordNew(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_NEW</code>. 「recordNew」-\n * 变更之后的数据(用于更新)\n */\n public String getRecordNew();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.SIGMA</code>. 「sigma」- 用户组绑定的统一标识\n */\n public IXActivity setSigma(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.SIGMA</code>. 「sigma」- 用户组绑定的统一标识\n */\n public String getSigma();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.LANGUAGE</code>. 「language」- 使用的语言\n */\n public IXActivity setLanguage(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.LANGUAGE</code>. 「language」- 使用的语言\n */\n public String getLanguage();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.ACTIVE</code>. 「active」- 是否启用\n */\n public IXActivity setActive(Boolean value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.ACTIVE</code>. 「active」- 是否启用\n */\n public Boolean getActive();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.METADATA</code>. 「metadata」-\n * 附加配置数据\n */\n public IXActivity setMetadata(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.METADATA</code>. 「metadata」-\n * 附加配置数据\n */\n public String getMetadata();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_AT</code>. 「createdAt」-\n * 创建时间\n */\n public IXActivity setCreatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_AT</code>. 「createdAt」-\n * 创建时间\n */\n public LocalDateTime getCreatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_BY</code>. 「createdBy」-\n * 创建人\n */\n public IXActivity setCreatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_BY</code>. 「createdBy」-\n * 创建人\n */\n public String getCreatedBy();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_AT</code>. 「updatedAt」-\n * 更新时间\n */\n public IXActivity setUpdatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_AT</code>. 「updatedAt」-\n * 更新时间\n */\n public LocalDateTime getUpdatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_BY</code>. 「updatedBy」-\n * 更新人\n */\n public IXActivity setUpdatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_BY</code>. 「updatedBy」-\n * 更新人\n */\n public String getUpdatedBy();\n\n // -------------------------------------------------------------------------\n // FROM and INTO\n // -------------------------------------------------------------------------\n\n /**\n * Load data from another generated Record/POJO implementing the common\n * interface IXActivity\n */\n public void from(IXActivity from);\n\n /**\n * Copy data into another generated Record/POJO implementing the common\n * interface IXActivity\n */\n public <E extends IXActivity> E into(E into);\n\n @Override\n public default IXActivity fromJson(io.vertx.core.json.JsonObject json) {\n setOrThrow(this::setKey,json::getString,\"KEY\",\"java.lang.String\");\n setOrThrow(this::setType,json::getString,\"TYPE\",\"java.lang.String\");\n setOrThrow(this::setSerial,json::getString,\"SERIAL\",\"java.lang.String\");\n setOrThrow(this::setDescription,json::getString,\"DESCRIPTION\",\"java.lang.String\");\n setOrThrow(this::setModelId,json::getString,\"MODEL_ID\",\"java.lang.String\");\n setOrThrow(this::setModelKey,json::getString,\"MODEL_KEY\",\"java.lang.String\");\n setOrThrow(this::setModelCategory,json::getString,\"MODEL_CATEGORY\",\"java.lang.String\");\n setOrThrow(this::setTaskName,json::getString,\"TASK_NAME\",\"java.lang.String\");\n setOrThrow(this::setTaskSerial,json::getString,\"TASK_SERIAL\",\"java.lang.String\");\n setOrThrow(this::setRecordOld,json::getString,\"RECORD_OLD\",\"java.lang.String\");\n setOrThrow(this::setRecordNew,json::getString,\"RECORD_NEW\",\"java.lang.String\");\n setOrThrow(this::setSigma,json::getString,\"SIGMA\",\"java.lang.String\");\n setOrThrow(this::setLanguage,json::getString,\"LANGUAGE\",\"java.lang.String\");\n setOrThrow(this::setActive,json::getBoolean,\"ACTIVE\",\"java.lang.Boolean\");\n setOrThrow(this::setMetadata,json::getString,\"METADATA\",\"java.lang.String\");\n setOrThrow(this::setCreatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},\"CREATED_AT\",\"java.time.LocalDateTime\");\n setOrThrow(this::setCreatedBy,json::getString,\"CREATED_BY\",\"java.lang.String\");\n setOrThrow(this::setUpdatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},\"UPDATED_AT\",\"java.time.LocalDateTime\");\n setOrThrow(this::setUpdatedBy,json::getString,\"UPDATED_BY\",\"java.lang.String\");\n return this;\n }\n\n\n @Override\n public default io.vertx.core.json.JsonObject toJson() {\n io.vertx.core.json.JsonObject json = new io.vertx.core.json.JsonObject();\n json.put(\"KEY\",getKey());\n json.put(\"TYPE\",getType());\n json.put(\"SERIAL\",getSerial());\n json.put(\"DESCRIPTION\",getDescription());\n json.put(\"MODEL_ID\",getModelId());\n json.put(\"MODEL_KEY\",getModelKey());\n json.put(\"MODEL_CATEGORY\",getModelCategory());\n json.put(\"TASK_NAME\",getTaskName());\n json.put(\"TASK_SERIAL\",getTaskSerial());\n json.put(\"RECORD_OLD\",getRecordOld());\n json.put(\"RECORD_NEW\",getRecordNew());\n json.put(\"SIGMA\",getSigma());\n json.put(\"LANGUAGE\",getLanguage());\n json.put(\"ACTIVE\",getActive());\n json.put(\"METADATA\",getMetadata());\n json.put(\"CREATED_AT\",getCreatedAt()==null?null:getCreatedAt().toString());\n json.put(\"CREATED_BY\",getCreatedBy());\n json.put(\"UPDATED_AT\",getUpdatedAt()==null?null:getUpdatedAt().toString());\n json.put(\"UPDATED_BY\",getUpdatedBy());\n return json;\n }\n\n}",
"public static AuditType exampleAuditTypeDb() {\r\n return exampleAuditTypeDb(\"testCategory\", \"testAction\");\r\n }",
"String getSQLTypeName() throws SQLException;",
"public QueryType getType();",
"@Schema(description = \"When sub-classing, this defines the sub-class entity name\")\n\n\tpublic String getAtType() {\n\t\treturn type;\n\t}",
"public void updateData(String typeActivity) {\n try {\n Float.parseFloat(this.inputNominal.getText());\n } catch (Exception err) {\n this.alert.showMessageDialog(null, \"Silahkan input nominal dengan benar\");\n }\n \n try {\n this.inputDate.getDate().getTime();\n } catch (Exception err) {\n this.alert.showMessageDialog(null, \"Silahkan input tanggal dengan benar\");\n }\n \n Time time = new Time();\n time.setDate(this.inputDate.getDate());\n \n String description = this.inputDescription.getText();\n float nominal = Float.parseFloat(this.inputNominal.getText());\n String dateAt = time.parseDatetime();\n \n ActivityService activityService = new ActivityService();\n \n activityService\n .setId(this.id)\n .setDescription(description)\n .setNominal(nominal)\n .setDateAt(dateAt)\n .setUser(this.dashboard.user);\n \n try {\n if (typeActivity.equals(\"+\")) {\n activityService.updateIncome();\n } else {\n activityService.updateExpense();\n }\n this.dashboard.refreshUI();\n this.dashboard.resetForm();\n } catch (Exception err) {\n this.alert.showMessageDialog(null, err.getMessage());\n }\n }",
"public void representDataOnActors(String type)\r\n\t{\n\t}",
"public String getType() { return type; }",
"public long getCount(MigrationType type);",
"fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType();",
"public String getType(){\n return this.type;\n }",
"QueryType createQueryType();",
"public int getType() {\n return type;\n }",
"public void setResult(int type, String typeName, Class javaType) {\r\n ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(\"\");\r\n field.setSqlType(type);\r\n field.setSqlTypeName(typeName);\r\n field.setType(javaType);\r\n getParameters().set(0, field);\r\n }",
"public ScGridColumn<AcActionAutoCorrectedLog> newScannedTypeColumn()\n {\n return newScannedTypeColumn(\"Scanned Type\");\n }",
"public void setType(String type) {\n this.type = type;\n }",
"@Override\n public int getCustomChatRowTypeCount() {\n return 10;\n }",
"public int getType(){\r\n\t\treturn type;\r\n\t}",
"SellType selectByPrimaryKey(Integer sell_type_id);",
"@Override\r\n\tpublic String getType() {\n\t\treturn type;\r\n\t}",
"public interface UserShareActivityMapper {\n\n\n @Select(\"select count(1) from lh_share_activity_info WHERE random=#{random} AND share_user_tid=#{user_tid} AND extend_type=#{extend_type}\")\n public Integer checkSharelink(CreateShareLinkEvent event);\n\n @Insert(\"insert into lh_share_activity_info(share_user_tid,\" +\n \"random,extend_type,end_time,create_time) values(#{share_user_tid},#{random},#{extend_type},#{end_time},now())\")\n public void insertShareLink(UserShareInfo userShareInfo);\n}",
"@Override\n public int getResultSetType() throws SQLException {\n throw new SQLException(\"tinySQL does not support getResultSetType.\");\n }",
"void setType(String type) {\n this.type = type;\n }",
"void setForPersistentMapping_Type(Type type) {\n this.type = type;\n }",
"public abstract Map<String, Integer> getColumnTypes(String tableName);",
"public ResultSet getAppointmentsByType() throws SQLException {\r\n String statement = \"SELECT DISTINCT Type as Type, COUNT(Type) as AMOUNT FROM appointments GROUP BY Type\";\r\n return conn.prepareStatement(statement).executeQuery();\r\n }",
"public String getType(){\r\n return type;\r\n }",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"public int getType(){\n return type;\n }",
"@Override\n\tpublic int getType() {\n\t\treturn _expandoColumn.getType();\n\t}",
"@Override\n\tpublic String getType() {\n\t\treturn type;\n\t}",
"@Override\n\tpublic String getType() {\n\t\treturn type;\n\t}",
"@Override\n\tpublic String getType() {\n\t\treturn type;\n\t}",
"@MyBatisRepository\npublic interface TypeCusMapper {\n\tvoid insert(TypeCus typeCus);\n\n\tvoid delete(Long typeCusId);\n\t\n\tvoid removeTcs(TypeCusQB tcQb);\n\n\tvoid update(TypeCus typeCus);\n\n\tTypeCus select(Long typeCusId);\n\n\tList<TypeCus> selectList(TypeCusQB queryBean);\n\n\tList<TypeCus> selectPage(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tInteger selectCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tObject proc(TypeCus typeCus);\n\t\n\tList<Customer> selectComplex(PagingQueryBean<TypeCusQB> pagingQueryBean);;\n\t\n\tInteger selectComplexCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\tLong getMaxOrder(Long typeId);\n}",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }"
] | [
"0.609313",
"0.56537807",
"0.5620928",
"0.55842227",
"0.55151576",
"0.54295284",
"0.54132736",
"0.5369587",
"0.53417003",
"0.527962",
"0.5277054",
"0.5241781",
"0.5222637",
"0.51940906",
"0.51675445",
"0.5139097",
"0.5066153",
"0.50627804",
"0.50618863",
"0.5049766",
"0.5032766",
"0.5029053",
"0.49847218",
"0.4958237",
"0.49581838",
"0.49542576",
"0.49497637",
"0.4904642",
"0.4894209",
"0.48842746",
"0.48675838",
"0.48573",
"0.48375276",
"0.48229483",
"0.48131013",
"0.48067302",
"0.48024324",
"0.47965598",
"0.47881183",
"0.47821194",
"0.47799054",
"0.4778131",
"0.47758612",
"0.47743213",
"0.47698915",
"0.47675437",
"0.47479784",
"0.47423372",
"0.4739197",
"0.47360906",
"0.47321758",
"0.47216368",
"0.47212622",
"0.47202292",
"0.4714761",
"0.47057524",
"0.47043484",
"0.4703798",
"0.4703798",
"0.46972865",
"0.46944702",
"0.4689247",
"0.46813476",
"0.46768394",
"0.46679828",
"0.46676296",
"0.46665874",
"0.46646655",
"0.46587124",
"0.46540725",
"0.46509373",
"0.4641734",
"0.4634491",
"0.4633789",
"0.46270072",
"0.46257287",
"0.46232104",
"0.46166813",
"0.46158615",
"0.4611079",
"0.46075222",
"0.46030194",
"0.45981944",
"0.45964268",
"0.4592377",
"0.45920753",
"0.45903966",
"0.45865294",
"0.45856017",
"0.45854342",
"0.45854342",
"0.4583275",
"0.45791698",
"0.45753807",
"0.45753807",
"0.45753807",
"0.4574767",
"0.45741233",
"0.45741233",
"0.45741233",
"0.45741233"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table qt_activitytype | int deleteByExample(QtActivitytypeExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected List<Daily_activity_type> getDailyActivityType() {\n return super.emMain.createQuery(\"FROM Daily_activity_type WHERE dat_code <> 0 ORDER BY dat_order ASC\",\n Daily_activity_type.class).getResultList();\n }",
"public Vector listActivityTypeActivity() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT A.activity_type_id,B.specification_id,B.specification_name, A.transaction_type_id FROM \"+ \n DBHelper.USEA_ACTIVITY_CATEGORY+\" A, \"+DBHelper.USEA_SPECIFICATION_MASTER+\" B \"+\n \" WHERE A.activity_type_id = B.activity_type_id AND A.activity_type_name = ? and B.active_status = ? order by B.specification_name\";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, \"Activity\");\n prepStmt.setBoolean(2, true);\n \n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) {\n \n this.specificationId = rs.getString(2);\n this.specificationName = rs.getString(3);\n String txnTypeId = rs.getString(4);\n \n String [] activityList = {specificationId,specificationName,txnTypeId};\n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"public void setActivityType(ActivityType activityType) {\n this.activityType = activityType;\n }",
"public String toXML() {\n StringBuffer ret = new StringBuffer();\n ret.append(\"<table name=\\\"MTBTypes\\\">\\n\");\n ret.append(\" <column name=\\\"_MTBTypes_key\\\"\\n\");\n ret.append(\" value=\\\"\").append((MTBTypesKey_is_initialized ? ((MTBTypesKey == null ? null : MTBTypesKey.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"type\\\"\\n\");\n ret.append(\" value=\\\"\").append((type_is_initialized ? ((type == null ? null : type)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"description\\\"\\n\");\n ret.append(\" value=\\\"\").append((description_is_initialized ? ((description == null ? null : description)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"tableName\\\"\\n\");\n ret.append(\" value=\\\"\").append((tableName_is_initialized ? ((tableName == null ? null : tableName)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"columnName\\\"\\n\");\n ret.append(\" value=\\\"\").append((columnName_is_initialized ? ((columnName == null ? null : columnName)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"create_user\\\"\\n\");\n ret.append(\" value=\\\"\").append((createUser_is_initialized ? ((createUser == null ? null : createUser)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"create_date\\\"\\n\");\n ret.append(\" value=\\\"\").append((createDate_is_initialized ? ((createDate == null ? null : createDate.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"update_user\\\"\\n\");\n ret.append(\" value=\\\"\").append((updateUser_is_initialized ? ((updateUser == null ? null : updateUser)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"update_date\\\"\\n\");\n ret.append(\" value=\\\"\").append((updateDate_is_initialized ? ((updateDate == null ? null : updateDate.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\"</table>\");\n return ret.toString();\n }",
"public int getSqlType() { return _type; }",
"@Query(\"SELECT * FROM wellbeing_questions WHERE activity_type == :activityType\")\n List<WellbeingQuestion> getQuestionsByActivityType(String activityType);",
"public abstract String getTipoByAct(Actividad activity) throws PersistenceException, ClassNotFoundException;",
"public abstract String toJavaType(int sqlType);",
"Collection<ActivityType> getActivityTypes() throws DataAccessException;",
"List<QtActivitytype> selectByExample(QtActivitytypeExample example);",
"void storeActivityType(ActivityType activityType) throws DataAccessException;",
"QtActivitytype selectByPrimaryKey(Integer id);",
"RelDataType getColumnType(String sql);",
"public void setActivitytypeid(Integer activitytypeid) {\n this.activitytypeid = activitytypeid;\n }",
"public ActivityType getActivityType() {\n return activityType;\n }",
"public void setActivityType(ActivityType activity, UsertypeType type) {\n\t\tactivity.setUsertype(type);\n\t}",
"private void setActivity(int relType){\n\t\tActivity act = new Activity();\n\t\tActivityDefinition actDef = new ActivityDefinition();\n\t\tactDef.setType(INTERACT_TYPE);\n\t\tactDef.setInteractionType(INTERACT_TYPE);\n\t\t//InteractionComponent iac = new InteractionComponent();\n\t\tact.setDefinition(actDef);\n\t\t\n\t\tHashMap<String, String> names = new HashMap<String, String>();\n\t\tnames.put(\"en\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"en\")));\n\t\tnames.put(\"de\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"de\")));\n\n\t\tactDef.setName(names);\n\t\tthis.setObject(act);\n\t\n\t}",
"private void setActivity(int relType){\n\t\tActivity act = new Activity();\n\t\tActivityDefinition actDef = new ActivityDefinition();\n\t\tactDef.setType(INTERACT_TYPE);\n\t\tactDef.setInteractionType(INTERACT_TYPE);\n\t\t//InteractionComponent iac = new InteractionComponent();\n\t\tact.setDefinition(actDef);\n\t\t\n\t\tHashMap<String, String> names = new HashMap<String, String>();\n\t\t//names.put(\"en\",\"Identifying problems\");\n\t\tnames.put(\"en\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"en\")));\n\t\tnames.put(\"de\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"de\")));\n\n\t\tactDef.setName(names);\n\t\tthis.setObject(act);\n\t\n\t}",
"public Vector listActivityTypeRegister() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT B.specification_id,B.specification_name, A.transaction_type_id FROM \"+ \n DBHelper.USEA_ACTIVITY_CATEGORY+\" A, \"+DBHelper.USEA_SPECIFICATION_MASTER+\" B \"+\n \" WHERE A.activity_type_id = B.activity_type_id AND A.activity_type_name = ? and B.active_status = ? \";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, \"Registration\");\n prepStmt.setBoolean(2 , true);\n \n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) { \n this.specificationId = rs.getString(1);\n this.specificationName = rs.getString(2);\n String txnTypeId = rs.getString(3);\n \n String [] activityList = {specificationId,specificationName,txnTypeId};\n Debug.print(\" Specification Id : \"+specificationId);\n Debug.print(\" specificationName : \"+specificationName);\n Debug.print(\" txnTypeId : \"+txnTypeId);\n \n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"public String getEntityTypeName() { return \"jp.sourceforge.ea2ddl.dao.exentity.TTrxtypes\"; }",
"public Column.Type getType();",
"public String getTableDbName() { return \"t_trxtypes\"; }",
"public int getJdbcType();",
"@Override\r\n\tpublic String getType() {\n\t\treturn \"column\";\r\n\t}",
"com.rpg.framework.database.Protocol.ItemType getType();",
"ActivityType loadActivityType(int id) throws DataAccessException;",
"private void setActivityType(int value) {\n this.bitField0_ |= 4;\n this.activityType_ = value;\n }",
"@Override\n public RelDataType getRowType(final RelDataTypeFactory typeFactory) {\n final Schema kuduSchema = this.getKuduTable().getSchema();\n final RelDataTypeFactory.Builder builder = new RelDataTypeFactory.Builder(typeFactory);\n\n for (int i = 0; i < kuduSchema.getColumnCount(); i++) {\n final ColumnSchema currentColumn = kuduSchema.getColumnByIndex(i);\n switch (currentColumn.getType()) {\n case INT8:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.TINYINT).nullable(currentColumn.isNullable());\n break;\n case INT16:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.SMALLINT).nullable(currentColumn.isNullable());\n break;\n case INT32:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.INTEGER).nullable(currentColumn.isNullable());\n break;\n case INT64:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.BIGINT).nullable(currentColumn.isNullable());\n break;\n case BINARY:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.VARBINARY).nullable(currentColumn.isNullable());\n break;\n case STRING:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.VARCHAR).nullable(currentColumn.isNullable());\n break;\n case BOOL:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.BOOLEAN).nullable(currentColumn.isNullable());\n break;\n case FLOAT:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.FLOAT).nullable(currentColumn.isNullable());\n break;\n case DOUBLE:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.DOUBLE).nullable(currentColumn.isNullable());\n break;\n case UNIXTIME_MICROS:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.TIMESTAMP).nullable(currentColumn.isNullable());\n break;\n case DECIMAL:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.DECIMAL).nullable(currentColumn.isNullable());\n break;\n }\n }\n\n return builder.build();\n }",
"public TypeData getTypeData(MigrationType type);",
"private String getNameFromType(int activityType) {\n switch (activityType) {\n case DetectedActivity.IN_VEHICLE:\n return \"in_vehicle\";\n case DetectedActivity.ON_BICYCLE:\n return \"on_bicycle\";\n case DetectedActivity.ON_FOOT:\n return \"on_foot\";\n case DetectedActivity.STILL:\n return \"still\";\n case DetectedActivity.UNKNOWN:\n return \"unknown\";\n case DetectedActivity.TILTING:\n return \"tilting\";\n }\n return \"unknown\";\n }",
"@Override\n public String convertToDatabaseColumn(TransactionType transactionType) {\n if (transactionType == null) return null;\n\n return transactionType.getTransactionType();\n }",
"@Override\n public Object toJdbcType(Object value) {\n return value;\n }",
"public List<LogRoomTypeHistory>getAllRoomTypeHistory(TblRoomType roomType);",
"ResultColumn getTypeIdColumn(TableReference tableReference);",
"public ScGridColumn<AcActionAutoCorrectedLog> newActualTypeColumn()\n {\n return newActualTypeColumn(\"Actual Type\");\n }",
"public static \tTransactionEventType getTransactionEventTypeSample(){\n\t\t\n\t\tTransactionEventType transactionEventType=new TransactionEventType();\n\t\t\n\t\tGregorianCalendar gRecordTime = new GregorianCalendar();\n\t\tXMLGregorianCalendar recordTime;\n\t\ttry {\n\t\t\trecordTime = DatatypeFactory.newInstance().newXMLGregorianCalendar(gRecordTime);\n\t\t\ttransactionEventType.setEventTime(recordTime);\n\t\t\ttransactionEventType.setRecordTime(recordTime);\n\t\t} catch (DatatypeConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttransactionEventType.setEventTimeZoneOffset(\"eventTimeZoneOffset_T\");\n\t\ttransactionEventType.setParentID(\"parentID_T\");\n\t\t\n\t\tEPCListType transactionEventEPCs=new EPCListType();\n\t\t\n\t\t\n\t\torg.oliot.model.epcis.EPC epc1=new org.oliot.model.epcis.EPC (\"epc1_T\");\n\t\t\n\t\torg.oliot.model.epcis.EPC epc2=new org.oliot.model.epcis.EPC (\"epc2_T\");\n\t\t\t\t\n\t\ttransactionEventEPCs.getEpc().add(epc1);\n\t\ttransactionEventEPCs.getEpc().add(epc2);\n\t\ttransactionEventType.setEpcList(transactionEventEPCs);\n\t\t\n\t\ttransactionEventType.setAction(ActionType.fromValue(\"ADD\"));\t\n\t\ttransactionEventType.setBizStep(\"bizStep_T\");\n\t\ttransactionEventType.setDisposition(\"disposition_T\");\n\t\t\n\t\t\n\t\tReadPointType readPoint=new ReadPointType();\n\t\treadPoint.setId(\"ReadPoint_object\");\n\t\tReadPointExtensionType readPointExtension=new ReadPointExtensionType();\n\t\treadPoint.setExtension(readPointExtension);\n\t\t\n\t\ttransactionEventType.setReadPoint(readPoint);\n\t\t\n\t\tBusinessLocationType businessLocation =new BusinessLocationType();\n\t\tbusinessLocation.setId(\"BusinessLocation_object\");\n\t\tBusinessLocationExtensionType businessLocationExtension= new BusinessLocationExtensionType();\n\t\tbusinessLocation.setExtension(businessLocationExtension);\n\t\t\n\t\ttransactionEventType.setBizLocation(businessLocation);\n\t\t\n\t\tBusinessTransactionListType businessTransactionList=new BusinessTransactionListType();\t\n\t\tBusinessTransactionType businessTransaction1=new BusinessTransactionType();\n\t\tbusinessTransaction1.setType(\"type1_o\");\n\t\tbusinessTransaction1.setValue(\"value1_o\");\n\t\tBusinessTransactionType businessTransaction2=new BusinessTransactionType();\n\t\tbusinessTransaction1.setType(\"type2_o\");\n\t\tbusinessTransaction1.setValue(\"value2_o\");\n\t\tbusinessTransactionList.getBizTransaction().add(businessTransaction1);\n\t\tbusinessTransactionList.getBizTransaction().add(businessTransaction2);\n\t\ttransactionEventType.setBizTransactionList(businessTransactionList);\n\t\t\n\t\t\n\t\tTransactionEventExtensionType transactionEventExtension =new TransactionEventExtensionType();\n\t\t\n\t\tQuantityListType quantityList =new QuantityListType();\n\t\tQuantityElementType quantityElement1=new QuantityElementType();\n\t\tquantityElement1.setEpcClass(\"epcClass1_O\");\n\t\tquantityElement1.setQuantity(111);\n\t\tquantityElement1.setUom(\"uom1_O\");\n\t\tQuantityElementType quantityElement2=new QuantityElementType();\n\t\tquantityElement2.setEpcClass(\"epcClass2_O\");\n\t\tquantityElement2.setQuantity(111);\n\t\tquantityElement2.setUom(\"uom2_O\");\n\t\tquantityList.getQuantityElement().add(quantityElement1);\n\t\tquantityList.getQuantityElement().add(quantityElement2);\n\t\t\n\t\ttransactionEventExtension.setQuantityList(quantityList);\n\t\t\n\t\tDestinationListType destinationList =new DestinationListType();\n\t\tSourceDestType sourceDest3=new SourceDestType( );\n\t\tSourceDestType sourceDest4=new SourceDestType( );\n\t\tsourceDest3.setValue(\"value3\");\n\t\tsourceDest3.setType(\"type3\");\n\t\tsourceDest4.setValue(\"value4\");\n\t\tsourceDest4.setType(\"type4\");\n\t\t\n\t\tdestinationList.getDestination().add(sourceDest3);\n\t\tdestinationList.getDestination().add(sourceDest4);\n\t\ttransactionEventExtension.setDestinationList(destinationList);\n\t\t\n\t\tSourceListType sourceList =new SourceListType();\n\t\tSourceDestType sourceDest1=new SourceDestType( );\n\t\tSourceDestType sourceDest2=new SourceDestType( );\n\t\tsourceDest1.setValue(\"value1\");\n\t\tsourceDest1.setType(\"type1\");\n\t\tsourceDest1.setValue(\"value2\");\n\t\tsourceDest1.setType(\"type2\");\n\t\t\n\t\tsourceList.getSource().add(sourceDest1);\n\t\tsourceList.getSource().add(sourceDest2);\n\t\t\n\t\t\n\t\ttransactionEventExtension.setSourceList(sourceList);\n\t\t\n\t\t\n\t\t\n\n\t\tTransactionEventExtension2Type transactionEventExtension2=\n\t\t\t\tnew TransactionEventExtension2Type();\n\t\t\n\t\ttransactionEventExtension.setExtension(transactionEventExtension2);\n\t\t\n\t\t\n\t\ttransactionEventType.setExtension(transactionEventExtension);\n\t\t\n\t\treturn transactionEventType;\n\t\t\n\t}",
"@Override\n\tpublic void setType(int type) {\n\t\t_expandoColumn.setType(type);\n\t}",
"private String getNameFromType(int activityType) {\n switch(activityType) {\n case DetectedActivity.IN_VEHICLE:\n return \"in_vehicle\";\n case DetectedActivity.ON_BICYCLE:\n return \"on_bicycle\";\n case DetectedActivity.ON_FOOT:\n return \"on_foot\";\n case DetectedActivity.STILL:\n return \"still\";\n case DetectedActivity.UNKNOWN:\n return \"unknown\";\n case DetectedActivity.TILTING:\n return \"tilting\";\n }\n return \"unrecognized\";\n }",
"public Integer getActivitytypeid() {\n return activitytypeid;\n }",
"@Nullable\n @Generated\n @Selector(\"handoffUserActivityType\")\n public native String handoffUserActivityType();",
"@Override\n public String getType(){\n return Type;\n }",
"public Vector listActivityCategory() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT activity_type_id,activity_type_name FROM \"+ DBHelper.USEA_ACTIVITY_CATEGORY;\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) {\n this.activityTypeId = rs.getString(1);\n this.activityTypeName = rs.getString(2);\n String [] activityList = {activityTypeId,activityTypeName};\n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"UserType getType();",
"HotelType selectByPrimaryKey(Integer typeiId);",
"public String getType() {return type;}",
"TableType getTableType()\n {\n return tableType;\n }",
"public static AuditType exampleAuditType() {\r\n AuditType auditType = new AuditType();\r\n auditType.setActionName(\"actionName\");\r\n auditType.setAuditCategory(\"auditCategory\");\r\n auditType.setContextId(\"contextId\");\r\n auditType.setCreatedOnDb(3L);\r\n auditType.setHibernateVersionNumber(4L);\r\n auditType.setId(\"id\");\r\n auditType.setLabelInt01(\"labelInt01\");\r\n auditType.setLabelInt02(\"labelInt02\");\r\n auditType.setLabelInt03(\"labelInt03\");\r\n auditType.setLabelInt04(\"labelInt04\");\r\n auditType.setLabelInt05(\"labelInt05\");\r\n auditType.setLabelString01(\"labelString01\");\r\n auditType.setLabelString02(\"labelString02\");\r\n auditType.setLabelString03(\"labelString03\");\r\n auditType.setLabelString04(\"labelString04\");\r\n auditType.setLabelString05(\"labelString05\");\r\n auditType.setLabelString06(\"labelString06\");\r\n auditType.setLabelString07(\"labelString07\");\r\n auditType.setLabelString08(\"labelString08\");\r\n auditType.setLastUpdatedDb(5L);\r\n return auditType;\r\n }",
"public abstract QCEntryType getType();",
"RelDataType getResultType(String sql);",
"@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);",
"public abstract String toHiveType(int sqlType);",
"@Override\n public String getJavaByJdbcType(DbAttribute attribute, int type) {\n String jdbcType = TypesMapping.getSqlNameByType(type);\n DbType dbType;\n if (attribute != null) {\n dbType = new DbType(\n jdbcType,\n attribute.getMaxLength(),\n attribute.getAttributePrecision(),\n attribute.getScale(),\n attribute.isMandatory());\n } else {\n dbType = new DbType(jdbcType);\n }\n\n String typeName = getJavaByJdbcType(dbType);\n\n if (usePrimitives != null && usePrimitives) {\n String primitive = classToPrimitive.get(typeName);\n if (primitive != null) {\n return primitive;\n }\n }\n\n return typeName;\n }",
"RelDataType getParameterRowType();",
"private static String mapStatementSetter(final FieldType.Type type) {\n switch (type) {\n case DATE:\n return \"setDate\";\n case INTEGER:\n return \"setInt\";\n case REAL:\n return \"setDouble\";\n case STRING:\n return \"setString\";\n default:\n return null;\n }\n }",
"@Override\n\tpublic int getType() {\n\t\treturn 1;\n\t}",
"public void setTransactionType(int transactionChoice);",
"public int getType() { return type; }",
"public int getType() { return type; }",
"CmsActivity selectByPrimaryKey(String activityId);",
"@Override\r\n\t\tpublic Map<String, Class<?>> getTypeMap() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public ConcatColumn(final Type type) {\n this.type = type;\n numTuples = 0;\n columnIds = Maps.newTreeMap();\n readOnly = false;\n }",
"@Override\n public String getType() {\n return \"\";\n }",
"@SuppressWarnings({ \"all\", \"unchecked\", \"rawtypes\" })\npublic interface IXActivity extends VertxPojo, Serializable {\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键\n */\n public IXActivity setKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键\n */\n public String getKey();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TYPE</code>. 「type」- 操作类型\n */\n public IXActivity setType(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TYPE</code>. 「type」- 操作类型\n */\n public String getType();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.SERIAL</code>. 「serial」- 变更记录号\n */\n public IXActivity setSerial(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.SERIAL</code>. 「serial」- 变更记录号\n */\n public String getSerial();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.DESCRIPTION</code>. 「description」-\n * 操作描述信息\n */\n public IXActivity setDescription(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.DESCRIPTION</code>. 「description」-\n * 操作描述信息\n */\n public String getDescription();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_ID</code>. 「modelId」-\n * 组所关联的模型identifier,用于描述\n */\n public IXActivity setModelId(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_ID</code>. 「modelId」-\n * 组所关联的模型identifier,用于描述\n */\n public String getModelId();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_KEY</code>. 「modelKey」-\n * 组所关联的模型记录ID,用于描述哪一个Model中的记录\n */\n public IXActivity setModelKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_KEY</code>. 「modelKey」-\n * 组所关联的模型记录ID,用于描述哪一个Model中的记录\n */\n public String getModelKey();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_CATEGORY</code>.\n * 「modelCategory」- 关联的category记录,只包含叶节点\n */\n public IXActivity setModelCategory(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_CATEGORY</code>.\n * 「modelCategory」- 关联的category记录,只包含叶节点\n */\n public String getModelCategory();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TASK_NAME</code>. 「taskName」- 任务名称\n */\n public IXActivity setTaskName(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TASK_NAME</code>. 「taskName」- 任务名称\n */\n public String getTaskName();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TASK_SERIAL</code>. 「taskSerial」-\n * 任务单号\n */\n public IXActivity setTaskSerial(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TASK_SERIAL</code>. 「taskSerial」-\n * 任务单号\n */\n public String getTaskSerial();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_OLD</code>. 「recordOld」-\n * 变更之前的数据(用于回滚)\n */\n public IXActivity setRecordOld(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_OLD</code>. 「recordOld」-\n * 变更之前的数据(用于回滚)\n */\n public String getRecordOld();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_NEW</code>. 「recordNew」-\n * 变更之后的数据(用于更新)\n */\n public IXActivity setRecordNew(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_NEW</code>. 「recordNew」-\n * 变更之后的数据(用于更新)\n */\n public String getRecordNew();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.SIGMA</code>. 「sigma」- 用户组绑定的统一标识\n */\n public IXActivity setSigma(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.SIGMA</code>. 「sigma」- 用户组绑定的统一标识\n */\n public String getSigma();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.LANGUAGE</code>. 「language」- 使用的语言\n */\n public IXActivity setLanguage(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.LANGUAGE</code>. 「language」- 使用的语言\n */\n public String getLanguage();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.ACTIVE</code>. 「active」- 是否启用\n */\n public IXActivity setActive(Boolean value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.ACTIVE</code>. 「active」- 是否启用\n */\n public Boolean getActive();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.METADATA</code>. 「metadata」-\n * 附加配置数据\n */\n public IXActivity setMetadata(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.METADATA</code>. 「metadata」-\n * 附加配置数据\n */\n public String getMetadata();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_AT</code>. 「createdAt」-\n * 创建时间\n */\n public IXActivity setCreatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_AT</code>. 「createdAt」-\n * 创建时间\n */\n public LocalDateTime getCreatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_BY</code>. 「createdBy」-\n * 创建人\n */\n public IXActivity setCreatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_BY</code>. 「createdBy」-\n * 创建人\n */\n public String getCreatedBy();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_AT</code>. 「updatedAt」-\n * 更新时间\n */\n public IXActivity setUpdatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_AT</code>. 「updatedAt」-\n * 更新时间\n */\n public LocalDateTime getUpdatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_BY</code>. 「updatedBy」-\n * 更新人\n */\n public IXActivity setUpdatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_BY</code>. 「updatedBy」-\n * 更新人\n */\n public String getUpdatedBy();\n\n // -------------------------------------------------------------------------\n // FROM and INTO\n // -------------------------------------------------------------------------\n\n /**\n * Load data from another generated Record/POJO implementing the common\n * interface IXActivity\n */\n public void from(IXActivity from);\n\n /**\n * Copy data into another generated Record/POJO implementing the common\n * interface IXActivity\n */\n public <E extends IXActivity> E into(E into);\n\n @Override\n public default IXActivity fromJson(io.vertx.core.json.JsonObject json) {\n setOrThrow(this::setKey,json::getString,\"KEY\",\"java.lang.String\");\n setOrThrow(this::setType,json::getString,\"TYPE\",\"java.lang.String\");\n setOrThrow(this::setSerial,json::getString,\"SERIAL\",\"java.lang.String\");\n setOrThrow(this::setDescription,json::getString,\"DESCRIPTION\",\"java.lang.String\");\n setOrThrow(this::setModelId,json::getString,\"MODEL_ID\",\"java.lang.String\");\n setOrThrow(this::setModelKey,json::getString,\"MODEL_KEY\",\"java.lang.String\");\n setOrThrow(this::setModelCategory,json::getString,\"MODEL_CATEGORY\",\"java.lang.String\");\n setOrThrow(this::setTaskName,json::getString,\"TASK_NAME\",\"java.lang.String\");\n setOrThrow(this::setTaskSerial,json::getString,\"TASK_SERIAL\",\"java.lang.String\");\n setOrThrow(this::setRecordOld,json::getString,\"RECORD_OLD\",\"java.lang.String\");\n setOrThrow(this::setRecordNew,json::getString,\"RECORD_NEW\",\"java.lang.String\");\n setOrThrow(this::setSigma,json::getString,\"SIGMA\",\"java.lang.String\");\n setOrThrow(this::setLanguage,json::getString,\"LANGUAGE\",\"java.lang.String\");\n setOrThrow(this::setActive,json::getBoolean,\"ACTIVE\",\"java.lang.Boolean\");\n setOrThrow(this::setMetadata,json::getString,\"METADATA\",\"java.lang.String\");\n setOrThrow(this::setCreatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},\"CREATED_AT\",\"java.time.LocalDateTime\");\n setOrThrow(this::setCreatedBy,json::getString,\"CREATED_BY\",\"java.lang.String\");\n setOrThrow(this::setUpdatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},\"UPDATED_AT\",\"java.time.LocalDateTime\");\n setOrThrow(this::setUpdatedBy,json::getString,\"UPDATED_BY\",\"java.lang.String\");\n return this;\n }\n\n\n @Override\n public default io.vertx.core.json.JsonObject toJson() {\n io.vertx.core.json.JsonObject json = new io.vertx.core.json.JsonObject();\n json.put(\"KEY\",getKey());\n json.put(\"TYPE\",getType());\n json.put(\"SERIAL\",getSerial());\n json.put(\"DESCRIPTION\",getDescription());\n json.put(\"MODEL_ID\",getModelId());\n json.put(\"MODEL_KEY\",getModelKey());\n json.put(\"MODEL_CATEGORY\",getModelCategory());\n json.put(\"TASK_NAME\",getTaskName());\n json.put(\"TASK_SERIAL\",getTaskSerial());\n json.put(\"RECORD_OLD\",getRecordOld());\n json.put(\"RECORD_NEW\",getRecordNew());\n json.put(\"SIGMA\",getSigma());\n json.put(\"LANGUAGE\",getLanguage());\n json.put(\"ACTIVE\",getActive());\n json.put(\"METADATA\",getMetadata());\n json.put(\"CREATED_AT\",getCreatedAt()==null?null:getCreatedAt().toString());\n json.put(\"CREATED_BY\",getCreatedBy());\n json.put(\"UPDATED_AT\",getUpdatedAt()==null?null:getUpdatedAt().toString());\n json.put(\"UPDATED_BY\",getUpdatedBy());\n return json;\n }\n\n}",
"public static AuditType exampleAuditTypeDb() {\r\n return exampleAuditTypeDb(\"testCategory\", \"testAction\");\r\n }",
"public QueryType getType();",
"String getSQLTypeName() throws SQLException;",
"@Schema(description = \"When sub-classing, this defines the sub-class entity name\")\n\n\tpublic String getAtType() {\n\t\treturn type;\n\t}",
"public void updateData(String typeActivity) {\n try {\n Float.parseFloat(this.inputNominal.getText());\n } catch (Exception err) {\n this.alert.showMessageDialog(null, \"Silahkan input nominal dengan benar\");\n }\n \n try {\n this.inputDate.getDate().getTime();\n } catch (Exception err) {\n this.alert.showMessageDialog(null, \"Silahkan input tanggal dengan benar\");\n }\n \n Time time = new Time();\n time.setDate(this.inputDate.getDate());\n \n String description = this.inputDescription.getText();\n float nominal = Float.parseFloat(this.inputNominal.getText());\n String dateAt = time.parseDatetime();\n \n ActivityService activityService = new ActivityService();\n \n activityService\n .setId(this.id)\n .setDescription(description)\n .setNominal(nominal)\n .setDateAt(dateAt)\n .setUser(this.dashboard.user);\n \n try {\n if (typeActivity.equals(\"+\")) {\n activityService.updateIncome();\n } else {\n activityService.updateExpense();\n }\n this.dashboard.refreshUI();\n this.dashboard.resetForm();\n } catch (Exception err) {\n this.alert.showMessageDialog(null, err.getMessage());\n }\n }",
"public void representDataOnActors(String type)\r\n\t{\n\t}",
"public String getType() { return type; }",
"public long getCount(MigrationType type);",
"fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType();",
"QueryType createQueryType();",
"public String getType(){\n return this.type;\n }",
"public void setResult(int type, String typeName, Class javaType) {\r\n ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(\"\");\r\n field.setSqlType(type);\r\n field.setSqlTypeName(typeName);\r\n field.setType(javaType);\r\n getParameters().set(0, field);\r\n }",
"public int getType() {\n return type;\n }",
"public ScGridColumn<AcActionAutoCorrectedLog> newScannedTypeColumn()\n {\n return newScannedTypeColumn(\"Scanned Type\");\n }",
"@Override\n public int getCustomChatRowTypeCount() {\n return 10;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public int getType(){\r\n\t\treturn type;\r\n\t}",
"SellType selectByPrimaryKey(Integer sell_type_id);",
"@Override\r\n\tpublic String getType() {\n\t\treturn type;\r\n\t}",
"@Override\n public int getResultSetType() throws SQLException {\n throw new SQLException(\"tinySQL does not support getResultSetType.\");\n }",
"public interface UserShareActivityMapper {\n\n\n @Select(\"select count(1) from lh_share_activity_info WHERE random=#{random} AND share_user_tid=#{user_tid} AND extend_type=#{extend_type}\")\n public Integer checkSharelink(CreateShareLinkEvent event);\n\n @Insert(\"insert into lh_share_activity_info(share_user_tid,\" +\n \"random,extend_type,end_time,create_time) values(#{share_user_tid},#{random},#{extend_type},#{end_time},now())\")\n public void insertShareLink(UserShareInfo userShareInfo);\n}",
"void setType(String type) {\n this.type = type;\n }",
"void setForPersistentMapping_Type(Type type) {\n this.type = type;\n }",
"public abstract Map<String, Integer> getColumnTypes(String tableName);",
"public String getType(){\r\n return type;\r\n }",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"public ResultSet getAppointmentsByType() throws SQLException {\r\n String statement = \"SELECT DISTINCT Type as Type, COUNT(Type) as AMOUNT FROM appointments GROUP BY Type\";\r\n return conn.prepareStatement(statement).executeQuery();\r\n }",
"public int getType(){\n return type;\n }",
"@Override\n\tpublic int getType() {\n\t\treturn _expandoColumn.getType();\n\t}",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }"
] | [
"0.60907745",
"0.56518316",
"0.5617674",
"0.55851614",
"0.5515899",
"0.5429194",
"0.5411337",
"0.53703195",
"0.53390545",
"0.52778",
"0.52769154",
"0.52413064",
"0.522299",
"0.51914597",
"0.51647353",
"0.51364106",
"0.5066082",
"0.50618553",
"0.50616753",
"0.5050939",
"0.50326174",
"0.5030021",
"0.4985679",
"0.4958322",
"0.4957959",
"0.49510604",
"0.4946326",
"0.4905505",
"0.48941228",
"0.48809934",
"0.48678085",
"0.4857349",
"0.48384783",
"0.48219064",
"0.48139277",
"0.48073718",
"0.48015222",
"0.47932574",
"0.47854418",
"0.47803855",
"0.4779893",
"0.47757474",
"0.4775457",
"0.47738466",
"0.47694823",
"0.476707",
"0.47475797",
"0.47443306",
"0.47397175",
"0.4737887",
"0.47329366",
"0.47224134",
"0.4722358",
"0.47214916",
"0.47144052",
"0.4705132",
"0.47038382",
"0.47038382",
"0.47029248",
"0.46974093",
"0.46939912",
"0.46893182",
"0.46802947",
"0.46766913",
"0.46689025",
"0.46685708",
"0.46670607",
"0.46627983",
"0.46570033",
"0.46537668",
"0.46509942",
"0.46418864",
"0.46355778",
"0.46340042",
"0.4627499",
"0.46269494",
"0.46242628",
"0.46168092",
"0.46166041",
"0.46110654",
"0.46090087",
"0.4602575",
"0.45977417",
"0.4597728",
"0.4592478",
"0.45920688",
"0.45910782",
"0.4585131",
"0.45845562",
"0.45845562",
"0.45844653",
"0.45832726",
"0.45778546",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table qt_activitytype | int deleteByPrimaryKey(Integer id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected List<Daily_activity_type> getDailyActivityType() {\n return super.emMain.createQuery(\"FROM Daily_activity_type WHERE dat_code <> 0 ORDER BY dat_order ASC\",\n Daily_activity_type.class).getResultList();\n }",
"public Vector listActivityTypeActivity() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT A.activity_type_id,B.specification_id,B.specification_name, A.transaction_type_id FROM \"+ \n DBHelper.USEA_ACTIVITY_CATEGORY+\" A, \"+DBHelper.USEA_SPECIFICATION_MASTER+\" B \"+\n \" WHERE A.activity_type_id = B.activity_type_id AND A.activity_type_name = ? and B.active_status = ? order by B.specification_name\";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, \"Activity\");\n prepStmt.setBoolean(2, true);\n \n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) {\n \n this.specificationId = rs.getString(2);\n this.specificationName = rs.getString(3);\n String txnTypeId = rs.getString(4);\n \n String [] activityList = {specificationId,specificationName,txnTypeId};\n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"public void setActivityType(ActivityType activityType) {\n this.activityType = activityType;\n }",
"public String toXML() {\n StringBuffer ret = new StringBuffer();\n ret.append(\"<table name=\\\"MTBTypes\\\">\\n\");\n ret.append(\" <column name=\\\"_MTBTypes_key\\\"\\n\");\n ret.append(\" value=\\\"\").append((MTBTypesKey_is_initialized ? ((MTBTypesKey == null ? null : MTBTypesKey.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"type\\\"\\n\");\n ret.append(\" value=\\\"\").append((type_is_initialized ? ((type == null ? null : type)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"description\\\"\\n\");\n ret.append(\" value=\\\"\").append((description_is_initialized ? ((description == null ? null : description)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"tableName\\\"\\n\");\n ret.append(\" value=\\\"\").append((tableName_is_initialized ? ((tableName == null ? null : tableName)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"columnName\\\"\\n\");\n ret.append(\" value=\\\"\").append((columnName_is_initialized ? ((columnName == null ? null : columnName)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"create_user\\\"\\n\");\n ret.append(\" value=\\\"\").append((createUser_is_initialized ? ((createUser == null ? null : createUser)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"create_date\\\"\\n\");\n ret.append(\" value=\\\"\").append((createDate_is_initialized ? ((createDate == null ? null : createDate.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"update_user\\\"\\n\");\n ret.append(\" value=\\\"\").append((updateUser_is_initialized ? ((updateUser == null ? null : updateUser)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"update_date\\\"\\n\");\n ret.append(\" value=\\\"\").append((updateDate_is_initialized ? ((updateDate == null ? null : updateDate.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\"</table>\");\n return ret.toString();\n }",
"public int getSqlType() { return _type; }",
"@Query(\"SELECT * FROM wellbeing_questions WHERE activity_type == :activityType\")\n List<WellbeingQuestion> getQuestionsByActivityType(String activityType);",
"public abstract String getTipoByAct(Actividad activity) throws PersistenceException, ClassNotFoundException;",
"public abstract String toJavaType(int sqlType);",
"Collection<ActivityType> getActivityTypes() throws DataAccessException;",
"List<QtActivitytype> selectByExample(QtActivitytypeExample example);",
"void storeActivityType(ActivityType activityType) throws DataAccessException;",
"QtActivitytype selectByPrimaryKey(Integer id);",
"RelDataType getColumnType(String sql);",
"public void setActivitytypeid(Integer activitytypeid) {\n this.activitytypeid = activitytypeid;\n }",
"public ActivityType getActivityType() {\n return activityType;\n }",
"public void setActivityType(ActivityType activity, UsertypeType type) {\n\t\tactivity.setUsertype(type);\n\t}",
"private void setActivity(int relType){\n\t\tActivity act = new Activity();\n\t\tActivityDefinition actDef = new ActivityDefinition();\n\t\tactDef.setType(INTERACT_TYPE);\n\t\tactDef.setInteractionType(INTERACT_TYPE);\n\t\t//InteractionComponent iac = new InteractionComponent();\n\t\tact.setDefinition(actDef);\n\t\t\n\t\tHashMap<String, String> names = new HashMap<String, String>();\n\t\tnames.put(\"en\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"en\")));\n\t\tnames.put(\"de\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"de\")));\n\n\t\tactDef.setName(names);\n\t\tthis.setObject(act);\n\t\n\t}",
"private void setActivity(int relType){\n\t\tActivity act = new Activity();\n\t\tActivityDefinition actDef = new ActivityDefinition();\n\t\tactDef.setType(INTERACT_TYPE);\n\t\tactDef.setInteractionType(INTERACT_TYPE);\n\t\t//InteractionComponent iac = new InteractionComponent();\n\t\tact.setDefinition(actDef);\n\t\t\n\t\tHashMap<String, String> names = new HashMap<String, String>();\n\t\t//names.put(\"en\",\"Identifying problems\");\n\t\tnames.put(\"en\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"en\")));\n\t\tnames.put(\"de\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"de\")));\n\n\t\tactDef.setName(names);\n\t\tthis.setObject(act);\n\t\n\t}",
"public Vector listActivityTypeRegister() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT B.specification_id,B.specification_name, A.transaction_type_id FROM \"+ \n DBHelper.USEA_ACTIVITY_CATEGORY+\" A, \"+DBHelper.USEA_SPECIFICATION_MASTER+\" B \"+\n \" WHERE A.activity_type_id = B.activity_type_id AND A.activity_type_name = ? and B.active_status = ? \";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, \"Registration\");\n prepStmt.setBoolean(2 , true);\n \n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) { \n this.specificationId = rs.getString(1);\n this.specificationName = rs.getString(2);\n String txnTypeId = rs.getString(3);\n \n String [] activityList = {specificationId,specificationName,txnTypeId};\n Debug.print(\" Specification Id : \"+specificationId);\n Debug.print(\" specificationName : \"+specificationName);\n Debug.print(\" txnTypeId : \"+txnTypeId);\n \n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"public String getEntityTypeName() { return \"jp.sourceforge.ea2ddl.dao.exentity.TTrxtypes\"; }",
"public Column.Type getType();",
"public String getTableDbName() { return \"t_trxtypes\"; }",
"public int getJdbcType();",
"@Override\r\n\tpublic String getType() {\n\t\treturn \"column\";\r\n\t}",
"com.rpg.framework.database.Protocol.ItemType getType();",
"ActivityType loadActivityType(int id) throws DataAccessException;",
"private void setActivityType(int value) {\n this.bitField0_ |= 4;\n this.activityType_ = value;\n }",
"@Override\n public RelDataType getRowType(final RelDataTypeFactory typeFactory) {\n final Schema kuduSchema = this.getKuduTable().getSchema();\n final RelDataTypeFactory.Builder builder = new RelDataTypeFactory.Builder(typeFactory);\n\n for (int i = 0; i < kuduSchema.getColumnCount(); i++) {\n final ColumnSchema currentColumn = kuduSchema.getColumnByIndex(i);\n switch (currentColumn.getType()) {\n case INT8:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.TINYINT).nullable(currentColumn.isNullable());\n break;\n case INT16:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.SMALLINT).nullable(currentColumn.isNullable());\n break;\n case INT32:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.INTEGER).nullable(currentColumn.isNullable());\n break;\n case INT64:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.BIGINT).nullable(currentColumn.isNullable());\n break;\n case BINARY:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.VARBINARY).nullable(currentColumn.isNullable());\n break;\n case STRING:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.VARCHAR).nullable(currentColumn.isNullable());\n break;\n case BOOL:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.BOOLEAN).nullable(currentColumn.isNullable());\n break;\n case FLOAT:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.FLOAT).nullable(currentColumn.isNullable());\n break;\n case DOUBLE:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.DOUBLE).nullable(currentColumn.isNullable());\n break;\n case UNIXTIME_MICROS:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.TIMESTAMP).nullable(currentColumn.isNullable());\n break;\n case DECIMAL:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.DECIMAL).nullable(currentColumn.isNullable());\n break;\n }\n }\n\n return builder.build();\n }",
"public TypeData getTypeData(MigrationType type);",
"private String getNameFromType(int activityType) {\n switch (activityType) {\n case DetectedActivity.IN_VEHICLE:\n return \"in_vehicle\";\n case DetectedActivity.ON_BICYCLE:\n return \"on_bicycle\";\n case DetectedActivity.ON_FOOT:\n return \"on_foot\";\n case DetectedActivity.STILL:\n return \"still\";\n case DetectedActivity.UNKNOWN:\n return \"unknown\";\n case DetectedActivity.TILTING:\n return \"tilting\";\n }\n return \"unknown\";\n }",
"@Override\n public String convertToDatabaseColumn(TransactionType transactionType) {\n if (transactionType == null) return null;\n\n return transactionType.getTransactionType();\n }",
"@Override\n public Object toJdbcType(Object value) {\n return value;\n }",
"public List<LogRoomTypeHistory>getAllRoomTypeHistory(TblRoomType roomType);",
"ResultColumn getTypeIdColumn(TableReference tableReference);",
"public ScGridColumn<AcActionAutoCorrectedLog> newActualTypeColumn()\n {\n return newActualTypeColumn(\"Actual Type\");\n }",
"public static \tTransactionEventType getTransactionEventTypeSample(){\n\t\t\n\t\tTransactionEventType transactionEventType=new TransactionEventType();\n\t\t\n\t\tGregorianCalendar gRecordTime = new GregorianCalendar();\n\t\tXMLGregorianCalendar recordTime;\n\t\ttry {\n\t\t\trecordTime = DatatypeFactory.newInstance().newXMLGregorianCalendar(gRecordTime);\n\t\t\ttransactionEventType.setEventTime(recordTime);\n\t\t\ttransactionEventType.setRecordTime(recordTime);\n\t\t} catch (DatatypeConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttransactionEventType.setEventTimeZoneOffset(\"eventTimeZoneOffset_T\");\n\t\ttransactionEventType.setParentID(\"parentID_T\");\n\t\t\n\t\tEPCListType transactionEventEPCs=new EPCListType();\n\t\t\n\t\t\n\t\torg.oliot.model.epcis.EPC epc1=new org.oliot.model.epcis.EPC (\"epc1_T\");\n\t\t\n\t\torg.oliot.model.epcis.EPC epc2=new org.oliot.model.epcis.EPC (\"epc2_T\");\n\t\t\t\t\n\t\ttransactionEventEPCs.getEpc().add(epc1);\n\t\ttransactionEventEPCs.getEpc().add(epc2);\n\t\ttransactionEventType.setEpcList(transactionEventEPCs);\n\t\t\n\t\ttransactionEventType.setAction(ActionType.fromValue(\"ADD\"));\t\n\t\ttransactionEventType.setBizStep(\"bizStep_T\");\n\t\ttransactionEventType.setDisposition(\"disposition_T\");\n\t\t\n\t\t\n\t\tReadPointType readPoint=new ReadPointType();\n\t\treadPoint.setId(\"ReadPoint_object\");\n\t\tReadPointExtensionType readPointExtension=new ReadPointExtensionType();\n\t\treadPoint.setExtension(readPointExtension);\n\t\t\n\t\ttransactionEventType.setReadPoint(readPoint);\n\t\t\n\t\tBusinessLocationType businessLocation =new BusinessLocationType();\n\t\tbusinessLocation.setId(\"BusinessLocation_object\");\n\t\tBusinessLocationExtensionType businessLocationExtension= new BusinessLocationExtensionType();\n\t\tbusinessLocation.setExtension(businessLocationExtension);\n\t\t\n\t\ttransactionEventType.setBizLocation(businessLocation);\n\t\t\n\t\tBusinessTransactionListType businessTransactionList=new BusinessTransactionListType();\t\n\t\tBusinessTransactionType businessTransaction1=new BusinessTransactionType();\n\t\tbusinessTransaction1.setType(\"type1_o\");\n\t\tbusinessTransaction1.setValue(\"value1_o\");\n\t\tBusinessTransactionType businessTransaction2=new BusinessTransactionType();\n\t\tbusinessTransaction1.setType(\"type2_o\");\n\t\tbusinessTransaction1.setValue(\"value2_o\");\n\t\tbusinessTransactionList.getBizTransaction().add(businessTransaction1);\n\t\tbusinessTransactionList.getBizTransaction().add(businessTransaction2);\n\t\ttransactionEventType.setBizTransactionList(businessTransactionList);\n\t\t\n\t\t\n\t\tTransactionEventExtensionType transactionEventExtension =new TransactionEventExtensionType();\n\t\t\n\t\tQuantityListType quantityList =new QuantityListType();\n\t\tQuantityElementType quantityElement1=new QuantityElementType();\n\t\tquantityElement1.setEpcClass(\"epcClass1_O\");\n\t\tquantityElement1.setQuantity(111);\n\t\tquantityElement1.setUom(\"uom1_O\");\n\t\tQuantityElementType quantityElement2=new QuantityElementType();\n\t\tquantityElement2.setEpcClass(\"epcClass2_O\");\n\t\tquantityElement2.setQuantity(111);\n\t\tquantityElement2.setUom(\"uom2_O\");\n\t\tquantityList.getQuantityElement().add(quantityElement1);\n\t\tquantityList.getQuantityElement().add(quantityElement2);\n\t\t\n\t\ttransactionEventExtension.setQuantityList(quantityList);\n\t\t\n\t\tDestinationListType destinationList =new DestinationListType();\n\t\tSourceDestType sourceDest3=new SourceDestType( );\n\t\tSourceDestType sourceDest4=new SourceDestType( );\n\t\tsourceDest3.setValue(\"value3\");\n\t\tsourceDest3.setType(\"type3\");\n\t\tsourceDest4.setValue(\"value4\");\n\t\tsourceDest4.setType(\"type4\");\n\t\t\n\t\tdestinationList.getDestination().add(sourceDest3);\n\t\tdestinationList.getDestination().add(sourceDest4);\n\t\ttransactionEventExtension.setDestinationList(destinationList);\n\t\t\n\t\tSourceListType sourceList =new SourceListType();\n\t\tSourceDestType sourceDest1=new SourceDestType( );\n\t\tSourceDestType sourceDest2=new SourceDestType( );\n\t\tsourceDest1.setValue(\"value1\");\n\t\tsourceDest1.setType(\"type1\");\n\t\tsourceDest1.setValue(\"value2\");\n\t\tsourceDest1.setType(\"type2\");\n\t\t\n\t\tsourceList.getSource().add(sourceDest1);\n\t\tsourceList.getSource().add(sourceDest2);\n\t\t\n\t\t\n\t\ttransactionEventExtension.setSourceList(sourceList);\n\t\t\n\t\t\n\t\t\n\n\t\tTransactionEventExtension2Type transactionEventExtension2=\n\t\t\t\tnew TransactionEventExtension2Type();\n\t\t\n\t\ttransactionEventExtension.setExtension(transactionEventExtension2);\n\t\t\n\t\t\n\t\ttransactionEventType.setExtension(transactionEventExtension);\n\t\t\n\t\treturn transactionEventType;\n\t\t\n\t}",
"@Override\n\tpublic void setType(int type) {\n\t\t_expandoColumn.setType(type);\n\t}",
"private String getNameFromType(int activityType) {\n switch(activityType) {\n case DetectedActivity.IN_VEHICLE:\n return \"in_vehicle\";\n case DetectedActivity.ON_BICYCLE:\n return \"on_bicycle\";\n case DetectedActivity.ON_FOOT:\n return \"on_foot\";\n case DetectedActivity.STILL:\n return \"still\";\n case DetectedActivity.UNKNOWN:\n return \"unknown\";\n case DetectedActivity.TILTING:\n return \"tilting\";\n }\n return \"unrecognized\";\n }",
"public Integer getActivitytypeid() {\n return activitytypeid;\n }",
"@Nullable\n @Generated\n @Selector(\"handoffUserActivityType\")\n public native String handoffUserActivityType();",
"@Override\n public String getType(){\n return Type;\n }",
"public Vector listActivityCategory() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT activity_type_id,activity_type_name FROM \"+ DBHelper.USEA_ACTIVITY_CATEGORY;\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) {\n this.activityTypeId = rs.getString(1);\n this.activityTypeName = rs.getString(2);\n String [] activityList = {activityTypeId,activityTypeName};\n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"UserType getType();",
"HotelType selectByPrimaryKey(Integer typeiId);",
"public String getType() {return type;}",
"TableType getTableType()\n {\n return tableType;\n }",
"public static AuditType exampleAuditType() {\r\n AuditType auditType = new AuditType();\r\n auditType.setActionName(\"actionName\");\r\n auditType.setAuditCategory(\"auditCategory\");\r\n auditType.setContextId(\"contextId\");\r\n auditType.setCreatedOnDb(3L);\r\n auditType.setHibernateVersionNumber(4L);\r\n auditType.setId(\"id\");\r\n auditType.setLabelInt01(\"labelInt01\");\r\n auditType.setLabelInt02(\"labelInt02\");\r\n auditType.setLabelInt03(\"labelInt03\");\r\n auditType.setLabelInt04(\"labelInt04\");\r\n auditType.setLabelInt05(\"labelInt05\");\r\n auditType.setLabelString01(\"labelString01\");\r\n auditType.setLabelString02(\"labelString02\");\r\n auditType.setLabelString03(\"labelString03\");\r\n auditType.setLabelString04(\"labelString04\");\r\n auditType.setLabelString05(\"labelString05\");\r\n auditType.setLabelString06(\"labelString06\");\r\n auditType.setLabelString07(\"labelString07\");\r\n auditType.setLabelString08(\"labelString08\");\r\n auditType.setLastUpdatedDb(5L);\r\n return auditType;\r\n }",
"public abstract QCEntryType getType();",
"RelDataType getResultType(String sql);",
"@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);",
"public abstract String toHiveType(int sqlType);",
"@Override\n public String getJavaByJdbcType(DbAttribute attribute, int type) {\n String jdbcType = TypesMapping.getSqlNameByType(type);\n DbType dbType;\n if (attribute != null) {\n dbType = new DbType(\n jdbcType,\n attribute.getMaxLength(),\n attribute.getAttributePrecision(),\n attribute.getScale(),\n attribute.isMandatory());\n } else {\n dbType = new DbType(jdbcType);\n }\n\n String typeName = getJavaByJdbcType(dbType);\n\n if (usePrimitives != null && usePrimitives) {\n String primitive = classToPrimitive.get(typeName);\n if (primitive != null) {\n return primitive;\n }\n }\n\n return typeName;\n }",
"RelDataType getParameterRowType();",
"private static String mapStatementSetter(final FieldType.Type type) {\n switch (type) {\n case DATE:\n return \"setDate\";\n case INTEGER:\n return \"setInt\";\n case REAL:\n return \"setDouble\";\n case STRING:\n return \"setString\";\n default:\n return null;\n }\n }",
"@Override\n\tpublic int getType() {\n\t\treturn 1;\n\t}",
"public void setTransactionType(int transactionChoice);",
"public int getType() { return type; }",
"public int getType() { return type; }",
"CmsActivity selectByPrimaryKey(String activityId);",
"@Override\r\n\t\tpublic Map<String, Class<?>> getTypeMap() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public ConcatColumn(final Type type) {\n this.type = type;\n numTuples = 0;\n columnIds = Maps.newTreeMap();\n readOnly = false;\n }",
"@Override\n public String getType() {\n return \"\";\n }",
"@SuppressWarnings({ \"all\", \"unchecked\", \"rawtypes\" })\npublic interface IXActivity extends VertxPojo, Serializable {\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键\n */\n public IXActivity setKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键\n */\n public String getKey();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TYPE</code>. 「type」- 操作类型\n */\n public IXActivity setType(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TYPE</code>. 「type」- 操作类型\n */\n public String getType();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.SERIAL</code>. 「serial」- 变更记录号\n */\n public IXActivity setSerial(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.SERIAL</code>. 「serial」- 变更记录号\n */\n public String getSerial();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.DESCRIPTION</code>. 「description」-\n * 操作描述信息\n */\n public IXActivity setDescription(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.DESCRIPTION</code>. 「description」-\n * 操作描述信息\n */\n public String getDescription();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_ID</code>. 「modelId」-\n * 组所关联的模型identifier,用于描述\n */\n public IXActivity setModelId(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_ID</code>. 「modelId」-\n * 组所关联的模型identifier,用于描述\n */\n public String getModelId();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_KEY</code>. 「modelKey」-\n * 组所关联的模型记录ID,用于描述哪一个Model中的记录\n */\n public IXActivity setModelKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_KEY</code>. 「modelKey」-\n * 组所关联的模型记录ID,用于描述哪一个Model中的记录\n */\n public String getModelKey();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_CATEGORY</code>.\n * 「modelCategory」- 关联的category记录,只包含叶节点\n */\n public IXActivity setModelCategory(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_CATEGORY</code>.\n * 「modelCategory」- 关联的category记录,只包含叶节点\n */\n public String getModelCategory();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TASK_NAME</code>. 「taskName」- 任务名称\n */\n public IXActivity setTaskName(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TASK_NAME</code>. 「taskName」- 任务名称\n */\n public String getTaskName();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TASK_SERIAL</code>. 「taskSerial」-\n * 任务单号\n */\n public IXActivity setTaskSerial(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TASK_SERIAL</code>. 「taskSerial」-\n * 任务单号\n */\n public String getTaskSerial();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_OLD</code>. 「recordOld」-\n * 变更之前的数据(用于回滚)\n */\n public IXActivity setRecordOld(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_OLD</code>. 「recordOld」-\n * 变更之前的数据(用于回滚)\n */\n public String getRecordOld();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_NEW</code>. 「recordNew」-\n * 变更之后的数据(用于更新)\n */\n public IXActivity setRecordNew(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_NEW</code>. 「recordNew」-\n * 变更之后的数据(用于更新)\n */\n public String getRecordNew();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.SIGMA</code>. 「sigma」- 用户组绑定的统一标识\n */\n public IXActivity setSigma(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.SIGMA</code>. 「sigma」- 用户组绑定的统一标识\n */\n public String getSigma();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.LANGUAGE</code>. 「language」- 使用的语言\n */\n public IXActivity setLanguage(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.LANGUAGE</code>. 「language」- 使用的语言\n */\n public String getLanguage();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.ACTIVE</code>. 「active」- 是否启用\n */\n public IXActivity setActive(Boolean value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.ACTIVE</code>. 「active」- 是否启用\n */\n public Boolean getActive();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.METADATA</code>. 「metadata」-\n * 附加配置数据\n */\n public IXActivity setMetadata(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.METADATA</code>. 「metadata」-\n * 附加配置数据\n */\n public String getMetadata();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_AT</code>. 「createdAt」-\n * 创建时间\n */\n public IXActivity setCreatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_AT</code>. 「createdAt」-\n * 创建时间\n */\n public LocalDateTime getCreatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_BY</code>. 「createdBy」-\n * 创建人\n */\n public IXActivity setCreatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_BY</code>. 「createdBy」-\n * 创建人\n */\n public String getCreatedBy();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_AT</code>. 「updatedAt」-\n * 更新时间\n */\n public IXActivity setUpdatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_AT</code>. 「updatedAt」-\n * 更新时间\n */\n public LocalDateTime getUpdatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_BY</code>. 「updatedBy」-\n * 更新人\n */\n public IXActivity setUpdatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_BY</code>. 「updatedBy」-\n * 更新人\n */\n public String getUpdatedBy();\n\n // -------------------------------------------------------------------------\n // FROM and INTO\n // -------------------------------------------------------------------------\n\n /**\n * Load data from another generated Record/POJO implementing the common\n * interface IXActivity\n */\n public void from(IXActivity from);\n\n /**\n * Copy data into another generated Record/POJO implementing the common\n * interface IXActivity\n */\n public <E extends IXActivity> E into(E into);\n\n @Override\n public default IXActivity fromJson(io.vertx.core.json.JsonObject json) {\n setOrThrow(this::setKey,json::getString,\"KEY\",\"java.lang.String\");\n setOrThrow(this::setType,json::getString,\"TYPE\",\"java.lang.String\");\n setOrThrow(this::setSerial,json::getString,\"SERIAL\",\"java.lang.String\");\n setOrThrow(this::setDescription,json::getString,\"DESCRIPTION\",\"java.lang.String\");\n setOrThrow(this::setModelId,json::getString,\"MODEL_ID\",\"java.lang.String\");\n setOrThrow(this::setModelKey,json::getString,\"MODEL_KEY\",\"java.lang.String\");\n setOrThrow(this::setModelCategory,json::getString,\"MODEL_CATEGORY\",\"java.lang.String\");\n setOrThrow(this::setTaskName,json::getString,\"TASK_NAME\",\"java.lang.String\");\n setOrThrow(this::setTaskSerial,json::getString,\"TASK_SERIAL\",\"java.lang.String\");\n setOrThrow(this::setRecordOld,json::getString,\"RECORD_OLD\",\"java.lang.String\");\n setOrThrow(this::setRecordNew,json::getString,\"RECORD_NEW\",\"java.lang.String\");\n setOrThrow(this::setSigma,json::getString,\"SIGMA\",\"java.lang.String\");\n setOrThrow(this::setLanguage,json::getString,\"LANGUAGE\",\"java.lang.String\");\n setOrThrow(this::setActive,json::getBoolean,\"ACTIVE\",\"java.lang.Boolean\");\n setOrThrow(this::setMetadata,json::getString,\"METADATA\",\"java.lang.String\");\n setOrThrow(this::setCreatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},\"CREATED_AT\",\"java.time.LocalDateTime\");\n setOrThrow(this::setCreatedBy,json::getString,\"CREATED_BY\",\"java.lang.String\");\n setOrThrow(this::setUpdatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},\"UPDATED_AT\",\"java.time.LocalDateTime\");\n setOrThrow(this::setUpdatedBy,json::getString,\"UPDATED_BY\",\"java.lang.String\");\n return this;\n }\n\n\n @Override\n public default io.vertx.core.json.JsonObject toJson() {\n io.vertx.core.json.JsonObject json = new io.vertx.core.json.JsonObject();\n json.put(\"KEY\",getKey());\n json.put(\"TYPE\",getType());\n json.put(\"SERIAL\",getSerial());\n json.put(\"DESCRIPTION\",getDescription());\n json.put(\"MODEL_ID\",getModelId());\n json.put(\"MODEL_KEY\",getModelKey());\n json.put(\"MODEL_CATEGORY\",getModelCategory());\n json.put(\"TASK_NAME\",getTaskName());\n json.put(\"TASK_SERIAL\",getTaskSerial());\n json.put(\"RECORD_OLD\",getRecordOld());\n json.put(\"RECORD_NEW\",getRecordNew());\n json.put(\"SIGMA\",getSigma());\n json.put(\"LANGUAGE\",getLanguage());\n json.put(\"ACTIVE\",getActive());\n json.put(\"METADATA\",getMetadata());\n json.put(\"CREATED_AT\",getCreatedAt()==null?null:getCreatedAt().toString());\n json.put(\"CREATED_BY\",getCreatedBy());\n json.put(\"UPDATED_AT\",getUpdatedAt()==null?null:getUpdatedAt().toString());\n json.put(\"UPDATED_BY\",getUpdatedBy());\n return json;\n }\n\n}",
"public static AuditType exampleAuditTypeDb() {\r\n return exampleAuditTypeDb(\"testCategory\", \"testAction\");\r\n }",
"public QueryType getType();",
"String getSQLTypeName() throws SQLException;",
"@Schema(description = \"When sub-classing, this defines the sub-class entity name\")\n\n\tpublic String getAtType() {\n\t\treturn type;\n\t}",
"public void updateData(String typeActivity) {\n try {\n Float.parseFloat(this.inputNominal.getText());\n } catch (Exception err) {\n this.alert.showMessageDialog(null, \"Silahkan input nominal dengan benar\");\n }\n \n try {\n this.inputDate.getDate().getTime();\n } catch (Exception err) {\n this.alert.showMessageDialog(null, \"Silahkan input tanggal dengan benar\");\n }\n \n Time time = new Time();\n time.setDate(this.inputDate.getDate());\n \n String description = this.inputDescription.getText();\n float nominal = Float.parseFloat(this.inputNominal.getText());\n String dateAt = time.parseDatetime();\n \n ActivityService activityService = new ActivityService();\n \n activityService\n .setId(this.id)\n .setDescription(description)\n .setNominal(nominal)\n .setDateAt(dateAt)\n .setUser(this.dashboard.user);\n \n try {\n if (typeActivity.equals(\"+\")) {\n activityService.updateIncome();\n } else {\n activityService.updateExpense();\n }\n this.dashboard.refreshUI();\n this.dashboard.resetForm();\n } catch (Exception err) {\n this.alert.showMessageDialog(null, err.getMessage());\n }\n }",
"public void representDataOnActors(String type)\r\n\t{\n\t}",
"public String getType() { return type; }",
"public long getCount(MigrationType type);",
"fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType();",
"QueryType createQueryType();",
"public String getType(){\n return this.type;\n }",
"public void setResult(int type, String typeName, Class javaType) {\r\n ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(\"\");\r\n field.setSqlType(type);\r\n field.setSqlTypeName(typeName);\r\n field.setType(javaType);\r\n getParameters().set(0, field);\r\n }",
"public int getType() {\n return type;\n }",
"public ScGridColumn<AcActionAutoCorrectedLog> newScannedTypeColumn()\n {\n return newScannedTypeColumn(\"Scanned Type\");\n }",
"@Override\n public int getCustomChatRowTypeCount() {\n return 10;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public int getType(){\r\n\t\treturn type;\r\n\t}",
"SellType selectByPrimaryKey(Integer sell_type_id);",
"@Override\r\n\tpublic String getType() {\n\t\treturn type;\r\n\t}",
"@Override\n public int getResultSetType() throws SQLException {\n throw new SQLException(\"tinySQL does not support getResultSetType.\");\n }",
"public interface UserShareActivityMapper {\n\n\n @Select(\"select count(1) from lh_share_activity_info WHERE random=#{random} AND share_user_tid=#{user_tid} AND extend_type=#{extend_type}\")\n public Integer checkSharelink(CreateShareLinkEvent event);\n\n @Insert(\"insert into lh_share_activity_info(share_user_tid,\" +\n \"random,extend_type,end_time,create_time) values(#{share_user_tid},#{random},#{extend_type},#{end_time},now())\")\n public void insertShareLink(UserShareInfo userShareInfo);\n}",
"void setType(String type) {\n this.type = type;\n }",
"void setForPersistentMapping_Type(Type type) {\n this.type = type;\n }",
"public abstract Map<String, Integer> getColumnTypes(String tableName);",
"public String getType(){\r\n return type;\r\n }",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"public ResultSet getAppointmentsByType() throws SQLException {\r\n String statement = \"SELECT DISTINCT Type as Type, COUNT(Type) as AMOUNT FROM appointments GROUP BY Type\";\r\n return conn.prepareStatement(statement).executeQuery();\r\n }",
"public int getType(){\n return type;\n }",
"@Override\n\tpublic int getType() {\n\t\treturn _expandoColumn.getType();\n\t}",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }"
] | [
"0.60907745",
"0.56518316",
"0.5617674",
"0.55851614",
"0.5515899",
"0.5429194",
"0.5411337",
"0.53703195",
"0.53390545",
"0.52778",
"0.52769154",
"0.52413064",
"0.522299",
"0.51914597",
"0.51647353",
"0.51364106",
"0.5066082",
"0.50618553",
"0.50616753",
"0.5050939",
"0.50326174",
"0.5030021",
"0.4985679",
"0.4958322",
"0.4957959",
"0.49510604",
"0.4946326",
"0.4905505",
"0.48941228",
"0.48809934",
"0.48678085",
"0.4857349",
"0.48384783",
"0.48219064",
"0.48139277",
"0.48073718",
"0.48015222",
"0.47932574",
"0.47854418",
"0.47803855",
"0.4779893",
"0.47757474",
"0.4775457",
"0.47738466",
"0.47694823",
"0.476707",
"0.47475797",
"0.47443306",
"0.47397175",
"0.4737887",
"0.47329366",
"0.47224134",
"0.4722358",
"0.47214916",
"0.47144052",
"0.4705132",
"0.47038382",
"0.47038382",
"0.47029248",
"0.46974093",
"0.46939912",
"0.46893182",
"0.46802947",
"0.46766913",
"0.46689025",
"0.46685708",
"0.46670607",
"0.46627983",
"0.46570033",
"0.46537668",
"0.46509942",
"0.46418864",
"0.46355778",
"0.46340042",
"0.4627499",
"0.46269494",
"0.46242628",
"0.46168092",
"0.46166041",
"0.46110654",
"0.46090087",
"0.4602575",
"0.45977417",
"0.4597728",
"0.4592478",
"0.45920688",
"0.45910782",
"0.4585131",
"0.45845562",
"0.45845562",
"0.45844653",
"0.45832726",
"0.45778546",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table qt_activitytype | int insert(QtActivitytype record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected List<Daily_activity_type> getDailyActivityType() {\n return super.emMain.createQuery(\"FROM Daily_activity_type WHERE dat_code <> 0 ORDER BY dat_order ASC\",\n Daily_activity_type.class).getResultList();\n }",
"public Vector listActivityTypeActivity() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT A.activity_type_id,B.specification_id,B.specification_name, A.transaction_type_id FROM \"+ \n DBHelper.USEA_ACTIVITY_CATEGORY+\" A, \"+DBHelper.USEA_SPECIFICATION_MASTER+\" B \"+\n \" WHERE A.activity_type_id = B.activity_type_id AND A.activity_type_name = ? and B.active_status = ? order by B.specification_name\";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, \"Activity\");\n prepStmt.setBoolean(2, true);\n \n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) {\n \n this.specificationId = rs.getString(2);\n this.specificationName = rs.getString(3);\n String txnTypeId = rs.getString(4);\n \n String [] activityList = {specificationId,specificationName,txnTypeId};\n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"public void setActivityType(ActivityType activityType) {\n this.activityType = activityType;\n }",
"public String toXML() {\n StringBuffer ret = new StringBuffer();\n ret.append(\"<table name=\\\"MTBTypes\\\">\\n\");\n ret.append(\" <column name=\\\"_MTBTypes_key\\\"\\n\");\n ret.append(\" value=\\\"\").append((MTBTypesKey_is_initialized ? ((MTBTypesKey == null ? null : MTBTypesKey.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"type\\\"\\n\");\n ret.append(\" value=\\\"\").append((type_is_initialized ? ((type == null ? null : type)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"description\\\"\\n\");\n ret.append(\" value=\\\"\").append((description_is_initialized ? ((description == null ? null : description)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"tableName\\\"\\n\");\n ret.append(\" value=\\\"\").append((tableName_is_initialized ? ((tableName == null ? null : tableName)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"columnName\\\"\\n\");\n ret.append(\" value=\\\"\").append((columnName_is_initialized ? ((columnName == null ? null : columnName)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"create_user\\\"\\n\");\n ret.append(\" value=\\\"\").append((createUser_is_initialized ? ((createUser == null ? null : createUser)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"create_date\\\"\\n\");\n ret.append(\" value=\\\"\").append((createDate_is_initialized ? ((createDate == null ? null : createDate.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"update_user\\\"\\n\");\n ret.append(\" value=\\\"\").append((updateUser_is_initialized ? ((updateUser == null ? null : updateUser)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"update_date\\\"\\n\");\n ret.append(\" value=\\\"\").append((updateDate_is_initialized ? ((updateDate == null ? null : updateDate.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\"</table>\");\n return ret.toString();\n }",
"public int getSqlType() { return _type; }",
"@Query(\"SELECT * FROM wellbeing_questions WHERE activity_type == :activityType\")\n List<WellbeingQuestion> getQuestionsByActivityType(String activityType);",
"public abstract String getTipoByAct(Actividad activity) throws PersistenceException, ClassNotFoundException;",
"public abstract String toJavaType(int sqlType);",
"Collection<ActivityType> getActivityTypes() throws DataAccessException;",
"void storeActivityType(ActivityType activityType) throws DataAccessException;",
"List<QtActivitytype> selectByExample(QtActivitytypeExample example);",
"QtActivitytype selectByPrimaryKey(Integer id);",
"RelDataType getColumnType(String sql);",
"public void setActivitytypeid(Integer activitytypeid) {\n this.activitytypeid = activitytypeid;\n }",
"public ActivityType getActivityType() {\n return activityType;\n }",
"public void setActivityType(ActivityType activity, UsertypeType type) {\n\t\tactivity.setUsertype(type);\n\t}",
"private void setActivity(int relType){\n\t\tActivity act = new Activity();\n\t\tActivityDefinition actDef = new ActivityDefinition();\n\t\tactDef.setType(INTERACT_TYPE);\n\t\tactDef.setInteractionType(INTERACT_TYPE);\n\t\t//InteractionComponent iac = new InteractionComponent();\n\t\tact.setDefinition(actDef);\n\t\t\n\t\tHashMap<String, String> names = new HashMap<String, String>();\n\t\tnames.put(\"en\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"en\")));\n\t\tnames.put(\"de\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"de\")));\n\n\t\tactDef.setName(names);\n\t\tthis.setObject(act);\n\t\n\t}",
"public Vector listActivityTypeRegister() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT B.specification_id,B.specification_name, A.transaction_type_id FROM \"+ \n DBHelper.USEA_ACTIVITY_CATEGORY+\" A, \"+DBHelper.USEA_SPECIFICATION_MASTER+\" B \"+\n \" WHERE A.activity_type_id = B.activity_type_id AND A.activity_type_name = ? and B.active_status = ? \";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, \"Registration\");\n prepStmt.setBoolean(2 , true);\n \n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) { \n this.specificationId = rs.getString(1);\n this.specificationName = rs.getString(2);\n String txnTypeId = rs.getString(3);\n \n String [] activityList = {specificationId,specificationName,txnTypeId};\n Debug.print(\" Specification Id : \"+specificationId);\n Debug.print(\" specificationName : \"+specificationName);\n Debug.print(\" txnTypeId : \"+txnTypeId);\n \n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"private void setActivity(int relType){\n\t\tActivity act = new Activity();\n\t\tActivityDefinition actDef = new ActivityDefinition();\n\t\tactDef.setType(INTERACT_TYPE);\n\t\tactDef.setInteractionType(INTERACT_TYPE);\n\t\t//InteractionComponent iac = new InteractionComponent();\n\t\tact.setDefinition(actDef);\n\t\t\n\t\tHashMap<String, String> names = new HashMap<String, String>();\n\t\t//names.put(\"en\",\"Identifying problems\");\n\t\tnames.put(\"en\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"en\")));\n\t\tnames.put(\"de\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"de\")));\n\n\t\tactDef.setName(names);\n\t\tthis.setObject(act);\n\t\n\t}",
"public String getEntityTypeName() { return \"jp.sourceforge.ea2ddl.dao.exentity.TTrxtypes\"; }",
"public Column.Type getType();",
"public String getTableDbName() { return \"t_trxtypes\"; }",
"public int getJdbcType();",
"com.rpg.framework.database.Protocol.ItemType getType();",
"@Override\r\n\tpublic String getType() {\n\t\treturn \"column\";\r\n\t}",
"ActivityType loadActivityType(int id) throws DataAccessException;",
"private void setActivityType(int value) {\n this.bitField0_ |= 4;\n this.activityType_ = value;\n }",
"@Override\n public RelDataType getRowType(final RelDataTypeFactory typeFactory) {\n final Schema kuduSchema = this.getKuduTable().getSchema();\n final RelDataTypeFactory.Builder builder = new RelDataTypeFactory.Builder(typeFactory);\n\n for (int i = 0; i < kuduSchema.getColumnCount(); i++) {\n final ColumnSchema currentColumn = kuduSchema.getColumnByIndex(i);\n switch (currentColumn.getType()) {\n case INT8:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.TINYINT).nullable(currentColumn.isNullable());\n break;\n case INT16:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.SMALLINT).nullable(currentColumn.isNullable());\n break;\n case INT32:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.INTEGER).nullable(currentColumn.isNullable());\n break;\n case INT64:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.BIGINT).nullable(currentColumn.isNullable());\n break;\n case BINARY:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.VARBINARY).nullable(currentColumn.isNullable());\n break;\n case STRING:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.VARCHAR).nullable(currentColumn.isNullable());\n break;\n case BOOL:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.BOOLEAN).nullable(currentColumn.isNullable());\n break;\n case FLOAT:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.FLOAT).nullable(currentColumn.isNullable());\n break;\n case DOUBLE:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.DOUBLE).nullable(currentColumn.isNullable());\n break;\n case UNIXTIME_MICROS:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.TIMESTAMP).nullable(currentColumn.isNullable());\n break;\n case DECIMAL:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.DECIMAL).nullable(currentColumn.isNullable());\n break;\n }\n }\n\n return builder.build();\n }",
"public TypeData getTypeData(MigrationType type);",
"private String getNameFromType(int activityType) {\n switch (activityType) {\n case DetectedActivity.IN_VEHICLE:\n return \"in_vehicle\";\n case DetectedActivity.ON_BICYCLE:\n return \"on_bicycle\";\n case DetectedActivity.ON_FOOT:\n return \"on_foot\";\n case DetectedActivity.STILL:\n return \"still\";\n case DetectedActivity.UNKNOWN:\n return \"unknown\";\n case DetectedActivity.TILTING:\n return \"tilting\";\n }\n return \"unknown\";\n }",
"@Override\n public String convertToDatabaseColumn(TransactionType transactionType) {\n if (transactionType == null) return null;\n\n return transactionType.getTransactionType();\n }",
"@Override\n public Object toJdbcType(Object value) {\n return value;\n }",
"public List<LogRoomTypeHistory>getAllRoomTypeHistory(TblRoomType roomType);",
"ResultColumn getTypeIdColumn(TableReference tableReference);",
"public ScGridColumn<AcActionAutoCorrectedLog> newActualTypeColumn()\n {\n return newActualTypeColumn(\"Actual Type\");\n }",
"public static \tTransactionEventType getTransactionEventTypeSample(){\n\t\t\n\t\tTransactionEventType transactionEventType=new TransactionEventType();\n\t\t\n\t\tGregorianCalendar gRecordTime = new GregorianCalendar();\n\t\tXMLGregorianCalendar recordTime;\n\t\ttry {\n\t\t\trecordTime = DatatypeFactory.newInstance().newXMLGregorianCalendar(gRecordTime);\n\t\t\ttransactionEventType.setEventTime(recordTime);\n\t\t\ttransactionEventType.setRecordTime(recordTime);\n\t\t} catch (DatatypeConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttransactionEventType.setEventTimeZoneOffset(\"eventTimeZoneOffset_T\");\n\t\ttransactionEventType.setParentID(\"parentID_T\");\n\t\t\n\t\tEPCListType transactionEventEPCs=new EPCListType();\n\t\t\n\t\t\n\t\torg.oliot.model.epcis.EPC epc1=new org.oliot.model.epcis.EPC (\"epc1_T\");\n\t\t\n\t\torg.oliot.model.epcis.EPC epc2=new org.oliot.model.epcis.EPC (\"epc2_T\");\n\t\t\t\t\n\t\ttransactionEventEPCs.getEpc().add(epc1);\n\t\ttransactionEventEPCs.getEpc().add(epc2);\n\t\ttransactionEventType.setEpcList(transactionEventEPCs);\n\t\t\n\t\ttransactionEventType.setAction(ActionType.fromValue(\"ADD\"));\t\n\t\ttransactionEventType.setBizStep(\"bizStep_T\");\n\t\ttransactionEventType.setDisposition(\"disposition_T\");\n\t\t\n\t\t\n\t\tReadPointType readPoint=new ReadPointType();\n\t\treadPoint.setId(\"ReadPoint_object\");\n\t\tReadPointExtensionType readPointExtension=new ReadPointExtensionType();\n\t\treadPoint.setExtension(readPointExtension);\n\t\t\n\t\ttransactionEventType.setReadPoint(readPoint);\n\t\t\n\t\tBusinessLocationType businessLocation =new BusinessLocationType();\n\t\tbusinessLocation.setId(\"BusinessLocation_object\");\n\t\tBusinessLocationExtensionType businessLocationExtension= new BusinessLocationExtensionType();\n\t\tbusinessLocation.setExtension(businessLocationExtension);\n\t\t\n\t\ttransactionEventType.setBizLocation(businessLocation);\n\t\t\n\t\tBusinessTransactionListType businessTransactionList=new BusinessTransactionListType();\t\n\t\tBusinessTransactionType businessTransaction1=new BusinessTransactionType();\n\t\tbusinessTransaction1.setType(\"type1_o\");\n\t\tbusinessTransaction1.setValue(\"value1_o\");\n\t\tBusinessTransactionType businessTransaction2=new BusinessTransactionType();\n\t\tbusinessTransaction1.setType(\"type2_o\");\n\t\tbusinessTransaction1.setValue(\"value2_o\");\n\t\tbusinessTransactionList.getBizTransaction().add(businessTransaction1);\n\t\tbusinessTransactionList.getBizTransaction().add(businessTransaction2);\n\t\ttransactionEventType.setBizTransactionList(businessTransactionList);\n\t\t\n\t\t\n\t\tTransactionEventExtensionType transactionEventExtension =new TransactionEventExtensionType();\n\t\t\n\t\tQuantityListType quantityList =new QuantityListType();\n\t\tQuantityElementType quantityElement1=new QuantityElementType();\n\t\tquantityElement1.setEpcClass(\"epcClass1_O\");\n\t\tquantityElement1.setQuantity(111);\n\t\tquantityElement1.setUom(\"uom1_O\");\n\t\tQuantityElementType quantityElement2=new QuantityElementType();\n\t\tquantityElement2.setEpcClass(\"epcClass2_O\");\n\t\tquantityElement2.setQuantity(111);\n\t\tquantityElement2.setUom(\"uom2_O\");\n\t\tquantityList.getQuantityElement().add(quantityElement1);\n\t\tquantityList.getQuantityElement().add(quantityElement2);\n\t\t\n\t\ttransactionEventExtension.setQuantityList(quantityList);\n\t\t\n\t\tDestinationListType destinationList =new DestinationListType();\n\t\tSourceDestType sourceDest3=new SourceDestType( );\n\t\tSourceDestType sourceDest4=new SourceDestType( );\n\t\tsourceDest3.setValue(\"value3\");\n\t\tsourceDest3.setType(\"type3\");\n\t\tsourceDest4.setValue(\"value4\");\n\t\tsourceDest4.setType(\"type4\");\n\t\t\n\t\tdestinationList.getDestination().add(sourceDest3);\n\t\tdestinationList.getDestination().add(sourceDest4);\n\t\ttransactionEventExtension.setDestinationList(destinationList);\n\t\t\n\t\tSourceListType sourceList =new SourceListType();\n\t\tSourceDestType sourceDest1=new SourceDestType( );\n\t\tSourceDestType sourceDest2=new SourceDestType( );\n\t\tsourceDest1.setValue(\"value1\");\n\t\tsourceDest1.setType(\"type1\");\n\t\tsourceDest1.setValue(\"value2\");\n\t\tsourceDest1.setType(\"type2\");\n\t\t\n\t\tsourceList.getSource().add(sourceDest1);\n\t\tsourceList.getSource().add(sourceDest2);\n\t\t\n\t\t\n\t\ttransactionEventExtension.setSourceList(sourceList);\n\t\t\n\t\t\n\t\t\n\n\t\tTransactionEventExtension2Type transactionEventExtension2=\n\t\t\t\tnew TransactionEventExtension2Type();\n\t\t\n\t\ttransactionEventExtension.setExtension(transactionEventExtension2);\n\t\t\n\t\t\n\t\ttransactionEventType.setExtension(transactionEventExtension);\n\t\t\n\t\treturn transactionEventType;\n\t\t\n\t}",
"@Override\n\tpublic void setType(int type) {\n\t\t_expandoColumn.setType(type);\n\t}",
"private String getNameFromType(int activityType) {\n switch(activityType) {\n case DetectedActivity.IN_VEHICLE:\n return \"in_vehicle\";\n case DetectedActivity.ON_BICYCLE:\n return \"on_bicycle\";\n case DetectedActivity.ON_FOOT:\n return \"on_foot\";\n case DetectedActivity.STILL:\n return \"still\";\n case DetectedActivity.UNKNOWN:\n return \"unknown\";\n case DetectedActivity.TILTING:\n return \"tilting\";\n }\n return \"unrecognized\";\n }",
"public Integer getActivitytypeid() {\n return activitytypeid;\n }",
"@Nullable\n @Generated\n @Selector(\"handoffUserActivityType\")\n public native String handoffUserActivityType();",
"public Vector listActivityCategory() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT activity_type_id,activity_type_name FROM \"+ DBHelper.USEA_ACTIVITY_CATEGORY;\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) {\n this.activityTypeId = rs.getString(1);\n this.activityTypeName = rs.getString(2);\n String [] activityList = {activityTypeId,activityTypeName};\n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"@Override\n public String getType(){\n return Type;\n }",
"UserType getType();",
"HotelType selectByPrimaryKey(Integer typeiId);",
"public String getType() {return type;}",
"TableType getTableType()\n {\n return tableType;\n }",
"public static AuditType exampleAuditType() {\r\n AuditType auditType = new AuditType();\r\n auditType.setActionName(\"actionName\");\r\n auditType.setAuditCategory(\"auditCategory\");\r\n auditType.setContextId(\"contextId\");\r\n auditType.setCreatedOnDb(3L);\r\n auditType.setHibernateVersionNumber(4L);\r\n auditType.setId(\"id\");\r\n auditType.setLabelInt01(\"labelInt01\");\r\n auditType.setLabelInt02(\"labelInt02\");\r\n auditType.setLabelInt03(\"labelInt03\");\r\n auditType.setLabelInt04(\"labelInt04\");\r\n auditType.setLabelInt05(\"labelInt05\");\r\n auditType.setLabelString01(\"labelString01\");\r\n auditType.setLabelString02(\"labelString02\");\r\n auditType.setLabelString03(\"labelString03\");\r\n auditType.setLabelString04(\"labelString04\");\r\n auditType.setLabelString05(\"labelString05\");\r\n auditType.setLabelString06(\"labelString06\");\r\n auditType.setLabelString07(\"labelString07\");\r\n auditType.setLabelString08(\"labelString08\");\r\n auditType.setLastUpdatedDb(5L);\r\n return auditType;\r\n }",
"public abstract QCEntryType getType();",
"RelDataType getResultType(String sql);",
"@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);",
"public abstract String toHiveType(int sqlType);",
"@Override\n public String getJavaByJdbcType(DbAttribute attribute, int type) {\n String jdbcType = TypesMapping.getSqlNameByType(type);\n DbType dbType;\n if (attribute != null) {\n dbType = new DbType(\n jdbcType,\n attribute.getMaxLength(),\n attribute.getAttributePrecision(),\n attribute.getScale(),\n attribute.isMandatory());\n } else {\n dbType = new DbType(jdbcType);\n }\n\n String typeName = getJavaByJdbcType(dbType);\n\n if (usePrimitives != null && usePrimitives) {\n String primitive = classToPrimitive.get(typeName);\n if (primitive != null) {\n return primitive;\n }\n }\n\n return typeName;\n }",
"RelDataType getParameterRowType();",
"private static String mapStatementSetter(final FieldType.Type type) {\n switch (type) {\n case DATE:\n return \"setDate\";\n case INTEGER:\n return \"setInt\";\n case REAL:\n return \"setDouble\";\n case STRING:\n return \"setString\";\n default:\n return null;\n }\n }",
"@Override\n\tpublic int getType() {\n\t\treturn 1;\n\t}",
"CmsActivity selectByPrimaryKey(String activityId);",
"public void setTransactionType(int transactionChoice);",
"public int getType() { return type; }",
"public int getType() { return type; }",
"@Override\r\n\t\tpublic Map<String, Class<?>> getTypeMap() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public ConcatColumn(final Type type) {\n this.type = type;\n numTuples = 0;\n columnIds = Maps.newTreeMap();\n readOnly = false;\n }",
"@Override\n public String getType() {\n return \"\";\n }",
"@SuppressWarnings({ \"all\", \"unchecked\", \"rawtypes\" })\npublic interface IXActivity extends VertxPojo, Serializable {\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键\n */\n public IXActivity setKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键\n */\n public String getKey();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TYPE</code>. 「type」- 操作类型\n */\n public IXActivity setType(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TYPE</code>. 「type」- 操作类型\n */\n public String getType();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.SERIAL</code>. 「serial」- 变更记录号\n */\n public IXActivity setSerial(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.SERIAL</code>. 「serial」- 变更记录号\n */\n public String getSerial();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.DESCRIPTION</code>. 「description」-\n * 操作描述信息\n */\n public IXActivity setDescription(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.DESCRIPTION</code>. 「description」-\n * 操作描述信息\n */\n public String getDescription();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_ID</code>. 「modelId」-\n * 组所关联的模型identifier,用于描述\n */\n public IXActivity setModelId(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_ID</code>. 「modelId」-\n * 组所关联的模型identifier,用于描述\n */\n public String getModelId();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_KEY</code>. 「modelKey」-\n * 组所关联的模型记录ID,用于描述哪一个Model中的记录\n */\n public IXActivity setModelKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_KEY</code>. 「modelKey」-\n * 组所关联的模型记录ID,用于描述哪一个Model中的记录\n */\n public String getModelKey();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_CATEGORY</code>.\n * 「modelCategory」- 关联的category记录,只包含叶节点\n */\n public IXActivity setModelCategory(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_CATEGORY</code>.\n * 「modelCategory」- 关联的category记录,只包含叶节点\n */\n public String getModelCategory();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TASK_NAME</code>. 「taskName」- 任务名称\n */\n public IXActivity setTaskName(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TASK_NAME</code>. 「taskName」- 任务名称\n */\n public String getTaskName();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TASK_SERIAL</code>. 「taskSerial」-\n * 任务单号\n */\n public IXActivity setTaskSerial(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TASK_SERIAL</code>. 「taskSerial」-\n * 任务单号\n */\n public String getTaskSerial();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_OLD</code>. 「recordOld」-\n * 变更之前的数据(用于回滚)\n */\n public IXActivity setRecordOld(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_OLD</code>. 「recordOld」-\n * 变更之前的数据(用于回滚)\n */\n public String getRecordOld();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_NEW</code>. 「recordNew」-\n * 变更之后的数据(用于更新)\n */\n public IXActivity setRecordNew(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_NEW</code>. 「recordNew」-\n * 变更之后的数据(用于更新)\n */\n public String getRecordNew();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.SIGMA</code>. 「sigma」- 用户组绑定的统一标识\n */\n public IXActivity setSigma(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.SIGMA</code>. 「sigma」- 用户组绑定的统一标识\n */\n public String getSigma();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.LANGUAGE</code>. 「language」- 使用的语言\n */\n public IXActivity setLanguage(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.LANGUAGE</code>. 「language」- 使用的语言\n */\n public String getLanguage();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.ACTIVE</code>. 「active」- 是否启用\n */\n public IXActivity setActive(Boolean value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.ACTIVE</code>. 「active」- 是否启用\n */\n public Boolean getActive();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.METADATA</code>. 「metadata」-\n * 附加配置数据\n */\n public IXActivity setMetadata(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.METADATA</code>. 「metadata」-\n * 附加配置数据\n */\n public String getMetadata();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_AT</code>. 「createdAt」-\n * 创建时间\n */\n public IXActivity setCreatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_AT</code>. 「createdAt」-\n * 创建时间\n */\n public LocalDateTime getCreatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_BY</code>. 「createdBy」-\n * 创建人\n */\n public IXActivity setCreatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_BY</code>. 「createdBy」-\n * 创建人\n */\n public String getCreatedBy();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_AT</code>. 「updatedAt」-\n * 更新时间\n */\n public IXActivity setUpdatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_AT</code>. 「updatedAt」-\n * 更新时间\n */\n public LocalDateTime getUpdatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_BY</code>. 「updatedBy」-\n * 更新人\n */\n public IXActivity setUpdatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_BY</code>. 「updatedBy」-\n * 更新人\n */\n public String getUpdatedBy();\n\n // -------------------------------------------------------------------------\n // FROM and INTO\n // -------------------------------------------------------------------------\n\n /**\n * Load data from another generated Record/POJO implementing the common\n * interface IXActivity\n */\n public void from(IXActivity from);\n\n /**\n * Copy data into another generated Record/POJO implementing the common\n * interface IXActivity\n */\n public <E extends IXActivity> E into(E into);\n\n @Override\n public default IXActivity fromJson(io.vertx.core.json.JsonObject json) {\n setOrThrow(this::setKey,json::getString,\"KEY\",\"java.lang.String\");\n setOrThrow(this::setType,json::getString,\"TYPE\",\"java.lang.String\");\n setOrThrow(this::setSerial,json::getString,\"SERIAL\",\"java.lang.String\");\n setOrThrow(this::setDescription,json::getString,\"DESCRIPTION\",\"java.lang.String\");\n setOrThrow(this::setModelId,json::getString,\"MODEL_ID\",\"java.lang.String\");\n setOrThrow(this::setModelKey,json::getString,\"MODEL_KEY\",\"java.lang.String\");\n setOrThrow(this::setModelCategory,json::getString,\"MODEL_CATEGORY\",\"java.lang.String\");\n setOrThrow(this::setTaskName,json::getString,\"TASK_NAME\",\"java.lang.String\");\n setOrThrow(this::setTaskSerial,json::getString,\"TASK_SERIAL\",\"java.lang.String\");\n setOrThrow(this::setRecordOld,json::getString,\"RECORD_OLD\",\"java.lang.String\");\n setOrThrow(this::setRecordNew,json::getString,\"RECORD_NEW\",\"java.lang.String\");\n setOrThrow(this::setSigma,json::getString,\"SIGMA\",\"java.lang.String\");\n setOrThrow(this::setLanguage,json::getString,\"LANGUAGE\",\"java.lang.String\");\n setOrThrow(this::setActive,json::getBoolean,\"ACTIVE\",\"java.lang.Boolean\");\n setOrThrow(this::setMetadata,json::getString,\"METADATA\",\"java.lang.String\");\n setOrThrow(this::setCreatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},\"CREATED_AT\",\"java.time.LocalDateTime\");\n setOrThrow(this::setCreatedBy,json::getString,\"CREATED_BY\",\"java.lang.String\");\n setOrThrow(this::setUpdatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},\"UPDATED_AT\",\"java.time.LocalDateTime\");\n setOrThrow(this::setUpdatedBy,json::getString,\"UPDATED_BY\",\"java.lang.String\");\n return this;\n }\n\n\n @Override\n public default io.vertx.core.json.JsonObject toJson() {\n io.vertx.core.json.JsonObject json = new io.vertx.core.json.JsonObject();\n json.put(\"KEY\",getKey());\n json.put(\"TYPE\",getType());\n json.put(\"SERIAL\",getSerial());\n json.put(\"DESCRIPTION\",getDescription());\n json.put(\"MODEL_ID\",getModelId());\n json.put(\"MODEL_KEY\",getModelKey());\n json.put(\"MODEL_CATEGORY\",getModelCategory());\n json.put(\"TASK_NAME\",getTaskName());\n json.put(\"TASK_SERIAL\",getTaskSerial());\n json.put(\"RECORD_OLD\",getRecordOld());\n json.put(\"RECORD_NEW\",getRecordNew());\n json.put(\"SIGMA\",getSigma());\n json.put(\"LANGUAGE\",getLanguage());\n json.put(\"ACTIVE\",getActive());\n json.put(\"METADATA\",getMetadata());\n json.put(\"CREATED_AT\",getCreatedAt()==null?null:getCreatedAt().toString());\n json.put(\"CREATED_BY\",getCreatedBy());\n json.put(\"UPDATED_AT\",getUpdatedAt()==null?null:getUpdatedAt().toString());\n json.put(\"UPDATED_BY\",getUpdatedBy());\n return json;\n }\n\n}",
"public static AuditType exampleAuditTypeDb() {\r\n return exampleAuditTypeDb(\"testCategory\", \"testAction\");\r\n }",
"String getSQLTypeName() throws SQLException;",
"public QueryType getType();",
"@Schema(description = \"When sub-classing, this defines the sub-class entity name\")\n\n\tpublic String getAtType() {\n\t\treturn type;\n\t}",
"public void updateData(String typeActivity) {\n try {\n Float.parseFloat(this.inputNominal.getText());\n } catch (Exception err) {\n this.alert.showMessageDialog(null, \"Silahkan input nominal dengan benar\");\n }\n \n try {\n this.inputDate.getDate().getTime();\n } catch (Exception err) {\n this.alert.showMessageDialog(null, \"Silahkan input tanggal dengan benar\");\n }\n \n Time time = new Time();\n time.setDate(this.inputDate.getDate());\n \n String description = this.inputDescription.getText();\n float nominal = Float.parseFloat(this.inputNominal.getText());\n String dateAt = time.parseDatetime();\n \n ActivityService activityService = new ActivityService();\n \n activityService\n .setId(this.id)\n .setDescription(description)\n .setNominal(nominal)\n .setDateAt(dateAt)\n .setUser(this.dashboard.user);\n \n try {\n if (typeActivity.equals(\"+\")) {\n activityService.updateIncome();\n } else {\n activityService.updateExpense();\n }\n this.dashboard.refreshUI();\n this.dashboard.resetForm();\n } catch (Exception err) {\n this.alert.showMessageDialog(null, err.getMessage());\n }\n }",
"public void representDataOnActors(String type)\r\n\t{\n\t}",
"public String getType() { return type; }",
"public long getCount(MigrationType type);",
"fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType();",
"QueryType createQueryType();",
"public String getType(){\n return this.type;\n }",
"public void setResult(int type, String typeName, Class javaType) {\r\n ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(\"\");\r\n field.setSqlType(type);\r\n field.setSqlTypeName(typeName);\r\n field.setType(javaType);\r\n getParameters().set(0, field);\r\n }",
"public int getType() {\n return type;\n }",
"public ScGridColumn<AcActionAutoCorrectedLog> newScannedTypeColumn()\n {\n return newScannedTypeColumn(\"Scanned Type\");\n }",
"@Override\n public int getCustomChatRowTypeCount() {\n return 10;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public int getType(){\r\n\t\treturn type;\r\n\t}",
"SellType selectByPrimaryKey(Integer sell_type_id);",
"@Override\r\n\tpublic String getType() {\n\t\treturn type;\r\n\t}",
"public interface UserShareActivityMapper {\n\n\n @Select(\"select count(1) from lh_share_activity_info WHERE random=#{random} AND share_user_tid=#{user_tid} AND extend_type=#{extend_type}\")\n public Integer checkSharelink(CreateShareLinkEvent event);\n\n @Insert(\"insert into lh_share_activity_info(share_user_tid,\" +\n \"random,extend_type,end_time,create_time) values(#{share_user_tid},#{random},#{extend_type},#{end_time},now())\")\n public void insertShareLink(UserShareInfo userShareInfo);\n}",
"@Override\n public int getResultSetType() throws SQLException {\n throw new SQLException(\"tinySQL does not support getResultSetType.\");\n }",
"void setForPersistentMapping_Type(Type type) {\n this.type = type;\n }",
"void setType(String type) {\n this.type = type;\n }",
"public abstract Map<String, Integer> getColumnTypes(String tableName);",
"public ResultSet getAppointmentsByType() throws SQLException {\r\n String statement = \"SELECT DISTINCT Type as Type, COUNT(Type) as AMOUNT FROM appointments GROUP BY Type\";\r\n return conn.prepareStatement(statement).executeQuery();\r\n }",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"public String getType(){\r\n return type;\r\n }",
"public int getType(){\n return type;\n }",
"@Override\n\tpublic int getType() {\n\t\treturn _expandoColumn.getType();\n\t}",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }"
] | [
"0.60906166",
"0.56526107",
"0.5617674",
"0.55837315",
"0.55136687",
"0.5429205",
"0.5411432",
"0.53696513",
"0.5340896",
"0.52781796",
"0.527689",
"0.5241337",
"0.5221943",
"0.519121",
"0.51648223",
"0.51361287",
"0.5063901",
"0.5061823",
"0.5059611",
"0.5048682",
"0.50308233",
"0.50279695",
"0.49844074",
"0.49565032",
"0.49562213",
"0.49528235",
"0.49464148",
"0.49041772",
"0.48931548",
"0.48816088",
"0.4866481",
"0.48570353",
"0.48379508",
"0.481974",
"0.48116428",
"0.48052406",
"0.48003376",
"0.4793981",
"0.47857565",
"0.4780061",
"0.47773296",
"0.47771874",
"0.4774131",
"0.47732222",
"0.4766961",
"0.4765001",
"0.47465622",
"0.47401768",
"0.4738044",
"0.47370714",
"0.47316858",
"0.47219512",
"0.47203556",
"0.4719897",
"0.47116473",
"0.47051296",
"0.4702538",
"0.47005975",
"0.47005975",
"0.46957037",
"0.4692896",
"0.46873003",
"0.46801883",
"0.46757245",
"0.4667773",
"0.46660247",
"0.46653333",
"0.46628523",
"0.46561548",
"0.46512753",
"0.46503398",
"0.46398574",
"0.46331736",
"0.46315476",
"0.46247247",
"0.46239135",
"0.4621272",
"0.46151224",
"0.46143243",
"0.46077484",
"0.46074945",
"0.4600229",
"0.45980695",
"0.45956936",
"0.45906287",
"0.4590257",
"0.45888963",
"0.45851094",
"0.4583184",
"0.4583184",
"0.45826247",
"0.4580067",
"0.45773607",
"0.4573518",
"0.4573518",
"0.4573518",
"0.4573518",
"0.4573518",
"0.4573518",
"0.4573518",
"0.4573518"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table qt_activitytype | int insertSelective(QtActivitytype record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected List<Daily_activity_type> getDailyActivityType() {\n return super.emMain.createQuery(\"FROM Daily_activity_type WHERE dat_code <> 0 ORDER BY dat_order ASC\",\n Daily_activity_type.class).getResultList();\n }",
"public Vector listActivityTypeActivity() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT A.activity_type_id,B.specification_id,B.specification_name, A.transaction_type_id FROM \"+ \n DBHelper.USEA_ACTIVITY_CATEGORY+\" A, \"+DBHelper.USEA_SPECIFICATION_MASTER+\" B \"+\n \" WHERE A.activity_type_id = B.activity_type_id AND A.activity_type_name = ? and B.active_status = ? order by B.specification_name\";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, \"Activity\");\n prepStmt.setBoolean(2, true);\n \n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) {\n \n this.specificationId = rs.getString(2);\n this.specificationName = rs.getString(3);\n String txnTypeId = rs.getString(4);\n \n String [] activityList = {specificationId,specificationName,txnTypeId};\n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"public void setActivityType(ActivityType activityType) {\n this.activityType = activityType;\n }",
"public String toXML() {\n StringBuffer ret = new StringBuffer();\n ret.append(\"<table name=\\\"MTBTypes\\\">\\n\");\n ret.append(\" <column name=\\\"_MTBTypes_key\\\"\\n\");\n ret.append(\" value=\\\"\").append((MTBTypesKey_is_initialized ? ((MTBTypesKey == null ? null : MTBTypesKey.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"type\\\"\\n\");\n ret.append(\" value=\\\"\").append((type_is_initialized ? ((type == null ? null : type)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"description\\\"\\n\");\n ret.append(\" value=\\\"\").append((description_is_initialized ? ((description == null ? null : description)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"tableName\\\"\\n\");\n ret.append(\" value=\\\"\").append((tableName_is_initialized ? ((tableName == null ? null : tableName)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"columnName\\\"\\n\");\n ret.append(\" value=\\\"\").append((columnName_is_initialized ? ((columnName == null ? null : columnName)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"create_user\\\"\\n\");\n ret.append(\" value=\\\"\").append((createUser_is_initialized ? ((createUser == null ? null : createUser)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"create_date\\\"\\n\");\n ret.append(\" value=\\\"\").append((createDate_is_initialized ? ((createDate == null ? null : createDate.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"update_user\\\"\\n\");\n ret.append(\" value=\\\"\").append((updateUser_is_initialized ? ((updateUser == null ? null : updateUser)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"update_date\\\"\\n\");\n ret.append(\" value=\\\"\").append((updateDate_is_initialized ? ((updateDate == null ? null : updateDate.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\"</table>\");\n return ret.toString();\n }",
"public int getSqlType() { return _type; }",
"@Query(\"SELECT * FROM wellbeing_questions WHERE activity_type == :activityType\")\n List<WellbeingQuestion> getQuestionsByActivityType(String activityType);",
"public abstract String getTipoByAct(Actividad activity) throws PersistenceException, ClassNotFoundException;",
"public abstract String toJavaType(int sqlType);",
"Collection<ActivityType> getActivityTypes() throws DataAccessException;",
"void storeActivityType(ActivityType activityType) throws DataAccessException;",
"List<QtActivitytype> selectByExample(QtActivitytypeExample example);",
"QtActivitytype selectByPrimaryKey(Integer id);",
"RelDataType getColumnType(String sql);",
"public void setActivitytypeid(Integer activitytypeid) {\n this.activitytypeid = activitytypeid;\n }",
"public ActivityType getActivityType() {\n return activityType;\n }",
"public void setActivityType(ActivityType activity, UsertypeType type) {\n\t\tactivity.setUsertype(type);\n\t}",
"private void setActivity(int relType){\n\t\tActivity act = new Activity();\n\t\tActivityDefinition actDef = new ActivityDefinition();\n\t\tactDef.setType(INTERACT_TYPE);\n\t\tactDef.setInteractionType(INTERACT_TYPE);\n\t\t//InteractionComponent iac = new InteractionComponent();\n\t\tact.setDefinition(actDef);\n\t\t\n\t\tHashMap<String, String> names = new HashMap<String, String>();\n\t\tnames.put(\"en\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"en\")));\n\t\tnames.put(\"de\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"de\")));\n\n\t\tactDef.setName(names);\n\t\tthis.setObject(act);\n\t\n\t}",
"public Vector listActivityTypeRegister() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT B.specification_id,B.specification_name, A.transaction_type_id FROM \"+ \n DBHelper.USEA_ACTIVITY_CATEGORY+\" A, \"+DBHelper.USEA_SPECIFICATION_MASTER+\" B \"+\n \" WHERE A.activity_type_id = B.activity_type_id AND A.activity_type_name = ? and B.active_status = ? \";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, \"Registration\");\n prepStmt.setBoolean(2 , true);\n \n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) { \n this.specificationId = rs.getString(1);\n this.specificationName = rs.getString(2);\n String txnTypeId = rs.getString(3);\n \n String [] activityList = {specificationId,specificationName,txnTypeId};\n Debug.print(\" Specification Id : \"+specificationId);\n Debug.print(\" specificationName : \"+specificationName);\n Debug.print(\" txnTypeId : \"+txnTypeId);\n \n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"private void setActivity(int relType){\n\t\tActivity act = new Activity();\n\t\tActivityDefinition actDef = new ActivityDefinition();\n\t\tactDef.setType(INTERACT_TYPE);\n\t\tactDef.setInteractionType(INTERACT_TYPE);\n\t\t//InteractionComponent iac = new InteractionComponent();\n\t\tact.setDefinition(actDef);\n\t\t\n\t\tHashMap<String, String> names = new HashMap<String, String>();\n\t\t//names.put(\"en\",\"Identifying problems\");\n\t\tnames.put(\"en\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"en\")));\n\t\tnames.put(\"de\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"de\")));\n\n\t\tactDef.setName(names);\n\t\tthis.setObject(act);\n\t\n\t}",
"public String getEntityTypeName() { return \"jp.sourceforge.ea2ddl.dao.exentity.TTrxtypes\"; }",
"public Column.Type getType();",
"public String getTableDbName() { return \"t_trxtypes\"; }",
"public int getJdbcType();",
"@Override\r\n\tpublic String getType() {\n\t\treturn \"column\";\r\n\t}",
"com.rpg.framework.database.Protocol.ItemType getType();",
"ActivityType loadActivityType(int id) throws DataAccessException;",
"private void setActivityType(int value) {\n this.bitField0_ |= 4;\n this.activityType_ = value;\n }",
"@Override\n public RelDataType getRowType(final RelDataTypeFactory typeFactory) {\n final Schema kuduSchema = this.getKuduTable().getSchema();\n final RelDataTypeFactory.Builder builder = new RelDataTypeFactory.Builder(typeFactory);\n\n for (int i = 0; i < kuduSchema.getColumnCount(); i++) {\n final ColumnSchema currentColumn = kuduSchema.getColumnByIndex(i);\n switch (currentColumn.getType()) {\n case INT8:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.TINYINT).nullable(currentColumn.isNullable());\n break;\n case INT16:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.SMALLINT).nullable(currentColumn.isNullable());\n break;\n case INT32:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.INTEGER).nullable(currentColumn.isNullable());\n break;\n case INT64:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.BIGINT).nullable(currentColumn.isNullable());\n break;\n case BINARY:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.VARBINARY).nullable(currentColumn.isNullable());\n break;\n case STRING:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.VARCHAR).nullable(currentColumn.isNullable());\n break;\n case BOOL:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.BOOLEAN).nullable(currentColumn.isNullable());\n break;\n case FLOAT:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.FLOAT).nullable(currentColumn.isNullable());\n break;\n case DOUBLE:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.DOUBLE).nullable(currentColumn.isNullable());\n break;\n case UNIXTIME_MICROS:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.TIMESTAMP).nullable(currentColumn.isNullable());\n break;\n case DECIMAL:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.DECIMAL).nullable(currentColumn.isNullable());\n break;\n }\n }\n\n return builder.build();\n }",
"public TypeData getTypeData(MigrationType type);",
"private String getNameFromType(int activityType) {\n switch (activityType) {\n case DetectedActivity.IN_VEHICLE:\n return \"in_vehicle\";\n case DetectedActivity.ON_BICYCLE:\n return \"on_bicycle\";\n case DetectedActivity.ON_FOOT:\n return \"on_foot\";\n case DetectedActivity.STILL:\n return \"still\";\n case DetectedActivity.UNKNOWN:\n return \"unknown\";\n case DetectedActivity.TILTING:\n return \"tilting\";\n }\n return \"unknown\";\n }",
"@Override\n public String convertToDatabaseColumn(TransactionType transactionType) {\n if (transactionType == null) return null;\n\n return transactionType.getTransactionType();\n }",
"@Override\n public Object toJdbcType(Object value) {\n return value;\n }",
"public List<LogRoomTypeHistory>getAllRoomTypeHistory(TblRoomType roomType);",
"ResultColumn getTypeIdColumn(TableReference tableReference);",
"public ScGridColumn<AcActionAutoCorrectedLog> newActualTypeColumn()\n {\n return newActualTypeColumn(\"Actual Type\");\n }",
"public static \tTransactionEventType getTransactionEventTypeSample(){\n\t\t\n\t\tTransactionEventType transactionEventType=new TransactionEventType();\n\t\t\n\t\tGregorianCalendar gRecordTime = new GregorianCalendar();\n\t\tXMLGregorianCalendar recordTime;\n\t\ttry {\n\t\t\trecordTime = DatatypeFactory.newInstance().newXMLGregorianCalendar(gRecordTime);\n\t\t\ttransactionEventType.setEventTime(recordTime);\n\t\t\ttransactionEventType.setRecordTime(recordTime);\n\t\t} catch (DatatypeConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttransactionEventType.setEventTimeZoneOffset(\"eventTimeZoneOffset_T\");\n\t\ttransactionEventType.setParentID(\"parentID_T\");\n\t\t\n\t\tEPCListType transactionEventEPCs=new EPCListType();\n\t\t\n\t\t\n\t\torg.oliot.model.epcis.EPC epc1=new org.oliot.model.epcis.EPC (\"epc1_T\");\n\t\t\n\t\torg.oliot.model.epcis.EPC epc2=new org.oliot.model.epcis.EPC (\"epc2_T\");\n\t\t\t\t\n\t\ttransactionEventEPCs.getEpc().add(epc1);\n\t\ttransactionEventEPCs.getEpc().add(epc2);\n\t\ttransactionEventType.setEpcList(transactionEventEPCs);\n\t\t\n\t\ttransactionEventType.setAction(ActionType.fromValue(\"ADD\"));\t\n\t\ttransactionEventType.setBizStep(\"bizStep_T\");\n\t\ttransactionEventType.setDisposition(\"disposition_T\");\n\t\t\n\t\t\n\t\tReadPointType readPoint=new ReadPointType();\n\t\treadPoint.setId(\"ReadPoint_object\");\n\t\tReadPointExtensionType readPointExtension=new ReadPointExtensionType();\n\t\treadPoint.setExtension(readPointExtension);\n\t\t\n\t\ttransactionEventType.setReadPoint(readPoint);\n\t\t\n\t\tBusinessLocationType businessLocation =new BusinessLocationType();\n\t\tbusinessLocation.setId(\"BusinessLocation_object\");\n\t\tBusinessLocationExtensionType businessLocationExtension= new BusinessLocationExtensionType();\n\t\tbusinessLocation.setExtension(businessLocationExtension);\n\t\t\n\t\ttransactionEventType.setBizLocation(businessLocation);\n\t\t\n\t\tBusinessTransactionListType businessTransactionList=new BusinessTransactionListType();\t\n\t\tBusinessTransactionType businessTransaction1=new BusinessTransactionType();\n\t\tbusinessTransaction1.setType(\"type1_o\");\n\t\tbusinessTransaction1.setValue(\"value1_o\");\n\t\tBusinessTransactionType businessTransaction2=new BusinessTransactionType();\n\t\tbusinessTransaction1.setType(\"type2_o\");\n\t\tbusinessTransaction1.setValue(\"value2_o\");\n\t\tbusinessTransactionList.getBizTransaction().add(businessTransaction1);\n\t\tbusinessTransactionList.getBizTransaction().add(businessTransaction2);\n\t\ttransactionEventType.setBizTransactionList(businessTransactionList);\n\t\t\n\t\t\n\t\tTransactionEventExtensionType transactionEventExtension =new TransactionEventExtensionType();\n\t\t\n\t\tQuantityListType quantityList =new QuantityListType();\n\t\tQuantityElementType quantityElement1=new QuantityElementType();\n\t\tquantityElement1.setEpcClass(\"epcClass1_O\");\n\t\tquantityElement1.setQuantity(111);\n\t\tquantityElement1.setUom(\"uom1_O\");\n\t\tQuantityElementType quantityElement2=new QuantityElementType();\n\t\tquantityElement2.setEpcClass(\"epcClass2_O\");\n\t\tquantityElement2.setQuantity(111);\n\t\tquantityElement2.setUom(\"uom2_O\");\n\t\tquantityList.getQuantityElement().add(quantityElement1);\n\t\tquantityList.getQuantityElement().add(quantityElement2);\n\t\t\n\t\ttransactionEventExtension.setQuantityList(quantityList);\n\t\t\n\t\tDestinationListType destinationList =new DestinationListType();\n\t\tSourceDestType sourceDest3=new SourceDestType( );\n\t\tSourceDestType sourceDest4=new SourceDestType( );\n\t\tsourceDest3.setValue(\"value3\");\n\t\tsourceDest3.setType(\"type3\");\n\t\tsourceDest4.setValue(\"value4\");\n\t\tsourceDest4.setType(\"type4\");\n\t\t\n\t\tdestinationList.getDestination().add(sourceDest3);\n\t\tdestinationList.getDestination().add(sourceDest4);\n\t\ttransactionEventExtension.setDestinationList(destinationList);\n\t\t\n\t\tSourceListType sourceList =new SourceListType();\n\t\tSourceDestType sourceDest1=new SourceDestType( );\n\t\tSourceDestType sourceDest2=new SourceDestType( );\n\t\tsourceDest1.setValue(\"value1\");\n\t\tsourceDest1.setType(\"type1\");\n\t\tsourceDest1.setValue(\"value2\");\n\t\tsourceDest1.setType(\"type2\");\n\t\t\n\t\tsourceList.getSource().add(sourceDest1);\n\t\tsourceList.getSource().add(sourceDest2);\n\t\t\n\t\t\n\t\ttransactionEventExtension.setSourceList(sourceList);\n\t\t\n\t\t\n\t\t\n\n\t\tTransactionEventExtension2Type transactionEventExtension2=\n\t\t\t\tnew TransactionEventExtension2Type();\n\t\t\n\t\ttransactionEventExtension.setExtension(transactionEventExtension2);\n\t\t\n\t\t\n\t\ttransactionEventType.setExtension(transactionEventExtension);\n\t\t\n\t\treturn transactionEventType;\n\t\t\n\t}",
"@Override\n\tpublic void setType(int type) {\n\t\t_expandoColumn.setType(type);\n\t}",
"private String getNameFromType(int activityType) {\n switch(activityType) {\n case DetectedActivity.IN_VEHICLE:\n return \"in_vehicle\";\n case DetectedActivity.ON_BICYCLE:\n return \"on_bicycle\";\n case DetectedActivity.ON_FOOT:\n return \"on_foot\";\n case DetectedActivity.STILL:\n return \"still\";\n case DetectedActivity.UNKNOWN:\n return \"unknown\";\n case DetectedActivity.TILTING:\n return \"tilting\";\n }\n return \"unrecognized\";\n }",
"public Integer getActivitytypeid() {\n return activitytypeid;\n }",
"@Nullable\n @Generated\n @Selector(\"handoffUserActivityType\")\n public native String handoffUserActivityType();",
"@Override\n public String getType(){\n return Type;\n }",
"public Vector listActivityCategory() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT activity_type_id,activity_type_name FROM \"+ DBHelper.USEA_ACTIVITY_CATEGORY;\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) {\n this.activityTypeId = rs.getString(1);\n this.activityTypeName = rs.getString(2);\n String [] activityList = {activityTypeId,activityTypeName};\n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"UserType getType();",
"HotelType selectByPrimaryKey(Integer typeiId);",
"public String getType() {return type;}",
"TableType getTableType()\n {\n return tableType;\n }",
"public static AuditType exampleAuditType() {\r\n AuditType auditType = new AuditType();\r\n auditType.setActionName(\"actionName\");\r\n auditType.setAuditCategory(\"auditCategory\");\r\n auditType.setContextId(\"contextId\");\r\n auditType.setCreatedOnDb(3L);\r\n auditType.setHibernateVersionNumber(4L);\r\n auditType.setId(\"id\");\r\n auditType.setLabelInt01(\"labelInt01\");\r\n auditType.setLabelInt02(\"labelInt02\");\r\n auditType.setLabelInt03(\"labelInt03\");\r\n auditType.setLabelInt04(\"labelInt04\");\r\n auditType.setLabelInt05(\"labelInt05\");\r\n auditType.setLabelString01(\"labelString01\");\r\n auditType.setLabelString02(\"labelString02\");\r\n auditType.setLabelString03(\"labelString03\");\r\n auditType.setLabelString04(\"labelString04\");\r\n auditType.setLabelString05(\"labelString05\");\r\n auditType.setLabelString06(\"labelString06\");\r\n auditType.setLabelString07(\"labelString07\");\r\n auditType.setLabelString08(\"labelString08\");\r\n auditType.setLastUpdatedDb(5L);\r\n return auditType;\r\n }",
"public abstract QCEntryType getType();",
"RelDataType getResultType(String sql);",
"@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);",
"public abstract String toHiveType(int sqlType);",
"@Override\n public String getJavaByJdbcType(DbAttribute attribute, int type) {\n String jdbcType = TypesMapping.getSqlNameByType(type);\n DbType dbType;\n if (attribute != null) {\n dbType = new DbType(\n jdbcType,\n attribute.getMaxLength(),\n attribute.getAttributePrecision(),\n attribute.getScale(),\n attribute.isMandatory());\n } else {\n dbType = new DbType(jdbcType);\n }\n\n String typeName = getJavaByJdbcType(dbType);\n\n if (usePrimitives != null && usePrimitives) {\n String primitive = classToPrimitive.get(typeName);\n if (primitive != null) {\n return primitive;\n }\n }\n\n return typeName;\n }",
"RelDataType getParameterRowType();",
"private static String mapStatementSetter(final FieldType.Type type) {\n switch (type) {\n case DATE:\n return \"setDate\";\n case INTEGER:\n return \"setInt\";\n case REAL:\n return \"setDouble\";\n case STRING:\n return \"setString\";\n default:\n return null;\n }\n }",
"@Override\n\tpublic int getType() {\n\t\treturn 1;\n\t}",
"CmsActivity selectByPrimaryKey(String activityId);",
"public void setTransactionType(int transactionChoice);",
"public int getType() { return type; }",
"public int getType() { return type; }",
"@Override\r\n\t\tpublic Map<String, Class<?>> getTypeMap() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public ConcatColumn(final Type type) {\n this.type = type;\n numTuples = 0;\n columnIds = Maps.newTreeMap();\n readOnly = false;\n }",
"@Override\n public String getType() {\n return \"\";\n }",
"@SuppressWarnings({ \"all\", \"unchecked\", \"rawtypes\" })\npublic interface IXActivity extends VertxPojo, Serializable {\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键\n */\n public IXActivity setKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键\n */\n public String getKey();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TYPE</code>. 「type」- 操作类型\n */\n public IXActivity setType(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TYPE</code>. 「type」- 操作类型\n */\n public String getType();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.SERIAL</code>. 「serial」- 变更记录号\n */\n public IXActivity setSerial(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.SERIAL</code>. 「serial」- 变更记录号\n */\n public String getSerial();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.DESCRIPTION</code>. 「description」-\n * 操作描述信息\n */\n public IXActivity setDescription(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.DESCRIPTION</code>. 「description」-\n * 操作描述信息\n */\n public String getDescription();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_ID</code>. 「modelId」-\n * 组所关联的模型identifier,用于描述\n */\n public IXActivity setModelId(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_ID</code>. 「modelId」-\n * 组所关联的模型identifier,用于描述\n */\n public String getModelId();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_KEY</code>. 「modelKey」-\n * 组所关联的模型记录ID,用于描述哪一个Model中的记录\n */\n public IXActivity setModelKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_KEY</code>. 「modelKey」-\n * 组所关联的模型记录ID,用于描述哪一个Model中的记录\n */\n public String getModelKey();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_CATEGORY</code>.\n * 「modelCategory」- 关联的category记录,只包含叶节点\n */\n public IXActivity setModelCategory(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_CATEGORY</code>.\n * 「modelCategory」- 关联的category记录,只包含叶节点\n */\n public String getModelCategory();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TASK_NAME</code>. 「taskName」- 任务名称\n */\n public IXActivity setTaskName(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TASK_NAME</code>. 「taskName」- 任务名称\n */\n public String getTaskName();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TASK_SERIAL</code>. 「taskSerial」-\n * 任务单号\n */\n public IXActivity setTaskSerial(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TASK_SERIAL</code>. 「taskSerial」-\n * 任务单号\n */\n public String getTaskSerial();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_OLD</code>. 「recordOld」-\n * 变更之前的数据(用于回滚)\n */\n public IXActivity setRecordOld(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_OLD</code>. 「recordOld」-\n * 变更之前的数据(用于回滚)\n */\n public String getRecordOld();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_NEW</code>. 「recordNew」-\n * 变更之后的数据(用于更新)\n */\n public IXActivity setRecordNew(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_NEW</code>. 「recordNew」-\n * 变更之后的数据(用于更新)\n */\n public String getRecordNew();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.SIGMA</code>. 「sigma」- 用户组绑定的统一标识\n */\n public IXActivity setSigma(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.SIGMA</code>. 「sigma」- 用户组绑定的统一标识\n */\n public String getSigma();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.LANGUAGE</code>. 「language」- 使用的语言\n */\n public IXActivity setLanguage(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.LANGUAGE</code>. 「language」- 使用的语言\n */\n public String getLanguage();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.ACTIVE</code>. 「active」- 是否启用\n */\n public IXActivity setActive(Boolean value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.ACTIVE</code>. 「active」- 是否启用\n */\n public Boolean getActive();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.METADATA</code>. 「metadata」-\n * 附加配置数据\n */\n public IXActivity setMetadata(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.METADATA</code>. 「metadata」-\n * 附加配置数据\n */\n public String getMetadata();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_AT</code>. 「createdAt」-\n * 创建时间\n */\n public IXActivity setCreatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_AT</code>. 「createdAt」-\n * 创建时间\n */\n public LocalDateTime getCreatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_BY</code>. 「createdBy」-\n * 创建人\n */\n public IXActivity setCreatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_BY</code>. 「createdBy」-\n * 创建人\n */\n public String getCreatedBy();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_AT</code>. 「updatedAt」-\n * 更新时间\n */\n public IXActivity setUpdatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_AT</code>. 「updatedAt」-\n * 更新时间\n */\n public LocalDateTime getUpdatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_BY</code>. 「updatedBy」-\n * 更新人\n */\n public IXActivity setUpdatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_BY</code>. 「updatedBy」-\n * 更新人\n */\n public String getUpdatedBy();\n\n // -------------------------------------------------------------------------\n // FROM and INTO\n // -------------------------------------------------------------------------\n\n /**\n * Load data from another generated Record/POJO implementing the common\n * interface IXActivity\n */\n public void from(IXActivity from);\n\n /**\n * Copy data into another generated Record/POJO implementing the common\n * interface IXActivity\n */\n public <E extends IXActivity> E into(E into);\n\n @Override\n public default IXActivity fromJson(io.vertx.core.json.JsonObject json) {\n setOrThrow(this::setKey,json::getString,\"KEY\",\"java.lang.String\");\n setOrThrow(this::setType,json::getString,\"TYPE\",\"java.lang.String\");\n setOrThrow(this::setSerial,json::getString,\"SERIAL\",\"java.lang.String\");\n setOrThrow(this::setDescription,json::getString,\"DESCRIPTION\",\"java.lang.String\");\n setOrThrow(this::setModelId,json::getString,\"MODEL_ID\",\"java.lang.String\");\n setOrThrow(this::setModelKey,json::getString,\"MODEL_KEY\",\"java.lang.String\");\n setOrThrow(this::setModelCategory,json::getString,\"MODEL_CATEGORY\",\"java.lang.String\");\n setOrThrow(this::setTaskName,json::getString,\"TASK_NAME\",\"java.lang.String\");\n setOrThrow(this::setTaskSerial,json::getString,\"TASK_SERIAL\",\"java.lang.String\");\n setOrThrow(this::setRecordOld,json::getString,\"RECORD_OLD\",\"java.lang.String\");\n setOrThrow(this::setRecordNew,json::getString,\"RECORD_NEW\",\"java.lang.String\");\n setOrThrow(this::setSigma,json::getString,\"SIGMA\",\"java.lang.String\");\n setOrThrow(this::setLanguage,json::getString,\"LANGUAGE\",\"java.lang.String\");\n setOrThrow(this::setActive,json::getBoolean,\"ACTIVE\",\"java.lang.Boolean\");\n setOrThrow(this::setMetadata,json::getString,\"METADATA\",\"java.lang.String\");\n setOrThrow(this::setCreatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},\"CREATED_AT\",\"java.time.LocalDateTime\");\n setOrThrow(this::setCreatedBy,json::getString,\"CREATED_BY\",\"java.lang.String\");\n setOrThrow(this::setUpdatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},\"UPDATED_AT\",\"java.time.LocalDateTime\");\n setOrThrow(this::setUpdatedBy,json::getString,\"UPDATED_BY\",\"java.lang.String\");\n return this;\n }\n\n\n @Override\n public default io.vertx.core.json.JsonObject toJson() {\n io.vertx.core.json.JsonObject json = new io.vertx.core.json.JsonObject();\n json.put(\"KEY\",getKey());\n json.put(\"TYPE\",getType());\n json.put(\"SERIAL\",getSerial());\n json.put(\"DESCRIPTION\",getDescription());\n json.put(\"MODEL_ID\",getModelId());\n json.put(\"MODEL_KEY\",getModelKey());\n json.put(\"MODEL_CATEGORY\",getModelCategory());\n json.put(\"TASK_NAME\",getTaskName());\n json.put(\"TASK_SERIAL\",getTaskSerial());\n json.put(\"RECORD_OLD\",getRecordOld());\n json.put(\"RECORD_NEW\",getRecordNew());\n json.put(\"SIGMA\",getSigma());\n json.put(\"LANGUAGE\",getLanguage());\n json.put(\"ACTIVE\",getActive());\n json.put(\"METADATA\",getMetadata());\n json.put(\"CREATED_AT\",getCreatedAt()==null?null:getCreatedAt().toString());\n json.put(\"CREATED_BY\",getCreatedBy());\n json.put(\"UPDATED_AT\",getUpdatedAt()==null?null:getUpdatedAt().toString());\n json.put(\"UPDATED_BY\",getUpdatedBy());\n return json;\n }\n\n}",
"public static AuditType exampleAuditTypeDb() {\r\n return exampleAuditTypeDb(\"testCategory\", \"testAction\");\r\n }",
"String getSQLTypeName() throws SQLException;",
"public QueryType getType();",
"@Schema(description = \"When sub-classing, this defines the sub-class entity name\")\n\n\tpublic String getAtType() {\n\t\treturn type;\n\t}",
"public void updateData(String typeActivity) {\n try {\n Float.parseFloat(this.inputNominal.getText());\n } catch (Exception err) {\n this.alert.showMessageDialog(null, \"Silahkan input nominal dengan benar\");\n }\n \n try {\n this.inputDate.getDate().getTime();\n } catch (Exception err) {\n this.alert.showMessageDialog(null, \"Silahkan input tanggal dengan benar\");\n }\n \n Time time = new Time();\n time.setDate(this.inputDate.getDate());\n \n String description = this.inputDescription.getText();\n float nominal = Float.parseFloat(this.inputNominal.getText());\n String dateAt = time.parseDatetime();\n \n ActivityService activityService = new ActivityService();\n \n activityService\n .setId(this.id)\n .setDescription(description)\n .setNominal(nominal)\n .setDateAt(dateAt)\n .setUser(this.dashboard.user);\n \n try {\n if (typeActivity.equals(\"+\")) {\n activityService.updateIncome();\n } else {\n activityService.updateExpense();\n }\n this.dashboard.refreshUI();\n this.dashboard.resetForm();\n } catch (Exception err) {\n this.alert.showMessageDialog(null, err.getMessage());\n }\n }",
"public void representDataOnActors(String type)\r\n\t{\n\t}",
"public String getType() { return type; }",
"public long getCount(MigrationType type);",
"fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType();",
"public String getType(){\n return this.type;\n }",
"QueryType createQueryType();",
"public int getType() {\n return type;\n }",
"public void setResult(int type, String typeName, Class javaType) {\r\n ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(\"\");\r\n field.setSqlType(type);\r\n field.setSqlTypeName(typeName);\r\n field.setType(javaType);\r\n getParameters().set(0, field);\r\n }",
"public ScGridColumn<AcActionAutoCorrectedLog> newScannedTypeColumn()\n {\n return newScannedTypeColumn(\"Scanned Type\");\n }",
"public void setType(String type) {\n this.type = type;\n }",
"@Override\n public int getCustomChatRowTypeCount() {\n return 10;\n }",
"public int getType(){\r\n\t\treturn type;\r\n\t}",
"SellType selectByPrimaryKey(Integer sell_type_id);",
"@Override\r\n\tpublic String getType() {\n\t\treturn type;\r\n\t}",
"public interface UserShareActivityMapper {\n\n\n @Select(\"select count(1) from lh_share_activity_info WHERE random=#{random} AND share_user_tid=#{user_tid} AND extend_type=#{extend_type}\")\n public Integer checkSharelink(CreateShareLinkEvent event);\n\n @Insert(\"insert into lh_share_activity_info(share_user_tid,\" +\n \"random,extend_type,end_time,create_time) values(#{share_user_tid},#{random},#{extend_type},#{end_time},now())\")\n public void insertShareLink(UserShareInfo userShareInfo);\n}",
"@Override\n public int getResultSetType() throws SQLException {\n throw new SQLException(\"tinySQL does not support getResultSetType.\");\n }",
"void setType(String type) {\n this.type = type;\n }",
"void setForPersistentMapping_Type(Type type) {\n this.type = type;\n }",
"public abstract Map<String, Integer> getColumnTypes(String tableName);",
"public ResultSet getAppointmentsByType() throws SQLException {\r\n String statement = \"SELECT DISTINCT Type as Type, COUNT(Type) as AMOUNT FROM appointments GROUP BY Type\";\r\n return conn.prepareStatement(statement).executeQuery();\r\n }",
"public String getType(){\r\n return type;\r\n }",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"public int getType(){\n return type;\n }",
"@Override\n\tpublic int getType() {\n\t\treturn _expandoColumn.getType();\n\t}",
"@Override\n\tpublic String getType() {\n\t\treturn type;\n\t}",
"@Override\n\tpublic String getType() {\n\t\treturn type;\n\t}",
"@Override\n\tpublic String getType() {\n\t\treturn type;\n\t}",
"@MyBatisRepository\npublic interface TypeCusMapper {\n\tvoid insert(TypeCus typeCus);\n\n\tvoid delete(Long typeCusId);\n\t\n\tvoid removeTcs(TypeCusQB tcQb);\n\n\tvoid update(TypeCus typeCus);\n\n\tTypeCus select(Long typeCusId);\n\n\tList<TypeCus> selectList(TypeCusQB queryBean);\n\n\tList<TypeCus> selectPage(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tInteger selectCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tObject proc(TypeCus typeCus);\n\t\n\tList<Customer> selectComplex(PagingQueryBean<TypeCusQB> pagingQueryBean);;\n\t\n\tInteger selectComplexCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\tLong getMaxOrder(Long typeId);\n}",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }"
] | [
"0.609313",
"0.56537807",
"0.5620928",
"0.55842227",
"0.55151576",
"0.54295284",
"0.54132736",
"0.5369587",
"0.53417003",
"0.527962",
"0.5277054",
"0.5241781",
"0.5222637",
"0.51940906",
"0.51675445",
"0.5139097",
"0.5066153",
"0.50627804",
"0.50618863",
"0.5049766",
"0.5032766",
"0.5029053",
"0.49847218",
"0.4958237",
"0.49581838",
"0.49542576",
"0.49497637",
"0.4904642",
"0.4894209",
"0.48842746",
"0.48675838",
"0.48573",
"0.48375276",
"0.48229483",
"0.48131013",
"0.48067302",
"0.48024324",
"0.47965598",
"0.47881183",
"0.47821194",
"0.47799054",
"0.4778131",
"0.47758612",
"0.47743213",
"0.47698915",
"0.47675437",
"0.47479784",
"0.47423372",
"0.4739197",
"0.47360906",
"0.47321758",
"0.47216368",
"0.47212622",
"0.47202292",
"0.4714761",
"0.47057524",
"0.47043484",
"0.4703798",
"0.4703798",
"0.46972865",
"0.46944702",
"0.4689247",
"0.46813476",
"0.46768394",
"0.46679828",
"0.46676296",
"0.46665874",
"0.46646655",
"0.46587124",
"0.46540725",
"0.46509373",
"0.4641734",
"0.4634491",
"0.4633789",
"0.46270072",
"0.46257287",
"0.46232104",
"0.46166813",
"0.46158615",
"0.4611079",
"0.46075222",
"0.46030194",
"0.45981944",
"0.45964268",
"0.4592377",
"0.45920753",
"0.45903966",
"0.45865294",
"0.45856017",
"0.45854342",
"0.45854342",
"0.4583275",
"0.45791698",
"0.45753807",
"0.45753807",
"0.45753807",
"0.4574767",
"0.45741233",
"0.45741233",
"0.45741233",
"0.45741233"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table qt_activitytype | List<QtActivitytype> selectByExample(QtActivitytypeExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected List<Daily_activity_type> getDailyActivityType() {\n return super.emMain.createQuery(\"FROM Daily_activity_type WHERE dat_code <> 0 ORDER BY dat_order ASC\",\n Daily_activity_type.class).getResultList();\n }",
"public Vector listActivityTypeActivity() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT A.activity_type_id,B.specification_id,B.specification_name, A.transaction_type_id FROM \"+ \n DBHelper.USEA_ACTIVITY_CATEGORY+\" A, \"+DBHelper.USEA_SPECIFICATION_MASTER+\" B \"+\n \" WHERE A.activity_type_id = B.activity_type_id AND A.activity_type_name = ? and B.active_status = ? order by B.specification_name\";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, \"Activity\");\n prepStmt.setBoolean(2, true);\n \n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) {\n \n this.specificationId = rs.getString(2);\n this.specificationName = rs.getString(3);\n String txnTypeId = rs.getString(4);\n \n String [] activityList = {specificationId,specificationName,txnTypeId};\n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"public void setActivityType(ActivityType activityType) {\n this.activityType = activityType;\n }",
"public String toXML() {\n StringBuffer ret = new StringBuffer();\n ret.append(\"<table name=\\\"MTBTypes\\\">\\n\");\n ret.append(\" <column name=\\\"_MTBTypes_key\\\"\\n\");\n ret.append(\" value=\\\"\").append((MTBTypesKey_is_initialized ? ((MTBTypesKey == null ? null : MTBTypesKey.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"type\\\"\\n\");\n ret.append(\" value=\\\"\").append((type_is_initialized ? ((type == null ? null : type)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"description\\\"\\n\");\n ret.append(\" value=\\\"\").append((description_is_initialized ? ((description == null ? null : description)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"tableName\\\"\\n\");\n ret.append(\" value=\\\"\").append((tableName_is_initialized ? ((tableName == null ? null : tableName)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"columnName\\\"\\n\");\n ret.append(\" value=\\\"\").append((columnName_is_initialized ? ((columnName == null ? null : columnName)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"create_user\\\"\\n\");\n ret.append(\" value=\\\"\").append((createUser_is_initialized ? ((createUser == null ? null : createUser)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"create_date\\\"\\n\");\n ret.append(\" value=\\\"\").append((createDate_is_initialized ? ((createDate == null ? null : createDate.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"update_user\\\"\\n\");\n ret.append(\" value=\\\"\").append((updateUser_is_initialized ? ((updateUser == null ? null : updateUser)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"update_date\\\"\\n\");\n ret.append(\" value=\\\"\").append((updateDate_is_initialized ? ((updateDate == null ? null : updateDate.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\"</table>\");\n return ret.toString();\n }",
"public int getSqlType() { return _type; }",
"@Query(\"SELECT * FROM wellbeing_questions WHERE activity_type == :activityType\")\n List<WellbeingQuestion> getQuestionsByActivityType(String activityType);",
"public abstract String getTipoByAct(Actividad activity) throws PersistenceException, ClassNotFoundException;",
"public abstract String toJavaType(int sqlType);",
"Collection<ActivityType> getActivityTypes() throws DataAccessException;",
"void storeActivityType(ActivityType activityType) throws DataAccessException;",
"QtActivitytype selectByPrimaryKey(Integer id);",
"RelDataType getColumnType(String sql);",
"public void setActivitytypeid(Integer activitytypeid) {\n this.activitytypeid = activitytypeid;\n }",
"public ActivityType getActivityType() {\n return activityType;\n }",
"public void setActivityType(ActivityType activity, UsertypeType type) {\n\t\tactivity.setUsertype(type);\n\t}",
"private void setActivity(int relType){\n\t\tActivity act = new Activity();\n\t\tActivityDefinition actDef = new ActivityDefinition();\n\t\tactDef.setType(INTERACT_TYPE);\n\t\tactDef.setInteractionType(INTERACT_TYPE);\n\t\t//InteractionComponent iac = new InteractionComponent();\n\t\tact.setDefinition(actDef);\n\t\t\n\t\tHashMap<String, String> names = new HashMap<String, String>();\n\t\tnames.put(\"en\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"en\")));\n\t\tnames.put(\"de\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"de\")));\n\n\t\tactDef.setName(names);\n\t\tthis.setObject(act);\n\t\n\t}",
"private void setActivity(int relType){\n\t\tActivity act = new Activity();\n\t\tActivityDefinition actDef = new ActivityDefinition();\n\t\tactDef.setType(INTERACT_TYPE);\n\t\tactDef.setInteractionType(INTERACT_TYPE);\n\t\t//InteractionComponent iac = new InteractionComponent();\n\t\tact.setDefinition(actDef);\n\t\t\n\t\tHashMap<String, String> names = new HashMap<String, String>();\n\t\t//names.put(\"en\",\"Identifying problems\");\n\t\tnames.put(\"en\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"en\")));\n\t\tnames.put(\"de\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"de\")));\n\n\t\tactDef.setName(names);\n\t\tthis.setObject(act);\n\t\n\t}",
"public Vector listActivityTypeRegister() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT B.specification_id,B.specification_name, A.transaction_type_id FROM \"+ \n DBHelper.USEA_ACTIVITY_CATEGORY+\" A, \"+DBHelper.USEA_SPECIFICATION_MASTER+\" B \"+\n \" WHERE A.activity_type_id = B.activity_type_id AND A.activity_type_name = ? and B.active_status = ? \";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, \"Registration\");\n prepStmt.setBoolean(2 , true);\n \n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) { \n this.specificationId = rs.getString(1);\n this.specificationName = rs.getString(2);\n String txnTypeId = rs.getString(3);\n \n String [] activityList = {specificationId,specificationName,txnTypeId};\n Debug.print(\" Specification Id : \"+specificationId);\n Debug.print(\" specificationName : \"+specificationName);\n Debug.print(\" txnTypeId : \"+txnTypeId);\n \n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"public String getEntityTypeName() { return \"jp.sourceforge.ea2ddl.dao.exentity.TTrxtypes\"; }",
"public Column.Type getType();",
"public String getTableDbName() { return \"t_trxtypes\"; }",
"public int getJdbcType();",
"@Override\r\n\tpublic String getType() {\n\t\treturn \"column\";\r\n\t}",
"com.rpg.framework.database.Protocol.ItemType getType();",
"ActivityType loadActivityType(int id) throws DataAccessException;",
"private void setActivityType(int value) {\n this.bitField0_ |= 4;\n this.activityType_ = value;\n }",
"@Override\n public RelDataType getRowType(final RelDataTypeFactory typeFactory) {\n final Schema kuduSchema = this.getKuduTable().getSchema();\n final RelDataTypeFactory.Builder builder = new RelDataTypeFactory.Builder(typeFactory);\n\n for (int i = 0; i < kuduSchema.getColumnCount(); i++) {\n final ColumnSchema currentColumn = kuduSchema.getColumnByIndex(i);\n switch (currentColumn.getType()) {\n case INT8:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.TINYINT).nullable(currentColumn.isNullable());\n break;\n case INT16:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.SMALLINT).nullable(currentColumn.isNullable());\n break;\n case INT32:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.INTEGER).nullable(currentColumn.isNullable());\n break;\n case INT64:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.BIGINT).nullable(currentColumn.isNullable());\n break;\n case BINARY:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.VARBINARY).nullable(currentColumn.isNullable());\n break;\n case STRING:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.VARCHAR).nullable(currentColumn.isNullable());\n break;\n case BOOL:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.BOOLEAN).nullable(currentColumn.isNullable());\n break;\n case FLOAT:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.FLOAT).nullable(currentColumn.isNullable());\n break;\n case DOUBLE:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.DOUBLE).nullable(currentColumn.isNullable());\n break;\n case UNIXTIME_MICROS:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.TIMESTAMP).nullable(currentColumn.isNullable());\n break;\n case DECIMAL:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.DECIMAL).nullable(currentColumn.isNullable());\n break;\n }\n }\n\n return builder.build();\n }",
"public TypeData getTypeData(MigrationType type);",
"private String getNameFromType(int activityType) {\n switch (activityType) {\n case DetectedActivity.IN_VEHICLE:\n return \"in_vehicle\";\n case DetectedActivity.ON_BICYCLE:\n return \"on_bicycle\";\n case DetectedActivity.ON_FOOT:\n return \"on_foot\";\n case DetectedActivity.STILL:\n return \"still\";\n case DetectedActivity.UNKNOWN:\n return \"unknown\";\n case DetectedActivity.TILTING:\n return \"tilting\";\n }\n return \"unknown\";\n }",
"@Override\n public String convertToDatabaseColumn(TransactionType transactionType) {\n if (transactionType == null) return null;\n\n return transactionType.getTransactionType();\n }",
"@Override\n public Object toJdbcType(Object value) {\n return value;\n }",
"public List<LogRoomTypeHistory>getAllRoomTypeHistory(TblRoomType roomType);",
"ResultColumn getTypeIdColumn(TableReference tableReference);",
"public ScGridColumn<AcActionAutoCorrectedLog> newActualTypeColumn()\n {\n return newActualTypeColumn(\"Actual Type\");\n }",
"public static \tTransactionEventType getTransactionEventTypeSample(){\n\t\t\n\t\tTransactionEventType transactionEventType=new TransactionEventType();\n\t\t\n\t\tGregorianCalendar gRecordTime = new GregorianCalendar();\n\t\tXMLGregorianCalendar recordTime;\n\t\ttry {\n\t\t\trecordTime = DatatypeFactory.newInstance().newXMLGregorianCalendar(gRecordTime);\n\t\t\ttransactionEventType.setEventTime(recordTime);\n\t\t\ttransactionEventType.setRecordTime(recordTime);\n\t\t} catch (DatatypeConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttransactionEventType.setEventTimeZoneOffset(\"eventTimeZoneOffset_T\");\n\t\ttransactionEventType.setParentID(\"parentID_T\");\n\t\t\n\t\tEPCListType transactionEventEPCs=new EPCListType();\n\t\t\n\t\t\n\t\torg.oliot.model.epcis.EPC epc1=new org.oliot.model.epcis.EPC (\"epc1_T\");\n\t\t\n\t\torg.oliot.model.epcis.EPC epc2=new org.oliot.model.epcis.EPC (\"epc2_T\");\n\t\t\t\t\n\t\ttransactionEventEPCs.getEpc().add(epc1);\n\t\ttransactionEventEPCs.getEpc().add(epc2);\n\t\ttransactionEventType.setEpcList(transactionEventEPCs);\n\t\t\n\t\ttransactionEventType.setAction(ActionType.fromValue(\"ADD\"));\t\n\t\ttransactionEventType.setBizStep(\"bizStep_T\");\n\t\ttransactionEventType.setDisposition(\"disposition_T\");\n\t\t\n\t\t\n\t\tReadPointType readPoint=new ReadPointType();\n\t\treadPoint.setId(\"ReadPoint_object\");\n\t\tReadPointExtensionType readPointExtension=new ReadPointExtensionType();\n\t\treadPoint.setExtension(readPointExtension);\n\t\t\n\t\ttransactionEventType.setReadPoint(readPoint);\n\t\t\n\t\tBusinessLocationType businessLocation =new BusinessLocationType();\n\t\tbusinessLocation.setId(\"BusinessLocation_object\");\n\t\tBusinessLocationExtensionType businessLocationExtension= new BusinessLocationExtensionType();\n\t\tbusinessLocation.setExtension(businessLocationExtension);\n\t\t\n\t\ttransactionEventType.setBizLocation(businessLocation);\n\t\t\n\t\tBusinessTransactionListType businessTransactionList=new BusinessTransactionListType();\t\n\t\tBusinessTransactionType businessTransaction1=new BusinessTransactionType();\n\t\tbusinessTransaction1.setType(\"type1_o\");\n\t\tbusinessTransaction1.setValue(\"value1_o\");\n\t\tBusinessTransactionType businessTransaction2=new BusinessTransactionType();\n\t\tbusinessTransaction1.setType(\"type2_o\");\n\t\tbusinessTransaction1.setValue(\"value2_o\");\n\t\tbusinessTransactionList.getBizTransaction().add(businessTransaction1);\n\t\tbusinessTransactionList.getBizTransaction().add(businessTransaction2);\n\t\ttransactionEventType.setBizTransactionList(businessTransactionList);\n\t\t\n\t\t\n\t\tTransactionEventExtensionType transactionEventExtension =new TransactionEventExtensionType();\n\t\t\n\t\tQuantityListType quantityList =new QuantityListType();\n\t\tQuantityElementType quantityElement1=new QuantityElementType();\n\t\tquantityElement1.setEpcClass(\"epcClass1_O\");\n\t\tquantityElement1.setQuantity(111);\n\t\tquantityElement1.setUom(\"uom1_O\");\n\t\tQuantityElementType quantityElement2=new QuantityElementType();\n\t\tquantityElement2.setEpcClass(\"epcClass2_O\");\n\t\tquantityElement2.setQuantity(111);\n\t\tquantityElement2.setUom(\"uom2_O\");\n\t\tquantityList.getQuantityElement().add(quantityElement1);\n\t\tquantityList.getQuantityElement().add(quantityElement2);\n\t\t\n\t\ttransactionEventExtension.setQuantityList(quantityList);\n\t\t\n\t\tDestinationListType destinationList =new DestinationListType();\n\t\tSourceDestType sourceDest3=new SourceDestType( );\n\t\tSourceDestType sourceDest4=new SourceDestType( );\n\t\tsourceDest3.setValue(\"value3\");\n\t\tsourceDest3.setType(\"type3\");\n\t\tsourceDest4.setValue(\"value4\");\n\t\tsourceDest4.setType(\"type4\");\n\t\t\n\t\tdestinationList.getDestination().add(sourceDest3);\n\t\tdestinationList.getDestination().add(sourceDest4);\n\t\ttransactionEventExtension.setDestinationList(destinationList);\n\t\t\n\t\tSourceListType sourceList =new SourceListType();\n\t\tSourceDestType sourceDest1=new SourceDestType( );\n\t\tSourceDestType sourceDest2=new SourceDestType( );\n\t\tsourceDest1.setValue(\"value1\");\n\t\tsourceDest1.setType(\"type1\");\n\t\tsourceDest1.setValue(\"value2\");\n\t\tsourceDest1.setType(\"type2\");\n\t\t\n\t\tsourceList.getSource().add(sourceDest1);\n\t\tsourceList.getSource().add(sourceDest2);\n\t\t\n\t\t\n\t\ttransactionEventExtension.setSourceList(sourceList);\n\t\t\n\t\t\n\t\t\n\n\t\tTransactionEventExtension2Type transactionEventExtension2=\n\t\t\t\tnew TransactionEventExtension2Type();\n\t\t\n\t\ttransactionEventExtension.setExtension(transactionEventExtension2);\n\t\t\n\t\t\n\t\ttransactionEventType.setExtension(transactionEventExtension);\n\t\t\n\t\treturn transactionEventType;\n\t\t\n\t}",
"@Override\n\tpublic void setType(int type) {\n\t\t_expandoColumn.setType(type);\n\t}",
"private String getNameFromType(int activityType) {\n switch(activityType) {\n case DetectedActivity.IN_VEHICLE:\n return \"in_vehicle\";\n case DetectedActivity.ON_BICYCLE:\n return \"on_bicycle\";\n case DetectedActivity.ON_FOOT:\n return \"on_foot\";\n case DetectedActivity.STILL:\n return \"still\";\n case DetectedActivity.UNKNOWN:\n return \"unknown\";\n case DetectedActivity.TILTING:\n return \"tilting\";\n }\n return \"unrecognized\";\n }",
"public Integer getActivitytypeid() {\n return activitytypeid;\n }",
"@Nullable\n @Generated\n @Selector(\"handoffUserActivityType\")\n public native String handoffUserActivityType();",
"@Override\n public String getType(){\n return Type;\n }",
"public Vector listActivityCategory() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT activity_type_id,activity_type_name FROM \"+ DBHelper.USEA_ACTIVITY_CATEGORY;\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) {\n this.activityTypeId = rs.getString(1);\n this.activityTypeName = rs.getString(2);\n String [] activityList = {activityTypeId,activityTypeName};\n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"UserType getType();",
"HotelType selectByPrimaryKey(Integer typeiId);",
"public String getType() {return type;}",
"TableType getTableType()\n {\n return tableType;\n }",
"public static AuditType exampleAuditType() {\r\n AuditType auditType = new AuditType();\r\n auditType.setActionName(\"actionName\");\r\n auditType.setAuditCategory(\"auditCategory\");\r\n auditType.setContextId(\"contextId\");\r\n auditType.setCreatedOnDb(3L);\r\n auditType.setHibernateVersionNumber(4L);\r\n auditType.setId(\"id\");\r\n auditType.setLabelInt01(\"labelInt01\");\r\n auditType.setLabelInt02(\"labelInt02\");\r\n auditType.setLabelInt03(\"labelInt03\");\r\n auditType.setLabelInt04(\"labelInt04\");\r\n auditType.setLabelInt05(\"labelInt05\");\r\n auditType.setLabelString01(\"labelString01\");\r\n auditType.setLabelString02(\"labelString02\");\r\n auditType.setLabelString03(\"labelString03\");\r\n auditType.setLabelString04(\"labelString04\");\r\n auditType.setLabelString05(\"labelString05\");\r\n auditType.setLabelString06(\"labelString06\");\r\n auditType.setLabelString07(\"labelString07\");\r\n auditType.setLabelString08(\"labelString08\");\r\n auditType.setLastUpdatedDb(5L);\r\n return auditType;\r\n }",
"public abstract QCEntryType getType();",
"RelDataType getResultType(String sql);",
"@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);",
"public abstract String toHiveType(int sqlType);",
"@Override\n public String getJavaByJdbcType(DbAttribute attribute, int type) {\n String jdbcType = TypesMapping.getSqlNameByType(type);\n DbType dbType;\n if (attribute != null) {\n dbType = new DbType(\n jdbcType,\n attribute.getMaxLength(),\n attribute.getAttributePrecision(),\n attribute.getScale(),\n attribute.isMandatory());\n } else {\n dbType = new DbType(jdbcType);\n }\n\n String typeName = getJavaByJdbcType(dbType);\n\n if (usePrimitives != null && usePrimitives) {\n String primitive = classToPrimitive.get(typeName);\n if (primitive != null) {\n return primitive;\n }\n }\n\n return typeName;\n }",
"RelDataType getParameterRowType();",
"private static String mapStatementSetter(final FieldType.Type type) {\n switch (type) {\n case DATE:\n return \"setDate\";\n case INTEGER:\n return \"setInt\";\n case REAL:\n return \"setDouble\";\n case STRING:\n return \"setString\";\n default:\n return null;\n }\n }",
"@Override\n\tpublic int getType() {\n\t\treturn 1;\n\t}",
"public void setTransactionType(int transactionChoice);",
"public int getType() { return type; }",
"public int getType() { return type; }",
"CmsActivity selectByPrimaryKey(String activityId);",
"@Override\r\n\t\tpublic Map<String, Class<?>> getTypeMap() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public ConcatColumn(final Type type) {\n this.type = type;\n numTuples = 0;\n columnIds = Maps.newTreeMap();\n readOnly = false;\n }",
"@Override\n public String getType() {\n return \"\";\n }",
"@SuppressWarnings({ \"all\", \"unchecked\", \"rawtypes\" })\npublic interface IXActivity extends VertxPojo, Serializable {\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键\n */\n public IXActivity setKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键\n */\n public String getKey();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TYPE</code>. 「type」- 操作类型\n */\n public IXActivity setType(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TYPE</code>. 「type」- 操作类型\n */\n public String getType();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.SERIAL</code>. 「serial」- 变更记录号\n */\n public IXActivity setSerial(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.SERIAL</code>. 「serial」- 变更记录号\n */\n public String getSerial();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.DESCRIPTION</code>. 「description」-\n * 操作描述信息\n */\n public IXActivity setDescription(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.DESCRIPTION</code>. 「description」-\n * 操作描述信息\n */\n public String getDescription();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_ID</code>. 「modelId」-\n * 组所关联的模型identifier,用于描述\n */\n public IXActivity setModelId(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_ID</code>. 「modelId」-\n * 组所关联的模型identifier,用于描述\n */\n public String getModelId();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_KEY</code>. 「modelKey」-\n * 组所关联的模型记录ID,用于描述哪一个Model中的记录\n */\n public IXActivity setModelKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_KEY</code>. 「modelKey」-\n * 组所关联的模型记录ID,用于描述哪一个Model中的记录\n */\n public String getModelKey();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_CATEGORY</code>.\n * 「modelCategory」- 关联的category记录,只包含叶节点\n */\n public IXActivity setModelCategory(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_CATEGORY</code>.\n * 「modelCategory」- 关联的category记录,只包含叶节点\n */\n public String getModelCategory();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TASK_NAME</code>. 「taskName」- 任务名称\n */\n public IXActivity setTaskName(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TASK_NAME</code>. 「taskName」- 任务名称\n */\n public String getTaskName();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TASK_SERIAL</code>. 「taskSerial」-\n * 任务单号\n */\n public IXActivity setTaskSerial(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TASK_SERIAL</code>. 「taskSerial」-\n * 任务单号\n */\n public String getTaskSerial();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_OLD</code>. 「recordOld」-\n * 变更之前的数据(用于回滚)\n */\n public IXActivity setRecordOld(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_OLD</code>. 「recordOld」-\n * 变更之前的数据(用于回滚)\n */\n public String getRecordOld();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_NEW</code>. 「recordNew」-\n * 变更之后的数据(用于更新)\n */\n public IXActivity setRecordNew(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_NEW</code>. 「recordNew」-\n * 变更之后的数据(用于更新)\n */\n public String getRecordNew();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.SIGMA</code>. 「sigma」- 用户组绑定的统一标识\n */\n public IXActivity setSigma(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.SIGMA</code>. 「sigma」- 用户组绑定的统一标识\n */\n public String getSigma();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.LANGUAGE</code>. 「language」- 使用的语言\n */\n public IXActivity setLanguage(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.LANGUAGE</code>. 「language」- 使用的语言\n */\n public String getLanguage();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.ACTIVE</code>. 「active」- 是否启用\n */\n public IXActivity setActive(Boolean value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.ACTIVE</code>. 「active」- 是否启用\n */\n public Boolean getActive();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.METADATA</code>. 「metadata」-\n * 附加配置数据\n */\n public IXActivity setMetadata(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.METADATA</code>. 「metadata」-\n * 附加配置数据\n */\n public String getMetadata();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_AT</code>. 「createdAt」-\n * 创建时间\n */\n public IXActivity setCreatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_AT</code>. 「createdAt」-\n * 创建时间\n */\n public LocalDateTime getCreatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_BY</code>. 「createdBy」-\n * 创建人\n */\n public IXActivity setCreatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_BY</code>. 「createdBy」-\n * 创建人\n */\n public String getCreatedBy();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_AT</code>. 「updatedAt」-\n * 更新时间\n */\n public IXActivity setUpdatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_AT</code>. 「updatedAt」-\n * 更新时间\n */\n public LocalDateTime getUpdatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_BY</code>. 「updatedBy」-\n * 更新人\n */\n public IXActivity setUpdatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_BY</code>. 「updatedBy」-\n * 更新人\n */\n public String getUpdatedBy();\n\n // -------------------------------------------------------------------------\n // FROM and INTO\n // -------------------------------------------------------------------------\n\n /**\n * Load data from another generated Record/POJO implementing the common\n * interface IXActivity\n */\n public void from(IXActivity from);\n\n /**\n * Copy data into another generated Record/POJO implementing the common\n * interface IXActivity\n */\n public <E extends IXActivity> E into(E into);\n\n @Override\n public default IXActivity fromJson(io.vertx.core.json.JsonObject json) {\n setOrThrow(this::setKey,json::getString,\"KEY\",\"java.lang.String\");\n setOrThrow(this::setType,json::getString,\"TYPE\",\"java.lang.String\");\n setOrThrow(this::setSerial,json::getString,\"SERIAL\",\"java.lang.String\");\n setOrThrow(this::setDescription,json::getString,\"DESCRIPTION\",\"java.lang.String\");\n setOrThrow(this::setModelId,json::getString,\"MODEL_ID\",\"java.lang.String\");\n setOrThrow(this::setModelKey,json::getString,\"MODEL_KEY\",\"java.lang.String\");\n setOrThrow(this::setModelCategory,json::getString,\"MODEL_CATEGORY\",\"java.lang.String\");\n setOrThrow(this::setTaskName,json::getString,\"TASK_NAME\",\"java.lang.String\");\n setOrThrow(this::setTaskSerial,json::getString,\"TASK_SERIAL\",\"java.lang.String\");\n setOrThrow(this::setRecordOld,json::getString,\"RECORD_OLD\",\"java.lang.String\");\n setOrThrow(this::setRecordNew,json::getString,\"RECORD_NEW\",\"java.lang.String\");\n setOrThrow(this::setSigma,json::getString,\"SIGMA\",\"java.lang.String\");\n setOrThrow(this::setLanguage,json::getString,\"LANGUAGE\",\"java.lang.String\");\n setOrThrow(this::setActive,json::getBoolean,\"ACTIVE\",\"java.lang.Boolean\");\n setOrThrow(this::setMetadata,json::getString,\"METADATA\",\"java.lang.String\");\n setOrThrow(this::setCreatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},\"CREATED_AT\",\"java.time.LocalDateTime\");\n setOrThrow(this::setCreatedBy,json::getString,\"CREATED_BY\",\"java.lang.String\");\n setOrThrow(this::setUpdatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},\"UPDATED_AT\",\"java.time.LocalDateTime\");\n setOrThrow(this::setUpdatedBy,json::getString,\"UPDATED_BY\",\"java.lang.String\");\n return this;\n }\n\n\n @Override\n public default io.vertx.core.json.JsonObject toJson() {\n io.vertx.core.json.JsonObject json = new io.vertx.core.json.JsonObject();\n json.put(\"KEY\",getKey());\n json.put(\"TYPE\",getType());\n json.put(\"SERIAL\",getSerial());\n json.put(\"DESCRIPTION\",getDescription());\n json.put(\"MODEL_ID\",getModelId());\n json.put(\"MODEL_KEY\",getModelKey());\n json.put(\"MODEL_CATEGORY\",getModelCategory());\n json.put(\"TASK_NAME\",getTaskName());\n json.put(\"TASK_SERIAL\",getTaskSerial());\n json.put(\"RECORD_OLD\",getRecordOld());\n json.put(\"RECORD_NEW\",getRecordNew());\n json.put(\"SIGMA\",getSigma());\n json.put(\"LANGUAGE\",getLanguage());\n json.put(\"ACTIVE\",getActive());\n json.put(\"METADATA\",getMetadata());\n json.put(\"CREATED_AT\",getCreatedAt()==null?null:getCreatedAt().toString());\n json.put(\"CREATED_BY\",getCreatedBy());\n json.put(\"UPDATED_AT\",getUpdatedAt()==null?null:getUpdatedAt().toString());\n json.put(\"UPDATED_BY\",getUpdatedBy());\n return json;\n }\n\n}",
"public static AuditType exampleAuditTypeDb() {\r\n return exampleAuditTypeDb(\"testCategory\", \"testAction\");\r\n }",
"public QueryType getType();",
"String getSQLTypeName() throws SQLException;",
"@Schema(description = \"When sub-classing, this defines the sub-class entity name\")\n\n\tpublic String getAtType() {\n\t\treturn type;\n\t}",
"public void updateData(String typeActivity) {\n try {\n Float.parseFloat(this.inputNominal.getText());\n } catch (Exception err) {\n this.alert.showMessageDialog(null, \"Silahkan input nominal dengan benar\");\n }\n \n try {\n this.inputDate.getDate().getTime();\n } catch (Exception err) {\n this.alert.showMessageDialog(null, \"Silahkan input tanggal dengan benar\");\n }\n \n Time time = new Time();\n time.setDate(this.inputDate.getDate());\n \n String description = this.inputDescription.getText();\n float nominal = Float.parseFloat(this.inputNominal.getText());\n String dateAt = time.parseDatetime();\n \n ActivityService activityService = new ActivityService();\n \n activityService\n .setId(this.id)\n .setDescription(description)\n .setNominal(nominal)\n .setDateAt(dateAt)\n .setUser(this.dashboard.user);\n \n try {\n if (typeActivity.equals(\"+\")) {\n activityService.updateIncome();\n } else {\n activityService.updateExpense();\n }\n this.dashboard.refreshUI();\n this.dashboard.resetForm();\n } catch (Exception err) {\n this.alert.showMessageDialog(null, err.getMessage());\n }\n }",
"public void representDataOnActors(String type)\r\n\t{\n\t}",
"public String getType() { return type; }",
"public long getCount(MigrationType type);",
"fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType();",
"QueryType createQueryType();",
"public String getType(){\n return this.type;\n }",
"public void setResult(int type, String typeName, Class javaType) {\r\n ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(\"\");\r\n field.setSqlType(type);\r\n field.setSqlTypeName(typeName);\r\n field.setType(javaType);\r\n getParameters().set(0, field);\r\n }",
"public int getType() {\n return type;\n }",
"public ScGridColumn<AcActionAutoCorrectedLog> newScannedTypeColumn()\n {\n return newScannedTypeColumn(\"Scanned Type\");\n }",
"@Override\n public int getCustomChatRowTypeCount() {\n return 10;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public int getType(){\r\n\t\treturn type;\r\n\t}",
"SellType selectByPrimaryKey(Integer sell_type_id);",
"@Override\r\n\tpublic String getType() {\n\t\treturn type;\r\n\t}",
"@Override\n public int getResultSetType() throws SQLException {\n throw new SQLException(\"tinySQL does not support getResultSetType.\");\n }",
"public interface UserShareActivityMapper {\n\n\n @Select(\"select count(1) from lh_share_activity_info WHERE random=#{random} AND share_user_tid=#{user_tid} AND extend_type=#{extend_type}\")\n public Integer checkSharelink(CreateShareLinkEvent event);\n\n @Insert(\"insert into lh_share_activity_info(share_user_tid,\" +\n \"random,extend_type,end_time,create_time) values(#{share_user_tid},#{random},#{extend_type},#{end_time},now())\")\n public void insertShareLink(UserShareInfo userShareInfo);\n}",
"void setType(String type) {\n this.type = type;\n }",
"void setForPersistentMapping_Type(Type type) {\n this.type = type;\n }",
"public abstract Map<String, Integer> getColumnTypes(String tableName);",
"public String getType(){\r\n return type;\r\n }",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"public ResultSet getAppointmentsByType() throws SQLException {\r\n String statement = \"SELECT DISTINCT Type as Type, COUNT(Type) as AMOUNT FROM appointments GROUP BY Type\";\r\n return conn.prepareStatement(statement).executeQuery();\r\n }",
"public int getType(){\n return type;\n }",
"@Override\n\tpublic int getType() {\n\t\treturn _expandoColumn.getType();\n\t}",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }"
] | [
"0.60907745",
"0.56518316",
"0.5617674",
"0.55851614",
"0.5515899",
"0.5429194",
"0.5411337",
"0.53703195",
"0.53390545",
"0.52769154",
"0.52413064",
"0.522299",
"0.51914597",
"0.51647353",
"0.51364106",
"0.5066082",
"0.50618553",
"0.50616753",
"0.5050939",
"0.50326174",
"0.5030021",
"0.4985679",
"0.4958322",
"0.4957959",
"0.49510604",
"0.4946326",
"0.4905505",
"0.48941228",
"0.48809934",
"0.48678085",
"0.4857349",
"0.48384783",
"0.48219064",
"0.48139277",
"0.48073718",
"0.48015222",
"0.47932574",
"0.47854418",
"0.47803855",
"0.4779893",
"0.47757474",
"0.4775457",
"0.47738466",
"0.47694823",
"0.476707",
"0.47475797",
"0.47443306",
"0.47397175",
"0.4737887",
"0.47329366",
"0.47224134",
"0.4722358",
"0.47214916",
"0.47144052",
"0.4705132",
"0.47038382",
"0.47038382",
"0.47029248",
"0.46974093",
"0.46939912",
"0.46893182",
"0.46802947",
"0.46766913",
"0.46689025",
"0.46685708",
"0.46670607",
"0.46627983",
"0.46570033",
"0.46537668",
"0.46509942",
"0.46418864",
"0.46355778",
"0.46340042",
"0.4627499",
"0.46269494",
"0.46242628",
"0.46168092",
"0.46166041",
"0.46110654",
"0.46090087",
"0.4602575",
"0.45977417",
"0.4597728",
"0.4592478",
"0.45920688",
"0.45910782",
"0.4585131",
"0.45845562",
"0.45845562",
"0.45844653",
"0.45832726",
"0.45778546",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098"
] | 0.52778 | 9 |
This method was generated by MyBatis Generator. This method corresponds to the database table qt_activitytype | QtActivitytype selectByPrimaryKey(Integer id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected List<Daily_activity_type> getDailyActivityType() {\n return super.emMain.createQuery(\"FROM Daily_activity_type WHERE dat_code <> 0 ORDER BY dat_order ASC\",\n Daily_activity_type.class).getResultList();\n }",
"public Vector listActivityTypeActivity() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT A.activity_type_id,B.specification_id,B.specification_name, A.transaction_type_id FROM \"+ \n DBHelper.USEA_ACTIVITY_CATEGORY+\" A, \"+DBHelper.USEA_SPECIFICATION_MASTER+\" B \"+\n \" WHERE A.activity_type_id = B.activity_type_id AND A.activity_type_name = ? and B.active_status = ? order by B.specification_name\";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, \"Activity\");\n prepStmt.setBoolean(2, true);\n \n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) {\n \n this.specificationId = rs.getString(2);\n this.specificationName = rs.getString(3);\n String txnTypeId = rs.getString(4);\n \n String [] activityList = {specificationId,specificationName,txnTypeId};\n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"public void setActivityType(ActivityType activityType) {\n this.activityType = activityType;\n }",
"public String toXML() {\n StringBuffer ret = new StringBuffer();\n ret.append(\"<table name=\\\"MTBTypes\\\">\\n\");\n ret.append(\" <column name=\\\"_MTBTypes_key\\\"\\n\");\n ret.append(\" value=\\\"\").append((MTBTypesKey_is_initialized ? ((MTBTypesKey == null ? null : MTBTypesKey.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"type\\\"\\n\");\n ret.append(\" value=\\\"\").append((type_is_initialized ? ((type == null ? null : type)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"description\\\"\\n\");\n ret.append(\" value=\\\"\").append((description_is_initialized ? ((description == null ? null : description)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"tableName\\\"\\n\");\n ret.append(\" value=\\\"\").append((tableName_is_initialized ? ((tableName == null ? null : tableName)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"columnName\\\"\\n\");\n ret.append(\" value=\\\"\").append((columnName_is_initialized ? ((columnName == null ? null : columnName)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"create_user\\\"\\n\");\n ret.append(\" value=\\\"\").append((createUser_is_initialized ? ((createUser == null ? null : createUser)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"create_date\\\"\\n\");\n ret.append(\" value=\\\"\").append((createDate_is_initialized ? ((createDate == null ? null : createDate.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"update_user\\\"\\n\");\n ret.append(\" value=\\\"\").append((updateUser_is_initialized ? ((updateUser == null ? null : updateUser)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"update_date\\\"\\n\");\n ret.append(\" value=\\\"\").append((updateDate_is_initialized ? ((updateDate == null ? null : updateDate.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\"</table>\");\n return ret.toString();\n }",
"public int getSqlType() { return _type; }",
"@Query(\"SELECT * FROM wellbeing_questions WHERE activity_type == :activityType\")\n List<WellbeingQuestion> getQuestionsByActivityType(String activityType);",
"public abstract String getTipoByAct(Actividad activity) throws PersistenceException, ClassNotFoundException;",
"public abstract String toJavaType(int sqlType);",
"Collection<ActivityType> getActivityTypes() throws DataAccessException;",
"List<QtActivitytype> selectByExample(QtActivitytypeExample example);",
"void storeActivityType(ActivityType activityType) throws DataAccessException;",
"RelDataType getColumnType(String sql);",
"public void setActivitytypeid(Integer activitytypeid) {\n this.activitytypeid = activitytypeid;\n }",
"public ActivityType getActivityType() {\n return activityType;\n }",
"public void setActivityType(ActivityType activity, UsertypeType type) {\n\t\tactivity.setUsertype(type);\n\t}",
"private void setActivity(int relType){\n\t\tActivity act = new Activity();\n\t\tActivityDefinition actDef = new ActivityDefinition();\n\t\tactDef.setType(INTERACT_TYPE);\n\t\tactDef.setInteractionType(INTERACT_TYPE);\n\t\t//InteractionComponent iac = new InteractionComponent();\n\t\tact.setDefinition(actDef);\n\t\t\n\t\tHashMap<String, String> names = new HashMap<String, String>();\n\t\tnames.put(\"en\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"en\")));\n\t\tnames.put(\"de\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"de\")));\n\n\t\tactDef.setName(names);\n\t\tthis.setObject(act);\n\t\n\t}",
"private void setActivity(int relType){\n\t\tActivity act = new Activity();\n\t\tActivityDefinition actDef = new ActivityDefinition();\n\t\tactDef.setType(INTERACT_TYPE);\n\t\tactDef.setInteractionType(INTERACT_TYPE);\n\t\t//InteractionComponent iac = new InteractionComponent();\n\t\tact.setDefinition(actDef);\n\t\t\n\t\tHashMap<String, String> names = new HashMap<String, String>();\n\t\t//names.put(\"en\",\"Identifying problems\");\n\t\tnames.put(\"en\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"en\")));\n\t\tnames.put(\"de\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"de\")));\n\n\t\tactDef.setName(names);\n\t\tthis.setObject(act);\n\t\n\t}",
"public Vector listActivityTypeRegister() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT B.specification_id,B.specification_name, A.transaction_type_id FROM \"+ \n DBHelper.USEA_ACTIVITY_CATEGORY+\" A, \"+DBHelper.USEA_SPECIFICATION_MASTER+\" B \"+\n \" WHERE A.activity_type_id = B.activity_type_id AND A.activity_type_name = ? and B.active_status = ? \";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, \"Registration\");\n prepStmt.setBoolean(2 , true);\n \n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) { \n this.specificationId = rs.getString(1);\n this.specificationName = rs.getString(2);\n String txnTypeId = rs.getString(3);\n \n String [] activityList = {specificationId,specificationName,txnTypeId};\n Debug.print(\" Specification Id : \"+specificationId);\n Debug.print(\" specificationName : \"+specificationName);\n Debug.print(\" txnTypeId : \"+txnTypeId);\n \n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"public String getEntityTypeName() { return \"jp.sourceforge.ea2ddl.dao.exentity.TTrxtypes\"; }",
"public Column.Type getType();",
"public String getTableDbName() { return \"t_trxtypes\"; }",
"public int getJdbcType();",
"@Override\r\n\tpublic String getType() {\n\t\treturn \"column\";\r\n\t}",
"com.rpg.framework.database.Protocol.ItemType getType();",
"ActivityType loadActivityType(int id) throws DataAccessException;",
"private void setActivityType(int value) {\n this.bitField0_ |= 4;\n this.activityType_ = value;\n }",
"@Override\n public RelDataType getRowType(final RelDataTypeFactory typeFactory) {\n final Schema kuduSchema = this.getKuduTable().getSchema();\n final RelDataTypeFactory.Builder builder = new RelDataTypeFactory.Builder(typeFactory);\n\n for (int i = 0; i < kuduSchema.getColumnCount(); i++) {\n final ColumnSchema currentColumn = kuduSchema.getColumnByIndex(i);\n switch (currentColumn.getType()) {\n case INT8:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.TINYINT).nullable(currentColumn.isNullable());\n break;\n case INT16:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.SMALLINT).nullable(currentColumn.isNullable());\n break;\n case INT32:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.INTEGER).nullable(currentColumn.isNullable());\n break;\n case INT64:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.BIGINT).nullable(currentColumn.isNullable());\n break;\n case BINARY:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.VARBINARY).nullable(currentColumn.isNullable());\n break;\n case STRING:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.VARCHAR).nullable(currentColumn.isNullable());\n break;\n case BOOL:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.BOOLEAN).nullable(currentColumn.isNullable());\n break;\n case FLOAT:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.FLOAT).nullable(currentColumn.isNullable());\n break;\n case DOUBLE:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.DOUBLE).nullable(currentColumn.isNullable());\n break;\n case UNIXTIME_MICROS:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.TIMESTAMP).nullable(currentColumn.isNullable());\n break;\n case DECIMAL:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.DECIMAL).nullable(currentColumn.isNullable());\n break;\n }\n }\n\n return builder.build();\n }",
"public TypeData getTypeData(MigrationType type);",
"private String getNameFromType(int activityType) {\n switch (activityType) {\n case DetectedActivity.IN_VEHICLE:\n return \"in_vehicle\";\n case DetectedActivity.ON_BICYCLE:\n return \"on_bicycle\";\n case DetectedActivity.ON_FOOT:\n return \"on_foot\";\n case DetectedActivity.STILL:\n return \"still\";\n case DetectedActivity.UNKNOWN:\n return \"unknown\";\n case DetectedActivity.TILTING:\n return \"tilting\";\n }\n return \"unknown\";\n }",
"@Override\n public String convertToDatabaseColumn(TransactionType transactionType) {\n if (transactionType == null) return null;\n\n return transactionType.getTransactionType();\n }",
"@Override\n public Object toJdbcType(Object value) {\n return value;\n }",
"public List<LogRoomTypeHistory>getAllRoomTypeHistory(TblRoomType roomType);",
"ResultColumn getTypeIdColumn(TableReference tableReference);",
"public ScGridColumn<AcActionAutoCorrectedLog> newActualTypeColumn()\n {\n return newActualTypeColumn(\"Actual Type\");\n }",
"public static \tTransactionEventType getTransactionEventTypeSample(){\n\t\t\n\t\tTransactionEventType transactionEventType=new TransactionEventType();\n\t\t\n\t\tGregorianCalendar gRecordTime = new GregorianCalendar();\n\t\tXMLGregorianCalendar recordTime;\n\t\ttry {\n\t\t\trecordTime = DatatypeFactory.newInstance().newXMLGregorianCalendar(gRecordTime);\n\t\t\ttransactionEventType.setEventTime(recordTime);\n\t\t\ttransactionEventType.setRecordTime(recordTime);\n\t\t} catch (DatatypeConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttransactionEventType.setEventTimeZoneOffset(\"eventTimeZoneOffset_T\");\n\t\ttransactionEventType.setParentID(\"parentID_T\");\n\t\t\n\t\tEPCListType transactionEventEPCs=new EPCListType();\n\t\t\n\t\t\n\t\torg.oliot.model.epcis.EPC epc1=new org.oliot.model.epcis.EPC (\"epc1_T\");\n\t\t\n\t\torg.oliot.model.epcis.EPC epc2=new org.oliot.model.epcis.EPC (\"epc2_T\");\n\t\t\t\t\n\t\ttransactionEventEPCs.getEpc().add(epc1);\n\t\ttransactionEventEPCs.getEpc().add(epc2);\n\t\ttransactionEventType.setEpcList(transactionEventEPCs);\n\t\t\n\t\ttransactionEventType.setAction(ActionType.fromValue(\"ADD\"));\t\n\t\ttransactionEventType.setBizStep(\"bizStep_T\");\n\t\ttransactionEventType.setDisposition(\"disposition_T\");\n\t\t\n\t\t\n\t\tReadPointType readPoint=new ReadPointType();\n\t\treadPoint.setId(\"ReadPoint_object\");\n\t\tReadPointExtensionType readPointExtension=new ReadPointExtensionType();\n\t\treadPoint.setExtension(readPointExtension);\n\t\t\n\t\ttransactionEventType.setReadPoint(readPoint);\n\t\t\n\t\tBusinessLocationType businessLocation =new BusinessLocationType();\n\t\tbusinessLocation.setId(\"BusinessLocation_object\");\n\t\tBusinessLocationExtensionType businessLocationExtension= new BusinessLocationExtensionType();\n\t\tbusinessLocation.setExtension(businessLocationExtension);\n\t\t\n\t\ttransactionEventType.setBizLocation(businessLocation);\n\t\t\n\t\tBusinessTransactionListType businessTransactionList=new BusinessTransactionListType();\t\n\t\tBusinessTransactionType businessTransaction1=new BusinessTransactionType();\n\t\tbusinessTransaction1.setType(\"type1_o\");\n\t\tbusinessTransaction1.setValue(\"value1_o\");\n\t\tBusinessTransactionType businessTransaction2=new BusinessTransactionType();\n\t\tbusinessTransaction1.setType(\"type2_o\");\n\t\tbusinessTransaction1.setValue(\"value2_o\");\n\t\tbusinessTransactionList.getBizTransaction().add(businessTransaction1);\n\t\tbusinessTransactionList.getBizTransaction().add(businessTransaction2);\n\t\ttransactionEventType.setBizTransactionList(businessTransactionList);\n\t\t\n\t\t\n\t\tTransactionEventExtensionType transactionEventExtension =new TransactionEventExtensionType();\n\t\t\n\t\tQuantityListType quantityList =new QuantityListType();\n\t\tQuantityElementType quantityElement1=new QuantityElementType();\n\t\tquantityElement1.setEpcClass(\"epcClass1_O\");\n\t\tquantityElement1.setQuantity(111);\n\t\tquantityElement1.setUom(\"uom1_O\");\n\t\tQuantityElementType quantityElement2=new QuantityElementType();\n\t\tquantityElement2.setEpcClass(\"epcClass2_O\");\n\t\tquantityElement2.setQuantity(111);\n\t\tquantityElement2.setUom(\"uom2_O\");\n\t\tquantityList.getQuantityElement().add(quantityElement1);\n\t\tquantityList.getQuantityElement().add(quantityElement2);\n\t\t\n\t\ttransactionEventExtension.setQuantityList(quantityList);\n\t\t\n\t\tDestinationListType destinationList =new DestinationListType();\n\t\tSourceDestType sourceDest3=new SourceDestType( );\n\t\tSourceDestType sourceDest4=new SourceDestType( );\n\t\tsourceDest3.setValue(\"value3\");\n\t\tsourceDest3.setType(\"type3\");\n\t\tsourceDest4.setValue(\"value4\");\n\t\tsourceDest4.setType(\"type4\");\n\t\t\n\t\tdestinationList.getDestination().add(sourceDest3);\n\t\tdestinationList.getDestination().add(sourceDest4);\n\t\ttransactionEventExtension.setDestinationList(destinationList);\n\t\t\n\t\tSourceListType sourceList =new SourceListType();\n\t\tSourceDestType sourceDest1=new SourceDestType( );\n\t\tSourceDestType sourceDest2=new SourceDestType( );\n\t\tsourceDest1.setValue(\"value1\");\n\t\tsourceDest1.setType(\"type1\");\n\t\tsourceDest1.setValue(\"value2\");\n\t\tsourceDest1.setType(\"type2\");\n\t\t\n\t\tsourceList.getSource().add(sourceDest1);\n\t\tsourceList.getSource().add(sourceDest2);\n\t\t\n\t\t\n\t\ttransactionEventExtension.setSourceList(sourceList);\n\t\t\n\t\t\n\t\t\n\n\t\tTransactionEventExtension2Type transactionEventExtension2=\n\t\t\t\tnew TransactionEventExtension2Type();\n\t\t\n\t\ttransactionEventExtension.setExtension(transactionEventExtension2);\n\t\t\n\t\t\n\t\ttransactionEventType.setExtension(transactionEventExtension);\n\t\t\n\t\treturn transactionEventType;\n\t\t\n\t}",
"@Override\n\tpublic void setType(int type) {\n\t\t_expandoColumn.setType(type);\n\t}",
"private String getNameFromType(int activityType) {\n switch(activityType) {\n case DetectedActivity.IN_VEHICLE:\n return \"in_vehicle\";\n case DetectedActivity.ON_BICYCLE:\n return \"on_bicycle\";\n case DetectedActivity.ON_FOOT:\n return \"on_foot\";\n case DetectedActivity.STILL:\n return \"still\";\n case DetectedActivity.UNKNOWN:\n return \"unknown\";\n case DetectedActivity.TILTING:\n return \"tilting\";\n }\n return \"unrecognized\";\n }",
"public Integer getActivitytypeid() {\n return activitytypeid;\n }",
"@Nullable\n @Generated\n @Selector(\"handoffUserActivityType\")\n public native String handoffUserActivityType();",
"@Override\n public String getType(){\n return Type;\n }",
"public Vector listActivityCategory() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT activity_type_id,activity_type_name FROM \"+ DBHelper.USEA_ACTIVITY_CATEGORY;\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) {\n this.activityTypeId = rs.getString(1);\n this.activityTypeName = rs.getString(2);\n String [] activityList = {activityTypeId,activityTypeName};\n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"UserType getType();",
"HotelType selectByPrimaryKey(Integer typeiId);",
"public String getType() {return type;}",
"TableType getTableType()\n {\n return tableType;\n }",
"public static AuditType exampleAuditType() {\r\n AuditType auditType = new AuditType();\r\n auditType.setActionName(\"actionName\");\r\n auditType.setAuditCategory(\"auditCategory\");\r\n auditType.setContextId(\"contextId\");\r\n auditType.setCreatedOnDb(3L);\r\n auditType.setHibernateVersionNumber(4L);\r\n auditType.setId(\"id\");\r\n auditType.setLabelInt01(\"labelInt01\");\r\n auditType.setLabelInt02(\"labelInt02\");\r\n auditType.setLabelInt03(\"labelInt03\");\r\n auditType.setLabelInt04(\"labelInt04\");\r\n auditType.setLabelInt05(\"labelInt05\");\r\n auditType.setLabelString01(\"labelString01\");\r\n auditType.setLabelString02(\"labelString02\");\r\n auditType.setLabelString03(\"labelString03\");\r\n auditType.setLabelString04(\"labelString04\");\r\n auditType.setLabelString05(\"labelString05\");\r\n auditType.setLabelString06(\"labelString06\");\r\n auditType.setLabelString07(\"labelString07\");\r\n auditType.setLabelString08(\"labelString08\");\r\n auditType.setLastUpdatedDb(5L);\r\n return auditType;\r\n }",
"public abstract QCEntryType getType();",
"RelDataType getResultType(String sql);",
"@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);",
"public abstract String toHiveType(int sqlType);",
"@Override\n public String getJavaByJdbcType(DbAttribute attribute, int type) {\n String jdbcType = TypesMapping.getSqlNameByType(type);\n DbType dbType;\n if (attribute != null) {\n dbType = new DbType(\n jdbcType,\n attribute.getMaxLength(),\n attribute.getAttributePrecision(),\n attribute.getScale(),\n attribute.isMandatory());\n } else {\n dbType = new DbType(jdbcType);\n }\n\n String typeName = getJavaByJdbcType(dbType);\n\n if (usePrimitives != null && usePrimitives) {\n String primitive = classToPrimitive.get(typeName);\n if (primitive != null) {\n return primitive;\n }\n }\n\n return typeName;\n }",
"RelDataType getParameterRowType();",
"private static String mapStatementSetter(final FieldType.Type type) {\n switch (type) {\n case DATE:\n return \"setDate\";\n case INTEGER:\n return \"setInt\";\n case REAL:\n return \"setDouble\";\n case STRING:\n return \"setString\";\n default:\n return null;\n }\n }",
"@Override\n\tpublic int getType() {\n\t\treturn 1;\n\t}",
"public void setTransactionType(int transactionChoice);",
"public int getType() { return type; }",
"public int getType() { return type; }",
"CmsActivity selectByPrimaryKey(String activityId);",
"@Override\r\n\t\tpublic Map<String, Class<?>> getTypeMap() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public ConcatColumn(final Type type) {\n this.type = type;\n numTuples = 0;\n columnIds = Maps.newTreeMap();\n readOnly = false;\n }",
"@Override\n public String getType() {\n return \"\";\n }",
"@SuppressWarnings({ \"all\", \"unchecked\", \"rawtypes\" })\npublic interface IXActivity extends VertxPojo, Serializable {\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键\n */\n public IXActivity setKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键\n */\n public String getKey();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TYPE</code>. 「type」- 操作类型\n */\n public IXActivity setType(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TYPE</code>. 「type」- 操作类型\n */\n public String getType();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.SERIAL</code>. 「serial」- 变更记录号\n */\n public IXActivity setSerial(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.SERIAL</code>. 「serial」- 变更记录号\n */\n public String getSerial();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.DESCRIPTION</code>. 「description」-\n * 操作描述信息\n */\n public IXActivity setDescription(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.DESCRIPTION</code>. 「description」-\n * 操作描述信息\n */\n public String getDescription();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_ID</code>. 「modelId」-\n * 组所关联的模型identifier,用于描述\n */\n public IXActivity setModelId(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_ID</code>. 「modelId」-\n * 组所关联的模型identifier,用于描述\n */\n public String getModelId();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_KEY</code>. 「modelKey」-\n * 组所关联的模型记录ID,用于描述哪一个Model中的记录\n */\n public IXActivity setModelKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_KEY</code>. 「modelKey」-\n * 组所关联的模型记录ID,用于描述哪一个Model中的记录\n */\n public String getModelKey();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_CATEGORY</code>.\n * 「modelCategory」- 关联的category记录,只包含叶节点\n */\n public IXActivity setModelCategory(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_CATEGORY</code>.\n * 「modelCategory」- 关联的category记录,只包含叶节点\n */\n public String getModelCategory();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TASK_NAME</code>. 「taskName」- 任务名称\n */\n public IXActivity setTaskName(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TASK_NAME</code>. 「taskName」- 任务名称\n */\n public String getTaskName();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TASK_SERIAL</code>. 「taskSerial」-\n * 任务单号\n */\n public IXActivity setTaskSerial(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TASK_SERIAL</code>. 「taskSerial」-\n * 任务单号\n */\n public String getTaskSerial();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_OLD</code>. 「recordOld」-\n * 变更之前的数据(用于回滚)\n */\n public IXActivity setRecordOld(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_OLD</code>. 「recordOld」-\n * 变更之前的数据(用于回滚)\n */\n public String getRecordOld();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_NEW</code>. 「recordNew」-\n * 变更之后的数据(用于更新)\n */\n public IXActivity setRecordNew(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_NEW</code>. 「recordNew」-\n * 变更之后的数据(用于更新)\n */\n public String getRecordNew();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.SIGMA</code>. 「sigma」- 用户组绑定的统一标识\n */\n public IXActivity setSigma(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.SIGMA</code>. 「sigma」- 用户组绑定的统一标识\n */\n public String getSigma();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.LANGUAGE</code>. 「language」- 使用的语言\n */\n public IXActivity setLanguage(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.LANGUAGE</code>. 「language」- 使用的语言\n */\n public String getLanguage();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.ACTIVE</code>. 「active」- 是否启用\n */\n public IXActivity setActive(Boolean value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.ACTIVE</code>. 「active」- 是否启用\n */\n public Boolean getActive();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.METADATA</code>. 「metadata」-\n * 附加配置数据\n */\n public IXActivity setMetadata(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.METADATA</code>. 「metadata」-\n * 附加配置数据\n */\n public String getMetadata();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_AT</code>. 「createdAt」-\n * 创建时间\n */\n public IXActivity setCreatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_AT</code>. 「createdAt」-\n * 创建时间\n */\n public LocalDateTime getCreatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_BY</code>. 「createdBy」-\n * 创建人\n */\n public IXActivity setCreatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_BY</code>. 「createdBy」-\n * 创建人\n */\n public String getCreatedBy();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_AT</code>. 「updatedAt」-\n * 更新时间\n */\n public IXActivity setUpdatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_AT</code>. 「updatedAt」-\n * 更新时间\n */\n public LocalDateTime getUpdatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_BY</code>. 「updatedBy」-\n * 更新人\n */\n public IXActivity setUpdatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_BY</code>. 「updatedBy」-\n * 更新人\n */\n public String getUpdatedBy();\n\n // -------------------------------------------------------------------------\n // FROM and INTO\n // -------------------------------------------------------------------------\n\n /**\n * Load data from another generated Record/POJO implementing the common\n * interface IXActivity\n */\n public void from(IXActivity from);\n\n /**\n * Copy data into another generated Record/POJO implementing the common\n * interface IXActivity\n */\n public <E extends IXActivity> E into(E into);\n\n @Override\n public default IXActivity fromJson(io.vertx.core.json.JsonObject json) {\n setOrThrow(this::setKey,json::getString,\"KEY\",\"java.lang.String\");\n setOrThrow(this::setType,json::getString,\"TYPE\",\"java.lang.String\");\n setOrThrow(this::setSerial,json::getString,\"SERIAL\",\"java.lang.String\");\n setOrThrow(this::setDescription,json::getString,\"DESCRIPTION\",\"java.lang.String\");\n setOrThrow(this::setModelId,json::getString,\"MODEL_ID\",\"java.lang.String\");\n setOrThrow(this::setModelKey,json::getString,\"MODEL_KEY\",\"java.lang.String\");\n setOrThrow(this::setModelCategory,json::getString,\"MODEL_CATEGORY\",\"java.lang.String\");\n setOrThrow(this::setTaskName,json::getString,\"TASK_NAME\",\"java.lang.String\");\n setOrThrow(this::setTaskSerial,json::getString,\"TASK_SERIAL\",\"java.lang.String\");\n setOrThrow(this::setRecordOld,json::getString,\"RECORD_OLD\",\"java.lang.String\");\n setOrThrow(this::setRecordNew,json::getString,\"RECORD_NEW\",\"java.lang.String\");\n setOrThrow(this::setSigma,json::getString,\"SIGMA\",\"java.lang.String\");\n setOrThrow(this::setLanguage,json::getString,\"LANGUAGE\",\"java.lang.String\");\n setOrThrow(this::setActive,json::getBoolean,\"ACTIVE\",\"java.lang.Boolean\");\n setOrThrow(this::setMetadata,json::getString,\"METADATA\",\"java.lang.String\");\n setOrThrow(this::setCreatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},\"CREATED_AT\",\"java.time.LocalDateTime\");\n setOrThrow(this::setCreatedBy,json::getString,\"CREATED_BY\",\"java.lang.String\");\n setOrThrow(this::setUpdatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},\"UPDATED_AT\",\"java.time.LocalDateTime\");\n setOrThrow(this::setUpdatedBy,json::getString,\"UPDATED_BY\",\"java.lang.String\");\n return this;\n }\n\n\n @Override\n public default io.vertx.core.json.JsonObject toJson() {\n io.vertx.core.json.JsonObject json = new io.vertx.core.json.JsonObject();\n json.put(\"KEY\",getKey());\n json.put(\"TYPE\",getType());\n json.put(\"SERIAL\",getSerial());\n json.put(\"DESCRIPTION\",getDescription());\n json.put(\"MODEL_ID\",getModelId());\n json.put(\"MODEL_KEY\",getModelKey());\n json.put(\"MODEL_CATEGORY\",getModelCategory());\n json.put(\"TASK_NAME\",getTaskName());\n json.put(\"TASK_SERIAL\",getTaskSerial());\n json.put(\"RECORD_OLD\",getRecordOld());\n json.put(\"RECORD_NEW\",getRecordNew());\n json.put(\"SIGMA\",getSigma());\n json.put(\"LANGUAGE\",getLanguage());\n json.put(\"ACTIVE\",getActive());\n json.put(\"METADATA\",getMetadata());\n json.put(\"CREATED_AT\",getCreatedAt()==null?null:getCreatedAt().toString());\n json.put(\"CREATED_BY\",getCreatedBy());\n json.put(\"UPDATED_AT\",getUpdatedAt()==null?null:getUpdatedAt().toString());\n json.put(\"UPDATED_BY\",getUpdatedBy());\n return json;\n }\n\n}",
"public static AuditType exampleAuditTypeDb() {\r\n return exampleAuditTypeDb(\"testCategory\", \"testAction\");\r\n }",
"public QueryType getType();",
"String getSQLTypeName() throws SQLException;",
"@Schema(description = \"When sub-classing, this defines the sub-class entity name\")\n\n\tpublic String getAtType() {\n\t\treturn type;\n\t}",
"public void updateData(String typeActivity) {\n try {\n Float.parseFloat(this.inputNominal.getText());\n } catch (Exception err) {\n this.alert.showMessageDialog(null, \"Silahkan input nominal dengan benar\");\n }\n \n try {\n this.inputDate.getDate().getTime();\n } catch (Exception err) {\n this.alert.showMessageDialog(null, \"Silahkan input tanggal dengan benar\");\n }\n \n Time time = new Time();\n time.setDate(this.inputDate.getDate());\n \n String description = this.inputDescription.getText();\n float nominal = Float.parseFloat(this.inputNominal.getText());\n String dateAt = time.parseDatetime();\n \n ActivityService activityService = new ActivityService();\n \n activityService\n .setId(this.id)\n .setDescription(description)\n .setNominal(nominal)\n .setDateAt(dateAt)\n .setUser(this.dashboard.user);\n \n try {\n if (typeActivity.equals(\"+\")) {\n activityService.updateIncome();\n } else {\n activityService.updateExpense();\n }\n this.dashboard.refreshUI();\n this.dashboard.resetForm();\n } catch (Exception err) {\n this.alert.showMessageDialog(null, err.getMessage());\n }\n }",
"public void representDataOnActors(String type)\r\n\t{\n\t}",
"public String getType() { return type; }",
"public long getCount(MigrationType type);",
"fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType();",
"QueryType createQueryType();",
"public String getType(){\n return this.type;\n }",
"public void setResult(int type, String typeName, Class javaType) {\r\n ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(\"\");\r\n field.setSqlType(type);\r\n field.setSqlTypeName(typeName);\r\n field.setType(javaType);\r\n getParameters().set(0, field);\r\n }",
"public int getType() {\n return type;\n }",
"public ScGridColumn<AcActionAutoCorrectedLog> newScannedTypeColumn()\n {\n return newScannedTypeColumn(\"Scanned Type\");\n }",
"@Override\n public int getCustomChatRowTypeCount() {\n return 10;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public int getType(){\r\n\t\treturn type;\r\n\t}",
"SellType selectByPrimaryKey(Integer sell_type_id);",
"@Override\r\n\tpublic String getType() {\n\t\treturn type;\r\n\t}",
"@Override\n public int getResultSetType() throws SQLException {\n throw new SQLException(\"tinySQL does not support getResultSetType.\");\n }",
"public interface UserShareActivityMapper {\n\n\n @Select(\"select count(1) from lh_share_activity_info WHERE random=#{random} AND share_user_tid=#{user_tid} AND extend_type=#{extend_type}\")\n public Integer checkSharelink(CreateShareLinkEvent event);\n\n @Insert(\"insert into lh_share_activity_info(share_user_tid,\" +\n \"random,extend_type,end_time,create_time) values(#{share_user_tid},#{random},#{extend_type},#{end_time},now())\")\n public void insertShareLink(UserShareInfo userShareInfo);\n}",
"void setType(String type) {\n this.type = type;\n }",
"void setForPersistentMapping_Type(Type type) {\n this.type = type;\n }",
"public abstract Map<String, Integer> getColumnTypes(String tableName);",
"public String getType(){\r\n return type;\r\n }",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"public ResultSet getAppointmentsByType() throws SQLException {\r\n String statement = \"SELECT DISTINCT Type as Type, COUNT(Type) as AMOUNT FROM appointments GROUP BY Type\";\r\n return conn.prepareStatement(statement).executeQuery();\r\n }",
"public int getType(){\n return type;\n }",
"@Override\n\tpublic int getType() {\n\t\treturn _expandoColumn.getType();\n\t}",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }"
] | [
"0.60907745",
"0.56518316",
"0.5617674",
"0.55851614",
"0.5515899",
"0.5429194",
"0.5411337",
"0.53703195",
"0.53390545",
"0.52778",
"0.52769154",
"0.522299",
"0.51914597",
"0.51647353",
"0.51364106",
"0.5066082",
"0.50618553",
"0.50616753",
"0.5050939",
"0.50326174",
"0.5030021",
"0.4985679",
"0.4958322",
"0.4957959",
"0.49510604",
"0.4946326",
"0.4905505",
"0.48941228",
"0.48809934",
"0.48678085",
"0.4857349",
"0.48384783",
"0.48219064",
"0.48139277",
"0.48073718",
"0.48015222",
"0.47932574",
"0.47854418",
"0.47803855",
"0.4779893",
"0.47757474",
"0.4775457",
"0.47738466",
"0.47694823",
"0.476707",
"0.47475797",
"0.47443306",
"0.47397175",
"0.4737887",
"0.47329366",
"0.47224134",
"0.4722358",
"0.47214916",
"0.47144052",
"0.4705132",
"0.47038382",
"0.47038382",
"0.47029248",
"0.46974093",
"0.46939912",
"0.46893182",
"0.46802947",
"0.46766913",
"0.46689025",
"0.46685708",
"0.46670607",
"0.46627983",
"0.46570033",
"0.46537668",
"0.46509942",
"0.46418864",
"0.46355778",
"0.46340042",
"0.4627499",
"0.46269494",
"0.46242628",
"0.46168092",
"0.46166041",
"0.46110654",
"0.46090087",
"0.4602575",
"0.45977417",
"0.4597728",
"0.4592478",
"0.45920688",
"0.45910782",
"0.4585131",
"0.45845562",
"0.45845562",
"0.45844653",
"0.45832726",
"0.45778546",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098"
] | 0.52413064 | 11 |
This method was generated by MyBatis Generator. This method corresponds to the database table qt_activitytype | int updateByExampleSelective(@Param("record") QtActivitytype record, @Param("example") QtActivitytypeExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected List<Daily_activity_type> getDailyActivityType() {\n return super.emMain.createQuery(\"FROM Daily_activity_type WHERE dat_code <> 0 ORDER BY dat_order ASC\",\n Daily_activity_type.class).getResultList();\n }",
"public Vector listActivityTypeActivity() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT A.activity_type_id,B.specification_id,B.specification_name, A.transaction_type_id FROM \"+ \n DBHelper.USEA_ACTIVITY_CATEGORY+\" A, \"+DBHelper.USEA_SPECIFICATION_MASTER+\" B \"+\n \" WHERE A.activity_type_id = B.activity_type_id AND A.activity_type_name = ? and B.active_status = ? order by B.specification_name\";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, \"Activity\");\n prepStmt.setBoolean(2, true);\n \n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) {\n \n this.specificationId = rs.getString(2);\n this.specificationName = rs.getString(3);\n String txnTypeId = rs.getString(4);\n \n String [] activityList = {specificationId,specificationName,txnTypeId};\n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"public void setActivityType(ActivityType activityType) {\n this.activityType = activityType;\n }",
"public String toXML() {\n StringBuffer ret = new StringBuffer();\n ret.append(\"<table name=\\\"MTBTypes\\\">\\n\");\n ret.append(\" <column name=\\\"_MTBTypes_key\\\"\\n\");\n ret.append(\" value=\\\"\").append((MTBTypesKey_is_initialized ? ((MTBTypesKey == null ? null : MTBTypesKey.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"type\\\"\\n\");\n ret.append(\" value=\\\"\").append((type_is_initialized ? ((type == null ? null : type)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"description\\\"\\n\");\n ret.append(\" value=\\\"\").append((description_is_initialized ? ((description == null ? null : description)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"tableName\\\"\\n\");\n ret.append(\" value=\\\"\").append((tableName_is_initialized ? ((tableName == null ? null : tableName)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"columnName\\\"\\n\");\n ret.append(\" value=\\\"\").append((columnName_is_initialized ? ((columnName == null ? null : columnName)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"create_user\\\"\\n\");\n ret.append(\" value=\\\"\").append((createUser_is_initialized ? ((createUser == null ? null : createUser)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"create_date\\\"\\n\");\n ret.append(\" value=\\\"\").append((createDate_is_initialized ? ((createDate == null ? null : createDate.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"update_user\\\"\\n\");\n ret.append(\" value=\\\"\").append((updateUser_is_initialized ? ((updateUser == null ? null : updateUser)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"update_date\\\"\\n\");\n ret.append(\" value=\\\"\").append((updateDate_is_initialized ? ((updateDate == null ? null : updateDate.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\"</table>\");\n return ret.toString();\n }",
"public int getSqlType() { return _type; }",
"@Query(\"SELECT * FROM wellbeing_questions WHERE activity_type == :activityType\")\n List<WellbeingQuestion> getQuestionsByActivityType(String activityType);",
"public abstract String getTipoByAct(Actividad activity) throws PersistenceException, ClassNotFoundException;",
"public abstract String toJavaType(int sqlType);",
"Collection<ActivityType> getActivityTypes() throws DataAccessException;",
"void storeActivityType(ActivityType activityType) throws DataAccessException;",
"List<QtActivitytype> selectByExample(QtActivitytypeExample example);",
"QtActivitytype selectByPrimaryKey(Integer id);",
"RelDataType getColumnType(String sql);",
"public void setActivitytypeid(Integer activitytypeid) {\n this.activitytypeid = activitytypeid;\n }",
"public ActivityType getActivityType() {\n return activityType;\n }",
"public void setActivityType(ActivityType activity, UsertypeType type) {\n\t\tactivity.setUsertype(type);\n\t}",
"private void setActivity(int relType){\n\t\tActivity act = new Activity();\n\t\tActivityDefinition actDef = new ActivityDefinition();\n\t\tactDef.setType(INTERACT_TYPE);\n\t\tactDef.setInteractionType(INTERACT_TYPE);\n\t\t//InteractionComponent iac = new InteractionComponent();\n\t\tact.setDefinition(actDef);\n\t\t\n\t\tHashMap<String, String> names = new HashMap<String, String>();\n\t\tnames.put(\"en\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"en\")));\n\t\tnames.put(\"de\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"de\")));\n\n\t\tactDef.setName(names);\n\t\tthis.setObject(act);\n\t\n\t}",
"public Vector listActivityTypeRegister() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT B.specification_id,B.specification_name, A.transaction_type_id FROM \"+ \n DBHelper.USEA_ACTIVITY_CATEGORY+\" A, \"+DBHelper.USEA_SPECIFICATION_MASTER+\" B \"+\n \" WHERE A.activity_type_id = B.activity_type_id AND A.activity_type_name = ? and B.active_status = ? \";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, \"Registration\");\n prepStmt.setBoolean(2 , true);\n \n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) { \n this.specificationId = rs.getString(1);\n this.specificationName = rs.getString(2);\n String txnTypeId = rs.getString(3);\n \n String [] activityList = {specificationId,specificationName,txnTypeId};\n Debug.print(\" Specification Id : \"+specificationId);\n Debug.print(\" specificationName : \"+specificationName);\n Debug.print(\" txnTypeId : \"+txnTypeId);\n \n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"private void setActivity(int relType){\n\t\tActivity act = new Activity();\n\t\tActivityDefinition actDef = new ActivityDefinition();\n\t\tactDef.setType(INTERACT_TYPE);\n\t\tactDef.setInteractionType(INTERACT_TYPE);\n\t\t//InteractionComponent iac = new InteractionComponent();\n\t\tact.setDefinition(actDef);\n\t\t\n\t\tHashMap<String, String> names = new HashMap<String, String>();\n\t\t//names.put(\"en\",\"Identifying problems\");\n\t\tnames.put(\"en\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"en\")));\n\t\tnames.put(\"de\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"de\")));\n\n\t\tactDef.setName(names);\n\t\tthis.setObject(act);\n\t\n\t}",
"public String getEntityTypeName() { return \"jp.sourceforge.ea2ddl.dao.exentity.TTrxtypes\"; }",
"public Column.Type getType();",
"public String getTableDbName() { return \"t_trxtypes\"; }",
"public int getJdbcType();",
"com.rpg.framework.database.Protocol.ItemType getType();",
"@Override\r\n\tpublic String getType() {\n\t\treturn \"column\";\r\n\t}",
"ActivityType loadActivityType(int id) throws DataAccessException;",
"private void setActivityType(int value) {\n this.bitField0_ |= 4;\n this.activityType_ = value;\n }",
"@Override\n public RelDataType getRowType(final RelDataTypeFactory typeFactory) {\n final Schema kuduSchema = this.getKuduTable().getSchema();\n final RelDataTypeFactory.Builder builder = new RelDataTypeFactory.Builder(typeFactory);\n\n for (int i = 0; i < kuduSchema.getColumnCount(); i++) {\n final ColumnSchema currentColumn = kuduSchema.getColumnByIndex(i);\n switch (currentColumn.getType()) {\n case INT8:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.TINYINT).nullable(currentColumn.isNullable());\n break;\n case INT16:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.SMALLINT).nullable(currentColumn.isNullable());\n break;\n case INT32:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.INTEGER).nullable(currentColumn.isNullable());\n break;\n case INT64:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.BIGINT).nullable(currentColumn.isNullable());\n break;\n case BINARY:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.VARBINARY).nullable(currentColumn.isNullable());\n break;\n case STRING:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.VARCHAR).nullable(currentColumn.isNullable());\n break;\n case BOOL:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.BOOLEAN).nullable(currentColumn.isNullable());\n break;\n case FLOAT:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.FLOAT).nullable(currentColumn.isNullable());\n break;\n case DOUBLE:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.DOUBLE).nullable(currentColumn.isNullable());\n break;\n case UNIXTIME_MICROS:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.TIMESTAMP).nullable(currentColumn.isNullable());\n break;\n case DECIMAL:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.DECIMAL).nullable(currentColumn.isNullable());\n break;\n }\n }\n\n return builder.build();\n }",
"public TypeData getTypeData(MigrationType type);",
"private String getNameFromType(int activityType) {\n switch (activityType) {\n case DetectedActivity.IN_VEHICLE:\n return \"in_vehicle\";\n case DetectedActivity.ON_BICYCLE:\n return \"on_bicycle\";\n case DetectedActivity.ON_FOOT:\n return \"on_foot\";\n case DetectedActivity.STILL:\n return \"still\";\n case DetectedActivity.UNKNOWN:\n return \"unknown\";\n case DetectedActivity.TILTING:\n return \"tilting\";\n }\n return \"unknown\";\n }",
"@Override\n public String convertToDatabaseColumn(TransactionType transactionType) {\n if (transactionType == null) return null;\n\n return transactionType.getTransactionType();\n }",
"@Override\n public Object toJdbcType(Object value) {\n return value;\n }",
"public List<LogRoomTypeHistory>getAllRoomTypeHistory(TblRoomType roomType);",
"ResultColumn getTypeIdColumn(TableReference tableReference);",
"public ScGridColumn<AcActionAutoCorrectedLog> newActualTypeColumn()\n {\n return newActualTypeColumn(\"Actual Type\");\n }",
"public static \tTransactionEventType getTransactionEventTypeSample(){\n\t\t\n\t\tTransactionEventType transactionEventType=new TransactionEventType();\n\t\t\n\t\tGregorianCalendar gRecordTime = new GregorianCalendar();\n\t\tXMLGregorianCalendar recordTime;\n\t\ttry {\n\t\t\trecordTime = DatatypeFactory.newInstance().newXMLGregorianCalendar(gRecordTime);\n\t\t\ttransactionEventType.setEventTime(recordTime);\n\t\t\ttransactionEventType.setRecordTime(recordTime);\n\t\t} catch (DatatypeConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttransactionEventType.setEventTimeZoneOffset(\"eventTimeZoneOffset_T\");\n\t\ttransactionEventType.setParentID(\"parentID_T\");\n\t\t\n\t\tEPCListType transactionEventEPCs=new EPCListType();\n\t\t\n\t\t\n\t\torg.oliot.model.epcis.EPC epc1=new org.oliot.model.epcis.EPC (\"epc1_T\");\n\t\t\n\t\torg.oliot.model.epcis.EPC epc2=new org.oliot.model.epcis.EPC (\"epc2_T\");\n\t\t\t\t\n\t\ttransactionEventEPCs.getEpc().add(epc1);\n\t\ttransactionEventEPCs.getEpc().add(epc2);\n\t\ttransactionEventType.setEpcList(transactionEventEPCs);\n\t\t\n\t\ttransactionEventType.setAction(ActionType.fromValue(\"ADD\"));\t\n\t\ttransactionEventType.setBizStep(\"bizStep_T\");\n\t\ttransactionEventType.setDisposition(\"disposition_T\");\n\t\t\n\t\t\n\t\tReadPointType readPoint=new ReadPointType();\n\t\treadPoint.setId(\"ReadPoint_object\");\n\t\tReadPointExtensionType readPointExtension=new ReadPointExtensionType();\n\t\treadPoint.setExtension(readPointExtension);\n\t\t\n\t\ttransactionEventType.setReadPoint(readPoint);\n\t\t\n\t\tBusinessLocationType businessLocation =new BusinessLocationType();\n\t\tbusinessLocation.setId(\"BusinessLocation_object\");\n\t\tBusinessLocationExtensionType businessLocationExtension= new BusinessLocationExtensionType();\n\t\tbusinessLocation.setExtension(businessLocationExtension);\n\t\t\n\t\ttransactionEventType.setBizLocation(businessLocation);\n\t\t\n\t\tBusinessTransactionListType businessTransactionList=new BusinessTransactionListType();\t\n\t\tBusinessTransactionType businessTransaction1=new BusinessTransactionType();\n\t\tbusinessTransaction1.setType(\"type1_o\");\n\t\tbusinessTransaction1.setValue(\"value1_o\");\n\t\tBusinessTransactionType businessTransaction2=new BusinessTransactionType();\n\t\tbusinessTransaction1.setType(\"type2_o\");\n\t\tbusinessTransaction1.setValue(\"value2_o\");\n\t\tbusinessTransactionList.getBizTransaction().add(businessTransaction1);\n\t\tbusinessTransactionList.getBizTransaction().add(businessTransaction2);\n\t\ttransactionEventType.setBizTransactionList(businessTransactionList);\n\t\t\n\t\t\n\t\tTransactionEventExtensionType transactionEventExtension =new TransactionEventExtensionType();\n\t\t\n\t\tQuantityListType quantityList =new QuantityListType();\n\t\tQuantityElementType quantityElement1=new QuantityElementType();\n\t\tquantityElement1.setEpcClass(\"epcClass1_O\");\n\t\tquantityElement1.setQuantity(111);\n\t\tquantityElement1.setUom(\"uom1_O\");\n\t\tQuantityElementType quantityElement2=new QuantityElementType();\n\t\tquantityElement2.setEpcClass(\"epcClass2_O\");\n\t\tquantityElement2.setQuantity(111);\n\t\tquantityElement2.setUom(\"uom2_O\");\n\t\tquantityList.getQuantityElement().add(quantityElement1);\n\t\tquantityList.getQuantityElement().add(quantityElement2);\n\t\t\n\t\ttransactionEventExtension.setQuantityList(quantityList);\n\t\t\n\t\tDestinationListType destinationList =new DestinationListType();\n\t\tSourceDestType sourceDest3=new SourceDestType( );\n\t\tSourceDestType sourceDest4=new SourceDestType( );\n\t\tsourceDest3.setValue(\"value3\");\n\t\tsourceDest3.setType(\"type3\");\n\t\tsourceDest4.setValue(\"value4\");\n\t\tsourceDest4.setType(\"type4\");\n\t\t\n\t\tdestinationList.getDestination().add(sourceDest3);\n\t\tdestinationList.getDestination().add(sourceDest4);\n\t\ttransactionEventExtension.setDestinationList(destinationList);\n\t\t\n\t\tSourceListType sourceList =new SourceListType();\n\t\tSourceDestType sourceDest1=new SourceDestType( );\n\t\tSourceDestType sourceDest2=new SourceDestType( );\n\t\tsourceDest1.setValue(\"value1\");\n\t\tsourceDest1.setType(\"type1\");\n\t\tsourceDest1.setValue(\"value2\");\n\t\tsourceDest1.setType(\"type2\");\n\t\t\n\t\tsourceList.getSource().add(sourceDest1);\n\t\tsourceList.getSource().add(sourceDest2);\n\t\t\n\t\t\n\t\ttransactionEventExtension.setSourceList(sourceList);\n\t\t\n\t\t\n\t\t\n\n\t\tTransactionEventExtension2Type transactionEventExtension2=\n\t\t\t\tnew TransactionEventExtension2Type();\n\t\t\n\t\ttransactionEventExtension.setExtension(transactionEventExtension2);\n\t\t\n\t\t\n\t\ttransactionEventType.setExtension(transactionEventExtension);\n\t\t\n\t\treturn transactionEventType;\n\t\t\n\t}",
"@Override\n\tpublic void setType(int type) {\n\t\t_expandoColumn.setType(type);\n\t}",
"private String getNameFromType(int activityType) {\n switch(activityType) {\n case DetectedActivity.IN_VEHICLE:\n return \"in_vehicle\";\n case DetectedActivity.ON_BICYCLE:\n return \"on_bicycle\";\n case DetectedActivity.ON_FOOT:\n return \"on_foot\";\n case DetectedActivity.STILL:\n return \"still\";\n case DetectedActivity.UNKNOWN:\n return \"unknown\";\n case DetectedActivity.TILTING:\n return \"tilting\";\n }\n return \"unrecognized\";\n }",
"public Integer getActivitytypeid() {\n return activitytypeid;\n }",
"@Nullable\n @Generated\n @Selector(\"handoffUserActivityType\")\n public native String handoffUserActivityType();",
"public Vector listActivityCategory() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT activity_type_id,activity_type_name FROM \"+ DBHelper.USEA_ACTIVITY_CATEGORY;\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) {\n this.activityTypeId = rs.getString(1);\n this.activityTypeName = rs.getString(2);\n String [] activityList = {activityTypeId,activityTypeName};\n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"@Override\n public String getType(){\n return Type;\n }",
"UserType getType();",
"HotelType selectByPrimaryKey(Integer typeiId);",
"public String getType() {return type;}",
"TableType getTableType()\n {\n return tableType;\n }",
"public static AuditType exampleAuditType() {\r\n AuditType auditType = new AuditType();\r\n auditType.setActionName(\"actionName\");\r\n auditType.setAuditCategory(\"auditCategory\");\r\n auditType.setContextId(\"contextId\");\r\n auditType.setCreatedOnDb(3L);\r\n auditType.setHibernateVersionNumber(4L);\r\n auditType.setId(\"id\");\r\n auditType.setLabelInt01(\"labelInt01\");\r\n auditType.setLabelInt02(\"labelInt02\");\r\n auditType.setLabelInt03(\"labelInt03\");\r\n auditType.setLabelInt04(\"labelInt04\");\r\n auditType.setLabelInt05(\"labelInt05\");\r\n auditType.setLabelString01(\"labelString01\");\r\n auditType.setLabelString02(\"labelString02\");\r\n auditType.setLabelString03(\"labelString03\");\r\n auditType.setLabelString04(\"labelString04\");\r\n auditType.setLabelString05(\"labelString05\");\r\n auditType.setLabelString06(\"labelString06\");\r\n auditType.setLabelString07(\"labelString07\");\r\n auditType.setLabelString08(\"labelString08\");\r\n auditType.setLastUpdatedDb(5L);\r\n return auditType;\r\n }",
"public abstract QCEntryType getType();",
"RelDataType getResultType(String sql);",
"@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);",
"public abstract String toHiveType(int sqlType);",
"@Override\n public String getJavaByJdbcType(DbAttribute attribute, int type) {\n String jdbcType = TypesMapping.getSqlNameByType(type);\n DbType dbType;\n if (attribute != null) {\n dbType = new DbType(\n jdbcType,\n attribute.getMaxLength(),\n attribute.getAttributePrecision(),\n attribute.getScale(),\n attribute.isMandatory());\n } else {\n dbType = new DbType(jdbcType);\n }\n\n String typeName = getJavaByJdbcType(dbType);\n\n if (usePrimitives != null && usePrimitives) {\n String primitive = classToPrimitive.get(typeName);\n if (primitive != null) {\n return primitive;\n }\n }\n\n return typeName;\n }",
"RelDataType getParameterRowType();",
"private static String mapStatementSetter(final FieldType.Type type) {\n switch (type) {\n case DATE:\n return \"setDate\";\n case INTEGER:\n return \"setInt\";\n case REAL:\n return \"setDouble\";\n case STRING:\n return \"setString\";\n default:\n return null;\n }\n }",
"@Override\n\tpublic int getType() {\n\t\treturn 1;\n\t}",
"CmsActivity selectByPrimaryKey(String activityId);",
"public void setTransactionType(int transactionChoice);",
"public int getType() { return type; }",
"public int getType() { return type; }",
"@Override\r\n\t\tpublic Map<String, Class<?>> getTypeMap() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public ConcatColumn(final Type type) {\n this.type = type;\n numTuples = 0;\n columnIds = Maps.newTreeMap();\n readOnly = false;\n }",
"@Override\n public String getType() {\n return \"\";\n }",
"@SuppressWarnings({ \"all\", \"unchecked\", \"rawtypes\" })\npublic interface IXActivity extends VertxPojo, Serializable {\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键\n */\n public IXActivity setKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键\n */\n public String getKey();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TYPE</code>. 「type」- 操作类型\n */\n public IXActivity setType(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TYPE</code>. 「type」- 操作类型\n */\n public String getType();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.SERIAL</code>. 「serial」- 变更记录号\n */\n public IXActivity setSerial(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.SERIAL</code>. 「serial」- 变更记录号\n */\n public String getSerial();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.DESCRIPTION</code>. 「description」-\n * 操作描述信息\n */\n public IXActivity setDescription(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.DESCRIPTION</code>. 「description」-\n * 操作描述信息\n */\n public String getDescription();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_ID</code>. 「modelId」-\n * 组所关联的模型identifier,用于描述\n */\n public IXActivity setModelId(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_ID</code>. 「modelId」-\n * 组所关联的模型identifier,用于描述\n */\n public String getModelId();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_KEY</code>. 「modelKey」-\n * 组所关联的模型记录ID,用于描述哪一个Model中的记录\n */\n public IXActivity setModelKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_KEY</code>. 「modelKey」-\n * 组所关联的模型记录ID,用于描述哪一个Model中的记录\n */\n public String getModelKey();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_CATEGORY</code>.\n * 「modelCategory」- 关联的category记录,只包含叶节点\n */\n public IXActivity setModelCategory(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_CATEGORY</code>.\n * 「modelCategory」- 关联的category记录,只包含叶节点\n */\n public String getModelCategory();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TASK_NAME</code>. 「taskName」- 任务名称\n */\n public IXActivity setTaskName(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TASK_NAME</code>. 「taskName」- 任务名称\n */\n public String getTaskName();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TASK_SERIAL</code>. 「taskSerial」-\n * 任务单号\n */\n public IXActivity setTaskSerial(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TASK_SERIAL</code>. 「taskSerial」-\n * 任务单号\n */\n public String getTaskSerial();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_OLD</code>. 「recordOld」-\n * 变更之前的数据(用于回滚)\n */\n public IXActivity setRecordOld(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_OLD</code>. 「recordOld」-\n * 变更之前的数据(用于回滚)\n */\n public String getRecordOld();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_NEW</code>. 「recordNew」-\n * 变更之后的数据(用于更新)\n */\n public IXActivity setRecordNew(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_NEW</code>. 「recordNew」-\n * 变更之后的数据(用于更新)\n */\n public String getRecordNew();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.SIGMA</code>. 「sigma」- 用户组绑定的统一标识\n */\n public IXActivity setSigma(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.SIGMA</code>. 「sigma」- 用户组绑定的统一标识\n */\n public String getSigma();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.LANGUAGE</code>. 「language」- 使用的语言\n */\n public IXActivity setLanguage(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.LANGUAGE</code>. 「language」- 使用的语言\n */\n public String getLanguage();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.ACTIVE</code>. 「active」- 是否启用\n */\n public IXActivity setActive(Boolean value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.ACTIVE</code>. 「active」- 是否启用\n */\n public Boolean getActive();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.METADATA</code>. 「metadata」-\n * 附加配置数据\n */\n public IXActivity setMetadata(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.METADATA</code>. 「metadata」-\n * 附加配置数据\n */\n public String getMetadata();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_AT</code>. 「createdAt」-\n * 创建时间\n */\n public IXActivity setCreatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_AT</code>. 「createdAt」-\n * 创建时间\n */\n public LocalDateTime getCreatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_BY</code>. 「createdBy」-\n * 创建人\n */\n public IXActivity setCreatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_BY</code>. 「createdBy」-\n * 创建人\n */\n public String getCreatedBy();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_AT</code>. 「updatedAt」-\n * 更新时间\n */\n public IXActivity setUpdatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_AT</code>. 「updatedAt」-\n * 更新时间\n */\n public LocalDateTime getUpdatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_BY</code>. 「updatedBy」-\n * 更新人\n */\n public IXActivity setUpdatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_BY</code>. 「updatedBy」-\n * 更新人\n */\n public String getUpdatedBy();\n\n // -------------------------------------------------------------------------\n // FROM and INTO\n // -------------------------------------------------------------------------\n\n /**\n * Load data from another generated Record/POJO implementing the common\n * interface IXActivity\n */\n public void from(IXActivity from);\n\n /**\n * Copy data into another generated Record/POJO implementing the common\n * interface IXActivity\n */\n public <E extends IXActivity> E into(E into);\n\n @Override\n public default IXActivity fromJson(io.vertx.core.json.JsonObject json) {\n setOrThrow(this::setKey,json::getString,\"KEY\",\"java.lang.String\");\n setOrThrow(this::setType,json::getString,\"TYPE\",\"java.lang.String\");\n setOrThrow(this::setSerial,json::getString,\"SERIAL\",\"java.lang.String\");\n setOrThrow(this::setDescription,json::getString,\"DESCRIPTION\",\"java.lang.String\");\n setOrThrow(this::setModelId,json::getString,\"MODEL_ID\",\"java.lang.String\");\n setOrThrow(this::setModelKey,json::getString,\"MODEL_KEY\",\"java.lang.String\");\n setOrThrow(this::setModelCategory,json::getString,\"MODEL_CATEGORY\",\"java.lang.String\");\n setOrThrow(this::setTaskName,json::getString,\"TASK_NAME\",\"java.lang.String\");\n setOrThrow(this::setTaskSerial,json::getString,\"TASK_SERIAL\",\"java.lang.String\");\n setOrThrow(this::setRecordOld,json::getString,\"RECORD_OLD\",\"java.lang.String\");\n setOrThrow(this::setRecordNew,json::getString,\"RECORD_NEW\",\"java.lang.String\");\n setOrThrow(this::setSigma,json::getString,\"SIGMA\",\"java.lang.String\");\n setOrThrow(this::setLanguage,json::getString,\"LANGUAGE\",\"java.lang.String\");\n setOrThrow(this::setActive,json::getBoolean,\"ACTIVE\",\"java.lang.Boolean\");\n setOrThrow(this::setMetadata,json::getString,\"METADATA\",\"java.lang.String\");\n setOrThrow(this::setCreatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},\"CREATED_AT\",\"java.time.LocalDateTime\");\n setOrThrow(this::setCreatedBy,json::getString,\"CREATED_BY\",\"java.lang.String\");\n setOrThrow(this::setUpdatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},\"UPDATED_AT\",\"java.time.LocalDateTime\");\n setOrThrow(this::setUpdatedBy,json::getString,\"UPDATED_BY\",\"java.lang.String\");\n return this;\n }\n\n\n @Override\n public default io.vertx.core.json.JsonObject toJson() {\n io.vertx.core.json.JsonObject json = new io.vertx.core.json.JsonObject();\n json.put(\"KEY\",getKey());\n json.put(\"TYPE\",getType());\n json.put(\"SERIAL\",getSerial());\n json.put(\"DESCRIPTION\",getDescription());\n json.put(\"MODEL_ID\",getModelId());\n json.put(\"MODEL_KEY\",getModelKey());\n json.put(\"MODEL_CATEGORY\",getModelCategory());\n json.put(\"TASK_NAME\",getTaskName());\n json.put(\"TASK_SERIAL\",getTaskSerial());\n json.put(\"RECORD_OLD\",getRecordOld());\n json.put(\"RECORD_NEW\",getRecordNew());\n json.put(\"SIGMA\",getSigma());\n json.put(\"LANGUAGE\",getLanguage());\n json.put(\"ACTIVE\",getActive());\n json.put(\"METADATA\",getMetadata());\n json.put(\"CREATED_AT\",getCreatedAt()==null?null:getCreatedAt().toString());\n json.put(\"CREATED_BY\",getCreatedBy());\n json.put(\"UPDATED_AT\",getUpdatedAt()==null?null:getUpdatedAt().toString());\n json.put(\"UPDATED_BY\",getUpdatedBy());\n return json;\n }\n\n}",
"public static AuditType exampleAuditTypeDb() {\r\n return exampleAuditTypeDb(\"testCategory\", \"testAction\");\r\n }",
"String getSQLTypeName() throws SQLException;",
"public QueryType getType();",
"@Schema(description = \"When sub-classing, this defines the sub-class entity name\")\n\n\tpublic String getAtType() {\n\t\treturn type;\n\t}",
"public void updateData(String typeActivity) {\n try {\n Float.parseFloat(this.inputNominal.getText());\n } catch (Exception err) {\n this.alert.showMessageDialog(null, \"Silahkan input nominal dengan benar\");\n }\n \n try {\n this.inputDate.getDate().getTime();\n } catch (Exception err) {\n this.alert.showMessageDialog(null, \"Silahkan input tanggal dengan benar\");\n }\n \n Time time = new Time();\n time.setDate(this.inputDate.getDate());\n \n String description = this.inputDescription.getText();\n float nominal = Float.parseFloat(this.inputNominal.getText());\n String dateAt = time.parseDatetime();\n \n ActivityService activityService = new ActivityService();\n \n activityService\n .setId(this.id)\n .setDescription(description)\n .setNominal(nominal)\n .setDateAt(dateAt)\n .setUser(this.dashboard.user);\n \n try {\n if (typeActivity.equals(\"+\")) {\n activityService.updateIncome();\n } else {\n activityService.updateExpense();\n }\n this.dashboard.refreshUI();\n this.dashboard.resetForm();\n } catch (Exception err) {\n this.alert.showMessageDialog(null, err.getMessage());\n }\n }",
"public void representDataOnActors(String type)\r\n\t{\n\t}",
"public String getType() { return type; }",
"public long getCount(MigrationType type);",
"fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType();",
"QueryType createQueryType();",
"public String getType(){\n return this.type;\n }",
"public void setResult(int type, String typeName, Class javaType) {\r\n ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(\"\");\r\n field.setSqlType(type);\r\n field.setSqlTypeName(typeName);\r\n field.setType(javaType);\r\n getParameters().set(0, field);\r\n }",
"public int getType() {\n return type;\n }",
"public ScGridColumn<AcActionAutoCorrectedLog> newScannedTypeColumn()\n {\n return newScannedTypeColumn(\"Scanned Type\");\n }",
"@Override\n public int getCustomChatRowTypeCount() {\n return 10;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public int getType(){\r\n\t\treturn type;\r\n\t}",
"SellType selectByPrimaryKey(Integer sell_type_id);",
"@Override\r\n\tpublic String getType() {\n\t\treturn type;\r\n\t}",
"public interface UserShareActivityMapper {\n\n\n @Select(\"select count(1) from lh_share_activity_info WHERE random=#{random} AND share_user_tid=#{user_tid} AND extend_type=#{extend_type}\")\n public Integer checkSharelink(CreateShareLinkEvent event);\n\n @Insert(\"insert into lh_share_activity_info(share_user_tid,\" +\n \"random,extend_type,end_time,create_time) values(#{share_user_tid},#{random},#{extend_type},#{end_time},now())\")\n public void insertShareLink(UserShareInfo userShareInfo);\n}",
"@Override\n public int getResultSetType() throws SQLException {\n throw new SQLException(\"tinySQL does not support getResultSetType.\");\n }",
"void setForPersistentMapping_Type(Type type) {\n this.type = type;\n }",
"void setType(String type) {\n this.type = type;\n }",
"public abstract Map<String, Integer> getColumnTypes(String tableName);",
"public ResultSet getAppointmentsByType() throws SQLException {\r\n String statement = \"SELECT DISTINCT Type as Type, COUNT(Type) as AMOUNT FROM appointments GROUP BY Type\";\r\n return conn.prepareStatement(statement).executeQuery();\r\n }",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"public String getType(){\r\n return type;\r\n }",
"public int getType(){\n return type;\n }",
"@Override\n\tpublic int getType() {\n\t\treturn _expandoColumn.getType();\n\t}",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }"
] | [
"0.60906166",
"0.56526107",
"0.5617674",
"0.55837315",
"0.55136687",
"0.5429205",
"0.5411432",
"0.53696513",
"0.5340896",
"0.52781796",
"0.527689",
"0.5241337",
"0.5221943",
"0.519121",
"0.51648223",
"0.51361287",
"0.5063901",
"0.5061823",
"0.5059611",
"0.5048682",
"0.50308233",
"0.50279695",
"0.49844074",
"0.49565032",
"0.49562213",
"0.49528235",
"0.49464148",
"0.49041772",
"0.48931548",
"0.48816088",
"0.4866481",
"0.48570353",
"0.48379508",
"0.481974",
"0.48116428",
"0.48052406",
"0.48003376",
"0.4793981",
"0.47857565",
"0.4780061",
"0.47773296",
"0.47771874",
"0.4774131",
"0.47732222",
"0.4766961",
"0.4765001",
"0.47465622",
"0.47401768",
"0.4738044",
"0.47370714",
"0.47316858",
"0.47219512",
"0.47203556",
"0.4719897",
"0.47116473",
"0.47051296",
"0.4702538",
"0.47005975",
"0.47005975",
"0.46957037",
"0.4692896",
"0.46873003",
"0.46801883",
"0.46757245",
"0.4667773",
"0.46660247",
"0.46653333",
"0.46628523",
"0.46561548",
"0.46512753",
"0.46503398",
"0.46398574",
"0.46331736",
"0.46315476",
"0.46247247",
"0.46239135",
"0.4621272",
"0.46151224",
"0.46143243",
"0.46077484",
"0.46074945",
"0.4600229",
"0.45980695",
"0.45956936",
"0.45906287",
"0.4590257",
"0.45888963",
"0.45851094",
"0.4583184",
"0.4583184",
"0.45826247",
"0.4580067",
"0.45773607",
"0.4573518",
"0.4573518",
"0.4573518",
"0.4573518",
"0.4573518",
"0.4573518",
"0.4573518",
"0.4573518"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table qt_activitytype | int updateByExample(@Param("record") QtActivitytype record, @Param("example") QtActivitytypeExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected List<Daily_activity_type> getDailyActivityType() {\n return super.emMain.createQuery(\"FROM Daily_activity_type WHERE dat_code <> 0 ORDER BY dat_order ASC\",\n Daily_activity_type.class).getResultList();\n }",
"public Vector listActivityTypeActivity() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT A.activity_type_id,B.specification_id,B.specification_name, A.transaction_type_id FROM \"+ \n DBHelper.USEA_ACTIVITY_CATEGORY+\" A, \"+DBHelper.USEA_SPECIFICATION_MASTER+\" B \"+\n \" WHERE A.activity_type_id = B.activity_type_id AND A.activity_type_name = ? and B.active_status = ? order by B.specification_name\";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, \"Activity\");\n prepStmt.setBoolean(2, true);\n \n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) {\n \n this.specificationId = rs.getString(2);\n this.specificationName = rs.getString(3);\n String txnTypeId = rs.getString(4);\n \n String [] activityList = {specificationId,specificationName,txnTypeId};\n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"public void setActivityType(ActivityType activityType) {\n this.activityType = activityType;\n }",
"public String toXML() {\n StringBuffer ret = new StringBuffer();\n ret.append(\"<table name=\\\"MTBTypes\\\">\\n\");\n ret.append(\" <column name=\\\"_MTBTypes_key\\\"\\n\");\n ret.append(\" value=\\\"\").append((MTBTypesKey_is_initialized ? ((MTBTypesKey == null ? null : MTBTypesKey.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"type\\\"\\n\");\n ret.append(\" value=\\\"\").append((type_is_initialized ? ((type == null ? null : type)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"description\\\"\\n\");\n ret.append(\" value=\\\"\").append((description_is_initialized ? ((description == null ? null : description)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"tableName\\\"\\n\");\n ret.append(\" value=\\\"\").append((tableName_is_initialized ? ((tableName == null ? null : tableName)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"columnName\\\"\\n\");\n ret.append(\" value=\\\"\").append((columnName_is_initialized ? ((columnName == null ? null : columnName)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"create_user\\\"\\n\");\n ret.append(\" value=\\\"\").append((createUser_is_initialized ? ((createUser == null ? null : createUser)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"create_date\\\"\\n\");\n ret.append(\" value=\\\"\").append((createDate_is_initialized ? ((createDate == null ? null : createDate.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"update_user\\\"\\n\");\n ret.append(\" value=\\\"\").append((updateUser_is_initialized ? ((updateUser == null ? null : updateUser)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"update_date\\\"\\n\");\n ret.append(\" value=\\\"\").append((updateDate_is_initialized ? ((updateDate == null ? null : updateDate.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\"</table>\");\n return ret.toString();\n }",
"public int getSqlType() { return _type; }",
"@Query(\"SELECT * FROM wellbeing_questions WHERE activity_type == :activityType\")\n List<WellbeingQuestion> getQuestionsByActivityType(String activityType);",
"public abstract String getTipoByAct(Actividad activity) throws PersistenceException, ClassNotFoundException;",
"public abstract String toJavaType(int sqlType);",
"Collection<ActivityType> getActivityTypes() throws DataAccessException;",
"void storeActivityType(ActivityType activityType) throws DataAccessException;",
"List<QtActivitytype> selectByExample(QtActivitytypeExample example);",
"QtActivitytype selectByPrimaryKey(Integer id);",
"RelDataType getColumnType(String sql);",
"public void setActivitytypeid(Integer activitytypeid) {\n this.activitytypeid = activitytypeid;\n }",
"public ActivityType getActivityType() {\n return activityType;\n }",
"public void setActivityType(ActivityType activity, UsertypeType type) {\n\t\tactivity.setUsertype(type);\n\t}",
"private void setActivity(int relType){\n\t\tActivity act = new Activity();\n\t\tActivityDefinition actDef = new ActivityDefinition();\n\t\tactDef.setType(INTERACT_TYPE);\n\t\tactDef.setInteractionType(INTERACT_TYPE);\n\t\t//InteractionComponent iac = new InteractionComponent();\n\t\tact.setDefinition(actDef);\n\t\t\n\t\tHashMap<String, String> names = new HashMap<String, String>();\n\t\tnames.put(\"en\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"en\")));\n\t\tnames.put(\"de\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"de\")));\n\n\t\tactDef.setName(names);\n\t\tthis.setObject(act);\n\t\n\t}",
"public Vector listActivityTypeRegister() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT B.specification_id,B.specification_name, A.transaction_type_id FROM \"+ \n DBHelper.USEA_ACTIVITY_CATEGORY+\" A, \"+DBHelper.USEA_SPECIFICATION_MASTER+\" B \"+\n \" WHERE A.activity_type_id = B.activity_type_id AND A.activity_type_name = ? and B.active_status = ? \";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, \"Registration\");\n prepStmt.setBoolean(2 , true);\n \n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) { \n this.specificationId = rs.getString(1);\n this.specificationName = rs.getString(2);\n String txnTypeId = rs.getString(3);\n \n String [] activityList = {specificationId,specificationName,txnTypeId};\n Debug.print(\" Specification Id : \"+specificationId);\n Debug.print(\" specificationName : \"+specificationName);\n Debug.print(\" txnTypeId : \"+txnTypeId);\n \n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"private void setActivity(int relType){\n\t\tActivity act = new Activity();\n\t\tActivityDefinition actDef = new ActivityDefinition();\n\t\tactDef.setType(INTERACT_TYPE);\n\t\tactDef.setInteractionType(INTERACT_TYPE);\n\t\t//InteractionComponent iac = new InteractionComponent();\n\t\tact.setDefinition(actDef);\n\t\t\n\t\tHashMap<String, String> names = new HashMap<String, String>();\n\t\t//names.put(\"en\",\"Identifying problems\");\n\t\tnames.put(\"en\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"en\")));\n\t\tnames.put(\"de\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"de\")));\n\n\t\tactDef.setName(names);\n\t\tthis.setObject(act);\n\t\n\t}",
"public String getEntityTypeName() { return \"jp.sourceforge.ea2ddl.dao.exentity.TTrxtypes\"; }",
"public Column.Type getType();",
"public String getTableDbName() { return \"t_trxtypes\"; }",
"public int getJdbcType();",
"@Override\r\n\tpublic String getType() {\n\t\treturn \"column\";\r\n\t}",
"com.rpg.framework.database.Protocol.ItemType getType();",
"ActivityType loadActivityType(int id) throws DataAccessException;",
"private void setActivityType(int value) {\n this.bitField0_ |= 4;\n this.activityType_ = value;\n }",
"@Override\n public RelDataType getRowType(final RelDataTypeFactory typeFactory) {\n final Schema kuduSchema = this.getKuduTable().getSchema();\n final RelDataTypeFactory.Builder builder = new RelDataTypeFactory.Builder(typeFactory);\n\n for (int i = 0; i < kuduSchema.getColumnCount(); i++) {\n final ColumnSchema currentColumn = kuduSchema.getColumnByIndex(i);\n switch (currentColumn.getType()) {\n case INT8:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.TINYINT).nullable(currentColumn.isNullable());\n break;\n case INT16:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.SMALLINT).nullable(currentColumn.isNullable());\n break;\n case INT32:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.INTEGER).nullable(currentColumn.isNullable());\n break;\n case INT64:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.BIGINT).nullable(currentColumn.isNullable());\n break;\n case BINARY:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.VARBINARY).nullable(currentColumn.isNullable());\n break;\n case STRING:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.VARCHAR).nullable(currentColumn.isNullable());\n break;\n case BOOL:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.BOOLEAN).nullable(currentColumn.isNullable());\n break;\n case FLOAT:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.FLOAT).nullable(currentColumn.isNullable());\n break;\n case DOUBLE:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.DOUBLE).nullable(currentColumn.isNullable());\n break;\n case UNIXTIME_MICROS:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.TIMESTAMP).nullable(currentColumn.isNullable());\n break;\n case DECIMAL:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.DECIMAL).nullable(currentColumn.isNullable());\n break;\n }\n }\n\n return builder.build();\n }",
"public TypeData getTypeData(MigrationType type);",
"private String getNameFromType(int activityType) {\n switch (activityType) {\n case DetectedActivity.IN_VEHICLE:\n return \"in_vehicle\";\n case DetectedActivity.ON_BICYCLE:\n return \"on_bicycle\";\n case DetectedActivity.ON_FOOT:\n return \"on_foot\";\n case DetectedActivity.STILL:\n return \"still\";\n case DetectedActivity.UNKNOWN:\n return \"unknown\";\n case DetectedActivity.TILTING:\n return \"tilting\";\n }\n return \"unknown\";\n }",
"@Override\n public String convertToDatabaseColumn(TransactionType transactionType) {\n if (transactionType == null) return null;\n\n return transactionType.getTransactionType();\n }",
"@Override\n public Object toJdbcType(Object value) {\n return value;\n }",
"public List<LogRoomTypeHistory>getAllRoomTypeHistory(TblRoomType roomType);",
"ResultColumn getTypeIdColumn(TableReference tableReference);",
"public ScGridColumn<AcActionAutoCorrectedLog> newActualTypeColumn()\n {\n return newActualTypeColumn(\"Actual Type\");\n }",
"public static \tTransactionEventType getTransactionEventTypeSample(){\n\t\t\n\t\tTransactionEventType transactionEventType=new TransactionEventType();\n\t\t\n\t\tGregorianCalendar gRecordTime = new GregorianCalendar();\n\t\tXMLGregorianCalendar recordTime;\n\t\ttry {\n\t\t\trecordTime = DatatypeFactory.newInstance().newXMLGregorianCalendar(gRecordTime);\n\t\t\ttransactionEventType.setEventTime(recordTime);\n\t\t\ttransactionEventType.setRecordTime(recordTime);\n\t\t} catch (DatatypeConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttransactionEventType.setEventTimeZoneOffset(\"eventTimeZoneOffset_T\");\n\t\ttransactionEventType.setParentID(\"parentID_T\");\n\t\t\n\t\tEPCListType transactionEventEPCs=new EPCListType();\n\t\t\n\t\t\n\t\torg.oliot.model.epcis.EPC epc1=new org.oliot.model.epcis.EPC (\"epc1_T\");\n\t\t\n\t\torg.oliot.model.epcis.EPC epc2=new org.oliot.model.epcis.EPC (\"epc2_T\");\n\t\t\t\t\n\t\ttransactionEventEPCs.getEpc().add(epc1);\n\t\ttransactionEventEPCs.getEpc().add(epc2);\n\t\ttransactionEventType.setEpcList(transactionEventEPCs);\n\t\t\n\t\ttransactionEventType.setAction(ActionType.fromValue(\"ADD\"));\t\n\t\ttransactionEventType.setBizStep(\"bizStep_T\");\n\t\ttransactionEventType.setDisposition(\"disposition_T\");\n\t\t\n\t\t\n\t\tReadPointType readPoint=new ReadPointType();\n\t\treadPoint.setId(\"ReadPoint_object\");\n\t\tReadPointExtensionType readPointExtension=new ReadPointExtensionType();\n\t\treadPoint.setExtension(readPointExtension);\n\t\t\n\t\ttransactionEventType.setReadPoint(readPoint);\n\t\t\n\t\tBusinessLocationType businessLocation =new BusinessLocationType();\n\t\tbusinessLocation.setId(\"BusinessLocation_object\");\n\t\tBusinessLocationExtensionType businessLocationExtension= new BusinessLocationExtensionType();\n\t\tbusinessLocation.setExtension(businessLocationExtension);\n\t\t\n\t\ttransactionEventType.setBizLocation(businessLocation);\n\t\t\n\t\tBusinessTransactionListType businessTransactionList=new BusinessTransactionListType();\t\n\t\tBusinessTransactionType businessTransaction1=new BusinessTransactionType();\n\t\tbusinessTransaction1.setType(\"type1_o\");\n\t\tbusinessTransaction1.setValue(\"value1_o\");\n\t\tBusinessTransactionType businessTransaction2=new BusinessTransactionType();\n\t\tbusinessTransaction1.setType(\"type2_o\");\n\t\tbusinessTransaction1.setValue(\"value2_o\");\n\t\tbusinessTransactionList.getBizTransaction().add(businessTransaction1);\n\t\tbusinessTransactionList.getBizTransaction().add(businessTransaction2);\n\t\ttransactionEventType.setBizTransactionList(businessTransactionList);\n\t\t\n\t\t\n\t\tTransactionEventExtensionType transactionEventExtension =new TransactionEventExtensionType();\n\t\t\n\t\tQuantityListType quantityList =new QuantityListType();\n\t\tQuantityElementType quantityElement1=new QuantityElementType();\n\t\tquantityElement1.setEpcClass(\"epcClass1_O\");\n\t\tquantityElement1.setQuantity(111);\n\t\tquantityElement1.setUom(\"uom1_O\");\n\t\tQuantityElementType quantityElement2=new QuantityElementType();\n\t\tquantityElement2.setEpcClass(\"epcClass2_O\");\n\t\tquantityElement2.setQuantity(111);\n\t\tquantityElement2.setUom(\"uom2_O\");\n\t\tquantityList.getQuantityElement().add(quantityElement1);\n\t\tquantityList.getQuantityElement().add(quantityElement2);\n\t\t\n\t\ttransactionEventExtension.setQuantityList(quantityList);\n\t\t\n\t\tDestinationListType destinationList =new DestinationListType();\n\t\tSourceDestType sourceDest3=new SourceDestType( );\n\t\tSourceDestType sourceDest4=new SourceDestType( );\n\t\tsourceDest3.setValue(\"value3\");\n\t\tsourceDest3.setType(\"type3\");\n\t\tsourceDest4.setValue(\"value4\");\n\t\tsourceDest4.setType(\"type4\");\n\t\t\n\t\tdestinationList.getDestination().add(sourceDest3);\n\t\tdestinationList.getDestination().add(sourceDest4);\n\t\ttransactionEventExtension.setDestinationList(destinationList);\n\t\t\n\t\tSourceListType sourceList =new SourceListType();\n\t\tSourceDestType sourceDest1=new SourceDestType( );\n\t\tSourceDestType sourceDest2=new SourceDestType( );\n\t\tsourceDest1.setValue(\"value1\");\n\t\tsourceDest1.setType(\"type1\");\n\t\tsourceDest1.setValue(\"value2\");\n\t\tsourceDest1.setType(\"type2\");\n\t\t\n\t\tsourceList.getSource().add(sourceDest1);\n\t\tsourceList.getSource().add(sourceDest2);\n\t\t\n\t\t\n\t\ttransactionEventExtension.setSourceList(sourceList);\n\t\t\n\t\t\n\t\t\n\n\t\tTransactionEventExtension2Type transactionEventExtension2=\n\t\t\t\tnew TransactionEventExtension2Type();\n\t\t\n\t\ttransactionEventExtension.setExtension(transactionEventExtension2);\n\t\t\n\t\t\n\t\ttransactionEventType.setExtension(transactionEventExtension);\n\t\t\n\t\treturn transactionEventType;\n\t\t\n\t}",
"@Override\n\tpublic void setType(int type) {\n\t\t_expandoColumn.setType(type);\n\t}",
"private String getNameFromType(int activityType) {\n switch(activityType) {\n case DetectedActivity.IN_VEHICLE:\n return \"in_vehicle\";\n case DetectedActivity.ON_BICYCLE:\n return \"on_bicycle\";\n case DetectedActivity.ON_FOOT:\n return \"on_foot\";\n case DetectedActivity.STILL:\n return \"still\";\n case DetectedActivity.UNKNOWN:\n return \"unknown\";\n case DetectedActivity.TILTING:\n return \"tilting\";\n }\n return \"unrecognized\";\n }",
"public Integer getActivitytypeid() {\n return activitytypeid;\n }",
"@Nullable\n @Generated\n @Selector(\"handoffUserActivityType\")\n public native String handoffUserActivityType();",
"@Override\n public String getType(){\n return Type;\n }",
"public Vector listActivityCategory() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT activity_type_id,activity_type_name FROM \"+ DBHelper.USEA_ACTIVITY_CATEGORY;\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) {\n this.activityTypeId = rs.getString(1);\n this.activityTypeName = rs.getString(2);\n String [] activityList = {activityTypeId,activityTypeName};\n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"UserType getType();",
"HotelType selectByPrimaryKey(Integer typeiId);",
"public String getType() {return type;}",
"TableType getTableType()\n {\n return tableType;\n }",
"public static AuditType exampleAuditType() {\r\n AuditType auditType = new AuditType();\r\n auditType.setActionName(\"actionName\");\r\n auditType.setAuditCategory(\"auditCategory\");\r\n auditType.setContextId(\"contextId\");\r\n auditType.setCreatedOnDb(3L);\r\n auditType.setHibernateVersionNumber(4L);\r\n auditType.setId(\"id\");\r\n auditType.setLabelInt01(\"labelInt01\");\r\n auditType.setLabelInt02(\"labelInt02\");\r\n auditType.setLabelInt03(\"labelInt03\");\r\n auditType.setLabelInt04(\"labelInt04\");\r\n auditType.setLabelInt05(\"labelInt05\");\r\n auditType.setLabelString01(\"labelString01\");\r\n auditType.setLabelString02(\"labelString02\");\r\n auditType.setLabelString03(\"labelString03\");\r\n auditType.setLabelString04(\"labelString04\");\r\n auditType.setLabelString05(\"labelString05\");\r\n auditType.setLabelString06(\"labelString06\");\r\n auditType.setLabelString07(\"labelString07\");\r\n auditType.setLabelString08(\"labelString08\");\r\n auditType.setLastUpdatedDb(5L);\r\n return auditType;\r\n }",
"public abstract QCEntryType getType();",
"RelDataType getResultType(String sql);",
"@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);",
"public abstract String toHiveType(int sqlType);",
"@Override\n public String getJavaByJdbcType(DbAttribute attribute, int type) {\n String jdbcType = TypesMapping.getSqlNameByType(type);\n DbType dbType;\n if (attribute != null) {\n dbType = new DbType(\n jdbcType,\n attribute.getMaxLength(),\n attribute.getAttributePrecision(),\n attribute.getScale(),\n attribute.isMandatory());\n } else {\n dbType = new DbType(jdbcType);\n }\n\n String typeName = getJavaByJdbcType(dbType);\n\n if (usePrimitives != null && usePrimitives) {\n String primitive = classToPrimitive.get(typeName);\n if (primitive != null) {\n return primitive;\n }\n }\n\n return typeName;\n }",
"RelDataType getParameterRowType();",
"private static String mapStatementSetter(final FieldType.Type type) {\n switch (type) {\n case DATE:\n return \"setDate\";\n case INTEGER:\n return \"setInt\";\n case REAL:\n return \"setDouble\";\n case STRING:\n return \"setString\";\n default:\n return null;\n }\n }",
"@Override\n\tpublic int getType() {\n\t\treturn 1;\n\t}",
"CmsActivity selectByPrimaryKey(String activityId);",
"public void setTransactionType(int transactionChoice);",
"public int getType() { return type; }",
"public int getType() { return type; }",
"@Override\r\n\t\tpublic Map<String, Class<?>> getTypeMap() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public ConcatColumn(final Type type) {\n this.type = type;\n numTuples = 0;\n columnIds = Maps.newTreeMap();\n readOnly = false;\n }",
"@Override\n public String getType() {\n return \"\";\n }",
"@SuppressWarnings({ \"all\", \"unchecked\", \"rawtypes\" })\npublic interface IXActivity extends VertxPojo, Serializable {\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键\n */\n public IXActivity setKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键\n */\n public String getKey();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TYPE</code>. 「type」- 操作类型\n */\n public IXActivity setType(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TYPE</code>. 「type」- 操作类型\n */\n public String getType();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.SERIAL</code>. 「serial」- 变更记录号\n */\n public IXActivity setSerial(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.SERIAL</code>. 「serial」- 变更记录号\n */\n public String getSerial();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.DESCRIPTION</code>. 「description」-\n * 操作描述信息\n */\n public IXActivity setDescription(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.DESCRIPTION</code>. 「description」-\n * 操作描述信息\n */\n public String getDescription();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_ID</code>. 「modelId」-\n * 组所关联的模型identifier,用于描述\n */\n public IXActivity setModelId(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_ID</code>. 「modelId」-\n * 组所关联的模型identifier,用于描述\n */\n public String getModelId();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_KEY</code>. 「modelKey」-\n * 组所关联的模型记录ID,用于描述哪一个Model中的记录\n */\n public IXActivity setModelKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_KEY</code>. 「modelKey」-\n * 组所关联的模型记录ID,用于描述哪一个Model中的记录\n */\n public String getModelKey();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_CATEGORY</code>.\n * 「modelCategory」- 关联的category记录,只包含叶节点\n */\n public IXActivity setModelCategory(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_CATEGORY</code>.\n * 「modelCategory」- 关联的category记录,只包含叶节点\n */\n public String getModelCategory();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TASK_NAME</code>. 「taskName」- 任务名称\n */\n public IXActivity setTaskName(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TASK_NAME</code>. 「taskName」- 任务名称\n */\n public String getTaskName();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TASK_SERIAL</code>. 「taskSerial」-\n * 任务单号\n */\n public IXActivity setTaskSerial(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TASK_SERIAL</code>. 「taskSerial」-\n * 任务单号\n */\n public String getTaskSerial();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_OLD</code>. 「recordOld」-\n * 变更之前的数据(用于回滚)\n */\n public IXActivity setRecordOld(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_OLD</code>. 「recordOld」-\n * 变更之前的数据(用于回滚)\n */\n public String getRecordOld();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_NEW</code>. 「recordNew」-\n * 变更之后的数据(用于更新)\n */\n public IXActivity setRecordNew(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_NEW</code>. 「recordNew」-\n * 变更之后的数据(用于更新)\n */\n public String getRecordNew();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.SIGMA</code>. 「sigma」- 用户组绑定的统一标识\n */\n public IXActivity setSigma(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.SIGMA</code>. 「sigma」- 用户组绑定的统一标识\n */\n public String getSigma();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.LANGUAGE</code>. 「language」- 使用的语言\n */\n public IXActivity setLanguage(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.LANGUAGE</code>. 「language」- 使用的语言\n */\n public String getLanguage();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.ACTIVE</code>. 「active」- 是否启用\n */\n public IXActivity setActive(Boolean value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.ACTIVE</code>. 「active」- 是否启用\n */\n public Boolean getActive();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.METADATA</code>. 「metadata」-\n * 附加配置数据\n */\n public IXActivity setMetadata(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.METADATA</code>. 「metadata」-\n * 附加配置数据\n */\n public String getMetadata();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_AT</code>. 「createdAt」-\n * 创建时间\n */\n public IXActivity setCreatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_AT</code>. 「createdAt」-\n * 创建时间\n */\n public LocalDateTime getCreatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_BY</code>. 「createdBy」-\n * 创建人\n */\n public IXActivity setCreatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_BY</code>. 「createdBy」-\n * 创建人\n */\n public String getCreatedBy();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_AT</code>. 「updatedAt」-\n * 更新时间\n */\n public IXActivity setUpdatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_AT</code>. 「updatedAt」-\n * 更新时间\n */\n public LocalDateTime getUpdatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_BY</code>. 「updatedBy」-\n * 更新人\n */\n public IXActivity setUpdatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_BY</code>. 「updatedBy」-\n * 更新人\n */\n public String getUpdatedBy();\n\n // -------------------------------------------------------------------------\n // FROM and INTO\n // -------------------------------------------------------------------------\n\n /**\n * Load data from another generated Record/POJO implementing the common\n * interface IXActivity\n */\n public void from(IXActivity from);\n\n /**\n * Copy data into another generated Record/POJO implementing the common\n * interface IXActivity\n */\n public <E extends IXActivity> E into(E into);\n\n @Override\n public default IXActivity fromJson(io.vertx.core.json.JsonObject json) {\n setOrThrow(this::setKey,json::getString,\"KEY\",\"java.lang.String\");\n setOrThrow(this::setType,json::getString,\"TYPE\",\"java.lang.String\");\n setOrThrow(this::setSerial,json::getString,\"SERIAL\",\"java.lang.String\");\n setOrThrow(this::setDescription,json::getString,\"DESCRIPTION\",\"java.lang.String\");\n setOrThrow(this::setModelId,json::getString,\"MODEL_ID\",\"java.lang.String\");\n setOrThrow(this::setModelKey,json::getString,\"MODEL_KEY\",\"java.lang.String\");\n setOrThrow(this::setModelCategory,json::getString,\"MODEL_CATEGORY\",\"java.lang.String\");\n setOrThrow(this::setTaskName,json::getString,\"TASK_NAME\",\"java.lang.String\");\n setOrThrow(this::setTaskSerial,json::getString,\"TASK_SERIAL\",\"java.lang.String\");\n setOrThrow(this::setRecordOld,json::getString,\"RECORD_OLD\",\"java.lang.String\");\n setOrThrow(this::setRecordNew,json::getString,\"RECORD_NEW\",\"java.lang.String\");\n setOrThrow(this::setSigma,json::getString,\"SIGMA\",\"java.lang.String\");\n setOrThrow(this::setLanguage,json::getString,\"LANGUAGE\",\"java.lang.String\");\n setOrThrow(this::setActive,json::getBoolean,\"ACTIVE\",\"java.lang.Boolean\");\n setOrThrow(this::setMetadata,json::getString,\"METADATA\",\"java.lang.String\");\n setOrThrow(this::setCreatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},\"CREATED_AT\",\"java.time.LocalDateTime\");\n setOrThrow(this::setCreatedBy,json::getString,\"CREATED_BY\",\"java.lang.String\");\n setOrThrow(this::setUpdatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},\"UPDATED_AT\",\"java.time.LocalDateTime\");\n setOrThrow(this::setUpdatedBy,json::getString,\"UPDATED_BY\",\"java.lang.String\");\n return this;\n }\n\n\n @Override\n public default io.vertx.core.json.JsonObject toJson() {\n io.vertx.core.json.JsonObject json = new io.vertx.core.json.JsonObject();\n json.put(\"KEY\",getKey());\n json.put(\"TYPE\",getType());\n json.put(\"SERIAL\",getSerial());\n json.put(\"DESCRIPTION\",getDescription());\n json.put(\"MODEL_ID\",getModelId());\n json.put(\"MODEL_KEY\",getModelKey());\n json.put(\"MODEL_CATEGORY\",getModelCategory());\n json.put(\"TASK_NAME\",getTaskName());\n json.put(\"TASK_SERIAL\",getTaskSerial());\n json.put(\"RECORD_OLD\",getRecordOld());\n json.put(\"RECORD_NEW\",getRecordNew());\n json.put(\"SIGMA\",getSigma());\n json.put(\"LANGUAGE\",getLanguage());\n json.put(\"ACTIVE\",getActive());\n json.put(\"METADATA\",getMetadata());\n json.put(\"CREATED_AT\",getCreatedAt()==null?null:getCreatedAt().toString());\n json.put(\"CREATED_BY\",getCreatedBy());\n json.put(\"UPDATED_AT\",getUpdatedAt()==null?null:getUpdatedAt().toString());\n json.put(\"UPDATED_BY\",getUpdatedBy());\n return json;\n }\n\n}",
"public static AuditType exampleAuditTypeDb() {\r\n return exampleAuditTypeDb(\"testCategory\", \"testAction\");\r\n }",
"String getSQLTypeName() throws SQLException;",
"public QueryType getType();",
"@Schema(description = \"When sub-classing, this defines the sub-class entity name\")\n\n\tpublic String getAtType() {\n\t\treturn type;\n\t}",
"public void updateData(String typeActivity) {\n try {\n Float.parseFloat(this.inputNominal.getText());\n } catch (Exception err) {\n this.alert.showMessageDialog(null, \"Silahkan input nominal dengan benar\");\n }\n \n try {\n this.inputDate.getDate().getTime();\n } catch (Exception err) {\n this.alert.showMessageDialog(null, \"Silahkan input tanggal dengan benar\");\n }\n \n Time time = new Time();\n time.setDate(this.inputDate.getDate());\n \n String description = this.inputDescription.getText();\n float nominal = Float.parseFloat(this.inputNominal.getText());\n String dateAt = time.parseDatetime();\n \n ActivityService activityService = new ActivityService();\n \n activityService\n .setId(this.id)\n .setDescription(description)\n .setNominal(nominal)\n .setDateAt(dateAt)\n .setUser(this.dashboard.user);\n \n try {\n if (typeActivity.equals(\"+\")) {\n activityService.updateIncome();\n } else {\n activityService.updateExpense();\n }\n this.dashboard.refreshUI();\n this.dashboard.resetForm();\n } catch (Exception err) {\n this.alert.showMessageDialog(null, err.getMessage());\n }\n }",
"public void representDataOnActors(String type)\r\n\t{\n\t}",
"public String getType() { return type; }",
"public long getCount(MigrationType type);",
"fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType();",
"public String getType(){\n return this.type;\n }",
"QueryType createQueryType();",
"public int getType() {\n return type;\n }",
"public void setResult(int type, String typeName, Class javaType) {\r\n ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(\"\");\r\n field.setSqlType(type);\r\n field.setSqlTypeName(typeName);\r\n field.setType(javaType);\r\n getParameters().set(0, field);\r\n }",
"public ScGridColumn<AcActionAutoCorrectedLog> newScannedTypeColumn()\n {\n return newScannedTypeColumn(\"Scanned Type\");\n }",
"public void setType(String type) {\n this.type = type;\n }",
"@Override\n public int getCustomChatRowTypeCount() {\n return 10;\n }",
"public int getType(){\r\n\t\treturn type;\r\n\t}",
"SellType selectByPrimaryKey(Integer sell_type_id);",
"@Override\r\n\tpublic String getType() {\n\t\treturn type;\r\n\t}",
"public interface UserShareActivityMapper {\n\n\n @Select(\"select count(1) from lh_share_activity_info WHERE random=#{random} AND share_user_tid=#{user_tid} AND extend_type=#{extend_type}\")\n public Integer checkSharelink(CreateShareLinkEvent event);\n\n @Insert(\"insert into lh_share_activity_info(share_user_tid,\" +\n \"random,extend_type,end_time,create_time) values(#{share_user_tid},#{random},#{extend_type},#{end_time},now())\")\n public void insertShareLink(UserShareInfo userShareInfo);\n}",
"@Override\n public int getResultSetType() throws SQLException {\n throw new SQLException(\"tinySQL does not support getResultSetType.\");\n }",
"void setType(String type) {\n this.type = type;\n }",
"void setForPersistentMapping_Type(Type type) {\n this.type = type;\n }",
"public abstract Map<String, Integer> getColumnTypes(String tableName);",
"public ResultSet getAppointmentsByType() throws SQLException {\r\n String statement = \"SELECT DISTINCT Type as Type, COUNT(Type) as AMOUNT FROM appointments GROUP BY Type\";\r\n return conn.prepareStatement(statement).executeQuery();\r\n }",
"public String getType(){\r\n return type;\r\n }",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"public int getType(){\n return type;\n }",
"@Override\n\tpublic int getType() {\n\t\treturn _expandoColumn.getType();\n\t}",
"@Override\n\tpublic String getType() {\n\t\treturn type;\n\t}",
"@Override\n\tpublic String getType() {\n\t\treturn type;\n\t}",
"@Override\n\tpublic String getType() {\n\t\treturn type;\n\t}",
"@MyBatisRepository\npublic interface TypeCusMapper {\n\tvoid insert(TypeCus typeCus);\n\n\tvoid delete(Long typeCusId);\n\t\n\tvoid removeTcs(TypeCusQB tcQb);\n\n\tvoid update(TypeCus typeCus);\n\n\tTypeCus select(Long typeCusId);\n\n\tList<TypeCus> selectList(TypeCusQB queryBean);\n\n\tList<TypeCus> selectPage(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tInteger selectCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tObject proc(TypeCus typeCus);\n\t\n\tList<Customer> selectComplex(PagingQueryBean<TypeCusQB> pagingQueryBean);;\n\t\n\tInteger selectComplexCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\tLong getMaxOrder(Long typeId);\n}",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }"
] | [
"0.609313",
"0.56537807",
"0.5620928",
"0.55842227",
"0.55151576",
"0.54295284",
"0.54132736",
"0.5369587",
"0.53417003",
"0.527962",
"0.5277054",
"0.5241781",
"0.5222637",
"0.51940906",
"0.51675445",
"0.5139097",
"0.5066153",
"0.50627804",
"0.50618863",
"0.5049766",
"0.5032766",
"0.5029053",
"0.49847218",
"0.4958237",
"0.49581838",
"0.49542576",
"0.49497637",
"0.4904642",
"0.4894209",
"0.48842746",
"0.48675838",
"0.48573",
"0.48375276",
"0.48229483",
"0.48131013",
"0.48067302",
"0.48024324",
"0.47965598",
"0.47881183",
"0.47821194",
"0.47799054",
"0.4778131",
"0.47758612",
"0.47743213",
"0.47698915",
"0.47675437",
"0.47479784",
"0.47423372",
"0.4739197",
"0.47360906",
"0.47321758",
"0.47216368",
"0.47212622",
"0.47202292",
"0.4714761",
"0.47057524",
"0.47043484",
"0.4703798",
"0.4703798",
"0.46972865",
"0.46944702",
"0.4689247",
"0.46813476",
"0.46768394",
"0.46679828",
"0.46676296",
"0.46665874",
"0.46646655",
"0.46587124",
"0.46540725",
"0.46509373",
"0.4641734",
"0.4634491",
"0.4633789",
"0.46270072",
"0.46257287",
"0.46232104",
"0.46166813",
"0.46158615",
"0.4611079",
"0.46075222",
"0.46030194",
"0.45981944",
"0.45964268",
"0.4592377",
"0.45920753",
"0.45903966",
"0.45865294",
"0.45856017",
"0.45854342",
"0.45854342",
"0.4583275",
"0.45791698",
"0.45753807",
"0.45753807",
"0.45753807",
"0.4574767",
"0.45741233",
"0.45741233",
"0.45741233",
"0.45741233"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table qt_activitytype | int updateByPrimaryKeySelective(QtActivitytype record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected List<Daily_activity_type> getDailyActivityType() {\n return super.emMain.createQuery(\"FROM Daily_activity_type WHERE dat_code <> 0 ORDER BY dat_order ASC\",\n Daily_activity_type.class).getResultList();\n }",
"public Vector listActivityTypeActivity() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT A.activity_type_id,B.specification_id,B.specification_name, A.transaction_type_id FROM \"+ \n DBHelper.USEA_ACTIVITY_CATEGORY+\" A, \"+DBHelper.USEA_SPECIFICATION_MASTER+\" B \"+\n \" WHERE A.activity_type_id = B.activity_type_id AND A.activity_type_name = ? and B.active_status = ? order by B.specification_name\";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, \"Activity\");\n prepStmt.setBoolean(2, true);\n \n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) {\n \n this.specificationId = rs.getString(2);\n this.specificationName = rs.getString(3);\n String txnTypeId = rs.getString(4);\n \n String [] activityList = {specificationId,specificationName,txnTypeId};\n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"public void setActivityType(ActivityType activityType) {\n this.activityType = activityType;\n }",
"public String toXML() {\n StringBuffer ret = new StringBuffer();\n ret.append(\"<table name=\\\"MTBTypes\\\">\\n\");\n ret.append(\" <column name=\\\"_MTBTypes_key\\\"\\n\");\n ret.append(\" value=\\\"\").append((MTBTypesKey_is_initialized ? ((MTBTypesKey == null ? null : MTBTypesKey.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"type\\\"\\n\");\n ret.append(\" value=\\\"\").append((type_is_initialized ? ((type == null ? null : type)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"description\\\"\\n\");\n ret.append(\" value=\\\"\").append((description_is_initialized ? ((description == null ? null : description)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"tableName\\\"\\n\");\n ret.append(\" value=\\\"\").append((tableName_is_initialized ? ((tableName == null ? null : tableName)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"columnName\\\"\\n\");\n ret.append(\" value=\\\"\").append((columnName_is_initialized ? ((columnName == null ? null : columnName)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"create_user\\\"\\n\");\n ret.append(\" value=\\\"\").append((createUser_is_initialized ? ((createUser == null ? null : createUser)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"create_date\\\"\\n\");\n ret.append(\" value=\\\"\").append((createDate_is_initialized ? ((createDate == null ? null : createDate.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"update_user\\\"\\n\");\n ret.append(\" value=\\\"\").append((updateUser_is_initialized ? ((updateUser == null ? null : updateUser)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"update_date\\\"\\n\");\n ret.append(\" value=\\\"\").append((updateDate_is_initialized ? ((updateDate == null ? null : updateDate.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\"</table>\");\n return ret.toString();\n }",
"public int getSqlType() { return _type; }",
"@Query(\"SELECT * FROM wellbeing_questions WHERE activity_type == :activityType\")\n List<WellbeingQuestion> getQuestionsByActivityType(String activityType);",
"public abstract String getTipoByAct(Actividad activity) throws PersistenceException, ClassNotFoundException;",
"public abstract String toJavaType(int sqlType);",
"Collection<ActivityType> getActivityTypes() throws DataAccessException;",
"List<QtActivitytype> selectByExample(QtActivitytypeExample example);",
"void storeActivityType(ActivityType activityType) throws DataAccessException;",
"QtActivitytype selectByPrimaryKey(Integer id);",
"RelDataType getColumnType(String sql);",
"public void setActivitytypeid(Integer activitytypeid) {\n this.activitytypeid = activitytypeid;\n }",
"public ActivityType getActivityType() {\n return activityType;\n }",
"public void setActivityType(ActivityType activity, UsertypeType type) {\n\t\tactivity.setUsertype(type);\n\t}",
"private void setActivity(int relType){\n\t\tActivity act = new Activity();\n\t\tActivityDefinition actDef = new ActivityDefinition();\n\t\tactDef.setType(INTERACT_TYPE);\n\t\tactDef.setInteractionType(INTERACT_TYPE);\n\t\t//InteractionComponent iac = new InteractionComponent();\n\t\tact.setDefinition(actDef);\n\t\t\n\t\tHashMap<String, String> names = new HashMap<String, String>();\n\t\tnames.put(\"en\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"en\")));\n\t\tnames.put(\"de\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"de\")));\n\n\t\tactDef.setName(names);\n\t\tthis.setObject(act);\n\t\n\t}",
"private void setActivity(int relType){\n\t\tActivity act = new Activity();\n\t\tActivityDefinition actDef = new ActivityDefinition();\n\t\tactDef.setType(INTERACT_TYPE);\n\t\tactDef.setInteractionType(INTERACT_TYPE);\n\t\t//InteractionComponent iac = new InteractionComponent();\n\t\tact.setDefinition(actDef);\n\t\t\n\t\tHashMap<String, String> names = new HashMap<String, String>();\n\t\t//names.put(\"en\",\"Identifying problems\");\n\t\tnames.put(\"en\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"en\")));\n\t\tnames.put(\"de\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"de\")));\n\n\t\tactDef.setName(names);\n\t\tthis.setObject(act);\n\t\n\t}",
"public Vector listActivityTypeRegister() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT B.specification_id,B.specification_name, A.transaction_type_id FROM \"+ \n DBHelper.USEA_ACTIVITY_CATEGORY+\" A, \"+DBHelper.USEA_SPECIFICATION_MASTER+\" B \"+\n \" WHERE A.activity_type_id = B.activity_type_id AND A.activity_type_name = ? and B.active_status = ? \";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, \"Registration\");\n prepStmt.setBoolean(2 , true);\n \n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) { \n this.specificationId = rs.getString(1);\n this.specificationName = rs.getString(2);\n String txnTypeId = rs.getString(3);\n \n String [] activityList = {specificationId,specificationName,txnTypeId};\n Debug.print(\" Specification Id : \"+specificationId);\n Debug.print(\" specificationName : \"+specificationName);\n Debug.print(\" txnTypeId : \"+txnTypeId);\n \n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"public String getEntityTypeName() { return \"jp.sourceforge.ea2ddl.dao.exentity.TTrxtypes\"; }",
"public Column.Type getType();",
"public String getTableDbName() { return \"t_trxtypes\"; }",
"public int getJdbcType();",
"@Override\r\n\tpublic String getType() {\n\t\treturn \"column\";\r\n\t}",
"com.rpg.framework.database.Protocol.ItemType getType();",
"ActivityType loadActivityType(int id) throws DataAccessException;",
"private void setActivityType(int value) {\n this.bitField0_ |= 4;\n this.activityType_ = value;\n }",
"@Override\n public RelDataType getRowType(final RelDataTypeFactory typeFactory) {\n final Schema kuduSchema = this.getKuduTable().getSchema();\n final RelDataTypeFactory.Builder builder = new RelDataTypeFactory.Builder(typeFactory);\n\n for (int i = 0; i < kuduSchema.getColumnCount(); i++) {\n final ColumnSchema currentColumn = kuduSchema.getColumnByIndex(i);\n switch (currentColumn.getType()) {\n case INT8:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.TINYINT).nullable(currentColumn.isNullable());\n break;\n case INT16:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.SMALLINT).nullable(currentColumn.isNullable());\n break;\n case INT32:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.INTEGER).nullable(currentColumn.isNullable());\n break;\n case INT64:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.BIGINT).nullable(currentColumn.isNullable());\n break;\n case BINARY:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.VARBINARY).nullable(currentColumn.isNullable());\n break;\n case STRING:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.VARCHAR).nullable(currentColumn.isNullable());\n break;\n case BOOL:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.BOOLEAN).nullable(currentColumn.isNullable());\n break;\n case FLOAT:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.FLOAT).nullable(currentColumn.isNullable());\n break;\n case DOUBLE:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.DOUBLE).nullable(currentColumn.isNullable());\n break;\n case UNIXTIME_MICROS:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.TIMESTAMP).nullable(currentColumn.isNullable());\n break;\n case DECIMAL:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.DECIMAL).nullable(currentColumn.isNullable());\n break;\n }\n }\n\n return builder.build();\n }",
"public TypeData getTypeData(MigrationType type);",
"private String getNameFromType(int activityType) {\n switch (activityType) {\n case DetectedActivity.IN_VEHICLE:\n return \"in_vehicle\";\n case DetectedActivity.ON_BICYCLE:\n return \"on_bicycle\";\n case DetectedActivity.ON_FOOT:\n return \"on_foot\";\n case DetectedActivity.STILL:\n return \"still\";\n case DetectedActivity.UNKNOWN:\n return \"unknown\";\n case DetectedActivity.TILTING:\n return \"tilting\";\n }\n return \"unknown\";\n }",
"@Override\n public String convertToDatabaseColumn(TransactionType transactionType) {\n if (transactionType == null) return null;\n\n return transactionType.getTransactionType();\n }",
"@Override\n public Object toJdbcType(Object value) {\n return value;\n }",
"public List<LogRoomTypeHistory>getAllRoomTypeHistory(TblRoomType roomType);",
"ResultColumn getTypeIdColumn(TableReference tableReference);",
"public ScGridColumn<AcActionAutoCorrectedLog> newActualTypeColumn()\n {\n return newActualTypeColumn(\"Actual Type\");\n }",
"public static \tTransactionEventType getTransactionEventTypeSample(){\n\t\t\n\t\tTransactionEventType transactionEventType=new TransactionEventType();\n\t\t\n\t\tGregorianCalendar gRecordTime = new GregorianCalendar();\n\t\tXMLGregorianCalendar recordTime;\n\t\ttry {\n\t\t\trecordTime = DatatypeFactory.newInstance().newXMLGregorianCalendar(gRecordTime);\n\t\t\ttransactionEventType.setEventTime(recordTime);\n\t\t\ttransactionEventType.setRecordTime(recordTime);\n\t\t} catch (DatatypeConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttransactionEventType.setEventTimeZoneOffset(\"eventTimeZoneOffset_T\");\n\t\ttransactionEventType.setParentID(\"parentID_T\");\n\t\t\n\t\tEPCListType transactionEventEPCs=new EPCListType();\n\t\t\n\t\t\n\t\torg.oliot.model.epcis.EPC epc1=new org.oliot.model.epcis.EPC (\"epc1_T\");\n\t\t\n\t\torg.oliot.model.epcis.EPC epc2=new org.oliot.model.epcis.EPC (\"epc2_T\");\n\t\t\t\t\n\t\ttransactionEventEPCs.getEpc().add(epc1);\n\t\ttransactionEventEPCs.getEpc().add(epc2);\n\t\ttransactionEventType.setEpcList(transactionEventEPCs);\n\t\t\n\t\ttransactionEventType.setAction(ActionType.fromValue(\"ADD\"));\t\n\t\ttransactionEventType.setBizStep(\"bizStep_T\");\n\t\ttransactionEventType.setDisposition(\"disposition_T\");\n\t\t\n\t\t\n\t\tReadPointType readPoint=new ReadPointType();\n\t\treadPoint.setId(\"ReadPoint_object\");\n\t\tReadPointExtensionType readPointExtension=new ReadPointExtensionType();\n\t\treadPoint.setExtension(readPointExtension);\n\t\t\n\t\ttransactionEventType.setReadPoint(readPoint);\n\t\t\n\t\tBusinessLocationType businessLocation =new BusinessLocationType();\n\t\tbusinessLocation.setId(\"BusinessLocation_object\");\n\t\tBusinessLocationExtensionType businessLocationExtension= new BusinessLocationExtensionType();\n\t\tbusinessLocation.setExtension(businessLocationExtension);\n\t\t\n\t\ttransactionEventType.setBizLocation(businessLocation);\n\t\t\n\t\tBusinessTransactionListType businessTransactionList=new BusinessTransactionListType();\t\n\t\tBusinessTransactionType businessTransaction1=new BusinessTransactionType();\n\t\tbusinessTransaction1.setType(\"type1_o\");\n\t\tbusinessTransaction1.setValue(\"value1_o\");\n\t\tBusinessTransactionType businessTransaction2=new BusinessTransactionType();\n\t\tbusinessTransaction1.setType(\"type2_o\");\n\t\tbusinessTransaction1.setValue(\"value2_o\");\n\t\tbusinessTransactionList.getBizTransaction().add(businessTransaction1);\n\t\tbusinessTransactionList.getBizTransaction().add(businessTransaction2);\n\t\ttransactionEventType.setBizTransactionList(businessTransactionList);\n\t\t\n\t\t\n\t\tTransactionEventExtensionType transactionEventExtension =new TransactionEventExtensionType();\n\t\t\n\t\tQuantityListType quantityList =new QuantityListType();\n\t\tQuantityElementType quantityElement1=new QuantityElementType();\n\t\tquantityElement1.setEpcClass(\"epcClass1_O\");\n\t\tquantityElement1.setQuantity(111);\n\t\tquantityElement1.setUom(\"uom1_O\");\n\t\tQuantityElementType quantityElement2=new QuantityElementType();\n\t\tquantityElement2.setEpcClass(\"epcClass2_O\");\n\t\tquantityElement2.setQuantity(111);\n\t\tquantityElement2.setUom(\"uom2_O\");\n\t\tquantityList.getQuantityElement().add(quantityElement1);\n\t\tquantityList.getQuantityElement().add(quantityElement2);\n\t\t\n\t\ttransactionEventExtension.setQuantityList(quantityList);\n\t\t\n\t\tDestinationListType destinationList =new DestinationListType();\n\t\tSourceDestType sourceDest3=new SourceDestType( );\n\t\tSourceDestType sourceDest4=new SourceDestType( );\n\t\tsourceDest3.setValue(\"value3\");\n\t\tsourceDest3.setType(\"type3\");\n\t\tsourceDest4.setValue(\"value4\");\n\t\tsourceDest4.setType(\"type4\");\n\t\t\n\t\tdestinationList.getDestination().add(sourceDest3);\n\t\tdestinationList.getDestination().add(sourceDest4);\n\t\ttransactionEventExtension.setDestinationList(destinationList);\n\t\t\n\t\tSourceListType sourceList =new SourceListType();\n\t\tSourceDestType sourceDest1=new SourceDestType( );\n\t\tSourceDestType sourceDest2=new SourceDestType( );\n\t\tsourceDest1.setValue(\"value1\");\n\t\tsourceDest1.setType(\"type1\");\n\t\tsourceDest1.setValue(\"value2\");\n\t\tsourceDest1.setType(\"type2\");\n\t\t\n\t\tsourceList.getSource().add(sourceDest1);\n\t\tsourceList.getSource().add(sourceDest2);\n\t\t\n\t\t\n\t\ttransactionEventExtension.setSourceList(sourceList);\n\t\t\n\t\t\n\t\t\n\n\t\tTransactionEventExtension2Type transactionEventExtension2=\n\t\t\t\tnew TransactionEventExtension2Type();\n\t\t\n\t\ttransactionEventExtension.setExtension(transactionEventExtension2);\n\t\t\n\t\t\n\t\ttransactionEventType.setExtension(transactionEventExtension);\n\t\t\n\t\treturn transactionEventType;\n\t\t\n\t}",
"@Override\n\tpublic void setType(int type) {\n\t\t_expandoColumn.setType(type);\n\t}",
"private String getNameFromType(int activityType) {\n switch(activityType) {\n case DetectedActivity.IN_VEHICLE:\n return \"in_vehicle\";\n case DetectedActivity.ON_BICYCLE:\n return \"on_bicycle\";\n case DetectedActivity.ON_FOOT:\n return \"on_foot\";\n case DetectedActivity.STILL:\n return \"still\";\n case DetectedActivity.UNKNOWN:\n return \"unknown\";\n case DetectedActivity.TILTING:\n return \"tilting\";\n }\n return \"unrecognized\";\n }",
"public Integer getActivitytypeid() {\n return activitytypeid;\n }",
"@Nullable\n @Generated\n @Selector(\"handoffUserActivityType\")\n public native String handoffUserActivityType();",
"@Override\n public String getType(){\n return Type;\n }",
"public Vector listActivityCategory() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT activity_type_id,activity_type_name FROM \"+ DBHelper.USEA_ACTIVITY_CATEGORY;\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) {\n this.activityTypeId = rs.getString(1);\n this.activityTypeName = rs.getString(2);\n String [] activityList = {activityTypeId,activityTypeName};\n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"UserType getType();",
"HotelType selectByPrimaryKey(Integer typeiId);",
"public String getType() {return type;}",
"TableType getTableType()\n {\n return tableType;\n }",
"public static AuditType exampleAuditType() {\r\n AuditType auditType = new AuditType();\r\n auditType.setActionName(\"actionName\");\r\n auditType.setAuditCategory(\"auditCategory\");\r\n auditType.setContextId(\"contextId\");\r\n auditType.setCreatedOnDb(3L);\r\n auditType.setHibernateVersionNumber(4L);\r\n auditType.setId(\"id\");\r\n auditType.setLabelInt01(\"labelInt01\");\r\n auditType.setLabelInt02(\"labelInt02\");\r\n auditType.setLabelInt03(\"labelInt03\");\r\n auditType.setLabelInt04(\"labelInt04\");\r\n auditType.setLabelInt05(\"labelInt05\");\r\n auditType.setLabelString01(\"labelString01\");\r\n auditType.setLabelString02(\"labelString02\");\r\n auditType.setLabelString03(\"labelString03\");\r\n auditType.setLabelString04(\"labelString04\");\r\n auditType.setLabelString05(\"labelString05\");\r\n auditType.setLabelString06(\"labelString06\");\r\n auditType.setLabelString07(\"labelString07\");\r\n auditType.setLabelString08(\"labelString08\");\r\n auditType.setLastUpdatedDb(5L);\r\n return auditType;\r\n }",
"public abstract QCEntryType getType();",
"RelDataType getResultType(String sql);",
"@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);",
"public abstract String toHiveType(int sqlType);",
"@Override\n public String getJavaByJdbcType(DbAttribute attribute, int type) {\n String jdbcType = TypesMapping.getSqlNameByType(type);\n DbType dbType;\n if (attribute != null) {\n dbType = new DbType(\n jdbcType,\n attribute.getMaxLength(),\n attribute.getAttributePrecision(),\n attribute.getScale(),\n attribute.isMandatory());\n } else {\n dbType = new DbType(jdbcType);\n }\n\n String typeName = getJavaByJdbcType(dbType);\n\n if (usePrimitives != null && usePrimitives) {\n String primitive = classToPrimitive.get(typeName);\n if (primitive != null) {\n return primitive;\n }\n }\n\n return typeName;\n }",
"RelDataType getParameterRowType();",
"private static String mapStatementSetter(final FieldType.Type type) {\n switch (type) {\n case DATE:\n return \"setDate\";\n case INTEGER:\n return \"setInt\";\n case REAL:\n return \"setDouble\";\n case STRING:\n return \"setString\";\n default:\n return null;\n }\n }",
"@Override\n\tpublic int getType() {\n\t\treturn 1;\n\t}",
"public void setTransactionType(int transactionChoice);",
"public int getType() { return type; }",
"public int getType() { return type; }",
"CmsActivity selectByPrimaryKey(String activityId);",
"@Override\r\n\t\tpublic Map<String, Class<?>> getTypeMap() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public ConcatColumn(final Type type) {\n this.type = type;\n numTuples = 0;\n columnIds = Maps.newTreeMap();\n readOnly = false;\n }",
"@Override\n public String getType() {\n return \"\";\n }",
"@SuppressWarnings({ \"all\", \"unchecked\", \"rawtypes\" })\npublic interface IXActivity extends VertxPojo, Serializable {\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键\n */\n public IXActivity setKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键\n */\n public String getKey();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TYPE</code>. 「type」- 操作类型\n */\n public IXActivity setType(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TYPE</code>. 「type」- 操作类型\n */\n public String getType();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.SERIAL</code>. 「serial」- 变更记录号\n */\n public IXActivity setSerial(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.SERIAL</code>. 「serial」- 变更记录号\n */\n public String getSerial();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.DESCRIPTION</code>. 「description」-\n * 操作描述信息\n */\n public IXActivity setDescription(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.DESCRIPTION</code>. 「description」-\n * 操作描述信息\n */\n public String getDescription();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_ID</code>. 「modelId」-\n * 组所关联的模型identifier,用于描述\n */\n public IXActivity setModelId(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_ID</code>. 「modelId」-\n * 组所关联的模型identifier,用于描述\n */\n public String getModelId();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_KEY</code>. 「modelKey」-\n * 组所关联的模型记录ID,用于描述哪一个Model中的记录\n */\n public IXActivity setModelKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_KEY</code>. 「modelKey」-\n * 组所关联的模型记录ID,用于描述哪一个Model中的记录\n */\n public String getModelKey();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_CATEGORY</code>.\n * 「modelCategory」- 关联的category记录,只包含叶节点\n */\n public IXActivity setModelCategory(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_CATEGORY</code>.\n * 「modelCategory」- 关联的category记录,只包含叶节点\n */\n public String getModelCategory();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TASK_NAME</code>. 「taskName」- 任务名称\n */\n public IXActivity setTaskName(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TASK_NAME</code>. 「taskName」- 任务名称\n */\n public String getTaskName();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TASK_SERIAL</code>. 「taskSerial」-\n * 任务单号\n */\n public IXActivity setTaskSerial(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TASK_SERIAL</code>. 「taskSerial」-\n * 任务单号\n */\n public String getTaskSerial();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_OLD</code>. 「recordOld」-\n * 变更之前的数据(用于回滚)\n */\n public IXActivity setRecordOld(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_OLD</code>. 「recordOld」-\n * 变更之前的数据(用于回滚)\n */\n public String getRecordOld();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_NEW</code>. 「recordNew」-\n * 变更之后的数据(用于更新)\n */\n public IXActivity setRecordNew(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_NEW</code>. 「recordNew」-\n * 变更之后的数据(用于更新)\n */\n public String getRecordNew();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.SIGMA</code>. 「sigma」- 用户组绑定的统一标识\n */\n public IXActivity setSigma(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.SIGMA</code>. 「sigma」- 用户组绑定的统一标识\n */\n public String getSigma();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.LANGUAGE</code>. 「language」- 使用的语言\n */\n public IXActivity setLanguage(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.LANGUAGE</code>. 「language」- 使用的语言\n */\n public String getLanguage();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.ACTIVE</code>. 「active」- 是否启用\n */\n public IXActivity setActive(Boolean value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.ACTIVE</code>. 「active」- 是否启用\n */\n public Boolean getActive();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.METADATA</code>. 「metadata」-\n * 附加配置数据\n */\n public IXActivity setMetadata(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.METADATA</code>. 「metadata」-\n * 附加配置数据\n */\n public String getMetadata();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_AT</code>. 「createdAt」-\n * 创建时间\n */\n public IXActivity setCreatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_AT</code>. 「createdAt」-\n * 创建时间\n */\n public LocalDateTime getCreatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_BY</code>. 「createdBy」-\n * 创建人\n */\n public IXActivity setCreatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_BY</code>. 「createdBy」-\n * 创建人\n */\n public String getCreatedBy();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_AT</code>. 「updatedAt」-\n * 更新时间\n */\n public IXActivity setUpdatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_AT</code>. 「updatedAt」-\n * 更新时间\n */\n public LocalDateTime getUpdatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_BY</code>. 「updatedBy」-\n * 更新人\n */\n public IXActivity setUpdatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_BY</code>. 「updatedBy」-\n * 更新人\n */\n public String getUpdatedBy();\n\n // -------------------------------------------------------------------------\n // FROM and INTO\n // -------------------------------------------------------------------------\n\n /**\n * Load data from another generated Record/POJO implementing the common\n * interface IXActivity\n */\n public void from(IXActivity from);\n\n /**\n * Copy data into another generated Record/POJO implementing the common\n * interface IXActivity\n */\n public <E extends IXActivity> E into(E into);\n\n @Override\n public default IXActivity fromJson(io.vertx.core.json.JsonObject json) {\n setOrThrow(this::setKey,json::getString,\"KEY\",\"java.lang.String\");\n setOrThrow(this::setType,json::getString,\"TYPE\",\"java.lang.String\");\n setOrThrow(this::setSerial,json::getString,\"SERIAL\",\"java.lang.String\");\n setOrThrow(this::setDescription,json::getString,\"DESCRIPTION\",\"java.lang.String\");\n setOrThrow(this::setModelId,json::getString,\"MODEL_ID\",\"java.lang.String\");\n setOrThrow(this::setModelKey,json::getString,\"MODEL_KEY\",\"java.lang.String\");\n setOrThrow(this::setModelCategory,json::getString,\"MODEL_CATEGORY\",\"java.lang.String\");\n setOrThrow(this::setTaskName,json::getString,\"TASK_NAME\",\"java.lang.String\");\n setOrThrow(this::setTaskSerial,json::getString,\"TASK_SERIAL\",\"java.lang.String\");\n setOrThrow(this::setRecordOld,json::getString,\"RECORD_OLD\",\"java.lang.String\");\n setOrThrow(this::setRecordNew,json::getString,\"RECORD_NEW\",\"java.lang.String\");\n setOrThrow(this::setSigma,json::getString,\"SIGMA\",\"java.lang.String\");\n setOrThrow(this::setLanguage,json::getString,\"LANGUAGE\",\"java.lang.String\");\n setOrThrow(this::setActive,json::getBoolean,\"ACTIVE\",\"java.lang.Boolean\");\n setOrThrow(this::setMetadata,json::getString,\"METADATA\",\"java.lang.String\");\n setOrThrow(this::setCreatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},\"CREATED_AT\",\"java.time.LocalDateTime\");\n setOrThrow(this::setCreatedBy,json::getString,\"CREATED_BY\",\"java.lang.String\");\n setOrThrow(this::setUpdatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},\"UPDATED_AT\",\"java.time.LocalDateTime\");\n setOrThrow(this::setUpdatedBy,json::getString,\"UPDATED_BY\",\"java.lang.String\");\n return this;\n }\n\n\n @Override\n public default io.vertx.core.json.JsonObject toJson() {\n io.vertx.core.json.JsonObject json = new io.vertx.core.json.JsonObject();\n json.put(\"KEY\",getKey());\n json.put(\"TYPE\",getType());\n json.put(\"SERIAL\",getSerial());\n json.put(\"DESCRIPTION\",getDescription());\n json.put(\"MODEL_ID\",getModelId());\n json.put(\"MODEL_KEY\",getModelKey());\n json.put(\"MODEL_CATEGORY\",getModelCategory());\n json.put(\"TASK_NAME\",getTaskName());\n json.put(\"TASK_SERIAL\",getTaskSerial());\n json.put(\"RECORD_OLD\",getRecordOld());\n json.put(\"RECORD_NEW\",getRecordNew());\n json.put(\"SIGMA\",getSigma());\n json.put(\"LANGUAGE\",getLanguage());\n json.put(\"ACTIVE\",getActive());\n json.put(\"METADATA\",getMetadata());\n json.put(\"CREATED_AT\",getCreatedAt()==null?null:getCreatedAt().toString());\n json.put(\"CREATED_BY\",getCreatedBy());\n json.put(\"UPDATED_AT\",getUpdatedAt()==null?null:getUpdatedAt().toString());\n json.put(\"UPDATED_BY\",getUpdatedBy());\n return json;\n }\n\n}",
"public static AuditType exampleAuditTypeDb() {\r\n return exampleAuditTypeDb(\"testCategory\", \"testAction\");\r\n }",
"public QueryType getType();",
"String getSQLTypeName() throws SQLException;",
"@Schema(description = \"When sub-classing, this defines the sub-class entity name\")\n\n\tpublic String getAtType() {\n\t\treturn type;\n\t}",
"public void updateData(String typeActivity) {\n try {\n Float.parseFloat(this.inputNominal.getText());\n } catch (Exception err) {\n this.alert.showMessageDialog(null, \"Silahkan input nominal dengan benar\");\n }\n \n try {\n this.inputDate.getDate().getTime();\n } catch (Exception err) {\n this.alert.showMessageDialog(null, \"Silahkan input tanggal dengan benar\");\n }\n \n Time time = new Time();\n time.setDate(this.inputDate.getDate());\n \n String description = this.inputDescription.getText();\n float nominal = Float.parseFloat(this.inputNominal.getText());\n String dateAt = time.parseDatetime();\n \n ActivityService activityService = new ActivityService();\n \n activityService\n .setId(this.id)\n .setDescription(description)\n .setNominal(nominal)\n .setDateAt(dateAt)\n .setUser(this.dashboard.user);\n \n try {\n if (typeActivity.equals(\"+\")) {\n activityService.updateIncome();\n } else {\n activityService.updateExpense();\n }\n this.dashboard.refreshUI();\n this.dashboard.resetForm();\n } catch (Exception err) {\n this.alert.showMessageDialog(null, err.getMessage());\n }\n }",
"public void representDataOnActors(String type)\r\n\t{\n\t}",
"public String getType() { return type; }",
"public long getCount(MigrationType type);",
"fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType();",
"QueryType createQueryType();",
"public String getType(){\n return this.type;\n }",
"public void setResult(int type, String typeName, Class javaType) {\r\n ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(\"\");\r\n field.setSqlType(type);\r\n field.setSqlTypeName(typeName);\r\n field.setType(javaType);\r\n getParameters().set(0, field);\r\n }",
"public int getType() {\n return type;\n }",
"public ScGridColumn<AcActionAutoCorrectedLog> newScannedTypeColumn()\n {\n return newScannedTypeColumn(\"Scanned Type\");\n }",
"@Override\n public int getCustomChatRowTypeCount() {\n return 10;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public int getType(){\r\n\t\treturn type;\r\n\t}",
"SellType selectByPrimaryKey(Integer sell_type_id);",
"@Override\r\n\tpublic String getType() {\n\t\treturn type;\r\n\t}",
"@Override\n public int getResultSetType() throws SQLException {\n throw new SQLException(\"tinySQL does not support getResultSetType.\");\n }",
"public interface UserShareActivityMapper {\n\n\n @Select(\"select count(1) from lh_share_activity_info WHERE random=#{random} AND share_user_tid=#{user_tid} AND extend_type=#{extend_type}\")\n public Integer checkSharelink(CreateShareLinkEvent event);\n\n @Insert(\"insert into lh_share_activity_info(share_user_tid,\" +\n \"random,extend_type,end_time,create_time) values(#{share_user_tid},#{random},#{extend_type},#{end_time},now())\")\n public void insertShareLink(UserShareInfo userShareInfo);\n}",
"void setType(String type) {\n this.type = type;\n }",
"void setForPersistentMapping_Type(Type type) {\n this.type = type;\n }",
"public abstract Map<String, Integer> getColumnTypes(String tableName);",
"public String getType(){\r\n return type;\r\n }",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"public ResultSet getAppointmentsByType() throws SQLException {\r\n String statement = \"SELECT DISTINCT Type as Type, COUNT(Type) as AMOUNT FROM appointments GROUP BY Type\";\r\n return conn.prepareStatement(statement).executeQuery();\r\n }",
"public int getType(){\n return type;\n }",
"@Override\n\tpublic int getType() {\n\t\treturn _expandoColumn.getType();\n\t}",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }"
] | [
"0.60907745",
"0.56518316",
"0.5617674",
"0.55851614",
"0.5515899",
"0.5429194",
"0.5411337",
"0.53703195",
"0.53390545",
"0.52778",
"0.52769154",
"0.52413064",
"0.522299",
"0.51914597",
"0.51647353",
"0.51364106",
"0.5066082",
"0.50618553",
"0.50616753",
"0.5050939",
"0.50326174",
"0.5030021",
"0.4985679",
"0.4958322",
"0.4957959",
"0.49510604",
"0.4946326",
"0.4905505",
"0.48941228",
"0.48809934",
"0.48678085",
"0.4857349",
"0.48384783",
"0.48219064",
"0.48139277",
"0.48073718",
"0.48015222",
"0.47932574",
"0.47854418",
"0.47803855",
"0.4779893",
"0.47757474",
"0.4775457",
"0.47738466",
"0.47694823",
"0.476707",
"0.47475797",
"0.47443306",
"0.47397175",
"0.4737887",
"0.47329366",
"0.47224134",
"0.4722358",
"0.47214916",
"0.47144052",
"0.4705132",
"0.47038382",
"0.47038382",
"0.47029248",
"0.46974093",
"0.46939912",
"0.46893182",
"0.46802947",
"0.46766913",
"0.46689025",
"0.46685708",
"0.46670607",
"0.46627983",
"0.46570033",
"0.46537668",
"0.46509942",
"0.46418864",
"0.46355778",
"0.46340042",
"0.4627499",
"0.46269494",
"0.46242628",
"0.46168092",
"0.46166041",
"0.46110654",
"0.46090087",
"0.4602575",
"0.45977417",
"0.4597728",
"0.4592478",
"0.45920688",
"0.45910782",
"0.4585131",
"0.45845562",
"0.45845562",
"0.45844653",
"0.45832726",
"0.45778546",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table qt_activitytype | int updateByPrimaryKey(QtActivitytype record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected List<Daily_activity_type> getDailyActivityType() {\n return super.emMain.createQuery(\"FROM Daily_activity_type WHERE dat_code <> 0 ORDER BY dat_order ASC\",\n Daily_activity_type.class).getResultList();\n }",
"public Vector listActivityTypeActivity() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT A.activity_type_id,B.specification_id,B.specification_name, A.transaction_type_id FROM \"+ \n DBHelper.USEA_ACTIVITY_CATEGORY+\" A, \"+DBHelper.USEA_SPECIFICATION_MASTER+\" B \"+\n \" WHERE A.activity_type_id = B.activity_type_id AND A.activity_type_name = ? and B.active_status = ? order by B.specification_name\";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, \"Activity\");\n prepStmt.setBoolean(2, true);\n \n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) {\n \n this.specificationId = rs.getString(2);\n this.specificationName = rs.getString(3);\n String txnTypeId = rs.getString(4);\n \n String [] activityList = {specificationId,specificationName,txnTypeId};\n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"public void setActivityType(ActivityType activityType) {\n this.activityType = activityType;\n }",
"public String toXML() {\n StringBuffer ret = new StringBuffer();\n ret.append(\"<table name=\\\"MTBTypes\\\">\\n\");\n ret.append(\" <column name=\\\"_MTBTypes_key\\\"\\n\");\n ret.append(\" value=\\\"\").append((MTBTypesKey_is_initialized ? ((MTBTypesKey == null ? null : MTBTypesKey.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"type\\\"\\n\");\n ret.append(\" value=\\\"\").append((type_is_initialized ? ((type == null ? null : type)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"description\\\"\\n\");\n ret.append(\" value=\\\"\").append((description_is_initialized ? ((description == null ? null : description)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"tableName\\\"\\n\");\n ret.append(\" value=\\\"\").append((tableName_is_initialized ? ((tableName == null ? null : tableName)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"columnName\\\"\\n\");\n ret.append(\" value=\\\"\").append((columnName_is_initialized ? ((columnName == null ? null : columnName)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"create_user\\\"\\n\");\n ret.append(\" value=\\\"\").append((createUser_is_initialized ? ((createUser == null ? null : createUser)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"create_date\\\"\\n\");\n ret.append(\" value=\\\"\").append((createDate_is_initialized ? ((createDate == null ? null : createDate.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"update_user\\\"\\n\");\n ret.append(\" value=\\\"\").append((updateUser_is_initialized ? ((updateUser == null ? null : updateUser)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"update_date\\\"\\n\");\n ret.append(\" value=\\\"\").append((updateDate_is_initialized ? ((updateDate == null ? null : updateDate.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\"</table>\");\n return ret.toString();\n }",
"public int getSqlType() { return _type; }",
"@Query(\"SELECT * FROM wellbeing_questions WHERE activity_type == :activityType\")\n List<WellbeingQuestion> getQuestionsByActivityType(String activityType);",
"public abstract String getTipoByAct(Actividad activity) throws PersistenceException, ClassNotFoundException;",
"public abstract String toJavaType(int sqlType);",
"Collection<ActivityType> getActivityTypes() throws DataAccessException;",
"List<QtActivitytype> selectByExample(QtActivitytypeExample example);",
"void storeActivityType(ActivityType activityType) throws DataAccessException;",
"QtActivitytype selectByPrimaryKey(Integer id);",
"RelDataType getColumnType(String sql);",
"public void setActivitytypeid(Integer activitytypeid) {\n this.activitytypeid = activitytypeid;\n }",
"public ActivityType getActivityType() {\n return activityType;\n }",
"public void setActivityType(ActivityType activity, UsertypeType type) {\n\t\tactivity.setUsertype(type);\n\t}",
"private void setActivity(int relType){\n\t\tActivity act = new Activity();\n\t\tActivityDefinition actDef = new ActivityDefinition();\n\t\tactDef.setType(INTERACT_TYPE);\n\t\tactDef.setInteractionType(INTERACT_TYPE);\n\t\t//InteractionComponent iac = new InteractionComponent();\n\t\tact.setDefinition(actDef);\n\t\t\n\t\tHashMap<String, String> names = new HashMap<String, String>();\n\t\tnames.put(\"en\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"en\")));\n\t\tnames.put(\"de\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"de\")));\n\n\t\tactDef.setName(names);\n\t\tthis.setObject(act);\n\t\n\t}",
"private void setActivity(int relType){\n\t\tActivity act = new Activity();\n\t\tActivityDefinition actDef = new ActivityDefinition();\n\t\tactDef.setType(INTERACT_TYPE);\n\t\tactDef.setInteractionType(INTERACT_TYPE);\n\t\t//InteractionComponent iac = new InteractionComponent();\n\t\tact.setDefinition(actDef);\n\t\t\n\t\tHashMap<String, String> names = new HashMap<String, String>();\n\t\t//names.put(\"en\",\"Identifying problems\");\n\t\tnames.put(\"en\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"en\")));\n\t\tnames.put(\"de\", IntlConfiguration.getValue(\"scoretype.\"+ relType, new Locale(\"de\")));\n\n\t\tactDef.setName(names);\n\t\tthis.setObject(act);\n\t\n\t}",
"public Vector listActivityTypeRegister() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT B.specification_id,B.specification_name, A.transaction_type_id FROM \"+ \n DBHelper.USEA_ACTIVITY_CATEGORY+\" A, \"+DBHelper.USEA_SPECIFICATION_MASTER+\" B \"+\n \" WHERE A.activity_type_id = B.activity_type_id AND A.activity_type_name = ? and B.active_status = ? \";\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n prepStmt.setString(1, \"Registration\");\n prepStmt.setBoolean(2 , true);\n \n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) { \n this.specificationId = rs.getString(1);\n this.specificationName = rs.getString(2);\n String txnTypeId = rs.getString(3);\n \n String [] activityList = {specificationId,specificationName,txnTypeId};\n Debug.print(\" Specification Id : \"+specificationId);\n Debug.print(\" specificationName : \"+specificationName);\n Debug.print(\" txnTypeId : \"+txnTypeId);\n \n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"public String getEntityTypeName() { return \"jp.sourceforge.ea2ddl.dao.exentity.TTrxtypes\"; }",
"public Column.Type getType();",
"public String getTableDbName() { return \"t_trxtypes\"; }",
"public int getJdbcType();",
"@Override\r\n\tpublic String getType() {\n\t\treturn \"column\";\r\n\t}",
"com.rpg.framework.database.Protocol.ItemType getType();",
"ActivityType loadActivityType(int id) throws DataAccessException;",
"private void setActivityType(int value) {\n this.bitField0_ |= 4;\n this.activityType_ = value;\n }",
"@Override\n public RelDataType getRowType(final RelDataTypeFactory typeFactory) {\n final Schema kuduSchema = this.getKuduTable().getSchema();\n final RelDataTypeFactory.Builder builder = new RelDataTypeFactory.Builder(typeFactory);\n\n for (int i = 0; i < kuduSchema.getColumnCount(); i++) {\n final ColumnSchema currentColumn = kuduSchema.getColumnByIndex(i);\n switch (currentColumn.getType()) {\n case INT8:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.TINYINT).nullable(currentColumn.isNullable());\n break;\n case INT16:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.SMALLINT).nullable(currentColumn.isNullable());\n break;\n case INT32:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.INTEGER).nullable(currentColumn.isNullable());\n break;\n case INT64:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.BIGINT).nullable(currentColumn.isNullable());\n break;\n case BINARY:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.VARBINARY).nullable(currentColumn.isNullable());\n break;\n case STRING:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.VARCHAR).nullable(currentColumn.isNullable());\n break;\n case BOOL:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.BOOLEAN).nullable(currentColumn.isNullable());\n break;\n case FLOAT:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.FLOAT).nullable(currentColumn.isNullable());\n break;\n case DOUBLE:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.DOUBLE).nullable(currentColumn.isNullable());\n break;\n case UNIXTIME_MICROS:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.TIMESTAMP).nullable(currentColumn.isNullable());\n break;\n case DECIMAL:\n builder.add(currentColumn.getName().toUpperCase(), SqlTypeName.DECIMAL).nullable(currentColumn.isNullable());\n break;\n }\n }\n\n return builder.build();\n }",
"public TypeData getTypeData(MigrationType type);",
"private String getNameFromType(int activityType) {\n switch (activityType) {\n case DetectedActivity.IN_VEHICLE:\n return \"in_vehicle\";\n case DetectedActivity.ON_BICYCLE:\n return \"on_bicycle\";\n case DetectedActivity.ON_FOOT:\n return \"on_foot\";\n case DetectedActivity.STILL:\n return \"still\";\n case DetectedActivity.UNKNOWN:\n return \"unknown\";\n case DetectedActivity.TILTING:\n return \"tilting\";\n }\n return \"unknown\";\n }",
"@Override\n public String convertToDatabaseColumn(TransactionType transactionType) {\n if (transactionType == null) return null;\n\n return transactionType.getTransactionType();\n }",
"@Override\n public Object toJdbcType(Object value) {\n return value;\n }",
"public List<LogRoomTypeHistory>getAllRoomTypeHistory(TblRoomType roomType);",
"ResultColumn getTypeIdColumn(TableReference tableReference);",
"public ScGridColumn<AcActionAutoCorrectedLog> newActualTypeColumn()\n {\n return newActualTypeColumn(\"Actual Type\");\n }",
"public static \tTransactionEventType getTransactionEventTypeSample(){\n\t\t\n\t\tTransactionEventType transactionEventType=new TransactionEventType();\n\t\t\n\t\tGregorianCalendar gRecordTime = new GregorianCalendar();\n\t\tXMLGregorianCalendar recordTime;\n\t\ttry {\n\t\t\trecordTime = DatatypeFactory.newInstance().newXMLGregorianCalendar(gRecordTime);\n\t\t\ttransactionEventType.setEventTime(recordTime);\n\t\t\ttransactionEventType.setRecordTime(recordTime);\n\t\t} catch (DatatypeConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttransactionEventType.setEventTimeZoneOffset(\"eventTimeZoneOffset_T\");\n\t\ttransactionEventType.setParentID(\"parentID_T\");\n\t\t\n\t\tEPCListType transactionEventEPCs=new EPCListType();\n\t\t\n\t\t\n\t\torg.oliot.model.epcis.EPC epc1=new org.oliot.model.epcis.EPC (\"epc1_T\");\n\t\t\n\t\torg.oliot.model.epcis.EPC epc2=new org.oliot.model.epcis.EPC (\"epc2_T\");\n\t\t\t\t\n\t\ttransactionEventEPCs.getEpc().add(epc1);\n\t\ttransactionEventEPCs.getEpc().add(epc2);\n\t\ttransactionEventType.setEpcList(transactionEventEPCs);\n\t\t\n\t\ttransactionEventType.setAction(ActionType.fromValue(\"ADD\"));\t\n\t\ttransactionEventType.setBizStep(\"bizStep_T\");\n\t\ttransactionEventType.setDisposition(\"disposition_T\");\n\t\t\n\t\t\n\t\tReadPointType readPoint=new ReadPointType();\n\t\treadPoint.setId(\"ReadPoint_object\");\n\t\tReadPointExtensionType readPointExtension=new ReadPointExtensionType();\n\t\treadPoint.setExtension(readPointExtension);\n\t\t\n\t\ttransactionEventType.setReadPoint(readPoint);\n\t\t\n\t\tBusinessLocationType businessLocation =new BusinessLocationType();\n\t\tbusinessLocation.setId(\"BusinessLocation_object\");\n\t\tBusinessLocationExtensionType businessLocationExtension= new BusinessLocationExtensionType();\n\t\tbusinessLocation.setExtension(businessLocationExtension);\n\t\t\n\t\ttransactionEventType.setBizLocation(businessLocation);\n\t\t\n\t\tBusinessTransactionListType businessTransactionList=new BusinessTransactionListType();\t\n\t\tBusinessTransactionType businessTransaction1=new BusinessTransactionType();\n\t\tbusinessTransaction1.setType(\"type1_o\");\n\t\tbusinessTransaction1.setValue(\"value1_o\");\n\t\tBusinessTransactionType businessTransaction2=new BusinessTransactionType();\n\t\tbusinessTransaction1.setType(\"type2_o\");\n\t\tbusinessTransaction1.setValue(\"value2_o\");\n\t\tbusinessTransactionList.getBizTransaction().add(businessTransaction1);\n\t\tbusinessTransactionList.getBizTransaction().add(businessTransaction2);\n\t\ttransactionEventType.setBizTransactionList(businessTransactionList);\n\t\t\n\t\t\n\t\tTransactionEventExtensionType transactionEventExtension =new TransactionEventExtensionType();\n\t\t\n\t\tQuantityListType quantityList =new QuantityListType();\n\t\tQuantityElementType quantityElement1=new QuantityElementType();\n\t\tquantityElement1.setEpcClass(\"epcClass1_O\");\n\t\tquantityElement1.setQuantity(111);\n\t\tquantityElement1.setUom(\"uom1_O\");\n\t\tQuantityElementType quantityElement2=new QuantityElementType();\n\t\tquantityElement2.setEpcClass(\"epcClass2_O\");\n\t\tquantityElement2.setQuantity(111);\n\t\tquantityElement2.setUom(\"uom2_O\");\n\t\tquantityList.getQuantityElement().add(quantityElement1);\n\t\tquantityList.getQuantityElement().add(quantityElement2);\n\t\t\n\t\ttransactionEventExtension.setQuantityList(quantityList);\n\t\t\n\t\tDestinationListType destinationList =new DestinationListType();\n\t\tSourceDestType sourceDest3=new SourceDestType( );\n\t\tSourceDestType sourceDest4=new SourceDestType( );\n\t\tsourceDest3.setValue(\"value3\");\n\t\tsourceDest3.setType(\"type3\");\n\t\tsourceDest4.setValue(\"value4\");\n\t\tsourceDest4.setType(\"type4\");\n\t\t\n\t\tdestinationList.getDestination().add(sourceDest3);\n\t\tdestinationList.getDestination().add(sourceDest4);\n\t\ttransactionEventExtension.setDestinationList(destinationList);\n\t\t\n\t\tSourceListType sourceList =new SourceListType();\n\t\tSourceDestType sourceDest1=new SourceDestType( );\n\t\tSourceDestType sourceDest2=new SourceDestType( );\n\t\tsourceDest1.setValue(\"value1\");\n\t\tsourceDest1.setType(\"type1\");\n\t\tsourceDest1.setValue(\"value2\");\n\t\tsourceDest1.setType(\"type2\");\n\t\t\n\t\tsourceList.getSource().add(sourceDest1);\n\t\tsourceList.getSource().add(sourceDest2);\n\t\t\n\t\t\n\t\ttransactionEventExtension.setSourceList(sourceList);\n\t\t\n\t\t\n\t\t\n\n\t\tTransactionEventExtension2Type transactionEventExtension2=\n\t\t\t\tnew TransactionEventExtension2Type();\n\t\t\n\t\ttransactionEventExtension.setExtension(transactionEventExtension2);\n\t\t\n\t\t\n\t\ttransactionEventType.setExtension(transactionEventExtension);\n\t\t\n\t\treturn transactionEventType;\n\t\t\n\t}",
"@Override\n\tpublic void setType(int type) {\n\t\t_expandoColumn.setType(type);\n\t}",
"private String getNameFromType(int activityType) {\n switch(activityType) {\n case DetectedActivity.IN_VEHICLE:\n return \"in_vehicle\";\n case DetectedActivity.ON_BICYCLE:\n return \"on_bicycle\";\n case DetectedActivity.ON_FOOT:\n return \"on_foot\";\n case DetectedActivity.STILL:\n return \"still\";\n case DetectedActivity.UNKNOWN:\n return \"unknown\";\n case DetectedActivity.TILTING:\n return \"tilting\";\n }\n return \"unrecognized\";\n }",
"public Integer getActivitytypeid() {\n return activitytypeid;\n }",
"@Nullable\n @Generated\n @Selector(\"handoffUserActivityType\")\n public native String handoffUserActivityType();",
"@Override\n public String getType(){\n return Type;\n }",
"public Vector listActivityCategory() throws SQLException {\n Debug.print(\"Inside the getUserAndMemberId\");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT activity_type_id,activity_type_name FROM \"+ DBHelper.USEA_ACTIVITY_CATEGORY;\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n rs = prepStmt.executeQuery();\n System.out.println(\"Inside the listActivityCategory \");\n while (rs.next()) {\n this.activityTypeId = rs.getString(1);\n this.activityTypeName = rs.getString(2);\n String [] activityList = {activityTypeId,activityTypeName};\n vObj.add(activityList);\n }\n releaseConnection();\n }catch (SQLException e){\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }",
"UserType getType();",
"HotelType selectByPrimaryKey(Integer typeiId);",
"public String getType() {return type;}",
"TableType getTableType()\n {\n return tableType;\n }",
"public static AuditType exampleAuditType() {\r\n AuditType auditType = new AuditType();\r\n auditType.setActionName(\"actionName\");\r\n auditType.setAuditCategory(\"auditCategory\");\r\n auditType.setContextId(\"contextId\");\r\n auditType.setCreatedOnDb(3L);\r\n auditType.setHibernateVersionNumber(4L);\r\n auditType.setId(\"id\");\r\n auditType.setLabelInt01(\"labelInt01\");\r\n auditType.setLabelInt02(\"labelInt02\");\r\n auditType.setLabelInt03(\"labelInt03\");\r\n auditType.setLabelInt04(\"labelInt04\");\r\n auditType.setLabelInt05(\"labelInt05\");\r\n auditType.setLabelString01(\"labelString01\");\r\n auditType.setLabelString02(\"labelString02\");\r\n auditType.setLabelString03(\"labelString03\");\r\n auditType.setLabelString04(\"labelString04\");\r\n auditType.setLabelString05(\"labelString05\");\r\n auditType.setLabelString06(\"labelString06\");\r\n auditType.setLabelString07(\"labelString07\");\r\n auditType.setLabelString08(\"labelString08\");\r\n auditType.setLastUpdatedDb(5L);\r\n return auditType;\r\n }",
"public abstract QCEntryType getType();",
"RelDataType getResultType(String sql);",
"@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);",
"public abstract String toHiveType(int sqlType);",
"@Override\n public String getJavaByJdbcType(DbAttribute attribute, int type) {\n String jdbcType = TypesMapping.getSqlNameByType(type);\n DbType dbType;\n if (attribute != null) {\n dbType = new DbType(\n jdbcType,\n attribute.getMaxLength(),\n attribute.getAttributePrecision(),\n attribute.getScale(),\n attribute.isMandatory());\n } else {\n dbType = new DbType(jdbcType);\n }\n\n String typeName = getJavaByJdbcType(dbType);\n\n if (usePrimitives != null && usePrimitives) {\n String primitive = classToPrimitive.get(typeName);\n if (primitive != null) {\n return primitive;\n }\n }\n\n return typeName;\n }",
"RelDataType getParameterRowType();",
"private static String mapStatementSetter(final FieldType.Type type) {\n switch (type) {\n case DATE:\n return \"setDate\";\n case INTEGER:\n return \"setInt\";\n case REAL:\n return \"setDouble\";\n case STRING:\n return \"setString\";\n default:\n return null;\n }\n }",
"@Override\n\tpublic int getType() {\n\t\treturn 1;\n\t}",
"public void setTransactionType(int transactionChoice);",
"public int getType() { return type; }",
"public int getType() { return type; }",
"CmsActivity selectByPrimaryKey(String activityId);",
"@Override\r\n\t\tpublic Map<String, Class<?>> getTypeMap() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public ConcatColumn(final Type type) {\n this.type = type;\n numTuples = 0;\n columnIds = Maps.newTreeMap();\n readOnly = false;\n }",
"@Override\n public String getType() {\n return \"\";\n }",
"@SuppressWarnings({ \"all\", \"unchecked\", \"rawtypes\" })\npublic interface IXActivity extends VertxPojo, Serializable {\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键\n */\n public IXActivity setKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.KEY</code>. 「key」- 操作行为主键\n */\n public String getKey();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TYPE</code>. 「type」- 操作类型\n */\n public IXActivity setType(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TYPE</code>. 「type」- 操作类型\n */\n public String getType();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.SERIAL</code>. 「serial」- 变更记录号\n */\n public IXActivity setSerial(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.SERIAL</code>. 「serial」- 变更记录号\n */\n public String getSerial();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.DESCRIPTION</code>. 「description」-\n * 操作描述信息\n */\n public IXActivity setDescription(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.DESCRIPTION</code>. 「description」-\n * 操作描述信息\n */\n public String getDescription();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_ID</code>. 「modelId」-\n * 组所关联的模型identifier,用于描述\n */\n public IXActivity setModelId(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_ID</code>. 「modelId」-\n * 组所关联的模型identifier,用于描述\n */\n public String getModelId();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_KEY</code>. 「modelKey」-\n * 组所关联的模型记录ID,用于描述哪一个Model中的记录\n */\n public IXActivity setModelKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_KEY</code>. 「modelKey」-\n * 组所关联的模型记录ID,用于描述哪一个Model中的记录\n */\n public String getModelKey();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_CATEGORY</code>.\n * 「modelCategory」- 关联的category记录,只包含叶节点\n */\n public IXActivity setModelCategory(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.MODEL_CATEGORY</code>.\n * 「modelCategory」- 关联的category记录,只包含叶节点\n */\n public String getModelCategory();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TASK_NAME</code>. 「taskName」- 任务名称\n */\n public IXActivity setTaskName(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TASK_NAME</code>. 「taskName」- 任务名称\n */\n public String getTaskName();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.TASK_SERIAL</code>. 「taskSerial」-\n * 任务单号\n */\n public IXActivity setTaskSerial(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.TASK_SERIAL</code>. 「taskSerial」-\n * 任务单号\n */\n public String getTaskSerial();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_OLD</code>. 「recordOld」-\n * 变更之前的数据(用于回滚)\n */\n public IXActivity setRecordOld(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_OLD</code>. 「recordOld」-\n * 变更之前的数据(用于回滚)\n */\n public String getRecordOld();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_NEW</code>. 「recordNew」-\n * 变更之后的数据(用于更新)\n */\n public IXActivity setRecordNew(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.RECORD_NEW</code>. 「recordNew」-\n * 变更之后的数据(用于更新)\n */\n public String getRecordNew();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.SIGMA</code>. 「sigma」- 用户组绑定的统一标识\n */\n public IXActivity setSigma(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.SIGMA</code>. 「sigma」- 用户组绑定的统一标识\n */\n public String getSigma();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.LANGUAGE</code>. 「language」- 使用的语言\n */\n public IXActivity setLanguage(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.LANGUAGE</code>. 「language」- 使用的语言\n */\n public String getLanguage();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.ACTIVE</code>. 「active」- 是否启用\n */\n public IXActivity setActive(Boolean value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.ACTIVE</code>. 「active」- 是否启用\n */\n public Boolean getActive();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.METADATA</code>. 「metadata」-\n * 附加配置数据\n */\n public IXActivity setMetadata(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.METADATA</code>. 「metadata」-\n * 附加配置数据\n */\n public String getMetadata();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_AT</code>. 「createdAt」-\n * 创建时间\n */\n public IXActivity setCreatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_AT</code>. 「createdAt」-\n * 创建时间\n */\n public LocalDateTime getCreatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_BY</code>. 「createdBy」-\n * 创建人\n */\n public IXActivity setCreatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.CREATED_BY</code>. 「createdBy」-\n * 创建人\n */\n public String getCreatedBy();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_AT</code>. 「updatedAt」-\n * 更新时间\n */\n public IXActivity setUpdatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_AT</code>. 「updatedAt」-\n * 更新时间\n */\n public LocalDateTime getUpdatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_BY</code>. 「updatedBy」-\n * 更新人\n */\n public IXActivity setUpdatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.X_ACTIVITY.UPDATED_BY</code>. 「updatedBy」-\n * 更新人\n */\n public String getUpdatedBy();\n\n // -------------------------------------------------------------------------\n // FROM and INTO\n // -------------------------------------------------------------------------\n\n /**\n * Load data from another generated Record/POJO implementing the common\n * interface IXActivity\n */\n public void from(IXActivity from);\n\n /**\n * Copy data into another generated Record/POJO implementing the common\n * interface IXActivity\n */\n public <E extends IXActivity> E into(E into);\n\n @Override\n public default IXActivity fromJson(io.vertx.core.json.JsonObject json) {\n setOrThrow(this::setKey,json::getString,\"KEY\",\"java.lang.String\");\n setOrThrow(this::setType,json::getString,\"TYPE\",\"java.lang.String\");\n setOrThrow(this::setSerial,json::getString,\"SERIAL\",\"java.lang.String\");\n setOrThrow(this::setDescription,json::getString,\"DESCRIPTION\",\"java.lang.String\");\n setOrThrow(this::setModelId,json::getString,\"MODEL_ID\",\"java.lang.String\");\n setOrThrow(this::setModelKey,json::getString,\"MODEL_KEY\",\"java.lang.String\");\n setOrThrow(this::setModelCategory,json::getString,\"MODEL_CATEGORY\",\"java.lang.String\");\n setOrThrow(this::setTaskName,json::getString,\"TASK_NAME\",\"java.lang.String\");\n setOrThrow(this::setTaskSerial,json::getString,\"TASK_SERIAL\",\"java.lang.String\");\n setOrThrow(this::setRecordOld,json::getString,\"RECORD_OLD\",\"java.lang.String\");\n setOrThrow(this::setRecordNew,json::getString,\"RECORD_NEW\",\"java.lang.String\");\n setOrThrow(this::setSigma,json::getString,\"SIGMA\",\"java.lang.String\");\n setOrThrow(this::setLanguage,json::getString,\"LANGUAGE\",\"java.lang.String\");\n setOrThrow(this::setActive,json::getBoolean,\"ACTIVE\",\"java.lang.Boolean\");\n setOrThrow(this::setMetadata,json::getString,\"METADATA\",\"java.lang.String\");\n setOrThrow(this::setCreatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},\"CREATED_AT\",\"java.time.LocalDateTime\");\n setOrThrow(this::setCreatedBy,json::getString,\"CREATED_BY\",\"java.lang.String\");\n setOrThrow(this::setUpdatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},\"UPDATED_AT\",\"java.time.LocalDateTime\");\n setOrThrow(this::setUpdatedBy,json::getString,\"UPDATED_BY\",\"java.lang.String\");\n return this;\n }\n\n\n @Override\n public default io.vertx.core.json.JsonObject toJson() {\n io.vertx.core.json.JsonObject json = new io.vertx.core.json.JsonObject();\n json.put(\"KEY\",getKey());\n json.put(\"TYPE\",getType());\n json.put(\"SERIAL\",getSerial());\n json.put(\"DESCRIPTION\",getDescription());\n json.put(\"MODEL_ID\",getModelId());\n json.put(\"MODEL_KEY\",getModelKey());\n json.put(\"MODEL_CATEGORY\",getModelCategory());\n json.put(\"TASK_NAME\",getTaskName());\n json.put(\"TASK_SERIAL\",getTaskSerial());\n json.put(\"RECORD_OLD\",getRecordOld());\n json.put(\"RECORD_NEW\",getRecordNew());\n json.put(\"SIGMA\",getSigma());\n json.put(\"LANGUAGE\",getLanguage());\n json.put(\"ACTIVE\",getActive());\n json.put(\"METADATA\",getMetadata());\n json.put(\"CREATED_AT\",getCreatedAt()==null?null:getCreatedAt().toString());\n json.put(\"CREATED_BY\",getCreatedBy());\n json.put(\"UPDATED_AT\",getUpdatedAt()==null?null:getUpdatedAt().toString());\n json.put(\"UPDATED_BY\",getUpdatedBy());\n return json;\n }\n\n}",
"public static AuditType exampleAuditTypeDb() {\r\n return exampleAuditTypeDb(\"testCategory\", \"testAction\");\r\n }",
"public QueryType getType();",
"String getSQLTypeName() throws SQLException;",
"@Schema(description = \"When sub-classing, this defines the sub-class entity name\")\n\n\tpublic String getAtType() {\n\t\treturn type;\n\t}",
"public void updateData(String typeActivity) {\n try {\n Float.parseFloat(this.inputNominal.getText());\n } catch (Exception err) {\n this.alert.showMessageDialog(null, \"Silahkan input nominal dengan benar\");\n }\n \n try {\n this.inputDate.getDate().getTime();\n } catch (Exception err) {\n this.alert.showMessageDialog(null, \"Silahkan input tanggal dengan benar\");\n }\n \n Time time = new Time();\n time.setDate(this.inputDate.getDate());\n \n String description = this.inputDescription.getText();\n float nominal = Float.parseFloat(this.inputNominal.getText());\n String dateAt = time.parseDatetime();\n \n ActivityService activityService = new ActivityService();\n \n activityService\n .setId(this.id)\n .setDescription(description)\n .setNominal(nominal)\n .setDateAt(dateAt)\n .setUser(this.dashboard.user);\n \n try {\n if (typeActivity.equals(\"+\")) {\n activityService.updateIncome();\n } else {\n activityService.updateExpense();\n }\n this.dashboard.refreshUI();\n this.dashboard.resetForm();\n } catch (Exception err) {\n this.alert.showMessageDialog(null, err.getMessage());\n }\n }",
"public void representDataOnActors(String type)\r\n\t{\n\t}",
"public String getType() { return type; }",
"public long getCount(MigrationType type);",
"fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType();",
"QueryType createQueryType();",
"public String getType(){\n return this.type;\n }",
"public void setResult(int type, String typeName, Class javaType) {\r\n ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(\"\");\r\n field.setSqlType(type);\r\n field.setSqlTypeName(typeName);\r\n field.setType(javaType);\r\n getParameters().set(0, field);\r\n }",
"public int getType() {\n return type;\n }",
"public ScGridColumn<AcActionAutoCorrectedLog> newScannedTypeColumn()\n {\n return newScannedTypeColumn(\"Scanned Type\");\n }",
"@Override\n public int getCustomChatRowTypeCount() {\n return 10;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public int getType(){\r\n\t\treturn type;\r\n\t}",
"SellType selectByPrimaryKey(Integer sell_type_id);",
"@Override\r\n\tpublic String getType() {\n\t\treturn type;\r\n\t}",
"@Override\n public int getResultSetType() throws SQLException {\n throw new SQLException(\"tinySQL does not support getResultSetType.\");\n }",
"public interface UserShareActivityMapper {\n\n\n @Select(\"select count(1) from lh_share_activity_info WHERE random=#{random} AND share_user_tid=#{user_tid} AND extend_type=#{extend_type}\")\n public Integer checkSharelink(CreateShareLinkEvent event);\n\n @Insert(\"insert into lh_share_activity_info(share_user_tid,\" +\n \"random,extend_type,end_time,create_time) values(#{share_user_tid},#{random},#{extend_type},#{end_time},now())\")\n public void insertShareLink(UserShareInfo userShareInfo);\n}",
"void setType(String type) {\n this.type = type;\n }",
"void setForPersistentMapping_Type(Type type) {\n this.type = type;\n }",
"public abstract Map<String, Integer> getColumnTypes(String tableName);",
"public String getType(){\r\n return type;\r\n }",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }",
"public ResultSet getAppointmentsByType() throws SQLException {\r\n String statement = \"SELECT DISTINCT Type as Type, COUNT(Type) as AMOUNT FROM appointments GROUP BY Type\";\r\n return conn.prepareStatement(statement).executeQuery();\r\n }",
"public int getType(){\n return type;\n }",
"@Override\n\tpublic int getType() {\n\t\treturn _expandoColumn.getType();\n\t}",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }",
"public String getJdbcType() {\n return this.jdbcType;\n }"
] | [
"0.60907745",
"0.56518316",
"0.5617674",
"0.55851614",
"0.5515899",
"0.5429194",
"0.5411337",
"0.53703195",
"0.53390545",
"0.52778",
"0.52769154",
"0.52413064",
"0.522299",
"0.51914597",
"0.51647353",
"0.51364106",
"0.5066082",
"0.50618553",
"0.50616753",
"0.5050939",
"0.50326174",
"0.5030021",
"0.4985679",
"0.4958322",
"0.4957959",
"0.49510604",
"0.4946326",
"0.4905505",
"0.48941228",
"0.48809934",
"0.48678085",
"0.4857349",
"0.48384783",
"0.48219064",
"0.48139277",
"0.48073718",
"0.48015222",
"0.47932574",
"0.47854418",
"0.47803855",
"0.4779893",
"0.47757474",
"0.4775457",
"0.47738466",
"0.47694823",
"0.476707",
"0.47475797",
"0.47443306",
"0.47397175",
"0.4737887",
"0.47329366",
"0.47224134",
"0.4722358",
"0.47214916",
"0.47144052",
"0.4705132",
"0.47038382",
"0.47038382",
"0.47029248",
"0.46974093",
"0.46939912",
"0.46893182",
"0.46802947",
"0.46766913",
"0.46689025",
"0.46685708",
"0.46670607",
"0.46627983",
"0.46570033",
"0.46537668",
"0.46509942",
"0.46418864",
"0.46355778",
"0.46340042",
"0.4627499",
"0.46269494",
"0.46242628",
"0.46168092",
"0.46166041",
"0.46110654",
"0.46090087",
"0.4602575",
"0.45977417",
"0.4597728",
"0.4592478",
"0.45920688",
"0.45910782",
"0.4585131",
"0.45845562",
"0.45845562",
"0.45844653",
"0.45832726",
"0.45778546",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098",
"0.45751098"
] | 0.0 | -1 |
MyTreeNode newNode = new MyTreeNode(); | public void insert(T x) {
if (data == null) {
// root = new MyTreeNode<T>();
data = x;
return;
}
MyTreeNode<T> node = new MyTreeNode<T>();
node.data = x;
if (x.compareTo(data) < 0) {
if (leftChild == null) {
leftChild = node;
} else {
leftChild.insert(x);
}
// pointerNode = pointerNode.leftChild;
// if (pointerNode == null) {
//
// parent.leftChild = insert;
//
// return;
//
// }
} else if (x.compareTo(data) > 0) {
if (rightChild == null) {
rightChild = node;
} else {
rightChild.insert(x);
}
} else {
if (leftChild == null) {
leftChild = node;
} else {
leftChild.insert(x);
}
if (rightChild == null) {
rightChild = node;
} else {
rightChild.insert(x);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TreeNode() {\n }",
"static TreeNode newNode(int item) \n\t{ \n\t\tTreeNode temp = new TreeNode(); \n\t temp.key = item; \n\t temp.left = null; \n\t temp.right = null; \n\t return temp; \n\t}",
"TreeNode addChild(TreeNode node);",
"public TreeNode() {\n // do nothing\n }",
"public TreeNode(){ this(null, null, 0);}",
"static BTNode newNode(int k)\r\n{\r\n\tBTNode temp = new BTNode();\r\n temp.key = k;\r\n temp.left = temp.right = null;\r\n return temp;\r\n}",
"TreeNode getTreeNode();",
"TreeNode returnNode(TreeNode node);",
"public TtreeNode() {\n\t numberOfNodes++;\n\t }",
"TNode createTNode();",
"public void createNode()\r\n\t{\r\n\t\tTreeNode first=new TreeNode(1);\r\n\t\tTreeNode second=new TreeNode(2);\r\n\t\tTreeNode third=new TreeNode(3);\r\n\t\tTreeNode fourth=new TreeNode(4);\r\n\t\tTreeNode fifth=new TreeNode(5);\r\n\t\tTreeNode sixth=new TreeNode(6);\r\n\t\tTreeNode seventh=new TreeNode(7);\r\n\t\tTreeNode eight=new TreeNode(8);\r\n\t\tTreeNode nine=new TreeNode(9);\r\n\t\troot=first;\r\n\t\tfirst.left=second;\r\n\t\tfirst.right=third;\r\n\t\tsecond.left=fourth;\r\n\t\tthird.left=fifth;\r\n\t\tthird.right=sixth;\r\n\t\tfifth.left=seventh;\r\n\t\tseventh.right=eight;\r\n\t\teight.left=nine;\r\n\t\t\r\n\t}",
"static Node newNode(int key) \n{ \n\tNode node = new Node(); \n\tnode.left = node.right = null; \n\tnode.data = key; \n\treturn node; \n}",
"private static TreeNode getNode() {\n TreeNode treeNode = new TreeNode(1);\n TreeNode left = new TreeNode(2);\n TreeNode right = new TreeNode(3);\n treeNode.left = left;\n treeNode.right = right;\n\n left.left = new TreeNode(4);\n right.left = new TreeNode(5);\n right.right = new TreeNode(6);\n return treeNode;\n }",
"public TwoFourTree()\r\n\t{\r\n\t\troot = new TreeNode(); //assign the root to a new tree node\r\n\t}",
"public abstract TreeNode copy();",
"public TreeNode(String name) {\r\n setName(name);\r\n }",
"protected TreeNode<T> createTreeNode(T value) {\n return new TreeNode<T>(this, value);\n }",
"public Node() {}",
"public Node() {}",
"public Node() {}",
"public Node() {}",
"public TreeNode(T nodeData){\n data = nodeData;\n leftNode = rightNode = null;\n }",
"public abstract TreeNode getNode(int i);",
"static Node newNode(int key) {\n\t\tNode temp = new Node();\n\t\ttemp.key = key;\n\t\ttemp.left = temp.right = null;\n\t\treturn temp;\n\t}",
"public Node(){}",
"void addNode()\n {\n Node newNode = new Node(this.numNodes);\n this.nodeList.add(newNode);\n this.numNodes = this.numNodes + 1;\n }",
"static Node newNode(int item) {\n Node temp = new Node();\n temp.key = item;\n temp.left = temp.right = null;\n return temp;\n }",
"TreeNode(){\n this.elem = null;\n this.left = null;\n this.right = null;\n }",
"public Node() {\n\n }",
"static Node newNode(int data)\n\t{\n\t\tNode node = new Node();\n\t\tnode.data = data;\n\t\tnode.left = node.right = null;\n\t\treturn (node);\n\t}",
"private LeafNode(Token newToken) {\r\n\t\tthis.token = newToken;\r\n\t}",
"void newNode(int nodeId) {\n window.newNode(nodeId);\n }",
"public TtreeNode(TtreeNode node) {\n support = node.support;\n }",
"public LinkedBinaryTree() { // constructs an empty binary tree\n\n }",
"TreeNode(double x) {\n // Constructor. Make a node containing x.\n item = x;\n }",
"public TreeNodeImpl(N value) {\n this.value = value;\n }",
"public Node(){\n }",
"public static GeglNode newNode() {\n\t\treturn com.jibee.gegl.priv.Gegl.INSTANCE.gegl_node_new();\n\t}",
"public TreeNode() { \n this.name = \"\"; \n this.rule = new ArrayList<String>(); \n this.child = new ArrayList<TreeNode>(); \n this.datas = null; \n this.candAttr = null; \n }",
"private void addNewNode(Node newNode) {\r\n\t\tNode[] temp = new Node[this.treeNodes.length -1];\r\n\t\ttemp[0] = newNode;\r\n\r\n\t\tfor(int tempIndex = 1, i=2; i < this.treeNodes.length; i++, tempIndex++) {\r\n\t\t\ttemp[tempIndex] = this.treeNodes[i];\r\n\t\t}\r\n\t\tthis.treeNodes = temp;\r\n\t\tsortLeaves();\r\n\t}",
"protected Node newNode() {\n\t\treturn new RCPOMDocument();\n\t}",
"public myBinaryNode<T> my_root();",
"public interface TreeNode{\r\n\t\r\n\t// enumerated node types\r\n\tpublic enum NodeType {\r\n\t\tMIN {\r\n\t\t\t@Override\r\n\t\t\tpublic NodeType opposite() {\r\n\t\t\t\treturn MAX;\r\n\t\t\t}\r\n\t\t}, MAX {\r\n\t\t\t@Override\r\n\t\t\tpublic NodeType opposite() {\r\n\t\t\t\treturn MIN;\r\n\t\t\t}\r\n\t\t};\r\n\t\r\n\t\tpublic abstract NodeType opposite();\r\n\t};\r\n\t\r\n\t// the type of node represented\r\n\tpublic NodeType getNodeType();\r\n\t\r\n\t// a possibly empty list of children\r\n\tpublic List<TreeNode> getChildrenNodes();\r\n\t\r\n\t// request a new child node after executing a move\r\n\tpublic TreeNode getChildNode(GameMove move) throws IllegalArgumentException;\r\n\t\r\n\t// the parent node of the current node\r\n\t// current Node == getParentNode for ROOT\r\n\tpublic TreeNode getParentNode();\r\n \r\n\t// whether the current node is the root node\r\n\tpublic Boolean isRootNode();\r\n \r\n\t// returns an object modeling some external state \r\n\tpublic GameState getGameState();\r\n \r\n\t// depth of node in tree\r\n\tpublic int getDepth();\r\n \r\n\t// evaluates/scores the leaf node\r\n\tpublic int scoreLeafNode();\r\n}",
"public Tree(){\n root = null;\n }",
"public BTNode(int value){ \r\n node = value; \r\n leftleaf = null;\r\n rightleaf = null;\r\n }",
"void makeTree()\n \t{\n \t\t\t \n \t\tobj.insert(5,\"spandu\");\n \tobj.insert(4,\"anshu\");\n \tobj.insert(3,\"anu\");\n \tobj.insert(6,\"himani\");\n \t\t\n \t}",
"public Leaf(){}",
"public BinaryTree(){}",
"public Node createNode(String p_name) {\n\t\tNode n = new Node(p_name, this);\n\t\taddNode(n);\n\t\treturn n;\n\t}",
"public void add(int value, String name){\n \n Node newNode = new Node(value, name); //Intialize new node \n \n if(root == null){ //If the root is null \n root = newNode; //Set newNode to the root \n }\n else{ \n Node myNode = root; //Create a second new node\n Node parent; //Crete a parent Node \n\n while (true) { //While true....\n \n parent = myNode;//Set parent node to myNode\n \n if (value < myNode.value) { //If the value is less than my node \n \n myNode = myNode.left; //Set myNode to left \n \n if (myNode == null) { //If the value of myNode is null \n \n parent.left = newNode; //Set the left parent node to newNode\n return; \n \n }\n }else {\n \n myNode = myNode.right; //Set myNode to the right Node\n \n if (myNode == null) {\n \n parent.right = newNode; //Set the right node to the newNode\n return;\n \n }\n\n }\n\n }\n \n }\n \n \n }",
"public Tree() // constructor\n\t{ root = null; }",
"private void CreateTree()\r\n\t{\r\n\r\n\t\t//sample nodes which are not identical\r\n\t\ta = new Node(1);\r\n\t\ta.left = new Node(3);\r\n\t\ta.left.left = new Node(5);\r\n\t\ta.right = new Node(2);\r\n\r\n\r\n\t\tb = new Node(2);\r\n\t\tb.left = new Node(1);\r\n\t\tb.right = new Node(3);\r\n\t\tb.right.right = new Node(7);\r\n\t\tb.left.right = new Node(4);\r\n\r\n\t\t//sample nodes which are identical\r\n\t\ta1 = new Node(1);\r\n\t\ta1.left = new Node(3);\r\n\t\ta1.left.left = new Node(5);\r\n\t\ta1.right = new Node(2);\r\n\r\n\r\n\t\tb1 = new Node(1);\r\n\t\tb1.left = new Node(3);\r\n\t\tb1.right = new Node(2);\r\n\t\tb1.left.left = new Node(5); \r\n\t}",
"public TreeNode(Object value)\r\n\t{\r\n\t\tthis(null, value);\r\n\t}",
"public Node() {\r\n\t}",
"public Node() {\r\n\t}",
"public Node(){\n\n\t\t}",
"public BinaryTree(E item) {\n\t\troot = new TreeNode<E>(item);\n\t}",
"void addNode(int node);",
"public myBinaryTree<T> my_left_tree() throws myException;",
"public Node() {\n\t}",
"public TreeImpl(T dato) {\r\n\t\traiz = new NodeImpl<T>(dato, null);// El null dice que es raiz\r\n\t}",
"Node(Object newItem){\n item = newItem; //--points to a different\n next = null;\n }",
"public TreeNode(Object e) {\n element = e;\n //this.parent = null;\n left = null;\n right = null;\n }",
"public Node(){\n this(9);\n }",
"private Node() {\n\n }",
"public void addNode(Node node){subNodes.add(node);}",
"public Node()\n {\n this.name=\"/\";\n this.type=0;\n this.stage=0;\n children=new ArrayList<Node>();\n }",
"public abstract void addChild(Node node);",
"Node<X> make(Node<X> left, Node<X> right);",
"public TreeNode(String syscall){\r\n\t\t\tthis.syscall = syscall;\r\n\t\t\tchildren = new ArrayList<TreeNode>();\r\n\t\t\tfrequency = 0;\r\n\t\t\t//parent = null;\r\n\t\t\tindex = -1;\r\n\t\t}",
"public void insertNode(T insertValue){\n if(root == null)\n root = new TreeNode<T>(insertValue);\n else\n root.insert(insertValue);\n }",
"private static void treeInsert(String newItem) {\n if (root == null) {\n // The tree is empty. Set root to point to a new node containing\n // the new item. This becomes the only node in the tree.\n root = new TreeNode(newItem);\n return;\n }\n TreeNode runner; // Runs down the tree to find a place for newItem.\n runner = root; // Start at the root.\n while (true) {\n if (newItem.compareTo(runner.item) < 0) {\n // Since the new item is less than the item in runner,\n // it belongs in the left subtree of runner. If there\n // is an open space at runner.left, add a new node there.\n // Otherwise, advance runner down one level to the left.\n if (runner.left == null) {\n runner.left = new TreeNode(newItem);\n return; // New item has been added to the tree.\n } else\n runner = runner.left;\n } else {\n // Since the new item is greater than or equal to the item in\n // runner it belongs in the right subtree of runner. If there\n // is an open space at runner.right, add a new node there.\n // Otherwise, advance runner down one level to the right.\n if (runner.right == null) {\n runner.right = new TreeNode(newItem);\n return; // New item has been added to the tree.\n } else\n runner = runner.right;\n }\n } // end while\n }",
"private ITree.Node createNode(int i) {\n if (i < currentSize) {\n ITree.Node node = new ITree.Node(this.elements[i]);\n node.setLeftNode(createNode(this.leftChild(i)));\n node.setRightNode(createNode(this.rightChild(i)));\n\n return node;\n }\n return null;\n }",
"public TreeNode (TreeNode parent)\r\n {\r\n if (logger.isFineEnabled()) {\r\n logger.fine(\"new TreeNode parent=\" + parent);\r\n }\r\n\r\n if (parent != null) {\r\n parent.addChild(this);\r\n }\r\n }",
"public Node(T data) {this.data = data;}",
"private TreeNode(int x) {\n val = x;\n left = null;\n right = null;\n }",
"protected void newNode (ManagedConfig config)\n {\n // presently we must clear the filter\n _filterPanel.clearFilter();\n\n // find the parent under which we want to add the node\n ConfigTreeNode snode = _tree.getSelectedNode();\n ConfigTreeNode parent = (ConfigTreeNode)(snode == null ?\n _tree.getModel().getRoot() : snode.getParent());\n\n // create a node with a unique name and start editing it\n String name = parent.findNameForChild(\n _msgs.get(config == null ? \"m.new_folder\" : \"m.new_config\"));\n ConfigTreeNode child = new ConfigTreeNode(name, config);\n ((DefaultTreeModel)_tree.getModel()).insertNodeInto(\n child, parent, parent.getInsertionIndex(child));\n _tree.startEditingAtPath(new TreePath(child.getPath()));\n DirtyGroupManager.setDirty(group, true);\n }",
"public TreeNode()\r\n\t\t{\r\n\t\t\thead = null; //no data so set head to null\r\n\t\t}",
"public TreeNode(Object initValue)\r\n {\r\n this(initValue, null, null);\r\n }",
"TreeNode(Point point) \r\n {\r\n if (point == null) throw new IllegalArgumentException();\r\n this.point = point;\r\n }",
"private static Node getTree()\r\n {\r\n Node node1 = new Node( 1 );\r\n Node node2 = new Node( 2 );\r\n Node node3 = new Node( 3 );\r\n Node node4 = new Node( 4 );\r\n Node node5 = new Node( 5 );\r\n Node node6 = new Node( 6 );\r\n Node node7 = new Node( 7 );\r\n\r\n node1.left = node2;\r\n node1.right = node3;\r\n\r\n node2.left = node4;\r\n node2.right = node5;\r\n\r\n node3.left = node6;\r\n node3.right = node7;\r\n return node1;\r\n }",
"public void insert(Node n);",
"static Node newNode(int key) {\n\t\tNode temp = new Node();\n\t\ttemp.data = key;\n\t\ttemp.next = null;\n\t\treturn temp;\n\t}",
"@Override\n protected AVLTreeNode<E> createTreeNode(E value) {\n return new AVLTreeNode<E>(tree, this, value);\n }",
"public BinaryTree(){\r\n root = null;\r\n }",
"public static TreapNode newNode(int key)\n {\n TreapNode temp = new TreapNode();\n temp.key = key;\n temp.priority = (r.nextInt(100));\n temp.left = temp.right = null;\n return temp;\n }",
"public static void main(String[] args) {\n MyBinaryTree tree = new MyBinaryTree();\n\n TreeNode n45 = new TreeNode(45);\n TreeNode n1 = new TreeNode(66);\n TreeNode n2 = new TreeNode(66);\n TreeNode n3 = new TreeNode(66);\n TreeNode n4 = new TreeNode(66);\n\n tree.root = n45;\n n45.left = n1;\n n45.right = n2;\n\n n1.right = n3;\n n2.left = n4;\n }",
"private Node addNode(String nodeName)\r\n\t{\r\n\t final Node n = new Node(nodeName, attributes, numNodes());\r\n\t if (nodeMap.put(nodeName, n) != null)\r\n\t\tthrow new RuntimeException(\"Node <\"+n+\"> already exists!\");\r\n\t return n;\r\n\t}",
"public BinarySearchTree() {}",
"public MyStack() {\n root=new ListNode(0);\n p =root;\n }",
"public TreeRootNode() {\n super(\"root\");\n }",
"public TreeNode(int ID) {\n this.ID = ID;\n right = null;\n left = null;\n }",
"private static Node createNode(int value) {\n\t\treturn new Node(value);\n\t}",
"public Tree()\n\t{\n\t\tsuper(\"Tree\", \"tree\", 0);\n\t}",
"public ETreeNode(T userObject) {\n super(userObject);\n children = null; // not initialized (lazy)\n }",
"public Tree(String label) {\n treeName = label;\n root = null;\n }",
"TreeNode(String str) {\n // Constructor. Make a node containing the specified string.\n // Note that left and right pointers are initially null.\n item = str;\n }",
"public void root(Node n) {}",
"TreeNode (T data) {\n\t\tthis(data, null, null, null, null);\n\t}",
"public AVLTree() {\r\n\r\n\r\n this.root = new AVLTreeNode(9);\r\n Delete(9);\r\n }",
"public void insertNode(int d){\n if(root == null){\n root = new TreeNode(d);\n }\n else{\n root.insert(d);\n }\n }"
] | [
"0.73970044",
"0.7155957",
"0.71440285",
"0.7137112",
"0.707384",
"0.7059773",
"0.700888",
"0.6983895",
"0.6957836",
"0.6869132",
"0.6827962",
"0.68250036",
"0.68168354",
"0.67264265",
"0.66384256",
"0.6632812",
"0.6611936",
"0.65861857",
"0.65861857",
"0.65861857",
"0.65861857",
"0.6562684",
"0.6555156",
"0.6549139",
"0.65304345",
"0.64997387",
"0.64945465",
"0.6489464",
"0.6489229",
"0.6483835",
"0.64800495",
"0.64704204",
"0.6447321",
"0.6443356",
"0.6418974",
"0.6390718",
"0.6376726",
"0.63650554",
"0.6358827",
"0.63583463",
"0.6347322",
"0.63355196",
"0.63325125",
"0.63271785",
"0.62802505",
"0.627599",
"0.62628144",
"0.6257827",
"0.6251338",
"0.6227105",
"0.62089807",
"0.61915845",
"0.6182117",
"0.6165195",
"0.6165195",
"0.6157691",
"0.61560434",
"0.61507475",
"0.61469173",
"0.61454254",
"0.61375695",
"0.61289716",
"0.6126594",
"0.61176723",
"0.6114182",
"0.6111276",
"0.6109791",
"0.6102108",
"0.6093633",
"0.6082683",
"0.608164",
"0.60696924",
"0.60669893",
"0.6061235",
"0.60590637",
"0.605531",
"0.6029524",
"0.6026977",
"0.60235786",
"0.6023341",
"0.60200185",
"0.60130346",
"0.6008251",
"0.6005623",
"0.6003701",
"0.60032606",
"0.5995506",
"0.5986019",
"0.5973512",
"0.59725094",
"0.5972214",
"0.5971321",
"0.59643745",
"0.59638315",
"0.59617776",
"0.59545827",
"0.59522307",
"0.5949142",
"0.5940656",
"0.5938177",
"0.59379035"
] | 0.0 | -1 |
Object methods Adds info to a hashMap and returns false if it already exists and true if added | public boolean add(RegistrationPlate plate, String owner){
if(this.registrationList.containsKey(plate)){
return false;
}
else {
this.registrationList.put(plate, owner);
return true;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tprivate boolean checkAndAdd(DefinitionName key, DmsDefinition obj, HashMap map){\n if (map.containsKey(key))\n return(false);\n else\n map.put(key,obj);\n\n return(true);\n }",
"@SuppressWarnings(\"unchecked\")\n\tprivate boolean checkAndAdd(Object key, Object obj, @SuppressWarnings(\"rawtypes\") TreeMap map){\n if (map.containsKey(key))\n return(false);\n else\n map.put(key,obj);\n\n return(true);\n }",
"public boolean add(Object o) {\n\t\treturn map.put(o, PRESENT) == null;\n\t}",
"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 boolean add(K key, V value){\r\n int loc = find(key);\r\n if(needToRehash()){\r\n rehash();\r\n }\r\n Entry<K,V> newEntry = new Entry<>(key,value);\r\n if(hashTable[loc]!= null && hashTable[loc].equals(key))\r\n return false;\r\n else{\r\n hashTable[loc] = newEntry;\r\n size++;\r\n return true;\r\n }\r\n }",
"public boolean add(E o) {\r\n if (o == null)\r\n return false;\r\n if (this.map.containsKey(o.hashCode())) {\r\n return false;\r\n }\r\n return this.map.put(o.hashCode(), o) == null;\r\n }",
"boolean add(Object key, Object value);",
"public boolean add(E element){\n Object result = map.put(element, \"\");\n return (result == null);\n }",
"public boolean add(String key, String value){\r\n // takes a key and turns it into a hashed thing\r\n int arrIndex = hash(key);\r\n\r\n Entry entry = new Entry(key, value);\r\n\r\n if (hashTableArray[arrIndex] == null){\r\n hashTableArray[arrIndex] = new LinkedList<>();\r\n }\r\n if(contains(key)) {\r\n return false; // the key is already in use, so don't use it.\r\n } else {\r\n hashTableArray[arrIndex].add(entry); // add the key and value pair to the linked list.\r\n }\r\n return true;\r\n }",
"public synchronized boolean add(String key, String content) {\n if (store.get(key) != null) {\n logger.warning(\"Key \" + key + \" already in store\");\n return false;\n }\n logger.info(\"Adding key \" + key);\n ensureMapSize();\n MapData mapData = new MapData();\n mapData.setContent(content);\n mapData.setTime((new Date()).getTime());\n store.put(key, mapData);\n tally.put(key, 0);\n return true;\n }",
"public boolean add(T entry) {\n return false;\n }",
"@Override\n public boolean contains(Object o) {\n return map.containsKey(o);\n }",
"@Override\n\tpublic boolean create(Eleve o) {\n\t\tmap.put(o.getId(),o);\n\t\treturn true;\n\t}",
"public boolean put( AnyType key , AnyType value)\n { \n int currentPos = findPos( key );\t//TODO: test this\n \n if( array[ currentPos ] == null )\n ++occupied;\n array[ currentPos ] = new HashEntry<>(key, value);\n \n theSize++;\n \n // Rehash\n if( occupied > array.length / 2 )\n rehash( );\n \n return true;\n }",
"public boolean isHashMap();",
"public boolean addNode(N node)\r\n/* 32: */ {\r\n/* 33: 68 */ assert (checkRep());\r\n/* 34: 69 */ if (!this.map.containsKey(node))\r\n/* 35: */ {\r\n/* 36: 70 */ this.map.put(node, new HashMap());\r\n/* 37: 71 */ return true;\r\n/* 38: */ }\r\n/* 39: 73 */ return false;\r\n/* 40: */ }",
"public boolean add( String key, T value )\r\n {\r\n HashMap<String,T> top = tables.peekFirst();\r\n T result = top.get( key );\r\n top.put( key, value );\r\n return result==null;\r\n }",
"public boolean\tadd(String e) {\n\t\tboolean notExist = false;\n\t\tif (map.put(e, PRESENT)==null) {\n\t\t\tnotExist = true;\n\t\t}\n\t\treturn notExist;\n\t}",
"public boolean add(T newEntry);",
"public boolean add(T val) {\n Integer idx = hmap.get(val);\n if (idx == null) {\n int i = list.size();\n list.add(val);\n idx = new Integer(i);\n hmap.put(val, idx);\n return true;\n }\n return false;\n }",
"public boolean add(E key)\r\n {\r\n if(this.contains(key))\r\n {\r\n return false;\r\n }\r\n\r\n else\r\n {\r\n super.add(key);\r\n }\r\n return true;\r\n }",
"public boolean add(X x, Identification identification) {\n return map.put(x, identification) == null;\n }",
"public boolean add(String e) {\r\n \tSystem.out.println(e + \" \" + PRESENT);\r\n return map.put(e, PRESENT)==null;\r\n }",
"private boolean visited(int hashCode){\n \t\t//.add returns true if hashCode was added (meaning hashCode haven't been added before)\n \t\tif(visited.add(hashCode))\n \t\t\treturn false;\n \t\telse\n \t\t\treturn true;\n \t}",
"public boolean put(final K key, final V value)\n {\n // Check if it already exists first\n if (this.hashMap.containsKey(key))\n {\n return false;\n }\n\n // Add the new head element\n this.addNewHead(key, value);\n\n return true;\n }",
"@Override\n public void addMapInfo(GameMapInfo mapInfo) {\n }",
"@Test(timeout=1000)\n\tpublic void testSimpleAdd() {\n\t\thashmap.add(s1);\n\t\tStudent[] array = hashmap.getArray();\n\t\tboolean success = false;\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tStudent s = array[i];\n\t\t\tif (s1.equals(s)){\n\t\t\t\tsuccess = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tassertTrue(\"add() failed. Element not found in array\", success);\n\t}",
"@Override\n\tpublic boolean add(Object obj) {\n\t\treturn util.add(obj);\n\t}",
"boolean containsInfo(\n int key);",
"@Override\n public boolean contains(Object o) {\n return theMap.keySet().contains(o);\n }",
"public int addMap(GlobalMap otherMap){\r\n\t\tif(otherMap.getMap().size() < 3) return -1;\r\n\t\t/*map exists, but i need to re-mix it*/\r\n\t\tif(this.getCT() > (SimClock.getTime() - TIMEOUT)){\r\n\t\t\tthis.mapExists = false;\r\n\t\t}\r\n\t\tif(mapExists && synced == -1){\r\n\t\t\tlocalmix();\r\n\t\t}\t\r\n\t\t/*if i cant make a map yet, i use the one i got*/\r\n\t\telse if(!mapExists){\r\n\t\t\tint c = makeGlobal();\r\n\t\t\tif(c < 0){\r\n\t\t\t\tif(otherMap.getCT() > (SimClock.getTime() - TIMEOUT)){\r\n\t\t\t\t\tthis.globalMap = otherMap.globalMap;\r\n\t\t\t\t\tthis.myMapNodes = otherMap.myMapNodes;\r\n\t\t\t\t\tthis.synced = 1;\r\n\t\t\t\t\tthis.mapExists = true;\r\n\t\t\t\t\tthis.ref_id = otherMap.ref_id;\r\n\t\t\t\t\tthis.ref_c = otherMap.ref_c;\r\n\t\t\t\t\t//core.Debug.p(\"a\");\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tthis.synced = 0;\r\n\t\t\t\tthis.mapExists = true;\r\n\t\t\t\t//core.Debug.p(\"b\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t/*if i have an updated map, just join them preferring the one that used newer data*/\r\n\t\tif(mapExists && (synced == 0 || synced == 1)){\r\n\t\t\t//core.Debug.p(\"nene\");\r\n\t\t\tboolean newer = this.updateTime < otherMap.updateTime ? true : false;\r\n\t\t\t//have to be careful with shifted values!\r\n\t\t\tCoord c = new Coord(this.ref_c.getX() - otherMap.ref_c.getX(), this.ref_c.getY() - otherMap.ref_c.getY());\r\n\t\t\tMap<Integer, Coord> othershifted = shiftMap(otherMap.getMap(), c);\r\n\t\t\t\r\n\t\t\tfor(Map.Entry<Integer, Coord> node : othershifted.entrySet()){\r\n\t\t\t\tif(globalMap.containsKey(node.getKey())){\r\n\t\t\t\t\tif(newer) globalMap.replace(node.getKey(), node.getValue());\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tglobalMap.put(node.getKey(), node.getValue());\r\n\t\t\t\t\tmyMapNodes.add(node.getKey());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn myMapNodes.size();\r\n\t\t}\r\n\t\telse return -1;\r\n\t}",
"public boolean addData(Data data, boolean overwrite){\r\n\t\t// Verify that the data exists\r\n\t\tif(this.dataExists(data)) {\r\n\t\t\t// Verify user action to overwrite data\r\n\t\t\tif(overwrite) {\r\n\t\t\t\t// User wants to overwrite data, remove old entry\r\n\t\t\t\tthis.data.remove(data.getKeyValue());\r\n\t\t\t} else {\r\n\t\t\t\t// User does not wish to overwrite this value\r\n\t\t\t\treturn false;\r\n\t\t\t}\t// end if\r\n\t\t}\r\n\t\t\r\n\t\t// Add the object to the map\r\n\t\tthis.data.put(data.getKeyValue(), data);\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"boolean add(Object object) ;",
"public boolean add(int paramInt)\n/* */ {\n/* 179 */ ensureCapacity(this.m_entryCount + 1);\n/* 180 */ int i = -internalFind(paramInt) - 1;\n/* 181 */ if (i >= 0) {\n/* 182 */ this.m_entryCount += 1;\n/* 183 */ this.m_flagTable[i] = true;\n/* 184 */ this.m_keyTable[i] = paramInt;\n/* 185 */ return true;\n/* */ }\n/* 187 */ return false;\n/* */ }",
"public boolean add(E e) {\n if (contains(e)) {\n return false;\n }\n int i = hash(e);\n table[i] = new HashNode<E>(e, table[i]);\n size++;\n return true;\n }",
"private static boolean putInHashMap(Node head) {\r\n\t\tboolean hasloop = false;\r\n\t\tHashSet<Node> nodeSet = new HashSet();\r\n\t\twhile (head != null) {\r\n\t\t\tif (nodeSet.contains(head)) {\r\n\t\t\t\thasloop = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tnodeSet.add(head);\r\n\t\t\thead = head.next;\r\n\t\t}\r\n\r\n\t\treturn hasloop;\r\n\t}",
"@Override\n synchronized public void addEntry(Entry e) throws RemoteException {\n if (this.map.containsKey(e.getHash())) {\n return;\n }\n //System.out.println(\"Mapper.addEntry() :: entry=\"+e.getHash()+\",\"+e.getLocation());\n this.map.put(e.getHash(), e.getLocation());\n printAct(\">added entry:\" + e.hash);\n }",
"public boolean add(int key) {\n Entry tab[] = table;\n int index = (key & 0x7FFFFFFF) % tab.length;\n for (Entry e = tab[index]; e != null; e = e.next) {\n if (e.key == key) {\n return false;\n }\n }\n\n if (count >= threshold) {\n // Rehash the table if the threshold is exceeded\n rehash();\n\n tab = table;\n index = (key & 0x7FFFFFFF) % tab.length;\n }\n\n // Creates the new entry.\n Entry e = new Entry(key, tab[index]);\n tab[index] = e;\n count++;\n return true;\n }",
"public boolean addEntry(AddressEntry addressEntry) {\n return this.entrySet.add(addressEntry);\n }",
"@SuppressWarnings(\"unchecked\")\n public MapEntryImpl addEntry(MapEntryImpl newEntry, Object key, int hash) {\n int i = indexOfKey(key, hash);\n MapEntryImpl entry = entries[i];\n if (entry != null) return entry; // Entry exists\n entries[i] = newEntry;\n newEntry.key = key;\n newEntry.hash = hash;\n // Check if we need to resize.\n if ((++count << EMPTINESS_LEVEL) > entries.length) {\n resize(entries.length << 1);\n }\n return newEntry;\n }",
"public boolean add(BSTMapNode element) \n\t{\n\t\tif(element.getKey() < this.key)\n\t\t{\n\t\t\tif(this.left == null)\n\t\t\t{\n\t\t\t\tBSTMapNode e = new BSTMapNode(null, null, this, element.getKey(), element.getValue());\n\t\t\t\tthis.left = e;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tthis.left.add(element);\n\t\t\t}\n\t\t}\n\t\telse if(element.getKey() > this.key)\n\t\t{\n\t\t\tif(this.right == null)\n\t\t\t{\n\t\t\t\tBSTMapNode e = new BSTMapNode(null, null, this, element.getKey(), element.getValue());\n\t\t\t\tthis.right = e;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.right.add(element);\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"void setHashMap();",
"public E tryAdd(E o) {\r\n E found = this.map.get(o.hashCode());\r\n if (found != null) {\r\n return found;\r\n }\r\n this.map.put(o.hashCode(), o);\r\n return o;\r\n }",
"public boolean add(K key, V value);",
"public void put(int key, String name){\n\t\tif(get(key)==null){\n\t\t\thashMap[key] = name;\n\t\t\tSystem.out.println(name + \" stored in map under this key \" + key);\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(key + \" is already in the map\");\n\t\treturn;\n\t}",
"boolean add(Object obj);",
"boolean add(Object obj);",
"@Override\n public boolean add(E item) {\n if (item == null)\n throw new IllegalArgumentException(\"null invalid value for bag\");\n Counter count = map.get(item);\n if (count == null)\n map.put(item, new Counter(1));\n else\n count.increment();\n return true;\n }",
"@Test(timeout=1000)\n\tpublic void testAddRemoveContains() {\n\t\thashmap.add(s1);\n\t\thashmap.add(s2);\n\t\thashmap.remove(s1);\n\t\tassertFalse(\"Student on was removed from the HashMap but the contains method still returns true\", hashmap.contains(s1));\n\t}",
"@Override\n public boolean contains(Object item) {\n if (item == null)\n return false;\n return map.containsKey(item);\n }",
"protected boolean putIntoCache(String key, String value) throws Exception {\n \t// Ensure the value is in cache. We want to avoid it being in the storage but not\n \t// the cache as this can lead to synchronization errors:\n \tboolean inserted = evictAndReplace(key);\n \t\n \t// Perform an insert:\n map.put(key, value);\n \tusageCounter.put(key, usageCounter.get(key) + 1);\n \t\n \treturn inserted;\n }",
"public boolean add (T item){\n\t\t\t\tint index = (item.hashCode() & Integer.MAX_VALUE) % table.length;\n\t\t\t\t\n\t\t\t\t// find the item and return false if item is in the AVLTree\n\t\t\t\tif (table[index].contains((T)item))\n\t\t\t\t\treturn false;\n\t\t\t\t\n\t\t\t\tif (!table[index].add(item))\n\t\t\t\t\treturn false;\n\t\t\t\t\n\t\t\t\t// we will add item, so increment modCount\n\t\t\t\tmodCount++;\n\n\t\t\t\thashTableSize++;\n\n\t\t\t\tif (hashTableSize >= tableThreshold)\n\t\t\t\t\trehash(2 * table.length + 1);\n\n\t\t\t\treturn true;\n\t}",
"public Object put(String aName, Object anObj)\n{\n // If map shared, clone it for real\n if(_attrMap.isShared())\n _attrMap = _attrMap.cloneX();\n \n // Put value (or remove if null)\n return anObj!=null? _attrMap.put(aName, anObj) : _attrMap.remove(aName);\n}",
"public boolean put(String key, String value);",
"public boolean add(K key, V val){\n\t\tint idx=getIndex(key);\n\t\tHashNode< K,V> head = myHashTable.get(idx);\n\t\twhile(head!=null){\n\t\t\tif(head.isKey(key)){\n\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\thead=head.next();\n\t\t}\n\t\tsize++;\n\t\thead=myHashTable.get(idx);\n\t\tHashNode<K,V> newNode = new HashNode<K,V>(key,val);\n\t\tnewNode.setNext(head);\n\t\tmyHashTable.set(idx, newNode);\n\t\t if ((1.0*size)/numOfBins >= 0.7)\n\t {\n\t ArrayList<HashNode<K, V>> temp = myHashTable;\n\t myHashTable = new ArrayList<>();\n\t numOfBins = 2 * numOfBins;\n\t size = 0;\n\t for (int i = 0; i < numOfBins; i++)\n\t \tmyHashTable.add(null);\n\t \n\t for (HashNode<K, V> headNode : temp)\n\t {\n\t while (headNode != null)\n\t {\n\t add(headNode.getKey(), headNode.getValue());\n\t headNode = headNode.next();\n\t }\n\t }\n\t }\n\t\treturn true;\n\t}",
"public void addToMap(){\n\t\tInteger hc = currentQuery.hashCode();\n\t\tif (!hmcache.containsKey(hc)) {\n\t\t\thmcache.put(hc, 0);\n\t\t}else{\n\t\t\tInteger val = hmcache.get(hc) + (currentQuery.getWords().size());\n\t\t\thmcache.put(hc, val);\n\t\t}\n\t}",
"public boolean addNode(T node) {\n\t\tif (node == null) {\n\t\t\tthrow new NullPointerException(\"The input node cannot be null.\");\n\t\t}\n\t\tif (graph.containsKey(node))\n\t\t\treturn false;\n\n\t\tgraph.put(node, new HashMap<T, Path>());\n\t\treturn true;\n\t}",
"public boolean containsInfo(\n int key) {\n \n return internalGetInfo().getMap().containsKey(key);\n }",
"public static boolean addToMultiMap(HashMap mm, Object from, Object to) {\n Set s = (Set) mm.get(from);\n if (s == null) {\n mm.put(from, s = NodeSet.FACTORY.makeSet());\n }\n return s.add(to);\n }",
"public boolean contains(Object o) {\r\n return this.map.containsKey(o.hashCode());\r\n }",
"public boolean put(K key, V value)\r\n\t{\r\n\t\treturn data.addUpdate(new Entry(key, value));\r\n\t}",
"@Override\n\tpublic boolean addHotelroomPo(HotelroomPo hotelroomPo) {\n\t\tString hotelroomId = String.valueOf(hotelroomPo.getHotelID())\n\t\t\t\t+String.valueOf(hotelroomPo.getRoomID());\n\t\tif(map.get(hotelroomId)==null){\n\t\t\thotelroomDataHelper.addHotelroom(hotelroomPo);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public static void main(String[] args) {\n Map<String, String> map = new HashMap<String, String>();\r\n map.put(\"a\", \"A\");\r\n map.put(\"b\", \"B\");\r\n map.put(\"c\", \"C\");\r\n \r\n \r\n int h = (new TestMap()).hashCode();\r\n \r\n String a = map.get(\"a\");\r\n \r\n \r\n \r\n \r\n for (String o : map.keySet()){\r\n \tSystem.out.println(o);\r\n \tSystem.out.println(map.get(o));\r\n \t\r\n }\r\n \r\n Map<String, String> map2 = new HashMap<String, String>();\r\n map2.putAll(map);\r\n \r\n for (Map.Entry<String, String> o : map2.entrySet()){\r\n \tSystem.out.println(o.getKey());\r\n \tSystem.out.println(o.getValue());\r\n }\r\n \r\n System.out.println(map2.containsValue(\"A\")); \r\n System.out.println(map2.equals(map)); \r\n\r\n\t}",
"public final <T> boolean insert(final Class<T> key, T value) {\n\n if(contains(key))\n return false;\n\n _data.put(key, value);\n return true;\n }",
"public boolean put( KEY key, OBJECT object );",
"public void checkNewAdded(Instance add) {\n List<Instance> keySet = new LinkedList<Instance>();\n keySet.addAll(backRelation.keySet());\n Boolean added = false;\n for (Instance inst : keySet) {\n if (inst.getName().equals(add.getName()) || inst.getMd5().equals(add.getMd5())) {\n added = true;\n ArrayList<Instance> tmp = backRelation.get(inst);\n tmp.add(add);\n backRelation.remove(inst);\n backRelation.put(inst, tmp);\n if (relatedInstances.containsKey(inst)) {\n ArrayList<Instance> tmpRI = relatedInstances.get(add);\n tmpRI.add(inst);\n relatedInstances.remove(add);\n relatedInstances.put(add, tmpRI);\n\n } else {\n ArrayList<Instance> tmpRI = new ArrayList<Instance>();\n tmpRI.add(inst);\n relatedInstances.put(add, tmpRI);\n }\n\n }\n }\n if (added) {\n instances.add(add);\n }\n }",
"public boolean add(K key, V value) {\n if (configTable.containsKey(key)) {\n return false;\n }\n configTable.put(key, value);\n return true;\n }",
"private void addSeenInfo(SeenInfo value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureSeenInfoIsMutable();\n seenInfo_.add(value);\n }",
"public boolean addStreet(Street street)\r\n {\r\n streets_map.add(street);\r\n return true;\r\n }",
"@SuppressWarnings(\"unchecked\")\n protected void onAdd()\n {\n // issue add notification\n ObservableHashMap map = ObservableHashMap.this;\n if (map.hasListeners())\n {\n map.dispatchEvent(new MapEvent(map, MapEvent.ENTRY_INSERTED,\n getKey(), null, getValue()));\n }\n }",
"public boolean contains(Object o) {\n\t\treturn map.containsKey(o);\n\t}",
"public static void main(String[] args) {\n\t\tHashMap<Integer,String> map=new HashMap<Integer,String>();//Creating HashMap \n\t\t map.put(1,\"Mango\"); //Put elements in Map \n\t\t map.put(2,\"Apple\"); \n\t\t map.put(3,\"Banana\"); \n\t\t map.put(4,\"Grapes\"); \n\t\t \n\t\t System.out.println(\"Iterating Hashmap...\"); \n\t\t for(Map.Entry m : map.entrySet()){ \n\t\t System.out.println(m.getKey()+\" \"+m.getValue()); \n\t\t } \n\t\t System.out.println(\"*************no duplicate keys*********************\");\n\t\t \n\t\t HashMap<Integer,String> map1=new HashMap<Integer,String>();//Creating HashMap \n\t\t map1.put(1,\"Mango\"); //Put elements in Map \n\t\t map1.put(2,\"Apple\"); \n\t\t map1.put(3,\"Banana\"); \n\t\t map1.put(1,\"Grapes\"); //trying duplicate key \n\t\t \n\t\t System.out.println(\"Iterating Hashmap...\"); \n\t\t for(Map.Entry m : map1.entrySet()){ \n\t\t System.out.println(m.getKey()+\" \"+m.getValue()); \n\t\t } \n\t\t System.out.println(\"**********adding elements********************\");\n\t\t \n\t\t HashMap<Integer,String> hm=new HashMap<Integer,String>(); \n\t\t System.out.println(\"Initial list of elements: \"+hm); \n\t\t hm.put(100,\"Amit\"); \n\t\t hm.put(101,\"Vijay\"); \n\t\t hm.put(102,\"Rahul\"); \n\t\t \n\t\t System.out.println(\"After invoking put() method \"); //{}\n\t\t for(Map.Entry m:hm.entrySet()){ \n\t\t System.out.println(m.getKey()+\" \"+m.getValue()); \n\t\t } \n\t\t \n\t\t hm.putIfAbsent(103, \"Gaurav\"); \n\t\t System.out.println(\"After invoking putIfAbsent() method \"); \n\t\t for(Map.Entry m:hm.entrySet()){ \n\t\t System.out.println(m.getKey()+\" \"+m.getValue()); \n\t\t } \n\t\t HashMap<Integer,String> map2=new HashMap<Integer,String>(); \n\t\t map2.put(104,\"Ravi\"); \n\t\t map2.putAll(hm); \n\t\t System.out.println(\"After invoking putAll() method \"); \n\t\t for(Map.Entry m:map2.entrySet()){ \n\t\t System.out.println(m.getKey()+\" \"+m.getValue()); \n\t\t } \n\t\t map2.remove(100);\n\t\t System.out.println(map2);\n\t\t map2.remove(102,\"Rahul\");\n\t\t System.out.println(map2);\n\t\t System.out.println(\"**********replace elements********************\");\n\t\t map2.replace(103, \"rupom\");\n\t\t System.out.println(map2);\n\t\t map2.replace(101, \"Vijay\", \"roy\");\n\t\t System.out.println(map2);\n\t\t \n\t\t\t \n\t\t \n\n\t\t \n\t\t \n\n\t}",
"@Test\n public void testContainsKey() {\n System.out.println(\"containsKey\");\n \n // GIVEN\n SimpleStyleableMap instance = new SimpleStyleableMap();\n \n // WHEN getOrDefault and no value has been put\n Object key = \"dummyKey\";\n boolean result = instance.containsKey(key);\n \n // THEN must return false\n assertEquals(false, result);\n \n // WHEN getOrDefault and a value has been put\n Object putValue=\"putValue\";\n instance.put(key, putValue );\n result = instance.containsKey(key);\n \n // THEN must returnt rue\n assertEquals(true, result);\n \n // WHEN key is removed\n instance.remove(key);\n result = instance.containsKey(key);\n // THEN must return default value\n assertEquals(false, result);\n }",
"void addHasLatitude(Object newHasLatitude);",
"public boolean insert(K key, V value) {\n boolean isInserted = false;\n\n if (key != null) {\n if ((double) amountOfEntries / container.length > loadFactor) {\n extendContainer();\n }\n int index = indexFor(key);\n Entry<K, V> entry = container[index];\n if (entry == null) {\n //add new\n Entry newEntry = new Entry(key, value);\n container[index] = newEntry;\n amountOfEntries++;\n } else if (entry.key.equals(key)) {\n //update\n entry.value = value;\n }\n }\n return isInserted;\n }",
"public boolean addEntry(@NotNull Entry<T> entry) {\n if (entries.contains(entry)) {\n return false;\n }\n\n entries.add(entry);\n entry.addValueChangedListener(entryValueChangedListener);\n return true;\n }",
"public void add(String masterKey, HashMap<String, String> featureInfo) {\n this.featureInfoHashMap.put(masterKey, featureInfo);\n }",
"@Override\n public boolean insert(T o) {\n // Makes sure only the same Object in in the Array\n/*\n if(type == null){\n type = o.getClass();\n }\n if(type != o.getClass()) return false;\n*/\n\n if(o == null) return false;\n if(contains(o)) return false;\n int hcode = hash(o);\n hcode %= array.length;\n array[hcode].add(o);\n return true;\n }",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasDictionary();",
"private static boolean addToExistGroup(Map<String, List<String>> map, String str) {\n for (String key : map.keySet()) {\n if (isIsomorphic(str, key)) {\n map.get(key).add(str);\n\n return true;\n }\n }\n\n return false;\n }",
"public boolean addRecord(Process p){\n\t\tthis.contains += 1;\n\t\tif (this.isOverloaded()){ // rehashing if necessary\n\t\t\tthis.rehash();\n\t\t}\n\t\tif (this.search(p.getID()) != -1){ // a process with this ID already exists in the hash table. Insertion fails.\n\t\t\treturn false;\n\t\t}\n\t\t// main insertion segment\n\t\tint target = this.h1(p.getID());\n\t\tfor(int i = 0; i < this.contains; i++){\n\t\t\tif (!(this.table[target] instanceof Record)){\n\t\t\t\tthis.table[target] = new Record(p);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tRecord temp = this.table[target];\n\t\t\tthis.table[target] = new Record(p);\n\t\t\tp = temp.getValue();\n\t\t\tif (target == this.h1(p.getID())){\n\t\t\t\ttarget = this.h2(p.getID());\n\t\t\t} else {\n\t\t\t\ttarget = this.h1(p.getID());\n\t\t\t}\n\t\t}\n\t\tthis.rehash();\n\t\treturn this.addRecord(p);\n\t\t\n\t}",
"boolean hasInsertOrUpdate();",
"public static void main(String[] args) {\n\t\tHashMap<Integer, Movil> moviles = new HashMap<Integer, Movil>();\r\n\t\t\r\n\t\t/*\r\n\t\t//Utilizando \"var\" como en C#\r\n\t\tvar movilJuan = new Movil(111, 4, \"Samsung\", 4);\r\n\t\tvar movilMaria = new Movil(232, 6, \"Apple\", 4);\r\n\t\tvar movilPedro = new Movil(955, 4, \"Xiaomi\", 5);\r\n\t\t*/\r\n\t\tMovil movilJuan = new Movil(111, 4, \"Samsung\", 4);\r\n\t\tMovil movilMaria = new Movil(232, 6, \"Apple\", 4);\r\n\t\tMovil movilPedro = new Movil(955, 4, \"Xiaomi\", 5);\r\n\r\n\t\tMovil movilBusqueda = new Movil(232, 6, \"Apple\", 4);\r\n\t\t\r\n\t\t//Añadimos los elementos a la colección\r\n\t\t/*\r\n\t\tmoviles.put(111, movilJuan);\r\n\t\tmoviles.put(232, movilMaria);\r\n\t\tmoviles.put(955, movilPedro);\r\n\t\t*/\r\n\t\tmoviles.put(movilJuan.getImei(), movilJuan);\r\n\t\tmoviles.put(movilMaria.getImei(), movilMaria);\r\n\t\tmoviles.put(movilPedro.getImei(), movilPedro);\r\n\t\t\r\n\t\t\r\n\t\t//Comprobamos is un elemento se encuentra en la colección por su valor\r\n\t\t//El método containsValue() requiere redefinir el método equals() de la clase Movil para saber que campo debe comparar para determinar que dos objetos sean iguales.\r\n\t\t//En caso de no hacerlo, los objetos se comparan utilizando sus Hashcodes (direcciones de memoria).\r\n\t\tif (moviles.containsValue(movilBusqueda)) {\r\n\t\t\tSystem.out.println(\"Encontrado\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"No encontrado\");\r\n\t\t}\r\n\t\t\r\n\r\n\t\t\r\n\t}",
"@Override\n public boolean containsKey(Object key) {\n return entries.containsKey(key);\n }",
"@Test\n public void testPut_ExistingNoChange() {\n map.put(\"Hello\", \"World\");\n configureAnswer();\n\n testObject.put(\"Hello\", \"World\");\n\n verifyZeroInteractions(helper);\n }",
"private void linkedHashMap() {\n LinkedHashMap lhm = new LinkedHashMap();\n User e = new User(1, \"user\");\n\n lhm.put(e, \"Harshal\");\n lhm.put(new User(1, \"Employee\"), \"Harshal\");\n lhm.put(new User(1, \"user\"), \"Harshal\");\n lhm.put(e, \"Sumit\");\n\n System.out.println(lhm);\n lhm.putIfAbsent(new User(2,\"Harshal\"),\"Added new val\");\n lhm.putIfAbsent(new User(2,\"Harshal\"),\"Added new val\");\n\n lhm.keySet().removeIf(key->((User)key).equals(new User(2,\"Harshal\")));\n System.out.println(lhm);\n }",
"public boolean updateInfo(Object o) {\n\t\treturn false;\n\t}",
"public boolean insert(int val) {\n boolean res=!map.containsKey(val);\n if(res)\n map.put(val,new HashSet());\n map.get(val).add(li.size());\n li.add(val);\n return res;\n }"
] | [
"0.71376264",
"0.69395375",
"0.6738148",
"0.66316503",
"0.66269344",
"0.66174865",
"0.6601254",
"0.6503552",
"0.64383733",
"0.6356147",
"0.63264865",
"0.6260561",
"0.62566257",
"0.6073825",
"0.6040215",
"0.60314196",
"0.60236377",
"0.6001916",
"0.5973027",
"0.59652764",
"0.5964618",
"0.5958151",
"0.5938022",
"0.59244955",
"0.59095544",
"0.5908594",
"0.5897173",
"0.58772457",
"0.5853201",
"0.5838443",
"0.5824933",
"0.58152586",
"0.5810946",
"0.5804816",
"0.5788585",
"0.57788175",
"0.5771193",
"0.57525855",
"0.57457775",
"0.5733951",
"0.57281107",
"0.5725452",
"0.5719175",
"0.5710754",
"0.5706231",
"0.56828815",
"0.56828815",
"0.56775206",
"0.567646",
"0.5675462",
"0.5652383",
"0.5647477",
"0.564633",
"0.5644359",
"0.564044",
"0.5618216",
"0.5609982",
"0.56039274",
"0.5594015",
"0.55840796",
"0.5582505",
"0.55775315",
"0.55759186",
"0.55682755",
"0.5561983",
"0.5557211",
"0.5553811",
"0.55403936",
"0.5539177",
"0.55300933",
"0.55296075",
"0.5525085",
"0.5522228",
"0.5522055",
"0.55029577",
"0.5499685",
"0.54921746",
"0.5490576",
"0.54853433",
"0.54853433",
"0.54853433",
"0.54853433",
"0.54853433",
"0.54853433",
"0.54853433",
"0.54853433",
"0.54853433",
"0.54853433",
"0.54853433",
"0.54853433",
"0.54853433",
"0.5477485",
"0.5476752",
"0.54747444",
"0.54585326",
"0.5452011",
"0.5448581",
"0.5448409",
"0.5441321",
"0.54368174",
"0.5433757"
] | 0.0 | -1 |
Returns the cars owner if it exists or null if it doesn't | public String get(RegistrationPlate plate){
if(!this.registrationList.containsKey(plate))
return null;
return this.registrationList.get(plate);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Optional<String> getOwner();",
"java.lang.String getOwner();",
"java.lang.String getOwner();",
"public void setCarOwner(String carOwner)\n {\n this.carOwner = carOwner;\n }",
"public Player getOwner() {\n\t\tif (owner == null && possibleOwners.size() == 1)\n\t\t\towner = possibleOwners.get(0);\n\t\t\n\t\treturn owner;\n\t}",
"String getOwner();",
"String getOwner();",
"public String getOwner();",
"public Owner getOwner()\n {\n return owner;\n }",
"User getOwner();",
"public Owner getOwner() {\n return owner;\n }",
"@objid (\"8b942215-f0a1-454e-9f8a-596315ee40d5\")\n Instance getOwner();",
"@JsonIgnore\n @Override\n public Person getOwner()\n {\n if (getFetchOptions() != null && getFetchOptions().hasOwner())\n {\n return owner;\n }\n else\n {\n throw new NotFetchedException(\"Owner has not been fetched.\");\n }\n }",
"public String getOwner() {\r\n if (mOwner==null) {\r\n return \"n/a\";\r\n }\r\n return mOwner;\r\n }",
"public com.sforce.soap.enterprise.sobject.SObject getOwner() {\r\n return owner;\r\n }",
"private CFComponent getOwner() {\n\t\treturn owner;\n\t}",
"public UUID getOwner() {\n return owner;\n }",
"public UUID getOwner() {\n return owner;\n }",
"public String getOwner() {\n return mOwner;\n }",
"public String getOwner(){\n return owner;\r\n }",
"@Override\r\n\tpublic Principal getOwner() {\n\t\treturn null;\r\n\t}",
"public AbstractGameObject getOwner() {\r\n\t\treturn owner;\r\n\t}",
"public String getOwner(){\n\t\treturn new SmartAPIModel().getCpOwner(cp.getLocalName());\n\t}",
"public String getOwner() {\r\n return owner;\r\n }",
"OwnerModel getOwnerByID(int ownerID) throws Exception;",
"public String getOwner() {\n\n return Owner;\n }",
"public com.hps.july.persistence.OrganizationAccessBean getOwner() {\n\treturn owner;\n}",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() { return owner; }",
"public String getOwner() {\n\n return owner;\n\n }",
"public User getOwner() {\n return owner;\n }",
"final int GetOwner() {\n return owner;\n }",
"public Integer getVehicleOwnerId() {\n return vehicleOwnerId;\n }",
"public String getOwner() {\r\n\t\treturn owner;\r\n\t}",
"private @Nullable ComponentName getOwnerComponent(int userId) {\n synchronized (getLockObject()) {\n if (mOwners.getDeviceOwnerUserId() == userId) {\n return mOwners.getDeviceOwnerComponent();\n }\n if (mOwners.hasProfileOwner(userId)) {\n return mOwners.getProfileOwnerComponent(userId);\n }\n }\n return null;\n }",
"@Column(name=\"owner\")\n\tpublic String getOwner() {\n\t\treturn owner;\n\t}",
"@Override\n\tpublic EntityLivingBase getOwner() {\n\t\tif(this.owner!=null&&!(this.owner instanceof EntityPlayer && this.owner.isDead)){\n\t\t\treturn this.owner;\n\t\t}\n\t\telse if(this.getOwnerId()!=null){\n\t\t\treturn this.owner=this.worldObj.getPlayerEntityByUUID(this.getOwnerId());\n\t\t}\n\t\t//System.out.println(\"owner: \"+this.getOwnerId());\n\t\treturn null;\n\t}",
"public Owner getOwnerInformation(int id){\n\t\tOwner owner = entityManager.find(Owner.class, id); //find Owner by primary key(int id)\n\t\treturn owner;\n\t}",
"public String getOwner(){\r\n \ttry{\r\n \t\t_lockObject.lock();\r\n \t\treturn _owner;\r\n \t}finally{\r\n \t\t_lockObject.unlock();\r\n \t}\r\n }",
"public OwnerReference getOwnerReference() {\n return new OwnerReferenceBuilder()\n .withController(true)\n .withApiVersion(getApiVersion())\n .withKind(getKind())\n .withName(getMetaName())\n .withUid(getMetadata().getUid())\n .build();\n }",
"public String getOwnerName() {\r\n return this.ownerName;\r\n }",
"public Player getOwner() {\n return owner;\n }",
"public long getOwner() {\n\t\treturn owner;\n\t}",
"public SettlementPlayer getOwner();",
"public AccountEntity getOwner() {\n\t\treturn owner;\n\t}",
"@Override\n\tpublic UUID getOwnerId() {\n\t\treturn this.dataManager.get(OWNER_UUID).orNull();\n\t}",
"public abstract User getOwner();",
"@Transactional(readOnly=true)\r\n\tpublic Owner getOwnerByOwnerId(int ownerId){\r\n\t\tlogger.info(\"Getting owner in the OwnerService...\");\r\n\t\t\r\n\t\tOwner owner = null;\r\n\t\t\r\n\t\tif(ownerId > 0){\r\n\t\t\towner = ownerDaoImpl.getOwnerByOwnerId(ownerId);\r\n\t\t}\r\n\t\t \r\n\t\treturn owner;\r\n\t}",
"public Player owner() {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic List<OwnerVO> ownerList() {\n\t\treturn adao.OwnerList();\r\n\t}",
"public String getOwner(int id)\n\t{\n\t\tString returnValue = \"\";\n\t\ttry {\n\t\t\tstatement = conn.createStatement();\n\t\t\tres = statement.executeQuery(\"SELECT * FROM owner WHERE (owner_id = \" + id + \")\");\n\t\t\tif(res.next())\n\t\t\t{\n\t\t\t\treturnValue = \"Name: \"+res.getString(2)+\"\\nType: \" + res.getString(3)+ \"\\nAddress: \" + res.getString(4)+ \"\\nID OR Registration Num: \" + res.getString(5) + \"\\n\";\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn returnValue;\n\t}",
"@Override\n\tpublic Owner findById(Long id) {\n\t\treturn null;\n\t}",
"com.google.protobuf.ByteString getOwner();",
"com.google.protobuf.ByteString getOwner();",
"protected Object getOwner(){\n return owner;\n }",
"public T getOwner() {\n return owner;\n }",
"public String getOwnerId() {\n return ownerId;\n }",
"public synchronized static String getOwner() {\n return owner;\n }",
"@Override\n public final Long getOwnerId() {\n return null;\n }",
"public CorporateUser getCandidateOwner() {\n\t\tif (candidateOwner == null) {\n\t\t\tsetCandidateOwner(findCorporateUser(getCandidate().getOwner().getId()));\n\t\t}\n\t\treturn candidateOwner;\n\t}",
"public String getOwnerName() {\n\n return ownerName;\n }",
"@JsonGetter(\"owner\")\r\n public String getOwner() {\r\n return owner;\r\n }",
"public boolean isOwnerKnown() {\n\t\tif (owner == null && possibleOwners.size() == 1)\n\t\t\towner = possibleOwners.get(0);\n\t\t\t\n\t\treturn (owner == null);\n\t}",
"public User getObjectOwner() {\r\n\t\treturn objectOwner;\r\n\t}",
"public UserModel getOwner() {\n return localOwner;\n }",
"public User getOwner()\r\n\t\tthrows PermissionDeniedException, BaseException\r\n\t{\r\n throw new UnsupportedOperationException(\"Fix This\"); // ToDo\r\n//\t\treturn getDbControl().getItem(User.class, getData().getOwner());\r\n\t}",
"public Organisation getOwner() {\n for (final DeviceAuthorization authorization : this.authorizations) {\n if (authorization.getFunctionGroup().equals(DeviceFunctionGroup.OWNER)) {\n return authorization.getOrganisation();\n }\n }\n\n return null;\n }",
"int getOwnerID();",
"public String getownerName() {\n\t return this.ownerName;\n\t}",
"public int getOwner() {\n validify();\n return Client.INSTANCE.pieceGetOwner(ptr);\n }",
"@Override\n public Hero getOwner() {\n return owner;\n }",
"@Override\n\tpublic Owner findById(Long id) {\n\t\treturn ownerRepository.findById(id).orElse(null);\n\t}",
"public interface Owner {\n\n /**\n * Returns the unique owner ID of this object. This ID is used to separate\n * different owners from each other.\n * \n * @return the unique owner ID\n */\n int getOwnerID();\n\n /**\n * @return a descriptive name of the owner (for printing, debugging, etc.)\n */\n String getName();\n\n}",
"public java.lang.String getOwnername() {\n\treturn ownername;\n}",
"@Override\n\tpublic List<Owner> findAll() {\n\t\treturn null;\n\t}",
"public String getOwnerName() {\r\n\t\treturn ownerName;\r\n\t}",
"com.google.protobuf.ByteString\n getOwnerBytes();",
"com.google.protobuf.ByteString\n getOwnerBytes();",
"public java.lang.String getOwnerId() {\r\n return ownerId;\r\n }",
"@PreAuthorize(\"hasPermission('string', 'ALL', new org.jasig.portal.spring.security.evaluator.AuthorizableActivity('UP_PERMISSIONS', 'VIEW_PERMISSIONS'))\")\n @RequestMapping(value=\"/permissions/owners/{owner}.json\", method = RequestMethod.GET)\n public ModelAndView getOwners(\n @PathVariable(\"owner\") String ownerParam,\n HttpServletRequest req, HttpServletResponse response)\n throws Exception {\n \n IPermissionOwner owner = null;\n \n if (StringUtils.isNumeric(ownerParam)) {\n Long id = Long.valueOf(ownerParam);\n owner = permissionOwnerDao.getPermissionOwner(id);\n } else {\n owner = permissionOwnerDao.getPermissionOwner(ownerParam);\n }\n \n // if the IPermissionOwner was found, add it to the JSON model\n if (owner != null) {\n ModelAndView mv = new ModelAndView();\n mv.addObject(\"owner\", owner);\n mv.setViewName(\"json\"); \n return mv;\n } \n \n // otherwise return a 404 not found error code\n else {\n response.setStatus(HttpServletResponse.SC_NOT_FOUND);\n return null;\n }\n \n }",
"<T extends Component> T getOwner();",
"@Override\r\n\tpublic Player getTheOwner() {\n\t\treturn null;\r\n\t}",
"public String getOwnership() {\n String ownership = null;\n\n if (getPrimaryInvestigator() != null\n && getDataProvider() != null\n && getPrimaryInvestigator().equals(getDataProvider())) {\n ownership = PROJECT_OWNERSHIP_PI_EQ_DP;\n\n } else if (getPrimaryInvestigator() != null\n && getDataProvider() != null\n && !getPrimaryInvestigator().equals(getDataProvider())) {\n ownership = PROJECT_OWNERSHIP_PI_NE_DP;\n\n } else if (getPrimaryInvestigator() != null) {\n ownership = PROJECT_OWNERSHIP_PI_ONLY;\n\n } else if (getDataProvider() != null) {\n ownership = PROJECT_OWNERSHIP_DP_ONLY;\n\n } else {\n ownership = PROJECT_OWNERSHIP_NONE;\n }\n return ownership;\n }",
"public Integer getOwnerId() {\n return ownerId;\n }",
"public String getOwnerName() {\n\t\treturn ownerName;\n\t}",
"public String owner() {\n return this.owner;\n }",
"AccountOwner findByUsername(String username);",
"public Long getIdOwner() {\r\n return idOwner;\r\n }",
"public abstract OwnerInfo getOwnerInfo(File file);",
"private Object getOwner(String className, String id) {\n if (id == null) {\n LOG.log(Level.WARNING,\n \"There is no href attribute provided for a \" + className\n + \" so the diagram element is ignored on load\");\n return null;\n }\n final Object owner = findOwner(id);\n if (owner == null) {\n LOG.log(Level.WARNING,\n \"The href \" + id + \" is not found for a \" + className\n + \" so the diagram element is ignored on load\");\n return null;\n }\n return owner;\n }",
"public String getProductOwner();",
"@DISPID(33)\r\n\t// = 0x21. The runtime will prefer the VTID if present\r\n\t@VTID(38)\r\n\tjava.lang.String owner();",
"@DISPID(75)\r\n\t// = 0x4b. The runtime will prefer the VTID if present\r\n\t@VTID(73)\r\n\tjava.lang.String owner();",
"@Column (name=\"OWNER\", insertable = true, updatable = false)\r\n\tpublic String getOwner() {\r\n\t\treturn owner;\r\n\t}",
"@Override\n\t\tpublic String ownerName() {\n\t\t\treturn \"Cat Owner\";\n\t\t}",
"public String getShopOwner(Integer shopID){\n\t\tString query = \"SELECT shopowner FROM `shops` WHERE `shop_id`=\"+shopID+\";\";\n\t\tdebugOut(\"Trying query: \"+query);\n\t\tPreparedStatement sql;\n\t\ttry {\n\t\t\tsql = connection.prepareStatement(query);\n\t\t\tResultSet result = sql.executeQuery();\n\t\t\tresult.next();\n\t\t\treturn result.getString(\"shopowner\");\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tdebugOut(\"Shop not found\");\n\t\treturn \"null\";\n\t}"
] | [
"0.6953029",
"0.6737546",
"0.6737546",
"0.65127087",
"0.6487428",
"0.6406746",
"0.6406746",
"0.6387674",
"0.63739854",
"0.63306",
"0.63132644",
"0.62970454",
"0.62855357",
"0.6245091",
"0.62103635",
"0.61725223",
"0.6092275",
"0.6092275",
"0.6083691",
"0.60835",
"0.6070379",
"0.606919",
"0.6066511",
"0.6035874",
"0.60357344",
"0.6024885",
"0.60200244",
"0.6015101",
"0.6015101",
"0.6015101",
"0.6015101",
"0.6015101",
"0.6015101",
"0.6008401",
"0.59957075",
"0.59878653",
"0.5967733",
"0.59594256",
"0.5953198",
"0.5945593",
"0.5945423",
"0.5942772",
"0.592144",
"0.59138227",
"0.59071064",
"0.5897119",
"0.5874357",
"0.5849159",
"0.583883",
"0.5836686",
"0.5828911",
"0.57877773",
"0.5786899",
"0.5783865",
"0.575806",
"0.5753435",
"0.57455677",
"0.5736482",
"0.5736482",
"0.5732424",
"0.5719687",
"0.571763",
"0.57117814",
"0.5702108",
"0.5691239",
"0.56852853",
"0.5678495",
"0.56769866",
"0.5668812",
"0.56560576",
"0.5654194",
"0.56424934",
"0.56399345",
"0.56281185",
"0.56268615",
"0.5621254",
"0.5621017",
"0.56191415",
"0.5611061",
"0.55997574",
"0.5583697",
"0.55785197",
"0.557776",
"0.55680835",
"0.5560009",
"0.5558622",
"0.55527174",
"0.5543869",
"0.5541709",
"0.5540803",
"0.55255854",
"0.5515817",
"0.55132526",
"0.55106217",
"0.5502108",
"0.5490431",
"0.54786086",
"0.5472027",
"0.5455888",
"0.5448512",
"0.5436265"
] | 0.0 | -1 |
Deletes the cars owner if it exists and returns true, false if it doesn't exist | public boolean delete(RegistrationPlate plate){
if(this.registrationList.containsKey(plate)) {
this.registrationList.remove(plate);
return true;
} else {
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean deleteCar(Car car) {\n\t\treturn carInter.deleteCar(car);\n\t}",
"public boolean deleteKey(String owner) {\n PublicKeyInfo key;\n\n for (int i = 0; i < keystore.numberOfKeys(); i++) {\n key = keystore.getKey(i);\n if (key.getOwner().equals(owner)) {\n keystore.deleteKey(i);\n return true;\n }\n }\n\n return false;\n }",
"public boolean canDelete(Car car) {\n return car.getStation() != null && rentalService.findByCar(car).isEmpty();\n }",
"@Override\n\tpublic boolean deleteCar(String driverID) {\n\t\treturn carInter.deleteCar(driverID);\n\t}",
"@Override\n\tpublic boolean deleteCar(String id) {\n\t\tfor(int i=0; i<archiveCar.size(); i++) {\n\t\t\tCarModel car = archiveCar.get(i);\n\t\t\tif(car.getId().equals(id)) {\n\t\t\t\tarchiveCar.remove(i);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean delete(car data)throws Exception {\n\t\ttry{\n\t\t\tcarDataRepository.delete(data);\n\t\t\treturn true;\n\t\t\t}\n\t\t\tcatch(Exception ex)\n\t\t\t{\n\t\t\t\tthrow ex;\n\t\t\t}\n\t}",
"public boolean removeVehicle(){\r\n veh = null;\r\n return true;\r\n }",
"public boolean deleteEntry(String aKey) {\n boolean result = false;\n if (cars.containsKey(aKey)) {\n cars.remove(aKey);\n result = true;\n } else {\n result = false;\n }\n return result;\n }",
"public boolean delete();",
"boolean delete();",
"public boolean deletePalvelupisteet();",
"public boolean deleteContact(ContentResolver contentResolver, ContactInfo cInfo) {\r\n\t\tlong id = Integer.parseInt(cInfo.get_ID());\r\n\t\tUri uri = ContentUris.withAppendedId(People.CONTENT_URI, id);\r\n\t\tint rowsDeleted = contentResolver.delete(uri, null, null);\r\n\t\t\r\n\t\tif(rowsDeleted >= 1) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t\t\r\n\t}",
"public static boolean destroy() {\n if (!Runtime.checkWitness(contractOwner)) {\n return false;\n }\n ContractManagement.destroy();\n return true;\n }",
"private void removeYourCar(Car user) {\r\n\r\n cars.removeCar(user);\r\n checkCarIsListed(user);\r\n }",
"public boolean eliminarproducto(ProductoDTO c) {\r\n \r\n try {\r\n PreparedStatement ps;\r\n ps = conn.getConn().prepareStatement(SQL_DELETE);\r\n ps.setInt(1, c.getId());\r\n\r\n if (ps.executeUpdate() > 0) {\r\n\r\n JOptionPane.showMessageDialog(null, \"Prudcto eliminado exitosamente\");\r\n return true;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProductoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n conn.cerrarconexion();\r\n }\r\n JOptionPane.showMessageDialog(null, \"No se ha podido registrar\");\r\n return false;\r\n\r\n }",
"public boolean removePossibleOwner(Player player) {\n\t\treturn possibleOwners.remove(player);\n\t}",
"public void deleteCar(Car car) {\n DatabaseManager.deleteCar(car);\n }",
"public boolean deleteCars(int id, String location)\n throws RemoteException, DeadlockException;",
"boolean hasDelete();",
"boolean hasDelete();",
"public boolean deleteRenter(int id){\n String sql = \"SELECT agreementID FROM agreement WHERE renterID = ? && end_date>=curdate() && is_cancelled = 0\";\n int activeContracts;\n //confirmation of deletion set to true as default\n boolean confirmation = true;\n try {\n activeContracts = template.queryForObject(sql, Integer.class, id);\n //exactly 1 future/active contract were found\n //can't delete renter\n confirmation = false;\n } catch (EmptyResultDataAccessException e){\n //this exception is okay - no contracts for the renter and it can execute finally block to delete the renter\n } catch (IncorrectResultSizeDataAccessException e){\n //more than 1 future/active contracts were found\n //can't delete renter\n confirmation = false;\n } finally{\n if (confirmation) {\n //if renter doesn't have active/future contracts it deletes him\n sql = \"DELETE FROM renter WHERE renterID = ?\";\n template.update(sql, id);\n }\n //returns whether deletion has been completed or no\n return confirmation;\n }\n }",
"@Override\r\n\tpublic int deleteCar(int serial) throws DataAccessException {\n\t\treturn 0;\r\n\t}",
"public boolean delete(String name){\n\t\t// this first line is given in the assignment file\n\t\tBankAccount toRemove = lookUp(name);\n\t\t// complete this:\n\t\tif(toRemove == null)\t// Verifying the account name exists in names tree, returns false if not\n\t\t\treturn false;\n\n\t\tint numberToRemove = toRemove.getAccountNumber();\n\t\tif(lookUp(numberToRemove) == null)\t// Verifying the account number exists in account numbers tree, returns false if not\n\t\t\treturn false;\n\n\t\t// Removing the account from both trees:\n\t\tnamesTree.remove(toRemove);\n\t\taccountNumbersTree.remove(toRemove);\n\t\treturn true;\n\t}",
"boolean hasForceDelete();",
"public boolean delete(Service servico){\n for (Service servicoLista : Database.servico) {\n if(idSaoIguais(servicoLista,servico)){\n Database.servico.remove(servicoLista);\n return true;\n }\n }\n return false;\n }",
"public boolean delete() {\n return delete(Datastore.fetchDefaultService());\n }",
"public boolean delete(String username) {\n if (userData.remove(username) != null)\n return true;\n else\n return false;\n }",
"@Test\n\t@WithMockCustomUser(username = \"daniel\")\n\tpublic void deleteRecipeAsRecipeOwner() throws Exception {\n\t\tRecipe recipe = recipeBuilder(1L);\n\n\t\twhen(recipeService.findById(1L)).thenReturn(recipe);\n\t\twhen(userService.findAll()).thenReturn(new ArrayList<>());\n\t\tdoAnswer(invocation -> null).when(recipeService).deleteById(1L);\n\n\t\tmockMvc.perform(post(\"/recipes/1/delete\"))\n\t\t\t\t.andExpect(authenticated())\n\t\t\t\t.andExpect(flash().attributeExists(\"flash\"))\n\t\t\t\t.andExpect(status().is3xxRedirection())\n\t\t\t\t.andExpect(redirectedUrl(\"/recipes\"));\n\n\t\tverify(recipeService, times(2)).findById(any(Long.class));\n\t\tverify(userService).findAll();\n\t\tverify(recipeService).deleteById(any(Long.class));\n\t}",
"@Override\n public boolean delete(Paciente paciente) {\n Optional<Paciente> pacienteToDelete = this.pacienteRepository.findById(paciente.getId());\n if(pacienteToDelete.isPresent()) {\n this.pacienteRepository.delete(paciente);\n return true;\n }\n return false;\n }",
"@Override\n public boolean delete(Revue objet) {\n return false;\n }",
"public boolean delete (Ingredient record) {\n\t\t//sorting by first name alphabetical order\n\t\tthis.nameQuickSort(list, 0, size-1);\n\t\t//finding index of record to delete\n\t\tint index = this.nameBinarySearch(record.getName());\n\t\t//if found\n\t\tif(index >= 0) {\n\t\t\t//move record to end of list and decrease list size by 1\n\t\t\tlist[index] = list[size-1];\n\t\t\tsize--;\n\t\t\t//sorting again based on first name\n\t\t\tthis.nameQuickSort(list, 0, size-1);\n\t\t\treturn true;\n\t\t}\n\t\t//not found\n\t\treturn false;\n\t}",
"public boolean remove() {\n\t\t\n\t\tMainTerminal terminal = MainTerminal.get();\n\t\tif(this.exists())\n\t\t{\n\t\t\tif(this.isDirectory())\n\t\t\t\tterminal.execute(\"rmdir \" + this.path);\n\t\t\telse\n\t\t\t\tterminal.execute(\"rm --force \" + path);\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public boolean deleteObject(String keyName)\n {\n try\n {\n s3.deleteObject(bucketName, keyName);\n }\n catch (AmazonS3Exception e)\n {\n logger.error(e.getMessage());\n return false;\n }\n return true;\n }",
"private boolean DelWarp(IPlayer owner, String name)\r\n\t{\r\n\t\tif (!doesWarpExist(owner, name))\r\n\t\t\treturn false;\r\n\t\tboolean success;\r\n\t\tif (owner == null)\r\n\t\t\tsuccess = database.execute(\"DELETE FROM warpdrive_locations WHERE name=? AND public=1\", name);\r\n\t\telse\r\n\t\t\tsuccess = database.execute(\"DELETE FROM warpdrive_locations WHERE name=? AND public=0 AND creator=?\", name, owner);\r\n\t\tcache.Invalidate(cacheKey(owner, name));\r\n\t\treturn success;\r\n\t}",
"@Override\r\n\tpublic boolean delete(Moteur obj) {\n\t\treturn false;\r\n\t}",
"public boolean delete(Pic pic) {\n\t\treturn picDao.delete(pic);\n\t}",
"public boolean remove(int idVoto ) { \n\t\ttry {\n\t\t\t//Voto voto = find(idVoto);\n\t\t\t//System.out.println(\"voto encontrado\"+voto);\n\t\treturn em.createNativeQuery(\"DELETE FROM tie_voto where car_numero = \"+idVoto).executeUpdate() != 0;\n\t\t\t \n\t\t \n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}",
"@Test(dependsOnMethods = \"update\")\n public void delete()throws Exception{\n repository.delete(id);\n OwnerRegion delete = repository.findOne(id);\n Assert.assertNull(delete);\n }",
"public boolean delete() {\r\n \t\t// need to have a way to inform if delete did not happen\r\n \t\t// can't delete if there are dependencies...\r\n \t\tif ((this.argumentsAgainst.size() > 0)\r\n \t\t\t\t|| (this.argumentsFor.size() > 0)\r\n \t\t\t\t|| (this.relationships.size() > 0)\r\n \t\t\t\t|| (this.questions.size() > 0)\r\n \t\t\t\t|| (this.subDecisions.size() > 0)) {\r\n \t\t\tMessageDialog.openError(new Shell(), \"Delete Error\",\r\n \t\t\t\"Can't delete when there are sub-elements.\");\r\n \r\n \t\t\treturn true;\r\n \t\t}\r\n \r\n \t\tif (this.artifacts.size() > 0) {\r\n \t\t\tMessageDialog.openError(new Shell(), \"Delete Error\",\r\n \t\t\t\"Can't delete when code is associated!\");\r\n \t\t\treturn true;\r\n \t\t}\r\n \t\tRationaleDB db = RationaleDB.getHandle();\r\n \r\n \t\t// are there any dependencies on this item?\r\n \t\tif (db.getDependentAlternatives(this).size() > 0) {\r\n \t\t\tMessageDialog.openError(new Shell(), \"Delete Error\",\r\n \t\t\t\"Can't delete when there are depencencies.\");\r\n \t\t\treturn true;\r\n \t\t}\r\n \r\n \t\tm_eventGenerator.Destroyed();\r\n \r\n \t\tdb.deleteRationaleElement(this);\r\n \t\treturn false;\r\n \r\n \t}",
"public boolean remove() {\n\t\tboolean result = false;\n\n\t\tif (this.id > 0) {\n\n\t\t\ttry {\n\n\t\t\t\tmanager = Connection.connectToMysql();\n\t\t\t\tmanager.getTransaction().begin();\n\n\t\t\t\tif (manager.createQuery(\"DELETE FROM Cancion WHERE id = \" + this.id).executeUpdate() == 1) {\n\t\t\t\t\tresult = true;\n\t\t\t\t}\n\n\t\t\t\tmanager.getTransaction().commit();\n\n\t\t\t} catch (Exception ex) {\n\t\t\t\tSystem.out.println(ex);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}",
"public boolean deleteAllPeople() throws SQLException {\r\n\t\treturn db.delete(DATABASE_TABLE, null, null) > 0;\r\n\t}",
"boolean hasDeleteMountPoint();",
"@Override\n public boolean isDeleteCascaded(ManagedType<?> ownerType, String elementCollectionPath, String attributeName) {\n return false;\n }",
"@Override\n\tpublic boolean delete() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean delete() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean delete() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean preDelete() {\n\t\teliminarCuentasHijas(instance);\n\t\treturn true;\n\t}",
"void deleteOwner(@Nonnull final User owner, @Nonnull final Telegraf telegraf);",
"public boolean delete(String cardid);",
"public boolean deleteTorfdao(ExTorf Torf) {\n\t\treturn false;\n\t}",
"public boolean eliminarVehiculo( clsVehiculo vehiculo ){\n if( vehiculo.obtenerTipoMedioTransporte().equals(\"Carro\") ){\n //Debo llamar el modelo de CARRO\n return modeloCarro.eliminarCarro((clsCarro) vehiculo);\n } else if (vehiculo.obtenerTipoMedioTransporte().equals(\"Camion\")){\n //Debo llamar el modelo de CAMIÓN\n }\n return false;\n }",
"private boolean checkDeletion() {\n/* 4471 */ if (this.creatures == null || this.creatures.size() == 0)\n/* */ {\n/* 4473 */ if (this.vitems == null || this.vitems.isEmpty())\n/* */ {\n/* 4475 */ if (this.walls == null || this.walls.size() == 0)\n/* */ {\n/* 4477 */ if (this.structure == null)\n/* */ {\n/* 4479 */ if (this.fences == null)\n/* */ {\n/* 4481 */ if (this.doors == null || this.doors.size() == 0)\n/* */ {\n/* 4483 */ if (this.effects == null || this.effects.size() == 0)\n/* */ {\n/* 4485 */ if (this.floors == null || this.floors.size() == 0)\n/* */ {\n/* 4487 */ if (this.mineDoors == null || this.mineDoors.size() == 0) {\n/* */ \n/* 4489 */ this.zone.removeTile(this);\n/* 4490 */ return true;\n/* */ } \n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* 4500 */ return false;\n/* */ }",
"public abstract boolean deleteOrphans();",
"@Override\r\n\tprotected boolean deleteMaster(Object curMaster) {\n\t\treturn true;\r\n\t}",
"@Transactional\n\tpublic boolean deletePet(long id, String userName) {\n\t\tPet pet = petRepository.findPetById(id);\n\t\tUser user = userRepository.findUserByUserName(userName);\n\t\tif (user == null) {\n\t\t\tthrow new PetException(\"Cannot delete: User does not exist.\");\n\t\t} else if (pet == null) {\n\t\t\tthrow new PetException(\"Cannot delete: Pet does not exist.\");\n\t\t} else if (user.getPets() == null || !(user.getPets().contains(pet))) {\n\t\t\tthrow new PetException(\"Cannot delete: The requester is not the owner of the pet.\");\n\t\t} else {\n\t\t\tAdvertisement petAd = pet.getAdvertisement();\n\t\t\tif (petAd != null) {\n\t\t\t\tadvertisementService.deleteAdvertisement(advertisementService.convertToDTO(petAd));\n\t\t\t}\n\t\t\tSet<Pet> userPet = user.getPets();\n\t\t\tuserPet.remove(pet);\n\t\t\tuser.setPets(userPet);\n\t\t\tuserRepository.save(user);\n\t\t\tpetRepository.delete(pet);\n\n\t\t\treturn true;\n\t\t}\n\t}",
"public boolean removeH2() {\n\t\tboolean result = false;\n\n\t\tif (this.id > 0) {\n\n\t\t\ttry {\n\n\t\t\t\tmanager = Connection.connectToH2();\n\t\t\t\tmanager.getTransaction().begin();\n\n\t\t\t\tif (manager.createQuery(\"DELETE FROM Cancion WHERE id = \" + this.id).executeUpdate() == 1) {\n\t\t\t\t\tresult = true;\n\t\t\t\t}\n\n\t\t\t\tmanager.getTransaction().commit();\n\n\t\t\t} catch (Exception ex) {\n\t\t\t\tSystem.out.println(ex);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}",
"@Override\n\tpublic void delete(CorsoDiLaurea corso) {\n\t\t\n\t}",
"@Override\n public boolean excluirRegistro() {\n this.produto.excluir();\n return true;\n }",
"public boolean excluirSocio(Socio socio) {\n System.out.println(\"excluirSocio\");\n // inicia a conexao com o Banco de dados chamando\n // a classe Conexao\n connection = BancoDados.getInstance().getConnection();\n System.out.println(\"conectado. Preparando para excluir\");\n Statement stmt = null;\n \n try {\n stmt = connection.createStatement();\n\n String sql = \"DELETE FROM socio WHERE nomeSocio = '\" + socio.getNome() + \"'\";\n System.out.println(\"SQL: \" + sql);\n stmt.executeUpdate(sql);\n \n return true;\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n return false;\n } finally {\n // este bloco finally sempre executa na instrução try para\n // fechar a conexão a cada conexão aberta\n try {\n stmt.close();\n connection.close();\n System.out.println(\"Banco fechado, excluido com sucesso\");\n } catch (SQLException e) {\n System.out.println(\"Erro ao desconectar\" + e.getMessage());\n }\n }\n }",
"int deleteByExample(OwnerExample example);",
"public boolean canDelete() throws GTClientException\n {\n return false;\n }",
"public boolean delete(String primaryKey) throws DatabaseSchemaException {\n return delete(ImmutableList.of(primaryKey)) == 1;\n }",
"public boolean destroyBooking(String name) {\n\t\t\tint i = 0;\r\n\t\t\tBooking buff = null;\r\n\t\t\t\r\n\t\t\twhile(i < Bookings.size()) {\r\n\t\t\t\tbuff = Bookings.get(i);\r\n\t\t\t\tif(name.contentEquals(buff.getBooker())) {\r\n\t\t\t\t\tBookings.remove(buff);\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn false;\r\n\t\t}",
"public boolean deleteCustomer() {\n\t\treturn false;\r\n\t}",
"@Override\n public boolean delete()\n {\n return false;\n }",
"@Override\r\n public boolean delete(Person person) {\n return false;\r\n }",
"public void removerCarro() {\n\n if (carrosCadastrados.size() > 0) {//verifica se existem carros cadastrados\n listarCarros();\n System.out.println(\"Digite o id do carro que deseja excluir\");\n int idCarro = verifica();\n for (int i = 0; i < carrosCadastrados.size(); i++) {\n if (carrosCadastrados.get(i).getId() == idCarro) {\n if (carrosCadastrados.get(i).getEstado()) {//para verificar se o querto está sendo ocupado\n System.err.println(\"O carrp está sendo utilizado por um hospede nesse momento\");\n } else {\n carrosCadastrados.remove(i);\n System.err.println(\"cadastro removido\");\n }\n }\n\n }\n } else {\n System.err.println(\"Não existem carros cadastrados\");\n }\n }",
"public boolean delete(Etudiant obj) {\n\t\treturn false;\n\t}",
"public Boolean delete(Long id) {\r\n\t\t\tlogger.debug(\"Deleting codigo with id: \" + id);\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\t/*for (Paciente codigo:codigos) {\r\n\t\t\t\t\tif (codigo.getId().longValue() == id.longValue()) {\r\n\t\t\t\t\t\tlogger.debug(\"Found record\");\r\n\t\t\t\t\t\tcodigos.remove(codigo);\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}*/\r\n\t\t\t\t\r\n\t\t\t\tlogger.debug(\"No records found\");\r\n\t\t\t\treturn false;\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tlogger.error(e);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}",
"@Override\r\n\tpublic boolean delete(Station obj) {\n\t\treturn false;\r\n\t}",
"public boolean deleteCliente(Cliente cliente) {\n\t\treturn false;\r\n\t}",
"@Override\n public CompletableFuture<Void> deleteForcefully() {\n return delete(true);\n }",
"@Override\n\tpublic boolean delete(UsuarioDTO objUsuarioDTO) {\n\t\treturn false;\n\t}",
"public boolean deleteMember(Account cl)\n\t{\n\t\treturn members.remove(cl);\n\t}",
"public abstract boolean delete(Object obj) ;",
"Boolean deleteClient(Client client){\n return true;\n }",
"public boolean isEliminable(VOUsuario us) {\n return true;\n }",
"public boolean deleteOrphans() {\n\t\t\treturn true;\n\t\t}",
"public boolean deleteOrphans() {\n\t\t\treturn true;\n\t\t}",
"public boolean delete() throws SecurityException {\n return _file.delete();\n }",
"@Override\n\tpublic boolean delete(Etape obj) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic ResultMessage deleteCar(String id) {\n\t\treturn inList.delete(id);\n\t}",
"@FXML\n private void removeCarButtonPress(){\n database.getCurrentUser().removeCar(carListView.getSelectionModel().getSelectedIndex());\n }",
"public boolean delete(User user);",
"public boolean del(Account entity) {\n\t\treturn false;\n\t}",
"public boolean eliminar(){\n\t\tString query = \"DELETE FROM Almacen WHERE Id_Producto = \"+this.getId();\n\t\tif(updateQuery(query)){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public static void removecar(String ref) {\n Cars xx = new Cars();\n System.out.println(\"remove car\");\n String target = ref.toUpperCase();\n int gotit = 0;\n for (int i = 0; i<listcars.size();i++) {\n xx = listcars.get(i);\n String record = xx.getReference().toUpperCase();\n if(record.equals(target)) {\n System.out.println(\"car found !\");\n //test si loc en cour\n listcars.remove(i);\n System.out.println(\"car is successfully deleted ! \");\n gotit = 1;\n }\n }\n\n }",
"public boolean deleteExternalStoragePrivateFile() {\n if (context != null) {\n File file = new File(context.getExternalFilesDir(null), pictureName);\n if (file != null) {\n file.delete();\n return true;\n }\n }\n return false;\n }",
"public void removeCar(View v) {\n\t\tQueryListener carRemoved = new QueryListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onError() {\n\t\t\t\tToast.makeText(CarDetailsActivity.this, R.string.updateError,\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDataChange(double data, boolean saved) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDataChange(boolean data, boolean saved) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDataChange(ObjectPrx data, boolean saved) {\n\t\t\t\tif (saved) {\n\t\t\t\t\tUserTypPrx user = _sessionController.getMyUser();\n\t\t\t\t\tList<CarTypPrx> userCars = user.getUserCars();\n\t\t\t\t\tfor (int n = 0; n < userCars.size(); n++)\n\t\t\t\t\t\tif (userCars.get(n).getPlate().equals(mCar.getPlate()))\n\t\t\t\t\t\t\tuserCars.remove(n);\n\t\t\t\t\tuser.setUserCars(userCars);\n\t\t\t\t\tToast.makeText(CarDetailsActivity.this,\n\t\t\t\t\t\t\tR.string.dataUpdated, Toast.LENGTH_SHORT).show();\n\t\t\t\t\tfinish();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDataChange(QueryModel data, boolean saved) {\n\t\t\t}\n\t\t};\n\t\t_sessionController.removeCarPlateEmail(carRemoved, mCar.getPlate(),\n\t\t\t\t_sessionController.getMyLogin());\n\t}",
"Boolean allowDelete(Data target, String name);",
"@Override\r\n\tpublic int deletedCheck(CookVO vo) throws Exception {\n\t\treturn session.update(\"com.mapper.cook.deleted\",vo);\r\n\t}",
"public boolean deleteAccount() {\r\n String delete = \"DELETE FROM LOG WHERE username='\" + this.username + \"'\";\r\n return model.ConnectToSql.update(delete);\r\n }",
"public boolean deleteOrphans() {\n\t\t\treturn false;\n\t\t}",
"public boolean deleteOrphans() {\n\t\t\treturn false;\n\t\t}",
"public boolean deleteOrphans() {\n\t\t\treturn false;\n\t\t}",
"public boolean deleteOrphans() {\n\t\t\treturn false;\n\t\t}",
"@Override\n\tpublic boolean delUserz(Userz userz) {\n\t\treturn false;\n\t}",
"public void remove(Car car){\n\t\t}",
"@Test\r\n public void testDeleteNonExistRecipe() {\r\n assertNull(coffeeMaker.deleteRecipe(1)); // Test do not exist recipe\r\n }",
"boolean deleteImage(Image img) {\r\n\t\treturn true;\r\n\t}"
] | [
"0.6860768",
"0.6339344",
"0.6330605",
"0.6215489",
"0.61603993",
"0.6124528",
"0.6020501",
"0.5838326",
"0.5821547",
"0.580382",
"0.5754058",
"0.5745434",
"0.5733237",
"0.5711485",
"0.57033455",
"0.5698839",
"0.56893104",
"0.5656706",
"0.56527555",
"0.56527555",
"0.56498235",
"0.5612909",
"0.56111956",
"0.5608821",
"0.560339",
"0.56007326",
"0.5599613",
"0.55911136",
"0.55873173",
"0.55861115",
"0.5569637",
"0.55688334",
"0.5542022",
"0.5525338",
"0.552392",
"0.5519218",
"0.55058473",
"0.5491028",
"0.54821545",
"0.5480951",
"0.5476789",
"0.5469455",
"0.5456992",
"0.54364324",
"0.54364324",
"0.54364324",
"0.54348123",
"0.5422581",
"0.5419273",
"0.5418129",
"0.54092485",
"0.54092",
"0.5409027",
"0.54084843",
"0.54055023",
"0.54039836",
"0.5379213",
"0.5377085",
"0.5364773",
"0.5359584",
"0.5359285",
"0.5351916",
"0.5351141",
"0.5350215",
"0.53459024",
"0.53292096",
"0.53266084",
"0.53192955",
"0.5313223",
"0.5309391",
"0.53080994",
"0.53036326",
"0.5301284",
"0.52939594",
"0.5290478",
"0.52859956",
"0.528549",
"0.52763027",
"0.52763027",
"0.52757317",
"0.52737814",
"0.52701837",
"0.5258095",
"0.5256536",
"0.525506",
"0.5250368",
"0.5245009",
"0.5241233",
"0.5241226",
"0.5235979",
"0.52355206",
"0.5233784",
"0.5228505",
"0.5228505",
"0.5228505",
"0.5228505",
"0.5219728",
"0.52194494",
"0.5219089",
"0.5216644"
] | 0.5454804 | 43 |
Displays all registration plates | public void printRegistrationPlates(){
for(RegistrationPlate plates: this.registrationList.keySet()){
System.out.println(plates);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void viewListOfRegistrants() {\n\t\tArrayList<Registrant> list_reg = getRegControl().listOfRegistrants();\r\n\t\tif (list_reg.size() == 0) {\r\n\t\t\tSystem.out.println(\"No Registrants loaded yet\\n\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"List of registrants:\\n\");\r\n\t\t\tfor (Registrant registrant : list_reg) {\r\n\t\t\t\tSystem.out.println(registrant.toString());\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void printOwners(){\n ArrayList<String> ownerList = new ArrayList<String>();\n\n for(RegistrationPlate plates: this.registrationList.keySet()){\n if(!ownerList.contains(this.registrationList.get(plates)))\n ownerList.add(this.registrationList.get(plates));\n }\n\n printAllOwners(ownerList);\n }",
"private void registrationView() {\n String login;\n String email;\n String password;\n\n try {\n while (true) {\n printLine();\n print(\"\\tВведите логин\\n\");\n print(\"\\t>>>>> \");\n login = readStringFromConsole();\n\n print(\"\\tВведите email\\n\");\n print(\"\\t>>>>> \");\n try {\n email = valid.emailValidation(readStringFromConsole());\n } catch (NotValidDataException e) {\n printErr(\"\\tнекорректный email\");\n continue;\n }\n\n print(\"\\tВведите пароль\\n\");\n print(\"\\t>>>>> \");\n try {\n password = valid.passwordValidation(readStringFromConsole());\n } catch (NotValidDataException e) {\n printErr(\"\\tнекорректный password\");\n continue;\n }\n break;\n }\n\n try {\n\n serviceAuthorizationService.registration(new UserDto()\n .withUsername(login)\n .withEmail(email)\n .withPassword(password));\n setStatus(REGISTERED);\n printLine();\n print(\"\\tВы успешно зарегистрировались\");\n } catch (AlreadyExistsException e) {\n e.showMessage();\n registrationView();\n }\n } catch (IOException e) {\n registrationView();\n }\n }",
"public void printContents() {\n\t\t\n//\t\tCollections.sort(finalized);\n\t\t\n\t\tSystem.out.print(\"Register Status:\");\n\t\t\n\t\tint i = 0;\n\t\tfor (; i < finalized.length - 1; i++) {\n\t\t\tSystem.out.println(\"Reg \" + i + \": \" + finalized[i].toString());\n\t\t}\n\t\tSystem.out.print(\"Reg \" + i + \": \" + finalized[finalized.length - 1].toString() + \"\\n\");\n\t}",
"void showPatients() {\n\t\t\t\n\t}",
"public void displayAllPatients() {\r\n\t\ttry {\r\n\t\t\tString query= \"SELECT * FROM patients\";\r\n\t\t\tStatement stm= super.getConnection().createStatement();\r\n\t\t\tResultSet results= stm.executeQuery(query);\r\n\t\t\twhile(results.next()) {\r\n\t\t\t\tString[] row= new String[7];\r\n\t\t\t\trow[0]= results.getInt(1)+\"\";\r\n\t\t\t\trow[1]= results.getString(2);\r\n\t\t\t\trow[2]= results.getString(3);\r\n\t\t\t\trow[3]= results.getString(4);\r\n\t\t\t\trow[4]= results.getString(5);\r\n\t\t\t\trow[5]= results.getInt(6)+\"\";\r\n\t\t\t\tmodelHostory.addRow(row);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t}",
"public static void listarRegistros() {\n System.out.println(\"\\nLISTA DE TODOS LOS REGISTROS\\n\");\n for (persona ps: pd.listaPersonas()){\n System.out.println(ps.getId()+ \" \"+\n ps.getNombre()+ \" \"+\n ps.getAp_paterno()+ \" \"+ \n ps.getAp_materno()+ \" DIRECCION: \"+ \n ps.getDireccion()+ \" SEXO: \"+ ps.getSexo());\n }\n }",
"public void viewVehiclesInGarage() {\n\t\tfor (Vehicle vehicle : vehicleList) {\n\t\t\tvehicle.print();\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}",
"public void display() {\n\t\tSystem.out.print(\"\\nPC \");\n\t\tmPC.display(true);\n\t\tSystem.out.print(\" \");\n\n\t\tSystem.out.print(\"IR \");\n\t\tmPC.display(true);\n\t\tSystem.out.print(\" \");\n\n\t\tSystem.out.print(\"CC \");\n\t\tmCC.display(true);\n\t\tSystem.out.println(\" \");\n\n\t\tfor (int i = 0; i < MAX_REGISTERS; i++) {\n\t\t\tSystem.out.printf(\"R%d \", i);\n\t\t\tmRegisters[i].display(true);\n\t\t\tif (i % 3 == 2) {\n\t\t\t\tSystem.out.println();\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\n\t\tfor (int i = 0; i < MAX_MEMORY; i++) {\n\t\t\tSystem.out.printf(\"%3d \", i);\n\t\t\tmMemory[i].display(true);\n\t\t\tif (i % 3 == 2) {\n\t\t\t\tSystem.out.println();\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\n\t}",
"public void generatePlate(){\r\n\t\tfor(int i = 0; i<3; i++){ // Using math random to generate three upper case letter \r\n\t\t\tSystem.out.print((char)((int)'A'+Math.random()*((int)'Z'-(int)'A'+1)));\r\n\t\t}\r\n\t\tSystem.out.print(\"-\");\r\n\t\tfor(int i=0; i<4; i++){ // using math random to generate four integers\r\n\t\t\tSystem.out.print((int)(Math.random()*10));\r\n\t\t}\r\n\t}",
"protected void showReservations() {\n storageDao.findAllRented()\n .forEach(System.out::println);\n }",
"public void printAll() {\n\t\tfor(int i = 0; i<r.length; i++)\n\t\t\tprintReg(i);\n\t\tprintReg(\"hi\");\n\t\tprintReg(\"lo\");\n\t\tprintReg(\"pc\");\n\t}",
"private static void showRegs(MicroBlazeProcessor mb) {\r\n RegisterFile regs = mb.getRegisterFile();\r\n //System.out.println(\"General Purpose Registers Values:\");\r\n console.print(\"General Purpose Registers Values:\");\r\n for(int i=0; i<regs.numRegisters(); i++) {\r\n console.print(\"[\" + i + \"]:\" + regs.read(i));\r\n //System.out.println(\"[\" + i + \"]:\" + regs.read(i));\r\n }\r\n }",
"public static void display() {\n\n\t\tSystem.out.println(\"************************************************************\");\n\t\tSystem.out.println(\"* Omar Oraby\t \t\t\t\t\t *\");\n\t\tSystem.out.println(\"* 900133379\t \t\t\t\t\t *\");\n\t\tSystem.out.println(\"* Salma Talaat *\");\n\t\tSystem.out.println(\"* 900161560\t \t\t\t\t\t *\");\n\t\tSystem.out.println(\"* Ahmed Elshafey *\");\n\t\tSystem.out.println(\"* 900131045 *\");\n\t\tSystem.out.println(\"* Programming in Java *\");\n\t\tSystem.out.println(\"* (2018 Fall) *\");\n\t\tSystem.out.println(\"************************************************************\");\n\t\tSystem.out.println();\n }",
"public void displayAll() {\n\t\t\n\t\tbankop.display();\n\t\n\t}",
"public RegView() {\r\n\t\trc = new RegControl();\r\n\t\t// load the land registry before running the program\r\n\t\tviewLoadLandRegistryFromBackUp();\r\n\t}",
"public static void viewFindRegistrant() {\n\t\tint regNum = requestRegNum();\r\n\t\tRegistrant reg = rc.findRegistrant(regNum);\r\n\t\tSystem.out.println(\"\" + ((reg == null) ? // Registrant does not exist\r\n\t\t\t\t\"A registrant having the registration number\\n\" + regNum\r\n\t\t\t\t\t\t+ \" could not be found in the registrants list.\"\r\n\t\t\t\t: // Registrant found\r\n\t\t\t\t\"The registrant associated with that registration number \" + \"is\\n\" + reg.toString() + \"\\n\"));\r\n\t}",
"public Registers() {\r\n\t\tsuper(new GridLayout(5, 2));\r\n\t\tregisterTab = new Register[REGISTER_COUNT];\r\n\t\tfor (int i = 0; i < REGISTER_COUNT; i++) {\r\n\t\t\tregisterTab[i] = new Register('G');\r\n\t\t\tadd(new JLabel(\"Registre #\" + i, SwingConstants.RIGHT));\r\n\t\t\tadd(registerTab[i]);\r\n\t\t}\r\n\t}",
"public void displayAll()\n {\n try\n {\n int i=0;\n for(HardwareDevice equip:equipment)\n {\n System.out.println(\"Equipment Number : \"+i);\n i++;\n equip.DisplayHardwareDevice();\n }\n }\n catch(NumberFormatException aE)\n {\n JOptionPane.showMessageDialog(frame, aE.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n }",
"public void displayAll(){\n System.out.println(\"guestCounter: \" + guestCounter);\n for(int i=0;i<guestCounter;i++){\n guest[i].dispGuest();\n }\n }",
"public void showRegister() {\n try {\n start(primaryStage);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public RegisterDisplay() {\n initComponents();\n }",
"@Override\n public void display(){\n System.out.println(\"***************\");\n System.out.println(\"Checking Account\");\n super.display();\n System.out.println(\"Routing Number: \" + routingNumber);\n }",
"public void show() {\r\n\t\tshowMembers();\r\n\t\tshowFacilities();\r\n\t}",
"public void printRegionsNames() {\n for (int i = 0; i < regionList.length; i++) {\n System.out.println(\"Region #\" + (i + 1) + \": \" + regionList[i].getRegionName());\n }\n }",
"public ViewAllManufacturer() {\n initComponents();\n \n //Make the JFrame run in the center of the screen\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 try {\n //get database connectin\n connection = (Connection) DBConnection.getConnection();\n } catch (SQLException ex) {\n Logger.getLogger(addBrand.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n loadAllManufacturesTable();\n }",
"public static void viewLoadLandRegistryFromBackUp() {\n\t\tArrayList<Property> prop_list = rc.loadFromFile(PROPERTIES_FILE);\r\n\t\tArrayList<Registrant> reg_list = rc.loadFromFile(REGISTRANTS_FILE);\r\n\t}",
"public void displayPantry(){\r\n jam1.displayJam();\r\n jam2.displayJam();\r\n jam3.displayJam();\r\n \r\n }",
"private static void displayOwner() {\n // Clear the screen\n clearScreen();\n\n // Display UI\n System.out.println(\"Welcome, Owner.\\n\\n\"\n + \"Choose an option:\\n\"\n + \"- (O)ccupancy - View occupancy of rooms\\n\"\n + \"- (D)ata [(c)ounts|(d)ays|(r)evenue] - View data on \"\n + \"counts, days, or revenue of each room\\n\"\n + \"- (S)tays - Browse list of reservations\\n\"\n + \"- (R)ooms - View list of rooms\\n\"\n + \"- (B)ack - Goes back to main menu\\n\");\n }",
"public void mostrarReservas() {\n\t\tint numReserva=1;\r\n\t\tfor(Reserva reserva:reservas) {\r\n\t\t\tSystem.out.println(numReserva+\" \"+reserva.toString());\r\n\t\t\tnumReserva++;\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}",
"private void displayAll() {\n\t\tif(inventoryObject.totalNumCards() == 0) { // checks to see if there are 0 StockIndexCards\n\t\t\tSystem.out.println(\"The Inventory is empty\\n\");\n\t\t\tgetUserInfo();\n\t\t}\n\t\telse {\n\t\tSystem.out.println(inventoryObject.displayAll());\n\t\tgetUserInfo();\n\t\t}\n\t}",
"private void searchDisplay()\r\n {\r\n System.out.println();\r\n System.out.println(\"------------ Search Menu ----------------\");\r\n System.out.println(\"(1) By Registration Number\");\r\n System.out.println(\"(2) By Car Make and Car Model\");\r\n System.out.println(\"(3) By Age\");\r\n System.out.println(\"(4) By Price (range)\");\r\n System.out.println(\"(5) Back to Main Menu\");\r\n }",
"protected void createContents() {\n\t\tregister Register = new register();\n\t\tRegisterDAOImpl RDI = new RegisterDAOImpl();\t\n\t\t\n\t\tload = new Shell();\n\t\tload.setSize(519, 370);\n\t\tload.setText(\"XX\\u533B\\u9662\\u6302\\u53F7\\u7CFB\\u7EDF\");\n\t\tload.setLayout(new FormLayout());\n\t\t\n\t\tLabel name = new Label(load, SWT.NONE);\n\t\tFormData fd_name = new FormData();\n\t\tfd_name.top = new FormAttachment(20);\n\t\tfd_name.left = new FormAttachment(45, -10);\n\t\tname.setLayoutData(fd_name);\n\t\tname.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tname.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel subjet = new Label(load, SWT.NONE);\n\t\tFormData fd_subjet = new FormData();\n\t\tfd_subjet.left = new FormAttachment(44);\n\t\tfd_subjet.top = new FormAttachment(50);\n\t\tsubjet.setLayoutData(fd_subjet);\n\t\tsubjet.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tsubjet.setText(\"\\u79D1\\u5BA4\");\n\t\t\n\t\tLabel doctor = new Label(load, SWT.NONE);\n\t\tFormData fd_doctor = new FormData();\n\t\tfd_doctor.top = new FormAttachment(60);\n\t\tfd_doctor.left = new FormAttachment(45, -10);\n\t\tdoctor.setLayoutData(fd_doctor);\n\t\tdoctor.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tdoctor.setText(\"\\u533B\\u751F\");\n\t\t\n\t\tnametext = new Text(load, SWT.BORDER);\n\t\tnametext.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tnametext.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_nametext = new FormData();\n\t\tfd_nametext.right = new FormAttachment(50, 94);\n\t\tfd_nametext.top = new FormAttachment(20);\n\t\tfd_nametext.left = new FormAttachment(50);\n\t\tnametext.setLayoutData(fd_nametext);\n\t\t\n\t\tLabel titlelabel = new Label(load, SWT.NONE);\n\t\tFormData fd_titlelabel = new FormData();\n\t\tfd_titlelabel.right = new FormAttachment(43, 176);\n\t\tfd_titlelabel.top = new FormAttachment(10);\n\t\tfd_titlelabel.left = new FormAttachment(43);\n\t\ttitlelabel.setLayoutData(fd_titlelabel);\n\t\ttitlelabel.setFont(SWTResourceManager.getFont(\"楷体\", 18, SWT.BOLD));\n\t\ttitlelabel.setText(\"XX\\u533B\\u9662\\u95E8\\u8BCA\\u6302\\u53F7\");\n\t\t\n\t\tLabel label = new Label(load, SWT.NONE);\n\t\tFormData fd_label = new FormData();\n\t\tfd_label.top = new FormAttachment(40);\n\t\tfd_label.left = new FormAttachment(44, -10);\n\t\tlabel.setLayoutData(fd_label);\n\t\tlabel.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tlabel.setText(\"\\u6302\\u53F7\\u8D39\");\n\t\t\n\t\tcosttext = new Text(load, SWT.BORDER);\n\t\tcosttext.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tcosttext.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_costtext = new FormData();\n\t\tfd_costtext.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_costtext.top = new FormAttachment(40);\n\t\tfd_costtext.left = new FormAttachment(50);\n\t\tcosttext.setLayoutData(fd_costtext);\n\t\t\n\t\tLabel type = new Label(load, SWT.NONE);\n\t\tFormData fd_type = new FormData();\n\t\tfd_type.top = new FormAttachment(30);\n\t\tfd_type.left = new FormAttachment(45, -10);\n\t\ttype.setLayoutData(fd_type);\n\t\ttype.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\ttype.setText(\"\\u7C7B\\u578B\");\n\t\t\n\t\tCombo typecombo = new Combo(load, SWT.NONE);\n\t\ttypecombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\ttypecombo.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_typecombo = new FormData();\n\t\tfd_typecombo.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_typecombo.top = new FormAttachment(30);\n\t\tfd_typecombo.left = new FormAttachment(50);\n\t\ttypecombo.setLayoutData(fd_typecombo);\n\t\ttypecombo.setText(\"\\u95E8\\u8BCA\\u7C7B\\u578B\");\n\t\ttypecombo.add(\"普通门诊\",0);\n\t\ttypecombo.add(\"专家门诊\",1);\n\t\tMySelectionListener3 ms3 = new MySelectionListener3(typecombo,costtext);\n\t\ttypecombo.addSelectionListener(ms3);\n\t\t\n\t\tCombo doctorcombo = new Combo(load, SWT.NONE);\n\t\tdoctorcombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tdoctorcombo.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_doctorcombo = new FormData();\n\t\tfd_doctorcombo.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_doctorcombo.top = new FormAttachment(60);\n\t\tfd_doctorcombo.left = new FormAttachment(50);\n\t\tdoctorcombo.setLayoutData(fd_doctorcombo);\n\t\tdoctorcombo.setText(\"\\u9009\\u62E9\\u533B\\u751F\");\n\t\t\n\t\tCombo subject = new Combo(load, SWT.NONE);\n\t\tsubject.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tsubject.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tfd_subjet.right = new FormAttachment(subject, -6);\n\t\tfd_subjet.top = new FormAttachment(subject, -1, SWT.TOP);\n\t\tFormData fd_subject = new FormData();\n\t\tfd_subject.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_subject.top = new FormAttachment(50);\n\t\tfd_subject.left = new FormAttachment(50);\n\t\tsubject.setLayoutData(fd_subject);\n\t\tsubject.setText(\"\\u79D1\\u5BA4\\uFF1F\");\n\t\tsubject.add(\"神经内科\", 0);\n\t\tsubject.add(\"呼吸科\", 1);\n\t\tsubject.add(\"泌尿科\", 2);\n\t\tsubject.add(\"放射科\", 3);\n\t\tsubject.add(\"五官\", 4);\n\t\tMySelectionListener myselection = new MySelectionListener(i,subject,doctorcombo,pdtabledaoimpl);\n\t\tsubject.addSelectionListener(myselection);\n\t\t\n\t\tMySelectionListener2 ms2 = new MySelectionListener2(subject,doctorcombo,Register,nametext,RDI);\n\t\tdoctorcombo.addSelectionListener(ms2);\n\t\t\n\t\tButton surebutton = new Button(load, SWT.NONE);\n\t\tFormData fd_surebutton = new FormData();\n\t\tfd_surebutton.top = new FormAttachment(70);\n\t\tfd_surebutton.left = new FormAttachment(44);\n\t\tsurebutton.setLayoutData(fd_surebutton);\n\t\tsurebutton.setFont(SWTResourceManager.getFont(\"楷体\", 12, SWT.BOLD));\n\t\tsurebutton.setText(\"\\u786E\\u5B9A\");\n\t\tsurebutton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n \t Register register = new Register();\n\t\t\t\tPatientDAOImpl patientdaoimpl = new PatientDAOImpl();\n\n/*\t\t\t\tregisterdaoimpl.Save(Register);*/\n\t\t\t\tPatientInfo patientinfo = null;\n\t\t\t\tpatientinfo = patientdaoimpl.findByname(nametext.getText());\n\t\t\t\tif(patientinfo.getId() > 0 ){\n\t\t\t\t\tMessageBox messagebox = new MessageBox(load);\n\t\t\t\t\tmessagebox.setMessage(\"挂号成功!\");\n\t\t\t\t\tmessagebox.open();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tMessageBox messagebox = new MessageBox(load);\n\t\t\t\t\tmessagebox.setMessage(\"此用户不存在,请先注册\");\n\t\t\t\t\tmessagebox.open();\n\t\t\t\t\tload.dispose();\n\t\t\t\t\tregister.open();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton registerbutton = new Button(load, SWT.NONE);\n\t\tFormData fd_registerbutton = new FormData();\n\t\tfd_registerbutton.top = new FormAttachment(70);\n\t\tfd_registerbutton.left = new FormAttachment(53);\n\t\tregisterbutton.setLayoutData(fd_registerbutton);\n\t\tregisterbutton.setFont(SWTResourceManager.getFont(\"楷体\", 12, SWT.BOLD));\n\t\tregisterbutton.setText(\"\\u6CE8\\u518C\");\n\t\tregisterbutton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\t\n\t\t\t\tRegister register = new Register();\n\t\t\t\tload.close();\n\t\t\t\tregister.open();\n\t\t\t}\n\t\t});\n\t}",
"public void displayAll()\r\n {\r\n clearPinboard();\r\n for(String filename : pictures)\r\n {\r\n pinboardObject.pinPicture(filename);\r\n pause(1000);\r\n }\r\n }",
"public String getDisplay() {\n\t\tString output;\n\t\tStringBuilder tempout = new StringBuilder();\n\t\tfor(Entry<String, ParkingSpace> entry:hashmap.entrySet()) {\n\t\t\tString key = entry.getKey();\n\t\t\tVehicle temp = entry.getValue().getVehicle();\n\t\t\ttempout.append(\"Plate# \" + key + \" \" + temp.toString() + \"\\n\");\n\t\t}\n\t\toutput = tempout.toString();\n\t\treturn output;\n\t}",
"private void showGeneros(Gender c) {\n\t\tNombreGenero.setText(\"\");\n\t\tif (c != null) {\n\t\t\tGender r = GenderDAO.List_Gender_By_Name(c.getName());\n\t\t\tNombreGenero.setText(r.getName());\n\t\t\tBorrargenero.setDisable(false);\n\n\t\t} else {\n\t\t\tBorrargenero.setDisable(true);\n\t\t}\n\n\t}",
"public void printList() {\n userListCtrl.showAll();\n }",
"private void searchSpecificCar() {\n\t\tSystem.out.print(\"Enter Registration Number: \");\n\t\tSystem.out.println(application.displaySpecificCar(console.nextLine()));\n\t}",
"public static void showRegister() throws IOException {\n Main.FxmlLoader(REGISTERPAGE_PATH);\n }",
"public String marriageRegisterViewInit() {\n marriage = marriageRegistrationService.getMarriageRegisterByIdUKey(idUKey, user, Permission.VIEW_MARRIAGE_REGISTER);\n return SUCCESS;\n }",
"public void showPatientList()\r\n\t{\n\t\tfor(int i=0; i<nextPatientLocation; i++)\r\n\t\t{\r\n\t\t\tString currentPositionPatientData = arrayPatients[i].toString();\r\n\t\t\tSystem.out.println(\"Patient \" + i + \" is \" + currentPositionPatientData);\r\n\t\t}\r\n\t}",
"@GetMapping({\"/reg\",\"/\"})\r\n\tpublic String showReg() {\r\n\t\treturn \"ProductRegister\";\r\n\t}",
"public void processRegistration() {\n try {\n System.out.println(\"Processing Registration\");\n FacesContext c = FacesContext.getCurrentInstance();\n c.getApplication().getNavigationHandler().handleNavigation(c, null, \"register.xhtml\");\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }",
"public Registration() {\n initComponents();\n managerpassword_label.setVisible(false);\n managerpassword_passfield.setVisible(false);\n \n }",
"private void displayRent(){\r\n\r\n System.out.println(\"To rent:\");\r\n for(HardwareDevice devices: hardwares){\r\n\r\n devices.displayDescription();\r\n }\r\n }",
"public void print() {\r\n \tfor (int i = 0; i < arbres.size(); i++) {\r\n \t\tSystem.out.println(\"Ordre de \" + arbres.get(i).ordre + \":\");\r\n \t\tarbres.get(i).print(\"\");\r\n \t\tSystem.out.println();\r\n \t}\r\n }",
"public void showVehicles() {\n\t\tfor (Vehicle vehicle : vehicles) {\n\t\t\tSystem.out.println(vehicle);\n\t\t}\n\t}",
"public void showCards() {\n\t\tfor(int i=0;i<cards.size();i++) {\n\t\t\tSystem.out.println(cards.get(i).toString());\n\t\t}\n\t}",
"private void mostrarReservas() {\n\t\tJFReservasAdmin jfres =new JFReservasAdmin();\n\t\tjfres.setVisible(true);\n\t\t\n\t\tMap<Integer,Reserva> reservas = modelo.obtenerReservasPeriodo(per.getIdPeriodo());\n\t\tDefaultTableModel dtm = new DefaultTableModel(new Object[][] {},\n\t\t\t\tnew String[] { \"Dia\", \"Hora\", \"Email\" });\n\n\t\tfor (Integer key : reservas.keySet()) {\n\n\t\t\tdtm.addRow(new Object[] { reservas.get(key).getReserva_dia(), reservas.get(key).getReserva_hora(),reservas.get(key).getEmail() });\n\t\t}\n\t\tjfres.tReservas.setModel(dtm);\n\t}",
"public String showLocationContent() {\n\t\tContent content = null;\n printHeader();\n \n\t\tfor (Map.Entry<Integer, List<Content>> entry : contentMap.entrySet()) {\n\t\t\tList<Content> contentLst = entry.getValue();\n\n\t\t\tfor (int i = 0; i < contentListCapacity; i++) {\n\t\t\t\tif (contentLst == null)\n\t\t\t\t\tprintEmptyPlaceHolder(contentListCapacity);\n\t\t\t\telse {\n\t\t\t\t\tcontent = i < contentLst.size() ? contentLst.get(i) : null;\n\t\t\t\t\tif (content == null)\n\t\t\t\t\t\tSystem.out.printf(\"%5s\",\"\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.printf(\"%5s\",content.getBarcode() );\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\treturn \" Smart Robot Arm! \";\n\n\t}",
"void display(String w[][]){\r\n System.out.println(\"\\nGambaran dari area (world) yang di buat\\n\");\r\n for (int i = 1; i <= 4; i++) {\r\n System.out.println(\"\\n-----------------------------------------------------------------\");\r\n System.out.print(\"|\\t\");\r\n for (int j = 1; j <= 4; j++) {\r\n System.out.print(w[i][j]+ \"\\t|\\t\");\r\n }\r\n }\r\n\r\n System.out.println(\"\\n-----------------------------------------------------------------\");\r\n }",
"public static void printMeny(){\n\t\tSystem.out.println(\"1. Registrer en person\");\n\t\tSystem.out.println(\"2. Print personen\");\n\t}",
"public void displayAllRooms(){\n for(int i=0;i<roomCounter;i++){\n myHotel[i].Display();\n System.out.println();\n }\n }",
"public void regDump() {\r\n\t\t// Print each available register (id) and its value\r\n\t\tfor (int i = 0; i < NUMGENREG; i++) {\r\n\t\t\tSystem.out.print(\"r\" + i + \"=\" + m_registers[i] + \" \");\r\n\t\t}// for\r\n\t\t\r\n\t\t// Removed unnecessary concatenation\r\n\t\tSystem.out.print(\"PC=\" + getPC());\r\n\t\tSystem.out.print(\" SP=\" + getSP());\r\n\t\tSystem.out.print(\" BASE=\" + getBASE());\r\n\t\tSystem.out.print(\" LIM=\" + getLIM());\r\n\t\tSystem.out.println(\"\");\r\n\t}",
"public j3_Candidate_register_for_officer() {\n initComponents();\n show_candidate();\n }",
"public void afficherPlateau(Robot r) {\r\n\t\tfor(int i=0; i<plateau.length; i++) {\r\n\t\t\tfor (int j=0; j<plateau[0].length; j++) {\r\n\t\t\t\tSystem.out.print(\"|\");\r\n\t\t\t\tif(plateau[i][j].contientMine() > 0) {\r\n\t\t\t\t\tif (plateau[i][j].contientMine() != r.getEquipe())\r\n\t\t\t\t\t\tSystem.out.print(plateau[i][j]);\r\n\t\t\t\t\telse \r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.print(plateau[i][j]);\r\n\r\n\t\t\t}\r\n\t\t\tSystem.out.print(\"|\");\r\n\t\t\tif(i == 2)\r\n\t\t\t\tSystem.out.print(\"\tDeplacement = d et Attaque = a\");\r\n\t\t\tif(i == 3)\r\n\t\t\t\tSystem.out.print(\"\t\ta=haut-gauche, z=haut, e=haut-droite\");\r\n\t\t\tif(i == 4)\r\n\t\t\t\tSystem.out.print(\"\t\tq=gauche, d=droite\");\r\n\t\t\tif(i == 5){\r\n\t\t\t\tSystem.out.print(\"\t\tw=bas-gauche, s=bas, c=bas-droite\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t\tSystem.out.println();\r\n\t}",
"public void limpiarRegistrar() {\n tfMatricula.setText(\"\");\n tfNombre.setText(\"\");\n tfApellidoMaterno.setText(\"\");\n tfApellidoPaterno.setText(\"\");\n tfCorreoElectronico.setText(\"\");\n checkLenguaIndigena.setSelected(false);\n }",
"protected void displayPopulation() {\n \n /**/println(\"\\nDisplaying population:\", 0);\n for(int i = 0; i < population_size; i++) {\n println(\"i = \" + i, 1);\n if(population[i] == null) {\n //System.exit(0);\n }\n displayChromosome(population[i], 0);\n }\n }",
"@GetMapping(\"/sysadm/companyRegistrationList\")\n public String showCompanyRegistrationList() {\n return \"admin/sysadm/companyInfoView\";\n }",
"public void render(){\n//\t\tsetCards();\n//\t\tsetMurderInfo();\n\t}",
"public void mostrarVentanaRegistro() {\r\n\t\tmiVentanaRegistroP.setVisible(true);\r\n\t}",
"@FXML\n void displayPD() {\n generalTextArea.clear();\n clearEverything();\n String employeeListPD = company.printByDepartment();\n generalTextArea.appendText(employeeListPD);\n }",
"@FXML\n void displayPA() {\n generalTextArea.clear();\n clearEverything();\n String employeeListPA = company.print();\n generalTextArea.appendText(employeeListPA);\n\n }",
"private void view() {\n\n\t\ttry {\n\t\t\tString databaseUser = \"blairuser\";\n\t\t\tString databaseUserPass = \"password!\";\n\t\t\tClass.forName(\"org.postgresql.Driver\");\n\t\t\tConnection connection = null;\n\t\t\tString url = \"jdbc:postgresql://13.210.214.176/test\";\n\t\t\tconnection = DriverManager.getConnection(url, databaseUser, databaseUserPass);\n//\t\t\tStatement s = connection.createStatement();\n\t\t\ts = connection.createStatement();\n\t\t\tResultSet rs = s.executeQuery(\"select * from account;\");\n\t\t\t// while (rs.next()) {\n\t\t\tString someobject = rs.getString(\"name\") + \" \" + rs.getString(\"password\");\n\t\t\tSystem.out.println(someobject);\n\t\t\toutput.setText(someobject);\n\t\t\t// output.setText(rs);\n\t\t\t// System.out.println(rs.getString(\"name\")+\" \"+rs.getString(\"message\"));\n\t\t\t// rs.getStatement();\n\t\t\t// }\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e.getMessage());\n\t\t}\n\t\tPostgresJDBC();\n\t}",
"private void showAll() {\n getAll();\n //show persons\n MainActivity.instance().displayPersonsRunnable = new DisplayPersonsRunnable(MainActivity.instance());\n this.thread = new Thread(MainActivity.instance().displayPersonsRunnable);\n this.thread.start();\n }",
"private void displayBedrijf(){\n if (this.geselecteerdeStageplaats.getBedrijfID() != null){\n this.jTextFieldBedrijfsnaam.setText(this.geselecteerdeStageplaats.getBedrijfID().getNaam());\n this.jTextFieldContactpersoon.setText(this.geselecteerdeStageplaats.getBedrijfID().getContactNaam());\n this.jTextFieldEmail.setText(this.geselecteerdeStageplaats.getBedrijfID().getContactEmail());\n this.jTextAreaActiviteiten.setText(this.geselecteerdeStageplaats.getBedrijfID().getActiviteiten());\n this.jTextAreaAanwervend.setText(this.geselecteerdeStageplaats.getBedrijfID().getAanwervend());\n \n this.jTextFieldStraat.setText(this.geselecteerdeStageplaats.getBedrijfID().getStraat());\n this.jTextFieldNummer.setText(this.geselecteerdeStageplaats.getBedrijfID().getNummer());\n this.jTextFieldPostcode.setText(this.geselecteerdeStageplaats.getBedrijfID().getPostcode());\n this.jTextFieldStad.setText(this.geselecteerdeStageplaats.getBedrijfID().getStad());\n this.jTextFieldLand.setText(this.geselecteerdeStageplaats.getBedrijfID().getLand());\n }\n }",
"public displayGurps() {\n initComponents();\n }",
"public void display() \r\n {\r\n ((GrantsByPIForm) getControlledUI()).setVisible(true);\r\n }",
"@FXML\n void displayPH() {\n generalTextArea.clear();\n clearEverything();\n String employeeListPH = company.printByDate();\n generalTextArea.appendText(employeeListPH);\n\n }",
"private static void Display()\n\t{\n\t\tStringBuilder memoryValues = new StringBuilder();\n\t\tSystem.out.println(\"\\nPipleline Stages: \");\n\t\tif (stages.get(\"F\") != null)\n\t\t\tSystem.out.println(\"--------Fetch-----------> \" + stages.get(\"F\").getContent());\n\t\tif (stages.get(\"D\") != null)\n\t\t\tSystem.out.println(\"--------Decode----------> \" + stages.get(\"D\").getContent());\n\t\tif (stages.get(\"E\") != null)\n\t\t\tSystem.out.println(\"--------Execution1------> \" + stages.get(\"E\").getContent());\n\t\tif (stages.get(\"E2\") != null)\n\t\t\tSystem.out.println(\"--------Execution2------> \" + stages.get(\"E2\").getContent());\n\t\tif (stages.get(\"B1\") != null)\n\t\t\tSystem.out.println(\"--------Branch----------> \" + stages.get(\"B1\").getContent());\n\t\tif (stages.get(\"Dly\") != null)\n\t\t\tSystem.out.println(\"--------Delay-----------> \" + stages.get(\"Dly\").getContent());\n\t\tif (stages.get(\"M\") != null)\n\t\t\tSystem.out.println(\"--------Memory----------> \" + stages.get(\"M\").getContent());\n\t\tif (stages.get(\"W\") != null)\n\t\t\tSystem.out.println(\"--------Writeback-------> \" + stages.get(\"W\").getContent());\n\n\t\tSystem.out.println(\"\\nRegister File Details: \\n\");\n\t\tfor (Entry<String, Integer> register : registerFile.entrySet())\n\t\t{\n\t\t\tSystem.out.print(register.getKey() + \" : \" + register.getValue() + \"|\\t|\");\n\t\t}\n\t\tSystem.out.println(\"Special Register X:\" + specialRegister);\n\t\tSystem.out.println(\"\\n0 to 99 Memory Address Details: \");\n\t\tfor (int i = 0; i < 100; i++)\n\t\t{\n\t\t\tmemoryValues.append(\" [\" + i + \" - \" + memoryBlocks[i] + \"] \");\n\t\t\tif (i > 0 && i % 10 == 0)\n\t\t\t\tmemoryValues.append(\"\\n\");\n\t\t}\n\t\tSystem.out.println(memoryValues);\n\n\t}",
"private static void showSpr(MicroBlazeProcessor mb) {\r\n SpecialPurposeRegisters spr = mb.getSpecialRegisters();\r\n //System.out.println(\"Special Register Values:\");\r\n console.print(\"Special Register Values:\");\r\n for (SpecialRegister reg : SpecialRegister.values()) {\r\n int value = spr.read(reg);\r\n String stringValue;\r\n switch(reg) {\r\n case rmsr:\r\n stringValue = Integer.toBinaryString(value);\r\n stringValue = BitOperations.padBinaryString(stringValue, 32);\r\n //System.out.println(reg.name() + \":\" + stringValue);\r\n console.print(reg.name() + \":\" + stringValue);\r\n break;\r\n case resr:\r\n stringValue = Integer.toBinaryString(value);\r\n stringValue = BitOperations.padBinaryString(stringValue, 32);\r\n //System.out.println(reg.name() + \":\" + stringValue);\r\n console.print(reg.name() + \":\" + stringValue);\r\n break;\r\n case rpc:\r\n stringValue = Integer.toHexString(value);\r\n stringValue = BitOperations.padHexString(stringValue, 8);\r\n //System.out.println(reg.name() + \":\" + stringValue);\r\n console.print(reg.name() + \":\" + stringValue);\r\n break;\r\n default:\r\n //System.out.println(reg.name() + \":\" + value);\r\n console.print(reg.name() + \":\" + value);\r\n break;\r\n\r\n }\r\n \r\n }\r\n }",
"private void doViewAllPartners() {\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"***Hors Management System:: System Administration:: View All Partners\");\n\n List<Partner> partners = partnerControllerRemote.retrieveAllPartners();\n\n partners.forEach((partner) -> {\n System.out.println(\"Partner ID:\" + partner.getPartnerId() + \"Partner Name: \" + partner.getName() + \"Password: \" + partner.getPassword());\n });\n\n System.out.println(\"Press any key to continue...>\");\n sc.nextLine();\n }",
"private void ViewAccounts() {\n for (int k = 0; k < accountList.size(); k++) {\n\n System.out.print(k + \": \" + accountList.get(k) + \" || \");\n\n }\n }",
"@Override\n\tpublic void display() {\n\t\tSystem.out.println(\"Pasos dados por \" + a.nombre + \" \" + a.distancia + \" m = \" + pasosActividad + \" / Pasos en total = \" + pasosTotal);\n\t}",
"public void showHouses() {\n System.out.println(\"-----Houses List-----\");\n System.out.println(\"No\\tOwner\\tPhone\\t\\tAddress\\t\\t\\t\\tRent\\tState\");\n houseService.listHouse();\n System.out.println(\"------List Done------\");\n }",
"public void showblocks() {\n System.out.println(\"\");\n EcgCheck chk = EcgCheck.getInstance();\n System.out.println(\" Show Blocks\");\n\n }",
"void display() {\n System.out.println(id + \" \" + name);\n }",
"@FXML\n private void handleRegistration() {\n app.showRegistrationPage();\n }",
"void display() {\r\n\t\tSystem.out.println(id + \" \" + name);\r\n\t}",
"public void display_inventory() {\n\t\t// displays all identified crystals\n\t\tfor(int i = 0;i<maxInvSize;i++) {\n\t\t\tif(identifiedArray[i] != null) {\n\t\t\t\tcrystal_description(identifiedArray[i]);\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public synchronized void PrintDisplayList()\t{\n\t\tSystem.out.print(\"\\n\\tCar Model:\"+getModel()+\"\\n\\tBase Price is:\"\n +getBasePrice());\n\t\tfor(OptionSet Temp: opset)\n System.out.print(Temp.DisplayOptionSet());\n }",
"protected void display() {\n\r\n\t}",
"@Override\n\tpublic void display() {\n\t\tSystem.out.println(\"콘텐츠화면이 출력되었습니다\");\n\t}",
"public Successful_Registration() {\n initComponents();\n }",
"public void show() {\r\n\t\tfor (Carta carta: baraja) {\r\n\t\t\tSystem.out.println(carta);\r\n\t\t}\r\n\t}",
"public static GridPane getRegistrationPersonPane() {\n return list;\n }",
"public static String generatePlate() {\n\t\t\n\t\tString s = \"\";\n\t\t\n\t\tfor (int i=0; i < 3; i++)\n\t\t\ts += generateLetter();\n\t\t\n\t\ts += '-';\n\t\t\n\t\tfor (int i=0; i < 4; i++)\n\t\t\ts += generateDigit();\n\t\t\n\t\treturn s;\n\t}",
"public void showSupplierList(){\n\t\tfor(int i = 0; i<supplierList.size();i++) {\n\t\t\tSystem.out.println(supplierList.get(i).getSupID()+\";\"+\n\t\t\t\t\tsupplierList.get(i).getCompanyName()+\";\"+\n\t\t\t\t\tsupplierList.get(i).getAddress()+\";\"+\n\t\t\t\t\tsupplierList.get(i).getSaleRep());\n\t\t}\n\t}",
"@GetMapping(\"/register\")\n\tpublic String provideRegistrationForm(Model map)\n\t{\n\t\tSystem.out.println(\"inside vendor reg form\" + getClass().getName());\n\t\tmap.addAttribute(\"vendor_details\", new Vendor());\n\t\tmap.addAttribute(\"payment_modes\", PaymentMode.values());\n\t\tSystem.out.println(map);\n\t\treturn \"/admin/register\";\n\t}",
"public void displayTiles() {\n System.out.println(\"\\n Tiles of this game : \");\n String phrase = \"No army deployed on this tile !\";\n for (Tile tile : this.board.getAllTiles()) {\n if (!tile.isEmpty()) {\n System.out.print(\" { Type tile : \" + tile.getCharacter() + \", Position Y : \" + tile.getPosX() +\", Position X : \" + tile.getPosY() + \", State : Occuped, Player : \" + tile.getPlayer().getName() + \", Army : \" + tile.getPersonnage().getName() + \", Army size : \" +((Army) tile.getPersonnage()).getArmySize() + \"}\\n\");\n } else {\n System.out.print(\" { Type tile : \" + tile.getCharacter() +\", Position Y : \" + tile.getPosX() +\", Position X : \" + tile.getPosY()+ \", State : \"+ phrase + \" }\\n\");\n }\n }\n }",
"public void handleRegister() {\n\t\tmainApp.showRegistrationPage();\n\t}",
"public static void sendRegistrationForm(Player player)\r\n\t{\r\n\t\tList<BattleGroundTemplate> acceptedTemplates = new ArrayList<BattleGroundTemplate>(); \r\n\t\tfor(BattleGroundTemplate template : DataManager.BATTLEGROUND_DATA.getAllTemplates())\r\n\t\t{\r\n\t\t if(player.getLevel() < template.getJoinConditions().getRequiredLevel())\r\n continue;\r\n if(player.getCommonData().getBattleGroundPoints() < template.getJoinConditions().getRequiredBgPoints())\r\n continue;\r\n if(player.getLevel() > template.getJoinConditions().getMaxLevel())\r\n continue;\r\n if(player.getCommonData().getBattleGroundPoints() > template.getJoinConditions().getMaxBgPoints())\r\n continue;\r\n acceptedTemplates.add(template);\r\n\t\t}\r\n\t\t\r\n\t\tif(acceptedTemplates.size() < 1)\r\n\t\t{\r\n\t\t\tPacketSendUtility.sendMessage(player, \"No battleground available for you with your level and your battleground points.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString[] acceptedLocations = new String[acceptedTemplates.size()];\r\n\t\tfor(int i=0; i < acceptedTemplates.size(); i++)\r\n\t\t{\r\n\t\t\tacceptedLocations[i] = acceptedTemplates.get(i).getName() + \" (\" + elyosWaitList.get(acceptedTemplates.get(i).getTplId()).size() + \" - \" + asmodiansWaitList.get(acceptedTemplates.get(i).getTplId()).size() + \" / \" + acceptedTemplates.get(i).getNbPlayers() + \")\";\r\n\t\t}\r\n\t\t\r\n\t\tString html = HTMLService.HTMLTemplate(\"Register to battlegrounds\", \"You can register for the following battlegrounds :\", acceptedLocations, 0, 0);\r\n\t\tHTMLService.showHTML(player, html, 150000001);\r\n\t}",
"public void viewList() {\n\t\tSystem.out.println(\"Your have \" + contacts.size() + \" contacts:\");\n\t\tfor (int i=0; i<contacts.size(); i++) {\n\t\t\tSystem.out.println((i+1) + \". \" \n\t\t\t\t\t+ contacts.get(i).getName() + \" number: \" \n\t\t\t\t\t+ contacts.get(i).getPhoneNum());\n\t\t}\n\t}",
"public void printOut(){\n\t\tSystem.out.println(\"iD: \" + this.getiD());\n\t\tSystem.out.println(\"Titel: \" + this.getTitel());\n\t\tSystem.out.println(\"Produktionsland: \" + this.getProduktionsLand());\n\t\tSystem.out.println(\"Filmlaenge: \" + this.getFilmLaenge());\n\t\tSystem.out.println(\"Originalsprache: \" + this.getOriginalSprache());\n\t\tSystem.out.println(\"Erscheinungsjahr: \" + this.getErscheinungsJahr());\n\t\tSystem.out.println(\"Altersfreigabe: \" + this.getAltersFreigabe());\n\t\tif(this.kameraHauptperson != null) {\n\t\t\tSystem.out.println( \"Kameraperson: \" + this.getKameraHauptperson().toString() );\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println( \"Keine Kameraperson vorhanden \");\n\n\t\t}\n\t\tSystem.out.println(\"----------------------------\");\n\t\tif ( this.listFilmGenre != null) {\n\t\t\tfor( FilmGenre filmGenre: this.listFilmGenre ){\n\t\t\t\tSystem.out.println(\"Filmgenre: \" + filmGenre);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"----------------------------\");\n\t\tfor( Person darsteller: this.listDarsteller ){\n\t\t\tSystem.out.println(\"Darsteller: \" + darsteller);\n\t\t}\n\t\tSystem.out.println(\"----------------------------\");\n\t\tfor( Person synchronSpr: this.listSynchronsprecher ){\n\t\t\tSystem.out.println(\"synchro: \" + synchronSpr);\n\t\t}\n\t\tSystem.out.println(\"----------------------------\");\n\t\tfor( Person regi: this.listRegisseure ){\n\t\t\tSystem.out.println(\"regi: \" + regi);\n\t\t}\n\t\tSystem.out.println(\"----------------------------\");\n\t\tfor( Musikstueck mstk: this.listMusickstuecke ){\n\t\t\tSystem.out.println(\"Musikstueck: \" + mstk);\n\t\t}\n\t\tSystem.out.println(\"----------------------------\");\n\t\tSystem.out.println(\"Datentraeger: \" + this.getDatentraeger());\n\t\tSystem.out.println(\"----------------------------\");\n\t}",
"public String showAllNhanvien();",
"public String marriageLicenseSearchResult() {\n MarriageRegister marriageRegister = marriageRegistrationService.getByIdUKey(marriageIdUKey, user);\n if (marriageRegister != null && marriageRegister.getState() == MarriageRegister.State.LICENSE_PRINTED\n && marriageRegister.getLifeCycleInfo().isActiveRecord()) {\n idUKey = marriageRegister.getIdUKey();\n } else {\n addActionError(getText(\"error.marriageregister.norecords\"));\n return ERROR;\n }\n mode = AppConstants.REGISTER;\n return SUCCESS;\n }",
"void show() {\r\n System.out.println(\"regno:\"+regno + \"\\n name\"+ name + \"\\n marks :\" + m1+\",\"+m2+\",\"+m3);\r\n }",
"@Override\n public void onSucces(List<PiggyBank> list) {\n view.showPiggyBank(list);\n }",
"public void display() {\n \n //Print the features representation\n System.out.println(\"\\nDENSE REPRESENTATION\\n\");\n \n //Print the header\n System.out.print(\"ID\\t\");\n for (short i = 0 ; i < dimension; i++) {\n System.out.format(\"%s\\t\\t\", i);\n }\n System.out.println();\n \n //Print all the instances\n for (Entry<String, Integer> entry : mapOfInstances.entrySet()) {\n System.out.format(\"%s\\t\", entry.getKey());\n for (int i = 0; i < vectorDimension(); i++) {\n //System.out.println(allFeatures.get(entry.getValue())[i]);\n System.out.format(\"%f\\t\", allValues.get(entry.getValue())[i]); \n }\n System.out.println();\n }\n }",
"public String get(RegistrationPlate plate){\n if(!this.registrationList.containsKey(plate))\n return null;\n\n return this.registrationList.get(plate);\n\n }"
] | [
"0.6863282",
"0.65085304",
"0.6171512",
"0.59939104",
"0.5883866",
"0.5860423",
"0.5851464",
"0.5843924",
"0.5775437",
"0.5750821",
"0.57371634",
"0.5728402",
"0.5695423",
"0.56642425",
"0.5658563",
"0.56474876",
"0.56460905",
"0.56380093",
"0.56305045",
"0.55923957",
"0.55827296",
"0.55764127",
"0.55542004",
"0.5527844",
"0.5520677",
"0.5504156",
"0.54940563",
"0.5478034",
"0.5473139",
"0.547289",
"0.54660755",
"0.5443785",
"0.54144704",
"0.540347",
"0.540255",
"0.54021955",
"0.53877634",
"0.53811795",
"0.5372303",
"0.53639185",
"0.53479505",
"0.53288686",
"0.5328587",
"0.53260225",
"0.5323073",
"0.5317189",
"0.5308361",
"0.5302168",
"0.52991116",
"0.5287034",
"0.52812076",
"0.5266247",
"0.52656996",
"0.52614236",
"0.5261024",
"0.5260807",
"0.5258954",
"0.52586937",
"0.525685",
"0.52545065",
"0.525251",
"0.5251041",
"0.5244986",
"0.5232605",
"0.52254874",
"0.5218733",
"0.5217064",
"0.52131504",
"0.5208979",
"0.52061015",
"0.52046674",
"0.5200445",
"0.5193252",
"0.51878566",
"0.5184688",
"0.5173469",
"0.51640695",
"0.5159695",
"0.51588154",
"0.51564234",
"0.5147322",
"0.5136358",
"0.51342994",
"0.5128185",
"0.5127751",
"0.5127593",
"0.5119783",
"0.5118374",
"0.5116752",
"0.5112448",
"0.51043916",
"0.5102879",
"0.51007247",
"0.5098135",
"0.50978583",
"0.50928414",
"0.5092154",
"0.5083731",
"0.50834256",
"0.5079067"
] | 0.794396 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.