query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Sets the current world to the index indicated. Throws an exception if the index is invalid.
public World setCurrentWorld(int index) { assert index >= 0 && index < levels.size(); return levels.get(levelIndex = index); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setWorld(GameData world) {\r\n this.world = world;\r\n }", "public static void setWorld(World aWorld)\r\n/* */ {\r\n\t \tlogger.info(count++ + \" About to setWotld : \" + \"Agent\");\r\n/* 43 */ \tworldForAgent = aWorld;\r\n/* */ }", "public void setWorld(World world) {\n this.world = world;\n }", "public void setWorldPosition(int worldPosition) {\n\t\tcurrChunk = worldPosition / MapChunk.WIDTH;\n\t\tgrowMap();\n\t}", "public void set(long index);", "@Model\n\tprotected void setWorld(World world) {\n\t\tthis.world = world;\n\t}", "public abstract boolean setLocation(World world, int coords[]);", "void update(Env world) throws Exception;", "public void setWorld(World world) throws IllegalStateException {\n\t\tif (!canHaveAsWorld(world))\n\t\t\tthrow new IllegalStateException(\"Invalid position in the world trying to assign this entity to.\");\n\t\n\t\t//If current world is null, don't try to remove 'this' from it\n\t\t//If world is null, don't try to add anything to it\n\t\t//This allows us to provide 'null' as an argument in case we want to \n\t\t//undo the association for this entity.\n\t\tif (!(this.getWorld() == null) && !(world == null)) {\n\t\t\tthis.getWorld().removeEntity(this);\n\t\t\tworld.addEntity(this);\n\t\t}\n\n\t\tthis.world = world;\n\t\t\n\t}", "public void setIndex(int ind){\n\t\tindex = ind;\n\t}", "public void attack(int idx)\n {\n CreatureWorld playerWorld = ;\n \n }", "private void setIndex(int index){\n\t\tthis.index = index;\n\t}", "void setIdx(int i);", "public void setIndex(int index){\r\n \tthis.index = index;\r\n }", "public void setIndex(int index) {\n _index = index;\n }", "public void setStationIdx(int idx) {\n stationIdx = idx;\n }", "public void changeLocation(World newWorld, int x, int y, DIRECTION facing, Color color);", "public void setIndex(int index) { this.index = index; }", "public void set(int index, Object wert) {\r\n\t\t// Das Element an der Stelle index \r\n\t\t//soll auf den Wert wert gesetzt werden\r\n\t\tgeheim[index] = wert;\r\n\t}", "public void setWorldData(WorldData worldData)\n {\n this.worldData = worldData;\n }", "public void setIndex(int index)\n/* */ {\n/* 39 */ this.index = index;\n/* */ }", "public void setIndex(Integer index) {\n this.index = index;\n }", "public void setIndex(Integer index) {\n this.index = index;\n }", "public void setIndex(int index) {\r\n this.index = index;\r\n }", "public void set(int index, int o) {\n\t\tif(index == 0) return;\n\t\tr[index] = o;\n\t}", "protected void updateWorld(World world) {\r\n\t\tthis.world = world;\r\n\t\tsetup(); //Call setup again to re assign certain variables that depend\r\n\t\t\t\t // on the world\r\n\t\tbufferWorld(); //Buffer the new world\r\n\t}", "public void setIndex(int index){\n\t\tthis.index = index;\n\t}", "protected void setIndex(int index) {\n\t\tthis.index = index;\n\t}", "public void setIdx(Integer idx) {\r\n\t\tthis.idx = idx;\r\n\t}", "public void setWorld(@Nullable World worldIn)\n {\n this.world = worldIn;\n\n if (worldIn == null)\n {\n this.field_78734_h = null;\n }\n }", "public void set(int index, String value) {\n\n if (index < 0 || index >= this.solutionVector.length) {\n throw new RuntimeException();\n }\n\n solutionVector[index] = value;\n }", "public Builder setMonsterIndex(int value) {\n bitField0_ |= 0x00000004;\n monsterIndex_ = value;\n onChanged();\n return this;\n }", "public void setIndexValue(int indexValue) throws JNCException {\n setIndexValue(new YangUInt16(indexValue));\n }", "public Builder setMonsterIndex(int value) {\n bitField0_ |= 0x00000002;\n monsterIndex_ = value;\n onChanged();\n return this;\n }", "public synchronized void setIndex(final int value) {\r\n if (value < 0)\r\n throw new IllegalArgumentException(\"illegal index: \" + value);\r\n f_index = value;\r\n }", "public abstract void updateIndex();", "@Before\n public void setUp() throws Exception {\n int row = world.getGrid().getNumRows();\n int col = world.getGrid().getNumCols();\n //initial the world\n for (int i = 0; i < row; ++i) {\n for(int j = 0; j < col; ++j){\n world.remove(new Location(i, j));\n }\n }\n }", "public int getCurrentWorldIndex() {\n\t\treturn levelIndex;\n\t}", "public CoreResourceHandle set(int index, CoreResourceHandle e) {\n if (index >= 0 && index < doSize()) {\n return doSet(index, e);\n }\n throw new IndexOutOfBoundsException();\n }", "public void setWorldDefault(WorldRef world, T value) {\n Objects.requireNonNull(world, \"world\");\n Objects.requireNonNull(value, \"value\");\n\n synchronized (mutationLock) {\n List<T> worldValues = this.allWorldValues.get(world);\n if (worldValues == null) {\n // Make world-specific values possible\n worldValues = singletonArrayList(value);\n this.allWorldValues.put(world, worldValues);\n return;\n }\n\n // Default value is stored in last slot\n worldValues.set(worldValues.size() - 1, value);\n }\n }", "public void set(int index, AnyType t) throws IndexOutOfBoundsException, NullPointerException {\n\n if ( t == null ) throw new NullPointerException();\n \n setNode( index, new Node<AnyType>(t) );\n \n }", "public void setIndex(int position) {\n/* 271 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public Builder setWorldId(long value) {\n \n worldId_ = value;\n onChanged();\n return this;\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 void setIndex(int rowOrCol) {\n index = rowOrCol;\n }", "public abstract <T> void set(int index, T value);", "public void setX (int index, int x) { coords[index][0] = x; }", "public void set(int index, Object value) {\n verifyModifiable();\n\n try {\n elements.set(index, value);\n } catch (IndexOutOfBoundsException exception) {\n if (elements.size() != 0)\n throw new RuntimeException(\"failed to set a value beyond the end of the tuple elements array, size: \" + size() + \" , index: \" + index);\n else\n throw new RuntimeException(\"failed to set a value, tuple may not be initialized with values, is zero length\");\n }\n }", "public void setIndex(int i){\n\t\tthis.index = i;\r\n\t}", "public void updateWorld(Location loc)\n {\n worldData = getPersistence().get(loc.getWorld().getName(), WorldData.class);\n }", "public void setIndexInLayer(int indexInLayer) {\n this.indexInLayer = indexInLayer;\n }", "public void setIndex(int value) {\n this.index = value;\n }", "@Raw\n protected void setSuperWorld(World world) throws IllegalArgumentException{\n \tif(world == null || isValidSuperWorld(world))\t\tthis.superWorld = world;\n \telse throw new IllegalArgumentException(\"Isn't a valid world @setSuperWorld()\");\n }", "public void set(int index, E e) {\r\n if (index < 0 || index > +data.length)\r\n throw new IllegalArgumentException(\"Index is illegal.\");\r\n\r\n set(0, 0, data.length - 1, index, e);\r\n }", "public abstract E set(int index, E e);", "public void setIndexValue(String indexValue) throws JNCException {\n setIndexValue(new YangUInt16(indexValue));\n }", "@Override\n\t\tpublic Community set(int index, Community element) {\n\t\t\treturn null;\n\t\t}", "public void setIndex(int index) {\n nativeSetDCChangeSpeedLevel2Index(index);\n }", "protected void setIndex(Expression expr)\n {\n index = expr;\n }", "@Override\n public E set(int index, E value) {\n // todo: Students must code\n checkRange(index);\n int pos = calculate(index);\n E oldVal = data[pos];\n data[pos] = value;\n return oldVal;\n }", "void changeSetting(int idx) {\n currentIdx = idx;\n }", "public void setLayerIndex(int index){\n layerIndex = index;\n }", "public void setIndex(int i) {\n\t\t\n\t}", "public void setIndex(int value) {\n\t\tthis.index = value;\r\n\t}", "public void setSyncIndex(int index) {\n }", "public void setCurrentScene(int index)\r\n\t{\r\n\t\tsetCurrentScene(_Scenes.get(index));\r\n\t}", "public void setIndexTool(int index) {\r\n this.indexTool = index;\r\n }", "void setGlobalIndex(int localIndex, int globalIndex) {\r\n if (local2globalIndex == null) {\r\n local2globalIndex = new int[table.attributes.size()];\r\n }\r\n local2globalIndex[localIndex] = globalIndex;\r\n }", "void set(int idx, int val);", "public void setY (int index, int y) { coords[index][1] = y; }", "public void set(int index,Fraction x)\r\n\t{\r\n\t\tif(index<0 || index >=n)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Invalid index\");\r\n\t\t}\r\n\t\telse\r\n\t\t\ta[index]=x;\r\n\t}", "public void setIndexNextBoard(int index) throws IllegalArgumentException;", "public void setIndex(int index) {\r\n this.textIndex = index;\r\n }", "public void set(int idx, E value) {\n assert idx >= 0;\n \n checkgrow(idx);\n \n\tarray[idx] = value;\n\t\n }", "@Override\n\tpublic void setValueIndex(int index) {\n\t\t\n\t}", "public void addToWorld(World world);", "void setFeature(int index, Feature feature);", "void setCurrentLocaleIndex(int value) {\n\n this.currentLocaleIndex = value;\n this.updateBundle();\n }", "public abstract void setIndex(int i, boolean b);", "public void setIndex(int value) {\n\t\tthis.index = value;\n\t}", "public MBMWorld getWorld(int num){\n return worlds.get(num);\n }", "public void setElementAt(Object obj, int index);", "void set(int index, T data);", "@Test\n public void testSetIndex() {\n System.out.println(\"setIndex\");\n ArrayList<IndexKey> index = null;\n Data instance = null;\n instance.setIndex(index);\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 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 setMaterialIndex(int index) { materialIndex = index; }", "public void setIndexValue(YangUInt16 indexValue) throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"index\",\n indexValue,\n childrenNames());\n }", "public void setShard(DissectableArea area, int shardIndex) {\n setShard(area.getIndex(), shardIndex);\n }", "@Override\r\n\tpublic void setValueAtIndex(final IScope scope, final Object index, final T value) {\r\n\t\tILocation p = buildIndex(scope, index);\r\n\t\tset(scope, (int) p.getX(), (int) p.getY(), value);\r\n\r\n\t}", "public void set(final int index, final Object object) {\n super.set(index, object);\n }", "void set(int index, Object element);", "public void setElem(int index, long value) {\r\n a[index] = value;\r\n }", "public void setWorld(World world) {\n\t\tthis.world = world;\n\n\t\tsetPlaying(world.isPlayOnStart());\n\t}", "public void setPosition(int index, int chunkid) {\n\t\tmPosition = new Position(index, chunkid);\n\t}", "public static void writeWorld(World world, CompoundTag compound) {\n UUID worldUuid = world.getUID();\n // world UUID used by Bukkit and code above\n compound.putLong(\"WorldUUIDMost\", worldUuid.getMostSignificantBits());\n compound.putLong(\"WorldUUIDLeast\", worldUuid.getLeastSignificantBits());\n // leave a Dimension value for possible Vanilla use\n compound.putInt(\"Dimension\", world.getEnvironment().getId());\n }", "@Override\n public void world() {\n super.world();\n }", "public void setWorldTime(long time)\n {\n worldTime = time;\n }", "public void setTexture(int index, TextureRegion coords)\n\t{\n\t\t//if we are drawing and the new texcoords TEXTURE doesn't match the old one\n\t\tif (drawing && this.textures[index] != null && this.textures[index].getTexture() != coords.getTexture())\n\t\t\tflush();\n\t\tthis.textures[index] = coords;\n\t}", "void setIndexed(boolean indexed);", "protected abstract void initializeWorld();" ]
[ "0.6124446", "0.600604", "0.5934598", "0.59324473", "0.5866096", "0.56500316", "0.56214464", "0.5598187", "0.5571846", "0.5558577", "0.5521809", "0.55065316", "0.54827166", "0.53944755", "0.53690225", "0.53659713", "0.53491503", "0.5348207", "0.5330678", "0.5327307", "0.5307363", "0.5303863", "0.5303863", "0.5265984", "0.5241255", "0.5234518", "0.52266324", "0.5224199", "0.5209454", "0.5207669", "0.5197819", "0.5185185", "0.51835185", "0.5182038", "0.51781255", "0.51589787", "0.5154399", "0.5114482", "0.51139295", "0.51102847", "0.50950503", "0.50877994", "0.5086492", "0.50857955", "0.50694144", "0.5060699", "0.50598747", "0.50495017", "0.50379336", "0.5031616", "0.50214344", "0.50182116", "0.50176907", "0.49823177", "0.4982297", "0.4976002", "0.4975132", "0.49713305", "0.49676308", "0.4955352", "0.49524844", "0.49508402", "0.49458748", "0.4934538", "0.49157777", "0.49137697", "0.49064928", "0.48955214", "0.48917454", "0.4884594", "0.48802465", "0.48769337", "0.48751482", "0.48698476", "0.48680446", "0.48660275", "0.48647317", "0.48613095", "0.4859282", "0.48517594", "0.48447707", "0.48359773", "0.48211533", "0.48203117", "0.48180506", "0.48140064", "0.48027965", "0.48021188", "0.4796587", "0.47942713", "0.47922608", "0.47857037", "0.47779056", "0.47748578", "0.47643384", "0.4763528", "0.47620222", "0.47617522", "0.47604662", "0.47585246" ]
0.7080762
0
Returns the current player, if one exists. If not, returns null.
public User getCurrentPlayer() { return currentPlayer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Player getCurrentPlayer(){\n String playerId = getUser().get_playerId();\n\n Player player = null;\n\n try {\n player = getCurrentGame().getPlayer(playerId);\n } catch(InvalidGameException e) {\n e.printStackTrace();\n System.out.println(\"This is the real Error\");\n }\n\n return player;\n }", "Player getCurrentPlayer();", "Player getCurrentPlayer();", "public Player getCurrentPlayer() {\n return currentPlayer;\n }", "public Player getCurrentPlayer() {\n return currentPlayer;\n }", "public Player getCurrentPlayer(){\n return this.currentPlayer;\n }", "public Player getCurrentPlayer()\n\t{\n\t\treturn current;\n\t}", "public ServerPlayer getCurrentPlayer() {\r\n\t\treturn this.currentPlayer;\r\n\t}", "public Player getPlayer() {\r\n return world.getPlayer();\r\n }", "public String getCurrentPlayer() {\n\t\treturn _currentPlayer;\n\t}", "protected Player getPlayer() {\n return getGame().getPlayers().get(0);\n }", "public Player currentPlayer() {\n\t\treturn (currentPlayer);\n\t}", "public String getCurrentPlayer() {\n return currentPlayer;\n }", "public int getCurrentPlayer() {\n return player;\n }", "Player currentPlayer();", "public int getCurrentPlayer() {\n\t\treturn player;\n\t}", "public final Player getPlayer() {\n return player;\n }", "public Player getCurrent(){\n\t\tPlayer p;\n\t\ttry{\n\t\t\tp = this.players.get(this.currElem);\n\t\t\t\n\t\t} catch(IndexOutOfBoundsException e){\n\t\t\tSystem.out.println(\"There isn't any players.\");\n\t\t\tp = null;\n\t\t}\n\t\t\t\n\t\treturn p; \n\t}", "public String getCurrentPlayer() {\r\n return this.playerIds[this.currentPlayer];\r\n }", "@Override\n public Player getWinningPlayer() {\n return wonGame ? currentPlayer : null;\n }", "Player getPlayer();", "public Player getPlayer()\r\n\t{\r\n\t\treturn mPlayer;\r\n\t}", "public Player getPlayer() {\r\n\t\treturn player;\r\n\t}", "public Player getPlayer() {\n\t\treturn this.player;\r\n\t}", "public Player getPlayer() {\n\t\treturn this.player;\n\t}", "@Override\n\tpublic Player getPlayer() {\n\t\treturn null;\n\t}", "public Player getPlayer() {\n\t\treturn player;\n\t}", "public Player getPlayer() {\n\t\treturn player;\n\t}", "public Player getPlayer() {\n\t\treturn player;\n\t}", "public Player getPlayer() {\n\t\treturn player;\n\t}", "public Player getPlayer() {\n\t\treturn player;\n\t}", "public Player getPlayer() {\n\t\treturn player;\n\t}", "public Player getPlayer() {\n\t\treturn player;\n\t}", "public PlayerProfile getPlayer(P player){\n\n if(playerMap.containsKey(player)){\n //Player is safe to send\n return playerMap.get(player);\n } else {\n //Player isn't safe to send\n System.out.println(\"Tried to grab player \" + player.getName() + \"'s data, but it's not available\");\n return null;\n }\n }", "public Player getPlayer() {\n\t\t\treturn player;\n\t\t}", "public static Player getCurrPlayer(){\n\t\treturn players.get(curr);\n\t}", "@SuppressWarnings(\"unused\")\n public static IHubParkourPlayer getPlayer(Player player) throws NullPointerException {\n if (player == null) {\n throw new NullPointerException(\"Player cannot be null\");\n }\n return CacheManager.getPlayer(player);\n }", "public Player getPlayer();", "public Player getPlayer();", "public Player getPlayer(String username) {\n for (Player p : players) {\n if (p.username.equals(username))\n return p;\n }\n return null;\n }", "public Player getActivePlayer() {\n return activePlayer;\n }", "public Player getPlayer() {\n return player;\n }", "public Player getActivePlayer() {\r\n return activePlayer;\r\n }", "public Player getPlayer(){\n\t\treturn this.player;\n\t}", "@Override\n public String getCurrentPlayer() {\n return godPower.getCurrentPlayer();\n }", "public String getPlayer() {\r\n return player;\r\n }", "public Player getPlayer() {\r\n return player;\r\n }", "public char getCurrentPlayer() {\n\t\treturn currentPlayer;\n\t}", "public Player getPlayer() {\n\t\treturn p;\n\t}", "@Override\n\tpublic String getPlayer() {\n\t\treturn null;\n\t}", "public Player getPlayer() {\n return player;\n }", "public Player getPlayer() {\n return player;\n }", "public Player getPlayer() {\n return player;\n }", "public Player getPlayer() {\n return player;\n }", "public Player getPlayer() {\n return player;\n }", "public static EntityPlayer getPlayer() {\n\t\treturn ModLoader.getMinecraftInstance().thePlayer;\n\t}", "public Player getPlayer() {\n return player;\n }", "public Player getPlayer()\r\n {\r\n return player;\r\n }", "public void loadCurrentPlayer() {\n\t\tScanner sc;\n\t\tFile file = new File(\"data/current_player\");\n\t\tif(file.exists()) {\n\t\t\ttry {\n\t\t\t\tsc = new Scanner(new File(\"data/current_player\"));\n\t\t\t\tif(sc.hasNextLine()) {\n\t\t\t\t\tString player = sc.nextLine();\n\t\t\t\t\t_currentPlayer= player;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t_currentPlayer = null;\n\t\t\t\t}\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tBashCmdUtil.bashCmdNoOutput(\"touch data/current_player\");\n\t\t\t_currentPlayer = null;\n\t\t}\n\t}", "public Player getActivePlayer() {\n if (getActiveColor() == Piece.COLOR.RED)\n return getRedPlayer();\n else\n return getWhitePlayer();\n }", "Optional<Player> getHoldingPlayer();", "public AbstractGameObject getPlayer() {\n return this.player;\n }", "public Sprite getPlayer() {\n\t\treturn player;\n\t}", "public Player getCurrentPlayer(Match match) {\r\n LOGGER.debug(\"--> getCurrentPlayer: match=\" + match);\r\n Player currentPlayer;\r\n\r\n if (match.getCurrentPlayer() == 1) {\r\n currentPlayer = match.getPlayer1();\r\n } else if (match.getCurrentPlayer() == 2) {\r\n currentPlayer = match.getPlayer2();\r\n } else if (match.getCurrentPlayer() == 0) {\r\n currentPlayer = match.getPlayer1();\r\n } else {\r\n throw new GeneralException(\"match has no defined currentPlayer!\");\r\n }\r\n\r\n LOGGER.debug(\"<-- getCurrentPlayer\");\r\n return currentPlayer;\r\n }", "public static Player getPlayer(Player player){\n Player returnPlayer = null;\n if (player != null) {\n try {\n returnPlayer = mapper.readValue(new File(\"Data\\\\PlayerData\\\\\" + getFileName(player) + \".json\"), Player.class);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return returnPlayer;\n }", "public int getCurrentPlayer(){\n return this.currentPlayer;\n }", "public PlayerID getPlayer(){\n\t\treturn this.player;\n\t}", "String getPlayer();", "public Player getPlayer(int idx) {\n\t\ttry {\n\t\t\tPlayer p = players.get(idx);\n\t\t\treturn p;\n\t\t} catch(Exception e) {\n\t\t\treturn null;\n\t\t}\n\t\n\t}", "@Override\npublic Player<T> getCurrentPlayer() {\n\treturn currentPlayer;\n}", "public Player getPlayer() {\n return me;\n }", "@java.lang.Override\n public POGOProtos.Rpc.CombatProto.CombatPlayerProto getPlayer() {\n return player_ == null ? POGOProtos.Rpc.CombatProto.CombatPlayerProto.getDefaultInstance() : player_;\n }", "public PlayerShared getPlayer(String token) throws RemoteException {\n return mainScreenProvider.getPlayer(token);\n }", "public Player getPlayer(String name){ \n\t\tif (players.containsKey(name)) return players.get(name);\n\t\tPlayer player = getModPlayer(name);\n\t\tif (player != null) {\n\t\t\tplayers.put(name, player);\n\t\t\treturn player;\n\t\t}\n\t\treturn player;\n\t}", "public PlayerEntity getPlayer() {\n return player;\n }", "public PlayerEntity getPlayer() {\n return player;\n }", "public Player getClientPlayer() {\n\t\treturn players.get(0);\n\t}", "public int getPlayer() {\r\n\t\treturn myPlayer;\r\n\t}", "public Player getPlayer(UUID id) {\r\n for (Player player : players) {\r\n if (player.getId().equals(id)) {\r\n return player;\r\n }\r\n }\r\n return null;\r\n }", "public Player getPlayer() {\n return humanPlayer;\n }", "public Player getPlayer(String username){\n return this.players.get(username);\n }", "public Player getPlayer() {\n return p;\n }", "public Player getPlayer() {\n return (roomPlayer);\n }", "public static Player matchPlayer(String player) {\n\t\tList<Player> players = Bukkit.matchPlayer(player);\n\n\t\tif (players.size() == 1) {\n\t\t\treturn (Player) players.get(0);\n\t\t}\n\t\treturn null;\n\t}", "public static EntityPlayer getPlayer(String name) {\r\n\t\tfor (EntityPlayer player : getAll()) {\r\n\t\t\tif (player.getName().equals(name)) {\r\n\t\t\t\treturn player;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "Player getSelectedPlayer();", "public Optional<Player> getPlayer(String playerName) {\n List<Player> filterResult = gamePlayers.stream().filter(x -> x.getName().equals(playerName)).collect(Collectors.toList());\n return filterResult.size() == 1 ? of(filterResult.get(0)) : Optional.empty();\n }", "protected Player getPlayer() { return player; }", "Player getPlayer(UUID playerId);", "public synchronized Player getPlayerIfNotFull() {\n if (player1 == null) {\n player1 = new Player(order, 'X');\n order++;\n nrOfPlayers++;\n return player1;\n } else if (player2 == null) {\n player2 = new Player(order, 'O');\n order = 0;\n nrOfPlayers++;\n started = true;\n return player2;\n }\n return null;\n }", "public Player getLeadingPlayer() {\n\t\tif (this.getStones() > this.getOpponentKalaha().getStones()) {\n\t\t\treturn this.Owner;\n\t\t} else if (this.getStones() < this.getOpponentKalaha().getStones()) {\n\t\t\treturn this.Owner.getOpponent();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public Player lookForWinner(){\n\t\tfor(int i = 0; i < this.players.size(); i++){\n\t\t\tif(this.players.get(i).numCards() == 0)\n\t\t\t\treturn this.players.get(i);\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public int getActivePlayer() {\n return activePlayer;\n }", "public Strider getPlayer() {\n return player;\n }", "public boolean isPlayer() {\n return player != null;\n }", "public Player getPlayerByName(String name){\n for (Player player : players){\n if (name.equals(player.getName())){\n return player;\n }\n }\n return null;\n }", "public int getPlayer() {\r\n\t\treturn player;\r\n\t}", "public static Player getPlayerOf(Object identification) {\n if (supportsUuid()) {\n if (identification instanceof UUID) {\n return Bukkit.getPlayer((UUID) identification);\n } else if (identification instanceof String) {\n return Bukkit.getPlayer(StringUtil.convertUUID((String) identification));\n }\n } else if (identification instanceof String) {\n return Bukkit.getPlayerExact((String) identification);\n }\n return null;\n }", "public Player getPlayer() { return player; }", "public Player getPlayer(int id)\n\t{\n\t\tif (playerList != null)\n\t\t{\n\t\t\tfor(Player player : playerList)\n\t\t\t{\n\t\t\t\tif (player.getId() == id)\n\t\t\t\t{\n\t\t\t\t\treturn player;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}" ]
[ "0.79882085", "0.7950344", "0.7950344", "0.78515494", "0.78515494", "0.77889556", "0.77653104", "0.7718118", "0.7552701", "0.7549706", "0.7519027", "0.74973816", "0.7477145", "0.7471873", "0.7457381", "0.74206114", "0.74117863", "0.740179", "0.7384345", "0.73752254", "0.7374494", "0.7343126", "0.7322155", "0.7306582", "0.72962755", "0.7274918", "0.72692007", "0.72692007", "0.72692007", "0.72692007", "0.72692007", "0.72692007", "0.72692007", "0.7255814", "0.7237595", "0.72340775", "0.722473", "0.7203391", "0.7203391", "0.7196598", "0.7139588", "0.7133882", "0.7133259", "0.7128486", "0.71239233", "0.71212006", "0.7102714", "0.7098463", "0.70951915", "0.7093464", "0.70823175", "0.70823175", "0.70823175", "0.70823175", "0.70823175", "0.7075403", "0.70618093", "0.7048159", "0.70389265", "0.70380455", "0.70281684", "0.7025725", "0.70177823", "0.700413", "0.7003736", "0.6992671", "0.6988638", "0.6952565", "0.69316244", "0.6894581", "0.68831354", "0.68654907", "0.6862485", "0.685524", "0.6852295", "0.6852295", "0.6849056", "0.68452466", "0.6838947", "0.6835419", "0.68343717", "0.68304884", "0.6807207", "0.67953557", "0.67894965", "0.67826855", "0.6774647", "0.67676836", "0.67658913", "0.67339283", "0.67328936", "0.67308086", "0.6725687", "0.67244345", "0.6722462", "0.6715728", "0.6707745", "0.67064244", "0.6706196", "0.6705287" ]
0.76019555
8
Sets the player of this Level Pack. Once assigned, another player cannot be assigned.
public void setCurrentPlayer(User newPlayer) { if (currentPlayer != null) { if (currentPlayer.equals(newPlayer)) return; else if (newPlayer == null) throw new RuntimeException("Once a player has been assigned to a Level Pack, it cannot be nulled."); else throw new RuntimeException("Once a player has been assigned to a Level Pack, it cannot be changed."); } else if (newPlayer == null) return; currentPlayer = newPlayer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPlayer(Player player) {\n\t\tthis.player = player;\r\n\t}", "public void setPlayer(Player player) {\r\n this.player = player;\r\n }", "public void setPlayer(Player player) {\n this.player = player;\n }", "public void setPlayer(Player player) {\n this.player = player;\n }", "public void setPlayer(Player player) {\n\t\tthis.player = player;\n\t}", "@Override\n\tpublic void setPlayer(Player player) {\n\n\t}", "public void setPlayer(Player player) {\n\t\t\tthis.player = player;\n\t\t}", "public void setPlayer(Player p) {\n\t\tplayer = p;\n\t}", "public void setPlayer(Player player) {\n this.currentPlayer = player;\n }", "public void setPlayer(Player newPlayer) {\n roomPlayer = newPlayer;\n }", "public void setPlayer(Player player) {\n if(humanPlayer != null) {\n throw new IllegalArgumentException(\"The player has already been set to \"\n + humanPlayer.getName() + \" with the game piece \" + humanPlayer.getPiece());\n }\n if(player == null) {\n throw new IllegalArgumentException(\"Player cannot be null.\");\n }\n humanPlayer = player;\n }", "public void setPlayer(Player player) {\n\n\t\tif (this.player != null) {\n\t\t\tthrow new IllegalStateException(\"The player for this PlayerGuiDisplay has already been set\");\n\t\t}\n\n\t\tthis.player = player;\n\t}", "public void setPlayer(Player _player) { // beallit egy ezredest az adott mapElementre, ha az rajta van\n player = _player;\n }", "public void setPlayer(Player myPlayer){\n battlePlayer=myPlayer;\n }", "public void setPlayer(String player) {\r\n this.player = player;\r\n }", "public static void setPlayer(Player p) {\n\t\tUniverse.player = p;\n\t}", "public void setPlayer(Sprite player) {\n\t\tthis.player = player;\n\t}", "public void setOwner(Player player) {\n owner = player;\n }", "public void setControllable(Rowdy player) {\r\n\t\tthis.player = player;\r\n\t}", "public void setToPlayer(Player player)\n \t{\n \t\t// Define the inventory\n \t\tPlayerInventory inventory = player.getInventory();\n \n \t\t// Clear it all first\n \t\tinventory.clear();\n \t\tinventory.setHelmet(new ItemStack(Material.AIR));\n \t\tinventory.setChestplate(new ItemStack(Material.AIR));\n \t\tinventory.setLeggings(new ItemStack(Material.AIR));\n \t\tinventory.setBoots(new ItemStack(Material.AIR));\n \n \t\t// Set the armor contents\n \t\tif(this.helmet != null) inventory.setHelmet(this.helmet.toItemStack());\n \t\tif(this.chestplate != null) inventory.setChestplate(this.chestplate.toItemStack());\n \t\tif(this.leggings != null) inventory.setLeggings(this.leggings.toItemStack());\n \t\tif(this.boots != null) inventory.setBoots(this.boots.toItemStack());\n \n \t\t// Set items\n \t\tfor(int i = 0; i < 35; i++)\n \t\t{\n\t\t\tinventory.setItem(i, this.items[i].toItemStack());\n \t\t}\n \n \t\t// Delete\n \t\tDemigodsData.jOhm.delete(PlayerCharacterInventory.class, id);\n \t}", "public void setPlayer(Player player){\r\n\t\tif (!hasBeenAcquired()){\r\n\t\t\tthis.acquiredBy = player;\r\n\t\t}\r\n\t\telse{\r\n\t\t\tthrow new IllegalArgumentException(\"Cannot acquire a plot that has already been acquired!\");\r\n\t\t}\r\n\t}", "public void setPlayer(Player player) {\n\t\tthis.player = player;\n\t\tplayer.resetAllPlayerGuesses();\n\t}", "public void setPlayer(ViewerManager2 player) {\n this.player = player;\n // the player is needed to be existent befor starting up the remote Server\n //startRemoteServer();\n\n }", "public void setoPlayer(Player oPlayer) {\n\t\tthis.oPlayer = oPlayer;\n\t}", "public void setAiPlayer(Player player) {\n if(aiPlayer != null) {\n throw new IllegalArgumentException(\"The player has already been set to \"\n + aiPlayer.getName() + \" with the game piece \" + aiPlayer.getPiece());\n }\n if(player == null) {\n throw new IllegalArgumentException(\"Player cannot be null.\");\n }\n aiPlayer = player;\n }", "public void setOwnerPlayer( final PlayerModel ownerPlayer ) {\r\n\t\tthis.ownerPlayer = ownerPlayer;\r\n\t}", "public void setPlayer(final AbstractGameObject player) {\n this.player = player;\n this.cameraHelper.setTarget(this.player);\n }", "private void setPlayer()\t{\n\t\tgrid.setGameObject(spy, Spy.INITIAL_X, Spy.INITIAL_Y);\n\t}", "@Override\r\n\tpublic void set(final Player t) {\n\r\n\t}", "public void setCurrentPlayer(Player P){\n this.currentPlayer = P;\n }", "private void setPlayer() {\n player = Player.getInstance();\n }", "private void setWhitePlayer(Player player) {\r\n\t\tthis.whitePlayer = player;\r\n\t}", "public void setAsPlayer(){\n\t\tthis.isPlayer = true;\n\t}", "public void setPlayers(int theCompPlayer) throws Exception {\r\n\t\tswitch(theCompPlayer) {\r\n\t\t\tcase 1:\r\n\t\t\t\tcompPlayer = 1;\r\n\t\t\t\totherPlayer = 2;\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\tcompPlayer = 2;\r\n\t\t\t\totherPlayer = 1;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tthrow new Exception(\"That player number is invalid\");\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void setTheOwner(Player owner) {\n\t\t\r\n\t}", "public void setPlayer(int play)\n {\n this.player=play;\n }", "void setPlayerId(int playerId);", "private void setBlackPlayer(Player player) {\r\n\t\tthis.blackPlayer = player;\r\n\t}", "public void setOwner(Player owner) {\n\t\tthis.owner = owner;\n\t}", "public void setxPlayer(Player xPlayer) {\n\t\tthis.xPlayer = xPlayer;\n\t}", "Player() {\r\n setPlayerType(\"HUMAN\");\r\n\t}", "@Override\n\tpublic void setBukkitPlayer(final Player bukkitPlayer) {\n\t\tthis.bukkitPlayer = bukkitPlayer;\n\t}", "public void setOpponent(Player p) {\n\t\tthis.opponent = p;\n\t}", "public void setPlayerUUID(UUID playerUUID) {\n this.playerUUID = playerUUID;\n }", "public void setPlayerNumber(int num) {\n playerNum = num;\n }", "public void setPlayerPosition(CellView playerPosition) {\n this.playerPosition = playerPosition;\n }", "public computerPlayer(Player player) {\n\t\tsuper(player);\n\t\t\n\t}", "public void setPlayerId(Integer playerId) {\n this.PlayerId = playerId;\n }", "@Override\r\n\tpublic void setNumeroPlayer(int numeroPlayer) {\n\t\tif(!(numeroPlayer>=0 || numeroPlayer<=1))\r\n\t\t\tthrow new PreConditionError(\"Error PreCondition: numeroPlayer>=0 || numeroPlayer<=1\");\r\n\r\n\t\tcheckInvariant();\r\n\r\n\t\tsuper.setNumeroPlayer(numeroPlayer);\r\n\r\n\t\tcheckInvariant();\r\n\r\n\t\t//post: getNumeroPlayer == numeroPlayer\r\n\t\tif(!(getNumeroPlayer()==numeroPlayer))\r\n\t\t\tthrow new PostConditionError(\"Error PostCondition: getNumeroPlayer()==numeroPlayer\");\r\n\t}", "public void setActivePlayer()\n {\n activePlayer = !activePlayer;\n }", "public void setLevel(Player player, PluginLevel level) {\n\n\t\tString playerName = player.getName();\n\n\t\tif (!entries.containsKey(playerName)) {\n\t\t\tPlayerConfiguration configuration = new PlayerConfiguration();\n\t\t\tconfiguration.setLevel(level);\n\t\t\tentries.put(playerName, configuration);\n\t\t} else {\n\t\t\tPlayerConfiguration config = entries.get(playerName);\n\t\t\tconfig.setLevel(level);\n\t\t}\n\t}", "public void pickUp(Player player) {\n player.setBox(this);\n }", "public void addPlayer(Player player) {\n //int id = Repository.getNextUniqueID();\n this.player = player;\n }", "public void setValue(Player player, T value) {\n\t\tsetValue(player.getUniqueId(), value);\n\t}", "public void setBluePlayer(Player bluePlayer) {\n\t\tthis.bluePlayer = bluePlayer;\n\t}", "public void setPlayerNumber(int playerNumber) {\n this.playerNumber = playerNumber;\n }", "public void setD_CurrentPlayer(Player p_CurrentPlayer) {\n d_CurrentPlayer = p_CurrentPlayer;\n }", "public boolean setPlayer(Player aNewPlayer)\r\n {\r\n boolean wasSet = false;\r\n player = aNewPlayer;\r\n wasSet = true;\r\n return wasSet;\r\n }", "public void setPlayers(Hashtable<Integer, Player> players) {\r\n\t\tthis.players = players;\r\n\t}", "public void setOwner(EntityLivingBase owner) {\n\t\tthis.owner=owner;\n\t\tif(owner instanceof EntityPlayer){\n\t\t\tthis.dataManager.set(OWNER_UUID,Optional.of(owner.getUniqueID()));\n\t\t}\n\t}", "public void setRedPlayer(Player redPlayer) {\n\t\tthis.redPlayer = redPlayer;\n\t}", "public Builder setPlayer(POGOProtos.Rpc.CombatProto.CombatPlayerProto value) {\n if (playerBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n player_ = value;\n onChanged();\n } else {\n playerBuilder_.setMessage(value);\n }\n\n return this;\n }", "private void setPlayerRoom(){\n player.setRoom(currentRoom);\n }", "public void setPlayer(Player p){\r\n playerModel=p; \r\n jEnemigoDatos.setText(p.getEnemy().getName());\r\n /*if(p.getBadConsequence()==null)\r\n jMalRolloDatos.setText(\"No\");\r\n else\r\n jMalRolloDatos.setText(\"Si\");*/\r\n if(p.isDead())\r\n jMuertoDatos.setText(\"Si\");\r\n else\r\n jMuertoDatos.setText(\"No\");\r\n \r\n jNivelDatos.setText(p.getLevels()+\"\");\r\n jCombatLevelDatos.setText(p.getCombatLevel()+\"\");\r\n jNombreDatos.setText(p.getName());\r\n if(p.canISteal())\r\n jRobarDatos.setText(\"Si\");\r\n else\r\n jRobarDatos.setText(\"No\");\r\n \r\n jNSectDatos.setText(Integer.toString(CultistPlayer.getTotalCultistPlayer()));\r\n \r\n if(playerModel.getClass() == CultistPlayer.class){\r\n jSectarioDatos.setText(\"Si\");\r\n //String text=(CultistPlayer)playerModel.getMyCultist().getGainedLevels()+\"\";\r\n //jSectarioDatos.setText(\"\"+(CultistPlayer)playerModel.getGainedLevels());\r\n \r\n }else\r\n jSectarioDatos.setText(\"No\");\r\n \r\n /*if(playerModel.getBadConsequence().isEmpty())\r\n pendingBadView1.setVisiblePending(false);\r\n else*/\r\n pendingBadView1.setVisiblePending(true);\r\n pendingBadView1.limpiar();\r\n \r\n // A continuación se actualizan sus tesoros \r\n fillTreasurePanel (jpVisibles, playerModel.getVisibleTreasures()); \r\n fillTreasurePanel (jpOcultos, playerModel.getHiddenTreasures()); \r\n btRobar.setEnabled(playerModel.canISteal());\r\n manejarBotones(true);\r\n repaint(); \r\n revalidate();\r\n }", "public void setOpponent(Player opponent) {\n\t\tthis.opponent = opponent;\n\t}", "public final void give(final Player player) {\n\t\tplayer.getInventory().addItem(this.getItem());\n\t}", "public static void changePlayer() {\n\t\tvariableReset();\n\t\tif (curPlayer == 1)\n\t\t\tcurPlayer = player2;\n\t\telse\n\t\t\tcurPlayer = player1;\n\t}", "public void setPlayerPosition(Player player) {\n if (player.getPositionX() < 0 && (player.getPositionY() > screenHeight / 2 - doorSize && player.getPositionY() < screenHeight / 2 + doorSize)) {\n //left exit to right entry\n player.position.x = screenWidth - wallSize - player.getRadius();\n player.position.y = player.getPositionY();\n } else if ((player.getPositionX() > screenWidth / 2 - doorSize && player.getPositionX() < screenWidth / 2 + doorSize) && player.getPositionY() < 0) {\n //top exit to bottom entry\n player.position.x = player.getPositionX();\n player.position.y = screenHeight - wallSize - player.getRadius();\n } else if (player.getPositionX() > screenWidth && (player.getPositionY() > screenHeight / 2 - doorSize && player.getPositionY() < screenHeight / 2 + doorSize)) {\n //right exit to left entry\n player.position.x = wallSize + player.getRadius();\n player.position.y = player.getPositionY();\n } else {\n //bottom exit to top entry\n player.position.x = player.getPositionX();\n player.position.y = wallSize + player.getRadius();\n }\n }", "boolean setPlayer(String player);", "private void setPlayer(BoardSquaresState player){\n\t\tif(player == BoardSquaresState.CROSS){\n\t\t\tselectedPlayer = BoardSquaresState.CROSS;\n\t\t\tplayerSelectionButton.setText(R.id.button_title, \"Cross\");\n\t\t\tplayerSelectionButton.setText(R.id.button_subtitle, \"You go first!\");\n\t\t\tplayerSelectionButton.setImageResource(R.id.selector_button_image, R.drawable.cross_1);\n\t\t\tplayerSelectionButton.setImageResource(R.id.item_set_image, R.drawable.btn_check_on_focused_holo_light);\n\t\t}\n\t\telse{\n\t\t\tselectedPlayer = BoardSquaresState.NOUGHT;\n\t\t\tplayerSelectionButton.setText(R.id.button_title, \"Nought\");\n\t\t\tplayerSelectionButton.setText(R.id.button_subtitle, \"Computer goes first!\");\n\t\t\tplayerSelectionButton.setImageResource(R.id.selector_button_image, R.drawable.nought_1);\n\t\t\tplayerSelectionButton.setImageResource(R.id.item_set_image, R.drawable.btn_check_on_focused_holo_light);\n\t\t}\n\n\t}", "public void setState(Player player) {\n\t\tstate = player;\n\t\tstateChanged();\n\t}", "public void setSecondTrustedPlayer(@Nullable AnimalTamer player);", "public void setTriggererPlayer( final PlayerModel triggererPlayer ) {\r\n\t\tthis.triggererPlayer = triggererPlayer;\r\n\t}", "public void setPlayerName(String playerName) {\n this.playerName = playerName;\n }", "public void win(int player)\r\n\t{\r\n\t\taccountValue[player]+=pool;\r\n\t\tendRund();\r\n\t}", "public void cmdSetPlayer(User teller, Player player, String var, StringBuffer setting) throws MalformedURLException, InvalidNameException {\n String value = setting.toString();\n var = var.toLowerCase();\n if (ComparisionHelper.anyEquals(var, \"name\", \"fullname\")) {\n player.setRealName(value);\n } else if (ComparisionHelper.anyEquals(var, \"handle\", \"username\")) {\n String handle = setting.toString();\n player.setHandle(handle);\n } else if (ComparisionHelper.anyEquals(var, \"title\", \"titles\")) {\n Set<Title> titles = player.getTitles();\n titles.clear();\n String[] titleNames = CollectionHelper.split(value);\n List<Title> newTitles = titleService.lookupAll(titleNames);\n titles.addAll(newTitles);\n } else if (\"rating\".equals(var)) {\n Map<RatingCategory, Integer> ratings = player.ratings();\n if (value.isEmpty()) {\n ratings.remove(USCL_RATING);\n } else {\n int r = Integer.parseInt(value);\n ratings.put(USCL_RATING, r);\n }\n } else if (ComparisionHelper.anyEquals(var, \"web\", \"webpage\", \"website\")) {\n player.setWebsite(value);\n } else {\n command.tell(teller, \"Unknown variable: \" + var);\n return;\n }\n cmdShowPlayer(teller, player);\n cmdRefreshProfile(teller, player);\n tournamentService.updatePlayer(player);\n tournamentService.flush();\n }", "public void setPlayerView(PlayerView playerView) {\n this.playerView = playerView;\n }", "public void setPlayerID(int playerID) {\n\t\tthis.playerID = playerID;\n\t}", "public void setPlayer1Name(String name){\n player1 = name;\n }", "public void setPlayerId(String s) {\n\t\tplayerId = s;\n\t}", "public void playerSet(Player player, long chips) {\n currentMatch.playerSet(player, chips);\n ifMatchIsFinishedGoAhead();\n }", "public void setActivePlayer(Piece.COLOR activePlayer) {\n this.activePlayer = activePlayer;\n }", "public void setOppositePlayer(Player P){\n this.oppositePlayer = P;\n }", "@Override\n public void writeNewPlayer(Player player){\n if (gameCodeRef == null){\n throw new IllegalStateException(\"GameRoom is not set\");\n }\n DatabaseReference currentRef = database.getReference(gameCodeRef);\n currentRef.child(\"Players\").child(player.getUsername()).setValue(player.getUsername());\n updateNrPlayerValues(\"NumberOfPlayers\");\n }", "public void setHasPlayer(boolean hasPlayer) {\n\t\tHasPlayer = hasPlayer;\n\t}", "public UserPlayer(){\n this.playerNum = 0;\n this.isLead = false;\n this.playerHand = new Hand();\n this.suitUserChose = null;\n }", "public void switchPlayer(){\n // Menukar giliran player dalam bermain\n Player temp = this.currentPlayer;\n this.currentPlayer = this.oppositePlayer;\n this.oppositePlayer = temp;\n }", "public void purchase(Player player) {\n\t\towned = true;\n\t\towner = player;\n\n\t\tupdateMonopoly(player);\n\t}", "public void setFirstTrustedPlayer(@Nullable AnimalTamer player);", "public void setP1(Player p1) {\n this.p1 = p1;\n }", "public synchronized void attachTo(Player player){\n player.getDashboard().attach(this);\n players.put(player.getName(), player); //save this player to the list of known players\n }", "public JPanel setUpOtherPlayerAssets(Player player) {\n playerToOfferTo = player;\n return setUpDealMakerPanel(player);\n }", "public void setComputerPlayer(ComputerPlayer computer) {\r\n\t\tai = computer;\r\n\t\tsuper.setComputerPlayer();\r\n\t\tsetPlayerName(ai.getName() + \"_\" + getPlayerNum());\r\n\t}", "public void setCurrentPlayer(String currentPlayer) {\n\t\t_currentPlayer = currentPlayer;\n\t}", "public void setActivePlayer(int activePlayer)\n\t{\n\t\tthis.activePlayer = activePlayer;\n\t}", "public void updatePlayer(Player player) {\n\t\t// update the flag GO TO JAIL in Player class\n\t}", "public Player(Level currentLevel) {\n\t\tthis.setCurrentLevel(currentLevel);\n\t\tsuper.getCurrentLevel().getInLevelLocation()[0][0].setHasPlayer(true);\n\t\tthis.setCurrentX(0);\n\t\tthis.setCurrentY(0);\n\t\tthis.attack = 10;\n\t\tthis.setHeath(1000);\n\t}", "public Weapon (Player player) {\n\t\tthis.player = player;\n\t}", "public Player(String playerId) {\n\t\tthis.playerid = playerId;\n\t\tthis.pieceType = null;\n\t}", "public void setP1(ServerPlayer p1) {\r\n\t\tthis.p1 = p1;\r\n\t}" ]
[ "0.7595356", "0.7579623", "0.7561396", "0.75510544", "0.75471544", "0.75157684", "0.7510861", "0.7447775", "0.73503906", "0.7324022", "0.72751623", "0.7212683", "0.7203659", "0.71701044", "0.7158754", "0.71521586", "0.7083065", "0.6964598", "0.683427", "0.68096656", "0.6809563", "0.67530686", "0.674424", "0.6740896", "0.6702724", "0.66925013", "0.66754496", "0.65974075", "0.65951854", "0.6532591", "0.6483385", "0.64821464", "0.64643455", "0.6432077", "0.64192516", "0.6384144", "0.63499254", "0.6303085", "0.6282641", "0.62794316", "0.6239721", "0.6204482", "0.6176307", "0.61675096", "0.6167066", "0.6160614", "0.61565477", "0.6093103", "0.60929304", "0.6084027", "0.60634875", "0.6060897", "0.6056621", "0.6025827", "0.6022134", "0.6017986", "0.6011724", "0.59979945", "0.59721917", "0.5965826", "0.5964528", "0.59464014", "0.5926594", "0.59242785", "0.5923906", "0.5922363", "0.59077805", "0.5899811", "0.588626", "0.5886203", "0.5879838", "0.5876453", "0.5868646", "0.5861389", "0.58524245", "0.5851456", "0.5843286", "0.583982", "0.5835953", "0.5831425", "0.58264744", "0.58204085", "0.58169854", "0.5812884", "0.5802586", "0.57969606", "0.5788894", "0.5787738", "0.57696366", "0.5769525", "0.5763466", "0.5757602", "0.5755867", "0.5752129", "0.5751758", "0.5742902", "0.57340837", "0.57335603", "0.57287055", "0.57271665" ]
0.7433023
8
Returns highest index number of worlds completed by this player.
public int getMaxCompleted() { int max = -1; for (Integer i : playerVisible) max = Math.max(max, i); return max; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int numWorlds(){\n return worlds.size();\n }", "public int nbEnemiesAlive(){\n return state.getPlayers().size()-1;\n }", "public int getMaximumPlayers() {\n return getOption(ArenaOption.MAXIMUM_PLAYERS);\n }", "public int getCurrentWorldIndex() {\n\t\treturn levelIndex;\n\t}", "@java.lang.Override\n public int getMaxBattleParties() {\n return maxBattleParties_;\n }", "public int getNumberUnplayedCities() {\n\t\t return playerPieces.getNumberUnplayedCities();\n\t }", "@java.lang.Override\n public int getMaxBattleParties() {\n return maxBattleParties_;\n }", "public int getMaximumPlayers() {\n return maximumPlayers;\n }", "public int theHighest() {\r\n\t\tint highest = 0;\r\n\t\tfor(int i = 0; i < rows_size; i++) {\r\n\t\t\tfor(int j = 0; j < columns_size; j++) {\r\n\t\t\t\tif(game[i][j].getValue() > highest)\r\n\t\t\t\t\thighest = game[i][j].getValue();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn highest;\r\n\t}", "public synchronized int getOpponentGridSize() {\n\t\treturn this.compPlayerGrid.getCompletedWordList().size();\n\t}", "public int whoWin(){\r\n int winner = -1;\r\n \r\n int highest = 0;\r\n \r\n for(Player player : discWorld.getPlayer_HASH().values()){\r\n if(getPlayerPoints(player) > highest){\r\n highest = getPlayerPoints(player);\r\n winner = player.getID();\r\n }\r\n \r\n }\r\n \r\n return winner;\r\n }", "public int getMaxPlayers() {\n return maxPlayers;\n }", "public int getNumberOfPlayers() {\n return listaJogadores.size() - listaJogadoresFalidos.size();\n }", "public int getMaxPlayers() {\n\t\treturn maxPlayers;\n\t}", "@Override\n\tpublic long getMaxnum() {\n\t\treturn _esfTournament.getMaxnum();\n\t}", "public int getPlayerIndexOfOwner() {\n\t\tif (this.settlement == null) {\n\t\t\tif (this.city == null) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn this.city.getPlayerIndex();\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn this.settlement.getPlayerIndex();\n\t\t}\n\t}", "public int loadedPlayers(){\n return playerMap.size();\n }", "public int getWorldLimit() {\n\t\treturn worldLimit;\n\t}", "private static int maximum() {\n\t\tint popSize = 0;\n\t\tChromosome thisChromo = null;\n\t\tChromosome thatChromo = null;\n\t\tint winner = 0;\n\t\tboolean foundNewWinner = false;\n\t\tboolean done = false;\n\n\t\twhile (!done) {\n\t\t\tfoundNewWinner = false;\n\t\t\tpopSize = population.size();\n\t\t\tfor (int i = 0; i < popSize; i++) {\n\t\t\t\tif (i != winner) { // Avoid self-comparison.\n\t\t\t\t\tthisChromo = population.get(i);\n\t\t\t\t\tthatChromo = population.get(winner);\n\t\t\t\t\tif (thisChromo.conflicts() > thatChromo.conflicts()) {\n\t\t\t\t\t\twinner = i;\n\t\t\t\t\t\tfoundNewWinner = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (foundNewWinner == false) {\n\t\t\t\tdone = true;\n\t\t\t}\n\t\t}\n\t\treturn winner;\n\t}", "public int getHighestLevel()\n\t{\n\t\tint h = 0;\n\t\tfor(int i = 0; i < m_pokemon.length; i++)\n\t\t\tif(m_pokemon[i] != null && h < m_pokemon[i].getLevel())\n\t\t\t\th = m_pokemon[i].getLevel();\n\t\treturn h;\n\t}", "public int bestPlay() {\n for (int i = 0; i < hand.size(); i++) {\n if (canBuild(hand.get(i))) {\n return i;\n }\n }\n\n return -1;\n }", "protected int getHighestInnovation() {\n\t\treturn highest;\n\t}", "private int tournament()\r\n {\r\n\tint out = spinTheWheel();\r\n\tdouble max = ff.evaluate(chromos.get(out),generation());\r\n\tdouble temp_fitness = 0;\r\n\tint temp_index = 0;\r\n\r\n\tfor(int i = 0; i < selPara - 1 + tourStep*generation(); i++)\r\n\t {\r\n\t\ttemp_index = spinTheWheel();\r\n\t\ttemp_fitness = ff.evaluate(chromos.get(temp_index),generation());\r\n\t\tif(temp_fitness > max)\r\n\t\t {\r\n\t\t\tmax = temp_fitness;\r\n\t\t\tout = temp_index;\r\n\t\t }\r\n\t }\r\n\treturn out;\r\n }", "private int mostNumOfCards(WarPlayer[] players) {\n int i;\n\n // Initialize maximum element\n int max = 0;\n\n // Traverse array elements from second and\n // compare every element with current max\n for (i = 1; i < players.length; i++)\n if (players[i].getPoints() > players[max].getPoints())\n max = i;\n\n return max;\n }", "public int getHighestCombatSkill() {\r\n int id = 0;\r\n int last = 0;\r\n for (int i = 0; i < 5; i++) {\r\n if (staticLevels[i] > last) {\r\n last = staticLevels[i];\r\n id = i;\r\n }\r\n }\r\n return id;\r\n }", "int lastKilledPlayerIndex() throws IllegalStateException;", "public int getPlayersEndStack(Player player){\n\t\tif (_endMap.containsKey(player)) {\n\t\t\treturn _endMap.get(player);\n\t\t}\n\t\t\n\t\treturn 0;\n\t}", "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 abstract int maxIndex();", "public int getWinner() {\n for (int i = 0; i < nrOfPlayers(); i++) {\n if (players.get(i).isFinished()) {\n\n // PLAYERLISTENER : Trigger playerEvent for player that WON\n for (PlayerListener listener : playerListeners) {\n PlayerEvent event = new PlayerEvent(this, players.get(i).getColour(), PlayerEvent.WON);\n listener.playerStateChanged(event);\n }\n return i;\n }\n }\n return -1;\n }", "public int getNumberOfSoldiers() {\n return numberOfSoldiers;\n }", "public static int LongestName () {\n int result = 0;\r\n\r\n // LOOP THROUGH THE PLAYERS\r\n for (int i = 0; i < player_count; i++) {\r\n // DID WE FIND A LONGER NAME?\r\n if (player[i].GetName().length() > result)\r\n result = player[i].GetName().length();\r\n }\r\n\r\n // RETURN THE RESULT\r\n return result;\r\n }", "public int qnaMaxIdx() {\n\t\treturn dao.qnaMaxIdx();\r\n\t}", "public int moves() {\n return solution.size() - 1;\n }", "public int getWorstScore()\n {\n return -1;\n }", "public int getNumberOfSelectedPlayers() {\n\t\treturn tmpTeam.size();\n\t}", "private RolapCalculation getAbsoluteMaxSolveOrder() {\n // Find member with the highest solve order.\n RolapCalculation maxSolveMember = calculations[0];\n for (int i = 1; i < calculationCount; i++) {\n RolapCalculation member = calculations[i];\n if (expandsBefore(member, maxSolveMember)) {\n maxSolveMember = member;\n }\n }\n return maxSolveMember;\n }", "public int getHighestVariable() {\n\t\treturn HighestVariable;\n\t}", "private static int[] FindHighest(int[][] terrainMap) {\n\n int[] highestPosition = {-1, -1};\n int highestValue = terrainMap[0][0];\n\n int i, j;\n\n for (i = 0; i < terrainMap.length; i++) {\n for (j = 0; j < terrainMap[0].length; j++) {\n if (terrainMap[i][j] > highestValue) {\n highestValue = terrainMap[i][j];\n highestPosition[0] = i;\n highestPosition[1] = j;\n }\n }\n }\n\n return highestPosition;\n }", "public int findExitIndex() {\n for (int i = 0; i < cells.size() ; i++) {\n if (cells.get(i) == CellState.Exit) { // Entrance -> indexEntrance\n return i;\n }\n }\n return -1;\n }", "public static int currentPlayerIndex() {\n return turn-1;\n }", "public int getNumPlayers(){\n\t\treturn this.players.size();\n\t}", "Integer getMaximumResults();", "public int getHighestId() {\n final SQLiteStatement statement = db.compileStatement(\"SELECT MAX(_id) FROM Games\");\n return (int) statement.simpleQueryForLong();\n }", "public int getHighestStoneY(World world, int x, int z) {\n\t\tfor (int i = world.getMaxHeight() - 1; i >= 0; i--) {\n \t\t\tint id = world.getBlockTypeIdAt(x, i, z);\n \t\t\tif (id == 1)\n \t\t\t\treturn i;\n \t\t}\n \t\treturn 0;\n \t}", "public int getCurentPlayerNumber() {\n return players.size();\n }", "public int highestInterIndex(){\r\n\t\tint index = -1;\r\n\t\tfor (int i = 0; i < this.interVec.length; i++) {\r\n\t\t\tif (index == -1 && this.interVec[i] == true \r\n\t\t\t\t\t&& this.getSwitchState(Model.getInterAt(i).getIRQ()) == true)\r\n\t\t\t\tindex = i;\r\n\t\t\telse if(this.interVec[i] == true &&\r\n\t\t\t\t\t\tthis.getSwitchState(Model.getInterAt(i).getIRQ()) == true &&\r\n\t\t\t\t\t\t\tModel.getInterAt(i).getPriority() < Model.getInterAt(index).getPriority())\r\n\t\t\t\tindex = i;\r\n\t\t}\r\n\t\treturn index;\r\n\t}", "private int getHighestLevelFromProperties(){\n GameModel gameModel = GameModel.getInstance();\n int highestReachedLevel;\n int level = gameModel.getCurrentLevelIndex();\n String highest = properties.getProperty(\"highestReachedLevel\");\n if (highest!=null){ //if property not saved\n highestReachedLevel = Integer.parseInt(highest);\n } else {\n highestReachedLevel = level;\n }\n return highestReachedLevel;\n }", "public int getPartyCount()\n\t{\n\t\tint r = 0;\n\t\tfor(int i = 0; i < m_pokemon.length; i++)\n\t\t\tif(m_pokemon[i] != null)\n\t\t\t\tr++;\n\t\treturn r;\n\t}", "public int playersCount(){\r\n\t\treturn players.size();\r\n\t}", "@Override\r\n\tpublic int getNumberOfLocations() {\n\t\treturn aiSolutionRepresentation.length;\r\n\t}", "public int getLastStuck ()\r\n {\r\n int stuck = 0;\r\n\r\n for (GlyphSection section : glyph.getMembers()) {\r\n Run sectionRun = section.getLastRun();\r\n\r\n for (GlyphSection sct : section.getTargets()) {\r\n if (!sct.isGlyphMember() || (sct.getGlyph() != glyph)) {\r\n stuck += sectionRun.getCommonLength(sct.getFirstRun());\r\n }\r\n }\r\n }\r\n\r\n return stuck;\r\n }", "public final int getDeponentCount() {\r\n synchronized (f_seaLock) {\r\n return f_deponents.size();\r\n }\r\n }", "public long getMaxHeight(){\r\n\t\treturn world.getHeight();\r\n\t}", "public Coords getJumpPathHighestPoint() {\n Coords highestCoords = null;\n int highestElevation = 0;\n for (MoveStep step : steps) {\n if (getGame().getBoard().getHex(step.getPosition()).getLevel() > highestElevation) {\n highestElevation = step.getElevation();\n highestCoords = step.getPosition();\n }\n }\n return highestCoords;\n }", "public int getLastPlayIndex() {\n\t\treturn lastMoveID;\n\t}", "public int maximum() {\n \n if (xft.size() == 0) {\n return -1;\n }\n \n Integer maxRepr = xft.maximum();\n \n assert(maxRepr != null);\n \n int index = maxRepr.intValue()/binSz;\n \n TreeMap<Integer, Integer> map = getTreeMap(index);\n \n assert(map != null);\n \n Entry<Integer, Integer> lastItem = map.lastEntry();\n \n assert(lastItem != null);\n \n return lastItem.getKey();\n }", "public Location findLargest() {\n int max = -1;\n\n final LinkedList<Location> loc = new LinkedList<>();\n\n for (int r = 0; r < board.length; r++)\n for (int c = 0; c < board[0].length; c++)\n if (board[r][c] > max) {\n loc.clear();\n max = board[r][c];\n loc.add(new Location(r, c));\n } else if (board[r][c] == max)\n loc.add(new Location(r, c));\n\n Collections.shuffle(loc);\n\n return loc.pop();\n }", "public int getHighestChunk() {\n return highestChunk_;\n }", "int getQuestCount();", "public int numPlayers(){\n return this.members.size();\n }", "private long opponent_winning_position() {\r\n return compute_winning_position(bitboard ^ mask, mask);\r\n }", "public int getHighestBlockY(World world, int x, int z) {\n\t\tfor (int i = world.getMaxHeight() - 1; i >= 0; i--) {\n \t\t\tint id = world.getBlockTypeIdAt(x, i, z);\n \t\t\tif (id > 0)\n \t\t\t\treturn i;\n \t\t}\n \t\treturn 0;\n \t}", "public int getLastSubIndex() {\n\t\t\tint maxRVI = 0, subIndex = 0;\n\t\t\tfor (Map.Entry<Integer, Integer> entry : subIndices.entrySet()) {\n\t\t\t\tif (entry.getKey() < currentRVIndex) {\n\t\t\t\t\tif (entry.getKey() > maxRVI) {\n\t\t\t\t\t\tmaxRVI = entry.getKey();\n\t\t\t\t\t\tsubIndex = entry.getValue();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn subIndex;\n\t\t}", "public int getHighestChunk() {\n return highestChunk_;\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 size() {\r\n return team.size();\r\n }", "public int getNumberObstacles() {\n return numberObstacles;\n }", "int getMaxStamina();", "public final Integer getMaxSceneId() {\n return getNextNumberInList(scenes.toArray());\n }", "public int getNumberOfSoldiersPlayed() {\n\t\t\treturn developmentCardHand.getNumberOfSoldiersPlayed();\n\t\t}", "public int numPlayers() {\n return playerList.size();\n }", "@Basic @Immutable\n\tpublic int getMaxHitpoints() {\n\t\treturn MAX_HITPOINTS;\n\t}", "public int size() {\n return missions.size();\n }", "public int getNumOfPlayers() {\n\t\treturn playerList.size();\n\t}", "private int getGlobalRanking() {\n\t\tint globalRanking = 0;\n\t\ttry{\n\t\t\t//Retrieve list of all players and order them by global score\n\t\t\tArrayList<Player> allPlayers = dc.getAllPlayerObjects();\n\t\t\tCollections.sort(allPlayers, new Comparator<Player>(){\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(Player p1, Player p2) {\n\t\t\t\t\treturn p2.getGlobalScore() - p1.getGlobalScore();\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\n\t\t\t//Search for the user in the ordered list\n\t\t\tglobalRanking = allPlayers.indexOf(dc.getCurrentPlayer()) +1;\n\n\t\t} catch(DatabaseException e) {\n\t\t\tactivity.showNegativeDialog(\"Error\", e.prettyPrint(), \"OK\");\n\t\t}\n\t\treturn globalRanking;\n\t}", "public Individual getWorst() {\n\t\treturn individuals[individuals.length-1];\n\t}", "public int bestRank() {\n\t\treturn this.decade(this.indexOfBestDecade());\n\t}", "public int playerCount() {\n\t\treturn playerList.size();\n\t}", "public void endGame(Player[] players) { \n int[] ret = calculateScore(players);\n int playerWinnerIdx = 0;\n \n int maxScore = 0;\n for(int i = 0; i < ret.length; i++){\n if(ret[i] > maxScore){\n playerWinnerIdx = i;\n maxScore = ret[i];\n }\n }\n board.setWinningIdx(playerWinnerIdx);\n board.setIsGameEnd(true);\n }", "public int getArmyUnitsFromCountries() {\n int numberOfUnits;\n int numberOfCountries = this.playerModel.getCountries().size();\n if (numberOfCountries < 11) {\n numberOfUnits = 3;\n } else {\n numberOfUnits = Math.floorDiv(numberOfCountries, 3);\n }\n if(!tournamentModeFlag){\n gameModel.updateMainPanel();\n }\n return numberOfUnits;\n }", "public static int getNumPlayers(){\n\t\treturn numPlayers;\n\t}", "public int getResult() {\n return this.max;\n }", "public int getGoal() {\n\t\treturn this.map.getGoal();\n\t}", "public int getMaximumPoints();", "protected int lastIdx() {\n return arrayIndex(currentWindowIndex() - 1);\n }", "int getActivePlayerIndex();", "public int maxHit() {\n\t\treturn maxHit;\n\t}", "@Override\n public int getNumYTiles() {\n return getMaxTileY() - getMinTileY() + 1;\n }", "int getNumOfPlayers() {\n return this.numOfPlayers;\n }", "public int getNumPlayers() {\n\n\t\treturn this.playerCount;\n\t}", "public int getPlayerCount() {\n return 0;\n }", "public int getNumPlayers() {\n return numPlayers;\n }", "int getNumberOfPlayers(){\n return players.size();\n }", "public int getMaxAthletes()\n {\n\treturn maxAthletes;\n }", "public int getRemainingEnemies(){\n return mNumberOfEnemies - (mEnemyIndex + 1);\n }", "public int maxLocals();", "public int countPlayers(){\n return players.size();\n }", "int getLocationsCount();", "private int postprocess() {\n // Index with highest probability\n int maxIndex = -1;\n float maxProb = 0.0f;\n for (int i = 0; i < outputArray[0].length; i++) {\n if (outputArray[0][i] > maxProb) {\n maxProb = outputArray[0][i];\n maxIndex = i;\n }\n }\n return maxIndex;\n }" ]
[ "0.6890737", "0.620469", "0.6078052", "0.606218", "0.6027243", "0.60121447", "0.6009184", "0.59761125", "0.59687084", "0.5878069", "0.58770657", "0.5867033", "0.58348215", "0.5817838", "0.58081967", "0.5800753", "0.57906264", "0.5786339", "0.5760416", "0.5748529", "0.57144904", "0.5708802", "0.5704145", "0.5698017", "0.5675882", "0.5656822", "0.56329936", "0.56322044", "0.5631362", "0.5625713", "0.56196266", "0.5589067", "0.5570128", "0.5568404", "0.5556586", "0.5529337", "0.5506532", "0.54982096", "0.5494149", "0.5490376", "0.5490025", "0.54896295", "0.548801", "0.54719615", "0.54667866", "0.54558384", "0.54490703", "0.54451823", "0.5440167", "0.5437661", "0.5436895", "0.5435842", "0.54220283", "0.5421212", "0.54211", "0.54132366", "0.540732", "0.5404945", "0.54039794", "0.54017085", "0.5401611", "0.53997684", "0.5396935", "0.539468", "0.5393822", "0.53918815", "0.539008", "0.5389126", "0.5386309", "0.5364895", "0.5361913", "0.5358368", "0.53438205", "0.53373104", "0.53078514", "0.5306842", "0.52935654", "0.52918243", "0.5290311", "0.5288031", "0.5283978", "0.5282715", "0.52825755", "0.5280758", "0.52656174", "0.5264873", "0.52629346", "0.52580446", "0.52507997", "0.52505016", "0.52487695", "0.52469325", "0.52449477", "0.5244582", "0.5240734", "0.5240666", "0.5236947", "0.5234763", "0.5229279", "0.5229179" ]
0.6960864
0
Returns whether a player can see the given World index in the TODO: Level Pack Screen.
public boolean isPlayerVisible(int levelIndex) { return playerVisible.contains(levelIndex); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean canEnterWorld(Player p, MultiverseWorld w) {\n return this.hasPermission(p, \"multiverse.access.\" + w.getName(), false);\n }", "public boolean checkWorldAccess(String player, String world) {\n \n Set<String> worldsTMP = bannedWorlds.get(player);\n \n if (worldsTMP == null) {\n return true; //that means, that the player is not banned from any world\n }\n \n if (worldsTMP.contains(world)) {\n return false;\n }\n \n return true;\n }", "public boolean isWorldOkayForPortalActivation(Player player, World world) {\n ConfigurationSection ymlGroups = getConfig().getConfigurationSection(\"groups\");\n if (ymlGroups != null) {\n\n Set<String> groups = ymlGroups.getKeys(false);\n for (String group : groups) {\n\n if (player.hasPermission(\"teleportals.group.\" + group)) {\n List<String> whitelist = ymlGroups.getStringList(group + \".worlds-can-activate\");\n if (!whitelist.isEmpty()) {\n return whitelist.contains(world.getName());\n }\n else {\n List<String> blacklist = ymlGroups.getStringList(group + \".worlds-cannot-activate\");\n if (!blacklist.isEmpty()) {\n return !blacklist.contains(world.getName());\n }\n\n }\n }\n }\n }\n return true;\n }", "public boolean canTravelFromWorld(Player p, MultiverseWorld w) {\n List<String> blackList = w.getWorldBlacklist();\n \n boolean returnValue = true;\n \n for (String s : blackList) {\n if (s.equalsIgnoreCase(p.getWorld().getName())) {\n returnValue = false;\n break;\n }\n }\n \n return returnValue;\n }", "public static boolean hasLegalPlays (Map<Coord,Integer> board, int myIndex) {\n // search every board position for a legal move; the force, it's so brute!\n for (int yy = 0; yy < Board.SIZE; yy++) {\n for (int xx = 0; xx < Board.SIZE; xx++) {\n Coord coord = new Coord(xx, yy);\n if (board.containsKey(coord)) continue;\n if (isLegalPlay(board, myIndex, coord)) return true;\n }\n }\n return false;\n }", "boolean isGoodLocation(World world, int x, int y, int z);", "@Raw\n\tpublic boolean canHaveAsWorld(World world) {\n\t\tif (world != null && (getXCoordinate() > world.getWidth() || getYCoordinate() > world.getHeight()))\n\t\t\treturn false;\n\t\treturn true;\n\t}", "public boolean canMine(EntityPlayer player, int X, int Y, int Z);", "public boolean canSee ( Player player ) {\n\t\treturn extract ( handle -> handle.canSee ( player ) );\n\t}", "public boolean checkRequirements(PlayerBoard playerBoard);", "public boolean checkWorld(String world) {\n if (world_whitelist) {\n if (worlds.contains(world)) {\n return true;\n }\n \n return false;\n \n } else {\n if (worlds.contains(world)) {\n return false;\n }\n return true;\n }\n\n }", "private boolean canSelectCurWorldType() {\n WorldType worldtype = WorldType.WORLD_TYPES[this.selectedIndex];\n if (worldtype != null && worldtype.canBeCreated()) {\n return worldtype == WorldType.DEBUG_ALL_BLOCK_STATES ? hasShiftDown() : true;\n } else {\n return false;\n }\n }", "public boolean addPlayerVisible(Integer levelIndex) {\n\t\treturn playerVisible.add(levelIndex);\n\t}", "public static boolean isLegalPlay (Map<Coord,Integer> board, int myIndex, Coord coord) {\n if (!inBounds(coord.x, coord.y) || board.containsKey(coord)) return false;\n\n // look in each direction from this piece, if we see the other guy's pieces and then one of our\n // own, then this is a legal move\n for (int ii = 0; ii < DX.length; ii++) {\n boolean sawOther = false;\n int x = coord.x, y = coord.y;\n for (int dd = 0; dd < Board.SIZE; dd++) {\n x += DX[ii];\n y += DY[ii];\n if (!inBounds(x, y)) break; // stop when we end up off the board\n Integer color = board.get(new Coord(x, y));\n if (color == null) break;\n else if (color == 1-myIndex) sawOther = true;\n else if (color == myIndex && sawOther) return true;\n else break;\n }\n }\n\n return false;\n }", "public boolean isLoadableWorld(String worldName);", "private boolean canSetOnFire(EntityPlayer player, World world) {\n if (player.dimension == -1) {\n return true;\n }\n\n int x = (int) player.posX;\n int y = (int) player.posY;\n int z = (int) player.posZ;\n\n for (int i = -5; i <= 5; i++) {\n for (int j = -5; j <= 5; j++) {\n for (int k = -5; k <= 5; k++) {\n if (world.getBlock(x + i, y + j, z + k).getMaterial() == Material.lava) {\n return true;\n }\n }\n }\n }\n\n return false;\n }", "public boolean meets(Player player) {\n\t\tfor (String perm : permissions) {\n\t\t\tif (!player.hasPermission(perm)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tboolean isInWorld = worlds.size() == 0;\n\t\tfor (String world : worlds) {\n\t\t\tif (player.getLocation().getWorld().getName().equalsIgnoreCase(world)) {\n\t\t\t\tisInWorld = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (!isInWorld) return false;\n\t\t\n\t\tBendingPlayer bPlayer = BendingPlayer.getBendingPlayer(player);\n\t\tif (bPlayer == null && elements.size() > 0) return false;\n\t\t\n\t\tfor (Element element : elements) {\n\t\t\tif (element instanceof SubElement) {\n\t\t\t\tif (!bPlayer.hasSubElement((SubElement) element)) {\n\t\t\t\t\treturn false;\n\t\t\t\t} \n\t\t\t} else if (!bPlayer.hasElement(element)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean isValid() {\n return (27 - Inventory.getAll().length <= Inventory.find(\"Soft clay\").length)\n || (Inventory.find(\"Soft clay\").length < 1 || Inventory\n .find(\"Astral rune\").length < 1)\n && !Banking.isBankScreenOpen()\n && GlassBlower.antiban.canInteractObject();\n }", "public boolean isWin_LordVetinari(){\r\n // player got lordVetinari card\r\n Player playerHoldCard = null;\r\n for(Player player : discWorld.getPlayer_HASH().values()){\r\n if(player.getPersonalityCardID() == 1){\r\n playerHoldCard = player;\r\n break;\r\n }\r\n }\r\n \r\n if (playerHoldCard != null) {\r\n int numPlayers = discWorld.getPlayer_HASH().size();\r\n\r\n Set<Integer> areaList = new HashSet<Integer>();\r\n for (Integer minionID : playerHoldCard.getMinionList()) {\r\n int minion_ID = minionID;\r\n MinionPiece minion = discWorld.getMinionPiece_HASH().get(minion_ID);\r\n if (minion.getAreaNumber() != ConstantField.DEFAULT_UNDEFINED_PLAYID) {\r\n int areaID = minion.getAreaNumber();\r\n Area area = discWorld.getArea_HASH().get(areaID);\r\n // make sure free of demon\r\n if (area.getDemonList().size() == 0) {\r\n areaList.add(minion.getAreaNumber());\r\n }\r\n }\r\n\r\n }\r\n\r\n if (numPlayers == 2) {\r\n\r\n if (areaList.size() >= 11) {\r\n return true;\r\n }\r\n\r\n } else if (numPlayers == 3) {\r\n\r\n if (areaList.size() >= 10) {\r\n return true;\r\n }\r\n\r\n } else if (numPlayers == 4) {\r\n\r\n if (areaList.size() >= 9) {\r\n return true;\r\n }\r\n\r\n }\r\n }\r\n\r\n return false;\r\n }", "@Override\n protected boolean canMove(int playerIdx) {\n if(pgs.getTurnID() == playerIdx){\n return true;\n }\n return false;\n }", "private static boolean isValidPlayerIndex(byte playerIndex) {\n if(playerIndex == IBoardState.symbolOfFirstPlayer || playerIndex == IBoardState.symbolOfSecondPlayer) {\n return true;\n }\n return false;\n }", "public boolean isHouse() {\n return (this.getId() == Player.PLAYER_1.getHouseIndex())\n || (this.getId() == Player.PLAYER_2.getHouseIndex());\n }", "public boolean checkWorld(Entity entity) {\r\n return entity.getWorld() == worldFrom;\r\n }", "boolean hasMonsterIndex();", "boolean hasMonsterIndex();", "public boolean withinWorld(int x, int y) {\n\t\treturn x >= 0 && x < MAX_WIDTH && y >= 0 && y < MAX_HEIGHT;\n\t}", "boolean canRobPlayer(HexLocation location, int victimIndex);", "public boolean isWin_LordRust(){\r\n // player got LordSelachii card\r\n Player playerHoldCard = null;\r\n for(Player player : discWorld.getPlayer_HASH().values()){\r\n if(player.getPersonalityCardID() == 3){\r\n playerHoldCard = player;\r\n break;\r\n }\r\n }\r\n \r\n if(playerHoldCard != null){\r\n int numPlayers = discWorld.getPlayer_HASH().size();\r\n \r\n int numCityAreaCard = 0;\r\n \r\n for(Integer areaID : playerHoldCard.getCityAreaCardList()){\r\n Area area = discWorld.getArea_HASH().get(areaID);\r\n if(area.getDemonList().size() == 0){\r\n numCityAreaCard++;\r\n }\r\n }\r\n \r\n if (numPlayers == 2) {\r\n if(numCityAreaCard >= 7){\r\n return true;\r\n }\r\n } else if (numPlayers == 3) {\r\n if(numCityAreaCard >= 5){\r\n return true;\r\n }\r\n } else if (numPlayers == 4) {\r\n if(numCityAreaCard >= 4){\r\n return true;\r\n }\r\n }\r\n }\r\n \r\n return false;\r\n }", "public boolean canBuild(Location location, Player player) {\n if (!location.getWorld().getEnvironment().equals(Environment.NORMAL)) {\n // If theyre not in the overworld, they cant build\n return false;\n } else if (landIsClaimed(location)) {\n if(isOwner(location,player)) {\n return true;\n } else if(landPermissionCode(location).equals(\"p\")) {\n return true;\n } else if(landPermissionCode(location).equals(\"c\")) {\n String owner_uuid=REDIS.get(\"chunk\" + location.getChunk().getX() + \",\" + location.getChunk().getZ() + \"owner\");\n String owner_clan=REDIS.get(\"clan:\"+owner_uuid);\n String player_clan=REDIS.get(\"clan:\"+player.getUniqueId().toString());\n if(owner_clan.equals(player_clan)) {\n return true;\n } else {\n return false;\n }\n } else {\n return false;\n }\n } else {\n return true;\n }\n }", "public boolean canPlaceBlockAt(World par1World, int par2, int par3, int par4) {\n\t\tint var5 = par1World.getBlockId(par2, par3 - 1, par4);\n\t\t\n\t\tif (var5 == 0) {\n\t\t\treturn false;\n\t\t}\n\t\tBlock block = Block.blocksList[var5];\n\t\treturn Block.sand.blockID == var5 || block.isOpaqueCube() == true;\n\t}", "public boolean profilePicLevelCheck(int pictureIndex, int playerLevel) {\n boolean isUnlocked = false;\n switch (pictureIndex) {\n case 0:\n isUnlocked = true;\n break;\n case 1:\n isUnlocked = true;\n System.out.println(playerLevel);\n break;\n case 2:\n isUnlocked = true;\n break;\n case 3:\n isUnlocked = true;\n break;\n case 4:\n if (playerLevel >= 5) {\n isUnlocked = true;\n }\n break;\n case 5:\n if (playerLevel >= 7) {\n isUnlocked = true;\n }\n break;\n case 6:\n if (playerLevel >= 9) {\n isUnlocked = true;\n }\n break;\n }\n return isUnlocked;\n }", "public boolean isCrossWorldActivationAllowed() {\n return getConfig().getBoolean(\"teleportal.cross-world\", true);\n }", "public Integer isAlive(int row, int col, Integer[][] world) {\n int aliveNeighbors = countAlive(findNeighbors(row, col, world));\n if (aliveNeighbors < 2 || aliveNeighbors > 3) {\n return 0;\n } else if (aliveNeighbors == 2) {\n return world[row][col];\n } else {\n return 1;\n }\n }", "public boolean canInteractWithBlock(Player player, Location location) {\n\t\tif (mayor.equals(player.getUniqueId()) || councils.containsKey(player.getUniqueId())) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tPlot plot = getPlotHere(location);\n\t\t\treturn (inhabitants.contains(player.getUniqueId()) && plot == null) || (plot != null && plot.canBuild(player, location));\n\t\t}\n\t}", "public boolean isWin_LordSelachii(){\r\n // player got LordSelachii card\r\n Player playerHoldCard = null;\r\n for(Player player : discWorld.getPlayer_HASH().values()){\r\n if(player.getPersonalityCardID() == 2){\r\n playerHoldCard = player;\r\n break;\r\n }\r\n }\r\n \r\n if(playerHoldCard != null){\r\n int numPlayers = discWorld.getPlayer_HASH().size();\r\n \r\n int numCityAreaCard = 0;\r\n \r\n for(Integer areaID : playerHoldCard.getCityAreaCardList()){\r\n Area area = discWorld.getArea_HASH().get(areaID);\r\n if(area.getDemonList().size() == 0){\r\n numCityAreaCard++;\r\n }\r\n }\r\n \r\n if (numPlayers == 2) {\r\n if(numCityAreaCard >= 7){\r\n return true;\r\n }\r\n } else if (numPlayers == 3) {\r\n if(numCityAreaCard >= 5){\r\n return true;\r\n }\r\n } else if (numPlayers == 4) {\r\n if(numCityAreaCard >= 4){\r\n return true;\r\n }\r\n }\r\n }\r\n \r\n return false;\r\n }", "static boolean canWin() throws GameActionException {\n\t\tfloat difference = 1000 - rc.getTeamVictoryPoints();\n\t\tif ((rc.getTeamBullets() / 10) >= difference) {\n\t\t\trc.donate(rc.getTeamBullets());\n\t\t\treturn true;\n\t\t} else\n\t\t\treturn false;\n\t}", "boolean hasWorldid();", "boolean hasWorldid();", "public boolean isPlayerAllowedToUseThisHere(Player player, Location location, Material material)\n \t{\n \t\treturn FactionsPlayerListener.playerCanUseItemHere(player, location, material, true);\n \t}", "boolean isPlayableInGame();", "public boolean canMove(Location loc){\n if(loc.getX() >= theWorld.getX() || loc.getX() < 0){\n System.out.println(\"cant move1\");\n return false;\n }else if(loc.getY() >= theWorld.getY() || loc.getY() < 0){\n System.out.println(\"cant move2\");\n return false;\n }else{\n System.out.println(\"can move\");\n return true;\n }\n }", "public boolean win(){\r\n for(int row = 0; row<map.length; row++){\r\n for(int col = 0; col<map[0].length; col++){\r\n if(map[row][col].getSafe() == false && (map[row][col].getVisual().equals(square) || map[row][col].getVisual().equals(bomb))){\r\n return false;\r\n }\r\n if(map[row][col].getSafe() == true && map[row][col].getVisual().equals(flag)){\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "public boolean playerInRangeProtection(Location loc, Player player) {\n Set set = plugin.map.entrySet();\n Iterator i = set.iterator();\n\n while (i.hasNext()) {\n Map.Entry me = (Map.Entry) i.next();\n List list = (List) me.getValue();\n for (int index = 0, d = list.size(); index < d; index++) {\n Areas area = (Areas)list.get(index);\n Location x = area.getLocation();\n if (loc.distance(x) < radius) {\n if(me.getKey().equals(player.getName())) {\n return false;\n } else {\n player.sendPopup(plugin.msg(\"You are in a protected area owned by: \" + me.getKey()));\n return true;\n }\n }\n }\n }\n return false;\n }", "public boolean getCanSpawnHere()\n {\n return this.isValidLightLevel() && super.getCanSpawnHere();\n }", "boolean isVisible(Player player, Entity entity);", "protected boolean canMove(int playerIdx) {\n int activePlayer = state.getCurrentTeamsTurn().getTEAMNUMBER();\n return (activePlayer == playerIdx);\n }", "public boolean meWin(){\n return whitePieces.size() > blackPieces.size() && isWhitePlayer;\n }", "public boolean isWin_LordDeWorde(){\r\n // player got LordSelachii card\r\n Player playerHoldCard = null;\r\n for(Player player : discWorld.getPlayer_HASH().values()){\r\n if(player.getPersonalityCardID() == 4){\r\n playerHoldCard = player;\r\n break;\r\n }\r\n }\r\n \r\n if(playerHoldCard != null){\r\n int numPlayers = discWorld.getPlayer_HASH().size();\r\n \r\n int numCityAreaCard = 0;\r\n \r\n for(Integer areaID : playerHoldCard.getCityAreaCardList()){\r\n Area area = discWorld.getArea_HASH().get(areaID);\r\n if(area.getDemonList().size() == 0){\r\n numCityAreaCard++;\r\n }\r\n }\r\n \r\n if (numPlayers == 2) {\r\n if(numCityAreaCard >= 7){\r\n return true;\r\n }\r\n } else if (numPlayers == 3) {\r\n if(numCityAreaCard >= 5){\r\n return true;\r\n }\r\n } else if (numPlayers == 4) {\r\n if(numCityAreaCard >= 4){\r\n return true;\r\n }\r\n }\r\n }\r\n \r\n return false;\r\n }", "@Override\n\tpublic boolean isUseableByPlayer(EntityPlayer p_70300_1_) {\n\t\treturn worldObj.getTileEntity(field_145851_c, field_145848_d,\n\t\t\t\tfield_145849_e) != this ? false : p_70300_1_.getDistanceSq(\n\t\t\t\tfield_145851_c + 0.5D, field_145848_d + 0.5D,\n\t\t\t\tfield_145849_e + 0.5D) <= 64.0D;\n\t}", "private final boolean isInsideWorld() {\n\t\t// Check it is inside the world\n\t\tif (x<=0 || y<=0 || x+width>=_world.getWidth() || y+height>=_world.getHeight()) {\n\t\t\tif (_mass == 0 && alive && x == 0 && y == 0)\n\t\t\t\tdie(this);\n\t\t\t// Adjust direction\n\t\t\tif (x <= 0 || x + width >= _world.getWidth())\n\t\t\t\tdx = -dx;\n\t\t\tif (y <= 0 || y + height >= _world.getHeight())\n\t\t\t\tdy = -dy;\n\t\t\tdtheta = 0;\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean canHit() {\n\t\treturn this.hand.countValue().first() < 17;\n\t}", "boolean canReplace(World world, int x, int y, int z);", "public boolean hasWG() {\n Plugin plugin = getServer().getPluginManager().getPlugin(\"WorldGuard\");\n return plugin != null;\n }", "@Override\n\tpublic boolean isUseableByPlayer(EntityPlayer player){\n\t return worldObj.getTileEntity(xCoord, yCoord, zCoord) != this ? false : player.getDistanceSq(xCoord + 0.5D, yCoord + 0.5D, zCoord + 0.5D) <= 64.0D;\n\t}", "private boolean isInGameWindow(){\n if (currPos.x > Window.getWidth() || currPos.y > Window.getHeight()){\n return false;\n }\n return true;\n }", "private static boolean checkWin() {\n\t\tfor (int i = 0; i < nRows; i++)\n\t\t\tfor (int j = 0; j < nColumns; j++) {\n\t\t\t\tCell cell = field.getCellAt(i, j);\n\t\t\t\tif (cell.hasMine() && !cell.hasSign())\t // if the cell has a mine\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// but has no flag\n\t\t\t\t\treturn false;\n\t\t\t\tif (cell.getFlag() >= 0 && !cell.getVisiblity()) // if the cell has no\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// mine in it but\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// it is not visible\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\twin = gameOver = true;\n\t\treturn true;\n\t}", "public int checksStatus(int indexX, int indexY) {\n if (allTiles[indexX][indexY].getType() == 10) {\n return -1;\n }\n int numOfCoveredTiles = 0;\n\n\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n if (allTiles[i][j].isCover() == true)\n numOfCoveredTiles++;\n }\n }\n\n if (numOfCoveredTiles==bombs)\n return 1;\n return 0;\n }", "@OnlyIn(Dist.CLIENT)\n public boolean canLoadWorld(String saveName) {\n return Files.isDirectory(this.savesDir.resolve(saveName));\n }", "@SuppressWarnings(\"deprecation\")\n\tprivate static boolean hasPermission(String player, Block block, boolean ownership) {\n\t\tInventoryHolder chest;\n\t\tif (block.getType() == Material.CHEST || block.getType() == \n\t\t\t\tMaterial.TRAPPED_CHEST) {\n\t\t\tchest = getHolder(block);\n\t\t} else if (block.getType() == Material.WALL_SIGN) {\n\t\t\tBlock chestBlock = null;\n\t\t\tswitch (block.getData()) {\n\t\t\tcase 2: \n\t\t\t\tchestBlock = block.getRelative(BlockFace.NORTH\n\t\t\t\t\t\t.getOppositeFace());\n\t\t\t\tbreak;\n\t\t\tcase 5: \n\t\t\t\tchestBlock = block.getRelative(BlockFace.EAST\n\t\t\t\t\t\t.getOppositeFace());\n\t\t\t\tbreak;\n\t\t\tcase 3: \n\t\t\t\tchestBlock = block.getRelative(BlockFace.SOUTH\n\t\t\t\t\t\t.getOppositeFace());\n\t\t\t\tbreak;\n\t\t\tcase 4: \n\t\t\t\tchestBlock = block.getRelative(BlockFace.WEST\n\t\t\t\t\t\t.getOppositeFace());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (chestBlock.getType() != Material.CHEST && chestBlock\n\t\t\t\t\t.getType() != Material.TRAPPED_CHEST) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tchest = getHolder(chestBlock);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tString[] owners = getUsers(getSigns(getChests(chest)));\n\t\t\n\t\treturn (owners.length == 0 && !ownership)|| Arrays.asList(owners).contains(player);\n\t}", "@Override\n public boolean anotherPlayIsPossible()\n {\n \t\n List<Integer> test = cardIndexes();\n return containsSum13(test) || containsK(test);\n \n }", "public boolean isAtWar(EntityPlayer player) {\n State state = StateManager.getInstance().getStateFromPlayer(player);\n if(state == null)\n return false;\n\n return isAtWar(state);\n }", "public boolean checkWin() {\n for (int i = 0; i <= 7; i++) {\n for (int j = 0; j <= 4; j++) {\n if (grid[i][j].equals(\"X\") && grid[i][j + 1].equals(\"X\") && grid[i][j + 2].equals(\"X\") && grid[i][j + 3].equals(\"X\")) {\n return true;\n }\n\n\n }\n\n }\n return false;\n }", "public boolean lookAtWinCard(){\n boolean winCard = false;\n for(Card cards: playerHand){\n if(cards.getCardName().equals(\"Magnetite\")){\n winCard = true;\n }\n }\n return winCard;\n }", "public static boolean canJump(int[][] board, int player) {\r\n\t\t\r\n\t\tboolean ans = false;\r\n\t\tint [][]AlBJ = getAllBasicJumps(board,player);\r\n\t\t\r\n\t\tif (AlBJ.length>0){ans\t= true;}\r\n\t\treturn ans;\r\n\t}", "private boolean playerWin(Board board)\n {\n return check(board, PLAYER);\n }", "public boolean canPlayHere(short side, short position) {\r\n\treturn this.currentSide == side && this.territory[side][position] != 0;\r\n }", "private boolean canAttack(Piece p, Location loc)\n {\n int thisRow = getLocation(p).getRow();\n int thisCol = getLocation(p).getCol();\n int otherRow = loc.getRow();\n int otherCol = loc.getCol();\n int rowDiff = Math.abs(otherRow-thisRow);\n int colDiff = Math.abs(otherCol-thisCol);\n switch (p.getType())\n {\n case PAWN:\n return rowDiff==1&&colDiff==1 &&\n ((p.white()&&otherRow<thisRow)||(!p.white()&&otherRow>thisRow));\n \n case KING:\n return adjacent(getLocation(p),loc);\n \n case KNIGHT:\n return rowDiff>0 && colDiff>0 && rowDiff+colDiff==3;\n \n //rook, bishop, queen are identical, except for their preconditions\n case ROOK:case BISHOP:case QUEEN:\n if ((p.getType()==Type.ROOK&&rowDiff>0&&colDiff>0)\n ||(p.getType()==Type.BISHOP&&rowDiff!=colDiff)\n ||(p.getType()==Type.QUEEN&&rowDiff>0&&colDiff>0&&rowDiff!=colDiff))\n return false;\n Location next = getLocation(p).closerTo(loc);\n while (!next.equals(loc))\n {\n if (getPiece(next)!=null) //checks for piece in the way\n return false;\n next = next.closerTo(loc);\n }\n return true;\n }\n return false; //will never happen because all piece types covered\n }", "private static boolean isWin()\n {\n boolean win = true;\n for(Ship[] k:map)\n {\n for(Ship o:k)\n {\n if(o.getState()==1)\n win=false;\n }\n }\n return win;\n }", "boolean isCanSeeFriendlyInvisibles();", "private boolean isValid(int index) {\r\n return index >= 0 && index < dimension;\r\n }", "public boolean isWin() {\n\t\t\n\t\tboolean win = true;\n\t\t\n\t\tfor(int i = 0; i < numTiles - 2; i++) {\n\t\t\twin = win && (boardConfig[i] < boardConfig[i+1]);\n\t\t}\n\t\t\n\t\twin = win && (boardConfig[numTiles - 1] == 0);\n\t\t\n\t\treturn win;\n\t}", "protected boolean checkVisiblePermission() {\r\n ClientSecurityManager manager = ApplicationManager.getClientSecurityManager();\r\n if (manager != null) {\r\n if (this.visiblePermission == null) {\r\n if ((this.buttonKey != null) && (this.parentForm != null)) {\r\n this.visiblePermission = new FormPermission(this.parentForm.getArchiveName(), \"visible\",\r\n this.buttonKey, true);\r\n }\r\n }\r\n try {\r\n // Checks to show\r\n if (this.visiblePermission != null) {\r\n manager.checkPermission(this.visiblePermission);\r\n }\r\n this.restricted = false;\r\n return true;\r\n } catch (Exception e) {\r\n this.restricted = true;\r\n if (e instanceof NullPointerException) {\r\n ToggleButton.logger.error(null, e);\r\n }\r\n if (ApplicationManager.DEBUG_SECURITY) {\r\n ToggleButton.logger.debug(this.getClass().toString() + \": \" + e.getMessage(), e);\r\n }\r\n return false;\r\n }\r\n } else {\r\n return true;\r\n }\r\n }", "boolean hasLoginPack();", "@Override\n\tpublic boolean canPlaceBlockAt(World world, int x, int y, int z) {\n\t\t//int currentID = world.getBlockId(x, y, z);\n\t\treturn (world.isAirBlock(x, y, z));\n\t}", "private boolean checkIfGameIsWon() {\n\n //loop through rows\n for(int i = 0; i < NUMBER_OF_ROWS; i++) {\n //gameIsWon = this.quartoBoard.checkRow(i);\n if (this.quartoBoard.checkRow(i)) {\n System.out.println(\"Win via row: \" + (i) + \" (zero-indexed)\");\n return true;\n }\n\n }\n //loop through columns\n for(int i = 0; i < NUMBER_OF_COLUMNS; i++) {\n //gameIsWon = this.quartoBoard.checkColumn(i);\n if (this.quartoBoard.checkColumn(i)) {\n System.out.println(\"Win via column: \" + (i) + \" (zero-indexed)\");\n return true;\n }\n\n }\n\n //check Diagonals\n if (this.quartoBoard.checkDiagonals()) {\n System.out.println(\"Win via diagonal\");\n return true;\n }\n\n return false;\n }", "public boolean canPlaceBlockAt(World par1World, int par2, int par3, int par4) {\n\t\tint l = 0;\n\n\t\tif (par1World.getBlock(par2 - 1, par3, par4) == this) {\n\t\t\t++l;\n\t\t}\n\n\t\tif (par1World.getBlock(par2 + 1, par3, par4) == this) {\n\t\t\t++l;\n\t\t}\n\n\t\tif (par1World.getBlock(par2, par3, par4 - 1) == this) {\n\t\t\t++l;\n\t\t}\n\n\t\tif (par1World.getBlock(par2, par3, par4 + 1) == this) {\n\t\t\t++l;\n\t\t}\n\n\t\treturn l > 1 ? false : (this.isThereANeighborChest(par1World, par2 - 1, par3, par4) ? false : (this.isThereANeighborChest(par1World, par2 + 1, par3,\n\t\t\t\tpar4) ? false : (this.isThereANeighborChest(par1World, par2, par3, par4 - 1) ? false : !this.isThereANeighborChest(par1World, par2, par3,\n\t\t\t\tpar4 + 1))));\n\t}", "private boolean isValidIndex(final int theY, final int theX) {\n return 0 <= theY && theY < myGrid.length\n && 0 <= theX && theX < myGrid[theY].length;\n }", "private boolean checkHorizontalWin(BoardPosition lastPos) {\r\n int i, col, count;\r\n int check = 9;\r\n int row = lastPos.getRow();\r\n\r\n for(i = (xMax-xMax)+2; i < (xMax / 2); i += 2){\r\n count = 0;\r\n for(col = i; col < (i + check); col++){\r\n if(grid[row][col] == lastPos.getPlayer())\r\n count++;\r\n }\r\n if (count == win)\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean checkIfAllSunk(int PlayerOrAI)\n\t{\n\n\n\t\tint numberOfAIorPlayerShipsSunk = 0;\n\t\t//System.out.println(\"got to place ONE\");\n\t\t\n\n\t\tif (PlayerOrAI == 1)\n\t\t{\n\t\t\tfor(int x = 0; x < 2; x++) //aiBattleShipsList.length\n\t\t\t{\n\t\t\t\tif(aiBattleShipsList[x].getIsSunk())\n\t\t\t\t{\n\t\t\t\t\tnumberOfAIorPlayerShipsSunk++;\n\t\t\t\t\t//System.out.println(\"2\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(numberOfAIorPlayerShipsSunk == 2) \n\t\t\t{\n\t\t\t\tSystem.out.println(\"The Player has won!\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t}\n\t\telse if (PlayerOrAI == 0)\n\t\t{\n\t\t\tfor(int x = 0; x < playerBattleShipsList.length; x++)\n\t\t\t{\t\n\t\t\t\tif(playerBattleShipsList[x].getIsSunk()){\n\t\t\t\t\tnumberOfAIorPlayerShipsSunk++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(numberOfAIorPlayerShipsSunk == 5) \n\t\t\t{\n\t\t\t\tSystem.out.println(\"The AI has won, unlucky\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isFull ()\n {\n for (int row = 0; row < 3; row++)\n for (int column = 0; column < 3; column++)\n if (getGridElement(row, column).getPlayer() == Player.NONE)\n return false;\n\n return true;\n }", "private boolean checkIfGameIsWon() {\n\t\t//loop through rows\n\t\tfor (int i = 0; i < NUMBER_OF_ROWS; i++) {\n\t\t\t//gameIsWon = this.quartoBoard.checkRow(i);\n\t\t\tif (this.quartoBoard.checkRow(i)) {\n\t\t\t\tSystem.out.println(\"Win via row: \" + (i) + \" (zero-indexed)\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//loop through columns\n\t\tfor (int i = 0; i < NUMBER_OF_COLUMNS; i++) {\n\t\t\t//gameIsWon = this.quartoBoard.checkColumn(i);\n\t\t\tif (this.quartoBoard.checkColumn(i)) {\n\t\t\t\tSystem.out.println(\"Win via column: \" + (i) + \" (zero-indexed)\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//check Diagonals\n\t\tif (this.quartoBoard.checkDiagonals()) {\n\t\t\tSystem.out.println(\"Win via diagonal\");\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public boolean canBuild(Player player, Location location) {\n\t\tif (mayor.equals(player.getUniqueId()) || councils.containsKey(player.getUniqueId())) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tPlot plot = getPlotHere(location);\n\t\t\treturn plot != null && plot.canBuild(player, location);\n\t\t}\n\t}", "boolean CanUseSoldier(int victimIndex, HexLocation location);", "boolean checkWin(Tile initialTile);", "private boolean playerFoundTreasure(int playerRow, int playerCol){\n return (playerRow == 7 && playerCol == 9);\n }", "public boolean isUseableByPlayer(EntityPlayer entityPlayer)\n {\n return this.worldObj.getTileEntity(this.xCoord, this.yCoord, this.zCoord) == this &&\n entityPlayer.getDistanceSq((double) this.xCoord + 0.5D, (double) this.yCoord + 0.5D,\n (double) this.zCoord + 0.5D) <= 64.0D;\n }", "public boolean canSurf()\n\t{\n\t\treturn getTrainingLevel() >= 25;\n\t}", "public boolean inBounds(Actor a)\n {\n boolean inX = Math.abs(a.getXPos()) < levelWidth/2;\n boolean inY = Math.abs(a.getYPos()) < levelHeight/2;\n return inX && inY;\n }", "private boolean isInDoor(Entity player){\n Sprite playerSprite= (Sprite) player.getComponent(Sprite.class);\n for(int i = 0; i<Main.colliderWallMap.size(); i++){\n if(Main.colliderWallMap.get(i).intersects(playerSprite.getValue().getX(), playerSprite.getValue().getY(),playerSprite.getValue().getWidth(), playerSprite.getValue().getHeight())){\n return false;\n }\n }\n\n return true;\n }", "public boolean hasLoginPack() {\n return packCase_ == 2;\n }", "public boolean isVisible() {\r\n return !((x + width) < ocean.getXmin() || x > ocean.getXmax() || (y + height) < ocean.getYmin()\r\n || y > ocean.getYmax());\r\n }", "private boolean shouldAttackPlayer(EntityPlayer player) {\n ItemStack itemStack = player.inventory.armorInventory[3];\n if (itemStack != null && itemStack.getItem() == Item.getItemFromBlock(Blocks.pumpkin))\n return false;\n Vec3 lookVec = player.getLook(1.0F).normalize();\n Vec3 posVec = Vec3.createVectorHelper(this.posX - player.posX, this.boundingBox.minY + this.height / 2.0 - player.posY - player.getEyeHeight(), this.posZ - player.posZ);\n double distance = posVec.lengthVector();\n posVec = posVec.normalize();\n double dotProduct = lookVec.dotProduct(posVec);\n return dotProduct > 1.0 - 0.025 / distance ? player.canEntityBeSeen(this) : false;\n }", "public boolean makeVisible(int player) {\n\t\tif (player < 0 || player >= 4) {\n\t\t\treturn false;\n\t\t}\n\t\tshow[player] = true;\n\t\treturn true;\n\t}", "boolean hasOpenedInventory(Player player);", "private boolean tileIsInbounds(int row, int col){\n\t\treturn row >= 0 && col >= 0\n\t\t\t\t&& row < board.length && col < board[0].length;\n\t}", "public boolean hasSkin()\n {\n NetworkPlayerInfo networkplayerinfo = this.getPlayerInfo();\n return networkplayerinfo != null && networkplayerinfo.hasLocationSkin();\n }", "public boolean liesOnWall() {\n return getBaseParameters().getWorld()[this.getX()][this.getY()] == getBaseParameters().getWall();\n }", "public static boolean canPlayerMove(Player player){\r\n int playerX = 0;\r\n int playerY = 0;\r\n int nX;\r\n int nY;\r\n //finding the player on the board\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 playerX = i;\r\n playerY = j;\r\n }\r\n }\r\n }\r\n //making sure that the player stays on the board\r\n\r\n if(playerY != board[0].length-1) {\r\n nX = playerX;\r\n nY = playerY + 1;\r\n if (board[nX][nY].west && board[playerX][playerY].east && !board[nX][nY].isOnFire) {//if the tile will accept the player\r\n return true;\r\n }\r\n }\r\n\r\n if(playerY != 0) {\r\n nX = playerX;\r\n nY = playerY - 1;\r\n if (board[nX][nY].east && board[playerX][playerY].west && !board[nX][nY].isOnFire) {\r\n return true;\r\n }\r\n }\r\n\r\n if(playerX != 0) {\r\n nX = playerX - 1;\r\n nY = playerY;\r\n if (board[nX][nY].south && board[playerX][playerY].north && !board[nX][nY].isOnFire) {\r\n return true;\r\n }\r\n }\r\n\r\n if(playerX != board.length-1) {\r\n nX = playerX + 1;\r\n nY = playerY;\r\n if (board[nX][nY].north && board[playerX][playerY].south && !board[nX][nY].isOnFire) {\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n }", "private boolean playLevel() {\n // Opens panel of tiles with dimensions appropriate to the current level.\n // Starts the viewer for each model cell.\n // Shows the initial state of all cells in the model.\n for (int l = 0; l < model.getHeight(); l++)\n for (int c = 0; c < model.getWidth(); c++)\n view.setTile(l,c, CellTile.newInstance( model.getCell(l,c) ));\n while ( play() ) // Process one input event (mouse or keyboard)\n status.setMoves( model.getMoves() );\n return winGame(); // Verify win conditions; false: finished without complete\n }", "public boolean isSpawnable(Location loc) {\n Block block = loc.getBlock();\n Block under = loc.getBlock().getRelative(BlockFace.DOWN);\n Block above = loc.getBlock().getRelative(BlockFace.UP);\n if (block.getType().equals(Material.AIR) && !under.getType().equals(Material.AIR) && above.getType().equals(Material.AIR)) {\n if (block.getLightLevel() <= plugin.CONFIG.SPAWNING_LIGHT) {\n return true;\n }\n }\n return false;\n }" ]
[ "0.64689654", "0.64567506", "0.629387", "0.617176", "0.6159073", "0.6034556", "0.6032639", "0.60149217", "0.5951045", "0.5918147", "0.5917511", "0.5902067", "0.588396", "0.58563006", "0.5846546", "0.5795418", "0.5783432", "0.5772973", "0.5763876", "0.57546955", "0.5722575", "0.5673583", "0.5661292", "0.5648615", "0.5648615", "0.56422657", "0.56137794", "0.56103534", "0.556451", "0.55591583", "0.5557345", "0.55382067", "0.5523007", "0.5509959", "0.5509009", "0.5507563", "0.55024254", "0.55024254", "0.54883575", "0.5487484", "0.54599327", "0.54577255", "0.5445625", "0.54077166", "0.5407678", "0.54051393", "0.5401585", "0.5386269", "0.5373843", "0.53710717", "0.536676", "0.535743", "0.535116", "0.53491825", "0.5344326", "0.53434104", "0.5339139", "0.53339034", "0.5320632", "0.53189325", "0.5316928", "0.5315874", "0.53126454", "0.5307413", "0.53066665", "0.52946115", "0.52935135", "0.5292948", "0.5290205", "0.52842045", "0.5278841", "0.52729535", "0.52706355", "0.52653164", "0.5264783", "0.5263798", "0.5257092", "0.525393", "0.5253309", "0.5249359", "0.52465177", "0.52374864", "0.52346313", "0.5230588", "0.52274597", "0.5227382", "0.5227288", "0.52240294", "0.52214104", "0.52203816", "0.5217238", "0.5216883", "0.5215415", "0.5214251", "0.5214058", "0.5212962", "0.52088886", "0.52085894", "0.52079386", "0.5204884" ]
0.64817137
0
Adds the given World index for the player in the TODO: Level Pack Screen.
public boolean addPlayerVisible(Integer levelIndex) { return playerVisible.add(levelIndex); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addToWorld(World world);", "public void addToWorld() {\n world().addObject(this, xPos, yPos);\n \n try{\n terrHex = MyWorld.theWorld.getObjectsAt(xPos, yPos, TerritoryHex.class).get(0);\n } catch(IndexOutOfBoundsException e){\n MessageDisplayer.showMessage(\"The new LinkIndic didn't find a TerritoryHex at this position.\");\n this.destroy();\n }\n \n }", "public void addedToWorld(World w){\n PauseWorld world = (PauseWorld) w;\n world.addObject(nameLabel,this.getX(),this.getY()+itemSize/2+10);\n }", "public World setCurrentWorld(int index) {\n\t\tassert index >= 0 && index < levels.size();\n\t\treturn levels.get(levelIndex = index);\n\t}", "public void addWinners(int playerIndex) {\n this.winners.add(playerIndex);\n }", "public void addedToWorld (World w)\n {\n w.addObject (healthBar, this.getX(), this.getY()-60);\n world = (MyWorld) w;\n healthBar.update(health);\n }", "public static void addWorld(World world) {\n\t\tworlds.add(world);\n\t}", "@Override\n public void addLayer(int index, BoardLayerView layer) {\n this.layers.add(index, layer);\n }", "public void addedToWorld(World w) {\r\n\t\tupdate();\r\n\t}", "public void addWorld(File file, String name){\n worlds.add(new MBMWorld(file, name));\n }", "protected void addedToWorld(World world) \n {\n createImages();\n }", "public int getCurrentWorldIndex() {\n\t\treturn levelIndex;\n\t}", "public void currentWorld(WumpusWorld world) throws RemoteException {\n\t\twidth = world.getWidth();\n\t\theight = world.getHeight();\n\t\tif (frame == null) {\n\t\t\tframe = new Frame();\n\t\t\tframe.addWindowListener(new WindowAdapter() {\n\t\t\t\tpublic void windowClosing(WindowEvent evt) {\n\t\t\t\t\tframe.dispose();\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t});\n\t\t\tframe.setTitle(\"The Wumpus Monitor\");\n\t\t\tframe.setLayout(new GridLayout(width * 2, height * 2));\n\t\t\tDimension d = Toolkit.getDefaultToolkit().getScreenSize();\n\t\t\tframe.setBounds(0, 0, d.width - 1, d.height - 1);\n\t\t} else {\n\t\t\tframe.removeAll();\n\t\t}\n\t\trooms = new DirectionalPanel[width][height][8];\n\t\tfor (int row = 0; row < width; row++) {\n\t\t\tfor (int col = 0; col < height; col++) {\n\t\t\t\trooms[row][col][0] = new DirectionalPanel(-1,\n\t\t\t\t\t\t\t\t\t\tImagePanel.NORTH | ImagePanel.WEST);\n\t\t\t\trooms[row][col][1] = new DirectionalPanel(-1,\n\t\t\t\t\t\t\t\t\t\tImagePanel.NORTH | ImagePanel.EAST);\n\t\t\t\trooms[row][col][2] = new DirectionalPanel(-1,\n\t\t\t\t\t\t\t\t\t\tImagePanel.SOUTH | ImagePanel.WEST);\n\t\t\t\trooms[row][col][3] = new DirectionalPanel(-1,\n\t\t\t\t\t\t\t\t\t\tImagePanel.SOUTH | ImagePanel.EAST);\n\t\t\t\tfor (int k = 4; k < 8; k++) {\n\t\t\t\t\trooms[row][col][k] = new DirectionalPanel(-1);\n\t\t\t\t}\n\t\t\t\tagentPositions.put(new Point(row, col), new HashSet());\n\t\t\t}\n\t\t}\n\t\tfor (int row = 0; row < world.getWidth(); row++) {\n\t\t\tfor (int turn = 0; turn < 2; turn++) {\n\t\t\t\tfor (int col = 0; col < world.getHeight(); col++) {\n\t\t\t\t\tframe.add(rooms[height - row - 1][col][2*turn]);\n\t\t\t\t\tframe.add(rooms[height - row - 1][col][2*turn + 1]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int row = 0; row < width; row++) {\n\t\t\tfor (int col = 0; col < height; col++) {\n\t\t\t\tRoom room = world.getRoom(row, col);\n\t\t\t\tif (room.getPit()) {\n\t\t\t\t\taddImage(row, col, PIT_FILE, PIT_FILE);\n\t\t\t\t}\n\t\t\t\tif (room.getGold()) {\n\t\t\t\t\taddImage(row, col, GOLD_FILE, GOLD_FILE);\n\t\t\t\t}\n\t\t\t\tWumpus w = room.getWumpus();\n\t\t\t\tif (w != null) {\n\t\t\t\t\taddImage(row, col, w.getName(), WUMPUS_FILE);\n\t\t\t\t\tsetDirection(row, col, w.getName(), w.getDirection());\n\t\t\t\t\tPoint pos = new Point(w.getRow(), w.getColumn());\n\t\t\t\t\tagents.put(w.getName(), pos);\n\t\t\t\t\tSet s = (Set) agentPositions.get(pos);\n\t\t\t\t\ts.add(w);\n\t\t\t\t\tcheckStench(row + 1, col - 1, row - 1, col + 1);\n\t\t\t\t}\n\t\t\t\tSet explorers = room.getExplorers();\n\t\t\t\tfor (Iterator it = explorers.iterator(); it.hasNext(); ) {\n\t\t\t\t\tExplorer e = (Explorer) it.next();\n\t\t\t\t\taddImage(row, col, e.getName(), EXPLORER_FILE);\n\t\t\t\t\tsetDirection(row, col, e.getName(), e.getDirection());\n\t\t\t\t\tPoint pos = new Point(e.getRow(), e.getColumn());\n\t\t\t\t\tagents.put(e.getName(), pos);\n\t\t\t\t\tSet s = (Set) agentPositions.get(pos);\n\t\t\t\t\ts.add(e);\n\t\t\t\t}\n\t\t\t\tboolean breeze = false;\n\t\t\t\tif (row > 0 && world.getRoom(row - 1, col).getPit()) {\n\t\t\t\t\tbreeze = true;\n\t\t\t\t} else if (row < world.getWidth() - 1 &&\n\t\t\t\t\t\t\t\t\tworld.getRoom(row + 1, col).getPit()) {\n\t\t\t\t\tbreeze = true;\n\t\t\t\t} else if (col > 0 && world.getRoom(row, col - 1).getPit()) {\n\t\t\t\t\tbreeze = true;\n\t\t\t\t} else if (col < world.getHeight() - 1 &&\n\t\t\t\t\t\t\t\t\tworld.getRoom(row, col + 1).getPit()) {\n\t\t\t\t\tbreeze = true;\n\t\t\t\t}\n\t\t\t\tif (breeze) {\n\t\t\t\t\taddImage(row, col, BREEZE_FILE, BREEZE_FILE);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tframe.show();\n\t\tthis.enabled = true;\n\t}", "public World addPlayer(Player p){\r\n players.add(p);\r\n return this;\r\n }", "public void attack(int idx)\n {\n CreatureWorld playerWorld = ;\n \n }", "public void _addMovement(int index, int Level, int part) {\n\t\tmovement.add(data.getMovement(index));\n\t\tequipment.add(data.getEquipment(index));\n\t\trep.add(_setMovementnum(index,part));\n\t\tweight.add(_setWeightlist(index,Level));\n\t\t\n\t}", "public void add(int index){\n int i = 0;\n boolean isFound = false;\n for (Product product:inventory.getProducts().keySet())\n {\n i++;\n if (i == index && inventory.getProducts().get(product) > 0)\n {\n if (myBasket.containsKey(product))\n {\n System.out.println(\"One more of this product added.\");\n myBasket.replace(product , myBasket.get(product) + 1);\n }\n else {\n System.out.println(\"Product added to your basket.\");\n myBasket.put(product , 1);\n }\n totalCost = totalCost + product.getPrice();\n isFound = true;\n inventory.updateStock(product , '-');\n }\n }\n if (!isFound)\n System.out.println(\"Sorry. Invalid index or not enough product in stock!\");\n }", "public void addPlayer(EntityPlayerMP player)\r\n {\r\n int var2 = (int)player.posX >> 4;\r\n int var3 = (int)player.posZ >> 4;\r\n player.managedPosX = player.posX;\r\n player.managedPosZ = player.posZ;\r\n\r\n for (int var4 = var2 - this.playerViewRadius; var4 <= var2 + this.playerViewRadius; ++var4)\r\n {\r\n for (int var5 = var3 - this.playerViewRadius; var5 <= var3 + this.playerViewRadius; ++var5)\r\n {\r\n this.getPlayerInstance(var4, var5, true).addPlayer(player);\r\n }\r\n }\r\n\r\n this.players.add(player);\r\n this.filterChunkLoadQueue(player);\r\n }", "public static void writeWorld(World world, CompoundTag compound) {\n UUID worldUuid = world.getUID();\n // world UUID used by Bukkit and code above\n compound.putLong(\"WorldUUIDMost\", worldUuid.getMostSignificantBits());\n compound.putLong(\"WorldUUIDLeast\", worldUuid.getLeastSignificantBits());\n // leave a Dimension value for possible Vanilla use\n compound.putInt(\"Dimension\", world.getEnvironment().getId());\n }", "private void increaseCurrentPlayerIndex() {\n\t\tcurrentPlayer++;\n\t\tif(currentPlayer>3)\n\t\t\tcurrentPlayer=0;\n\t}", "public void setWorldPosition(int worldPosition) {\n\t\tcurrChunk = worldPosition / MapChunk.WIDTH;\n\t\tgrowMap();\n\t}", "public Player createArmouredShip(int armour,char[] locationIndex,Player player){\n Map<String,Integer> parts = new HashMap<>();\n for(int i=locationIndex[0];i<locationIndex[0]+getShip().getHeight();i++){\n if (!player.getInventory().containsKey(\"\"+(char)i+\"\")){\n player.getInventory().put(\"\"+(char)i+\"\",null);\n }\n int xCoordinate = Integer.parseInt(\"\"+locationIndex[1]);\n for (int j= xCoordinate;j<xCoordinate+getShip().getWidth();j++){\n parts.put(\"\"+j+\"\",armour);\n }\n getShip().setParts(parts);\n player.getInventory().put(\"\"+(char)i+\"\",getShip());\n }\n return player;\n }", "public void addToHand(int index, Card cardToAdd)\n\t{\n\t\tcurrentHand.add(index, cardToAdd);\n\t}", "abstract void applyItem(JuggernautPlayer player, int level);", "public World getWorld(int i) {\n\t\treturn levels.get(i);\n\t}", "public void addXPlayers(int playerIndex) {\n this.xPlayers.add(playerIndex);\n Collections.sort(this.xPlayers);\n }", "public abstract BossBar addPlayer(UUID player);", "public static void addAll(Map<String, int[]> modIdxMap) {\n ThirdPartyLibrary.modIdxMap.putAll(modIdxMap);\n }", "boolean addSteam(ItemStack me, int amount, EntityPlayer player);", "public void openGuiForItemIndex(World world, EntityPlayer player, int itemIndex) {\n \tGuiHandler.setTemporaryItemIndex(itemIndex);\n \tif(!world.isRemote || isClientSideOnlyGui()) {\n \t\tplayer.openGui(EvilCraft._instance, getGuiID(), world, (int) player.posX, (int) player.posY, (int) player.posZ);\n \t}\n }", "@Override\n\tpublic void handle(WrapperWorld world, WrapperPlayer player){\n\t\tWrapperEntity builderWrapper = world.getEntity(builderID);\n\t\tif(builderWrapper != null){\n\t\t\t//Queue up the builder to send the player data back next update.\n\t\t\t((ABuilderEntityBase) builderWrapper.entity).playersRequestingData.add(player);\n\t\t}\n\t}", "@FXML\n public void addGym() {\n \tnew eMenuHandler().hideMenu();\n \tDisplayBuildingInstructions.showBuildingInstr();\n \tAddEntityOnMouseClick.setBuildMode(Boolean.TRUE);\n \tAddEntityOnMouseClick.entityList(new BuildingGym(0, 0));\n \t/*\n int xpos = (int) (Math.random() * 600) + 100;\n World.getInstance().addEntityToWorld(new BuildingGym(xpos, 30));\n */\n }", "private void addPlayerSheild() {\n this.playerShield += 1;\n }", "public void addLayer(int index, int effect, float param){\n history.addAtIndex(index, effect);\n historyValues.addAtIndex(index, param);\n }", "public OverworldScreen(Game game) {\n super(\"OverworldScreen\", game);\n\n mScreenViewport = new ScreenViewport(0, 0, mGame.getScreenWidth(),\n mGame.getScreenHeight());\n if (mScreenViewport.width > mScreenViewport.height)\n mLayerViewport = new LayerViewport(240.0f, 240.0f\n * mScreenViewport.height / mScreenViewport.width, 240,\n 240.0f * mScreenViewport.height / mScreenViewport.width);\n else\n mLayerViewport = new LayerViewport(240.0f * mScreenViewport.height\n / mScreenViewport.width, 240.0f, 240.0f\n * mScreenViewport.height / mScreenViewport.width, 240);\n\n // Load in the bitmaps used on the main menu screen\n AssetStore assetManager = mGame.getAssetManager();\n\n\n assetManager.loadAndAddBitmap(\"LocationArrow\", \"img/LocationArrow.png\");\n assetManager.loadAndAddBitmap(\"OverworldMap\", \"img/OverworldMap.png\");\n\n // Define the spacing that will be used to position the buttons\n int spacingX = game.getScreenWidth() / 5;\n int spacingY = game.getScreenHeight() / 3;\n\n mOverworldMap = new GameObject(LEVEL_WIDTH / 2.0f,\n LEVEL_HEIGHT / 2.0f, LEVEL_WIDTH, LEVEL_HEIGHT, getGame()\n .getAssetManager().getBitmap(\"OverworldMap\"), this);\n\n // Create the trigger buttons\n mLocationButton = new PushButton(\n spacingX * 1.0f, spacingY * 1.5f, spacingX*.16f, spacingY*0.1f, \"LocationArrow\", this);\n mLocationButton1 = new PushButton(\n spacingX * 2.0f, spacingY * 1.5f, spacingX*.16f, spacingY*0.1f, \"LocationArrow\", this);\n mLocationButton2 = new PushButton(\n spacingX * 3.0f, spacingY * 1.5f, spacingX*.16f, spacingY*0.1f, \"LocationArrow\", this);\n mLocationButton3 = new PushButton(\n spacingX * 4.0f, spacingY * 1.5f, spacingX*.16f, spacingY*0.1f, \"LocationArrow\", this);\n mLocationButton4 = new PushButton(\n spacingX * 5.0f, spacingY * 1.5f, spacingX*.16f, spacingY*0.1f, \"LocationArrow\", this);\n\n\n }", "private void addPointsToPlayer(Player player, int marbleNum) {\n Long score = player.getScore();\n score += marbleNum;\n\n // add the score for the marble 7 places before\n Long value = (Long) placement.get(getMarbel7());\n score += value;\n\n player.setScore(score);\n }", "public void addPlayer(PacketBuilder packet, Player player, Player otherPlayer) {\n int xPos = otherPlayer.getLocation().getX()\n - player.getLocation().getX();\n int yPos = otherPlayer.getLocation().getY()\n - player.getLocation().getY();\n /*\n * Abstraction is used here for clientsided rearrangement\n * To keep errors from loading multiple revisions at one time.\n */\n addPlayer(otherPlayer, packet, xPos, yPos);\n }", "public static void addUnitPanels() {\r\n\t\tfor (MovingUnit mu : GameStats.getPlayers()) {\r\n\t\t\tMapGPanel.getInstance().add(mu);\r\n\t\t}\r\n\t}", "public void addPlayerShip()\n\t{\n\t\t//if a PlayerShip is already spawned, a new one will not be added\n\t\tif (gameObj[1].size() == 0)\n\t\t{\n\t\t\tgameObj[1].add(new PlayerShip());\n\t\t\tSystem.out.println(\"PlayerShip added\");\n\t\t}else{\n\t\t\tSystem.out.println(\"A player ship is already spawned\");\n\t\t}\n\t\t\n\t}", "public void newGameWorld()\r\n {\r\n addObject(new Blackout(\"Fade\"), getWidth() / 2, getHeight() / 2);\r\n removeAllObjects();\r\n\r\n GameWorld gameWorld = new GameWorld();\r\n Greenfoot.setWorld(gameWorld);\r\n }", "public void onWorldLoad(Minecraft minecraft, WorldClient world, String message);", "public void newGame()\n\t{\n\t\tmap = new World(3, viewSize, playerFactions);\n\t\tview = new WorldView(map, viewSize, this);\n\t\tbar = new Sidebar(map, barSize);\n\t}", "public static void add(String fName, int[] modIndices) {\n ThirdPartyLibrary.modIdxMap.put(fName, modIndices);\n }", "public void addPlayer(String name, double attackStat, double blockStat){\n players.add(new Player(name, attackStat, blockStat));\n }", "private void addPlacesToWorld(ArrayList<Place> places, GameWorld world) {\n for (int i = 0; i < places.size(); i++) {\n world.addPlace(places.get(i));\n }\n }", "int enableWorld(String worldName, Server server);", "public void addInventory(String key, Integer value) {\n int currentValue = inventoryMap.getOrDefault(key, 0);\n inventoryMap.put(key, currentValue + value);\n }", "private void addPlayers(@NotNull MapHandler map, @NotNull NewGameDto newGameDto) {\n ComparableTuple<Integer, Stack<SpawnTile>> result = analyseMap(map);\n flagCount = result.key;\n Stack<SpawnTile> spawnTiles = result.value;\n if (!spawnTiles.isEmpty()) {\n for (PlayerDto player : newGameDto.players) {\n SpawnTile spawnTile = spawnTiles.pop();\n if (player.id == newGameDto.userId) {\n user = new Player(spawnTile.getX(), spawnTile.getY(), Direction.NORTH, map, new ComparableTuple<>(GameGraphics.mainPlayerName + \" (you)\", player.color), player.id);\n user.setDock(spawnTile.getSpawnNumber());\n players.add(user);\n } else {\n IPlayer onlinePlayer = new OnlinePlayer(spawnTile.getX(), spawnTile.getY(), Direction.NORTH, map, new ComparableTuple<>(player.name, player.color), player.id);\n onlinePlayer.setDock(spawnTile.getSpawnNumber());\n players.add(onlinePlayer);\n }\n }\n } else {\n for (int i = 0; i < playerCount; i++) {\n NonPlayer nonPlayer = new NonPlayer(i, 0, Direction.NORTH, map, new ComparableTuple<>(\"blue\", Color.BLUE));\n nonPlayer.setDock(i);\n players.add(nonPlayer);\n }\n }\n }", "public void loadWorld() {\n\t\tint[][] tileTypes = new int[100][100];\n\t\tfor (int x = 0; x < 100; x++) {\n\t\t\tfor (int y = 0; y < 100; y++) {\n\t\t\t\ttileTypes[x][y] = 2;\n\t\t\t\tif (x > 40 && x < 60 && y > 40 && y < 60) {\n\t\t\t\t\ttileTypes[x][y] = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tEntityList entities = new EntityList(0);\n\t\tPlayer player = new Player(Direction.SOUTH_WEST, 50, 50);\n\t\tentities.addEntity(player);\n\t\tentities.addEntity(new Tree(Direction.SOUTH_WEST,49, 49));\n\t\tworld = new World(new Map(tileTypes), player, entities);\n\t}", "public void setLayerIndex(int index){\n layerIndex = index;\n }", "@Override\n\tpublic void show () {\n overWorld = new Sprite(new TextureRegion(new Texture(Gdx.files.internal(\"Screens/overworldscreen.png\"))));\n overWorld.setPosition(0, 0);\n batch = new SpriteBatch();\n batch.getProjectionMatrix().setToOrtho2D(0, 0, 320, 340);\n\n // Creates the indicator and sets it to the position of the first grid item.\n indicator = new MapIndicator(screen.miscAtlases.get(2));\n // Creates the icon of Daur that indicates his position.\n icon = new DaurIcon(screen.miscAtlases.get(2));\n // Sets the mask position to zero, as this screen does not lie on the coordinate plane of any tiled map.\n screen.mask.setPosition(0, 0);\n screen.mask.setSize(320, 340);\n Gdx.input.setInputProcessor(inputProcessor);\n\n // Creates all relevant text.\n createText();\n // Sets numX and numY to the position of Daur on the map.\n numX = storage.cellX;\n numY = storage.cellY;\n indicator.setPosition(numX * 20, numY * 20 + 19);\n // Sets the icon to the center of this cell.\n icon.setPosition(numX * 20 + 10 - icon.getWidth() / 2, numY * 20 + 29 - icon.getHeight() / 2);\n // Creates all the gray squares necessary.\n createGraySquares();\n }", "public void addNewPokemon(String type, int index, String tempName, int tempLevel)\r\n {\r\n if(type.equals(\"Player\"))\r\n {\r\n if(getObjects(Pokemon.class).size() == 2)\r\n {\r\n savePokemonData(playerPokemon, currentPlayerPokemon);\r\n removeObject(playerPokemon);\r\n }\r\n\r\n for(int i = 0; i < 6; i++)\r\n {\r\n if(Reader.readIntFromFile(\"playerPokemon\", index, 3) > 0)\r\n {\r\n makePlayerPokemon(index);\r\n break;\r\n }\r\n index++;\r\n }\r\n\r\n playerPokemonName = playerPokemon.getName();\r\n\r\n addObject(playerPokemon, getWidth() / 4, getHeight() / 2 - 12);\r\n\r\n if(getObjects(Pokemon.class).size() == 2)\r\n {\r\n playerPkmnInfoBox.drawAll();\r\n }\r\n }\r\n else if(type.equals(\"Enemy\"))\r\n {\r\n if(getObjects(Pokemon.class).size() == 2)\r\n {\r\n removeObject(enemyPokemon);\r\n }\r\n\r\n if(!wildPokemon)\r\n {\r\n String enemyPkmnName = Reader.readStringFromFile(\"pokeMonListBattle\", index, 0);\r\n int enemyPkmnLevel = Reader.readIntFromFile(\"pokeMonListBattle\", index, 1);\r\n boolean enemyPkmnGender = Reader.readBooleanFromFile(\"pokeMonListBattle\", index, 2);\r\n int enemyPkmnCurrentHealth = Reader.readIntFromFile(\"pokeMonListBattle\", index, 3);\r\n this.enemyPokemon = new Pokemon(currentEnemyPokemon, enemyPkmnName, enemyPkmnLevel, enemyPkmnGender, enemyPkmnCurrentHealth, 0, false);\r\n\r\n enemyPokemonName = enemyPkmnName;\r\n\r\n addObject(enemyPokemon, 372, 84);\r\n }\r\n else\r\n {\r\n this.enemyPokemon = new Pokemon(currentEnemyPokemon, tempName, tempLevel, getRandomBoolean(), 9999, 0, false);\r\n enemyPokemonName = tempName;\r\n addObject(enemyPokemon, 372, 84);\r\n }\r\n }\r\n }", "public MBMWorld getWorld(int num){\n return worlds.get(num);\n }", "public void addPlayer(Player p){\r\n this.players[PlayerFactory.nb_instances-1]=p;\r\n this.tiles[p.getX()+(p.getY()*this.width)]=p;\r\n }", "public void initWorld(String inName, int inLevel, int id)\r\n {\r\n setBackground(248);\r\n\r\n addObject(playerPkmnInfoBox, 334, 229);\r\n addObject(enemyPkmnInfoBox, 144, 49);\r\n\r\n currentEnemyPokemon = id;\r\n\r\n addNewPokemon(\"Player\", currentPlayerPokemon, \"\", 0);\r\n if(wildPokemon)\r\n {\r\n addNewPokemon(\"Enemy\", currentEnemyPokemon, inName, inLevel);\r\n }\r\n else\r\n {\r\n addNewPokemon(\"Enemy\", currentEnemyPokemon, \"\", 0);\r\n }\r\n\r\n this.textInfoBox = new TextInfoBox(\"BattleSelectBox\", \"BattleBar\", currentPlayerPokemon);\r\n addObject(textInfoBox, getWidth() / 2, getHeight() - 69); //Battle Text Box\r\n\r\n newMusic(\"Battle\");\r\n Greenfoot.setSpeed(50);\r\n setPaintOrder(Blackout.class, TextInfoBox.class, PkmnInfoBox.class, Pokemon.class);\r\n }", "public static void setWorld(World aWorld)\r\n/* */ {\r\n\t \tlogger.info(count++ + \" About to setWotld : \" + \"Agent\");\r\n/* 43 */ \tworldForAgent = aWorld;\r\n/* */ }", "public void addSongInThePlayList(int index1, int index2){\n index1 = index1-1;\n index2 = index2-1;\n thePlayLists[index1].addSongatOne(poolSong[index2]);\n }", "public void nextLevel() {\n // stops the game\n world.stop();\n level++;\n switch (level) {\n case 2:\n // get a new world\n world = new Level2();\n // populates new world with Level2()\n world.populate(this);\n \n move.setObstacle(world.getObstacle());\n move2.setObstacle2(world.getObstacle2());\n drop.setBallDrop(world.getBallPlatform());\n view.setWorld(world);\n \n try {\n gameMusicL2 = new SoundClip(\"data/music2.wav\");\n gameMusicL2.loop();\n gameMusicL1.stop();\n } catch (UnsupportedAudioFileException|IOException|LineUnavailableException e) {\n System.out.println(e);\n }\n \n //JFrame debugView = new DebugViewer(world, 500, 500);\n break;\n case 3:\n // get a new world\n world = new Level3();\n // populates new world with Level3()\n world.populate(this);\n \n move.setObstacle(world.getObstacle());\n drop.setBallDrop(world.getBallPlatform());\n world.addStepListener(new MovingBlock(world.getBlock()));\n view.setWorld(world);\n \n try {\n gameMusicL3 = new SoundClip(\"data/music3.wav\");\n gameMusicL3.loop();\n gameMusicL2.stop();\n } catch (UnsupportedAudioFileException|IOException|LineUnavailableException e) {\n System.out.println(e);\n }\n \n //JFrame debugView = new DebugViewer(world, 500, 500); \n break;\n default:\n System.out.println(\"Congratulations, you have completed the game!\");\n System.exit(0);\n }\n world.start();\n }", "public void addPlayerData() {\n\t\tStackPane root = (StackPane) GameLogic.getRoot();\n\t\t//VBox info = new VBox();\n\t\t//info.setAlignment(Pos.TOP_LEFT);\n\t\tLabel playerInfo = new Label();\n\t\tplayerInfo.setBackground(new Background(new BackgroundFill(Color.LIGHTGOLDENRODYELLOW, CornerRadii.EMPTY, Insets.EMPTY)));\n\t\t//playerInfo.setGraphic(new ImageView(BackgroundImageHolder.textBackground));\n\t\tplayerInfo.setText(\" Player :\"+GameSaved.getPlayer_name()+\"\\n Level : \"+GameSaved.getPlayer_level()+\"\\n Experience point : \"+GameSaved.getExperiencePoint()+\"/\"+GameSaved.getExperiencePoint_Max()+\" \");\n\t\t//playerInfo.setAlignment(Pos.TOP_LEFT);\n\t\t//info.getChildren().add(playerInfo);\n\t\troot.getChildren().add(playerInfo);\n\t\tStackPane.setAlignment(playerInfo,Pos.TOP_LEFT);\n\t}", "public void addHealthLevel(int points)\n {\n healthLevel = healthLevel + points;\n showHealthLevel();\n if (healthLevel < 0) \n {\n Greenfoot.playSound(\"game-over.wav\");\n Greenfoot.stop();\n }\n }", "public void setInventory(int inventory){\r\n inventoryNumber += inventory;\r\n }", "@Override\n\t\tpublic void add(int index, Community element) {\n\t\t\t\n\t\t}", "void moveAdded(int playerIndex, Move move);", "public static void worldLocsInsert(Player player) {\n\n\t\ttry {\n\n\t\t\tStatement st = conn.createStatement();\n\n\t\t\tLocation pLoc = player.getLocation();\n\t\t\tint x = pLoc.getBlockX();\n\t\t\tint y = pLoc.getBlockY();\n\t\t\tint z = pLoc.getBlockZ();\n\t\t\tUUID uuid = player.getUniqueId();\n\n\t\t\t/* This is easier... */\n\t\t\tst.executeUpdate(\"DELETE FROM worldlocs WHERE uuid='\" + uuid + \"';\");\n\t\t\tst.executeUpdate(\"INSERT INTO worldlocs(uuid, x, y, z) VALUES ('\" + uuid + \"', '\" + x + \"', '\" + y + \"', '\" + z + \"');\");\n\n\t\t\tst.close();\n\n\t\t} catch (Exception e) {\n\t\t\tPvPTeleport.instance.getLogger().info(e.getMessage());\n\t\t}\n\n\t}", "public void addPlayer(Player player){\n players.add(player);\n }", "@SideOnly(Side.CLIENT)\n/* */ public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List<String> par3List, boolean par4) {\n/* 59 */ if (GuiScreen.isShiftKeyDown()) {\n/* 60 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome1.lore\"));\n/* 61 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome2.lore\"));\n/* 62 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome3.lore\"));\n/* 63 */ par3List.add(StatCollector.translateToLocal(\"item.FREmpty.lore\"));\n/* 64 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome4.lore\"));\n/* 65 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome5.lore\"));\n/* 66 */ par3List.add(StatCollector.translateToLocal(\"item.FREmpty.lore\"));\n/* 67 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome6.lore\"));\n/* 68 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome7.lore\"));\n/* 69 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome8.lore\"));\n/* 70 */ par3List.add(StatCollector.translateToLocal(\"item.FREmpty.lore\"));\n/* 71 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome9.lore\"));\n/* 72 */ } else if (GuiScreen.isCtrlKeyDown()) {\n/* 73 */ par3List.add(StatCollector.translateToLocal(\"item.FRVisPerSecond.lore\"));\n/* 74 */ this; par3List.add(\" \" + StatCollector.translateToLocal(\"item.FRAerCost.lore\") + (AerCost / 100.0D * 10.0D));\n/* 75 */ this; par3List.add(\" \" + StatCollector.translateToLocal(\"item.FRTerraCost.lore\") + (TerraCost / 100.0D * 10.0D));\n/* 76 */ this; par3List.add(\" \" + StatCollector.translateToLocal(\"item.FRIgnisCost.lore\") + (IgnisCost / 100.0D * 10.0D));\n/* 77 */ this; par3List.add(\" \" + StatCollector.translateToLocal(\"item.FRPerditioCost.lore\") + (PerditioCost / 100.0D * 10.0D));\n/* */ } else {\n/* */ \n/* 80 */ par3List.add(StatCollector.translateToLocal(\"item.FRShiftTooltip.lore\"));\n/* 81 */ par3List.add(StatCollector.translateToLocal(\"item.FRViscostTooltip.lore\"));\n/* */ } \n/* */ \n/* 84 */ par3List.add(StatCollector.translateToLocal(\"item.FREmpty.lore\"));\n/* */ }", "public synchronized void addPlayer(PlayerHandler player) {\n\n if (activePlayers < numMaxPlayers) {\n\n players[activePlayers] = player;\n System.out.println(player.getName() + \" added to game as player \" + (activePlayers + 1));\n activePlayers++;\n return;\n }\n\n System.out.println(\"This room (\" + this.toString() + \") is full\");\n }", "public void addMapIndex(RDFIndex mapIndex) {\n vueComponentMap.putAll(mapIndex.vueComponentMap);\n super.add(mapIndex);\n }", "public void addPlayer(Player inPlayer) {\n\t\tgetPlayersInRoom().add(inPlayer);\n\t}", "public void setBasicNewGameWorld()\r\n\t{\r\n\t\tlistCharacter = new ArrayList<Character>();\r\n\t\tlistRelationship = new ArrayList<Relationship>();\r\n\t\tlistLocation = new ArrayList<Location>();\r\n\t\t\r\n\t\t//Location;\r\n\t\t\r\n\t\tLocation newLocationCity = new Location();\r\n\t\tnewLocationCity.setToGenericCity();\r\n\t\tLocation newLocationDungeon = new Location();\r\n\t\tnewLocationDungeon.setToGenericDungeon();\r\n\t\tLocation newLocationForest = new Location();\r\n\t\tnewLocationForest.setToGenericForest();\r\n\t\tLocation newLocationJail = new Location();\r\n\t\tnewLocationJail.setToGenericJail();\r\n\t\tLocation newLocationPalace = new Location();\r\n\t\tnewLocationPalace.setToGenericPalace();\r\n\t\t\r\n\t\tlistLocation.add(newLocationCity);\r\n\t\tlistLocation.add(newLocationDungeon);\r\n\t\tlistLocation.add(newLocationForest);\r\n\t\tlistLocation.add(newLocationJail);\r\n\t\tlistLocation.add(newLocationPalace);\r\n\t\t\r\n\t\t\r\n\t\t//Item\r\n\t\tItem newItem = new Item();\r\n\t\t\r\n\t\tString[] type =\t\tnew String[]\t{\"luxury\"};\r\n\t\tString[] function = new String[]\t{\"object\"};\t\r\n\t\tString[] property = new String[]\t{\"\"};\r\n\t\tnewItem.setNewItem(900101,\"diamond\", type, function, \"null\", property, 2, true);\r\n\t\tnewLocationPalace.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\ttype =\t \tnew String[]\t{\"weapon\"};\r\n\t\tfunction = new String[]\t{\"equipment\"};\t\r\n\t\tproperty = new String[]\t{\"weapon\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(500101,\"dagger\", type, function, \"null\", property, 1, false);\t\t\r\n\t\tnewLocationJail.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\t\r\n\t\ttype =\t\tnew String[]\t{\"quest\"};\r\n\t\tfunction = new String[]\t{\"object\"};\t\r\n\t\tproperty = new String[]\t{\"\"};\r\n\t\tnewItem.setNewItem(900201,\"treasure_map\", type, function, \"null\", property, 2, true);\r\n\t\tnewLocationDungeon.addOrUpdateItem(newItem);\r\n\r\n\t\t\r\n\t\t////// Add very generic item (10+ items of same name)\r\n\t\t////// These item start ID at 100000\r\n\t\t\r\n\t\t//Add 1 berry\r\n\t\t//100000\r\n\t\tnewItem = new Item();\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"berry\"};\r\n\t\tnewItem.setNewItem(100101,\"berry\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\t/* REMOVE 19-2-2019 to increase performance\r\n\t\t\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(100102,\"berry\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(100102,\"berry\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(100103,\"berry\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\t*/\r\n\r\n\t\t\r\n\t\t//Add 2 poison_plant\r\n\t\t//101000\r\n\t\tnewItem = new Item();\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"poison\"};\r\n\t\tnewItem.setNewItem(100201,\"poison_plant\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(100202,\"poison_plant\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\tnewItem = new Item();\r\n\r\n\t\t//player\r\n\t\tCharacter newChar = new Character(\"player\", 1, true,\"city\", 0, false);\r\n\t\tnewChar.setIsPlayer(true);\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t//UNIQUE NPC\r\n\t\tnewChar = new Character(\"mob_NPC_1\", 15, true,\"city\", 0, false);\r\n\t\tlistCharacter.add(newChar);\r\n\r\n\t\t\r\n\t\tnewChar = new Character(\"king\", 20, true,\"palace\", 3, true);\r\n\t\tnewChar.addOccupation(\"king\");\r\n\t\tnewChar.addOccupation(\"noble\");\r\n\t\tnewChar.addStatus(\"rich\");\r\n\t\t\r\n\t\tlistCharacter.add(newChar);\r\n\r\n\r\n\t\t//Mob character\r\n\t\tnewChar = new Character(\"soldier1\", 20, true,\"city\", 2, true);\r\n\t\tnewChar.addOccupation(\"soldier\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t// REMOVE to improve performance\r\n\t\t/*\r\n\t\tnewChar = new Character(\"soldier2\", 20, true,\"jail\", 2, true);\r\n\t\tnewChar.addOccupation(\"soldier\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t\tnewChar = new Character(\"soldier3\", 20, true,\"palace\", 2, true);\r\n\t\tnewChar.addOccupation(\"soldier\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t//listLocation.add(newLocationCity);\r\n\t\t//listLocation.add(newLocationDungeon);\r\n\t\t//listLocation.add(newLocationForest);\r\n\t\t//listLocation.add(newLocationJail);\r\n\t\t//listLocation.add(newLocationPalace);\r\n\t\t\r\n\t\tnewChar = new Character(\"doctor1\", 20, true,\"city\", 3, true);\r\n\t\tnewChar.addSkill(\"heal\");\r\n\t\tnewChar.addOccupation(\"doctor\");\r\n\t\tlistCharacter.add(newChar);\t\r\n\t\tnewChar = new Character(\"blacksmith1\", 20, true,\"city\", 2, true);\r\n\t\tnewChar.addOccupation(\"blacksmith\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t\r\n\t\tnewChar = new Character(\"thief1\", 20, true,\"jail\", 2, true);\r\n\t\tnewChar.addOccupation(\"thief\");\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"unlock\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(300101,\"lockpick\", type, function, \"thief1\", property, 1, false);\r\n\t\tnewChar.addOrUpdateItem(newItem);\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t// Remove to improve performance\r\n\t\t/*\r\n\t\tnewChar = new Character(\"messenger1\", 20, true,\"city\", 2, true);\r\n\t\tnewChar.addOccupation(\"messenger\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t*/\r\n\t\t\r\n\t\tnewChar = new Character(\"miner1\", 20, true,\"dungeon\", 1, true);\r\n\t\tnewChar.addOccupation(\"miner\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\tnewChar = new Character(\"lumberjack1\", 20, true,\"forest\", 1, true);\r\n\t\tnewChar.addOccupation(\"lumberjack\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t/* REMOVE 19-2-2019 to increase performance\r\n\t\t\r\n\t\tnewChar = new Character(\"scout1\", 20, true,\"forest\", 2, true);\r\n\t\tnewChar.addOccupation(\"scout\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\tnewChar = new Character(\"farmer1\", 20, true,\"forest\", 1, true);\r\n\t\tnewChar.addOccupation(\"farmer\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t\tnewChar = new Character(\"merchant1\", 20, true,\"city\", 3, true);\r\n\t\tnewChar.addOccupation(\"merchant\");\r\n\t\tnewChar.addStatus(\"rich\");\r\n\t\t\r\n\t\t// Merchant Item\r\n\t\t//NPC item start at 50000\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"poison\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(200101,\"potion_poison\", type, function, \"merchant1\", property, 1, false);\r\n\t\tnewChar.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"healing\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(200201,\"potion_heal\", type, function, \"merchant1\", property, 1, false);\r\n\t\tnewChar.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"cure_poison\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(200301,\"antidote\", type, function, \"merchant1\", property, 1, false);\t\r\n\t\tnewChar.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\t\r\n\t\t//add merchant to List\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//Relation\r\n\t\tRelationship newRelation = new Relationship();\r\n\t\tnewRelation.setRelationship(\"merchant1\", \"soldier1\", \"friend\");\r\n\t\tlistRelationship.add(newRelation);\r\n\t\t\r\n\t\t//\r\n\t\r\n\t}", "public WorldRegion(GameWorldEntity entity) {\n gameWorldEntities.add(entity);\n }", "public void openGUISounds(Player p){\n //gui.setItem(0, new ItemStack(Material.GRASS));\n //ItemStack grass = new ItemStack(Material.SKULL_ITEM, 1, (short) 3);\n //SkullMeta skullMeta = (SkullMeta) grass.getItemMeta();\n //skullMeta.setDisplayName(ChatColor.GRAY + \"Player: \" + ChatColor.YELLOW + p.getName());\n //skullMeta.setOwner(p.getName());\n //grass.setItemMeta(skullMeta);\n //gui.setItem(1, grass);\n //p.openInventory(gui);\n }", "public void setWorld(GameData world) {\r\n this.world = world;\r\n }", "public int numWorlds(){\n return worlds.size();\n }", "public void updateWorld(Location loc)\n {\n worldData = getPersistence().get(loc.getWorld().getName(), WorldData.class);\n }", "public World(Game game, int levelPack, int levelNumber) {\n\t\tdiamondBlocks = new ArrayList<Diamond>();\n\t\tsilverBlocks = new ArrayList<Silver>();\n\t\tgoldBlocks = new ArrayList<Gold>();\n\t\tregTiles = new ArrayList<RegTile>();\n\t\tupSpikes = new ArrayList<Spike>();\n\t\tdownSpikes = new ArrayList<Spike>();\n\t\trightSpikes = new ArrayList<Spike>();\n\t\tleftSpikes = new ArrayList<Spike>();\n\t\tcheckpoints = new ArrayList<Checkpoint>();\n\t\teflags = new ArrayList<EndingFlag>();\n\t\t\n\t\t//init player missing\n\t\t\n\t\tgenerateLevel(game, levelPack, levelNumber);\n\t}", "public void addUnitsToMinimap() {\n\n for (Unit unit : model.getApp().getCurrentPlayer().getGame().getAllUnits()) {\n Player player = unit.getPlayer();\n Color color;\n if (player.getColor().equals(\"RED\")) {\n color = Color.RED;\n } else if (player.getColor().equals(\"BLUE\")) {\n color = Color.BLUE;\n } else if (player.getColor().equals(\"YELLOW\")) {\n color = Color.YELLOW;\n } else { //if(player.getColor().equals(\"GREEN\")){\n color = Color.GREEN;\n }\n\n MinimapUnit minimapUnit = new MinimapUnit(blockSize, blockSize);\n minimapUnit.setMyPlayer(player);\n minimapUnit.setColor(color);\n minimapUnit.setMyUnit(unit);\n minimapUnit.setPosXY((unit.getPosX() * blockSize) + 1, (unit.getPosY() * blockSize) + 1);\n minimapUnits.add(minimapUnit);\n drawPane.getChildren().add(minimapUnit);\n }\n System.out.println(\"allUnitsToMinimap\");\n }", "@Override\n\tpublic void registerWorldChunkManager() {\n\t\tworldChunkMgr = new zei_WorldChunkManagerZeitgeist(giants, worldObj);\n\t\tworldType = 99;\n\t\thasNoSky = false;\n\t}", "public void addPlayer(final Player aPlayer)\r\n\t{\r\n\t\tmPlayer.setX(mStartX * Block.SIZE);\r\n\t\tmPlayer.setY(mStartY * Block.SIZE);\r\n\t\taddEntity(mPlayer);\r\n\t}", "public void createMainInventor() {\n String name = _plugin.getConfigManager().getGeneralSettingsMap().get(\"Name\");\r\n String colorizedName = _plugin.getUtilsManager().colorizeString(name);\r\n //Size of the Inventory;\r\n int inventorySize = Integer.valueOf(_plugin.getConfigManager().getGeneralSettingsMap().get(\"InventorySize\"));\r\n //Initialize Inventory;\r\n mainInventory = _plugin.getServer().createInventory(null, inventorySize, colorizedName);\r\n //Retrieve the HashMaps for the plugin;\r\n HashMap<Integer, CategoryItem> categoryInformationMap = _plugin.getConfigManager().getCategoryInformationMap();\r\n HashMap<String, String> languageInformation = _plugin.getConfigManager().getLanguageInformationMap();\r\n //Add items to Inventory;\r\n for (Integer i : categoryInformationMap.keySet()) {\r\n CategoryItem categoryItem = categoryInformationMap.get(i);\r\n ItemStack item = categoryItem.getItem();\r\n ItemMeta itemMeta = item.getItemMeta();\r\n itemMeta.setDisplayName(_plugin.getUtilsManager().colorizeString(languageInformation.get(\"CategoryName\").replace(\"%cat%\", categoryItem.getName())));\r\n List<String> lore = new ArrayList<>();\r\n lore.add(_plugin.getUtilsManager().colorizeString(categoryItem.getDescription()));\r\n item.setItemMeta(itemMeta);\r\n mainInventory.addItem(item);\r\n }\r\n }", "void addLayer(Layer layer, int whichLayer);", "@Override\r\n public void addPlayers(int numberOfPlayers) {\r\n for (int i = 0; i < numberOfPlayers; i++) {\r\n this.addPlayer();\r\n }\r\n }", "public void addPlayer(String name) {\n\t\tcreateGameLobbyController.addPlayerToList(name);\n\t}", "public void addLayer(int idx, MapLayer layer) {\n context.addLayer(idx,layer);\n if (mapPane.getMapContext()!=null) return;//only set context if not already set\n setContext();\n }", "private void indexFirework(){\n firework = new ItemStack(Material.FIREWORK, 1);\n FireworkMeta meta = (FireworkMeta) firework.getItemMeta();\n\n meta.addEffect(FireworkEffect.builder().with(FireworkEffect.Type.BALL).withColor(Color.LIME).build());\n meta.setPower(1);\n firework.setItemMeta(meta);\n }", "public void register(final Player player) {\n\t\t// do final checks e.g. is player online? is world full?\n\t\tint returnCode = 2;\n\t\tif(!players.add(player)) {\n\t\t\treturnCode = 7;\n\t\t\tlogger.info(\"Could not register player : \" + player + \" [world full]\");\n\t\t}\n\t\tfinal int fReturnCode = returnCode;\n\t\tPacketBuilder bldr = new PacketBuilder();\n\t\tbldr.put((byte) returnCode);\n\t\tbldr.put((byte) player.getRights().toInteger());\n\t\tbldr.put((byte) 0);\n\t\tplayer.getSession().write(bldr.toPacket()).addListener(new IoFutureListener<IoFuture>() {\n\t\t\t@Override\n\t\t\tpublic void operationComplete(IoFuture future) {\n\t\t\t\tif(fReturnCode != 2) {\n\t\t\t\t\tplayer.getSession().close(false);\n\t\t\t\t} else {\n\t\t\t\t\tif(Constants.CONNNECT_TO_LOGIN_SERVER) {\n\t\t\t\t\t\tconnector.sendPrivateMessagingStatus(player);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tint mySetting = player.getSettings().getPrivateChatSetting()[1];\n\t\t\t\t\t\tfor(Player p : players) {\n\t\t\t\t\t\t\tint setting = p.getSettings().getPrivateChatSetting()[1];\n\t\t\t\t\t\t\tif(mySetting == 2 && p.getFriends().contains(player.getNameAsLong())\n\t\t\t\t\t\t\t\t\t|| mySetting == 1 && p.getFriends().contains(player.getNameAsLong())\n\t\t\t\t\t\t\t\t\t&& !player.getFriends().contains(p.getNameAsLong()))\n\t\t\t\t\t\t\t\tp.getActionSender().sendPrivateMessageStatus(player.getNameAsLong(), -9);\n\t\t\t\t\t\t\telse if(p.getFriends().contains(player.getNameAsLong()))\n\t\t\t\t\t\t\t\tp.getActionSender().sendPrivateMessageStatus(player.getNameAsLong(), getWorldId());\n\n\t\t\t\t\t\t\tif(setting == 2 && player.getFriends().contains(p.getNameAsLong())\n\t\t\t\t\t\t\t\t\t|| setting == 1 && player.getFriends().contains(p.getNameAsLong())\n\t\t\t\t\t\t\t\t\t&& !p.getFriends().contains(player.getNameAsLong()))\n\t\t\t\t\t\t\t\tplayer.getActionSender().sendPrivateMessageStatus(p.getNameAsLong(), -9);\n\t\t\t\t\t\t\telse if(player.getFriends().contains(p.getNameAsLong()))\n\t\t\t\t\t\t\t\tplayer.getActionSender().sendPrivateMessageStatus(p.getNameAsLong(), getWorldId());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tplayer.getActionSender().sendLogin();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tif(returnCode == 2) {\n\t\t\tlogger.info(\"Registered player : \" + player + \" [online=\" + players.size() + \"]\");\n\t\t}\n\t}", "void render(Inventory inventory, Player player, int offsetX, int offsetY);", "private void createNewUnit()\r\n {\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n int randomNumber = (int)Math.ceil(Math.random() * 8);\r\n boolean canBuild = false;\r\n\r\n if(currentPlayer == 1)\r\n {\r\n int unitType = worldPanel.player1.units[currentUnit - 1].getUnitType();\r\n if(unitType == 1)//if unit is a settler\r\n canBuild = true;\r\n }\r\n\r\n else if(currentPlayer == 2)\r\n {\r\n int unitType = worldPanel.player2.units[currentUnit - 1].getUnitType();\r\n if(unitType == 1)//if unit is a settler\r\n canBuild = true;\r\n }\r\n\r\n //if the unit who presses build is a settler\r\n if(canBuild == true)\r\n {\r\n if(currentPlayer == 1)\r\n {\r\n int playerLoc = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n worldPanel.player1.addUnit2(randomNumber);\r\n int noUnits = worldPanel.player1.getNumUnits();\r\n\t\t\t\t\t\t\t\tif(randomNumber == 7)//if unit is a ship\r\n\t\t\t\t\t\t\t\t\tworldPanel.player1.units[noUnits].setPosition(getSeaLoc(playerLoc));\r\n\t\t\t\t\t\t\t\telse\r\n \tworldPanel.player1.units[noUnits].setPosition(playerLoc);\r\n worldPanel.player1.setNumUnits(noUnits + 1);\r\n currentUnit++;\r\n worldPanel.setCurrentUnit(currentUnit);\r\n }//end if\r\n else if(currentPlayer == 2)\r\n {\r\n int playerLoc = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n worldPanel.player2.addUnit2(randomNumber);\r\n int noUnits = worldPanel.player2.getNumUnits();\r\n\t\t\t\t\t\t\t\tif(randomNumber == 7)//if unit is a ship\r\n\t\t\t\t\t\t\t\t\tworldPanel.player2.units[noUnits].setPosition(getSeaLoc(playerLoc));\r\n\t\t\t\t\t\t\t\telse\r\n \tworldPanel.player2.units[noUnits].setPosition(playerLoc);\r\n worldPanel.player2.setNumUnits(noUnits + 1);\r\n currentUnit++;\r\n worldPanel.setCurrentUnit(currentUnit);\r\n }//end elseif\r\n }//end if\r\n\r\n //set new player and unit if necessary\r\n int temp = worldPanel.getNumUnits(currentPlayer);\r\n if(currentUnit > temp)\r\n {\r\n if(currentPlayer == 1)\r\n worldPanel.setCurrentPlayer(2);\r\n else\r\n worldPanel.setCurrentPlayer(1);\r\n worldPanel.setCurrentUnit(1);\r\n }//end if\r\n\r\n //set up new mapPosition if player moved\r\n if(canBuild == true)\r\n setMapPos();\r\n setInfoPanel();//set up information panel\r\n }", "public void addToInventory() {\r\n\t\tdo {\r\n\t\t\tint quantity = 0;\r\n\t\t\tString brand = getToken(\"Enter washer brand: \");\r\n\t\t\tString model = getToken(\"Enter washer model: \");\r\n\t\t\tWasher washer = store.searchWashers(brand + model);\r\n\t\t\tif (washer == null) {\r\n\t\t\t\tSystem.out.println(\"No such washer exists.\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tquantity = getInteger(\"Enter quantity to add: \");\r\n\t\t\tboolean result = store.addWasherToInventory(brand, model, quantity);\r\n\t\t\tif(result) {\r\n\t\t\t\tSystem.out.println(\"Added \" + quantity + \" of \" + washer);\r\n\t\t\t}else {\r\n\t\t\t\tSystem.out.println(\"Washer could not be added to inventory.\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} while (yesOrNo(\"Add more washers to the inventory?\"));\r\n\t}", "void sendJoinWorld(String worldName);", "void put(int index) {\n //if the location is equal to the length of the stack, then the stack is full.\n if (location == stackArray.length) {\n System.out.println(\"Your Stack is full\");\n return;\n }\n //if the stack is not full, increment the location index in the stack array, set that equal to index\n stackArray[location++] = index;\n return;\n }", "public void addMine()\n {\n int randomRow = random.nextInt(rows);\n int randomColumn = random.nextInt(columns);\n Integer[] randomLocation = {randomRow, randomColumn};\n\n while (mineLocations.contains(randomLocation))\n {\n randomRow = random.nextInt(rows);\n randomColumn = random.nextInt(columns);\n randomLocation[0] = randomRow;\n randomLocation[1] = randomColumn;\n }\n\n mineLocations.add(randomLocation);\n }", "public static void main(String args[]){\n Game game = new GameImpl(new TestFactory());\n WorldStrategy worldStrategy = new ThirdPartyWorldAdapter();\n worldStrategy.createWorld(game);\n\n // Print World as it is \"seen\" by the Game\n for ( int r = 0; r < GameConstants.WORLDSIZE; r++ ) {\n String line = \"\";\n for ( int c = 0; c < GameConstants.WORLDSIZE; c++ ) {\n String type = game.getTiles().get(new Position(r,c)).getTypeString();\n\n if (type.equals(GameConstants.OCEANS)){ line += '.';}\n if (type.equals(GameConstants.PLAINS)){ line += 'o';}\n if (type.equals(GameConstants.MOUNTAINS)){ line += 'M';}\n if (type.equals(GameConstants.FOREST)){ line += 'f';}\n if (type.equals(GameConstants.HILLS)){ line += 'h';}\n }\n System.out.println(line);\n }\n\n }", "public void goNextLevel() {\r\n world.stop();\r\n levelMusic.close();\r\n if(level == 1) {\r\n level++;\r\n world = new Level2();\r\n world.populate(this);\r\n keyHandler.setBody(world.getPlayer());\r\n view.setWorld(world);\r\n controlPanel.setWorld(world);\r\n audioManager = new AudioManager();\r\n levelMusic = audioManager.getLevel2Sound();\r\n levelMusic.loop();\r\n world.start();\r\n }\r\n else if(level == 2) {\r\n level++;\r\n world = new Level3();\r\n world.populate(this);\r\n keyHandler.setBody(world.getPlayer());\r\n view.setWorld(world);\r\n controlPanel.setWorld(world);\r\n audioManager = new AudioManager();\r\n levelMusic = audioManager.getLevel3Sound();\r\n levelMusic.loop();\r\n world.start();\r\n }\r\n else {\r\n System.out.println(\"PLAYER SURVIVED\");\r\n System.exit(0);\r\n }\r\n }", "@Override\r\n public void giveCardToPlayer(Card card, int player, int plDeckPosition) {\r\n this.players.get(player).addCard(plDeckPosition, card);\r\n }", "public void initAndSetWorld() {\n\t\tHashMap<String, Location> gameWorld = new HashMap<String, Location>();\r\n\t\tthis.world = gameWorld;\r\n\t\t\r\n\t\t// CREATING AND ADDING LOCATIONS, LOCATION AND ITEM HASHES ARE AUTOMATICALLY SET BY CALLING CONSTRUCTOR\r\n\t\tLocation valley = new Location(\"valley\", \"Evalon Valley. A green valley with fertile soil.\",\r\n\t\t\t\t\"You cannot go in that direction.\",true);\r\n\t\tthis.addLocation(valley);\r\n\t\tLocation plains = new Location(\"plains\", \"West Plains. A desolate plain.\",\r\n\t\t\t\t\"You cannot go in that direction. There is nothing but dust over there.\",true);\r\n\t\tthis.addLocation(plains);\r\n\t\tLocation mountain = new Location(\"mountain\", \"Northern Mountains. A labyrinth of razor sharp rocks.\",\r\n\t\t\t\t\"You cannot go in that direction. The Mountain is not so easily climbed.\",true);\r\n\t\tthis.addLocation(mountain);\r\n\t\tLocation shore = new Location(\"shore\", \"Western Shore. The water is calm.\",\r\n\t\t\t\t\"You cannot go in that direction. There might be dangerous beasts in the water.\",true);\r\n\t\tthis.addLocation(shore);\r\n\t\tLocation woods = new Location(\"woods\", \"King's Forest. A bright forest with high pines.\",\r\n\t\t\t\t\"You cannot go in that direction. Be careful not to get lost in the woods.\",true);\r\n\t\tthis.addLocation(woods);\r\n\t\tLocation hills = new Location(\"hills\", \"Evalon hills.\",\r\n\t\t\t\t\"You cannot go in that direction.\",true);\r\n\t\tthis.addLocation(hills);\r\n\t\tLocation cave = new Location(\"cave\", \"Blood Cave. Few of those who venture here ever return.\",\r\n\t\t\t\t\"The air smells foul over there, better not go in that direction.\",true);\r\n\t\tthis.addLocation(cave);\r\n\t\tLocation innercave = new Location(\"innercave\", \"Blood Cave. This path must lead somewhere.\",\r\n\t\t\t\t\"Better not go over there.\",true);\r\n\t\t\r\n\t\tLocation westhills = new Location(\"westhills\", \"Thornhills. A great many trees cover the steep hills.\",\r\n\t\t\t\t\"You cannot go in that direction. Watch out for the thorny bushes.\",true);\r\n\t\tthis.addLocation(westhills);\r\n\t\t\r\n\t\tLocation lake = new Location(\"lake\", \"Evalon Lake. A magnificent lake with a calm body of water.\",\r\n\t\t\t\t\"You cannot go in that direction, nothing but fish over there.\",true);\r\n\t\tthis.addLocation(lake);\r\n\t\t\r\n\t\tLocation laketown = new Location(\"laketown\", \"Messny village. A quiet village with wooden houses and a dirt road.\",\r\n\t\t\t\t\"You cannot go in that direction, probably nothing interesting over there.\",true);\r\n\t\t\r\n\t\tLocation inn = new Room(\"inn\", \"Messny Inn. A small but charming inn in the centre of the village.\",\r\n\t\t\t\t\"You cannot go in that direction.\",false);\r\n\t\t\r\n\t\t// CONNECTING LOCATIONS\r\n\t\t// IT DOES NOT MATTER ON WHICH LOCATION THE METHOD ADDPATHS IS CALLED\r\n\t\tvalley.addPaths(valley, \"east\", plains, \"west\");\r\n\t\tvalley.addPaths(valley, \"north\", mountain, \"south\");\r\n\t\tvalley.addPaths(valley, \"west\", shore, \"east\");\r\n\t\tvalley.addPaths(valley, \"south\", woods, \"north\");\r\n\t\twoods.addPaths(woods, \"east\", hills, \"west\");\r\n\t\thills.addPaths(hills, \"south\", westhills, \"north\");\r\n\t\twesthills.addPaths(westhills, \"west\", lake, \"east\");\r\n\t\tlake.addPaths(woods, \"south\", lake, \"north\");\r\n\t\tlake.addPaths(lake, \"west\", laketown, \"east\");\r\n\t\tmountain.addPaths(mountain, \"cave\", cave, \"exit\");\r\n\t\tlaketown.addPaths(laketown, \"inn\", inn, \"exit\");\r\n\t\t\r\n\r\n\t\t\r\n\t\t// CREATE EMPTY ARMOR SET FOR GAME START AND UNEQUIPS\r\n\t\tBodyArmor noBodyArmor = new BodyArmor(\"unarmored\", 0, 0, true, 0);\r\n\t\tthis.setDefaultBodyArmor(noBodyArmor);\r\n\t\tBoots noBoots = new Boots(\"unarmored\", 0, 0, true, 0);\r\n\t\tthis.setDefaultBoots(noBoots);\r\n\t\tHeadgear noHeadgear = new Headgear(\"unarmored\", 0, 0, true, 0);\r\n\t\tthis.setDefaultHeadgear(noHeadgear);\r\n\t\tGloves noGloves = new Gloves(\"unarmored\", 0, 0, true, 0);\r\n\t\tthis.setDefaultGloves(noGloves);\r\n\t\tWeapon noWeapon = new Weapon(\"unarmored\", 0, 0, true, 5, false);\r\n\t\tthis.setDefaultWeapon(noWeapon);\r\n\t\t\r\n\t\tthis.getPlayer().setBodyArmor(noBodyArmor);\r\n\t\tthis.getPlayer().setBoots(noBoots);\r\n\t\tthis.getPlayer().setGloves(noGloves);\r\n\t\tthis.getPlayer().setHeadgear(noHeadgear);\r\n\t\tthis.getPlayer().setWeapon(noWeapon);\r\n\t\t\r\n\t\t\r\n\t\t// CREATING AND ADDING ITEMS TO PLAYER INVENTORY \r\n\t\tItem potion = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\tthis.getPlayer().addItem(potion);\r\n\t\tWeapon sword = new Weapon(\"sword\", 10, 200, true, 10, false);\r\n\t\tvalley.addItem(sword);\r\n\t\t\r\n\t\tWeapon swordEvalon = new Weapon(\"EvalonianSword\", 15, 400, true, 1, 15, false);\r\n\t\thills.addItem(swordEvalon);\r\n\t\t\r\n\t\tPotion potion2 = new Potion(\"largepotion\", 2, 200, true, 25);\r\n\t\tPotion potion3 = new Potion(\"potion\", 2, 200, true, 25);\r\n\t\tPotion potion4 = new Potion(\"potion\", 2, 200, true, 25);\r\n\t\tlake.addItem(potion3);\r\n\t\tinn.addItem(potion4);\r\n\t\t\r\n\t\tItem potion5 = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\tItem potion6 = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\twoods.addItem(potion6);\r\n\t\t\r\n\t\tPurse purse = new Purse(\"purse\",0,0,true,100);\r\n\t\tvalley.addItem(purse);\r\n\t\t\r\n\t\tChest chest = new Chest(\"chest\", 50, 100, false, 50);\r\n\t\tvalley.addItem(chest);\r\n\t\tchest.addItem(potion2);\r\n\t\t\r\n\t\tChest chest2 = new Chest(\"chest\", 10, 10, false, 20);\r\n\t\tinn.addItem(chest2);\r\n\t\t\r\n\t\t// ENEMY LOOT\r\n\t\tBodyArmor chestplate = new BodyArmor(\"chestplate\", 20, 200, true, 20);\r\n\t\t\r\n\t\t// ADDING NPC TO WORLD\r\n\t\tNpc innkeeper = new Npc(\"Innkeeper\", false, \"Hello, we have rooms available if you want to stay over night.\",true,1000);\r\n\t\tinn.addNpc(innkeeper);\r\n\t\t\r\n\t\tItem potion7 = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\tItem potion8 = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\tinnkeeper.addItem(potion7);\r\n\t\tinnkeeper.addItem(potion8);\r\n\t\t\r\n\t\tNpc villager = new Npc(\"Lumberjack\", false, \"Gotta get those logs back to the mill soon, but first a few pints at the inn!\",false,0);\r\n\t\tlaketown.addNpc(villager);\r\n\t\t\r\n\t\tEnemy enemy1 = new Enemy(\"Enemy\", true, \"Come at me!\", 50, chestplate, 200, 10);\r\n\t\tmountain.addNpc(enemy1);\r\n\t\t\r\n\t\tEnemyGuardian guardian = new EnemyGuardian(\"Guardian\", true, \"I guard this cave.\", 100, potion5, 600, 15, innercave, \"An entrance reveals itself behind the fallen Guardian.\", \"inwards\", \"entrance\");\r\n\t\tcave.addNpc(guardian);\r\n\t\t\r\n\t\t// ADDING SPAWNER TO WORLD\r\n\t\tthis.setNpcSpawner(new BanditSpawner()); \r\n\t\t\r\n\t\t// ADDING PLAYER TO THE WORLD\r\n\t\tthis.getPlayer().setLocation(valley);\r\n\t\t\r\n\t\t// QUEST\r\n\t\tQuest noquest = new Quest(\"noquest\",\"nodesc\",\"nocomp\",false,true,1000,0,0,0);\r\n\t\tthis.setCurrentQuest(noquest);\r\n\t\t\r\n\t\t\r\n\t\tQuest firstquest = new Quest(\"A New Journey\",\"Find the lost sword of Evalon.\",\"You have found the lost sword of Evalon!\",false,false,1,400,0,1);\r\n\t\t\r\n\t\tScroll scroll = new Scroll(\"Questscroll\",1,1,true,firstquest);\r\n\t\tmountain.addItem(scroll);\r\n\t\t\r\n\t\tSystem.out.println(\"All set up.\");\r\n\t}", "public void win() {\n\n\t\t// exist next level?\n\t\tif (Project.project.getMaps().get(maptyp).size() > id + 1) {\n\t\t\tProject.project.startLevel(maptyp, id + 1);\n\n\t\t\t// save it\n\t\t\tif (Project.project.getMapLevel(maptyp) < id + 1) {\n\t\t\t\tProject.project.setMapLevel(maptyp, id + 1);\n\t\t\t}\n\t\t} else {\n\t\t\tPWindow.window.setActScene(new MessageScene(\"Gewonnen\", \"\", new MenuMainScene()));\n\t\t}\n\t}", "public void addPlayerDuringGame(String playerName) {\n System.out.println(\"I want to add player \" + playerName + \" to the game!\");\n addPlayer(playerName);\n Collections.shuffle(players);\n }", "public void generate() {\n currentlyGenerating = true;\n Bukkit.broadcastMessage(ChatColor.GREEN + \"The world generation process has been started!\");\n createUhcWorld();\n }", "public void newPlayer() {\r\n\t\tthis.nbMonster ++;\r\n\t\tthis.nbPlayer ++;\r\n\t}" ]
[ "0.6417711", "0.60774213", "0.60724485", "0.5888191", "0.56978655", "0.5658586", "0.55845016", "0.5515113", "0.54522973", "0.5448731", "0.53703463", "0.53672314", "0.5366848", "0.53448886", "0.53228754", "0.5302627", "0.52626425", "0.52426666", "0.5179679", "0.5172246", "0.51483595", "0.5143841", "0.5129195", "0.51236796", "0.5121569", "0.5114625", "0.51138574", "0.50914466", "0.50839967", "0.5077706", "0.5073137", "0.5051265", "0.5043826", "0.5026019", "0.50257474", "0.50087553", "0.50073814", "0.49753237", "0.49517402", "0.49454045", "0.49375358", "0.49369785", "0.49224582", "0.4921468", "0.49177387", "0.49173376", "0.4905773", "0.4904639", "0.4901817", "0.48998696", "0.48997343", "0.48978868", "0.4896182", "0.48789644", "0.4870052", "0.4861246", "0.48598894", "0.48524433", "0.48518994", "0.48506662", "0.48480392", "0.48477095", "0.48471105", "0.48345163", "0.48316553", "0.482961", "0.48253635", "0.48208842", "0.4820715", "0.4816843", "0.4816298", "0.48155206", "0.48114792", "0.48068538", "0.4805292", "0.4804772", "0.4798574", "0.47982913", "0.47962454", "0.47919148", "0.4785905", "0.47840843", "0.4774579", "0.47743747", "0.47739142", "0.47430235", "0.47362754", "0.4730173", "0.47281572", "0.47250482", "0.4724821", "0.47239655", "0.47236517", "0.47209373", "0.47142038", "0.47123465", "0.4711546", "0.47114435", "0.47099414", "0.4707632" ]
0.53857017
10
Removes the given World index from the player in the TODO: Level Pack Screen.
public boolean removePlayerVisible(Integer levelIndex) { return playerVisible.remove(levelIndex); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void remove(){\n Api.worldRemover(getWorld().getWorldFolder());\n }", "public void removeFromWorld(World world);", "public void removeWorld(String name){\n worlds.remove(getWorld(name));\n }", "public void removePlayer(int index) {\n trickPoints.remove(index);\n gamePoints.remove(index);\n lives.remove(index);\n }", "public void removeItemAt(int theIndex) {\n\t\tList<Item> keys = new ArrayList<Item>(inventory.keySet());\t\n\t\tItem item = keys.get(theIndex);\n\t\tinventory.remove(item);\t\t\n\t}", "public void remove(int indx) {\n\t\tgameObjects.remove(indx);\n\t}", "public void unbanFromWorld(String player, String world) {\n Set<String> worldsTMP = bannedWorlds.get(player);\n \n if (worldsTMP == null) {\n return;\n }\n \n worldsTMP.remove(world);\n if (worldsTMP.isEmpty()) {\n bannedWorlds.remove(player);\n return;\n }\n bannedWorlds.put(player, (HashSet<String>) worldsTMP);\n }", "public void removeLayer(int index){\n history.removeIndex(index);\n historyValues.removeIndex(index);\n }", "public void removePlayer(int playerIndex) {\n playersIndicators.remove(playerIndex);\n }", "@Override\n public BoardLayerView removeLayer(int index) {\n return this.layers.remove(index);\n }", "ItemStack removePage(EntityPlayer player, ItemStack itemstack, int index);", "@Override\r\n public void uncall() {\r\n Player player = MbPets.getInstance().getServer().getPlayer(getOwner());\r\n if (player != null) {\r\n if (getEntity().getInventory().getDecor() != null) {\r\n if (player.getInventory().firstEmpty() >= 0) {\r\n player.getInventory().addItem(getEntity().getInventory().getDecor());\r\n } else {\r\n player.getWorld().dropItemNaturally(player.getLocation(),\r\n getEntity().getInventory().getDecor());\r\n }\r\n }\r\n }\r\n super.uncall();\r\n }", "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 }", "private void removeEntity(int index)\n\t{\n\t\tthis.entities.get(index).onDespawn();\n\t\tthis.spatialHashGrid.remove(this.entities.get(index).getSpatialHashGridHandle());\n\t\t\n\t\tthis.entities.set(index, this.entities.get(this.entities.size() - 1));\n\t\tthis.entities.remove(this.entities.size() - 1);\n\t}", "public void removeXPlayers(int playerIndex) {\n this.xPlayers.remove(this.xPlayers.indexOf(playerIndex));\n }", "public void removePowerUpByIndex(int index) {\n powerUpList.remove(index);\n return;\n }", "public void discardItem(LoopManiaWorld world) {\n super.discardItem(world, PRICE);\n }", "public void removePanel() \n\t{\n\t\tgame.remove(this);\n\t}", "@Override\n\t\tpublic Community remove(int index) {\n\t\t\treturn null;\n\t\t}", "public void remove(int index)\n {\n MorphRemove toRemove = this.toRemove.get(index);\n\n if (toRemove != null)\n {\n MorphType type = this.morphs.get(toRemove.typeIndex);\n Iterator<MorphCell> it = type.morphs.iterator();\n\n while (it.hasNext())\n {\n if (it.next().index == index)\n {\n it.remove();\n break;\n }\n }\n\n if (type.morphs.isEmpty())\n {\n this.morphs.remove(toRemove.typeIndex);\n }\n else\n {\n type.clamp();\n }\n\n this.toRemove.remove(index);\n this.setupMorphs(Morphing.get(this.mc.thePlayer));\n this.index = MathHelper.clamp_int(this.index, -1, this.getMorphCount() - 1);\n }\n }", "public Weapon removeWeaponByIndex(int indexToDiscard) {\n\n Weapon toReturn = weaponList.get(indexToDiscard);\n\n weaponList.remove(toReturn);\n\n return toReturn;\n\n }", "private void discardPlayer(Player p)\n {\n locations.remove(p);\n plugin.getAM().arenaMap.remove(p);\n clearPlayer(p);\n }", "public void removeActor(int index) { ActorSet.removeElementAt(index); }", "public void removePlayer(int place) {\r\n\t\tplayers.remove(place);\r\n\t}", "private void removeFromSavedCourseList() {\n System.out.println(\"The current courses in the saved course list are: \");\n\n for (int i = 0; i < courseList.getCourseList().size(); i++) {\n System.out.println((i + 1) + \": \" + courseList.getCourseList().get(i).getName());\n }\n\n System.out.println(\"Write the number of the one you wish to remove\");\n int removeIndex = obtainIntSafely(1, courseList.getCourseList().size(), \"Number out of bounds\");\n courseList.getCourseList().remove(removeIndex - 1);\n System.out.println(\"Removed!\");\n }", "public void method_1896(@NotNull EntityOtherPlayerMP var1) {\n if (Minecraft.getMinecraft().world != null) {\n Minecraft.getMinecraft().world.removeEntityFromWorld(var1.getEntityId());\n }\n\n field_1241.remove(var1);\n field_1242.remove(var1);\n }", "public void remove(int index) {\n items.remove(index);\n }", "void removeLayer(int whichLayer);", "public void remove(int location)\r\n\t{\r\n\t\tportfolio.remove(location);\r\n\t\tportfolioLength--;\r\n\t}", "public void removeElementAt(int index);", "private void removePlayerFromLobby() {\n\n //Added Firebase functionality assuming var player is the player who wants to leave the game.\n }", "public void remove(int index) {\r\n\t\t//Das Element am Index soll weg:\r\n\t\t//1. Alle Elemente davor sollen erhalten bleiben\r\n\t\t//2. Alle Elemente dahinter sollen erhalten bleiben\r\n\t\t//und der Index 1 kleiner werden\r\n\t\tfor(int i=index+1;i < geheim.length; i++) {\r\n\t\t\tgeheim[i-1] = geheim[i];\r\n\t\t}\r\n\t\t//3. Das Array soll um eins kleiner sein\r\n\t\tresize(-1);\r\n\t}", "@Override\r\n\tpublic void removeToIndex(int index) {\n\t}", "public void enemyoff(){\n getWorld().removeObject(this);\n }", "public void remove(int idx) {\r\n\t\tcards.remove(idx);\r\n\t}", "@ZenCodeType.Method\n default void remove(int index) {\n \n doesNot(\"support removal by index\");\n }", "void removeFromGame() {\n\t\t// remove from game\n\t\t//only for multi-player\n\t}", "public void RemoveItemFromUcet(int index)\n {\n\n\n\n\n celk_kor -= ucty.get(index).kor;\n celk_hal -= ucty.get(index).hal;\n\n\n if (celk_hal < 0)\n {\n celk_kor -= 1;\n celk_hal = 100 + celk_hal;\n }\n\n TextView celkem = (TextView) findViewById(R.id.celkova_castka);\n celkem.setText(\"\"+celk_kor+\".\"+celk_hal+\" Kč\");\n\n\n for (int i = index; i < ucty.size(); i++)\n {\n ucty.get(i).index -= 1;\n }\n ucty.remove(index);\n mGalleryView.removeView(index);\n }", "public void remove(int index) {\n\n\t}", "public Builder removeMonsters(int index) {\n if (monstersBuilder_ == null) {\n ensureMonstersIsMutable();\n monsters_.remove(index);\n onChanged();\n } else {\n monstersBuilder_.remove(index);\n }\n return this;\n }", "public Builder removeMonsters(int index) {\n if (monstersBuilder_ == null) {\n ensureMonstersIsMutable();\n monsters_.remove(index);\n onChanged();\n } else {\n monstersBuilder_.remove(index);\n }\n return this;\n }", "public void remove(int index);", "@EventHandler(priority = EventPriority.MONITOR)\n public void PlayerQuit(PlayerQuitEvent e){\n plugin.playerIslands.remove(e.getPlayer().getName());\n }", "public String removePlayer(int pno){\n\t\tplayerPosition.remove(pno);\n\t\tcollectedGold.remove(pno);\n\t\treturn \"You have left the game!\";\n\t}", "public void removeRecord(int index) {\r\n\t\tsuper.removeRecord(index);\r\n\t\ttrackPointOverlay.removeWayPoint(index);\r\n\t}", "public void attack(int idx)\n {\n CreatureWorld playerWorld = ;\n \n }", "public void removeWeapon(int weaponPosition){\n //Set the weapon entry to null and\n //remove the index from the entry tracker\n weapons.set(weaponPosition,new Pair<>(NO_WEAPON_ID, (short) 0));\n weaponEntryTracker.remove((Integer) weaponPosition);\n switch(weaponPosition) {\n case 1:\n System.out.println(\"Position is 1\");\n setCurrentWeapon(getWeapons().get(0));\n break;\n case 2:\n System.out.println(\"Position is 2\");\n if (getWeapons().get(1).getKey() != NO_WEAPON_ID) {\n System.out.println(\"Weapon at 1\");\n setCurrentWeapon(getWeapons().get(1));\n } else {\n System.out.println(\"Weapon at 2\");\n setCurrentWeapon(getWeapons().get(0));\n }\n break;\n }\n }", "public void removeFromGame(){\n this.isInGame = false;\n }", "public void discardLeaderCard(Player player, int leaderCardAtIndex, Privilege privilege){\n player.getPersonalBoard().getLeaderCards().remove(leaderCardAtIndex);\n for (Map.Entry<ResourceType, Integer> entry: privilege.getValuables().getResources().entrySet()) {\n if(entry.getValue() > 0) {\n player.getPersonalBoard().getValuables().increase(entry.getKey(), entry.getValue());\n player.getPersonalBoard().getValuables().decrease(entry.getKey(), player.getPersonalBoard().getExcommunicationValues().getNormalResourcesMalus().get(entry.getKey()));\n }\n }\n\n for (Map.Entry<PointType, Integer> entry: privilege.getValuables().getPoints().entrySet()) {\n if(entry.getValue() > 0) {\n player.getPersonalBoard().getValuables().increase(entry.getKey(), entry.getValue());\n player.getPersonalBoard().getValuables().decrease(entry.getKey(), player.getPersonalBoard().getExcommunicationValues().getNormalPointsMalus().get(entry.getKey()));\n }\n }\n }", "private void removeStats(int index) {\n ensureStatsIsMutable();\n stats_.remove(index);\n }", "public View removeGuest(int anIndex) { return _scroller.removeGuest(anIndex); }", "private void removeAtIndex(int index) {\n // save the last item\n FoodItem toMoveBack = this._stock[this._noOfItems-1];\n // make it null\n this._stock[this._noOfItems-1] = null;\n // for each item until the index to remove from:\n for (int i = this._noOfItems-2; i > index-1; i--) {\n // save the last moved back temporarily\n FoodItem tempToMoveBack = toMoveBack;\n // assign to the next iteration item to move back\n toMoveBack = this._stock[i];\n // move back the item for current iteration\n this._stock[i] = tempToMoveBack;\n }\n // we removed an item - so let's decrease the item counter.\n this._noOfItems--;\n }", "public void act() \n {\n String worldname = getWorld().getClass().getName();\n if (worldname == \"Level0\")\n setImage(new GreenfootImage(\"vibranium.png\"));\n else if (worldname == \"Level1\")\n setImage(rocket.getCurrentImage());\n setLocation(getX()-8, getY()); \n if (getX() == 0) \n {\n getWorld().removeObject(this);\n }\n \n }", "@Override\n\tpublic ItemStack removeStackFromSlot(int index) {\n\t\treturn null;\n\t}", "public void removeLocation(int index)\n {\n this.locationLst.remove(index);\n }", "public void remove(int index) {\n\t\tpoints.remove(index);\n\t}", "public void removeFromGame(GameLevel gameLevel) {\n gameLevel.removeSprite(this);\n }", "public void removeFromGame(GameLevel gameLevel) {\n gameLevel.removeSprite(this);\n }", "public void removeFromGame(GameLevel gameLevel) {\n gameLevel.removeSprite(this);\n }", "public void onWorldUnload(Minecraft minecraft, WorldClient world, String message);", "default void removeSheet(int index) {\r\n getSheet(index).remove();\r\n }", "public void removeTime(int index) {\r\n\t\tthis.timeAvailable.remove(index);\r\n\t}", "public void removeCard(int index) {\n cards.remove(index);\n }", "void remove( int index );", "void removeRoadside(int i);", "public CoreCell removeCellFromUniverseByIndex (int theCellIndex){\r\n return (cellsUniverse.remove(theCellIndex));\r\n }", "public void removePowerUp(PowerUp p) {\n for (Location loc : p.getLocations()) {\n Location replacement = new Location(loc.getX(), loc.getY());\n gridCache.add(replacement);\n }\n\n powerUps.remove(p);\n render();\n}", "public void unpin(int index)\r\n {\r\n if(index >=0 && index < pictures.size())\r\n {\r\n if(pinboardObject.removeItem(pictures.get(index)))\r\n {\r\n pinboardObject.removeItem(pictures.get(index));\r\n }\r\n else\r\n {\r\n pinboardObject.pinNote(\"There is no image at index: \" + index + \" being displayed.\"); \r\n }\r\n }\r\n else\r\n {\r\n pinboardObject.pinNote(\"This is not a valid index.\");\r\n }\r\n }", "void nuke() {\n\t\tfor (int a = 0; a < height; a++) {\n\t\t\tfor (int b = 0; b < width; b++) {\n\t\t\t\tif (FWorld[a][b] != null) {\n\t\t\t\t\tEZ.removeEZElement(FWorld[a][b]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tEZ.removeEZElement(background);\n\t\tEZ.removeEZElement(explosion);\n\t\tturtle.kill();\n\t}", "public void hideWorldChest(){\n\t\tElement el = nifty.getScreen(\"hud\").findElementByName(\"WorldChest\");\n\t\tel.hide();\n\t\t// notify the server on close\n\t\tfor(GUIObserver g : observers){\n\t\t\tg.onChestAccess(screenManager.getInventoryManager().getOpenWorldChest(), false);\n\t\t}\n\t}", "private void removeRefundTo(int index) {\n ensureRefundToIsMutable();\n refundTo_.remove(index);\n }", "public void remove() {\n\t\tstopFloating();\t\n\t\tPacketHandler.toggleRedTint(player, false);\n\t\tplayer.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 30, 1));\n\t\tplayer.stopSound(Sound.MUSIC_DISC_CHIRP);\n\t\tcleanTasks();\n\t\tactiveScenarios.remove(player.getUniqueId());\n\t}", "public void RemoveCardFromHuman(int value){\n handHuman.remove(value);\n }", "public void removeItem(int idx)\n\t{\n\t\titemList.remove(idx);\n\t\t\n\t}", "public void removeUnit(int panelIndex){\n\t\t\n\t\tif (panelIndex != LOCAL_UNIT){\n\t\t\tConsoleLog.Print(\"[TestMonitor] Removed Unit: \" + getUnitKey());\n\t\t\tcontroller.removeTestUnit(getUnitKey());\n\t\t\ttabbedPane.remove(panelIndex);\n\t\t\ttabbedPane.revalidate();\n\t\t}else{\n\t\t\tConsoleLog.Print(\"[TestMonitor] You cannot close local testing unit\");\n\t\t}\n\t\n\t}", "void remove(int index);", "void remove(int index);", "void remove(int index);", "void remove(int index);", "public Builder removeChunksLocation(int index) {\n if (chunksLocationBuilder_ == null) {\n ensureChunksLocationIsMutable();\n chunksLocation_.remove(index);\n onChanged();\n } else {\n chunksLocationBuilder_.remove(index);\n }\n return this;\n }", "public Type remove(int index);", "public void remove(int index)\n {\n numItems--;\n items[index] = null;\n }", "public Card playCard(int index)\n\t{\n\t\treturn currentHand.remove(index);\n\t}", "public void removePlayerPkmnInfoBox()\r\n {\r\n removeObject(playerPkmnInfoBox);\r\n }", "public static void clearWorld() {\n\t\t// Complete this method.\n\t\tfor(Critter i: population){\n\t\t\tpopulation.remove(i);\n\t\t}\n\t\tfor(Critter j: babies){\n\t\t\tbabies.remove(j);\n\t\t}\n\t\tpopulation.clear();\n\t\tbabies.clear();\n\n\n\t}", "public void remove(int index) {\r\n\t\tstmts.remove(index);\r\n\t}", "public void removeRemaining( int index )\n\t{\n\t\t_avTable.rm( ATTR_REMAINING , index ) ;\n\t}", "public void destroy() {\n World.getInstance().getTracked().remove(this); // unregister self from World\n }", "private void resetPlayer() {\r\n List<Artefact> inventory = currentPlayer.returnInventory();\r\n Artefact item;\r\n int i = inventory.size();\r\n\r\n while (i > 0) {\r\n item = currentPlayer.removeInventory(inventory.get(i - 1).getName());\r\n currentLocation.addArtefact(item);\r\n i--;\r\n }\r\n currentLocation.removePlayer(currentPlayer.getName());\r\n locationList.get(0).addPlayer(currentPlayer);\r\n currentPlayer.setHealth(3);\r\n }", "public static void clearWorld() {\n\t\tpopulation.clear();\n\t}", "public void removeGameObj(GameObject obj){\n display.getChildren().remove(obj.getDisplay());\n }", "public Builder removeQuest(int index) {\n if (questBuilder_ == null) {\n ensureQuestIsMutable();\n quest_.remove(index);\n onChanged();\n } else {\n questBuilder_.remove(index);\n }\n return this;\n }", "public void removeSheetAt(int arg0) {\n\n\t}", "private void removeSeenInfo(int index) {\n ensureSeenInfoIsMutable();\n seenInfo_.remove(index);\n }", "int disableWorld(String worldName, Server server);", "public Builder clearWorldId() {\n \n worldId_ = 0L;\n onChanged();\n return this;\n }", "public static void clearInventoryCrafting(Player player)\n\t{\n\t\tPlayerInventory inv = player.getInventory();\n\t\tfor(int i = 0; i < 4; i++)\n\t\t\tinv.setItem(1 + i, null);\n\t}", "public void DelTrack(int position);", "void remove(int idx);", "public static void clearWorld() {\n // TODO: Complete this method\n population.clear();\n babies.clear();\n }" ]
[ "0.70095164", "0.69507456", "0.6636711", "0.65654624", "0.6499946", "0.64095926", "0.6170105", "0.61415446", "0.61391145", "0.59812766", "0.59718424", "0.59343714", "0.5912057", "0.59083194", "0.589464", "0.5884237", "0.5876334", "0.5846172", "0.58181584", "0.5817801", "0.5810075", "0.5809543", "0.58019036", "0.5754554", "0.5742097", "0.5741193", "0.5710237", "0.5707233", "0.57070863", "0.56824344", "0.56739694", "0.5660406", "0.56526566", "0.5645555", "0.56393063", "0.5638777", "0.562896", "0.5623756", "0.56184655", "0.56161916", "0.56146073", "0.5613768", "0.56109565", "0.558336", "0.55692655", "0.5568589", "0.55537844", "0.55455923", "0.5533133", "0.55327016", "0.5521634", "0.5514178", "0.5508244", "0.5506851", "0.5502857", "0.54977375", "0.54969853", "0.54969853", "0.54969853", "0.54913896", "0.5476329", "0.5467844", "0.54382807", "0.5437028", "0.54345185", "0.5428428", "0.5427696", "0.54124165", "0.54096967", "0.54068965", "0.5398292", "0.5394235", "0.53914255", "0.53865963", "0.5377469", "0.5373904", "0.5373904", "0.5373904", "0.5373904", "0.5371488", "0.5369422", "0.5366206", "0.536563", "0.536334", "0.53464484", "0.5341822", "0.53415537", "0.5331251", "0.53100663", "0.53089577", "0.5305959", "0.5300412", "0.52919126", "0.5291825", "0.5281474", "0.5273308", "0.52731997", "0.52715313", "0.52705234", "0.52696973" ]
0.5719903
26
Gets the set of all level indices that are visible to the player.
public Integer[] getAllPlayerVisible() { return playerVisible.toArray(new Integer[playerVisible.size()]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Integer> getVisibleLayers ()\n {\n List<Integer> visible = Lists.newArrayList();\n List<Boolean> visibility = getLayerVisibility();\n for (int layer = 0, nn = visibility.size(); layer < nn; layer++) {\n if (visibility.get(layer)) {\n visible.add(layer);\n }\n }\n return visible;\n }", "Iterable<Long> vertices() {\n //YOUR CODE HERE, this currently returns only an empty list.\n return world.keySet();\n }", "public Set<Integer> getIndexes() {\r\n\t\treturn indexes;\r\n\t}", "public List<Index> getIndexes();", "public List<Index> getIndexes() {\n return indexes;\n }", "public List<Level> getLevels() {\n return levels;\n }", "protected abstract Level[] getLevelSet();", "public List<Index> getIndexes() {\n\t\tList<Index> indexes = new ArrayList<>();\n\t\tfor (Registration reg : registrations) {\n\t\t\tindexes.add(reg.getIndex());\n\t\t}\n\t\treturn indexes;\n\t}", "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}", "private String[] getLevelsFound() {\r\n String[] levelsFound = new String[levels.size()];\r\n Iterator<NetworkLevels> iterator = levels.iterator();\r\n int i = 0;\r\n while (iterator.hasNext()) {\r\n levelsFound[i++] = iterator.next().name().toLowerCase();\r\n }\r\n return levelsFound;\r\n }", "public World[] getAllWorlds() {\n\t\treturn levels.toArray(new World[levels.size()]);\n\t}", "java.util.List<Index>\n getIndicesList();", "public double[][] getLevelSet() {\r\n\t\treturn _levelSet;\r\n\t}", "int[] getVisualToLogicalMap() {\n if (v2lMap == null) {\n v2lMap = createVisualToLogicalMap(levels);\n }\n return v2lMap;\n }", "public Set<Integer> getNeighbors() {\n HashSet<Integer> retSet = new HashSet<Integer>();\n retSet.addAll(this.getActiveNeighbors());\n retSet.addAll(this.purgedNeighbors);\n\n return retSet;\n }", "public int[] getIndices() {\r\n\t\treturn indices;\r\n\t}", "static List<Integer> getVisibleSegmentIndices(int yPos) {\n ArrayList<Integer> visibleIndices = new ArrayList<>();\n\n // Get Second Y coordinate\n float visibilityBufferHeight = SlideUtils.getLevelSegmentHeight();\n float y2pos = yPos + visibilityBufferHeight - 1;\n\n // Get Current Visible Indices of ViewHolders and LevelData\n visibleIndices.add((int) Math.floor(yPos / visibilityBufferHeight));\n visibleIndices.add((int) Math.floor(y2pos / visibilityBufferHeight));\n\n return visibleIndices;\n }", "public final List<Integer> getIndexList() {\r\n return this.indices;\r\n }", "public ArrayList<Integer[]> getMineLocations()\n {\n return mineLocations;\n }", "public List<SoupIndex> getIndexes() {\n return indexes;\n }", "@Override\n public java.util.List<Index> getIndicesList() {\n return indices_;\n }", "public static ImmutableSet<Integer> getIds(){\n\t\t\treturn m_namesMap.rightSet();\n\t\t}", "public static String[] getLevels() {\n\t\treturn levels;\n\t}", "public List<Integer> getPassedLevelIds() {\r\n\t\treturn passedLevelIds;\r\n\t}", "public Vector<String> getAllVisibleLaunchersIds() {\n\t\tVector<String> visibleIds = new Vector<>();\n\n\t\tfor (EnemyLauncher el : enemyLauncherArr) {\n\n\t\t\tif (el.isAlive() && !el.getIsHidden()) {\n\t\t\t\tvisibleIds.add(el.getLauncherId());\n\t\t\t}\n\t\t}\n\n\t\tif (visibleIds.size() == 0)\n\t\t\treturn null;\n\n\t\treturn visibleIds;\n\t}", "public static LogLevel[] getLevels() {\n\t\treturn getLevels(false, false);\n\t}", "public List<Integer> getBySetPos() {\n\t\treturn bySetPos;\n\t}", "Iterable<Long> vertices() {\n return nodes.keySet();\n }", "public static int getLevelCount() {\n return levels.size();\n }", "List<Integer> getSelectedIndexes();", "public ArrayList<Integer> getOutsideFaceIndices()\n\t{\n\t\t// now collect the indices of all faces that are referenced only once, i.e. the outside faces\n\t\tArrayList<Integer> outsideFaceIndices = new ArrayList<Integer>();\n\t\tfor(int i=0; i<faces.size(); i++)\n\t\t\t// is there exactly one reference to the face with index i?\n\t\t\tif(getFace(i).getNoOfFacesToOutside() == 0)\n\t\t\t\t// yes; add i to the list of outside-face indices\n\t\t\t\toutsideFaceIndices.add(i);\n\t\t\n\t\t// return the list of outside-face indices\n\t\treturn outsideFaceIndices;\n\t}", "public Collection getLevels(){\n List<String> levels = new ArrayList<>();\n File directoryPath = new File(DATA_PATH+gameName+\"/\");\n for (String s : directoryPath.list()) {\n if (isLevelFile(s)){\n levels.add(getLevelName(s));\n }\n }\n Collections.sort(levels);\n return Collections.unmodifiableList(levels);\n }", "public static List<DownSamplingLevels> getLevels() {\n return levels;\n }", "private List<Integer> getSelectedIndexes() {\n\t\tList<Integer> result = new LinkedList<Integer>();\n\t\tfor (int i = 0; i < this.checked.size(); i++) {\n\t\t\tif (this.checked.get(i))\n\t\t\t\tresult.add(i);\n\t\t}\n\t\treturn result;\n\t}", "public ArrayList<Integer> getKeys() {\r\n return keys;\r\n }", "public Set<Integer> getVertexKeys() {\n\t\treturn vertices.keySet();\n\t}", "public Set<Long> allRoleIds() {\n return new HashSet<Long>( );\n }", "public Map<SkillType, Integer> getLevels() {\n return levels;\n }", "public java.util.List<java.lang.Long>\n getPlayerIdsList() {\n return java.util.Collections.unmodifiableList(playerIds_);\n }", "public List<Dim> getGlobals(){\n\t\t\n\t\treturn null;\n\t}", "public ArrayList<Integer> getIndexGroupList() {\r\n\t\treturn indexGroupList;\r\n\t}", "public Collection<BlockPos> getTrackedBlockEntities(Level level) {\n\t\tCollection<BlockPos> blockEntities = trackedBlockEntities.get(level.dimension());\n\n\t\tif (blockEntities == null) {\n\t\t\tblockEntities = ConcurrentHashMap.newKeySet();\n\t\t\ttrackedBlockEntities.put(level.dimension(), blockEntities);\n\t\t}\n\n\t\treturn blockEntities;\n\t}", "public Collection<RegionLocations> getAll() {\n return Collections.unmodifiableCollection(cache.values());\n }", "public Iterable<Integer> levelOrder() {\n Queue<Integer> keys = new Queue<Integer>();\n Queue<TreeNode> queue = new Queue<TreeNode>();\n queue.enqueue(root);\n while (!queue.isEmpty()) {\n TreeNode x = queue.dequeue();\n if (x == null) {\n\t\t\t\t/* -1 stands for null node. */\n\t\t\t\tkeys.enqueue(-1);\n\t\t\t\tcontinue;\n\t\t\t}\n keys.enqueue(x.val);\n queue.enqueue(x.left);\n queue.enqueue(x.right);\n }\n return keys;\n }", "public Set<String> keySet() {\n return index.keySet();\n }", "public ArrayList<Integer> getNeighbors() {\n\t\treturn neighbors;\n\t}", "public String[] getGhostsInLevel(){\n\t\treturn ghosts_in_level;\n\t}", "public java.util.List<java.lang.Integer>\n getLobbyIdList() {\n return ((bitField0_ & 0x00000002) != 0) ?\n java.util.Collections.unmodifiableList(lobbyId_) : lobbyId_;\n }", "public Iterable<Integer> levelOrder() {\n\t\tLinkedList<Integer> keys = new LinkedList<Integer>();\n\t\tLinkedList<Node> queue = new LinkedList<Node>();\n\t\tqueue.add(root);\n\t\twhile (!queue.isEmpty()) {\n\t\t\tNode n = queue.remove();\n\t\t\tif (n == null) continue;\n\t\t\tkeys.add(n.key);\n\t\t\tqueue.add(n.left);\n\t\t\tqueue.add(n.right);\n\t\t}\n\t\treturn keys;\n\t}", "public int countLevels() {\n return levels.size();\n }", "public ArrayList<Integer> get_values()\r\n\t{\r\n\t\treturn this.poss_values;\r\n\t}", "public SortedSet<String> getAvailableLevels() {\n if (allAvailableLevels == null) {\n allAvailableLevels = new TreeSet<String>();\n\n try {\n List<String> dataTypeList = new ArrayList<String>();\n dataTypeList.add(dataType);\n\n List<String> levels = DataDeliveryHandlers\n .getParameterHandler().getDataLevelTypeDescriptions(\n dataTypeList);\n if (levels != null && !levels.isEmpty()\n && levels.get(0) != null) {\n allAvailableLevels.addAll(levels);\n }\n } catch (RegistryHandlerException e) {\n statusHandler.handle(Priority.PROBLEM,\n \"Unable to retrieve the levels.\", e);\n }\n }\n\n return allAvailableLevels;\n }", "int[] getLogicalToVisualMap() {\n if (l2vMap == null) {\n l2vMap = getInverseOrder(getVisualToLogicalMap());\n }\n return l2vMap;\n }", "public int getCurrentWorldIndex() {\n\t\treturn levelIndex;\n\t}", "java.util.List<com.google.firestore.admin.v1beta1.Index> \n getIndexesList();", "public Vector<String> getAllLaunchersIds() {\n\t\tVector<String> visibleIds = new Vector<>();\n\n\t\tfor (EnemyLauncher el : enemyLauncherArr) {\n\t\t\tif (el.isAlive()) {\n\t\t\t\tvisibleIds.add(el.getLauncherId());\n\t\t\t}\n\t\t}\n\n\t\tif (visibleIds.size() == 0)\n\t\t\treturn null;\n\n\t\treturn visibleIds;\n\t}", "public Set<String> keySet() {\n return this.index.keySet();\n }", "@Override @Basic\r\n\tpublic List<SquareDungeon> getLevelsAndShafts() {\r\n\t\tArrayList<SquareDungeon> res = new ArrayList<SquareDungeon>(1);\r\n\t\tres.add(this);\r\n\t\treturn res;\r\n\t}", "public List<Boolean> getLayerVisibility ()\n {\n return Collections.unmodifiableList(_vis);\n }", "public List<List<Integer>> levelOrderII(Node root) {\n List<List<Integer>> res = new ArrayList<>();\n dfs(root, res, 0);\n return res;\n }", "public java.util.List<java.lang.Long>\n getPlayerIdsList() {\n return playerIds_;\n }", "public ArrayList<Integer> getIndexes(int[][] matrix) {\n while(!isOnes(subMatrix(matrix, indexes))) {\n int index = getIndex(matrix);\n indexes.add(index);\n }\n\n return indexes;\n }", "public int[] getColorIndexes()\n {\n return this.colorIndexes;\n }", "public int[][] findGroups()\n\t{\n\t\treturn findGroupMap().findGroups();\n\t}", "public int getLevelsFallen() {\n return levelsFallen;\n }", "@java.lang.Override\n public java.util.List<java.lang.Integer>\n getLobbyIdList() {\n return lobbyId_;\n }", "public static ArrayList<Integer> fetchLevels() {\r\n\r\n\t\tArrayList<Integer> levels = new ArrayList<Integer>();\r\n\r\n\t\tsqlQuery = \"SELECT DISTINCT(level) FROM flipkart_category;\";\r\n\r\n\t\ttry{\r\n\t\t\tconn=DbConnection.getConnection();\r\n\t\t\tps=conn.prepareStatement(sqlQuery);\r\n\t\t\trs=ps.executeQuery();\r\n\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tint levelTemp;\r\n\t\t\t\tlevelTemp=rs.getInt(1);\r\n\r\n\t\t\t\tlevels.add(levelTemp);\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn levels;\r\n\t}", "public ArrayList<Actor> getEnemies() {\n return getGrid().getNeighbors(getLocation());\n }", "public final int[] getBankIndices() {\n return (int[]) bankIndices.clone();\n }", "protected Set<Integer> getInnovations() {\n\t\treturn genes.keySet();\n\t}", "public static ArrayList<Grid> getGrids() {\n\n return grids;\n }", "@Override\n public List<Invertible> getInvertibles() {\n final List<Invertible> invertibles = Collections.checkedList(new ArrayList<>(), Invertible.class);\n for(final Cube[][] matrix : cubes){\n for(final Cube[] array : matrix){\n for(final Cube cube : array){\n if(cube instanceof Invertible){\n invertibles.add((Invertible) cube);\n }\n }\n }\n }\n\n return Collections.unmodifiableList(invertibles);\n }", "public Set<StateVertex> getAllStates() {\n\t\treturn sfg.vertexSet();\n\t}", "public int[] getNodeIndicesArray() {\n \t\tginy_nodes.trimToSize();\n \t\treturn giny_nodes.elements();\n \t}", "public List<Inhabitant> getInhabitants() {\n\t\treturn inhabitants;\n\t}", "protected List<Integer> filterIndexes(String columnId) {\n List<Integer> result = new ArrayList<Integer>();\n List<Interval> selected = columnSelectionMap.get(columnId);\n if (selected == null) return result;\n\n for (Interval interval : selected) {\n result.add(interval.getIndex());\n }\n return result;\n }", "public int getKeys() {\n return keys;\n }", "public int getLevelIndex() {\n\t\treturn levelIndex;\n\t}", "int getIndexesCount();", "public Set<UUID> getAlivePlayers() {\n return new HashSet<>(players);\n }", "public long getPlayerIds(int index) {\n return playerIds_.get(index);\n }", "public Set keySet() {\n return map.keySet();\n }", "public Set<Integer> getOrgIds()\n\t{\n\t\treturn new TreeSet(this.reg.keySet());\n\t}", "public Collection<String> getLoadableWorlds();", "public List<String> getLayerIds() {\n\t\treturn layerIds;\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 Position[] getWinningPositions();", "public List<Boolean> getLayerVisibility ()\n {\n return _tableModel.getLayerVisibility();\n }", "public Set<Position> getPositionsWithActiveEffects() {\n return activeEffects.keySet();\n }", "public ListVS<T> getKeys() {\n return this.keys.getElements();\n }", "public Iterable<Vertex> getVertices() {\n return mVertices.values();\n }", "public static Set<String> getGamesList() {\n\t\treturn arcade.findPlayableIds();\n\t}", "public int[] getSetsArray()\n\t{\n\t\treturn getSets().getSetsArray();\n\t}", "public ArrayList<String> getListOfContinents() {\n return new ArrayList<>(gameMap.getContinentHashMap().keySet());\n }", "public List<Integer> getRegionIds() {\r\n\t\tList<Integer> regionIds = new ArrayList<>();\r\n\t\tfor (int x = southWestX >> 6; x < (northEastX >> 6) + 1; x++) {\r\n\t\t\tfor (int y = southWestY >> 6; y < (northEastY >> 6) + 1; y++) {\r\n\t\t\t\tint id = y | x << 8;\r\n\t\t\t\tregionIds.add(id);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn regionIds;\r\n\t}", "public Set<Long> allActorIds() {\n return new HashSet<Long>( );\n }", "public Set<String> keysOfMap() {\n Map<String, String> tempMap = createSimpleMap(\"Elevensies\",\"Grapes\");\n\t\tSet<String> keys = hashMap.keySet();\n\t\treturn tempMap.keySet();\n\t}", "public Set<Colour> getWinningPlayers();", "protected HashMap<String, BPTree<Double, FoodItem>> getIndexes(){\n \treturn this.indexes;\n }", "public long getPlayerIds(int index) {\n return playerIds_.get(index);\n }" ]
[ "0.6483793", "0.621887", "0.6046541", "0.60085726", "0.5934928", "0.5885506", "0.58660364", "0.5859739", "0.58460337", "0.58360416", "0.58186346", "0.58118397", "0.58037436", "0.5795364", "0.57285434", "0.5722274", "0.5716493", "0.5710923", "0.5688133", "0.56297344", "0.5625557", "0.5605902", "0.5604241", "0.56003267", "0.5595548", "0.55751896", "0.55709225", "0.5566764", "0.55665916", "0.55549717", "0.5526121", "0.55028147", "0.54305017", "0.5413998", "0.5406215", "0.5391957", "0.53321636", "0.5331329", "0.5326673", "0.53133863", "0.5309464", "0.5299754", "0.52969325", "0.5295743", "0.52919006", "0.52886266", "0.5284333", "0.5280283", "0.52647394", "0.5259877", "0.5259734", "0.5249531", "0.5242643", "0.5236887", "0.52355766", "0.52287185", "0.52084565", "0.51827216", "0.518154", "0.51810986", "0.5175302", "0.51663643", "0.51585066", "0.51428014", "0.5137774", "0.5135273", "0.513318", "0.51235634", "0.5118588", "0.5104616", "0.5103817", "0.50946605", "0.508666", "0.5079519", "0.50719076", "0.50689256", "0.50671095", "0.5065057", "0.5064876", "0.5046921", "0.5046298", "0.5034678", "0.503295", "0.50326467", "0.50274724", "0.50270945", "0.50253797", "0.5023539", "0.50204086", "0.5017346", "0.5011469", "0.5002153", "0.5000162", "0.4999921", "0.49995917", "0.4996789", "0.49900347", "0.49874353", "0.4985662", "0.4979003" ]
0.6759173
0
============================================================ ========= LevelPack PUBLICATION STUFF ====================== ============================================================ Adds the author to this level pack. Returns whether the level pack was changed or not.
public boolean addAuthor(User user) { return authors.add(user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasAuthor() {\n return fieldSetFlags()[0];\n }", "public void addAuthors(String author) {\n if (authorsList.contains(author)) {\n System.out.println(\"Author exist!!!\");\n }\n else {\n authorsList.add(author);\n System.out.println(\"Add author successfully!!!\");\n }\n }", "public void updateAuthor(Author author);", "public void setAuthor(Player author){\n this.playerAuthor = author;\n }", "@Override\n public void author_()\n {\n }", "boolean updateAuthor(Author author) throws PersistenceException, IllegalArgumentException;", "public void setAuthor(String author) {\n\t\tauth = author;\n\t}", "@Override\n public void author()\n {\n }", "public void addAuthorAction()\n\t{\n\t\tViewNavigator.loadScene(\"Add Author\", ViewNavigator.ADD_AUTHOR_SCENE);\n\t}", "public void addAuthor(Author author){\n authors.add(author);\n }", "public void setAuthor(String author) {\n\tthis.author = author;\n}", "Builder addAuthor(String value);", "public void setAuthor(String author) {\r\n\t\tthis.author = author;\r\n\t}", "public void setAuthor(String author) {\r\n this.author = author;\r\n }", "void addAuthorToStream(Author author) {\n\t\tthis.entryCount.inc();\r\n\t\tboolean found = false;\r\n\r\n\t\tif (!authors.isEmpty()) {\r\n\t\t\tfor (Author a : authors) {\r\n\t\t\t\tif (a.name.equals(author.name)) {\r\n\t\t\t\t\tfound = true;\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (!found) {\r\n\t\t\tthis.authors.add(author);\r\n\r\n\t\t}\r\n\t}", "public void setAuthor(String author) {\n this.author = author;\n }", "public void setAuthor(String author) {\n this.author = author;\n }", "public void setAuthor(String author) {\n this.author = author;\n }", "public void setAuthor(String author) {\n this.author = author;\n }", "public void setAuthor(String author) {\n this.author = author;\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 final native void setAuthor(String author) /*-{\n this.setAuthor(author);\n }-*/;", "public void setAuthorLocal(String author) {\r\n\t\toAuthor = author;\r\n\t}", "public void updateAuthorInfo(CommitInfo commitInfo) {\n\t\tString authorName = commitInfo.getAuthor();\n\t\tAuthorInfo authorInfo = this.authors.get(authorName);\n\t\tif (authorInfo == null) {\n\t\t\tauthorInfo = new AuthorInfo(authorName, null);\n\t\t\tthis.authors.put(authorName, authorInfo);\n\t\t}\n\t\tauthorInfo.addCommit(commitInfo.getNumChanges());\n\t}", "public boolean isUnauthored() {\n return this.scientificNameAuthorship == null;\n }", "public String getAuthor() {\r\n\t\treturn author;\r\n\t}", "public void setAuthor(String author)\r\n {\r\n m_author = author;\r\n }", "protected String getBookAuthorBlock( String author )\n {\n return \"<bookinfo><corpauthor>\" + author + \"</corpauthor>\";\n }", "public String getAuthor() { return author_; }", "public void setAuthorName(String authorName) {\n this.authorName = authorName;\n }", "public void setAuthorName(String authorName) {\n this.authorName = authorName;\n }", "public void setModifiAuthor(String modifiAuthor) {\n this.modifiAuthor = modifiAuthor;\n }", "@Override\n\tpublic String author() {\n\t\treturn author;\n\t}", "public void setAuthor(String value) {\n setAttributeInternal(AUTHOR, value);\n }", "public String getAuthor() {\r\n\t\treturn oAuthor;\r\n\t}", "public boolean checkIfAuthor(int paperId, HashMap<Integer,Integer> authorsOrder) throws DLException {\n\t\tboolean isAuthor=false;\n\t\tfor(int order: authorsOrder.keySet()) {\n\t\t\tif(currentUser.getUserId()==authorsOrder.get(order)) {\n\t\t\t\tisAuthor=true;\n\t\t\t}\n\t\t}\n\t\treturn isAuthor;\n\t}", "boolean storeAuthor(Author author) throws PersistenceException, IllegalArgumentException;", "public String getAuthorName() {\n return authorName;\n }", "public String getAuthorName() {\n return authorName;\n }", "default String getAuthor() {\r\n\t\treturn \"unknown\";\r\n\t}", "public void addAuthor(final Author author) {\n if (authors.containsKey(author))\n //TODO improve error message\n throw new IllegalArgumentException(\"this publication is already associated to the given author\");\n authors.put(author, author);\n }", "public String getAuthor() {\r\n return author;\r\n }", "public void setAuthor(String author) {\r\n String old = this.author;\r\n this.author = author;\r\n this.changeSupport.firePropertyChange(\"author\", old, this.author );\r\n }", "public String getAuthor() {\n\t\treturn auth;\n\t}", "public String getAuthorName() {\n return this.authorName;\n }", "public String getAuthor() {\n\treturn author;\n}", "@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:author\")\n public String getAuthor() {\n return getProperty(AUTHOR);\n }", "@Override\r\n\tpublic void setAuthor(String author) {\n\t\tsuper.setAuthor(author);\r\n\t}", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "@Override\n\tpublic String getAuthor() {\n\t\treturn \"\";\n\t}", "Builder addAuthor(Person value);", "@Override\n \tpublic void setAuthorString(String authorString) {\n \t\tthis.authorString = authorString;\n \t}", "private static String authorLine()\n {\n return String.format(STR_FORMAT_1 + STR_FORMAT_2, NAME_STR, NAME);\n }", "@Override\n \tpublic void addAuthor(Author author) {\n \t\tList<Author> authorList = getAuthorList();\n \t\t// check for existing relationship\n \t\tif (author == null || authorList.contains(author))\n \t\t\treturn;\n \t\t// add both sides of relationship\n \t\tauthor.getAuthorReferences().add(this);\n \t\tauthorList.add(author);\n \t}", "public boolean wasAddedByUser() {\n return alias.equals(Constants.OPTION_ALIAS_ADDED_BY_USER);\n }", "public String getAuthorName() {\n return mAuthorName;\n }", "public void setAuthors(String _authors) { authors = _authors; }", "public String getAuthor() {\n\t\treturn \"Prasoon, Vikas, Shantanu\";\n\t}", "public String getAuthor() {\n return mAuthor;\n }", "public void addAuthor(Author a)\n {\n boolean unique = true;\n \n for(Author x : authors)\n {\n if(x == a)\n {\n unique = false;\n }\n }\n \n if(unique)\n {\n authors.add(a);\n }\n }", "public String getAuthor(){\n return author;\n \n }", "public String getAuthor();", "public String getAuthor() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic int acceptAuthorDetails(int authorId, String authorName) {\n\t\tAuthor author = new Author(authorName);\r\n\t\tauthor = authorDAO.save(author);\r\n\t\treturn author.getAuthorId();\r\n\t\t\r\n\t}", "public java.lang.String getAuthor() {\n return author;\n }", "public void saveCommitAuthor(String author) {\n List<String> previousCommitAuthors = myState.getPreviousCommitAuthors();\n previousCommitAuthors.remove(author);\n while (previousCommitAuthors.size() >= PREVIOUS_COMMIT_AUTHORS_LIMIT) {\n previousCommitAuthors.remove(previousCommitAuthors.size() - 1);\n }\n previousCommitAuthors.add(0, author);\n }", "public final native String getAuthor() /*-{\n return this.getAuthor();\n }-*/;", "public void setAuthor(Person author)\n {\n this.author = author;\n }", "public com.babbler.ws.io.avro.model.BabbleValue.Builder setAuthor(java.lang.String value) {\n validate(fields()[0], value);\n this.author = value;\n fieldSetFlags()[0] = true;\n return this;\n }", "public void setAuthor(Author author) {\r\n if (author != null) {\r\n this.author = author;\r\n }\r\n }", "boolean authorExists(UUID uuid) throws PersistenceException, IllegalArgumentException;", "public String getAuthor()\r\n {\r\n return (m_author);\r\n }", "Builder addAuthor(Organization value);", "public java.lang.String getAuthor() {\n return author;\n }", "String getAuthorName();", "String getAuthor();", "String getAuthor();", "public void printAuthor()\n {\n System.out.println(\"by: \" + author);\n }", "public void setAuthor(final Author author) {\n\t\tthis.author = author;\n\t}", "@Override\r\n\tpublic String getTagName() {\n\t\treturn \"author\";\r\n\t}", "public String getAuthorUsername() {\n\t\treturn authorUsername;\n\t}", "@Override\r\n\tpublic String getAuthor() {\n\t\treturn super.getAuthor();\r\n\t}", "public int insertAuthor(Author author);", "private boolean isPublic(String level, ModifierHolder mods) {\r\n\t\treturn level.equalsIgnoreCase(\"public\") && \r\n\t\t\t\tmods.isPublic();\r\n\t}", "public Item2Vector<Author> getAuthorss() { return authorss; }", "public String getAuthor()\r\n {\r\n return(\"Judy O'Brien\");\r\n }", "public void setAuthorisor(String authorisor)\n\t{\n\t\tthis.authorisor = Toolbox.trim(authorisor, 4);\n\t}", "public boolean setPaperAuthors(int paperId, HashMap<Integer,Integer> authorIds) throws DLException {\n\t\tboolean isSet=false;\n\t\ttry {\t\t\t\n\t\t\tif(currentUser.getIsAdmin()==1 || checkIfAuthor(paperId,authorIds)) {\t\t \n\t\t\t\tboolean isConnected = dbObj.connect();\n\t\t\t\tif(isConnected) {\n\t\t\t\t\tArrayList<String> args = new ArrayList<String>();\n\t\t\t\t\tString sqlStr = \"INSERT INTO PaperAuthors(paperId, userId, displayOrder) VALUES\";\n\t\t\t\t\tint count=0;\n\t\t\t\t\tfor(int key: authorIds.keySet()) {\t\t\t\t\t\t\n\t\t\t\t\t\tif(count==0) {\n\t\t\t\t\t\t\tsqlStr+=\"(?,?,?)\";\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tsqlStr+=\",(?,?,?) \";\n\t\t\t\t\t\t}\n\t\t\t\t\t args.add(String.valueOf(paperId));\n\t\t\t\t\t args.add(String.valueOf(authorIds.get(key)));\n\t\t\t\t\t args.add(String.valueOf(key));\n\t\t\t\t\t count++;\n\t\t\t\t\t}\n\t\t\t\t\tsqlStr+=\"ON DUPLICATE KEY UPDATE displayOrder=VALUES(displayOrder)\";\n\t\t\t\t\tint rc = dbObj.setData(sqlStr, args);\n\t\t\t\t\tif(rc>0) {\n\t\t\t\t\t\tisSet=true;\n\t\t\t\t\t}\n\t\t\t\t\tdbObj.close();\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t\tcatch(Exception ex) {\n\t \t\tthrow new DLException(ex, ex.getMessage());\n\t }\t\t\t\t \t \n\t\treturn isSet;\n\t}", "private boolean userMadeChanges() {\n\t\treturn userMadeChanges(null);\n\t}" ]
[ "0.6219309", "0.6098173", "0.6069085", "0.6039728", "0.59832066", "0.5902564", "0.584509", "0.5811725", "0.57643425", "0.57475436", "0.5713731", "0.57126915", "0.5703448", "0.56772745", "0.56709504", "0.56460977", "0.56460977", "0.56460977", "0.56460977", "0.56460977", "0.5627487", "0.56261784", "0.562111", "0.5521032", "0.54682624", "0.54593194", "0.54553735", "0.5454855", "0.54475325", "0.5436826", "0.5436826", "0.54338104", "0.5429454", "0.54211336", "0.54057604", "0.5370011", "0.53576994", "0.5344413", "0.5344413", "0.5340846", "0.53319293", "0.5329241", "0.5310516", "0.53020203", "0.52971745", "0.52782786", "0.52770805", "0.52733046", "0.52724254", "0.52724254", "0.52724254", "0.52724254", "0.52724254", "0.52724254", "0.52724254", "0.52724254", "0.52724254", "0.52724254", "0.52724254", "0.52724254", "0.525997", "0.5253058", "0.523426", "0.52305514", "0.5227707", "0.5215794", "0.5209332", "0.52015793", "0.52000785", "0.5197679", "0.5188049", "0.5178644", "0.51762235", "0.51579016", "0.5151287", "0.51390797", "0.5138221", "0.5136223", "0.5121581", "0.5119694", "0.5115922", "0.5115163", "0.51097697", "0.5105889", "0.50955826", "0.5094859", "0.5092955", "0.5092955", "0.50919896", "0.5076165", "0.5073427", "0.50656736", "0.50526834", "0.5044867", "0.5044154", "0.50420785", "0.5041916", "0.503986", "0.50271004", "0.5021167" ]
0.56808287
13
Returns whether the given user has authorlevel privileges for this level pack. If the indicated user is null, returns false.
public boolean isAuthor(User user) { if (user == null) return false; if (authors == null) return false; for (User u : authors) { if (u.getUserName().equals(user.getUserName())) return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized boolean hasAdminPrivilege(UserEntity userEntity) {\n PrincipalEntity principalEntity = userEntity.getPrincipal();\n if (principalEntity != null) {\n Set<PrivilegeEntity> roles = principalEntity.getPrivileges();\n if (roles != null) {\n PermissionEntity adminPermission = permissionDAO.findAmbariAdminPermission();\n Integer adminPermissionId = (adminPermission == null) ? null : adminPermission.getId();\n\n if (adminPermissionId != null) {\n for (PrivilegeEntity privilegeEntity : roles) {\n PermissionEntity rolePermission = privilegeEntity.getPermission();\n if ((rolePermission != null) && (adminPermissionId.equals(rolePermission.getId()))) {\n return true;\n }\n }\n }\n }\n }\n\n return false;\n }", "private static Boolean isAuthorised(Page page, List<GrantedAuthority> userAuthorities ) {\n if ( page.getAllowedRoles().size() == 0 ) {\n return true;\n }\n \n for ( GrantedAuthority role : userAuthorities ) {\n for ( String requiredRole : page.getAllowedRoles() ) {\n if ( role.getAuthority().equals(requiredRole) ) {\n return true;\n }\n }\n }\n return false;\n }", "public boolean hasPermission(String username, MenuComponent menuComponent) {\r\n return username != null;\r\n }", "public boolean hasUser() {\n return userBuilder_ != null || user_ != null;\n }", "public boolean hasUser() {\n return userBuilder_ != null || user_ != null;\n }", "public boolean hasUser() {\n return user_ != null;\n }", "public boolean hasUser() {\n return user_ != null;\n }", "public boolean hasUser() {\n return user_ != null;\n }", "public boolean hasAdminAccess(User user){\n return (user.hasOneOf(RoleValue.COMPANY_ADMIN, RoleValue.APP_ADMIN) && hasAccess(user));\n }", "public boolean isSetUser() {\n return this.user != null;\n }", "public boolean isSetUser() {\n return this.user != null;\n }", "@Override\n public boolean hasAccess(User user) {\n return user.hasRole(RoleValue.APP_ADMIN) || this.equals(user.company);\n }", "public boolean getAuthorisedUser() {\n return authorisedUser;\n }", "public boolean addAuthor(User user) {\n\t\treturn authors.add(user);\n\t}", "@Override\n public boolean hasAccessPermission(String user, NamespaceKey key, DatasetConfig datasetConfig) {\n return userPredicate.test(user);\n }", "public boolean hasUser() {\n return instance.hasUser();\n }", "private static boolean isAuthorized(\n @Nonnull Authorizer authorizer,\n @Nonnull String actor,\n @Nonnull ConjunctivePrivilegeGroup requiredPrivileges,\n @Nonnull Optional<ResourceSpec> resourceSpec) {\n for (final String privilege : requiredPrivileges.getRequiredPrivileges()) {\n // Create and evaluate an Authorization request.\n final AuthorizationRequest request = new AuthorizationRequest(actor, privilege, resourceSpec);\n final AuthorizationResult result = authorizer.authorize(request);\n if (AuthorizationResult.Type.DENY.equals(result.getType())) {\n // Short circuit.\n return false;\n }\n }\n return true;\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}", "public static boolean hasAdministrativePermissions(@NotNull Session session, String... additionalAdminAuthorizableIdsOrPrincipalNames) throws RepositoryException {\n List<String> additionalAdminIdsOrPrincipalNames = Arrays.asList(Optional.ofNullable(additionalAdminAuthorizableIdsOrPrincipalNames).orElse(new String[0]));\n final JackrabbitSession jackrabbitSession;\n if (session instanceof JackrabbitSession) {\n jackrabbitSession = (JackrabbitSession) session;\n if (isOakVersionExposingBoundPrincipals(session.getRepository())) {\n if (hasAdministrativePermissionsWithPrincipals(jackrabbitSession, additionalAdminIdsOrPrincipalNames)) {\n return true;\n }\n }\n } else {\n jackrabbitSession = null;\n }\n // then evaluate user id\n String userId = session.getUserID();\n if (hasAdministrativePermissionsWithAuthorizableId(userId, additionalAdminIdsOrPrincipalNames)) {\n return true;\n }\n if (jackrabbitSession != null) {\n Authorizable authorizable = jackrabbitSession.getUserManager().getAuthorizable(userId);\n if (authorizable == null) {\n return false;\n }\n \n Iterator<Group> groupIterator = authorizable.memberOf();\n while (groupIterator.hasNext()) {\n String groupId = groupIterator.next().getID();\n if (hasAdministrativePermissionsWithAuthorizableId(groupId, additionalAdminIdsOrPrincipalNames)) {\n return true;\n }\n }\n } else {\n log.warn(\"could not evaluate group permissions but just user name\");\n }\n return false;\n }", "public boolean checkIfAuthor(int paperId, HashMap<Integer,Integer> authorsOrder) throws DLException {\n\t\tboolean isAuthor=false;\n\t\tfor(int order: authorsOrder.keySet()) {\n\t\t\tif(currentUser.getUserId()==authorsOrder.get(order)) {\n\t\t\t\tisAuthor=true;\n\t\t\t}\n\t\t}\n\t\treturn isAuthor;\n\t}", "public boolean isSetCreate_user_priv() {\n return this.__isset.create_user_priv;\n }", "public boolean isCurrentUserAdmin(){\n if (getAdminUserFromId(currentUserId)!=null){\n return true;\n }\n else{\n return false;\n }\n }", "private boolean userHasOrder(LogicFacade logic, User user) throws LegoCustomException {\r\n ArrayList<HouseOrder> orders = logic.getAllOrdersByUser(user.getId());\r\n boolean hasOrder = false;\r\n for (HouseOrder houseOrder : orders) {\r\n hasOrder = (houseOrder.getUserID() == user.getId());\r\n }\r\n return hasOrder;\r\n }", "private boolean userHasAllowedRole(User u, String[] allowedRoles) {\n\n for (GroupRef group : u.getGroups()) {\n\n if (Arrays.binarySearch(allowedRoles, group.getDisplay()) >= 0) {\n return true;\n }\n }\n\n return false;\n }", "public boolean hasPermission(String username, ActionContext ctx) {\r\n return username != null;\r\n }", "public boolean isUserAdmin(int userId){\n if (getAdminUserFromId(userId)!=null){\n return true;\n }\n else{\n return false;\n }\n }", "public boolean hasUser() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasUser() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "public boolean isSetGrant_priv() {\n return this.__isset.grant_priv;\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}", "private boolean hasPermission(String username, SOAPMessage msg) {\r\n\t\ttry {\r\n\t\t\tNodeList email = msg.getSOAPBody().getElementsByTagName(SOAP_EMAIL_TAG);\r\n\r\n\t\t\t// if request has email\r\n\t\t\tif(email.getLength() > 0) {\r\n\t\t\t\treturn username.equals(msg.getSOAPBody().getElementsByTagName(SOAP_EMAIL_TAG).item(0).getTextContent());\r\n\t\t\t}\r\n\t\t\t// if there's no email field, every user has permissions to access\r\n\t\t\treturn true;\r\n\t\t\t\r\n\t\t} catch (SOAPException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean hasObjUser() {\n return objUser_ != null;\n }", "public boolean isEntityAccessGranted(User user)\n\t{\t\t\n\t\tif (this.entityConditions.isEmpty())\n\t\t{\n\t\t\tif (!this.attributeConditions.isEmpty() || !this.fieldConditions.isEmpty())\n\t\t\t{\n\t\t\t\treturn true;\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (this.logicOperator.equals(\"AND\"))\n\t\t{\n\t\t\tfor (EntityCondition next : this.entityConditions)\n\t\t\t{\n\t\t\t\tif (!next.entityConditionAccessGranted(user)) return false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\telse // if logicOperator equals OR\n\t\t{\n\t\t\tfor (EntityCondition next : this.entityConditions)\n\t\t\t{\n\t\t\t\tif (next.entityConditionAccessGranted(user)) return true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean hasUser(){\n return numUser < MAX_USER;\n }", "public boolean isAuthorised(SessionObjectDTO sessionDTO) {\n\t\ttry {\n\t\t\tIUserService service = (IUserService) BusinessServiceLocator.locate(IUserService.class);\n\t\t\tsessionDTO = (SessionObjectDTO) session.get(\"sessionDTO\");\n\t\t\tservice.getAuthorisations(userDetailsDTO, sessionDTO.getRoleId());\n\t\t\tservice.getAuthorisedPagesForUser(sessionDTO.getRoleId(), sessionDTO.getUserId(), userDetailsDTO);\n\t \tif(userDetailsDTO.getAuthorisedPagesList() != null && userDetailsDTO.getAuthorisedPagesList().contains((LinMobileConstants.APP_VIEWS[2]).split(LinMobileConstants.ARRAY_SPLITTER)[1].trim())) {\n\t \t\tsessionDTO.setPageName((LinMobileConstants.APP_VIEWS[2]).split(LinMobileConstants.ARRAY_SPLITTER)[1].trim());\n\t \t\treturn true;\n\t \t}\n\t \t}\n\t\tcatch (Exception e) {\n\t\t\t\n\t\t\tlog.severe(\"Exception in execution of isAuthorised : \" + e.getMessage());\n\t\t}\n\t\treturn false;\n\t}", "public boolean isUser()\n\t{\n\t\treturn (id != -1);\n\t}", "@Override\n\tpublic boolean isUser(User user) {\n\t\treturn false;\n\t}", "public boolean basicEligibilityCheck(User user) {\n\t\tif(checkUser( user)) \r\n\t\t\treturn true;\r\n\t\telse \r\n\t\t\treturn false;\r\n\t\t\r\n\t\t\r\n\t}", "boolean hasUserManaged();", "@WebMethod public boolean isAdmin(String user);", "public Boolean isAuthorized(String userId);", "public boolean hasPermissions(Player player) {\n\t\tif (!m_bHasPermissions && player.isOp())\n\t\t\treturn true;\n\t\telse if (m_bHasPermissions && m_PermissionHandler.has(player, \"lord.orbitalstrike\"))\n\t\t\treturn true;\n\t\telse {\n\t\t\tOrbitalStrike.sendMessage(player, \"You do not have permission to use this plugin.\");\n\t\t\tOrbitalStrike.logInfo(\"Player \" + player + \" does not have permission.\", 1);\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isVtkUser( ) {\n\t\treturn chomboSolverSpec != null;\n\t}", "@Override\n public Boolean isGradeManger(UserDTO user) {\n return user.getRoles().contains(RoleTypeEnum.GRADE);\n }", "public static boolean isUserAuthorized(DSUser user) {\n\t\tDSUsers dsUsers = getUsersFromFile();\n\t\treturn (existedUser(dsUsers, user) != null && passwordCorrect(dsUsers,\n\t\t\t\tuser));\n\t}", "public static boolean hasAccess(final String username, String path)\n\t{\n\t\t\n\t\tif (path.contains(\".json\"))\n\t\t{\n\t\t\tFile jsonFile = new File(path);\n\t\t\tpath = FilenameUtils.separatorsToUnix(jsonFile.getParent());\n\t\t}\n\t\t\n\t\tfinal int level = path.split(\"/\").length;\n\t\t\n\t\t//--- no user has access to level 1 ---//\n\t\tif (level == 1) return false;\n\t\t\n\t\t//--- all users have access to level 2 ---//\n\t\tif (level == 2) return true;\n\t\t\n\t\t//--- if cached HashMap doesn't have username as key, return false ---//\n\t\t//--- because this user has not been assigned with any role yet ---//\n\t\tif (!username2accesses.containsKey(username)) return false;\n\t\t\n\t\t//--- :section access based on user role ---//\n\t\t//--- ./Home/Administrator OR ./Home/Benutzer OR ./Home/Codes OR ./Home/Fragebogen -> ADMIN, ORGANIZER ---//\n\t\tif (path.contains(CodeManager.getSectionName()) || path.contains(Hierarchies.getSectionName()) ||\n\t\t\t\tpath.contains(QuestionnaireManager.getSectionName()) || path.contains(UserManager.getSectionName()))\n\t\t{\n\t\t\tif (!hasRole(username, Role.ORGANIZER) && !hasRole(username, Role.ADMINISTRATOR)) return false;\n\t\t}\n\t\t//--- ./Home/Statistik OR ./Home/Ergebnisse -> DEAN, DEAN_OF_STUDIES, LECTURER ---//\n\t\tif (path.contains(Statistics.getSectionName()) || path.contains(Results.getSectionName()))\n\t\t{\n\t\t\tif (!hasTeacherAccess(username)) return false;\n\t\t\t//--- LECTURER has only access to current semester ---//\n\t\t\tif (level > 3 && !path.contains(SemesterManager.getCurrentSemester()))\n\t\t\t{\n\t\t\t\tif (!hasRole(username, Role.DEAN) && !hasRole(username, Role.DEAN_OF_STUDIES))\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\t\t\n\t\t//--- no path filter below :semester level for all sections except for ---//\n\t\t//--- ./Home/Administrator and ./Home/Ergebnisse and ./Home/Statistik ---//\n\t\tif (!path.contains(Hierarchies.getSectionName()) && level < 5) return true;\n\t\t\n\t\t//--- no path filter below level 4 for ./Home/Administration because it doesn't have :semester ---//\n\t\tif (path.contains(Hierarchies.getSectionName()) && level < 4) return true;\n\t\t\n\t\t//--- no path filter for Role.ADMINISTRATOR ---//\n\t\tif (hasRole(username, Role.ADMINISTRATOR)) return true;\n\t\t\n\t\t//--- path access ---//\n\t\t//--- extract relative path from the absolute path (input parameter: path) ---//\n\t\tString requestedRelPath = \"\";\n\t\t//--- determine index for substring based on section name ---//\n\t\t//--- \"./Home/Statistik\" + \"/\" + \"20XX-XS\" + \"/\" ---//\n\t\tif (path.contains(Statistics.getSectionName()))\n\t\t\trequestedRelPath = path.substring(Statistics.getSectionDir().length() + 1 + SemesterManager.getSemesterLength() + 1);\n\t\t//--- \"./Home/Ergebnisse\" + \"/\" + \"20XX-XS\" + /\" ---//\n\t\telse if (path.contains(Results.getSectionName()))\n\t\t\trequestedRelPath = path.substring(Results.getSectionDir().length() + 1 + SemesterManager.getSemesterLength() + 1);\n\t\t//--- \"./Home/Codes\" + \"/\" + \"20XX-XS\" + \"/\" ---//\n\t\telse if (path.contains(CodeManager.getSectionName()))\n\t\t\trequestedRelPath = path.substring(CodeManager.getSectionDir().length() + 1 + SemesterManager.getSemesterLength() + 1);\n\t\t//--- \"./Home/Administrator\" + \"/\" ---//\n\t\telse if (path.contains(Hierarchies.getSectionName()))\n\t\t\trequestedRelPath = path.substring(Hierarchies.getSectionDir().length() + 1);\n\t\t\n\t\tfinal int requestedRelPathLevel = requestedRelPath.split(\"/\").length;\n\t\t\n\t\t//--- get relative paths user can access ---//\n\t\tfinal List<String> accessibleRelPaths = getAccessibleRelPaths(username);\n\t\t\n\t\t//--- for each accessible relative path, check whether the requested relative path matches ---//\n\t\tfor (String accessibleRelPath : accessibleRelPaths)\n\t\t{\n\t\t\tfinal int accessibelRelPathLevel = accessibleRelPath.split(\"/\").length;\n\t\t\tif (accessibelRelPathLevel < requestedRelPathLevel && requestedRelPath.contains(accessibleRelPath))\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (accessibelRelPathLevel > requestedRelPathLevel && accessibleRelPath.contains(requestedRelPath))\n\t\t\t{\n\t\t\t\treturn true;\t\t\t\n\t\t\t}\n\t\t\tif (accessibelRelPathLevel == requestedRelPathLevel && requestedRelPath.equals(accessibleRelPath))\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isAdministrator() {\r\n return doesUserHaveRole(UserRole.ADMINISTRATOR);\r\n }", "public boolean hasAdminInvitePrivilages(User user, Chatroom chatroom) {\n\t\treturn isOwner(user, chatroom);// only the owner of a chatroom can send admin invitations\n\t}", "private boolean hasUserImportantView() {\n int userID = this.sharedPreferences.getInt(Constants.SP_USER_ID_KEY, 0);\n return this.sharedPreferences.getBoolean(serverName + \"_\" + userID, false);\n }", "public static boolean authorize(User user) {\n\t\t\n\t\treturn true;\n\t}", "public static Boolean isLoggedIn(User user){\n if(user.getFirstName() != null){\n return true;\n }\n return false;\n }", "public boolean checkForUser(Player p) {\n\t\tif(p.getName(p).equals(\"user\")) {\n\t\t\treturn true;\t\t\t\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "@XmlTransient\n\tpublic boolean isCanActivateUser() {\n\t\treturn (isSecurityAdministrator() && isSelfRegistrationEnabled());\n\t}", "public boolean isEnabledByUser() {\n return mEnabledByUser;\n }", "private boolean isUserExplicitlyLoggedIn() {\n // User is explicitly logged in, if his securityStatus is more than or equal to security status login.\n String securityStatusPropertyName = getStorePropertyManager().getSecurityStatusPropertyName();\n int securityStatus = ((Integer) getProfile().getPropertyValue(securityStatusPropertyName)).intValue();\n return securityStatus >= getStorePropertyManager().getSecurityStatusLogin();\n }", "@Override\n public boolean isOwner(String groupingPath, String username) {\n return isMember(groupingPath + OWNERS, username);\n }", "@Override\n\tpublic boolean isUserInRole(String arg0) {\n\t\treturn false;\n\t}", "public boolean isOwner(String role) throws IOException {\n\t\treturn (rolePoster.sendPost(\"isOwner=\" + role).startsWith(\"true\"));\n\t}", "public boolean hasObjUser() {\n return instance.hasObjUser();\n }", "public boolean isUserAllowedOn(RoleAssignee u, Class<? extends Command> commandClass, DvObject dvo) {\n Map<String, Set<Permission>> required = CH.permissionsRequired(commandClass);\n return isUserAllowedOn(u, required, dvo);\n }", "public boolean hasUserSettings() {\r\n return processModel.getUserInfos() != null;\r\n }", "public boolean isResponsible(User user) {\n\t\tHashMap<String, Object> filters = new HashMap<>();\n\n\t\tfilters.put(\"responsible\", new ValueParameter(user));\n\n\t\treturn !this.filter(filters).isEmpty();\n\t}", "public boolean isUserSettingsOK() {\r\n return (userSettings != null && userSettings.isValid());\r\n }", "public boolean isGroupAdmin(int userId){\n return userId == groupAdmin;\n }", "public static boolean isCurrentUserAdministrativo() {\n return UserRole.ADMINISTRATIVO.equals(CURRENT_USER.getUserRole());\n }", "public boolean checkAccess(HasUuid object) {\n // Allow newly-instantiated objects\n if (!wasResolved(object)) {\n return true;\n }\n // Allow anything when there are no roles in use\n if (getRoles().isEmpty()) {\n return true;\n }\n Principal principal = getPrincipal();\n // Check for superusers\n if (!principalMapper.isAccessEnforced(principal, object)) {\n return true;\n }\n\n List<PropertyPath> paths = typeContext.getPrincipalPaths(object.getClass());\n PropertyPathChecker checker = checkers.get();\n for (PropertyPath path : paths) {\n path.evaluate(object, checker);\n if (checker.getResult()) {\n return true;\n }\n }\n addWarning(object, \"User %s does not have permission to edit this %s\", principal,\n typeContext.getPayloadName(object.getClass()));\n return false;\n }", "boolean hasObjUser();", "public boolean authorize(String username, String principal) {\n return getAuthorized(username).contains(principal);\n }", "public static boolean userIsOwner(@NotNull Bot bot, User user) {\n return bot.getClient().getApplicationInfo().block().getOwnerId().asLong() == user.getId().asLong();\n }", "public boolean isUserInRole(String role) {\r\n\t\treturn true;\r\n\t}", "public boolean hasAuthor() {\n return fieldSetFlags()[0];\n }", "@Override\n public boolean isAdmin(String username) {\n return isMember(GROUPING_ADMINS, username);\n }", "@SuppressWarnings(\"deprecation\")\n\tprivate static boolean hasPermission(String player, Block block, boolean ownership) {\n\t\tInventoryHolder chest;\n\t\tif (block.getType() == Material.CHEST || block.getType() == \n\t\t\t\tMaterial.TRAPPED_CHEST) {\n\t\t\tchest = getHolder(block);\n\t\t} else if (block.getType() == Material.WALL_SIGN) {\n\t\t\tBlock chestBlock = null;\n\t\t\tswitch (block.getData()) {\n\t\t\tcase 2: \n\t\t\t\tchestBlock = block.getRelative(BlockFace.NORTH\n\t\t\t\t\t\t.getOppositeFace());\n\t\t\t\tbreak;\n\t\t\tcase 5: \n\t\t\t\tchestBlock = block.getRelative(BlockFace.EAST\n\t\t\t\t\t\t.getOppositeFace());\n\t\t\t\tbreak;\n\t\t\tcase 3: \n\t\t\t\tchestBlock = block.getRelative(BlockFace.SOUTH\n\t\t\t\t\t\t.getOppositeFace());\n\t\t\t\tbreak;\n\t\t\tcase 4: \n\t\t\t\tchestBlock = block.getRelative(BlockFace.WEST\n\t\t\t\t\t\t.getOppositeFace());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (chestBlock.getType() != Material.CHEST && chestBlock\n\t\t\t\t\t.getType() != Material.TRAPPED_CHEST) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tchest = getHolder(chestBlock);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tString[] owners = getUsers(getSigns(getChests(chest)));\n\t\t\n\t\treturn (owners.length == 0 && !ownership)|| Arrays.asList(owners).contains(player);\n\t}", "boolean hasQueryAuthorizations();", "boolean hasPrincipal();", "public boolean isSetUserId() {\n return this.userId != null;\n }", "public boolean isSetUserId() {\n return this.userId != null;\n }", "public boolean isSetUserId() {\n return this.userId != null;\n }", "public boolean isSetUserId() {\n return this.userId != null;\n }", "public boolean isSetUserId() {\n return this.userId != null;\n }", "public Boolean hasChatroomTagPrivilages(Chatroom chatroom, User user) {\n\t\treturn isOwner(user, chatroom) || isAdmin(user, chatroom); // only the owner and admins can edit tags\n\t}", "boolean hasLevel();", "boolean hasLevel();", "boolean hasLevel();", "boolean hasLevel();", "public static boolean isCurrentUserVendedor() {\n return UserRole.VENDEDOR.equals(CURRENT_USER.getUserRole());\n }", "public void checkPrivileges() {\n\t\tPrivileges privileges = this.mySession.getPrivileges();\n\t}", "boolean isAuthorized(SiteUser user, Long transmissionId);", "public boolean getUserMaintOK() {\n return userMaintOK;\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 }", "public boolean isAuthorized(Priviliges priviliges) {\n return priviliges.equals(this.priviliges);\n }", "private Boolean isValid(User user){\n Boolean result = false;\n if (user != null && loginService.validate(user.getUserName()) != null && user.getUserRole().equals(\"admin\"))\n result = true;\n return result;\n }", "@Override\n public Boolean isCollegeManger(UserDTO user) {\n return user.getRoles().contains(RoleTypeEnum.COLLEGE);\n }" ]
[ "0.64265174", "0.61462075", "0.6128677", "0.58861667", "0.58861667", "0.5868367", "0.5868367", "0.58263075", "0.5717982", "0.5711437", "0.5711437", "0.5682782", "0.55619717", "0.5458662", "0.54173243", "0.54137486", "0.5406449", "0.5404378", "0.5366554", "0.53553355", "0.53545535", "0.5347035", "0.5341848", "0.53267694", "0.5308143", "0.5304831", "0.52951396", "0.5283946", "0.5277127", "0.5277127", "0.5277127", "0.5277127", "0.5277127", "0.5277127", "0.5277127", "0.5268109", "0.52561414", "0.52537066", "0.52508813", "0.5243533", "0.52224916", "0.51956517", "0.51938957", "0.5180654", "0.5178245", "0.5177611", "0.5162529", "0.51596165", "0.51449364", "0.5140398", "0.51402724", "0.5132238", "0.5127882", "0.51214004", "0.5120776", "0.5118583", "0.5116989", "0.51144326", "0.5103276", "0.51016045", "0.50905836", "0.50756806", "0.50750256", "0.50643057", "0.50551856", "0.5044949", "0.504178", "0.5041095", "0.5038167", "0.50369805", "0.5011154", "0.5000572", "0.4992144", "0.49887338", "0.49774715", "0.49743637", "0.49693415", "0.49562466", "0.49439666", "0.49435163", "0.49305293", "0.49144307", "0.4910996", "0.4910996", "0.4910996", "0.4910996", "0.4910996", "0.4908682", "0.49053112", "0.49053112", "0.49053112", "0.49053112", "0.49040645", "0.4901837", "0.4897684", "0.488265", "0.48783153", "0.48774147", "0.48772165", "0.48725575" ]
0.5988426
3
Returns an array of all the authors contained in this Level Pack. Note that the array returned is NOT a reference to the collection stored internally.
public User[] getAllAuthors() { return authors.toArray(new User[authors.size()]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String[] getAuthors() {\n return authors;\n }", "public Author[] getAuthors() {\n return authors;\n }", "public Author[] getAuthors() {\n return authors;\n }", "public ArrayList<String> getAuthors() {\n\t\treturn authors;\n\t}", "public List<String> getAuthors() {\n return authors;\n }", "public List<String> getAuthors() {\n return Collections.unmodifiableList(mAuthors);\n }", "Set<URI> getAuthors();", "List<String> getAuthorsList() {\r\n\t\tList<String> authorList = new ArrayList<String>() ;\r\n\t\t\r\n\t\t// Populate the list of authors\r\n\t\tfor(Collaborator c: collaborators) {\r\n\t\t\tauthorList.add(c.getAuthorName()) ;\r\n\t\t}\r\n\t\treturn authorList ;\r\n\t}", "String[] getAuthor();", "protected List<AuthorNames> getAuthorNames() {\n return authors.values().stream()\n .map(a-> new AuthorNames(a.getFirstName(), a.getLastName()))\n .collect(Collectors.toList());\n }", "@Nonnull @NonnullElements @Live public Collection<String> getAuthorities() {\n return authorities;\n }", "public List<Author> fetchAllAuthors() {\n\t\tEntityManager entityManager = factory.createEntityManager();\n\t\tTypedQuery<Author> query = entityManager.createQuery(\"from Author\", Author.class);\n\t\tList<Author> authors = query.getResultList();\n\t\tentityManager.close();\n\t\treturn authors;\n\t}", "public List applyAuthorRule () {\n\t\treturn authors;\n\t}", "public String getAuthors() {\n return getProperty(Property.AUTHORS);\n }", "public Author[] createAuthors() {\r\n Author[] authorList = new Author[10];\r\n authorList[0] = createAuthor(\"Daniel\", 1);\r\n authorList[1] = createAuthor(\"Jeremy\", 2);\r\n return authorList;\r\n }", "public List<String> getPatternAuthors() {\n Set<String> authors = mapAuths.keySet();\r\n //int n = authors.size();\r\n List <String> authorList = new LinkedList<String>();\r\n //iterate through set and add to list\r\n for(String author : authors) {\r\n authorList.add(author);\r\n }\r\n\r\n Collections.sort(authorList, new Comparator<String>() {\r\n public int compare(String author1, String author2) {\r\n return author1.compareToIgnoreCase(author2);\r\n }\r\n });\r\n\r\n return authorList;\r\n }", "ImmutableList<SchemaOrgType> getAuthorList();", "public List<Author> selectAllAuthors();", "public long getAuthorsInCollection()\n\tthrows DataAccessException;", "public String getAuthorities() {\n return authorities;\n }", "@Override\r\n\tpublic List<Author> getAllAuthorDetails() {\n\t\treturn authorDAO.findAll();\r\n\t\t\r\n\t}", "public com.google.protobuf.ProtocolStringList\n getAuthoritiesList() {\n authorities_.makeImmutable();\n return authorities_;\n }", "private static String getAuthors(JSONObject volumeInfo) throws JSONException {\n JSONArray authors = volumeInfo.optJSONArray(\"authors\");\n if (authors == null) {\n Log.e(LOG_TAG, \"No authors for this book\");\n return null;\n }\n StringBuilder authorsString = new StringBuilder();\n for (int i = 0; i < authors.length(); i++) {\n authorsString.append(authors.getString(i));\n if (i + 1 < authors.length()) {\n authorsString.append(\"\\n\");\n }\n }\n return authorsString.toString();\n }", "public Item2Vector<Author> getAuthorss() { return authorss; }", "public com.google.protobuf.ProtocolStringList\n getAuthoritiesList() {\n return authorities_;\n }", "public Map<String, Long> findAuthors() {\n SearchResponse searchResponse = client.prepareSearch(INDEX_BASE)\n .addAggregation(terms(\"authors\").field(\"author\"))\n .setSize(0)\n .get();\n\n Terms issues = searchResponse.getAggregations().get(\"authors\");\n Map<String, Long> foundAuthors = new LinkedHashMap<>();\n\n issues.getBuckets().forEach(bucket -> {\n foundAuthors.put(bucket.getKeyAsString(), bucket.getDocCount());\n });\n\n return foundAuthors;\n }", "public long getUniqueAuthorsInCollection()\n\tthrows DataAccessException;", "public Authors() {\n mAuthors = new TreeMap<>();\n }", "@Override\n\tpublic ResultSet getAuthorsResultSet() {\n\t\treturn null;\n\t}", "public List<AuthorDto> findAll() {\n return authorRepository.findAll().stream().map(authorMapper::toAuthorDto).collect(Collectors.toList());\n }", "public void setAuthors(String[] authors) {\n this.authors = authors;\n }", "public String getStatsPublicationsAuthors() throws Exception {\n\t\treturn this.xqueryUtil.getResponseXMLStatsPublicationsAuthors();\n\t}", "public int numberAuthors() {\n return authors.size();\n }", "public static ImmutableList<String> getAuthors40() {\n ArrayList<String> files = new ArrayList<String>();\n try {\n BufferedReader reader = new BufferedReader(\n new FileReader(Parameters.UBUNTU_MAIN + \"information/authors_clear_rct_only_40\"));\n String line = null;\n while ((line = reader.readLine()) != null) {\n files.add(line);\n }\n reader.close();\n } catch (Exception e) {\n System.out.println(\"GetAuthors40() exception:\" + e.toString());\n }\n Collections.sort(files);\n return ImmutableList.<String>copyOf(files);\n }", "public int getAuthors() {\n return Integer.parseInt(getCellContent(AUTHORS));\n }", "java.util.List<java.lang.String>\n getAuthoritiesList();", "public void setAuthors(Author[] authors) {\n this.authors = authors;\n }", "public void setAuthors(Author[] authors) {\n this.authors = authors;\n }", "@GetMapping(\"/bookworm/showAllAuthors\")\n public ResponseEntity<List> showAllAuthors() {\n\n log.debug(\"Showing all the Authors whose books are present in library\");\n return ResponseEntity.ok(authorService.getAuthor());\n }", "public long getDisambiguatedAuthorsInCollection()\n\tthrows DataAccessException;", "@GetMapping\n public List<Author> getAllAuthors(){\n return authorService.getAllAuthors();\n }", "public List<cn.edu.kmust.flst.domain.flst.tables.pojos.Article> fetchByArticleAuthor(String... values) {\n return fetch(Article.ARTICLE.ARTICLE_AUTHOR, values);\n }", "public List<AuthorizationItem> getAuthorizationsExternal() {\n List sortedList = new ArrayList(getAuthorizations());\n Collections.sort(sortedList);\n return Collections.unmodifiableList(sortedList);\n }", "@Override\n public String toString() {\n String authorNames=\"\";\n for(Author a:authors){\n authorNames+=\", \"+a.toString();\n }\n return super.toString()\n +\", BookID: \"+bookID\n +\", RackNo: \"+rackNo\n +\", Edition: \"+edition\n +\", Authors: \"+(authors.length>0?authorNames.substring(2):\"\");\n }", "String getDocumentsAuthors(String repository, String graph);", "public java.lang.String getAuthorities(int index) {\n return authorities_.get(index);\n }", "public void setAuthors(String _authors) { authors = _authors; }", "public List<String> getAuthorsForCampaign(\n\t\t\tfinal String campaignId)\n\t\t\tthrows DataAccessException;", "public String[] getTopAuthors(String collectionId, String topicId, int count) {\r\n String[] toReturn = new String[0];\r\n\r\n if (null == collectionId || null == topicId || 0 >= count || 0 == collectionId.length() || 0 == topicId.length()) {\r\n setError(\"APIL_0100\", \"argument's not valid.\");\r\n return toReturn;\r\n }\r\n\r\n List<Pair<Integer>> items = getCustomFieldItemsWithCount(collectionId, TeaGlobal.AUTHOR_TOPIC, topicId, count);\r\n\r\n // reset error code & message, because it arouse confusion in PK usage\r\n recentErrorCode = \"\";\r\n recentErrorMessage = \"\";\r\n recentServerErrorCode = \"\";\r\n recentServerErrorMessage = \"\";\r\n\r\n toReturn = new String[items.size()];\r\n for (int i = 0; i < items.size(); i++)\r\n toReturn[i] = items.get(i).key();\r\n\r\n return toReturn;\r\n }", "public List<AuthorPaper> getAuthorPapers(int authorId) throws SQLException;", "Collection<? extends GrantedAuthority> getAuthorities();", "public java.lang.String getAuthorities(int index) {\n return authorities_.get(index);\n }", "DefaultListModel getAuthorsModel();", "int[] getSelectedAuthorsIndexes();", "private void loopAuthors(Book book) {\n for (String s : book.getAuthors()) {\n print(s);\n }\n }", "public String getAuthor();", "public int getAuthoritiesCount() {\n return authorities_.size();\n }", "public int getAuthoritiesCount() {\n return authorities_.size();\n }", "public List<TilePojo> getManualAuthorCharList() {\n\t\tLOGGER.info(\"getManualAuthorCharList -> Start\");\n\t\ttry {\n\t\t\tString galleryOnPage = node.getPath();\n\t\t\tList<TilePojo> charList = tileGalleryAndLandingService.getAllTiles(galleryOnPage, galleryFor, \"gallery\",\n\t\t\t\t\ttrue);\n\t\t\tmanualAuthorCharList = getFixedNumberChar(charList, 12);\n\t\t} catch (RepositoryException e) {\n\t\t\tLOGGER.error(\"RepositoryException Occured \", e);\n\t\t}\n\t\tLOGGER.info(\"getManualAuthorCharList -> End\");\n\t\treturn manualAuthorCharList;\n\t}", "public void clearAuthors() {\r\n\t\tauthorsNum = 0;\r\n\t}", "public String getAuthor() {\n\t\treturn auth;\n\t}", "public static Set<String> getAllAuthors(List<Book> books) {\r\n Set<String> allAuthors = new HashSet<>();\r\n for (Book book : books) {\r\n allAuthors.add(book.getAuthor());\r\n }\r\n return allAuthors;\r\n }", "public GrantedAuthority[] getAuthorities() {\n\t\treturn null;\r\n\t}", "public AuthorInfoExtractor() {\n\t\tthis.authors = new HashMap<String, AuthorInfo>();\n\t}", "java.lang.String getAuthorities(int index);", "public Author getAuthor() {\r\n return author;\r\n }", "public String getAuthorName() {\n return authorName;\n }", "public String getAuthorName() {\n return authorName;\n }", "public String getAuthor() {\r\n\t\treturn author;\r\n\t}", "public String getAuthor() {\r\n\t\treturn oAuthor;\r\n\t}", "public PapersAuthors getPapersAuthorsByOrder(int paperId) throws DLException {\t \t\t \n\t try {\n\t\t boolean isConnected = dbObj.connect();\n\t\t if(isConnected) {\n\t\t\t ArrayList<String> args = new ArrayList<String>();\n\t\t\t String sqlStr = \"SELECT * FROM PaperAuthors WHERE paperId=? ORDER BY displayOrder\";\t\t \n\t\t\t args.add(String.valueOf(paperId));\n\t\t\t ArrayList<ArrayList<String>> result= dbObj.getData(sqlStr, args);\n\t\t\t for(int i=1,len=result.size(); i<len; i++) {\n\t\t\t\t PaperAuthor pa = new PaperAuthor(Integer.parseInt(result.get(i).get(0)), Integer.parseInt(result.get(i).get(1)), Integer.parseInt(result.get(i).get(2)));\n\t\t\t\t paperAuthorsList.add(pa);\n\t\t\t }\n\t\t\t dbObj.close();\n\t\t\t}\t\n\t }\n\t catch(Exception ex) {\n\t \t\tthrow new DLException(ex, ex.getMessage());\n\t }\t \n\t return this;\t\t\n\t}", "public Author getAuthor() {\n\t\treturn this.author;\n\t}", "@Override\n public String toString() {\n String authorsList = \"\";\n for (Author a : authors) {\n String temp = \", \";\n if (a.equals(authors[authors.length - 1])) {\n temp = \"\";\n }\n authorsList += a.toString() + temp;\n }\n\n return \"\\n\" + super.toString() + \", BookID: \" + bookID + \", RackNo: \"\n + rackNo + \", Edition: \" + edition + \", Authors: \" + authorsList;\n }", "@Override\n public List<Author> selectAuthorList(Author author)\n {\n return authorMapper.selectAuthorList(author);\n }", "List<String> getArtists();", "public java.lang.String getAuthor() {\n return author;\n }", "public java.lang.String getAuthor() {\n return author;\n }", "public Collection<? extends GrantedAuthority> getAuthorities() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Collection<? extends GrantedAuthority> getAuthorities() {\n\t\tSet<GrantedAuthority> authorities = new HashSet<GrantedAuthority>();\n\n\t\troles.forEach(r -> {\n\t\t\tauthorities.add(new SimpleGrantedAuthority(r.getRole()));\n\t\t\tr.getPermissions().forEach(p -> {\n\t\t\t\tauthorities.add(new SimpleGrantedAuthority(p.getName()));\n\t\t\t});\n\t\t});\n\n\t\treturn authorities;\n\t}", "public PapersAuthors getPapersAuthorsByUser(int userId) throws DLException {\n\t\ttry {\n\t\t boolean isConnected = dbObj.connect();\n\t\t if(isConnected) {\n\t\t\t ArrayList<String> args = new ArrayList<String>();\n\t\t\t String sqlStr = \"SELECT * FROM PaperAuthors WHERE userId=?\";\t\t \n\t\t\t args.add(String.valueOf(userId));\n\t\t\t ArrayList<ArrayList<String>> result= dbObj.getData(sqlStr, args);\n\t\t\t if(result!=null) {\n\t\t\t\t for(int i=1,len=result.size(); i<len; i++) {\n\t\t\t\t\t PaperAuthor pa = new PaperAuthor(Integer.parseInt(result.get(i).get(0)), Integer.parseInt(result.get(i).get(1)), Integer.parseInt(result.get(i).get(2)));\n\t\t\t\t\t paperAuthorsList.add(pa);\n\t\t\t\t }\t\t\t\t \n\t\t\t }\t\t \n\t\t\t dbObj.close();\n\t\t }\t\t\t\n\t\t}\n\t\tcatch(Exception ex) {\n\t \t\tthrow new DLException(ex, ex.getMessage());\n\t }\t \t \n\t return this;\t\t\n\t}", "public String getAuthorName() {\n return mAuthorName;\n }", "public String getAuthorName() {\n return this.authorName;\n }", "@Override\r\n\tpublic String getAuthor() {\n\t\treturn super.getAuthor();\r\n\t}", "@Override\n\tpublic Collection<? extends GrantedAuthority> getAuthorities() {\n\t\treturn authenrities;\n\t}", "@Override\n public Collection<? extends GrantedAuthority> getAuthorities() {\n return authorities;\n }", "public String getAuthor() {\r\n return author;\r\n }", "public String getAuthor() {\n\t\treturn \"Prasoon, Vikas, Shantanu\";\n\t}", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "@Override\n public String toString() {\n return getAuthor().getName();\n }" ]
[ "0.78140944", "0.77621466", "0.77621466", "0.76703024", "0.7453463", "0.73334837", "0.70595783", "0.6987351", "0.6871228", "0.6840436", "0.68156", "0.67207485", "0.66648585", "0.65378934", "0.6519554", "0.65039897", "0.6468963", "0.64119345", "0.64014107", "0.6398887", "0.63686556", "0.6361918", "0.62030315", "0.6197321", "0.6193032", "0.60298264", "0.59717464", "0.59459794", "0.5941983", "0.5927789", "0.59250075", "0.58495736", "0.5845737", "0.5830907", "0.5820243", "0.5774895", "0.57747304", "0.57747304", "0.5770432", "0.5763956", "0.5742107", "0.5671192", "0.56363934", "0.5633647", "0.5617499", "0.5604525", "0.55982834", "0.55874676", "0.55731094", "0.5556525", "0.55535895", "0.55501825", "0.55332613", "0.551077", "0.5503156", "0.54635113", "0.5453229", "0.5435408", "0.54311657", "0.54275805", "0.5412842", "0.54075813", "0.54034823", "0.53962684", "0.539205", "0.5384893", "0.5383899", "0.5383899", "0.5375542", "0.53742033", "0.5370274", "0.5366486", "0.53661305", "0.5365375", "0.5358318", "0.5345156", "0.5334583", "0.533186", "0.5324914", "0.53203017", "0.53179204", "0.53117627", "0.53110987", "0.53056717", "0.5298691", "0.5282808", "0.52725106", "0.52604413", "0.52604413", "0.52604413", "0.52604413", "0.52604413", "0.52604413", "0.52604413", "0.52604413", "0.52604413", "0.52604413", "0.52604413", "0.52604413", "0.52509725" ]
0.7731171
3
The main emblem is an image that represents this level pack.
public Image getEmblem() { if (mainEmblem == null) { this.mainEmblem = new ImageList(); this.mainEmblem.add((BufferedImage) UIBuilder.getImage(DEFAULT_MAIN_EMBLEM_FILE)); } return mainEmblem.get(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Image getLevelEmblem(int index) {\n\t\twhile (index >= levelEmblems.size())\n\t\t\tlevelEmblems.add((BufferedImage) UIBuilder.getImage(LevelPack.DEFAULT_LEVEL_EMBLEM_FILE));\n\t\treturn levelEmblems.get(index);\n\t}", "@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}", "@Override\n public String GetImagePart() {\n return \"coal\";\n }", "private Component buildMainPanel() {\r\n \tDPanel mainPanel = new DPanel();\r\n \tJLabel backGroundLabel = new JLabel(ImageUtil.getImageIcon(\"happycow.jpg\"));\r\n \tmainPanel.add(backGroundLabel);\r\n \tsetCurrentContentPane(mainPanel);\r\n \thome = mainPanel;\r\n return home;\r\n }", "@Override\n\tpublic void showContents() {\n\t\tprogram.add(background);\n\t\tprogram.add(topMatte);\n\t\tprogram.add(bottomMatte);\n\t\tprogram.add(stackLabel);\n\t\t\n\t\tprogram.add(basePurp);\n\t\tprogram.add(currPurp);\n\t\tbasePurp.sendToFront();\n\t\tfor (int i = 0; i < callStack; i++) {\n\t\t\tprogram.add(stackBricks[i]);\n\t\t}\n\n\t\tprogram.add(player.getImage());\n\t\tplayer.move(0, 0);\n\n\t\tAudioPlayer.getInstance().playSound(\"sounds\", \"LevelMusic.mp3\", true);\n\t\tif (portalLeft != null) {\n\t\t\tprogram.add(portalLeft.getImage());\n\t\t}\n\t\tif (portalRight != null) {\n\t\t\tprogram.add(portalRight.getImage());\n\t\t\tprogram.add(portalLabel);\n\t\t}\n\t\tif (next == null || next.payloadRetrieved) {\n\t\t\tprogram.add(payload.getImage());\n\t\t}\n\n\t\tArrayList<Payload> collectedPayload = player.getPayloads();\n\n\t\tprogram.add(psuedocode);\n\n\t\tfor (int i = 0; i < collectedPayload.size(); i++) {\n\t\t\tprogram.add(collectedPayload.get(i).getImage());\n\t\t\tpsuedocode.addRtnLong();\n\t\t}\n\t}", "public Level(){\n\t\tlevel_image_pattern = \"default\";\n\t\t\n\t\timages = new HashMap <String, Image>();\n\t\tpickables = new ArrayList<Pickable>();\n\t\tplayer_initial_position = new int[2];\n\t\tplayer_initial_position[0] = 0;\n\t\tplayer_initial_position[1] = 0;\n\t\t\n\t\tconfig = Config.getInstance();\n\t\t\n\t}", "public ImagePanel() {\n\t\ttry {\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigorest.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigono.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigolow.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigohigh.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigocondensation.png\").getPath())));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public MiniBossLevel() {\r\n super(\"background_final.png\");\r\n setStatDisplay();\r\n generateWorld(world);\r\n }", "public Bassin(){\r\n\t\tImage i = Toolkit.getDefaultToolkit().getImage(\"fondmarin.jpg\");\r\n\t\tJLabel l = new JLabel(new ImageIcon(i));\r\n\t\tl.setBounds(0, 0, 600, 600);\r\n\t\tl.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));\r\n\t\tthis.add(l,new Integer(1));\r\n\t}", "public void startUpMain() {\r\n ImageIcon icon = new ImageIcon(\"./data/Untitled.png\");\r\n JLabel accountImage = new JLabel(icon);\r\n accountImage.setPreferredSize(new Dimension(938, 536));\r\n main.add(accountImage);\r\n playSound(\"./data/welcometolol.wav\");\r\n }", "public Cover() {\n this.setLayout(new BorderLayout());\n this.setBackground(Color.white);\n JLabel logo = new JLabel(new ImageIcon(\"res/icons/main_logo.png\"));\n this.add(logo, BorderLayout.CENTER);\n }", "@Override\n public void simpleInitApp() {\n setDisplayStatView(false);\n setDisplayFps(false);\n\n // just a blue box\n Box mesh = new Box(1, 1, 1);\n Geometry geom = new Geometry(\"Box\", mesh);\n Material mat = new Material(assetManager,\n \"Common/MatDefs/Misc/Unshaded.j3md\");\n mat.setColor(\"Color\", ColorRGBA.Blue);\n geom.setMaterial(mat);\n rootNode.attachChild(geom);\n\n // Display a line of text in the default font on depth layer 0\n guiFont = assetManager.loadFont(\"Interface/Fonts/Default.fnt\");\n distanceText = new BitmapText(guiFont);\n distanceText.setSize(guiFont.getCharSet().getRenderedSize());\n distanceText.move( // x/y coordinates and z = depth layer 0\n settings.getWidth() / 2 + 50,\n distanceText.getLineHeight() + 20,\n 0);\n guiNode.attachChild(distanceText);\n\n // Display a 2D image or icon on depth layer -2\n Picture frame = new Picture(\"User interface frame\");\n frame.setImage(assetManager, \"Interface/frame.png\", false);\n frame.move(settings.getWidth() / 2 - 265, 0, -2);\n frame.setWidth(530);\n frame.setHeight(10);\n guiNode.attachChild(frame);\n\n // Display a 2D image or icon on depth layer -1\n Picture logo = new Picture(\"logo\");\n logo.setImage(assetManager, \"Interface/Monkey.png\", true);\n logo.move(settings.getWidth() / 2 - 47, 2, -1);\n logo.setWidth(95);\n logo.setHeight(75);\n guiNode.attachChild(logo);\n }", "MiniMapRender(MiniMap parent) {\n \t\tthis.parent = parent;\n \t\timage = parent.getImage();\n \t}", "public Level()\n {\n //Initialise Tile Types\n try \n {\n //Dynamically assign texture paints\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/surface.jpg\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/rover.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/rock.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/mineral.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/target.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/warning.png\")), tile));\n } catch(FileNotFoundException fnfe) {\n System.out.println(\"ERROR: Invalid texture paint, file not found\" + fnfe);\n }\n catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "public Levels()\r\n { \r\n super(1070, 570, 1);\r\n \r\n //Add the bottom platform in the menu screen\r\n platforms = new Platforms[7]; \r\n for (int i = 0; i < platforms.length; i++)\r\n {\r\n platforms[i] = new Platforms();\r\n }\r\n bottomPlatform();\r\n\r\n //Add the Potato (player)\r\n player = new Player();\r\n addObject (player, 100, 512); \r\n\r\n setBackground(\"menu.png\");\r\n }", "private AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\n\t\t// Setzt die Hintergrundfarbe auf Grün\n\t\tmainLayout.addStyleName(\"backgroundErfassung\");\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"100%\");\n\n\t\treturn mainLayout;\n\t}", "public void setLevelEmblem(int index, BufferedImage img) {\n\t\tlevelEmblems.set(index, img);\n\t}", "public void Boom()\r\n {\r\n image1 = new GreenfootImage(\"Explosion1.png\");\r\n image2 = new GreenfootImage(\"Explosion2.png\");\r\n image3 = new GreenfootImage(\"Explosion3.png\");\r\n image4 = new GreenfootImage(\"Explosion4.png\");\r\n image5 = new GreenfootImage(\"Explosion5.png\");\r\n image6 = new GreenfootImage(\"Explosion6.png\");\r\n setImage(image1);\r\n\r\n }", "public void setEmblem(BufferedImage image) {\n\t\tif (this.mainEmblem == null) {\n\t\t\tthis.mainEmblem = new ImageList();\n\t\t\tthis.mainEmblem.add((BufferedImage) UIBuilder.getImage(DEFAULT_MAIN_EMBLEM_FILE));\n\t\t} else\n\t\t\tthis.mainEmblem.set(0, image);\n\t}", "public View getGraphic()\n{\n // Get image for file\n //Image img = _type==FileType.PACKAGE_DIR? Package : ViewUtils.getFileIconImage(_file);\n Image img = ViewUtils.getFileIconImage(_file);\n View grf = new ImageView(img); grf.setPrefSize(18,18);\n \n // If error/warning add Error/Warning badge as composite icon\n /*BuildIssue.Kind status = _proj!=null? _proj.getRootProject().getBuildIssues().getBuildStatus(_file) : null;\n if(status!=null) {\n Image badge = status==BuildIssue.Kind.Error? ErrorBadge : WarningBadge;\n ImageView bview = new ImageView(badge); bview.setLean(Pos.BOTTOM_LEFT);\n StackView spane = new StackView(); spane.setChildren(grf, bview); grf = spane;\n }*/\n \n // Return node\n return grf;\n}", "VirtualMachineExtensionImageInner innerModel();", "public void loadLevel(BufferedImage image) {\n\n\t\tif (stage == 1) {\n\t\t\tlevelLoader.loadLevel(image, ssTiles, ssPlayer, ssMonster, ssKeys);\n\t\t}\n\n\t\t/*\n\t\t * System.out.println(\"Hello from loadLevel\");\n\t\t * \n\t\t * \n\t\t * int w = image.getWidth();\n\t\t * int h = image.getHeight();\n\t\t * \n\t\t * \n\t\t * for(int xx = 0; xx < w; xx++) {\n\t\t * for (int yy = 0; yy < h; yy++) {\n\t\t * int pixel = image.getRGB(xx,yy);\n\t\t * int red = (pixel >> 16 ) & 0xff;\n\t\t * int green = (pixel >> 8) & 0xff;\n\t\t * int blue = (pixel) & 0xff;\n\t\t * //System.out.println(\"at x\" + xx + \" and y \"+ yy);\n\t\t * \n\t\t * \n\t\t * //if a pixel in the picture is red we render it as a block.\n\t\t * if(red == 255) {\n\t\t * handler.addObject(new Block(xx*32, yy*32, ID.Block,ssTiles));\n\t\t * }\n\t\t * \n\t\t * //if a pixel in the picture is blue, we render it as a player.\n\t\t * if(blue == 255 && green == 0) {\n\t\t * System.out.println(\"player object added\");\n\t\t * handler.addObject(new Wizard(xx*32,yy*32,ID.Player,handler,this,ssPlayer));\n\t\t * }\n\t\t * \n\t\t * if(green == 255 && blue == 0) {\n\t\t * \n\t\t * \n\t\t * handler.addObject(new Enemy(xx*32, yy*32, ID.Enemy, handler,ssMonster));\n\t\t * enemies++;\n\t\t * System.out.println(\"added enemy, total enemies: \" + enemies);\n\t\t * }\n\t\t * \n\t\t * \n\t\t * if(green == 255 && blue == 255) {\n\t\t * System.out.println(\"crate found\");\n\t\t * handler.addObject(new Crate(xx*32, yy*32, ID.Crate,ssTiles));\n\t\t * }\n\t\t * \n\t\t * //System.out.println(\"There is \" + handler.object.size() +\n\t\t * \" objects loaded! \");\n\t\t * \n\t\t * }\n\t\t * \n\t\t * }\n\t\t */\n\n\t}", "public java.lang.String getEatImage() {\n return localEatImage;\n }", "public Wall()\n {\n GreenfootImage img = this.getImage();\n img.scale(64, 64);\n \n }", "@Override\n public void Run() {\n\n DrawSprite(\"pic\", 10, \"sprite/ch1\", new Rect(0, 100, 200, 300)).Show();\n DrawSprite(\"pic\", 11, \"sprite/ch2\", new Rect(100, 100, 300, 300)).Show();\n\n //자식이 부모보다 위에 있을수도 있고 밑에있을 수도 있어야됨.\n\n\n\n\n //Level로 설정하자\n //Level(0)Root\n //Level(1)그아래오브젝트...\n //같은레벨끼리 경쟁\n /*\n\n Level(0)기준\n -(아래로)\n\n */\n }", "public Group renderLevel() {\n\t\tGroup levelGroup = new Group();\n\t\tNode background = renderBackground(level);\n\t\tlevelGroup.getChildren().add(background);\n\t\tList<Sprite> textSpriteList = level.sprites().stream().filter(sprite -> sprite.isText()).collect(Collectors.toList());\n\t\ttextSpriteList.stream().forEach(textSprite -> levelGroup.getChildren().add(renderText(textSprite)));\n\t\tList<Sprite> imageSpriteList = level.sprites().stream().filter((sprite -> !sprite.isText())).collect(Collectors.toList());\n\t\timageSpriteList.stream().filter(sprite -> sprite.isActive()).forEach(sprite -> levelGroup.getChildren().add(renderSprite(sprite)));\n\t\treturn levelGroup;\n\t}", "@Override\n\tpublic Image getImage() {\n\t\treturn img;\n\t}", "public ImageView getMainAvatar() {\n\t\treturn mainAvatar;\n\t}", "public DumbEnemy(){\n setImage(new GreenfootImage(SPRITE_W,SPRITE_H));\n }", "public void newlevel() {\n\t\tblack = new Background(COURT_WIDTH, COURT_HEIGHT); // reset background\n\t\tcannon = new Cannon(COURT_WIDTH, COURT_HEIGHT); // reset cannon\n\t\tdeadcannon = null;\n\t\tbullet = null;\n\t\tshot1 = null;\n\t\tshot2 = null;\n\t\t// reset top row\n\t\tfor (int i = 0; i < alien1.length; i++) {\n\t\t\talien1[i] = new Alien(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien1[i].pos_x = alien1[i].pos_x + 30*i;\n\t\t\talien1[i].v_x = level + alien1[i].v_x;\n\t\t}\n\t\t// reset second row\n\t\tfor (int i = 0; i < alien2.length; i++) {\n\t\t\talien2[i] = new Alien2(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien2[i].pos_x = alien2[i].pos_x + 30*i;\n\t\t\talien2[i].v_x = level + alien2[i].v_x;\n\t\t}\n\t\t// reset third row\n\t\tfor (int i = 0; i < alien3.length; i++) {\n\t\t\talien3[i] = new Alien3(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien3[i].pos_x = alien3[i].pos_x + 30*i;\n\t\t\talien3[i].v_x = level + alien3[i].v_x;\n\t\t}\n\t}", "@Override\n\tpublic void showContents() {\n\t\tprogram.add(Background);\n\t\tprogram.add(lvl1);\n\t\tprogram.add(lvl2);\n\t\tprogram.add(lvl3);\n\t\tprogram.add(Back);\n\n\t}", "public Image getExplosion(){\n\t\treturn explosion;\n\t}", "public RendererArbol() {\n setLeafIcon(new ImageIcon(\"src/vista/images/icons8_JSON_15px_2.png\"));\n setOpenIcon(new ImageIcon(\"src/vista/images/icons8_Open_18px.png\"));\n setClosedIcon(new ImageIcon(\"src/vista/images/icons8_Folder_18px.png\"));\n }", "@Override\n\tpublic Image getImage() {\n\t\treturn image;\n\t}", "public void makeImage() {\n image = new GreenfootImage(\"highscoreb.png\");\n \n image.setFont(new Font(\"Arial\", false, false, 50));\n image.setColor(Color.WHITE);\n image.setFont(new Font(\"Arial\", false, false, 25));\n renderer.drawShadowString(image, name, 25, getHeight() - 50);\n setBackground(image);\n }", "public Image getFlat();", "private void imageInitiation() {\n ImageIcon doggyImage = new ImageIcon(\"./data/dog1.jpg\");\n JLabel dogImage = new JLabel(doggyImage);\n dogImage.setSize(700,500);\n this.add(dogImage);\n }", "public MainView() {\n initComponents();\n setTitle(\"Gerador de provas aleatórias\");\n sair_menu.addActionListener((ActionEvent e) -> {\n this.dispose();\n });\n\n try {\n InputStream imgStream = getClass()\n .getResourceAsStream(\"/gerador/de/provas/aleatorias/view/imgs/Elegant_circle-icons-78.png\");\n setIconImage(ImageIO.read(imgStream));\n } catch (IOException ex) {\n Logger.getLogger(MainView.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }", "public MenuDestinosOriente() {\n initComponents();\n setLocationRelativeTo(null);\n this.setExtendedState(MAXIMIZED_BOTH);\n String master = System.getProperty(\"user.dir\") + \"/src/imgpoe/menu.png\";\n System.out.println(\"master\" + master);\n this.setContentPane(new JLabel(new ImageIcon(master)));//añade una\n }", "public MarbleLabel(Marble m){\n Image img=null;\n ImageIcon icon = null;\n if (m instanceof WhiteMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/bigliabianca.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliabianca.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof RedMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/bigliarossa.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliarossa.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof YellowMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/bigliagialla.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliagialla.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof PurpleMarble){\n //img = new Im ageIcon(new ImageIcon(\"src/main/resources/Resources/bigliaviola.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliaviola.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof BlueMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/bigliablu.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliablu.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof GreyMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/biglianera.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/biglianera.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n setHorizontalAlignment(CENTER);\n setVerticalAlignment(TOP);\n setIcon(icon);\n setVisible(true);\n }", "ImageViewTouchBase getMainImage();", "private void setUpFlat() {\n Image flat = new Image(this.getClass().getResourceAsStream(\"Flat.png\"));\n _accidentalImage.setImage(flat);\n _accidentalImage.setFitHeight(25);\n _accidentalImage.setFitWidth(12.5);\n _accidentalImage.setX(_noteHead.getCenterX() + Constants.FLAT_X_OFFSET);\n _accidentalImage.setY(_noteHead.getCenterY() + Constants.ACCIDENTAL_Y_OFFSET);\n }", "public GameView() {\n this.astronautaImage = new Image(getClass().getResourceAsStream(\"/res/astronauta.gif\"));\n this.ovniImage = new Image(getClass().getResourceAsStream(\"/res/ovni1.png\"));\n this.ovni2Image = new Image(getClass().getResourceAsStream(\"/res/ovni1.png\"));\n this.ovnidestructibleImage = new Image(getClass().getResourceAsStream(\"/res/ovnidestructible.png\"));\n this.wallImage = new Image(getClass().getResourceAsStream(\"/res/wall.png\"));\n this.pistolaImage = new Image(getClass().getResourceAsStream(\"/res/pistola.png\"));\n this.alienEggImage = new Image(getClass().getResourceAsStream(\"/res/alienEgg.png\"));\n }", "public ImageIcon displayItem(Player owner){\n\t\treturn image;\n\t}", "public PrologueStart(int num){\n\t\t\n\timg = getImage(\"/textures/sheets/LookingBack\" +num +\".png\");\n\tthis.setPreferredSize(new Dimension(img.getWidth() - 15 , img.getHeight()-15));\n\t}", "public MainSlot_JPanel(){\n //load background image\n try {\n Image img = ImageIO.read(getClass()\n .getResource(\"./graphics/slot_BackGround.jpg\"));\n backgroundImg = img\n .getScaledInstance(800,580,java.awt.Image.SCALE_SMOOTH );\n } catch(IOException e) {\n e.printStackTrace();\n }\n }", "public Background(GameLevel w, int width, int height) {\n super(w, 800, 800);\n this.world = w;\n //this.gameLevel = gameLevel;\n try {\n //All images being read from their respective image files and being assigned to variables.\n bg = ImageIO.read(new File(\"data/bg.png\"));\n bg2 = ImageIO.read(new File(\"data/bg2.png\"));\n bg3 = ImageIO.read(new File(\"data/bg3.png\"));\n fg = ImageIO.read(new File(\"data/clouds.png\"));\n win = ImageIO.read(new File(\"data/win.jpg\"));\n dead = ImageIO.read(new File(\"data/dead.jpg\"));\n scoreBoard = ImageIO.read(new File(\"data/scoreBoard.png\"));\n bulletBillSelect = ImageIO.read(new File(\"data/GUI/billSelect.png\"));\n bulletSelect = ImageIO.read(new File(\"data/GUI/bulletSelect.png\"));\n arrow = ImageIO.read(new File(\"data/GUI/arrow.png\"));\n health = ImageIO.read(new File(\"data/GUI/health.png\"));\n black = ImageIO.read(new File(\"data/GUI/black.jpg\"));\n\n\n } catch (IOException ex) {\n System.out.println(\"System Error\");\n }\n }", "@Override\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\tsplash.setVisible(false);\n\t\t\t\t\t\t\tKabasuji game = new Kabasuji();\n\t\t\t\t\t\t\tLevelSelectorView window = new LevelSelectorView(game);\n\n\t\t\t\t\t\t\t// allow controller to set up GUI based on the levels loaded by 'game'\n\t\t\t\t\t\t\tStartLevelSelectorController selectorController = new StartLevelSelectorController(window, game);\n\t\t\t\t\t\t\tselectorController.process();\n\n\t\t\t\t\t\t\t// show window\n\t\t\t\t\t\t\twindow.setVisible(true);\n\t\t\t\t\t\t\tImageIcon image = new ImageIcon(StartKabasuji.class.getResource(\"/images/heineman.jpg\"));\n\t\t\t\t\t\t\twindow.setIconImage(image.getImage().getScaledInstance(40, 40, 0));\n\t\t\t\t\t\t\tSystem.out.println(image);\t\n\t\t\t\t\t\t}", "public WorldImage draw() {\n return new OverlayImage(\n new Stem(this.leftLength, this.leftTheta, this.left).draw(),\n new Stem(this.rightLength, this.rightTheta, this.right).draw()); \n }", "public void display() {\n push();\n noStroke();\n\n // creates the Box around the menus\n fill(backgroundColor); // light grey\n rect(0, 0, sidebarWidth, height);\n\n // for loops that draws each scenes icon\n for (int i = 0; i < sceneAmount; i++) {\n\n //checks the for loop has reach the icon for the current scene\n if (i == scene) {\n push();\n\n // Draws a rectancle in the place where the icon is gonna be\n fill(chosenColor); // light blue color\n rect(0, (i * height / sceneAmount ), sidebarWidth, height / sceneAmount);\n pop();\n }\n \n\n // Draws the icons one after the others with a determined distance between them\n image(sidebarLogos[i], 0, (i * height / sceneAmount ), sidebarWidth, height / sceneAmount);\n\n // if chosen scene draws glow effect ontop\n if (i == scene) {\n image(glow, 0, (i * height / sceneAmount ), sidebarWidth, height / sceneAmount);\n }\n }\n\n // draws shadow image ontop of all the icons\n image(shadow, 0, 0);\n pop();\n }", "public void levelBuilder() {\r\n\t\t//round 1\r\n\t\tEnemy[] round1Enemy = new Enemy[1];\r\n\t\tround1Enemy[0] = new Enemy();\r\n\t\t\tround1Enemy[0].type = 0;\r\n\t\t\tround1Enemy[0].imag = (MyFrame.refFrame).client.getOtherPlayer(0).getCardLeader().getCardImage();\r\n\t\t\tround1Enemy[0].position = new vec2(157, 0); \r\n\t\t\tround1Enemy[0].size = new vec2(185, 201); //X: 0~500 Y:250 lower\r\n\t\t\tround1Enemy[0].blood = (MyFrame.refFrame).client.getOtherPlayer(0).getHp();\r\n\t\t\tround1Enemy[0].currentBlood = (MyFrame.refFrame).client.getOtherPlayer(0).getHp();\r\n\t\t\tround1Enemy[0].attackCD = 0;\r\n\t\t\tround1Enemy[0].attack = 0;\r\n\t\t\tround1Enemy[0].initialCD = 0;\r\n\t\t\tround1Enemy[0].defense = 0;\r\n\t\t\t\r\n\t\tround[0].addEnemy(round1Enemy);\r\n\t}", "public Ventana() {\n initComponents();\n \n ImageIcon imagen = new ImageIcon(Toolkit.getDefaultToolkit().getImage(\"logo.png\"));\n Image img = imagen.getImage().getScaledInstance(logo.getWidth(), logo.getHeight(), Image.SCALE_SMOOTH);\n \n logo.setIcon(new ImageIcon(img));\n \n //Image img = imagen.getImage().getScaledInstance(labelImg.getWidth(), labelImg.getHeight(), Image.SCALE_SMOOTH);\n }", "public LevelClear()\n\t{\n\t\ttry \n\t\t{\n\t\t\tgo = ImageIO.read(getClass().getResourceAsStream(\"/GUI/Clear.png\"));\n\t\t} catch (IOException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic String getLayout() {\n\t\treturn \"main\";\n\t}", "@Override\n\tImageIcon getImage() {\n\t\treturn img;\n\t}", "public MarbleLabel(Marble m, String text){\n Image img=null;\n ImageIcon icon = null;\n if (m instanceof WhiteMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/bigliabianca.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliabianca.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof RedMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/bigliarossa.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliarossa.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof YellowMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/bigliagialla.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliagialla.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof PurpleMarble){\n //img = new Im ageIcon(new ImageIcon(\"src/main/resources/Resources/bigliaviola.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliaviola.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof BlueMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/bigliablu.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliablu.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof GreyMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/biglianera.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/biglianera.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n setHorizontalAlignment(CENTER);\n setVerticalAlignment(TOP);\n setIcon(icon);\n setText(text);\n setVerticalTextPosition(JLabel.CENTER);\n setHorizontalTextPosition(JLabel.LEFT);\n setVisible(true);\n }", "private PImage createBG() {\n\t\tPImage image = new PImage(64, 64);\n\t\timage.copy(Textures.get(\"gui.box_black_red_tl\"), 0, 0, 16, 16, 0, 0, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_tm\"), 0, 0, 16, 16, 16, 0, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_tm\"), 0, 0, 16, 16, 32, 0, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_tr\"), 0, 0, 16, 16, 48, 0, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_ml\"), 0, 0, 16, 16, 0, 16, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_mm\"), 0, 0, 16, 16, 16, 16, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_mm\"), 0, 0, 16, 16, 32, 16, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_mr\"), 0, 0, 16, 16, 48, 16, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_ml\"), 0, 0, 16, 16, 0, 32, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_mm\"), 0, 0, 16, 16, 16, 32, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_mm\"), 0, 0, 16, 16, 32, 32, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_mr\"), 0, 0, 16, 16, 48, 32, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_bl\"), 0, 0, 16, 16, 0, 48, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_bm\"), 0, 0, 16, 16, 16, 48, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_bm\"), 0, 0, 16, 16, 32, 48, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_br\"), 0, 0, 16, 16, 48, 48, 16, 16);\n\t\treturn image;\t\t\n\t}", "public String getImage() { return image; }", "public SingleGoodPanel() {\n\t\tinitWidget(uiBinder.createAndBindUi(this));\n\t\t\n\t\tthis.image.getElement().setAttribute(\"align\", \"right\");\n\t\tthis.description.add(this.image);\n\t\tedit.addClickHandler(closeHandler);\n\t\tdelete.addClickHandler(closeHandler);\n\t\tclose.addClickHandler(closeHandler);\n\t}", "@Override\n\tpublic String display() {\n\t\treturn \"View/hoverPotion.png\";\n\t}", "public GameDisplay(World world) {\r\n\t\tthis.world = world;\r\n\t\t//Initialise image variables and load image files (files loaded here \r\n\t\t//rather than dynamically when needed because it would require a large \r\n\t\t//amount of loading/unloading image files which would slow the game \r\n\t\t//down when running\r\n\t\tthis.grassTile = loadImage(\"resources/images/tiles/grass_tile.png\");\r\n\t\tthis.blackAnthillTile \r\n\t\t\t\t= loadImage(\"resources/images/tiles/black_anthill.png\");\r\n\t\tthis.redAnthillTile \r\n\t\t\t\t= loadImage(\"resources/images/tiles/red_anthill.png\");\r\n\t\tthis.rockTile = loadImage(\"resources/images/tiles/rock_tile.png\");\r\n\t\t\r\n\t\t//Some entities have different images depending on how zoomed in the\r\n\t\t//display is, i.e. ants and food. In these cases the different scaled\r\n\t\t//images are held in array, accessed via constants\r\n\t\tthis.blackAnt = new PImage[3];\r\n\t\tthis.blackAnt[SMALL_IMAGE] \r\n\t\t = loadImage(\"resources/images/ants/black_ant_small.png\");\r\n\t\tthis.blackAnt[LARGE_IMAGE] \r\n\t\t = loadImage(\"resources/images/ants/black_ant_large.png\");\r\n\t\tthis.blackAntFood = \r\n\t\t\t\tloadImage(\"resources/images/ants/black_ant_food_large.png\");\r\n\t\t\r\n\t\tthis.redAnt = new PImage[3];\r\n\t\tthis.redAnt[SMALL_IMAGE] \r\n\t\t = loadImage(\"resources/images/ants/red_ant_small.png\");\r\n\t\tthis.redAnt[LARGE_IMAGE] \r\n\t\t = loadImage(\"resources/images/ants/red_ant_large.png\");\r\n\t\tthis.redAntFood =\r\n\t\t\t\tloadImage(\"resources/images/ants/red_ant_food_large.png\");\r\n\t\t\r\n\t\tthis.foodSmall = loadImage(\"resources/images/food/food_small.png\");\r\n\t\tthis.foodMedium = loadImage(\"resources/images/food/food_medium.png\");\r\n\t\tthis.foodLarge = new PImage[9];\r\n\t\tthis.foodLarge[ONE_FOOD] \r\n\t\t = loadImage(\"resources/images/food/food_one_large.png\");\r\n\t\tthis.foodLarge[TWO_FOOD] \r\n\t\t = loadImage(\"resources/images/food/food_two_large.png\");\r\n\t\tthis.foodLarge[THREE_FOOD] \r\n\t\t = loadImage(\"resources/images/food/food_three_large.png\");\r\n\t\tthis.foodLarge[FOUR_FOOD] \r\n\t\t = loadImage(\"resources/images/food/food_four_large.png\");\r\n\t\tthis.foodLarge[FIVE_FOOD] \r\n\t\t = loadImage(\"resources/images/food/food_five_large.png\");\r\n\t\tthis.foodLarge[SIX_FOOD] \r\n\t\t = loadImage(\"resources/images/food/food_six_large.png\");\r\n\t\tthis.foodLarge[SEVEN_FOOD] \r\n\t\t = loadImage(\"resources/images/food/food_seven_large.png\");\r\n\t\tthis.foodLarge[EIGHT_FOOD] \r\n\t\t = loadImage(\"resources/images/food/food_eight_large.png\");\r\n\t\tthis.foodLarge[NINE_FOOD] = \r\n\t\t\t\tloadImage(\"resources/images/food/food_nine_large.png\");\r\n\t\t\r\n\t\tthis.blackMarker \r\n\t\t\t\t= loadImage(\"resources/images/markers/chemical_black.png\");\r\n\t\tthis.redMarker \r\n\t\t\t\t= loadImage(\"resources/images/markers/chemical_red.png\");\r\n\t\t\r\n\t\t//Load font\r\n\t\tthis.courierFont = loadFont(\"resources/fonts/courier_new_font.vlw\");\r\n\t}", "private void setUpBackGround() {\n try {\n setBackGround(new Image(new FileInputStream(\"images/backgrounds/battlemap0_background@2x.png\")));\n } catch (FileNotFoundException ignored) {\n }\n\n\n try {\n ImageView middleGround = new ImageView(new Image(new FileInputStream(\"images/gameIcons/middleGround/battlemap0_middleground.png\")));\n middleGround.setFitHeight(windowHeight);\n middleGround.setFitWidth(windowWidth);\n addComponent(new NodeWrapper(middleGround));\n } catch (FileNotFoundException ignored) {\n }\n\n try {\n ImageView foreGround = new ImageView(new Image(new FileInputStream(\"images/foregrounds/battlemap0_foreground_002@2x.png\")));\n foreGround.setPreserveRatio(true);\n foreGround.setFitWidth(windowHeight / 3);\n foreGround.relocate(windowWidth - foreGround.getFitWidth(), windowHeight - foreGround.getFitWidth() * foreGround.getImage().getHeight() / foreGround.getImage().getWidth());\n addComponent(new NodeWrapper(foreGround));\n } catch (FileNotFoundException ignored) {\n }\n }", "public Image getEtat() {\n final BufferedImage image = new BufferedImage(GUIModel.SCREEN_SIZE.width / 4, GUIModel.SCREEN_SIZE.height / 6, BufferedImage.TYPE_INT_ARGB);\n final Graphics2D g = image.createGraphics();\n g.setColor(Color.black);\n //g.drawRect(0, 0, image.getWidth(), image.getHeight());\n g.drawString(\"Age : \" + tamagoStats.getAge(), 0, 10);\n g.drawString(\"Faim : \" + tamagoStats.getFaim() + \"/\" + TamagoStats.FAIM_MAX, 0, 30);\n g.drawString(\"Fatigue : \" + tamagoStats.getFatigue() + \"/\" + TamagoStats.FATIGUE_MAX, 0, 50);\n g.drawString(\"Humeur : \" + tamagoStats.getHumeur() + \"/\" + TamagoStats.HUMEUR_MAX, 100, 10);\n g.drawString(\"Poids : \" + tamagoStats.getPoids() + \"/\" + TamagoStats.HUMEUR_MAX, 100, 30);\n g.drawString(\"Saleté : \" + tamagoStats.getSale() + \"/\" + TamagoStats.SALE_MAX, 100, 50);\n g.drawString(\"*Retour*\", 50, 70);\n g.dispose();\n return image;\n }", "public void addToGameRoot(){\n Main.getRootPlayGround().getChildren().add(imageView);\n }", "@Override\n\tprotected BufferedImage getButtonImage(ArrayList<Double> phenotype, int width, int height,\n\t\t\tdouble[] inputMultipliers) {\n\t\tdouble[] doubleArray = ArrayUtil.doubleArrayFromList(phenotype);\n\t\tList<List<Integer>> level = levelListRepresentation(doubleArray);\n\t\t//sets the height and width for the rendered level to be placed on the button \n\t\tint width1 = LodeRunnerRenderUtil.RENDERED_IMAGE_WIDTH;\n\t\tint height1 = LodeRunnerRenderUtil.RENDERED_IMAGE_HEIGHT;\n\t\tBufferedImage image = null;\n\t\ttry {\n\t\t\t//if we are using the mapping with 7 tiles, other wise use 6 tiles \n\t\t\t// ACTUALLY: We can have extra unused tiles in the image array. Easier to have one method that keeps them all around\n\t\t\t//\t\t\tif(Parameters.parameters.booleanParameter(\"lodeRunnerDistinguishesSolidAndDiggableGround\")){\n\t\t\tList<Point> emptySpaces = LodeRunnerGANUtil.fillEmptyList(level);\n\t\t\tRandom rand = new Random(Double.doubleToLongBits(doubleArray[0]));\n\t\t\tLodeRunnerGANUtil.setSpawn(level, emptySpaces, rand);\n\t\t\tif(Parameters.parameters.booleanParameter(\"showInteractiveLodeRunnerSolutionPaths\")) {\n\t\t\t\tList<List<Integer>> originalLevel = ListUtil.deepCopyListOfLists(level);\n\t\t\t\tLodeRunnerState start = new LodeRunnerState(level);\n\t\t\t\t//\t\t\t\tSystem.out.println(level);\n\t\t\t\tSearch<LodeRunnerAction,LodeRunnerState> search = new AStarSearch<>(LodeRunnerState.manhattanToFarthestGold);\n\t\t\t\tHashSet<LodeRunnerState> mostRecentVisited = null;\n\t\t\t\tArrayList<LodeRunnerAction> actionSequence = null;\n\t\t\t\ttry {\n\t\t\t\t\t//tries to find a solution path to solve the level, tries as many time as specified by the last int parameter \n\t\t\t\t\t//represented by red x's in the visualization \n\t\t\t\t\tif(Parameters.parameters.integerParameter(\"interactiveLodeRunnerPathType\") == PATH_TYPE_ASTAR) {\n\t\t\t\t\t\t//\t\t\t\t\t\tSystem.out.println(level);\n\t\t\t\t\t\tactionSequence = ((AStarSearch<LodeRunnerAction, LodeRunnerState>) search).search(start, true, Parameters.parameters.integerParameter(\"aStarSearchBudget\"));\n\t\t\t\t\t} else if(Parameters.parameters.integerParameter(\"interactiveLodeRunnerPathType\") == PATH_TYPE_TSP){\n\t\t\t\t\t\tPair<ArrayList<LodeRunnerAction>, HashSet<LodeRunnerState>> tspInfo = LodeRunnerTSPUtil.getFullActionSequenceAndVisitedStatesTSPGreedySolution(originalLevel);\n\t\t\t\t\t\tactionSequence = tspInfo.t1;\n\t\t\t\t\t\tmostRecentVisited = tspInfo.t2;\n\t\t\t\t\t\t//System.out.println(\"actionSequence: \"+ actionSequence);\n\t\t\t\t\t\t//System.out.println(\"mostRecentVisited: \"+mostRecentVisited);\n\t\t\t\t\t} \n\t\t\t\t\telse throw new IllegalArgumentException(\"Parameter is not either 1 or 0\");\n\t\t\t\t} catch(IllegalStateException e) {\n\t\t\t\t\tSystem.out.println(\"search exceeded computation budget\");\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t} catch(OutOfMemoryError e) {\n\t\t\t\t\tSystem.out.println(\"search ran out of memory\");\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t} finally {\n\t\t\t\t\t// Even if search fails, still try to get visited states.\n\t\t\t\t\t// Need this here because A* fails with Exception\n\t\t\t\t\tif(Parameters.parameters.integerParameter(\"interactiveLodeRunnerPathType\") == PATH_TYPE_ASTAR) {\n\t\t\t\t\t\t//get all of the visited states, all of the x's are in this set but the white ones are not part of solution path \n\t\t\t\t\t\tmostRecentVisited = ((AStarSearch<LodeRunnerAction, LodeRunnerState>) search).getVisited();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\t//visualizes the points visited with red and whit x's\n\t\t\t\t\timage = LodeRunnerState.vizualizePath(level,mostRecentVisited,actionSequence,start);\n\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.out.println(\"Image could not be displayed\");\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(Parameters.parameters.booleanParameter(\"showInteractiveLodeRunnerIceCreamYouVisualization\")) {\n\t\t\t\tBufferedImage[] iceCreamYouImages = LodeRunnerRenderUtil.loadIceCreamYouTiles(LodeRunnerRenderUtil.ICE_CREAM_YOU_TILE_PATH);\n\t\t\t\timage = LodeRunnerRenderUtil.createIceCreamYouImage(level, LodeRunnerRenderUtil.ICE_CREAM_YOU_IMAGE_WIDTH, LodeRunnerRenderUtil.ICE_CREAM_YOU_IMAGE_HEIGHT, iceCreamYouImages);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tBufferedImage[] images = LodeRunnerRenderUtil.loadImagesNoSpawnTwoGround(LodeRunnerRenderUtil.LODE_RUNNER_TILE_PATH); //all tiles \n\t\t\t\timage = LodeRunnerRenderUtil.createBufferedImage(level,width1,height1, images);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Image could not be displayed\");\n\t\t}\n\t\treturn image;\n\t}", "public WorldImage draw() {\n return new OverlayImage(\n this.tree.draw(),\n new LineImage(new Posn((int) this.deltaX(), (int) this.deltaY()), Color.RED)\n .movePinhole(-this.deltaX() / 2, -this.deltaY() / 2)).movePinhole(this.deltaX(),\n this.deltaY());\n }", "public EditorPane() {\r\n\t\tsuper(true);\r\n\t\tsetPreferredSize(new Dimension(800, 600));\r\n\t\tImageIcon ii = new ImageIcon(this.getClass().getResource(\"map2.png\"));\r\n\t\timg = ii.getImage();\r\n\r\n\t\taddMouseListener(this);\r\n\t\tsetFocusable(true);\r\n\t\trequestFocus();\r\n\t}", "public void addImg(){\n // Add other bg images\n Image board = new Image(\"sample/img/board.jpg\");\n ImageView boardImg = new ImageView();\n boardImg.setImage(board);\n boardImg.setFitHeight((tileSize* dimension)+ (tileSize*2) );\n boardImg.setFitWidth( (tileSize* dimension)+ (tileSize*2) );\n\n Tile infoTile = new Tile(getTileSize(), getTileSize()*7);\n infoTile.setTranslateX(getTileSize()*3);\n infoTile.setTranslateY(getTileSize()*6);\n\n tileGroup.getChildren().addAll(boardImg, infoTile);\n\n }", "public void fetchBurglaryBell() {\n\t\tburglaryBellUrl = ClassLoader.getSystemClassLoader().getResource(\n\t\t\t\t\"res/bell1.png\");\n\t\t// file path is read to the buffered image\n\t\ttry {\n\t\t\tburglaryBellIcon = ImageIO.read(burglaryBellUrl);\n\t\t} catch (IOException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// buffered image is scaled\n\t\tburglaryBellScaledImg = burglaryBellIcon.getScaledInstance(25, 25,\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH);\n\t}", "public ImageIcon image() {\n return image;\n }", "@Override\n protected void initGame() {\n\n// entityBuilder()\n// .view(new Rectangle(64, 64, Color.BLUE))\n// .buildAndAttach();\n//\n// entityBuilder()\n// .at(getAppWidth() - 64, getAppHeight() - 64)\n// .view(new Rectangle(64, 64, Color.BLUE))\n// .buildAndAttach();\n//\n// entityBuilder()\n// .at(0, getAppHeight() / 2 - 32)\n// .view(new Rectangle(64, 64, Color.BLUE))\n// .with(new ProjectileComponent(new Point2D(1, 0), 150))\n// .buildAndAttach();\n }", "public ImageIcon getImage() {\n\t\treturn pigsty;\n\t}", "@Override\n\tpublic void pintar() {\n\t\n\t\tapp.image(water, this.px, this.py);\n\t\t\n\t}", "public FinalProject() {\n initComponents();\n iconImage();\n }", "public abstract void overlayGUI(ImageRepresentation[][] mainImRepMatrix);", "private void setup() {\n setPreferredSize(DEFAULT_SIZE);\n setBackground(Color.WHITE);\n addComponentsTopane();\n \n File f = new File(\"icons/title.png\");\n try {\n myImage = ImageIO.read(f);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public zombie_bg()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1010,900, 1); \n setPaintOrder(ScoreBoard.class, player.class, zomb_gen.class, options.class);\n populate();\n \n }", "@Nullable\n final public String getMainImageUrl() {\n return mMainImageUrl;\n }", "public instructionButton()\n {\n getImage().scale(getImage().getWidth()/10, getImage().getHeight()/10);\n }", "public void drawImage()\n {\n imageMode(CORNERS);\n //image(grayImgToFit, firstCellPosition[0], firstCellPosition[1]);\n image(canvas, firstCellPosition[0], firstCellPosition[1]);\n //image(tileMiniaturesV[0],10,250);\n //if(avaragedImgs.length > 4)\n // image(avaragedImgs[3],200,200);\n //getTileIntensityAtIndex(15,15);\n //println(tiles[7].getEndBrightness());\n \n }", "public void initialize() {\n\t\tImageIcon bg = new ImageIcon(\"bg.png\");\n\t\tBackground = (bg.getImage().getScaledInstance(bg.getIconWidth(), bg.getIconHeight(), Image.SCALE_DEFAULT));\n\t\tImageIcon[] in1 = new ImageIcon[12];\n\t\tin1[0] = new ImageIcon(\"Hero1 Normal.png\");\n\t\tin1[1] = new ImageIcon(\"20ed.png\");\n\t\tin1[2] = new ImageIcon(\"50ed.png\");\n\t\tin1[3] = new ImageIcon(\"100ed.png\");\n\t\tin1[4] = new ImageIcon(\"200ed.png\");\n\t\tin1[5] = new ImageIcon(\"500ed.png\");\n\t\tin1[6] = new ImageIcon(\"Hero1 Att200.png\");\n\t\tin1[7] = new ImageIcon(\"Hero1 Att500.png\");\n\t\tin1[8] = new ImageIcon(\"Hero1 Defence01.png\");\n\t\tin1[9] = new ImageIcon(\"Hero1Defence02.png\");\n\t\tin1[10] = new ImageIcon(\"Hero1 to fire.png\");\n\t\tin1[11] = new ImageIcon(\"Hero1 die.png\");\n\t\tImageIcon[] in2 = new ImageIcon[12];\n\t\tin2[0] = new ImageIcon(\"Hero02.png\");\n\t\tin2[1] = new ImageIcon(\"20ed02.png\");\n\t\tin2[2] = new ImageIcon(\"50ed02.png\");\n\t\tin2[3] = new ImageIcon(\"100ed02.png\");\n\t\tin2[4] = new ImageIcon(\"200ed02.png\");\n\t\tin2[5] = new ImageIcon(\"500ed02.png\");\n\t\tin2[6] = new ImageIcon(\"Hero02 Attack02.png\");\n\t\tin2[7] = new ImageIcon(\"Hero02 Attack02.png\");\n\t\tin2[8] = new ImageIcon(\"Hero02 Defence.png\");\n\t\tin2[9] = new ImageIcon(\"Hero02 Defence.png\");\n\t\tin2[10] = new ImageIcon(\"Hero02 Attack01.png\");\n\t\tin2[11] = new ImageIcon(\"Hero02 Die.png\");\n\t\tImageIcon[] inBullet1 = new ImageIcon[3];\n\t\tinBullet1[0] = new ImageIcon(\"B1fire02.png\");\n\t\tinBullet1[1] = new ImageIcon(\"B1fire03.png\");\n\t\tinBullet1[2] = new ImageIcon(\"B1fire05.png\");\n\t\tImageIcon[] inBullet2 = new ImageIcon[5];\n\t\tinBullet2[0] = new ImageIcon(\"20.png\");\n\t\tinBullet2[1]= new ImageIcon(\"50.png\");\n\t\tinBullet2[2]= new ImageIcon(\"100.png\");\n\t\tinBullet2[3]= new ImageIcon(\"200.png\");\n\t\tinBullet2[4]= new ImageIcon(\"500.png\");\n\t\tHero1.settemplate(in2);\n\t\tHero2.settemplate(in1);\n\t\tBullet1.settemplate(inBullet2);\n\t\tBullet2.settemplate(inBullet1);\n\t\tHero1.setstatus(0);\n\t\tHero2.setstatus(0);\n\t}", "public Image getSemibreve();", "public Mesita()\r\n {\r\n super(\"mesa.png\"); \r\n }", "public Image getTileImage(){\n\t\treturn tileImage;\n\t}", "public String getImg_0() {\n return img_0;\n }", "public void level1() {\n\t\tlevel = new Level(1); //Create Level object, passing 1 to constructor for level 1\n\t\tplayer = new Player(100, 100); //Set player y position); //Create player object, place in middle of screen, position will later be determined by level png\n\t}", "public Lent() {\n\t\tinitComponents();\n\t\tthis.setBounds(150, 50, 1050, 650);\n\t\t//设置背景\n\t\tsetBackgroudImage();\n\t\t//窗体大小不可变\n\t\tthis.setResizable(false);\n\t\t//设置窗体图标\n\t\tToolkit tool = this.getToolkit(); //得到一个Toolkit对象\n\t\tImage myimage = tool.getImage(\"img/4.png\"); //由tool获取图像\n\t\tthis.setIconImage(myimage);\n\t}", "public flappyBird(){\n GreenfootImage image = getImage();\n image.scale(image.getWidth(),image.getHeight());\n }", "public String smallImage() {\n return this.smallImage;\n }", "public ImagePane() {\r\n\t\tsuper();\r\n\t}", "public FRMainLayout getMainLayout() {\n\t\treturn mainLayout;\n\t}", "public void createMainInventor() {\n String name = _plugin.getConfigManager().getGeneralSettingsMap().get(\"Name\");\r\n String colorizedName = _plugin.getUtilsManager().colorizeString(name);\r\n //Size of the Inventory;\r\n int inventorySize = Integer.valueOf(_plugin.getConfigManager().getGeneralSettingsMap().get(\"InventorySize\"));\r\n //Initialize Inventory;\r\n mainInventory = _plugin.getServer().createInventory(null, inventorySize, colorizedName);\r\n //Retrieve the HashMaps for the plugin;\r\n HashMap<Integer, CategoryItem> categoryInformationMap = _plugin.getConfigManager().getCategoryInformationMap();\r\n HashMap<String, String> languageInformation = _plugin.getConfigManager().getLanguageInformationMap();\r\n //Add items to Inventory;\r\n for (Integer i : categoryInformationMap.keySet()) {\r\n CategoryItem categoryItem = categoryInformationMap.get(i);\r\n ItemStack item = categoryItem.getItem();\r\n ItemMeta itemMeta = item.getItemMeta();\r\n itemMeta.setDisplayName(_plugin.getUtilsManager().colorizeString(languageInformation.get(\"CategoryName\").replace(\"%cat%\", categoryItem.getName())));\r\n List<String> lore = new ArrayList<>();\r\n lore.add(_plugin.getUtilsManager().colorizeString(categoryItem.getDescription()));\r\n item.setItemMeta(itemMeta);\r\n mainInventory.addItem(item);\r\n }\r\n }", "public EnemyGunBullet1() {\n super(DAMAGE, SPEED);\n setEnemyBullet(true);\n setShootSound(\"enemyShot.wav\");\n try {\n image = ImageIO.read(new File(\"res/images/tanks/bullets/enemyBullet1.png\"));\n }\n catch (IOException e) { }\n }", "public AdminMainScreen() {\n try{\n ImageIcon icon=new ImageIcon(getClass().getResource(\"/Adminui/ex.png\"));\n setIconImage(icon.getImage());\n }catch(Exception ex){\n \n }\n initComponents();\n setSize(1000, 600);\n setLocationRelativeTo(null);\n }", "public void renderAboutManager()\n {\n background(background);\n t = millis();\n t /= 200.0f;\n shift = -150;\n //imageMode(CENTER);\n image(createdBy,width/2-createdBy.width/2+40,20);\n //image(info,width/2-info.width/2+40,450);\n for(int i = 0; i < img.length; i++)\n {\n image(img[i],width/2+shift,height/5+sin(t-i*0.4f-1)*4);\n shift += img[i].width;\n }\n imageMode(CORNERS);\n }", "public void openImage() {\n InputStream f = Controller.class.getResourceAsStream(\"route.png\");\n img = new Image(f, mapImage.getFitWidth(), mapImage.getFitHeight(), false, true);\n h = (int) img.getHeight();\n w = (int) img.getWidth();\n pathNodes = new GraphNodeAL[h * w];\n mapImage.setImage(img);\n //makeGrayscale();\n }", "public void initialize(String level) throws IOException {\r\n\t\t//Reads image\r\n\t\tBufferedImage image;\r\n\t\tString lvl = \"src/maps/\"+level+\".png\";\r\n\t\tFile file = new File(lvl);\r\n\t\timage = ImageIO.read(file);\r\n\t\t//each index of the 2D array is made into food/wall\r\n\t\tfoodArray = new JLabel[image.getWidth()][image.getHeight()];\r\n\t\t//initialize the frame and panel\r\n\t\tframe = new JFrame();\r\n\t\tframe.addKeyListener(this);\r\n\t\tframe.setBounds(100, 100, foodArray.length *interval + 50,foodArray[0].length *interval + 80);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tpanel.setForeground(Color.BLACK);\r\n\t\tpanel.setBackground(Color.BLACK);\r\n\t\tframe.getContentPane().add(panel, BorderLayout.CENTER);\r\n\t\tpanel.setLayout(null);\r\n\t\t//add pacman to the panel\r\n\t\tpacman = new Pacman();\r\n\t\tpacmansprite.setIcon(new ImageIcon(\"src/pacman_img/RightOpened.png\"));\r\n\t\tpacmansprite.setBounds(250, 200, 25, 25);\r\n\t\tpanel.add(pacmansprite);\r\n\t\t\r\n\t\t\r\n\t\t//read map from pixel image\r\n\t\tdrawmap(readmap(image));\r\n\t\t// add ghosts \r\n\t\tg1 = new ghost(50,50,new ImageIcon(\"src/ghost_img/Ghost1.png\"),colours);\r\n\t\tg2 = new ghost(325,50,new ImageIcon(\"src/ghost_img/Ghost2.png\"),colours);\r\n\t\tg3 = new ghost(50,325,new ImageIcon(\"src/ghost_img/Ghost3.png\"),colours);\r\n\t\tpanel.add(g1.sprite);\r\n\t\tpanel.add(g2.sprite);\r\n\t\tpanel.add(g3.sprite);\r\n\t\t\r\n\t\tframe.setVisible(true);\r\n\t}", "public void defaultImageDisplay(){\n ClassLoader cl = this.getClass().getClassLoader();\n ImageIcon icon = new ImageIcon(cl.getResource(\"pictures/NewInventory/defaultPic.png\"));\n // this.finalImage = icon.getImage();\n Image img = icon.getImage().getScaledInstance(entryImage.getWidth(), entryImage.getHeight(), Image.SCALE_SMOOTH);\n entryImage.setIcon(new ImageIcon(img));\n }", "public String getImage() {\n\t\treturn image;\n\t}", "public String getImage() {\n\t\treturn image;\n\t}" ]
[ "0.63149923", "0.62216777", "0.60666203", "0.5909843", "0.5827045", "0.57924587", "0.57878137", "0.57580346", "0.57565403", "0.5754944", "0.5692558", "0.5600203", "0.5598621", "0.55940557", "0.5582502", "0.5564708", "0.55349845", "0.55054235", "0.54635245", "0.54568785", "0.54564816", "0.5454441", "0.5421197", "0.5420374", "0.5409686", "0.5402819", "0.53874946", "0.5386715", "0.5385747", "0.5382982", "0.5382393", "0.53614026", "0.5354409", "0.53511256", "0.53432405", "0.5334095", "0.53203714", "0.5312006", "0.53111506", "0.530554", "0.527949", "0.52733785", "0.5271086", "0.5267618", "0.5264496", "0.5264048", "0.52603394", "0.5246079", "0.5221718", "0.52183187", "0.52003133", "0.51889545", "0.5187078", "0.5184374", "0.5183912", "0.5180371", "0.5179177", "0.51763153", "0.5175555", "0.51683676", "0.5159381", "0.5136247", "0.5135752", "0.5129369", "0.5123201", "0.5114994", "0.51148653", "0.5113414", "0.5111274", "0.51075023", "0.5106096", "0.51028925", "0.5102464", "0.50995964", "0.50989985", "0.5098764", "0.50958896", "0.5093249", "0.50926036", "0.50905216", "0.50879544", "0.50875056", "0.5086793", "0.50862986", "0.5082615", "0.5078219", "0.5077641", "0.5068786", "0.50641686", "0.5058972", "0.5058661", "0.5058029", "0.5052966", "0.50499356", "0.50488806", "0.5033093", "0.50327885", "0.5032065", "0.5031965", "0.5031965" ]
0.6733185
0
The main emblem is an image that represents this level pack.
public void setEmblem(BufferedImage image) { if (this.mainEmblem == null) { this.mainEmblem = new ImageList(); this.mainEmblem.add((BufferedImage) UIBuilder.getImage(DEFAULT_MAIN_EMBLEM_FILE)); } else this.mainEmblem.set(0, image); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Image getEmblem() {\n\t\tif (mainEmblem == null) {\n\t\t\tthis.mainEmblem = new ImageList();\n\t\t\tthis.mainEmblem.add((BufferedImage) UIBuilder.getImage(DEFAULT_MAIN_EMBLEM_FILE));\n\t\t}\n\n\t\treturn mainEmblem.get(0);\n\t}", "public Image getLevelEmblem(int index) {\n\t\twhile (index >= levelEmblems.size())\n\t\t\tlevelEmblems.add((BufferedImage) UIBuilder.getImage(LevelPack.DEFAULT_LEVEL_EMBLEM_FILE));\n\t\treturn levelEmblems.get(index);\n\t}", "@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}", "@Override\n public String GetImagePart() {\n return \"coal\";\n }", "private Component buildMainPanel() {\r\n \tDPanel mainPanel = new DPanel();\r\n \tJLabel backGroundLabel = new JLabel(ImageUtil.getImageIcon(\"happycow.jpg\"));\r\n \tmainPanel.add(backGroundLabel);\r\n \tsetCurrentContentPane(mainPanel);\r\n \thome = mainPanel;\r\n return home;\r\n }", "@Override\n\tpublic void showContents() {\n\t\tprogram.add(background);\n\t\tprogram.add(topMatte);\n\t\tprogram.add(bottomMatte);\n\t\tprogram.add(stackLabel);\n\t\t\n\t\tprogram.add(basePurp);\n\t\tprogram.add(currPurp);\n\t\tbasePurp.sendToFront();\n\t\tfor (int i = 0; i < callStack; i++) {\n\t\t\tprogram.add(stackBricks[i]);\n\t\t}\n\n\t\tprogram.add(player.getImage());\n\t\tplayer.move(0, 0);\n\n\t\tAudioPlayer.getInstance().playSound(\"sounds\", \"LevelMusic.mp3\", true);\n\t\tif (portalLeft != null) {\n\t\t\tprogram.add(portalLeft.getImage());\n\t\t}\n\t\tif (portalRight != null) {\n\t\t\tprogram.add(portalRight.getImage());\n\t\t\tprogram.add(portalLabel);\n\t\t}\n\t\tif (next == null || next.payloadRetrieved) {\n\t\t\tprogram.add(payload.getImage());\n\t\t}\n\n\t\tArrayList<Payload> collectedPayload = player.getPayloads();\n\n\t\tprogram.add(psuedocode);\n\n\t\tfor (int i = 0; i < collectedPayload.size(); i++) {\n\t\t\tprogram.add(collectedPayload.get(i).getImage());\n\t\t\tpsuedocode.addRtnLong();\n\t\t}\n\t}", "public Level(){\n\t\tlevel_image_pattern = \"default\";\n\t\t\n\t\timages = new HashMap <String, Image>();\n\t\tpickables = new ArrayList<Pickable>();\n\t\tplayer_initial_position = new int[2];\n\t\tplayer_initial_position[0] = 0;\n\t\tplayer_initial_position[1] = 0;\n\t\t\n\t\tconfig = Config.getInstance();\n\t\t\n\t}", "public ImagePanel() {\n\t\ttry {\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigorest.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigono.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigolow.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigohigh.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigocondensation.png\").getPath())));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Bassin(){\r\n\t\tImage i = Toolkit.getDefaultToolkit().getImage(\"fondmarin.jpg\");\r\n\t\tJLabel l = new JLabel(new ImageIcon(i));\r\n\t\tl.setBounds(0, 0, 600, 600);\r\n\t\tl.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));\r\n\t\tthis.add(l,new Integer(1));\r\n\t}", "public MiniBossLevel() {\r\n super(\"background_final.png\");\r\n setStatDisplay();\r\n generateWorld(world);\r\n }", "public void startUpMain() {\r\n ImageIcon icon = new ImageIcon(\"./data/Untitled.png\");\r\n JLabel accountImage = new JLabel(icon);\r\n accountImage.setPreferredSize(new Dimension(938, 536));\r\n main.add(accountImage);\r\n playSound(\"./data/welcometolol.wav\");\r\n }", "public Cover() {\n this.setLayout(new BorderLayout());\n this.setBackground(Color.white);\n JLabel logo = new JLabel(new ImageIcon(\"res/icons/main_logo.png\"));\n this.add(logo, BorderLayout.CENTER);\n }", "MiniMapRender(MiniMap parent) {\n \t\tthis.parent = parent;\n \t\timage = parent.getImage();\n \t}", "@Override\n public void simpleInitApp() {\n setDisplayStatView(false);\n setDisplayFps(false);\n\n // just a blue box\n Box mesh = new Box(1, 1, 1);\n Geometry geom = new Geometry(\"Box\", mesh);\n Material mat = new Material(assetManager,\n \"Common/MatDefs/Misc/Unshaded.j3md\");\n mat.setColor(\"Color\", ColorRGBA.Blue);\n geom.setMaterial(mat);\n rootNode.attachChild(geom);\n\n // Display a line of text in the default font on depth layer 0\n guiFont = assetManager.loadFont(\"Interface/Fonts/Default.fnt\");\n distanceText = new BitmapText(guiFont);\n distanceText.setSize(guiFont.getCharSet().getRenderedSize());\n distanceText.move( // x/y coordinates and z = depth layer 0\n settings.getWidth() / 2 + 50,\n distanceText.getLineHeight() + 20,\n 0);\n guiNode.attachChild(distanceText);\n\n // Display a 2D image or icon on depth layer -2\n Picture frame = new Picture(\"User interface frame\");\n frame.setImage(assetManager, \"Interface/frame.png\", false);\n frame.move(settings.getWidth() / 2 - 265, 0, -2);\n frame.setWidth(530);\n frame.setHeight(10);\n guiNode.attachChild(frame);\n\n // Display a 2D image or icon on depth layer -1\n Picture logo = new Picture(\"logo\");\n logo.setImage(assetManager, \"Interface/Monkey.png\", true);\n logo.move(settings.getWidth() / 2 - 47, 2, -1);\n logo.setWidth(95);\n logo.setHeight(75);\n guiNode.attachChild(logo);\n }", "public Level()\n {\n //Initialise Tile Types\n try \n {\n //Dynamically assign texture paints\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/surface.jpg\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/rover.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/rock.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/mineral.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/target.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/warning.png\")), tile));\n } catch(FileNotFoundException fnfe) {\n System.out.println(\"ERROR: Invalid texture paint, file not found\" + fnfe);\n }\n catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "public Levels()\r\n { \r\n super(1070, 570, 1);\r\n \r\n //Add the bottom platform in the menu screen\r\n platforms = new Platforms[7]; \r\n for (int i = 0; i < platforms.length; i++)\r\n {\r\n platforms[i] = new Platforms();\r\n }\r\n bottomPlatform();\r\n\r\n //Add the Potato (player)\r\n player = new Player();\r\n addObject (player, 100, 512); \r\n\r\n setBackground(\"menu.png\");\r\n }", "private AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\n\t\t// Setzt die Hintergrundfarbe auf Grün\n\t\tmainLayout.addStyleName(\"backgroundErfassung\");\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"100%\");\n\n\t\treturn mainLayout;\n\t}", "public void setLevelEmblem(int index, BufferedImage img) {\n\t\tlevelEmblems.set(index, img);\n\t}", "public void Boom()\r\n {\r\n image1 = new GreenfootImage(\"Explosion1.png\");\r\n image2 = new GreenfootImage(\"Explosion2.png\");\r\n image3 = new GreenfootImage(\"Explosion3.png\");\r\n image4 = new GreenfootImage(\"Explosion4.png\");\r\n image5 = new GreenfootImage(\"Explosion5.png\");\r\n image6 = new GreenfootImage(\"Explosion6.png\");\r\n setImage(image1);\r\n\r\n }", "VirtualMachineExtensionImageInner innerModel();", "public View getGraphic()\n{\n // Get image for file\n //Image img = _type==FileType.PACKAGE_DIR? Package : ViewUtils.getFileIconImage(_file);\n Image img = ViewUtils.getFileIconImage(_file);\n View grf = new ImageView(img); grf.setPrefSize(18,18);\n \n // If error/warning add Error/Warning badge as composite icon\n /*BuildIssue.Kind status = _proj!=null? _proj.getRootProject().getBuildIssues().getBuildStatus(_file) : null;\n if(status!=null) {\n Image badge = status==BuildIssue.Kind.Error? ErrorBadge : WarningBadge;\n ImageView bview = new ImageView(badge); bview.setLean(Pos.BOTTOM_LEFT);\n StackView spane = new StackView(); spane.setChildren(grf, bview); grf = spane;\n }*/\n \n // Return node\n return grf;\n}", "public void loadLevel(BufferedImage image) {\n\n\t\tif (stage == 1) {\n\t\t\tlevelLoader.loadLevel(image, ssTiles, ssPlayer, ssMonster, ssKeys);\n\t\t}\n\n\t\t/*\n\t\t * System.out.println(\"Hello from loadLevel\");\n\t\t * \n\t\t * \n\t\t * int w = image.getWidth();\n\t\t * int h = image.getHeight();\n\t\t * \n\t\t * \n\t\t * for(int xx = 0; xx < w; xx++) {\n\t\t * for (int yy = 0; yy < h; yy++) {\n\t\t * int pixel = image.getRGB(xx,yy);\n\t\t * int red = (pixel >> 16 ) & 0xff;\n\t\t * int green = (pixel >> 8) & 0xff;\n\t\t * int blue = (pixel) & 0xff;\n\t\t * //System.out.println(\"at x\" + xx + \" and y \"+ yy);\n\t\t * \n\t\t * \n\t\t * //if a pixel in the picture is red we render it as a block.\n\t\t * if(red == 255) {\n\t\t * handler.addObject(new Block(xx*32, yy*32, ID.Block,ssTiles));\n\t\t * }\n\t\t * \n\t\t * //if a pixel in the picture is blue, we render it as a player.\n\t\t * if(blue == 255 && green == 0) {\n\t\t * System.out.println(\"player object added\");\n\t\t * handler.addObject(new Wizard(xx*32,yy*32,ID.Player,handler,this,ssPlayer));\n\t\t * }\n\t\t * \n\t\t * if(green == 255 && blue == 0) {\n\t\t * \n\t\t * \n\t\t * handler.addObject(new Enemy(xx*32, yy*32, ID.Enemy, handler,ssMonster));\n\t\t * enemies++;\n\t\t * System.out.println(\"added enemy, total enemies: \" + enemies);\n\t\t * }\n\t\t * \n\t\t * \n\t\t * if(green == 255 && blue == 255) {\n\t\t * System.out.println(\"crate found\");\n\t\t * handler.addObject(new Crate(xx*32, yy*32, ID.Crate,ssTiles));\n\t\t * }\n\t\t * \n\t\t * //System.out.println(\"There is \" + handler.object.size() +\n\t\t * \" objects loaded! \");\n\t\t * \n\t\t * }\n\t\t * \n\t\t * }\n\t\t */\n\n\t}", "public java.lang.String getEatImage() {\n return localEatImage;\n }", "public Wall()\n {\n GreenfootImage img = this.getImage();\n img.scale(64, 64);\n \n }", "@Override\n public void Run() {\n\n DrawSprite(\"pic\", 10, \"sprite/ch1\", new Rect(0, 100, 200, 300)).Show();\n DrawSprite(\"pic\", 11, \"sprite/ch2\", new Rect(100, 100, 300, 300)).Show();\n\n //자식이 부모보다 위에 있을수도 있고 밑에있을 수도 있어야됨.\n\n\n\n\n //Level로 설정하자\n //Level(0)Root\n //Level(1)그아래오브젝트...\n //같은레벨끼리 경쟁\n /*\n\n Level(0)기준\n -(아래로)\n\n */\n }", "public Group renderLevel() {\n\t\tGroup levelGroup = new Group();\n\t\tNode background = renderBackground(level);\n\t\tlevelGroup.getChildren().add(background);\n\t\tList<Sprite> textSpriteList = level.sprites().stream().filter(sprite -> sprite.isText()).collect(Collectors.toList());\n\t\ttextSpriteList.stream().forEach(textSprite -> levelGroup.getChildren().add(renderText(textSprite)));\n\t\tList<Sprite> imageSpriteList = level.sprites().stream().filter((sprite -> !sprite.isText())).collect(Collectors.toList());\n\t\timageSpriteList.stream().filter(sprite -> sprite.isActive()).forEach(sprite -> levelGroup.getChildren().add(renderSprite(sprite)));\n\t\treturn levelGroup;\n\t}", "@Override\n\tpublic Image getImage() {\n\t\treturn img;\n\t}", "public ImageView getMainAvatar() {\n\t\treturn mainAvatar;\n\t}", "public DumbEnemy(){\n setImage(new GreenfootImage(SPRITE_W,SPRITE_H));\n }", "public void newlevel() {\n\t\tblack = new Background(COURT_WIDTH, COURT_HEIGHT); // reset background\n\t\tcannon = new Cannon(COURT_WIDTH, COURT_HEIGHT); // reset cannon\n\t\tdeadcannon = null;\n\t\tbullet = null;\n\t\tshot1 = null;\n\t\tshot2 = null;\n\t\t// reset top row\n\t\tfor (int i = 0; i < alien1.length; i++) {\n\t\t\talien1[i] = new Alien(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien1[i].pos_x = alien1[i].pos_x + 30*i;\n\t\t\talien1[i].v_x = level + alien1[i].v_x;\n\t\t}\n\t\t// reset second row\n\t\tfor (int i = 0; i < alien2.length; i++) {\n\t\t\talien2[i] = new Alien2(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien2[i].pos_x = alien2[i].pos_x + 30*i;\n\t\t\talien2[i].v_x = level + alien2[i].v_x;\n\t\t}\n\t\t// reset third row\n\t\tfor (int i = 0; i < alien3.length; i++) {\n\t\t\talien3[i] = new Alien3(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien3[i].pos_x = alien3[i].pos_x + 30*i;\n\t\t\talien3[i].v_x = level + alien3[i].v_x;\n\t\t}\n\t}", "@Override\n\tpublic void showContents() {\n\t\tprogram.add(Background);\n\t\tprogram.add(lvl1);\n\t\tprogram.add(lvl2);\n\t\tprogram.add(lvl3);\n\t\tprogram.add(Back);\n\n\t}", "public Image getExplosion(){\n\t\treturn explosion;\n\t}", "public RendererArbol() {\n setLeafIcon(new ImageIcon(\"src/vista/images/icons8_JSON_15px_2.png\"));\n setOpenIcon(new ImageIcon(\"src/vista/images/icons8_Open_18px.png\"));\n setClosedIcon(new ImageIcon(\"src/vista/images/icons8_Folder_18px.png\"));\n }", "@Override\n\tpublic Image getImage() {\n\t\treturn image;\n\t}", "public void makeImage() {\n image = new GreenfootImage(\"highscoreb.png\");\n \n image.setFont(new Font(\"Arial\", false, false, 50));\n image.setColor(Color.WHITE);\n image.setFont(new Font(\"Arial\", false, false, 25));\n renderer.drawShadowString(image, name, 25, getHeight() - 50);\n setBackground(image);\n }", "public Image getFlat();", "private void imageInitiation() {\n ImageIcon doggyImage = new ImageIcon(\"./data/dog1.jpg\");\n JLabel dogImage = new JLabel(doggyImage);\n dogImage.setSize(700,500);\n this.add(dogImage);\n }", "public MenuDestinosOriente() {\n initComponents();\n setLocationRelativeTo(null);\n this.setExtendedState(MAXIMIZED_BOTH);\n String master = System.getProperty(\"user.dir\") + \"/src/imgpoe/menu.png\";\n System.out.println(\"master\" + master);\n this.setContentPane(new JLabel(new ImageIcon(master)));//añade una\n }", "public MainView() {\n initComponents();\n setTitle(\"Gerador de provas aleatórias\");\n sair_menu.addActionListener((ActionEvent e) -> {\n this.dispose();\n });\n\n try {\n InputStream imgStream = getClass()\n .getResourceAsStream(\"/gerador/de/provas/aleatorias/view/imgs/Elegant_circle-icons-78.png\");\n setIconImage(ImageIO.read(imgStream));\n } catch (IOException ex) {\n Logger.getLogger(MainView.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }", "public MarbleLabel(Marble m){\n Image img=null;\n ImageIcon icon = null;\n if (m instanceof WhiteMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/bigliabianca.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliabianca.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof RedMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/bigliarossa.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliarossa.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof YellowMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/bigliagialla.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliagialla.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof PurpleMarble){\n //img = new Im ageIcon(new ImageIcon(\"src/main/resources/Resources/bigliaviola.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliaviola.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof BlueMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/bigliablu.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliablu.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof GreyMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/biglianera.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/biglianera.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n setHorizontalAlignment(CENTER);\n setVerticalAlignment(TOP);\n setIcon(icon);\n setVisible(true);\n }", "ImageViewTouchBase getMainImage();", "private void setUpFlat() {\n Image flat = new Image(this.getClass().getResourceAsStream(\"Flat.png\"));\n _accidentalImage.setImage(flat);\n _accidentalImage.setFitHeight(25);\n _accidentalImage.setFitWidth(12.5);\n _accidentalImage.setX(_noteHead.getCenterX() + Constants.FLAT_X_OFFSET);\n _accidentalImage.setY(_noteHead.getCenterY() + Constants.ACCIDENTAL_Y_OFFSET);\n }", "public GameView() {\n this.astronautaImage = new Image(getClass().getResourceAsStream(\"/res/astronauta.gif\"));\n this.ovniImage = new Image(getClass().getResourceAsStream(\"/res/ovni1.png\"));\n this.ovni2Image = new Image(getClass().getResourceAsStream(\"/res/ovni1.png\"));\n this.ovnidestructibleImage = new Image(getClass().getResourceAsStream(\"/res/ovnidestructible.png\"));\n this.wallImage = new Image(getClass().getResourceAsStream(\"/res/wall.png\"));\n this.pistolaImage = new Image(getClass().getResourceAsStream(\"/res/pistola.png\"));\n this.alienEggImage = new Image(getClass().getResourceAsStream(\"/res/alienEgg.png\"));\n }", "public ImageIcon displayItem(Player owner){\n\t\treturn image;\n\t}", "public MainSlot_JPanel(){\n //load background image\n try {\n Image img = ImageIO.read(getClass()\n .getResource(\"./graphics/slot_BackGround.jpg\"));\n backgroundImg = img\n .getScaledInstance(800,580,java.awt.Image.SCALE_SMOOTH );\n } catch(IOException e) {\n e.printStackTrace();\n }\n }", "public PrologueStart(int num){\n\t\t\n\timg = getImage(\"/textures/sheets/LookingBack\" +num +\".png\");\n\tthis.setPreferredSize(new Dimension(img.getWidth() - 15 , img.getHeight()-15));\n\t}", "public Background(GameLevel w, int width, int height) {\n super(w, 800, 800);\n this.world = w;\n //this.gameLevel = gameLevel;\n try {\n //All images being read from their respective image files and being assigned to variables.\n bg = ImageIO.read(new File(\"data/bg.png\"));\n bg2 = ImageIO.read(new File(\"data/bg2.png\"));\n bg3 = ImageIO.read(new File(\"data/bg3.png\"));\n fg = ImageIO.read(new File(\"data/clouds.png\"));\n win = ImageIO.read(new File(\"data/win.jpg\"));\n dead = ImageIO.read(new File(\"data/dead.jpg\"));\n scoreBoard = ImageIO.read(new File(\"data/scoreBoard.png\"));\n bulletBillSelect = ImageIO.read(new File(\"data/GUI/billSelect.png\"));\n bulletSelect = ImageIO.read(new File(\"data/GUI/bulletSelect.png\"));\n arrow = ImageIO.read(new File(\"data/GUI/arrow.png\"));\n health = ImageIO.read(new File(\"data/GUI/health.png\"));\n black = ImageIO.read(new File(\"data/GUI/black.jpg\"));\n\n\n } catch (IOException ex) {\n System.out.println(\"System Error\");\n }\n }", "@Override\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\tsplash.setVisible(false);\n\t\t\t\t\t\t\tKabasuji game = new Kabasuji();\n\t\t\t\t\t\t\tLevelSelectorView window = new LevelSelectorView(game);\n\n\t\t\t\t\t\t\t// allow controller to set up GUI based on the levels loaded by 'game'\n\t\t\t\t\t\t\tStartLevelSelectorController selectorController = new StartLevelSelectorController(window, game);\n\t\t\t\t\t\t\tselectorController.process();\n\n\t\t\t\t\t\t\t// show window\n\t\t\t\t\t\t\twindow.setVisible(true);\n\t\t\t\t\t\t\tImageIcon image = new ImageIcon(StartKabasuji.class.getResource(\"/images/heineman.jpg\"));\n\t\t\t\t\t\t\twindow.setIconImage(image.getImage().getScaledInstance(40, 40, 0));\n\t\t\t\t\t\t\tSystem.out.println(image);\t\n\t\t\t\t\t\t}", "public WorldImage draw() {\n return new OverlayImage(\n new Stem(this.leftLength, this.leftTheta, this.left).draw(),\n new Stem(this.rightLength, this.rightTheta, this.right).draw()); \n }", "public void display() {\n push();\n noStroke();\n\n // creates the Box around the menus\n fill(backgroundColor); // light grey\n rect(0, 0, sidebarWidth, height);\n\n // for loops that draws each scenes icon\n for (int i = 0; i < sceneAmount; i++) {\n\n //checks the for loop has reach the icon for the current scene\n if (i == scene) {\n push();\n\n // Draws a rectancle in the place where the icon is gonna be\n fill(chosenColor); // light blue color\n rect(0, (i * height / sceneAmount ), sidebarWidth, height / sceneAmount);\n pop();\n }\n \n\n // Draws the icons one after the others with a determined distance between them\n image(sidebarLogos[i], 0, (i * height / sceneAmount ), sidebarWidth, height / sceneAmount);\n\n // if chosen scene draws glow effect ontop\n if (i == scene) {\n image(glow, 0, (i * height / sceneAmount ), sidebarWidth, height / sceneAmount);\n }\n }\n\n // draws shadow image ontop of all the icons\n image(shadow, 0, 0);\n pop();\n }", "public void levelBuilder() {\r\n\t\t//round 1\r\n\t\tEnemy[] round1Enemy = new Enemy[1];\r\n\t\tround1Enemy[0] = new Enemy();\r\n\t\t\tround1Enemy[0].type = 0;\r\n\t\t\tround1Enemy[0].imag = (MyFrame.refFrame).client.getOtherPlayer(0).getCardLeader().getCardImage();\r\n\t\t\tround1Enemy[0].position = new vec2(157, 0); \r\n\t\t\tround1Enemy[0].size = new vec2(185, 201); //X: 0~500 Y:250 lower\r\n\t\t\tround1Enemy[0].blood = (MyFrame.refFrame).client.getOtherPlayer(0).getHp();\r\n\t\t\tround1Enemy[0].currentBlood = (MyFrame.refFrame).client.getOtherPlayer(0).getHp();\r\n\t\t\tround1Enemy[0].attackCD = 0;\r\n\t\t\tround1Enemy[0].attack = 0;\r\n\t\t\tround1Enemy[0].initialCD = 0;\r\n\t\t\tround1Enemy[0].defense = 0;\r\n\t\t\t\r\n\t\tround[0].addEnemy(round1Enemy);\r\n\t}", "public Ventana() {\n initComponents();\n \n ImageIcon imagen = new ImageIcon(Toolkit.getDefaultToolkit().getImage(\"logo.png\"));\n Image img = imagen.getImage().getScaledInstance(logo.getWidth(), logo.getHeight(), Image.SCALE_SMOOTH);\n \n logo.setIcon(new ImageIcon(img));\n \n //Image img = imagen.getImage().getScaledInstance(labelImg.getWidth(), labelImg.getHeight(), Image.SCALE_SMOOTH);\n }", "@Override\n\tImageIcon getImage() {\n\t\treturn img;\n\t}", "public LevelClear()\n\t{\n\t\ttry \n\t\t{\n\t\t\tgo = ImageIO.read(getClass().getResourceAsStream(\"/GUI/Clear.png\"));\n\t\t} catch (IOException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic String getLayout() {\n\t\treturn \"main\";\n\t}", "public MarbleLabel(Marble m, String text){\n Image img=null;\n ImageIcon icon = null;\n if (m instanceof WhiteMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/bigliabianca.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliabianca.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof RedMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/bigliarossa.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliarossa.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof YellowMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/bigliagialla.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliagialla.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof PurpleMarble){\n //img = new Im ageIcon(new ImageIcon(\"src/main/resources/Resources/bigliaviola.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliaviola.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof BlueMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/bigliablu.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliablu.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof GreyMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/biglianera.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/biglianera.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n setHorizontalAlignment(CENTER);\n setVerticalAlignment(TOP);\n setIcon(icon);\n setText(text);\n setVerticalTextPosition(JLabel.CENTER);\n setHorizontalTextPosition(JLabel.LEFT);\n setVisible(true);\n }", "private PImage createBG() {\n\t\tPImage image = new PImage(64, 64);\n\t\timage.copy(Textures.get(\"gui.box_black_red_tl\"), 0, 0, 16, 16, 0, 0, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_tm\"), 0, 0, 16, 16, 16, 0, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_tm\"), 0, 0, 16, 16, 32, 0, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_tr\"), 0, 0, 16, 16, 48, 0, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_ml\"), 0, 0, 16, 16, 0, 16, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_mm\"), 0, 0, 16, 16, 16, 16, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_mm\"), 0, 0, 16, 16, 32, 16, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_mr\"), 0, 0, 16, 16, 48, 16, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_ml\"), 0, 0, 16, 16, 0, 32, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_mm\"), 0, 0, 16, 16, 16, 32, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_mm\"), 0, 0, 16, 16, 32, 32, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_mr\"), 0, 0, 16, 16, 48, 32, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_bl\"), 0, 0, 16, 16, 0, 48, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_bm\"), 0, 0, 16, 16, 16, 48, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_bm\"), 0, 0, 16, 16, 32, 48, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_br\"), 0, 0, 16, 16, 48, 48, 16, 16);\n\t\treturn image;\t\t\n\t}", "public String getImage() { return image; }", "public SingleGoodPanel() {\n\t\tinitWidget(uiBinder.createAndBindUi(this));\n\t\t\n\t\tthis.image.getElement().setAttribute(\"align\", \"right\");\n\t\tthis.description.add(this.image);\n\t\tedit.addClickHandler(closeHandler);\n\t\tdelete.addClickHandler(closeHandler);\n\t\tclose.addClickHandler(closeHandler);\n\t}", "@Override\n\tpublic String display() {\n\t\treturn \"View/hoverPotion.png\";\n\t}", "public GameDisplay(World world) {\r\n\t\tthis.world = world;\r\n\t\t//Initialise image variables and load image files (files loaded here \r\n\t\t//rather than dynamically when needed because it would require a large \r\n\t\t//amount of loading/unloading image files which would slow the game \r\n\t\t//down when running\r\n\t\tthis.grassTile = loadImage(\"resources/images/tiles/grass_tile.png\");\r\n\t\tthis.blackAnthillTile \r\n\t\t\t\t= loadImage(\"resources/images/tiles/black_anthill.png\");\r\n\t\tthis.redAnthillTile \r\n\t\t\t\t= loadImage(\"resources/images/tiles/red_anthill.png\");\r\n\t\tthis.rockTile = loadImage(\"resources/images/tiles/rock_tile.png\");\r\n\t\t\r\n\t\t//Some entities have different images depending on how zoomed in the\r\n\t\t//display is, i.e. ants and food. In these cases the different scaled\r\n\t\t//images are held in array, accessed via constants\r\n\t\tthis.blackAnt = new PImage[3];\r\n\t\tthis.blackAnt[SMALL_IMAGE] \r\n\t\t = loadImage(\"resources/images/ants/black_ant_small.png\");\r\n\t\tthis.blackAnt[LARGE_IMAGE] \r\n\t\t = loadImage(\"resources/images/ants/black_ant_large.png\");\r\n\t\tthis.blackAntFood = \r\n\t\t\t\tloadImage(\"resources/images/ants/black_ant_food_large.png\");\r\n\t\t\r\n\t\tthis.redAnt = new PImage[3];\r\n\t\tthis.redAnt[SMALL_IMAGE] \r\n\t\t = loadImage(\"resources/images/ants/red_ant_small.png\");\r\n\t\tthis.redAnt[LARGE_IMAGE] \r\n\t\t = loadImage(\"resources/images/ants/red_ant_large.png\");\r\n\t\tthis.redAntFood =\r\n\t\t\t\tloadImage(\"resources/images/ants/red_ant_food_large.png\");\r\n\t\t\r\n\t\tthis.foodSmall = loadImage(\"resources/images/food/food_small.png\");\r\n\t\tthis.foodMedium = loadImage(\"resources/images/food/food_medium.png\");\r\n\t\tthis.foodLarge = new PImage[9];\r\n\t\tthis.foodLarge[ONE_FOOD] \r\n\t\t = loadImage(\"resources/images/food/food_one_large.png\");\r\n\t\tthis.foodLarge[TWO_FOOD] \r\n\t\t = loadImage(\"resources/images/food/food_two_large.png\");\r\n\t\tthis.foodLarge[THREE_FOOD] \r\n\t\t = loadImage(\"resources/images/food/food_three_large.png\");\r\n\t\tthis.foodLarge[FOUR_FOOD] \r\n\t\t = loadImage(\"resources/images/food/food_four_large.png\");\r\n\t\tthis.foodLarge[FIVE_FOOD] \r\n\t\t = loadImage(\"resources/images/food/food_five_large.png\");\r\n\t\tthis.foodLarge[SIX_FOOD] \r\n\t\t = loadImage(\"resources/images/food/food_six_large.png\");\r\n\t\tthis.foodLarge[SEVEN_FOOD] \r\n\t\t = loadImage(\"resources/images/food/food_seven_large.png\");\r\n\t\tthis.foodLarge[EIGHT_FOOD] \r\n\t\t = loadImage(\"resources/images/food/food_eight_large.png\");\r\n\t\tthis.foodLarge[NINE_FOOD] = \r\n\t\t\t\tloadImage(\"resources/images/food/food_nine_large.png\");\r\n\t\t\r\n\t\tthis.blackMarker \r\n\t\t\t\t= loadImage(\"resources/images/markers/chemical_black.png\");\r\n\t\tthis.redMarker \r\n\t\t\t\t= loadImage(\"resources/images/markers/chemical_red.png\");\r\n\t\t\r\n\t\t//Load font\r\n\t\tthis.courierFont = loadFont(\"resources/fonts/courier_new_font.vlw\");\r\n\t}", "public Image getEtat() {\n final BufferedImage image = new BufferedImage(GUIModel.SCREEN_SIZE.width / 4, GUIModel.SCREEN_SIZE.height / 6, BufferedImage.TYPE_INT_ARGB);\n final Graphics2D g = image.createGraphics();\n g.setColor(Color.black);\n //g.drawRect(0, 0, image.getWidth(), image.getHeight());\n g.drawString(\"Age : \" + tamagoStats.getAge(), 0, 10);\n g.drawString(\"Faim : \" + tamagoStats.getFaim() + \"/\" + TamagoStats.FAIM_MAX, 0, 30);\n g.drawString(\"Fatigue : \" + tamagoStats.getFatigue() + \"/\" + TamagoStats.FATIGUE_MAX, 0, 50);\n g.drawString(\"Humeur : \" + tamagoStats.getHumeur() + \"/\" + TamagoStats.HUMEUR_MAX, 100, 10);\n g.drawString(\"Poids : \" + tamagoStats.getPoids() + \"/\" + TamagoStats.HUMEUR_MAX, 100, 30);\n g.drawString(\"Saleté : \" + tamagoStats.getSale() + \"/\" + TamagoStats.SALE_MAX, 100, 50);\n g.drawString(\"*Retour*\", 50, 70);\n g.dispose();\n return image;\n }", "private void setUpBackGround() {\n try {\n setBackGround(new Image(new FileInputStream(\"images/backgrounds/battlemap0_background@2x.png\")));\n } catch (FileNotFoundException ignored) {\n }\n\n\n try {\n ImageView middleGround = new ImageView(new Image(new FileInputStream(\"images/gameIcons/middleGround/battlemap0_middleground.png\")));\n middleGround.setFitHeight(windowHeight);\n middleGround.setFitWidth(windowWidth);\n addComponent(new NodeWrapper(middleGround));\n } catch (FileNotFoundException ignored) {\n }\n\n try {\n ImageView foreGround = new ImageView(new Image(new FileInputStream(\"images/foregrounds/battlemap0_foreground_002@2x.png\")));\n foreGround.setPreserveRatio(true);\n foreGround.setFitWidth(windowHeight / 3);\n foreGround.relocate(windowWidth - foreGround.getFitWidth(), windowHeight - foreGround.getFitWidth() * foreGround.getImage().getHeight() / foreGround.getImage().getWidth());\n addComponent(new NodeWrapper(foreGround));\n } catch (FileNotFoundException ignored) {\n }\n }", "public void addToGameRoot(){\n Main.getRootPlayGround().getChildren().add(imageView);\n }", "@Override\n\tprotected BufferedImage getButtonImage(ArrayList<Double> phenotype, int width, int height,\n\t\t\tdouble[] inputMultipliers) {\n\t\tdouble[] doubleArray = ArrayUtil.doubleArrayFromList(phenotype);\n\t\tList<List<Integer>> level = levelListRepresentation(doubleArray);\n\t\t//sets the height and width for the rendered level to be placed on the button \n\t\tint width1 = LodeRunnerRenderUtil.RENDERED_IMAGE_WIDTH;\n\t\tint height1 = LodeRunnerRenderUtil.RENDERED_IMAGE_HEIGHT;\n\t\tBufferedImage image = null;\n\t\ttry {\n\t\t\t//if we are using the mapping with 7 tiles, other wise use 6 tiles \n\t\t\t// ACTUALLY: We can have extra unused tiles in the image array. Easier to have one method that keeps them all around\n\t\t\t//\t\t\tif(Parameters.parameters.booleanParameter(\"lodeRunnerDistinguishesSolidAndDiggableGround\")){\n\t\t\tList<Point> emptySpaces = LodeRunnerGANUtil.fillEmptyList(level);\n\t\t\tRandom rand = new Random(Double.doubleToLongBits(doubleArray[0]));\n\t\t\tLodeRunnerGANUtil.setSpawn(level, emptySpaces, rand);\n\t\t\tif(Parameters.parameters.booleanParameter(\"showInteractiveLodeRunnerSolutionPaths\")) {\n\t\t\t\tList<List<Integer>> originalLevel = ListUtil.deepCopyListOfLists(level);\n\t\t\t\tLodeRunnerState start = new LodeRunnerState(level);\n\t\t\t\t//\t\t\t\tSystem.out.println(level);\n\t\t\t\tSearch<LodeRunnerAction,LodeRunnerState> search = new AStarSearch<>(LodeRunnerState.manhattanToFarthestGold);\n\t\t\t\tHashSet<LodeRunnerState> mostRecentVisited = null;\n\t\t\t\tArrayList<LodeRunnerAction> actionSequence = null;\n\t\t\t\ttry {\n\t\t\t\t\t//tries to find a solution path to solve the level, tries as many time as specified by the last int parameter \n\t\t\t\t\t//represented by red x's in the visualization \n\t\t\t\t\tif(Parameters.parameters.integerParameter(\"interactiveLodeRunnerPathType\") == PATH_TYPE_ASTAR) {\n\t\t\t\t\t\t//\t\t\t\t\t\tSystem.out.println(level);\n\t\t\t\t\t\tactionSequence = ((AStarSearch<LodeRunnerAction, LodeRunnerState>) search).search(start, true, Parameters.parameters.integerParameter(\"aStarSearchBudget\"));\n\t\t\t\t\t} else if(Parameters.parameters.integerParameter(\"interactiveLodeRunnerPathType\") == PATH_TYPE_TSP){\n\t\t\t\t\t\tPair<ArrayList<LodeRunnerAction>, HashSet<LodeRunnerState>> tspInfo = LodeRunnerTSPUtil.getFullActionSequenceAndVisitedStatesTSPGreedySolution(originalLevel);\n\t\t\t\t\t\tactionSequence = tspInfo.t1;\n\t\t\t\t\t\tmostRecentVisited = tspInfo.t2;\n\t\t\t\t\t\t//System.out.println(\"actionSequence: \"+ actionSequence);\n\t\t\t\t\t\t//System.out.println(\"mostRecentVisited: \"+mostRecentVisited);\n\t\t\t\t\t} \n\t\t\t\t\telse throw new IllegalArgumentException(\"Parameter is not either 1 or 0\");\n\t\t\t\t} catch(IllegalStateException e) {\n\t\t\t\t\tSystem.out.println(\"search exceeded computation budget\");\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t} catch(OutOfMemoryError e) {\n\t\t\t\t\tSystem.out.println(\"search ran out of memory\");\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t} finally {\n\t\t\t\t\t// Even if search fails, still try to get visited states.\n\t\t\t\t\t// Need this here because A* fails with Exception\n\t\t\t\t\tif(Parameters.parameters.integerParameter(\"interactiveLodeRunnerPathType\") == PATH_TYPE_ASTAR) {\n\t\t\t\t\t\t//get all of the visited states, all of the x's are in this set but the white ones are not part of solution path \n\t\t\t\t\t\tmostRecentVisited = ((AStarSearch<LodeRunnerAction, LodeRunnerState>) search).getVisited();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\t//visualizes the points visited with red and whit x's\n\t\t\t\t\timage = LodeRunnerState.vizualizePath(level,mostRecentVisited,actionSequence,start);\n\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.out.println(\"Image could not be displayed\");\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(Parameters.parameters.booleanParameter(\"showInteractiveLodeRunnerIceCreamYouVisualization\")) {\n\t\t\t\tBufferedImage[] iceCreamYouImages = LodeRunnerRenderUtil.loadIceCreamYouTiles(LodeRunnerRenderUtil.ICE_CREAM_YOU_TILE_PATH);\n\t\t\t\timage = LodeRunnerRenderUtil.createIceCreamYouImage(level, LodeRunnerRenderUtil.ICE_CREAM_YOU_IMAGE_WIDTH, LodeRunnerRenderUtil.ICE_CREAM_YOU_IMAGE_HEIGHT, iceCreamYouImages);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tBufferedImage[] images = LodeRunnerRenderUtil.loadImagesNoSpawnTwoGround(LodeRunnerRenderUtil.LODE_RUNNER_TILE_PATH); //all tiles \n\t\t\t\timage = LodeRunnerRenderUtil.createBufferedImage(level,width1,height1, images);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Image could not be displayed\");\n\t\t}\n\t\treturn image;\n\t}", "public EditorPane() {\r\n\t\tsuper(true);\r\n\t\tsetPreferredSize(new Dimension(800, 600));\r\n\t\tImageIcon ii = new ImageIcon(this.getClass().getResource(\"map2.png\"));\r\n\t\timg = ii.getImage();\r\n\r\n\t\taddMouseListener(this);\r\n\t\tsetFocusable(true);\r\n\t\trequestFocus();\r\n\t}", "public WorldImage draw() {\n return new OverlayImage(\n this.tree.draw(),\n new LineImage(new Posn((int) this.deltaX(), (int) this.deltaY()), Color.RED)\n .movePinhole(-this.deltaX() / 2, -this.deltaY() / 2)).movePinhole(this.deltaX(),\n this.deltaY());\n }", "public void addImg(){\n // Add other bg images\n Image board = new Image(\"sample/img/board.jpg\");\n ImageView boardImg = new ImageView();\n boardImg.setImage(board);\n boardImg.setFitHeight((tileSize* dimension)+ (tileSize*2) );\n boardImg.setFitWidth( (tileSize* dimension)+ (tileSize*2) );\n\n Tile infoTile = new Tile(getTileSize(), getTileSize()*7);\n infoTile.setTranslateX(getTileSize()*3);\n infoTile.setTranslateY(getTileSize()*6);\n\n tileGroup.getChildren().addAll(boardImg, infoTile);\n\n }", "public void fetchBurglaryBell() {\n\t\tburglaryBellUrl = ClassLoader.getSystemClassLoader().getResource(\n\t\t\t\t\"res/bell1.png\");\n\t\t// file path is read to the buffered image\n\t\ttry {\n\t\t\tburglaryBellIcon = ImageIO.read(burglaryBellUrl);\n\t\t} catch (IOException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// buffered image is scaled\n\t\tburglaryBellScaledImg = burglaryBellIcon.getScaledInstance(25, 25,\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH);\n\t}", "public ImageIcon image() {\n return image;\n }", "public ImageIcon getImage() {\n\t\treturn pigsty;\n\t}", "@Override\n protected void initGame() {\n\n// entityBuilder()\n// .view(new Rectangle(64, 64, Color.BLUE))\n// .buildAndAttach();\n//\n// entityBuilder()\n// .at(getAppWidth() - 64, getAppHeight() - 64)\n// .view(new Rectangle(64, 64, Color.BLUE))\n// .buildAndAttach();\n//\n// entityBuilder()\n// .at(0, getAppHeight() / 2 - 32)\n// .view(new Rectangle(64, 64, Color.BLUE))\n// .with(new ProjectileComponent(new Point2D(1, 0), 150))\n// .buildAndAttach();\n }", "@Override\n\tpublic void pintar() {\n\t\n\t\tapp.image(water, this.px, this.py);\n\t\t\n\t}", "public abstract void overlayGUI(ImageRepresentation[][] mainImRepMatrix);", "public FinalProject() {\n initComponents();\n iconImage();\n }", "private void setup() {\n setPreferredSize(DEFAULT_SIZE);\n setBackground(Color.WHITE);\n addComponentsTopane();\n \n File f = new File(\"icons/title.png\");\n try {\n myImage = ImageIO.read(f);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public zombie_bg()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1010,900, 1); \n setPaintOrder(ScoreBoard.class, player.class, zomb_gen.class, options.class);\n populate();\n \n }", "public instructionButton()\n {\n getImage().scale(getImage().getWidth()/10, getImage().getHeight()/10);\n }", "@Nullable\n final public String getMainImageUrl() {\n return mMainImageUrl;\n }", "public void drawImage()\n {\n imageMode(CORNERS);\n //image(grayImgToFit, firstCellPosition[0], firstCellPosition[1]);\n image(canvas, firstCellPosition[0], firstCellPosition[1]);\n //image(tileMiniaturesV[0],10,250);\n //if(avaragedImgs.length > 4)\n // image(avaragedImgs[3],200,200);\n //getTileIntensityAtIndex(15,15);\n //println(tiles[7].getEndBrightness());\n \n }", "public Image getSemibreve();", "public Image getTileImage(){\n\t\treturn tileImage;\n\t}", "public Mesita()\r\n {\r\n super(\"mesa.png\"); \r\n }", "public void initialize() {\n\t\tImageIcon bg = new ImageIcon(\"bg.png\");\n\t\tBackground = (bg.getImage().getScaledInstance(bg.getIconWidth(), bg.getIconHeight(), Image.SCALE_DEFAULT));\n\t\tImageIcon[] in1 = new ImageIcon[12];\n\t\tin1[0] = new ImageIcon(\"Hero1 Normal.png\");\n\t\tin1[1] = new ImageIcon(\"20ed.png\");\n\t\tin1[2] = new ImageIcon(\"50ed.png\");\n\t\tin1[3] = new ImageIcon(\"100ed.png\");\n\t\tin1[4] = new ImageIcon(\"200ed.png\");\n\t\tin1[5] = new ImageIcon(\"500ed.png\");\n\t\tin1[6] = new ImageIcon(\"Hero1 Att200.png\");\n\t\tin1[7] = new ImageIcon(\"Hero1 Att500.png\");\n\t\tin1[8] = new ImageIcon(\"Hero1 Defence01.png\");\n\t\tin1[9] = new ImageIcon(\"Hero1Defence02.png\");\n\t\tin1[10] = new ImageIcon(\"Hero1 to fire.png\");\n\t\tin1[11] = new ImageIcon(\"Hero1 die.png\");\n\t\tImageIcon[] in2 = new ImageIcon[12];\n\t\tin2[0] = new ImageIcon(\"Hero02.png\");\n\t\tin2[1] = new ImageIcon(\"20ed02.png\");\n\t\tin2[2] = new ImageIcon(\"50ed02.png\");\n\t\tin2[3] = new ImageIcon(\"100ed02.png\");\n\t\tin2[4] = new ImageIcon(\"200ed02.png\");\n\t\tin2[5] = new ImageIcon(\"500ed02.png\");\n\t\tin2[6] = new ImageIcon(\"Hero02 Attack02.png\");\n\t\tin2[7] = new ImageIcon(\"Hero02 Attack02.png\");\n\t\tin2[8] = new ImageIcon(\"Hero02 Defence.png\");\n\t\tin2[9] = new ImageIcon(\"Hero02 Defence.png\");\n\t\tin2[10] = new ImageIcon(\"Hero02 Attack01.png\");\n\t\tin2[11] = new ImageIcon(\"Hero02 Die.png\");\n\t\tImageIcon[] inBullet1 = new ImageIcon[3];\n\t\tinBullet1[0] = new ImageIcon(\"B1fire02.png\");\n\t\tinBullet1[1] = new ImageIcon(\"B1fire03.png\");\n\t\tinBullet1[2] = new ImageIcon(\"B1fire05.png\");\n\t\tImageIcon[] inBullet2 = new ImageIcon[5];\n\t\tinBullet2[0] = new ImageIcon(\"20.png\");\n\t\tinBullet2[1]= new ImageIcon(\"50.png\");\n\t\tinBullet2[2]= new ImageIcon(\"100.png\");\n\t\tinBullet2[3]= new ImageIcon(\"200.png\");\n\t\tinBullet2[4]= new ImageIcon(\"500.png\");\n\t\tHero1.settemplate(in2);\n\t\tHero2.settemplate(in1);\n\t\tBullet1.settemplate(inBullet2);\n\t\tBullet2.settemplate(inBullet1);\n\t\tHero1.setstatus(0);\n\t\tHero2.setstatus(0);\n\t}", "public String getImg_0() {\n return img_0;\n }", "public Lent() {\n\t\tinitComponents();\n\t\tthis.setBounds(150, 50, 1050, 650);\n\t\t//设置背景\n\t\tsetBackgroudImage();\n\t\t//窗体大小不可变\n\t\tthis.setResizable(false);\n\t\t//设置窗体图标\n\t\tToolkit tool = this.getToolkit(); //得到一个Toolkit对象\n\t\tImage myimage = tool.getImage(\"img/4.png\"); //由tool获取图像\n\t\tthis.setIconImage(myimage);\n\t}", "public void level1() {\n\t\tlevel = new Level(1); //Create Level object, passing 1 to constructor for level 1\n\t\tplayer = new Player(100, 100); //Set player y position); //Create player object, place in middle of screen, position will later be determined by level png\n\t}", "public flappyBird(){\n GreenfootImage image = getImage();\n image.scale(image.getWidth(),image.getHeight());\n }", "public String smallImage() {\n return this.smallImage;\n }", "public ImagePane() {\r\n\t\tsuper();\r\n\t}", "public void createMainInventor() {\n String name = _plugin.getConfigManager().getGeneralSettingsMap().get(\"Name\");\r\n String colorizedName = _plugin.getUtilsManager().colorizeString(name);\r\n //Size of the Inventory;\r\n int inventorySize = Integer.valueOf(_plugin.getConfigManager().getGeneralSettingsMap().get(\"InventorySize\"));\r\n //Initialize Inventory;\r\n mainInventory = _plugin.getServer().createInventory(null, inventorySize, colorizedName);\r\n //Retrieve the HashMaps for the plugin;\r\n HashMap<Integer, CategoryItem> categoryInformationMap = _plugin.getConfigManager().getCategoryInformationMap();\r\n HashMap<String, String> languageInformation = _plugin.getConfigManager().getLanguageInformationMap();\r\n //Add items to Inventory;\r\n for (Integer i : categoryInformationMap.keySet()) {\r\n CategoryItem categoryItem = categoryInformationMap.get(i);\r\n ItemStack item = categoryItem.getItem();\r\n ItemMeta itemMeta = item.getItemMeta();\r\n itemMeta.setDisplayName(_plugin.getUtilsManager().colorizeString(languageInformation.get(\"CategoryName\").replace(\"%cat%\", categoryItem.getName())));\r\n List<String> lore = new ArrayList<>();\r\n lore.add(_plugin.getUtilsManager().colorizeString(categoryItem.getDescription()));\r\n item.setItemMeta(itemMeta);\r\n mainInventory.addItem(item);\r\n }\r\n }", "public FRMainLayout getMainLayout() {\n\t\treturn mainLayout;\n\t}", "public EnemyGunBullet1() {\n super(DAMAGE, SPEED);\n setEnemyBullet(true);\n setShootSound(\"enemyShot.wav\");\n try {\n image = ImageIO.read(new File(\"res/images/tanks/bullets/enemyBullet1.png\"));\n }\n catch (IOException e) { }\n }", "public AdminMainScreen() {\n try{\n ImageIcon icon=new ImageIcon(getClass().getResource(\"/Adminui/ex.png\"));\n setIconImage(icon.getImage());\n }catch(Exception ex){\n \n }\n initComponents();\n setSize(1000, 600);\n setLocationRelativeTo(null);\n }", "public void renderAboutManager()\n {\n background(background);\n t = millis();\n t /= 200.0f;\n shift = -150;\n //imageMode(CENTER);\n image(createdBy,width/2-createdBy.width/2+40,20);\n //image(info,width/2-info.width/2+40,450);\n for(int i = 0; i < img.length; i++)\n {\n image(img[i],width/2+shift,height/5+sin(t-i*0.4f-1)*4);\n shift += img[i].width;\n }\n imageMode(CORNERS);\n }", "public String getImage() {\n\t\treturn image;\n\t}", "public String getImage() {\n\t\treturn image;\n\t}", "public void openImage() {\n InputStream f = Controller.class.getResourceAsStream(\"route.png\");\n img = new Image(f, mapImage.getFitWidth(), mapImage.getFitHeight(), false, true);\n h = (int) img.getHeight();\n w = (int) img.getWidth();\n pathNodes = new GraphNodeAL[h * w];\n mapImage.setImage(img);\n //makeGrayscale();\n }", "public void defaultImageDisplay(){\n ClassLoader cl = this.getClass().getClassLoader();\n ImageIcon icon = new ImageIcon(cl.getResource(\"pictures/NewInventory/defaultPic.png\"));\n // this.finalImage = icon.getImage();\n Image img = icon.getImage().getScaledInstance(entryImage.getWidth(), entryImage.getHeight(), Image.SCALE_SMOOTH);\n entryImage.setIcon(new ImageIcon(img));\n }", "public void initialize(String level) throws IOException {\r\n\t\t//Reads image\r\n\t\tBufferedImage image;\r\n\t\tString lvl = \"src/maps/\"+level+\".png\";\r\n\t\tFile file = new File(lvl);\r\n\t\timage = ImageIO.read(file);\r\n\t\t//each index of the 2D array is made into food/wall\r\n\t\tfoodArray = new JLabel[image.getWidth()][image.getHeight()];\r\n\t\t//initialize the frame and panel\r\n\t\tframe = new JFrame();\r\n\t\tframe.addKeyListener(this);\r\n\t\tframe.setBounds(100, 100, foodArray.length *interval + 50,foodArray[0].length *interval + 80);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tpanel.setForeground(Color.BLACK);\r\n\t\tpanel.setBackground(Color.BLACK);\r\n\t\tframe.getContentPane().add(panel, BorderLayout.CENTER);\r\n\t\tpanel.setLayout(null);\r\n\t\t//add pacman to the panel\r\n\t\tpacman = new Pacman();\r\n\t\tpacmansprite.setIcon(new ImageIcon(\"src/pacman_img/RightOpened.png\"));\r\n\t\tpacmansprite.setBounds(250, 200, 25, 25);\r\n\t\tpanel.add(pacmansprite);\r\n\t\t\r\n\t\t\r\n\t\t//read map from pixel image\r\n\t\tdrawmap(readmap(image));\r\n\t\t// add ghosts \r\n\t\tg1 = new ghost(50,50,new ImageIcon(\"src/ghost_img/Ghost1.png\"),colours);\r\n\t\tg2 = new ghost(325,50,new ImageIcon(\"src/ghost_img/Ghost2.png\"),colours);\r\n\t\tg3 = new ghost(50,325,new ImageIcon(\"src/ghost_img/Ghost3.png\"),colours);\r\n\t\tpanel.add(g1.sprite);\r\n\t\tpanel.add(g2.sprite);\r\n\t\tpanel.add(g3.sprite);\r\n\t\t\r\n\t\tframe.setVisible(true);\r\n\t}" ]
[ "0.6734355", "0.63149494", "0.62236345", "0.6068573", "0.5909738", "0.5825777", "0.5792201", "0.5788447", "0.57574576", "0.5756964", "0.57529336", "0.5693048", "0.5598621", "0.55981994", "0.5593541", "0.5581879", "0.55628675", "0.55346334", "0.5504543", "0.54594135", "0.5458604", "0.5453674", "0.542322", "0.542031", "0.540833", "0.54024583", "0.5390905", "0.5387341", "0.5386026", "0.5381428", "0.5380749", "0.53620285", "0.53555775", "0.5354326", "0.5343525", "0.53366363", "0.5321436", "0.5312301", "0.5311356", "0.530685", "0.528132", "0.5273644", "0.5270708", "0.5270081", "0.5264856", "0.5262788", "0.5259819", "0.5246545", "0.5222059", "0.52174646", "0.5199097", "0.51904225", "0.5187462", "0.5186924", "0.5181985", "0.5181582", "0.5179987", "0.51793426", "0.5175265", "0.51693857", "0.51580644", "0.5137808", "0.51364404", "0.51293296", "0.5123474", "0.5116511", "0.51158404", "0.5114925", "0.51122797", "0.5110594", "0.5105239", "0.51049167", "0.51017356", "0.5099911", "0.5099082", "0.5098907", "0.50956583", "0.50939715", "0.5093828", "0.50916576", "0.5089616", "0.50886136", "0.5088062", "0.50868493", "0.5084703", "0.5077887", "0.50762683", "0.5069085", "0.50659084", "0.50610775", "0.5057012", "0.5056574", "0.50532496", "0.5049201", "0.50488913", "0.5034925", "0.5034925", "0.50348", "0.503324", "0.50319433" ]
0.5464302
19
A LevelPack which is locked should only be modified by Users who are identified as authors.
public boolean getLocked() { return isLocked; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DSComment(\"Package priviledge\")\n @DSBan(DSCat.DEFAULT_MODIFIER)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:56:28.357 -0500\", hash_original_method = \"E049D119A7B4A553F02CF8223BDECCF5\", hash_generated_method = \"69F031F83675ABF5D78C26020D90F3C7\")\n \n boolean holdsLock(Object object){\n \t//Formerly a native method\n \taddTaint(object.getTaint());\n \treturn getTaintBoolean();\n }", "Update withLevel(LockLevel level);", "void lock(Portal portal);", "private boolean isProtected(String level, ModifierHolder mods) {\r\n\t\treturn level.equalsIgnoreCase(\"protected\") && \r\n\t\t\t\t(mods.isProtected() || mods.isPublic());\r\n\t}", "LockLevel level();", "void setUserLocked(boolean b);", "interface WithLevel {\n /**\n * Specifies the level property: The level of the lock. Possible values are: NotSpecified, CanNotDelete,\n * ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete.\n * ReadOnly means authorized users can only read from a resource, but they can't modify or delete it..\n *\n * @param level The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly.\n * CanNotDelete means authorized users are able to read and modify the resources, but not delete.\n * ReadOnly means authorized users can only read from a resource, but they can't modify or delete it.\n * @return the next definition stage.\n */\n Update withLevel(LockLevel level);\n }", "WithCreate withLevel(LockLevel level);", "private boolean isPublic(String level, ModifierHolder mods) {\r\n\t\treturn level.equalsIgnoreCase(\"public\") && \r\n\t\t\t\tmods.isPublic();\r\n\t}", "@Override\n\tpublic void modifierUser(User c) {\n\t\t\n\t}", "@Override\n public void setLockOwner(Object lockOwner) {\n }", "@Override\n\tpublic boolean isLocked() { return true; }", "void lockGranted(LockHandle lockHandle);", "String getLockOwner();", "interface WithLevel {\n /**\n * Specifies the level property: The level of the lock. Possible values are: NotSpecified, CanNotDelete,\n * ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete.\n * ReadOnly means authorized users can only read from a resource, but they can't modify or delete it..\n *\n * @param level The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly.\n * CanNotDelete means authorized users are able to read and modify the resources, but not delete.\n * ReadOnly means authorized users can only read from a resource, but they can't modify or delete it.\n * @return the next definition stage.\n */\n WithCreate withLevel(LockLevel level);\n }", "public int overrideUnlock(EntityPlayer player) {\n return 0;\n }", "private boolean isPackage(String level, ModifierHolder mods) {\r\n\t\treturn (level.equalsIgnoreCase(\"package\") || level.equalsIgnoreCase(\"default\")) && \r\n\t\t\t\t!mods.isPrivate();\r\n\t}", "public boolean isLocked() { return RMUtils.boolValue(get(\"Locked\")); }", "public LevelPack(String name, User author, World... worlds) {\n\t\tthis.name = name;\n\n\t\tthis.transitionScript = new UserScript(\"onTransition\",\n\t\t\t\t\"--This script will be run to return an LuaInt specifying the next world to proceed to, given the current world state.\",\n\t\t\t\tSecurityLevel.AUTHOR);\n\n\t\tif (worlds.length == 0)\n\t\t\tworlds = new World[] { new World() };\n\t\tthis.levels = new WorldList();\n\t\tthis.levels.addAll(Arrays.asList(worlds));\n\t\tthis.levelIndex = 0;\n\t\tthis.levelCount = worlds.length;\n\t\tthis.levelEmblems = new ImageList();\n\t\tthis.levelTitles = new ArrayList<String>();\n\t\tthis.levelDescriptions = new ArrayList<String>();\n\n\t\tthis.authors = new ArrayList<>();\n\t\tthis.originalAuthor = author;\n\t\tthis.mainEmblem = new ImageList();\n\t\tthis.mainEmblem.add((BufferedImage) UIBuilder.getImage(DEFAULT_MAIN_EMBLEM_FILE));\n\t\tif (author != null)\n\t\t\taddAuthor(author);\n\t\tcreationDate = LocalDateTime.now();\n\t\tpublishStart = LocalDateTime.now();\n\t\tpublishEnd = publishStart.plusYears(1);\n\t\taudienceUsers = new ArrayList<>();\n\t\taudienceGroups = new ArrayList<>();\n\t\tfeedbackModel = FeedbackModel.RATING_AND_COMMENTS;\n\n\t\tcurrentPlayer = null;\n\t\tplayerVisible = new HashSet<>();\n\t\tplayerVisible.add(0);\n\t}", "protected void checkLocked() throws LockingException, WebserverSystemException {\r\n if (getContentModel().isLocked() && !getContentModel().getLockOwner().equals(Utility.getCurrentUser()[0])) {\r\n throw new LockingException(\"Content Model + \" + getContentModel().getId() + \" is locked by \"\r\n + getContentModel().getLockOwner() + '.');\r\n }\r\n }", "private void channelPrivilegedUserUpdate() {\n String userKey = builder.getPersonalUser().getUserKey();\n if (channel.getPrivilegedUsers().size() != 0) {\n ArrayList<String> members = new ArrayList<>();\n for (User user : channel.getPrivilegedUsers()) {\n members.add(user.getId());\n }\n String[] membersArray = members.toArray(new String[0]);\n // send update to server\n restClient.updateChannel(server.getId(), channel.getCategories().getId(), channel.getId(), userKey,\n channel.getName(), channel.isPrivilege(), membersArray, response -> {\n });\n } else {\n channel.setPrivilege(false);\n restClient.updateChannel(server.getId(), channel.getCategories().getId(), channel.getId(), userKey,\n channel.getName(), false, null, response -> {\n });\n }\n }", "public void setModifiedByUser(long modifiedByUser);", "public void setEnabledLevel(int level)\r\n {\r\n this.enabled = level;\r\n }", "public void setLocked(boolean value) {\n\t\tisLocked = value;\n\t}", "private void setPrivilagesToModifyUser(User user){\n\t\tsetFields(false);\n\t\tif (!LoginWindowController.loggedUser.getPermissions().equals(\"administrator\"))\n\t\t{\n\t\t\tif (LoginWindowController.loggedUser.getId() != user.getId()){\n\t\t\t\tif ((user.getPermissions().equals(\"manager\")) \n\t\t\t\t\t\t|| (user.getPermissions().equals(\"administrator\"))){\n\t\t\t\t\tsetFields(true);\n\t\t\t\t}\n\t\t\t\tif (user.getPermissions().equals(\"pracownik\")){\n\t\t\t\t\tsetFields(false);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\tsetFields(false);\n\t\t\t\tdeleteMenuItem.setDisable(true);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif (LoginWindowController.loggedUser.getId() == user.getId()){\n\t\t\t\tdeleteMenuItem.setDisable(true);\n\t\t\t\tuserPermissionsBox.setDisable(true);\n\t\t\t}\n\t\t}\n\t}", "public static boolean own() {\n return InventoryManager.getAccessibleCount(ItemPool.COMBAT_LOVERS_LOCKET) > 0;\n }", "ManagementLockObject apply();", "public void dataBaseLocked();", "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}", "public boolean isLocked();", "public abstract boolean isLocked(String oid);", "@Override\n public boolean isLocked(Object o) {\n return false;\n }", "public void lockAdd(){\n\t\tthis.canAdd = false;\n\t}", "public void setLockEnabled(boolean lockEnabled) {\r\n\t\tthis.lockEnabled = lockEnabled;\r\n\t}", "public void setLocked(boolean locked)\n\t{\n\t\tthis.locked = locked;\n\t}", "public void setModifiedBy(Long modifiedBy) {\n this.modifiedBy = modifiedBy;\n }", "private void checkRights() {\n image.setEnabled(true);\n String user = fc.window.getUserName();\n \n for(IDataObject object : objects){\n ArrayList<IRights> rights = object.getRights();\n \n if(rights != null){\n boolean everybodyperm = false;\n \n for(IRights right : rights){\n String name = right.getName();\n \n //user found, therefore no other check necessary.\n if(name.equals(user)){\n if(!right.getOwner()){\n image.setEnabled(false);\n }else{\n image.setEnabled(true);\n }\n return;\n //if no user found, use everybody\n }else if(name.equals(BUNDLE.getString(\"Everybody\"))){\n everybodyperm = right.getOwner();\n }\n }\n image.setEnabled(everybodyperm);\n if(!everybodyperm){\n return;\n }\n }\n }\n }", "public void setUserLevel(Integer userLevel) {\n this.userLevel = userLevel;\n }", "public void unlockAdd(){\n\t\tthis.canAdd = true;\n\t}", "public boolean isLocked() {\r\n \treturn false;\r\n }", "public boolean hasUnlocked(Player p) {\n\t\tfor (Category category: parents) {\n\t\t\tfor (SlimefunItem item: category.getItems()) {\n\t\t\t\tif (Slimefun.isEnabled(p, item.getItem(), false) && Slimefun.hasPermission(p, item, false)) {\n\t\t\t\t\tif (item.getResearch() != null) {\n\t\t\t\t\t\tif (!item.getResearch().hasUnlocked(p)) return false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "boolean isLocked();", "boolean isLocked();", "protected final Object getTreeLock() {\n return Component.LOCK;\n }", "public boolean holdsLock(TransactionId tid, PageId p) {\n // some code goes here\n // not necessary for lab1|lab2\n return false;\n }", "@Override\n protected boolean isCalledForCurrentUserLocked() {\n return true;\n }", "private static boolean isLock(Block block, BlockFace attachedTo) {\r\n // Locks are always wall signs.\r\n if (!block.getType().equals(Material.WALL_SIGN))\r\n return false;\r\n \r\n org.bukkit.material.Sign material = new org.bukkit.material.Sign(block.getType());\r\n if (attachedTo != null) {\r\n // Locks must be directly attached to locked object.\r\n material.setData(block.getData());\r\n if (!material.getAttachedFace().equals(attachedTo))\r\n return false;\r\n }\r\n \r\n // First line of sign must contain standard lock title.\r\n if (!((org.bukkit.block.Sign) block.getState()).getLine(0).equals(Lock.title))\r\n return false;\r\n \r\n return true;\r\n }", "public interface LockManager {\r\n \r\n /**\r\n * Obtain lock on <code>obj</code> for specified <code>owner</code>.\r\n * Implementation should try to obtain lock few times within the\r\n * specified timeout.\r\n *\r\n * @param obj obj to lock, usually not full object but object's ID.\r\n * @param owner object identifying entity that will own the lock.\r\n * @param timeout maximum time that we grant to obtain a lock.\r\n *\r\n * @throws LockNotGrantedException if lock is not granted within\r\n * specified period.\r\n *\r\n * @throws ClassCastException if <code>obj</code> and/or\r\n * <code>owner</code> is not of type that implementation expects to get\r\n * (for example, when distributed lock manager obtains non-serializable\r\n * <code>obj</code> or <code>owner</code>).\r\n * \r\n * @throws ChannelException if something bad happened to communication\r\n * channel.\r\n */\r\n void lock(Object obj, Object owner, int timeout)\r\n throws LockNotGrantedException, ClassCastException, ChannelException;\r\n\r\n /**\r\n * Release lock on <code>obj</code> owned by specified <code>owner</code>.\r\n *\r\n * since 2.2.9 this method is only a wrapper for \r\n * unlock(Object lockId, Object owner, boolean releaseMultiLocked).\r\n * Use that with releaseMultiLocked set to true if you want to be able to\r\n * release multiple locked locks (for example after a merge)\r\n * \r\n * @param obj obj to lock, usually not full object but object's ID.\r\n * @param owner object identifying entity that will own the lock.\r\n *\r\n * @throws LockOwnerMismatchException if lock is owned by another object.\r\n *\r\n * @throws ClassCastException if <code>obj</code> and/or\r\n * <code>owner</code> is not of type that implementation expects to get\r\n * (for example, when distributed lock manager obtains non-serializable\r\n * <code>obj</code> or <code>owner</code>).\r\n * \r\n * @throws ChannelException if something bad happened to communication\r\n * channel.\r\n */\r\n void unlock(Object obj, Object owner)\r\n throws LockNotReleasedException, ClassCastException, ChannelException;\r\n\r\n /**\r\n * Release lock on <code>obj</code> owned by specified <code>owner</code>.\r\n *\r\n * @param obj obj to lock, usually not full object but object's ID.\r\n * @param owner object identifying entity that will own the lock.\r\n * @param releaseMultiLocked force unlocking of the lock if the local\r\n * lockManager owns the lock even if another lockManager owns the same lock\r\n *\r\n * @throws LockOwnerMismatchException if lock is owned by another object.\r\n *\r\n * @throws ClassCastException if <code>obj</code> and/or\r\n * <code>owner</code> is not of type that implementation expects to get\r\n * (for example, when distributed lock manager obtains non-serializable\r\n * <code>obj</code> or <code>owner</code>).\r\n * \r\n * @throws ChannelException if something bad happened to communication\r\n * channel.\r\n * \r\n * @throws LockMultiLockedException if the lock was unlocked, but another\r\n * node already held the lock\r\n */\r\n void unlock(Object obj, Object owner, boolean releaseMultiLocked)\r\n throws LockNotReleasedException, ClassCastException, ChannelException, LockMultiLockedException;\r\n\r\n \r\n}", "public int getModifiedBy() {\n return modifiedBy;\n }", "public void setModifiedBy(int tmp) {\n this.modifiedBy = tmp;\n }", "@Override\n\tpublic void onLockMap(boolean arg0) {\n\t\t\n\t}", "public abstract boolean isValidLock(String oid, String lockKey);", "void lock(Object obj, Object owner, int timeout)\r\n throws LockNotGrantedException, ClassCastException, ChannelException;", "private void generateLoot( Integer lootLevel ){\n }", "void setRepositoryPermissionsToReadOnly(URL repositoryUrl, String projectKey, String username) throws Exception;", "void unlock(Portal portal);", "boolean lockDigitalObject(String uuid, Long id, String description) throws DatabaseException;", "@Override\n protected String requiredPutPermission() {\n return \"admin\";\n }", "ManagementLockObject.Update update();", "@Nullable\n\t\t@Override\n\t\tpublic IMessage onMessage(final MessageLockSetLockCode message, final MessageContext ctx) {\n\t\t\tTestMod3.proxy.getThreadListener(ctx).addScheduledTask(() -> {\n\t\t\t\tfinal EntityPlayerMP player = (EntityPlayerMP) TestMod3.proxy.getPlayer(ctx);\n\t\t\t\tfinal World world = player.world;\n\n\t\t\t\tplayer.markPlayerActive();\n\n\t\t\t\tif (world.isBlockLoaded(message.pos)) {\n\t\t\t\t\tfinal ILock lock = CapabilityLock.getLock(world, message.pos, message.facing);\n\t\t\t\t\tif (lock != null) {\n\t\t\t\t\t\tif (lock.isLocked()) {\n\t\t\t\t\t\t\tplayer.sendMessage(new TextComponentTranslation(\"testmod3:lock.already_locked\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlock.setLockCode(new LockCode(message.lockCode));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn null;\n\t\t}", "public boolean canUpgrade(){\n\t\treturn level < 2;\n\t}", "protected void setLevel(int level){\r\n this.level = level;\r\n }", "public void setLevel(Level level) throws SQLException\r\n\t{\r\n\t\tif (level == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET level =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, level.name());\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setLevel(Level \"+ level.name() + \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}", "public void setSafeLevel(int safeLevel) {\n this.safeLevel = safeLevel;\n }", "@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)\n public void onPlayerQuickLockChest(PlayerInteractEvent event) {\n // Check quick lock enabled\n if (Config.getQuickProtectAction() == (byte) 0) return;\n // Get player and action info\n Action action = event.getAction();\n Player player = event.getPlayer();\n // Check action correctness\n if (action == Action.RIGHT_CLICK_BLOCK && Tag.SIGNS.isTagged(player.getInventory().getItemInMainHand().getType())) {\n if (player.getGameMode().equals(GameMode.SPECTATOR)) {\n return;\n }\n // Check quick lock action correctness\n if (!((event.getPlayer().isSneaking() && Config.getQuickProtectAction() == (byte) 2) ||\n (!event.getPlayer().isSneaking() && Config.getQuickProtectAction() == (byte) 1))) return;\n // Check permission \n if (!player.hasPermission(\"lockettepro.lock\")) return;\n // Get target block to lock\n BlockFace blockface = event.getBlockFace();\n if (blockface == BlockFace.NORTH || blockface == BlockFace.WEST || blockface == BlockFace.EAST || blockface == BlockFace.SOUTH) {\n Block block = event.getClickedBlock();\n if (block == null) return;\n // Check permission with external plugin\n if (Dependency.isProtectedFrom(block, player)) return; // blockwise\n if (Dependency.isProtectedFrom(block.getRelative(event.getBlockFace()), player)) return; // signwise\n // Check whether locking location is obstructed\n Block signLoc = block.getRelative(blockface);\n if (!signLoc.isEmpty()) return;\n // Check whether this block is lockable\n if (LocketteProAPI.isLockable(block)) {\n // Is this block already locked?\n boolean locked = LocketteProAPI.isLocked(block);\n // Cancel event here\n event.setCancelled(true);\n // Check lock info info\n if (!locked && !LocketteProAPI.isUpDownLockedDoor(block)) {\n // Get type\n Material signType = player.getInventory().getItemInMainHand().getType();\n // Not locked, not a locked door nearby\n Utils.removeASign(player);\n // Send message\n Utils.sendMessages(player, Config.getLang(\"locked-quick\"));\n // Put sign on\n Block newsign = Utils.putSignOn(block, blockface, Config.getDefaultPrivateString(), player.getName(), signType);\n Utils.resetCache(block);\n // Cleanups - UUID\n if (Config.isUuidEnabled()) {\n Utils.updateLineByPlayer(newsign, 1, player);\n }\n // Cleanups - Expiracy\n if (Config.isLockExpire()) {\n // set created to now\n Utils.updateLineWithTime(newsign, player.hasPermission(\"lockettepro.noexpire\")); // set created to -1 (no expire) or now\n }\n Dependency.logPlacement(player, newsign);\n } else if (!locked && LocketteProAPI.isOwnerUpDownLockedDoor(block, player)) {\n // Not locked, (is locked door nearby), is owner of locked door nearby\n Utils.removeASign(player);\n Utils.sendMessages(player, Config.getLang(\"additional-sign-added-quick\"));\n Utils.putSignOn(block, blockface, Config.getDefaultAdditionalString(), \"\", player.getInventory().getItemInMainHand().getType());\n Dependency.logPlacement(player, block.getRelative(blockface));\n } else if (LocketteProAPI.isOwner(block, player)) {\n // Locked, (not locked door nearby), is owner of locked block\n Utils.removeASign(player);\n Utils.putSignOn(block, blockface, Config.getDefaultAdditionalString(), \"\", player.getInventory().getItemInMainHand().getType());\n Utils.sendMessages(player, Config.getLang(\"additional-sign-added-quick\"));\n Dependency.logPlacement(player, block.getRelative(blockface));\n } else {\n // Cannot lock this block\n Utils.sendMessages(player, Config.getLang(\"cannot-lock-quick\"));\n }\n }\n }\n }\n }", "void unlock(Object obj, Object owner)\r\n throws LockNotReleasedException, ClassCastException, ChannelException;", "Boolean isAccountLocked(String username);", "@Override\r\n\tpublic boolean unlockIt() {\n\t\treturn false;\r\n\t}", "public String getOwner() {\n return lockOwner;\n }", "private void updatePlayerClaim(){\n if(chestProgressLevel!=1){\n return; //the chest isnt unlocked!\n }\n\n //count the total players, and the players who unlocked it.\n int totalPlayers = 0;\n int unlockedPlayers = 0;\n for(JuggernautPlayer player: JuggernautGame.getInstance().getPlayers()){\n if(!player.isSurvivor() || !player.isAlive()){\n continue; //they be dead, they dont count! (Juggy also doesnt count, he doesnt get to unlock items)\n }\n totalPlayers++; //+1 total players\n if(player.isSurvivor() && player.getChestBonus(chestID)>=level){\n unlockedPlayers++; //they unlocked it, +1 unlocked players\n }\n }\n\n //all players unlocked it\n if(totalPlayers<=unlockedPlayers && chestProgressLevel==1){\n //lock the chest before respawning.\n lockChest();\n new BukkitRunnable() {\n\n int timeTillRespawn = 3; //3 seconds to respawn a chest\n @Override\n public void run() {\n //runs every second\n for(JuggernautPlayer jp : JuggernautGame.getInstance().getAllPeople()){\n //check if the player is in the radius of the chest (ignore Y)\n if(SkyMathHelper.isInRadius(location, jp.getPlayer().getLocation(), nametagRadius, false)) {\n //show them the hologram. Update if they already have the hologram active.\n //If this chest will not respawn, we tell them \"Good Luck!\" instead of the respawning message.\n if (jp.getLoadedEntities().containsKey(armorstandResetChestID)) {\n if(level==getMaxLevel()){\n jp.updateHologram(armorstandResetChestID, \"\\u00A76Good Luck!\");\n }else {\n jp.updateHologram(armorstandResetChestID, \"\\u00A76Respawning in \" + timeTillRespawn);\n }\n } else {\n if(level==getMaxLevel()) {\n jp.displayHologram(location.getX(), location.getY() + armorstandProgressbarHeight, location.getZ(), \"\\u00A76Good Luck!\", armorstandResetChestID);\n }else{\n jp.displayHologram(location.getX(), location.getY() + armorstandProgressbarHeight, location.getZ(), \"\\u00A76Respawning in \" + timeTillRespawn, armorstandResetChestID);\n }\n }\n }else{\n //they arent in range, so we remove this entity for them\n jp.removeEntities(armorstandResetChestID);\n }\n }\n\n //check if its time to respawn.\n if(timeTillRespawn--<=0){\n //its time! respawn the chest!\n respawnChest();\n for(JuggernautPlayer jp: JuggernautGame.getInstance().getPlayers()){\n //remove the countdown armorstand for all players\n jp.removeEntities(armorstandResetChestID);\n }\n this.cancel(); //cancel this runnable, we no longer need it.\n return;\n }\n }\n }.runTaskTimer(Juggernaut.pluginInstance, 0L, 20L); //every 20 ticks (1s)\n }else{\n //not all players unlocked the item yet. Lets indicate how many did.\n String emptyDisplayText = unlockedPlayers + \"/\" + totalPlayers + \" Claimed\";\n for(JuggernautPlayer JP: JuggernautGame.getInstance().getPlayers()){\n if(!SkyMathHelper.isInRadius(location, JP.getPlayer().getLocation(), nametagRadius, false)){\n //they arent in the radius, so we remove their armorstand again (if they had it).\n if(JP.getLoadedEntities().containsKey(this.armorstandClaimProgressID)) {\n JP.removeEntities(armorstandClaimProgressID);\n }\n continue;\n }\n\n //generate the color of the display text we need to show them. green if they claimed it, otherwise red.\n String displayText;\n if(JP.getChestBonus(chestID)>=level){\n displayText = \"\\u00A72\" + emptyDisplayText;\n }else{\n displayText = \"\\u00A7c\" + emptyDisplayText;\n }\n\n //update, or show the hologram to them.\n if(JP.getLoadedEntities().containsKey(this.armorstandClaimProgressID)){\n JP.updateHologram(armorstandClaimProgressID, displayText);\n }else{\n JP.displayHologram(this.location.getX(), this.location.getY()+this.armorstandClaimProgressHeight, this.location.getZ(), displayText, armorstandClaimProgressID);\n }\n }\n }\n }", "@LogMessage(level = WARN)\n @Message(value = \"read-only cache configured for mutable entity [%s]\", id = 20007)\n void readOnlyCacheConfiguredForMutableEntity(String entityName);", "public void updateArmorModifier(int p_184691_1_) {\n if (!this.world.isRemote) {\n this.getAttribute(Attributes.ARMOR).removeModifier(COVERED_ARMOR_BONUS_MODIFIER);\n if (p_184691_1_ == 0) {\n this.getAttribute(Attributes.ARMOR).applyPersistentModifier(COVERED_ARMOR_BONUS_MODIFIER);\n this.playSound(SoundEvents.ENTITY_SHULKER_CLOSE, 1.0F, 1.0F);\n } else {\n this.playSound(SoundEvents.ENTITY_SHULKER_OPEN, 1.0F, 1.0F);\n }\n }\n\n this.dataManager.set(PEEK_TICK, (byte)p_184691_1_);\n }", "public void lockGame() {\n this.isLocked = true;\n btnLockGame.setEnabled(false);\n }", "public void setLockedUserId(String lockedUserId) {\n\t\tthis.lockedUserId = lockedUserId;\n\t}", "public void setLevel(int level){\n\t\tthis.level = level;\n\t}", "public String getLockUser() {\n return lockUser;\n }", "public void setLevel(int level)\r\n {\r\n\tthis.level = level;\r\n }", "private Locks() {\n\t\tlockId = ObjectId.get().toString();\n\t}", "public boolean shouldUpdateVersionOnOwnedMappingChange(){\r\n return this.lockOnChangeMode == LockOnChange.OWNING;\r\n }", "public boolean execute(CommandSender sender, String alias, String[] args) {\r\n\t\tif (sender instanceof Player) {\r\n\t\t\tPlayer player = (Player) sender;\r\n\t\t\tif (player.hasPermission(\"corefunctionality.utility.setxp\")) {\r\n\r\n\t\t\t\tif (args.length == 1) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tint amount = Integer.parseInt(args[0]);\r\n\t\t\t\t\t\tplayer.setLevel(amount);\r\n\t\t\t\t\t\tplayer.sendMessage(ChatColor.GREEN + \"Your xp level has been set.\");\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\tplayer.sendMessage(ChatColor.RED + \"Invalid amount specified.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (args.length == 2) {\r\n\r\n\t\t\t\t\tif (player.hasPermission(\"server.utility.setxp.other\")) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tint amount = Integer.parseInt(args[0]);\r\n\t\t\t\t\t\t\tPlayer target = Bukkit.getPlayer(args[1]);\r\n\t\t\t\t\t\t\tif (target != null) {\r\n\t\t\t\t\t\t\t\ttarget.setLevel(amount);\r\n\t\t\t\t\t\t\t\tplayer.sendMessage(ChatColor.GREEN + target.getName() + \"'s xp level has been set.\");\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tplayer.sendMessage(ChatColor.RED + \"Could not find specified player.\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\tplayer.sendMessage(ChatColor.RED + \"Invalid amount specified.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tplayer.sendMessage(ChatColor.RED + \"You do not have the power to do this.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Syntax Error: /setxp <amount> [player]\");\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\tplayer.sendMessage(ChatColor.RED + \"You do not have the power to do this.\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tsender.sendMessage(\"You must be a player to use this command\");\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public void setLevel(int level) {\n this.level = level;\n }", "public void setLevel(int level) {\n this.level = level;\n }", "public void setLevel(int newlevel)\n {\n level = newlevel; \n }", "public void setUserLevel(int userLevel) {\n\t\t\tthis.userLevel = userLevel;\n\t\t}", "public void grantModerate(User user) throws ServiceException{\n }", "@Override\n\tpublic boolean modifyUserData(Client cl) {\n\t\treturn false;\n\t}", "public void setLevel(int level) { \r\n\t\tthis.level = level; \r\n\t}", "void unlock(Object obj, Object owner, boolean releaseMultiLocked)\r\n throws LockNotReleasedException, ClassCastException, ChannelException, LockMultiLockedException;", "@Override\n\tpublic boolean unlockIt() {\n\t\treturn false;\n\t}", "protected void setLevel(int level)\n {\n this.level = level;\n }", "public long getModifiedByUser();", "void unlockWriteInOMRequest();", "void unlockWrite(long stamp);", "public void setLevel(Level level) { this.currentLevel = level; }", "void grant(Object dbobject, int rights) {\n\n if (rights == 0) {\n return;\n }\n\n int n = rightsMap.get(dbobject, 0);\n\n n |= rights;\n\n rightsMap.put(dbobject, n);\n }", "public boolean isGroupAdmin(int userId){\n return userId == groupAdmin;\n }", "public void lockPassword() {\n passwordLock.lock();\n }", "public void setCurrentPlayer(User newPlayer) {\n\n\t\tif (currentPlayer != null) {\n\t\t\tif (currentPlayer.equals(newPlayer))\n\t\t\t\treturn;\n\t\t\telse if (newPlayer == null)\n\t\t\t\tthrow new RuntimeException(\"Once a player has been assigned to a Level Pack, it cannot be nulled.\");\n\t\t\telse\n\t\t\t\tthrow new RuntimeException(\"Once a player has been assigned to a Level Pack, it cannot be changed.\");\n\t\t} else if (newPlayer == null)\n\t\t\treturn;\n\t\tcurrentPlayer = newPlayer;\n\t}", "public void setLevel(int level) {\r\n\t\t\r\n\t\tthis.level = level;\r\n\t\t\r\n\t}", "public void setAuthLevel(String authLevel)\n\t{\n\t\tthis.authLevel = Toolbox.trim(authLevel, 1);\n\t}", "public void setLevel(String level){\n\t\tthis.level = level;\n\t}" ]
[ "0.5990716", "0.587549", "0.5756005", "0.55967724", "0.55904907", "0.5488083", "0.5466725", "0.5407707", "0.5343578", "0.53325903", "0.53304005", "0.5271807", "0.5260905", "0.5215294", "0.52145267", "0.519571", "0.51115805", "0.508592", "0.5063122", "0.50532204", "0.50509477", "0.5048098", "0.5002669", "0.4994672", "0.49419612", "0.49334562", "0.49326706", "0.490381", "0.49035406", "0.48888636", "0.48885688", "0.4885339", "0.48770422", "0.48736715", "0.48706678", "0.4868497", "0.48675263", "0.4863793", "0.48616004", "0.4859405", "0.4843081", "0.48394886", "0.48394886", "0.48349097", "0.4800823", "0.47988516", "0.47981456", "0.47929484", "0.47823524", "0.47779235", "0.47778773", "0.47754726", "0.47695416", "0.47435427", "0.4743298", "0.4738697", "0.4736477", "0.47218716", "0.47211653", "0.47151506", "0.47061378", "0.4703937", "0.47035435", "0.4701258", "0.4695034", "0.46903193", "0.4677887", "0.4676299", "0.46758613", "0.46748397", "0.4664129", "0.46636444", "0.46634305", "0.46605512", "0.46603298", "0.46541896", "0.46464103", "0.46435678", "0.46413717", "0.4634383", "0.46293443", "0.46293443", "0.46284193", "0.46266592", "0.46208557", "0.4615762", "0.46150556", "0.461455", "0.46138686", "0.46115005", "0.46054262", "0.46046335", "0.4602821", "0.45999578", "0.4595287", "0.45950887", "0.45913112", "0.45810455", "0.45789164", "0.4578838", "0.45769933" ]
0.0
-1
Determines whether only an identified author User should be allowed to modify this LevelPack.
public void setLocked(boolean value) { isLocked = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkRights() {\n image.setEnabled(true);\n String user = fc.window.getUserName();\n \n for(IDataObject object : objects){\n ArrayList<IRights> rights = object.getRights();\n \n if(rights != null){\n boolean everybodyperm = false;\n \n for(IRights right : rights){\n String name = right.getName();\n \n //user found, therefore no other check necessary.\n if(name.equals(user)){\n if(!right.getOwner()){\n image.setEnabled(false);\n }else{\n image.setEnabled(true);\n }\n return;\n //if no user found, use everybody\n }else if(name.equals(BUNDLE.getString(\"Everybody\"))){\n everybodyperm = right.getOwner();\n }\n }\n image.setEnabled(everybodyperm);\n if(!everybodyperm){\n return;\n }\n }\n }\n }", "public void isAllowed(String user) {\n \r\n }", "public boolean getAuthorisedUser() {\n return authorisedUser;\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 isCurrentUserAdmin(){\n if (getAdminUserFromId(currentUserId)!=null){\n return true;\n }\n else{\n return false;\n }\n }", "@Override\n public boolean hasAccessPermission(String user, NamespaceKey key, DatasetConfig datasetConfig) {\n return userPredicate.test(user);\n }", "public boolean isEditableByUser() {\r\n if ((this.currentStatusChange == null) ||\r\n (this.currentStatusChange.equals(PoStatusCode.PROPOSED)))\r\n return true;\r\n return false;\r\n }", "private Boolean canUserValidate() throws ServeurException, ClientException {\n // Direct on/off line\n return checkValidatePermission();\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}", "public boolean hasAuthor() {\n return fieldSetFlags()[0];\n }", "public boolean isGroupAdmin(int userId){\n return userId == groupAdmin;\n }", "public boolean checkIfAuthor(int paperId, HashMap<Integer,Integer> authorsOrder) throws DLException {\n\t\tboolean isAuthor=false;\n\t\tfor(int order: authorsOrder.keySet()) {\n\t\t\tif(currentUser.getUserId()==authorsOrder.get(order)) {\n\t\t\t\tisAuthor=true;\n\t\t\t}\n\t\t}\n\t\treturn isAuthor;\n\t}", "@Override\n public boolean hasAccess(User user) {\n return user.hasRole(RoleValue.APP_ADMIN) || this.equals(user.company);\n }", "private static boolean isAuthorized(\n @Nonnull Authorizer authorizer,\n @Nonnull String actor,\n @Nonnull ConjunctivePrivilegeGroup requiredPrivileges,\n @Nonnull Optional<ResourceSpec> resourceSpec) {\n for (final String privilege : requiredPrivileges.getRequiredPrivileges()) {\n // Create and evaluate an Authorization request.\n final AuthorizationRequest request = new AuthorizationRequest(actor, privilege, resourceSpec);\n final AuthorizationResult result = authorizer.authorize(request);\n if (AuthorizationResult.Type.DENY.equals(result.getType())) {\n // Short circuit.\n return false;\n }\n }\n return true;\n }", "public Boolean isAuthorized(String userId);", "@Override\n public boolean isUser() {\n return false;\n }", "@objid (\"41b411f8-e0e5-49a4-a7fc-7eed29779401\")\n @Override\n public boolean canExecute() {\n if (!MTools.getAuthTool().canModify(this.layer.getRelatedElement())) {\n return false;\n }\n return true;\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 }", "@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 }", "public boolean isSetAlter_priv() {\n return this.__isset.alter_priv;\n }", "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 boolean isEditableRecipe() {\n\t\tUser user = User.getInstance();\n\t\tString userEmail = user.getEmail();\n\t\tString creatorEmail = currentRecipe.getCreatorEmail();\n\t\tif (userEmail.equalsIgnoreCase(creatorEmail)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public abstract boolean checkPolicy(User user);", "public static int checkAuthorizedToEdit(String schema, Long sim_id, Long user_id){\r\n\t\t\r\n\t\tUser user = User.getById(schema, user_id);\r\n\t\t\r\n\t\tif ((sim_id == null) || (user == null) || (!(user.isSim_author()))){\r\n\t\t\treturn USER_NOT_AUTHOR;\r\n\t\t}\r\n\t\t\r\n\t\tSimulation sim = Simulation.getById(schema, sim_id);\r\n\t\t\r\n\t\tif (sim.getSimEditingRestrictions() == Simulation.CAN_BE_EDITED_BY_SPECIFIC_USERS){\r\n\t\t\t// need to check to see if this user is autorized\r\n\t\t\tif (!(SimEditors.checkIfAuthorized(schema, sim_id, user_id))){\r\n\t\t\t\treturn NOT_AUTHORIZED;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (sim.getPublishedState() != Simulation.NOT_PUBLISHED){\r\n\t\t\treturn SIM_LOCKED;\r\n\t\t}\r\n\t\t\r\n\t\treturn SIM_CAN_BE_EDITED;\r\n\t}", "public boolean isAllowed(BaseAction actionClass) {\r\n\t\tint role = getCurrentRole();\r\n\t\tif ((role & User.ROLE_ADMINISTRATOR) != 0) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tInteger requiredRoles = privilegeDef.get(actionClass.getClass().getSimpleName());\r\n\t\treturn requiredRoles == null || (requiredRoles & role) != 0;\r\n\t}", "public boolean checkAccess(HasUuid object) {\n // Allow newly-instantiated objects\n if (!wasResolved(object)) {\n return true;\n }\n // Allow anything when there are no roles in use\n if (getRoles().isEmpty()) {\n return true;\n }\n Principal principal = getPrincipal();\n // Check for superusers\n if (!principalMapper.isAccessEnforced(principal, object)) {\n return true;\n }\n\n List<PropertyPath> paths = typeContext.getPrincipalPaths(object.getClass());\n PropertyPathChecker checker = checkers.get();\n for (PropertyPath path : paths) {\n path.evaluate(object, checker);\n if (checker.getResult()) {\n return true;\n }\n }\n addWarning(object, \"User %s does not have permission to edit this %s\", principal,\n typeContext.getPayloadName(object.getClass()));\n return false;\n }", "public boolean filter(AssignmentListEntry entry) {\n\t\tboolean isAdmin = UserData.get().isAdmin();\r\n\t\tif (isAdmin) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\tString userId = UserData.get().getId();\r\n\t\tif (userId == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\treturn userId.equals(entry.getAuthorID());\r\n\t}", "boolean isPermissionsReviewRequired(@NonNull String packageName,\n @UserIdInt int userId);", "public boolean isPostingAllowed() {\n if (currentUser == null || activeTopic == null) {\n return false;\n }\n if (currentUser.isPublicAccount()) {\n return false;\n }\n return activeTopic.isEditable();\n }", "public boolean isUnauthored() {\n return this.scientificNameAuthorship == null;\n }", "@Override\n\tpublic void modifierUser(User c) {\n\t\t\n\t}", "public void testUserAlwaysImpliesItself() {\n User user = RoleFactory.createUser(\"foo\");\n \n assertTrue(m_roleChecker.isImpliedBy(user, user));\n }", "public boolean isUser()\n\t{\n\t\treturn (id != -1);\n\t}", "private boolean isRoleModified(User user) {\n\t\treturn isAdmin != null && !user.getRole().equals(getRole());\n\t}", "public boolean isIsCreator() {\r\n if (ui.isIsUserAuthenticated() && recipe != null) {\r\n if(recipe.getCreator() == user)\r\n return true;\r\n else\r\n return false;\r\n } else {\r\n return false;\r\n }\r\n }", "public boolean shouldRenderUpload() {\r\n if (recipe != null && ui.isIsUserAuthenticated()) {\r\n return recipe.getCreator().getUserName().equals(ui.getUser().getUserName());\r\n } else {\r\n return false;\r\n }\r\n }", "public boolean attempt(CommandSender sender) {\n boolean allowed = test(sender);\n if (!allowed) {\n sender.sendMessage(NO_PERMISSION);\n }\n return allowed;\n }", "@Override\n public boolean isOwner(String groupingPath, String username) {\n return isMember(groupingPath + OWNERS, username);\n }", "public void setModifyUser(Integer modifyUser) {\n this.modifyUser = modifyUser;\n }", "private static Boolean isAuthorised(Page page, List<GrantedAuthority> userAuthorities ) {\n if ( page.getAllowedRoles().size() == 0 ) {\n return true;\n }\n \n for ( GrantedAuthority role : userAuthorities ) {\n for ( String requiredRole : page.getAllowedRoles() ) {\n if ( role.getAuthority().equals(requiredRole) ) {\n return true;\n }\n }\n }\n return false;\n }", "public boolean isEnabledByUser() {\n return mEnabledByUser;\n }", "@Override\n public boolean isAdmin(String username) {\n return isMember(GROUPING_ADMINS, username);\n }", "public boolean isModifiable() {\n return modifiable.get();\n }", "private void checkIfAddUserDisallowedByAdminOnly(UserRecord userRecord) {\n RestrictedLockUtils.EnforcedAdmin checkIfRestrictionEnforced = RestrictedLockUtilsInternal.checkIfRestrictionEnforced(this.mContext, \"no_add_user\", ActivityManager.getCurrentUser());\n if (checkIfRestrictionEnforced == null || RestrictedLockUtilsInternal.hasBaseUserRestriction(this.mContext, \"no_add_user\", ActivityManager.getCurrentUser())) {\n userRecord.isDisabledByAdmin = false;\n userRecord.enforcedAdmin = null;\n return;\n }\n userRecord.isDisabledByAdmin = true;\n userRecord.enforcedAdmin = checkIfRestrictionEnforced;\n }", "public boolean isUpdateRight() {\r\n if (getUser() != null) {\r\n return getUser().hasPermission(\"/vocabularies\", \"u\");\r\n }\r\n return false;\r\n }", "@Override\n public Boolean isGradeManger(UserDTO user) {\n return user.getRoles().contains(RoleTypeEnum.GRADE);\n }", "boolean ignoresPermission();", "@Override\n public boolean userCanAccess(int id) {\n return true;\n }", "public boolean isOwner(String role) throws IOException {\n\t\treturn (rolePoster.sendPost(\"isOwner=\" + role).startsWith(\"true\"));\n\t}", "@Override\n\tpublic boolean isAdminRole(String userName) throws Exception {\n\t\treturn false;\n\t}", "@XmlTransient\n\tpublic boolean isCanActivateUser() {\n\t\treturn (isSecurityAdministrator() && isSelfRegistrationEnabled());\n\t}", "public Boolean isDraftOwner(final Artifact artifact);", "public boolean isAllowed(Player owner, Item item) {\r\n if (item.getValue() > 50000) {\r\n owner.getActionSender().sendMessage(\"This item is too valuable to trust to this familiar.\");\r\n return false;\r\n }\r\n if (!item.getDefinition().isTradeable()) {\r\n owner.getActionSender().sendMessage(\"You can't trade this item, not even to your familiar.\");\r\n return false;\r\n }\r\n if (!owner.getFamiliarManager().getFamiliar().getDefinition().getName().toLowerCase().contains(\"abyssal\")) {\r\n if (item.getId() == 1436 || item.getId() == 7936 || !item.getDefinition().getConfiguration(ItemConfiguration.BANKABLE, true)) {\r\n owner.getActionSender().sendMessage(\"You can't store \" + item.getName().toLowerCase() + \" in this familiar.\");\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "@Override\n public Boolean isCollegeManger(UserDTO user) {\n return user.getRoles().contains(RoleTypeEnum.COLLEGE);\n }", "public abstract boolean isRestricted();", "public boolean isUserAdmin(int userId){\n if (getAdminUserFromId(userId)!=null){\n return true;\n }\n else{\n return false;\n }\n }", "public boolean hasUser(){\n return numUser < MAX_USER;\n }", "public boolean adminContent(User user, Object obj) {\n if (hasGrant(user,\n toGrant(getRelevantURIForSecurity(obj, false, false, false), GrantType.ADMIN_CONTENT))) {\n return true;\n }\n return false;\n }", "public boolean isSetCreate_user_priv() {\n return this.__isset.create_user_priv;\n }", "public boolean checkAdmin()\r\n\t{\r\n\t\tboolean admin=false;\r\n\t\tint length=user_records.size();\r\n\t\tfor(int i=0;i<length;i++)\r\n\t\t{\r\n\t\t\tif(((User)user_records.get(i)).get_username().equals(\"administrator\"))\r\n\t\t\t{\r\n\t\t\t\tadmin=true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn admin;\r\n\t}", "private void setPrivilagesToModifyUser(User user){\n\t\tsetFields(false);\n\t\tif (!LoginWindowController.loggedUser.getPermissions().equals(\"administrator\"))\n\t\t{\n\t\t\tif (LoginWindowController.loggedUser.getId() != user.getId()){\n\t\t\t\tif ((user.getPermissions().equals(\"manager\")) \n\t\t\t\t\t\t|| (user.getPermissions().equals(\"administrator\"))){\n\t\t\t\t\tsetFields(true);\n\t\t\t\t}\n\t\t\t\tif (user.getPermissions().equals(\"pracownik\")){\n\t\t\t\t\tsetFields(false);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\tsetFields(false);\n\t\t\t\tdeleteMenuItem.setDisable(true);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif (LoginWindowController.loggedUser.getId() == user.getId()){\n\t\t\t\tdeleteMenuItem.setDisable(true);\n\t\t\t\tuserPermissionsBox.setDisable(true);\n\t\t\t}\n\t\t}\n\t}", "@Test\n\tpublic void testUpdateActionIsPerformedWhenPermissionInheritedAndUserAuthenticatedAndAllowed()\n\t\t\tthrows Throwable {\n\t\tcheck(getAllowedUser(), HttpStatus.SC_OK);\n\t}", "private boolean isAllowed(String who){\n Boolean result = settings.containsKey(who)\n || settings.getProperty(\"components\").contentEquals(\"\");\n return result;\n }", "public boolean canDo (Player player, Type type, boolean isAdmin){\r\n\t\tif (isAdmin || isOwner(player.getName()))\r\n\t\t\treturn true;\r\n\t\t\r\n\t\tif (!isMember(player.getName()))\r\n\t\t\treturn false; \r\n\t\t\r\n\t\tswitch (type) {\r\n\t\t\tcase ADD:\r\n\t\t\tcase GET:\r\n\t\t\t\treturn true;\r\n\t\t\tdefault:\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t}", "public void assignAuthorisedUser(final boolean val) {\n authorisedUser = val;\n }", "@Override\n protected boolean isAuthorized(PipelineData pipelineData) throws Exception\n {\n \t// use data.getACL() \n \treturn true;\n }", "public boolean isAuthorized() {\r\n // TODO - implement User.isAuthorized\r\n throw new UnsupportedOperationException();\r\n }", "public boolean isUpdateUserModified() {\n return updateUser_is_modified; \n }", "public boolean isAdministrator() {\r\n return doesUserHaveRole(UserRole.ADMINISTRATOR);\r\n }", "public boolean canEditUserData(Session session, User user);", "@Override\n public boolean requiresUser() {\n return false;\n }", "public boolean isAdmin();", "@Override\n\tpublic boolean modifyUser(Account account) {\n\t\treturn false;\n\t}", "public static void adminOrOwnerCheck(User current,\n User resourceOwner)\n throws ServiceException {\n\n if (!current.equals(resourceOwner) &&\n !current.isRole(\"ROLE_ADMIN\")) {\n throw new ServiceException(ServiceStatus.ACCESS_DENIED);\n }\n }", "private void checkAdminOrModerator(HttpServletRequest request, String uri)\n throws ForbiddenAccessException, ResourceNotFoundException {\n if (isAdministrator(request)) {\n return;\n }\n\n ModeratedItem moderatedItem = getModeratedItem(uri);\n if (moderatedItem == null) {\n throw new ResourceNotFoundException(uri);\n }\n\n String loggedInUser = getLoggedInUserEmail(request);\n if (moderatedItem.isModerator(loggedInUser)) {\n return;\n }\n\n throw new ForbiddenAccessException(loggedInUser);\n }", "@Override\n\tpublic boolean isUser(User user) {\n\t\treturn false;\n\t}", "public boolean hasAdminInvitePrivilages(User user, Chatroom chatroom) {\n\t\treturn isOwner(user, chatroom);// only the owner of a chatroom can send admin invitations\n\t}", "public boolean isCreateUserModified() {\n return createUser_is_modified; \n }", "private boolean hasUserImportantView() {\n int userID = this.sharedPreferences.getInt(Constants.SP_USER_ID_KEY, 0);\n return this.sharedPreferences.getBoolean(serverName + \"_\" + userID, false);\n }", "public boolean hasPermission(String username, MenuComponent menuComponent) {\r\n return username != null;\r\n }", "boolean isSystemUser() throws RepositoryException;", "@ApiModelProperty(example = \"false\", required = true, value = \"Flag is true if this permission can only be assigned to users, and not groups or organizations\")\n public Boolean isUserOnly() {\n return userOnly;\n }", "public void setModifiedBy(int tmp) {\n this.modifiedBy = tmp;\n }", "@Override\n\tpublic boolean isOwnMessage() {\n\t\ttry {\n\t\t\treturn (this.user.id == AccountManager.current_account.getUser().id);\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}", "public void testUserIsBlogContributor() {\n rootBlog.setProperty(SimpleBlog.BLOG_CONTRIBUTORS_KEY, \"user1\");\n assertTrue(rootBlog.isUserInRole(Constants.BLOG_CONTRIBUTOR_ROLE, \"user1\"));\n assertFalse(rootBlog.isUserInRole(Constants.BLOG_CONTRIBUTOR_ROLE, \"user2\"));\n }", "public synchronized boolean hasAdminPrivilege(UserEntity userEntity) {\n PrincipalEntity principalEntity = userEntity.getPrincipal();\n if (principalEntity != null) {\n Set<PrivilegeEntity> roles = principalEntity.getPrivileges();\n if (roles != null) {\n PermissionEntity adminPermission = permissionDAO.findAmbariAdminPermission();\n Integer adminPermissionId = (adminPermission == null) ? null : adminPermission.getId();\n\n if (adminPermissionId != null) {\n for (PrivilegeEntity privilegeEntity : roles) {\n PermissionEntity rolePermission = privilegeEntity.getPermission();\n if ((rolePermission != null) && (adminPermissionId.equals(rolePermission.getId()))) {\n return true;\n }\n }\n }\n }\n }\n\n return false;\n }", "public boolean checkForUser(Player p) {\n\t\tif(p.getName(p).equals(\"user\")) {\n\t\t\treturn true;\t\t\t\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public synchronized boolean isUserCanBeRemoved(UserEntity userEntity) {\n List<PrincipalEntity> adminPrincipals = principalDAO.findByPermissionId(PermissionEntity.AMBARI_ADMINISTRATOR_PERMISSION);\n Set<UserEntity> userEntitysSet = new HashSet<>(userDAO.findUsersByPrincipal(adminPrincipals));\n return (userEntitysSet.contains(userEntity) && userEntitysSet.size() < 2) ? false : true;\n }", "boolean hasUserManaged();", "public boolean isCurrentUserCanUnlock() {\r\n return currentUserCanUnlock;\r\n }", "public boolean handlePerm(Player player, String perm);", "public boolean getUserMaintOK() {\n return userMaintOK;\n }", "private boolean isAuthorized() {\n return true;\n }", "boolean isAuthorized(SiteUser user, Long transmissionId);", "public abstract boolean canEditAccessRights(OwObject object_p) throws Exception;", "@Override\n\tpublic boolean modifyUserData(Client cl) {\n\t\treturn false;\n\t}", "public boolean isModerator() {\n\t\treturn this.moderator;\n\t}", "public boolean isOwner(EntityPlayer player) {\n\t\treturn player.getDisplayName().equals(owner) /*|| Platform.worldType() != Platform.WorldMode.MP*/;\r\n\t}", "public abstract boolean isEdible();", "public boolean canEditAllRequiredFields() throws OculusException;", "boolean isProtected(String name);" ]
[ "0.6112306", "0.59836817", "0.5965118", "0.58362937", "0.5774246", "0.5722037", "0.5720236", "0.5702893", "0.5681061", "0.5676099", "0.5673774", "0.56553614", "0.56519955", "0.56187797", "0.56011", "0.5598991", "0.5592621", "0.5590799", "0.5559475", "0.5542958", "0.5496867", "0.5492517", "0.5490732", "0.5469704", "0.54678816", "0.5463248", "0.54607815", "0.54328316", "0.5416138", "0.54140425", "0.5410197", "0.54037166", "0.53989637", "0.5398804", "0.53944373", "0.5381812", "0.5374083", "0.5373534", "0.5371681", "0.53689885", "0.5368254", "0.53672916", "0.5364802", "0.5360383", "0.5359481", "0.5357909", "0.5352389", "0.5337705", "0.5332657", "0.53271484", "0.5311183", "0.5305492", "0.53007674", "0.52913874", "0.52903986", "0.5286519", "0.5263244", "0.52622694", "0.52542716", "0.52490675", "0.524696", "0.52442306", "0.52406126", "0.5236623", "0.52322346", "0.5226684", "0.52206254", "0.522015", "0.52168393", "0.52130103", "0.5210282", "0.5209066", "0.5205845", "0.52042884", "0.5195807", "0.51845926", "0.51811224", "0.51778585", "0.51734143", "0.516909", "0.5168688", "0.5166697", "0.51640695", "0.5161277", "0.5155327", "0.5153094", "0.5151875", "0.5148343", "0.5147152", "0.51449394", "0.51431817", "0.514262", "0.5132214", "0.5130115", "0.5125431", "0.51244", "0.5120346", "0.5114788", "0.51104355", "0.5107539", "0.51071876" ]
0.0
-1
============================================================ ========= LevelPack WORLD/LEVEL STUFF ====================== ============================================================
public int getLevelIndex() { return levelIndex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void level3() {\n // level 0.3\n levelBlock.moveTo(0, 400);\n levelBlock.setScaleX(200 / levelBlock.getUnscaledWidth());\n levelBlock.setScaleY(200 / levelBlock.getUnscaledHeight());\n// levelBlock.setAlpha((float).001);\n level.addChild(levelBlock);\n\n levelBlock2.moveTo(300, 400);\n levelBlock2.setScaleX(200 / levelBlock.getUnscaledWidth());\n levelBlock2.setScaleY(200 / levelBlock.getUnscaledHeight());\n level.addChild(levelBlock2);\n\n levelBlock3.moveTo(600, 400);\n levelBlock3.setScaleX(400 / levelBlock.getUnscaledWidth());\n levelBlock3.setScaleY(200 / levelBlock.getUnscaledHeight());\n level.addChild(levelBlock3);\n\n crystal1.setPosition(new Point(levelBlock.getHitbox().x + levelBlock.getHitbox().width, 500));\n crystal1.setAlpha((float) .1);\n crystal1.setScaleX(.55);\n crystal1.setScaleY(.6);\n level.addChild(crystal1);\n\n crystal2.setPosition(new Point(levelBlock2.getHitbox().x + levelBlock2.getHitbox().width, 500));\n crystal2.setAlpha((float) .1);\n crystal2.setScaleX(.55);\n crystal2.setScaleY(.6);\n level.addChild(crystal2);\n\n ash.setPosition(new Point(\n crystal1.getPosition().x,\n crystal1.getPosition().y - 70)\n );\n ash.setAlpha((float) .21);\n ash.setScaleX(.55);\n level.addChild(ash);\n\n ash2.setPosition(new Point(\n crystal2.getPosition().x,\n crystal2.getPosition().y - 70)\n );\n ash2.setAlpha((float) .21);\n ash2.setScaleX(.55);\n level.addChild(ash2);\n\n beaconA.moveTo(levelBlock.getHitbox().x + levelBlock.getHitbox().width - 60,\n levelBlock.getHitbox().y - beaconA.getUnscaledHeight());\n level.addChild(beaconA);\n\n beaconB.moveTo(levelBlock2.getHitbox().x + levelBlock2.getHitbox().width - 125,\n levelBlock2.getHitbox().y - beaconA.getUnscaledHeight());\n level.addChild(beaconB);\n\n entrance.moveTo(10, 400 - entrance.getUnscaledHeight() * entrance.getGlobalScaleY());\n entrance.setAlpha((float) 0.4);\n level.addChild(entrance);\n\n exit.setAlpha((float) 0.4);\n exit.moveTo(800 - exit.getUnscaledWidth() * exit.getGlobalScaleX() - 20,\n 400 - entrance.getUnscaledHeight() * entrance.getGlobalScaleY());\n level.addChild(exit);\n\n echoes.addChild(echoA);\n echoes.addChild(echoB);\n }", "public void initLevel(){\n baseLevel = levelCreator.createStaticGrid(this.levelFile);\n dynamicLevel= levelCreator.createDynamicGrid(levelFile);\n colDetector = new CollisionHandler();\n goalTiles = baseLevel.getTilePositions('x');\n }", "private void populateLevel() {\r\n\r\n\r\n\t\t// Setup Goal\r\n\t\tJsonValue goalVal = levelAssets.get(\"goal\");\r\n\t\tfloat gWidth = goalTile.getRegionWidth()/scale.x;\r\n\t\tfloat gHeight = goalTile.getRegionHeight()/scale.y;\r\n\t\tfloat gX = goalVal.get(\"pos\").getFloat(0) + gWidth / 2;\r\n\t\tfloat gY = goalVal.get(\"pos\").getFloat(1) + gHeight / 2;\r\n\t\tgoalDoor = new DoorModel(gX, gY, gWidth, gHeight);\r\n\t\tgoalDoor.setBodyType(BodyDef.BodyType.StaticBody);\r\n\t\tgoalDoor.setDensity(constants.get(\"goal\").getFloat(\"density\", 0));\r\n\t\tgoalDoor.setFriction(constants.get(\"goal\").getFloat(\"friction\", 0));\r\n\t\tgoalDoor.setRestitution(constants.get(\"goal\").getFloat(\"restitution\", 0));\r\n\t\tgoalDoor.setSensor(true);\r\n\t\tgoalDoor.setDrawScale(scale);\r\n\t\tgoalDoor.setTexture(goalTile);\r\n\t\tgoalDoor.setName(\"goal\");\r\n\t\taddObject(goalDoor);\r\n\t\taddObjectTo(goalDoor, LevelCreator.allTag);\r\n\r\n\t\t// Get default values\r\n\t\tJsonValue defaults = constants.get(\"defaults\");\r\n\t\tJsonValue objs = levelAssets.get(\"objects\");\r\n\r\n\t\t//group platform constants together for access in following for-loop\r\n\t\tTextureRegion[] xTexture = {lightTexture, darkTexture, allTexture,\r\n\t\t\tlightningLightTexture, lightningDarkTexture, lightningAllTexture,\r\n\t\t\trainLightTexture, rainDarkTexture, rainAllTexture,\r\n\t\t\t\tcrumbleLightTexture, crumbleDarkTexture, crumbleAllTexture};\r\n\r\n\t\tTextureRegion[] reducedXTexture = {lightTexture, darkTexture, allTexture,\r\n\t\t\t\tlightningLightTextureReduced, lightningDarkTextureReduced, lightningAllTextureReduced,\r\n\t\t\t\trainLightTextureReduced, rainDarkTextureReduced, rainAllTextureReduced,\r\n\t\t\t\tcrumbleLightTextureReduced, crumbleDarkTextureReduced, crumbleAllTextureReduced};\r\n\r\n\r\n\t\t// Setup platforms\r\n\t\tfor(int i=0; i < (objs != null ? objs.size : 0); i++)\r\n\t\t{\r\n\t\t\tJsonValue obj = objs.get(i);\r\n\r\n\t\t\t// Get platform attributes\r\n\t\t\tint platformType = obj.get(\"type\").asInt();\r\n\t\t\tint property = obj.get(\"property\") == null ? 0: obj.get(\"property\").asInt();\r\n\t\t\tJsonValue platformArgs = obj.get(\"positions\");\r\n\t\t\tJsonValue pathsArgs = obj.get(\"paths\");\r\n\r\n\t\t\tfor (int j = 0; j < platformArgs.size; j++) {\r\n\t\t\t\tfloat[] bounds = platformArgs.get(j).asFloatArray();\r\n\t\t\t\tfloat x = bounds[0], y = bounds[1], width = bounds[2], height = bounds[3];\r\n\t\t\t\tTextureRegion newXTexture;\r\n\t\t\t\tTextureRegion crumbleTexture = null;\r\n\t\t\t\tTexture originalTexture = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// temporary - need to refactor asset directory\r\n\t\t\t\t\tJsonValue assetName = obj.get(\"assetName\");\r\n\t\t\t\t\tint assetIndex = assetName.asInt();\r\n\t\t\t\t\tnewXTexture = new TextureRegion(tutorial_signs[assetIndex]);\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tint platIdx = platformType-1+(property - 1)*3;\r\n\t\t\t\t\tint crumbleIdx = platIdx + 3;\r\n\t\t\t\t\tnewXTexture = new TextureRegion(xTexture[platIdx]);\r\n\t\t\t\t\toriginalTexture = newXTexture.getTexture();\r\n\t\t\t\t\t// For crumble animation\r\n\t\t\t\t\tif (platIdx > 5) {\r\n\t\t\t\t\t\tcrumbleTexture = new TextureRegion(xTexture[crumbleIdx]);\r\n//\t\t\t\t\t\tcrumbleTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// If the platform size is the same as the spritesheet size\r\n\t\t\t\t\tif (originalTexture.getWidth() > 32 && width%(originalTexture.getWidth()/32) == 0) {\r\n\t\t\t\t\t\tnewXTexture = new TextureRegion(reducedXTexture[platIdx]);\r\n\t\t\t\t\t\toriginalTexture = newXTexture.getTexture();\r\n\t\t\t\t\t\tif (platIdx > 5) {\r\n\t\t\t\t\t\t\tcrumbleTexture = new TextureRegion(reducedXTexture[crumbleIdx]);\r\n//\t\t\t\t\t\t\tcrumbleTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n//\t\t\t\t\tnewXTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t}\r\n\t\t\t\tPlatformModel platformModel = new PlatformModel(bounds, platformType, property, newXTexture, scale,\r\n\t\t\t\t\t\tdefaults.getFloat( \"density\", 0.0f ), defaults.getFloat( \"friction\", 0.0f ) ,\r\n\t\t\t\t\t\tdefaults.getFloat( \"restitution\", 0.0f ), originalTexture, crumbleTexture);\r\n\t\t\t\tplatformModel.setTag(platformType);\r\n\t\t\t\tplatformModel.setProperty(property);\r\n\t\t\t\taddObject(platformModel);\r\n\t\t\t\taddObjectTo(platformModel, platformType);\r\n\t\t\t\t//TODO: Moving platforms\r\n\r\n\r\n\t\t\t\tif (pathsArgs != null) {\r\n\t\t\t\t\tfloat[] paths = pathsArgs.get(j).asFloatArray();\r\n\r\n\t\t\t\t\t//** Moving platform if > 1 path or different path from starting position\r\n\t\t\t\t\tif (hasValidPath(x, y, paths)) {\r\n\t\t\t\t\t\tplatformModel.setBodyType(BodyDef.BodyType.KinematicBody);\r\n\t\t\t\t\t\tmovingObjects.add(platformModel);\r\n\r\n\t\t\t\t\t\tPooledList<Vector2> pathList = new PooledList<>();\r\n\t\t\t\t\t\tfor (int k = 0; k < paths.length; k+=2) {\r\n\t\t\t\t\t\t\tpathList.add(new Vector2(paths[k], paths[k+1]));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tfloat velocity = 3;\r\n\r\n\t\t\t\t\t\tplatformModel.setGravityScale(0);\r\n\t\t\t\t\t\tplatformModel.setPaths(pathList);\r\n\t\t\t\t\t\tplatformModel.setVelocity(velocity);\r\n\r\n\t\t\t\t\t\tmovingObjects.add(platformModel);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// This world is heavier\r\n\t\tworld.setGravity( new Vector2(0,defaults.getFloat(\"gravity\",0)) );\r\n\r\n\t\t// Set level background index\r\n\t\tint backgroundTextureIndex = levelAssets.get(\"background\").asInt();\r\n\t\tbackgroundLightTexture = backgrounds[backgroundTextureIndex - 1];\r\n\t\tbackgroundDarkTexture = backgrounds[backgroundTextureIndex];\r\n\t\tbackgroundTexture = backgroundLightTexture;\r\n\r\n\t\t// Initialize background animations\r\n\t\tactualBackgroundTexture = backgroundTexture.getTexture();\r\n\t\tbackgroundEntirePixelWidth = actualBackgroundTexture.getWidth();\r\n\t\tbackgroundNumAnimFrames = (int)(backgroundEntirePixelWidth/backgroundFramePixelWidth);\r\n\t\tbackgroundAnimator = new FilmStrip(backgroundTexture,1, backgroundNumAnimFrames, backgroundNumAnimFrames);\r\n\t\tbackgroundAnimator.setFrame(0);\r\n\t\tbackgroundAnimeframe = 0;\r\n\t\tbackgroundOrigin = new Vector2(backgroundAnimator.getRegionWidth()/2.0f, backgroundAnimator.getRegionHeight()/2.0f);\r\n\r\n\t\t// Set level bounds\r\n\t\twidthUpperBound = levelAssets.get(\"dimensions\").getInt(0);\r\n\t\theightUpperBound = levelAssets.get(\"dimensions\").getInt(1);\r\n\r\n\t\t// Setup Somni\r\n\r\n\t\tJsonValue somniVal = levelAssets.get(\"somni\");\r\n\t\tfloat sWidth = somniTexture.getRegionWidth()/scale.x;\r\n\t\tfloat sHeight = somniTexture.getRegionHeight()/scale.y;\r\n\t\tfloat sX = somniVal.get(\"pos\").getFloat(0) + sWidth / 2;\r\n\t\tfloat sY = somniVal.get(\"pos\").getFloat(1) + sHeight / 2;\r\n\t\tsomni = new CharacterModel(constants.get(\"somni\"), sX, sY, sWidth, sHeight, platformController.somnif, CharacterModel.LIGHT);\r\n\t\tsomni.setDrawScale(scale);\r\n\t\tsomni.setTexture(somniIdleTexture);\r\n\t\tsomni.setFilterData(platformController.somnif);\r\n\t\tsomni.setActive(true);\r\n\t\taddObject(somni);\r\n\t\taddObjectTo(somni, LevelCreator.allTag);\r\n\r\n\r\n\t\t// Setup Phobia\r\n\r\n\t\tJsonValue phobiaVal = levelAssets.get(\"phobia\");\r\n\t\tfloat pWidth = phobiaTexture.getRegionWidth()/scale.x;\r\n\t\tfloat pHeight = phobiaTexture.getRegionHeight()/scale.y;\r\n\t\tfloat pX = phobiaVal.get(\"pos\").getFloat(0) + pWidth / 2;\r\n\t\tfloat pY = phobiaVal.get(\"pos\").getFloat(1) + pHeight / 2;\r\n\t\tphobia = new CharacterModel(constants.get(\"phobia\"), pX, pY, pWidth, pHeight, platformController.phobiaf, CharacterModel.DARK);\r\n\t\tphobia.setDrawScale(scale);\r\n\t\tphobia.setTexture(phobiaIdleTexture);\r\n\t\tphobia.setFilterData(platformController.phobiaf);\r\n\t\taddObject(phobia);\r\n\t\taddObjectTo(phobia, LevelCreator.allTag);\r\n\t\tphobia.setActive(true);\r\n\r\n\t\t// Setup Combined\r\n\r\n\t\tfloat cWidth = combinedTexture.getRegionWidth()/scale.x;\r\n\t\tfloat cHeight = combinedTexture.getRegionHeight()/scale.y;\r\n\r\n\t\tcombined = new CharacterModel(constants.get(\"combined\"), 0, 0, cWidth, cHeight, platformController.combinedf, CharacterModel.DARK);\r\n\t\tcombined.setDrawScale(scale);\r\n\t\tcombined.setTexture(somniPhobiaTexture);\r\n\t\t//combined.setTag();\r\n\t\tcombined.setFilterData(platformController.combinedf);\r\n\t\taddObject(combined);\r\n\t\taddObjectTo(combined, LevelCreator.allTag);\r\n\t\tcombined.setActive(true);\r\n\r\n\t\t//Remove combined\r\n\t\tobjects.remove(combined);\r\n\t\tsharedObjects.remove(combined);\r\n\t\tcombined.setActive(false);\r\n\r\n\t\taction = 0;\r\n\r\n\t\tPreferences prefs = GDXRoot.getPreferences();\r\n\t\tvolume = prefs.contains(\"volume\") ? prefs.getFloat(\"volume\") : defaults.getFloat(\"volume\",\r\n\t\t\t\t1.0f);\r\n//\t\tSystem.out.println(volume);\r\n\r\n\t\tplatformController.applyFilters(objects);\r\n\t}", "public void level1() {\n\t\tlevel = new Level(1); //Create Level object, passing 1 to constructor for level 1\n\t\tplayer = new Player(100, 100); //Set player y position); //Create player object, place in middle of screen, position will later be determined by level png\n\t}", "private void initLevel(){\r\n\t\tBetterSprite doodleSprite = (BetterSprite)(getGroup(\"doodleSprite\").getSprites()[0]);\r\n\t\tinitControls(doodleSprite);\r\n\t\tinitEvents();\r\n\t}", "public static final void initLevel()\n {\n current = new JARLevel();\n\n //assign blocks, enemies, the player and all items\n current.iWalls = new JARWall[]\n {\n new JARWall( 30 + 256, current.iLevelBoundY - 310 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 384, current.iLevelBoundY - 320 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 512, current.iLevelBoundY - 300 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 640, current.iLevelBoundY - 290 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 768, current.iLevelBoundY - 280 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 896, current.iLevelBoundY - 270 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1152, current.iLevelBoundY - 260 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1408, current.iLevelBoundY - 250 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 - 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 + 0, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 + 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 - 2 * 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 - 3 * 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 - 4 * 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n\n new JARWall( 30 + 1920, current.iLevelBoundY - 230 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 2100, current.iLevelBoundY - 230 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n\n new JARWall( 66, current.iLevelBoundY - 324, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n\n new JARWall( 0, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 128, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 256, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 384, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 512, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 640, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 768, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 896, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1024, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1152, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1280, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1408, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1536, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1664, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1792, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1920, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 2048, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 2176, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n };\n current.iEnemies = new JARPlayer[]\n {\n/*\n new JARPlayer( 500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_WEAK ),\n new JARPlayer( 1000, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_WEAK ),\n new JARPlayer( 1500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_WEAK ),\n new JARPlayer( 2000, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_WEAK ),\n new JARPlayer( 2500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG ),\n new JARPlayer( 3000, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG ),\n new JARPlayer( 3500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG ),\n new JARPlayer( 4000, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG ),\n new JARPlayer( 4500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG )\n*/\n };\n\n current.iPlayer = new JARPlayer( 0, GameObjectType.EPlayer, JARPlayerTemplate.USER );\n\n current.iItems = new JARItem[]\n {\n //new JARItem( 50, 700, JARItemType.ITEM_TYPE_COIN ),\n //new JARItem( 150, 700, JARItemType.ITEM_TYPE_COIN ),\n //new JARItem( 250, 700, JARItemType.ITEM_TYPE_COIN ),\n new JARItem( 550, 700, JARItemType.ITEM_TYPE_CHERRY ),\n new JARItem( 650, 700, JARItemType.ITEM_TYPE_CHERRY ),\n new JARItem( 750, 700, JARItemType.ITEM_TYPE_CHERRY ),\n new JARItem( 1050, 700, JARItemType.ITEM_TYPE_APPLE ),\n new JARItem( 1150, 700, JARItemType.ITEM_TYPE_APPLE ),\n new JARItem( 1250, 700, JARItemType.ITEM_TYPE_APPLE ),\n new JARItem( 1550, 700, JARItemType.ITEM_TYPE_ORANGE ),\n new JARItem( 1650, 700, JARItemType.ITEM_TYPE_ORANGE ),\n new JARItem( 1750, 700, JARItemType.ITEM_TYPE_ORANGE ),\n new JARItem( 2050, 700, JARItemType.ITEM_TYPE_PEAR ),\n new JARItem( 2150, 700, JARItemType.ITEM_TYPE_PEAR ),\n new JARItem( 2250, 700, JARItemType.ITEM_TYPE_PEAR ),\n new JARItem( 2550, 700, JARItemType.ITEM_TYPE_STRAWBERRY ),\n new JARItem( 2650, 700, JARItemType.ITEM_TYPE_STRAWBERRY ),\n new JARItem( 2750, 700, JARItemType.ITEM_TYPE_STRAWBERRY ),\n };\n }", "private void level7() {\n }", "public synchronized void generateLevel(Game game, int levelPack, int levelNumber) {\n\t\tInputStream in = null;\n\t\tString levelCode = levelPack + \"-\" + levelNumber;\n\t\ttry {\n\t\t\tin = game.getFileIO().readAsset(\"level\" + levelCode + \".txt\");\n\t\t\tList<String> layers = readLines(in);\n\t\t\t//set world height\n\t\t\tWORLD_HEIGHT = layers.size();\n\t\t\t\n\t\t\tfor(float i = 0, y = 0.5f + layers.size() - 1; i < layers.size(); i++, y -= 1) {\n\t\t\t\tString layer = layers.get((int)i);\n\t\t\t\t\n\t\t\t\tfor(float j = 0, x = 0.5f; j < layer.length(); j++, x += 1) {\n\t\t\t\t\tif(x > tempWidth) {\n\t\t\t\t\t\ttempWidth = x + 0.5f;\n\t\t\t\t\t}\n\t\t\t\t\tchar tile = layer.charAt((int)j);\n\t\t\t\t\t\n\t\t\t\t\tif(tile == 'T') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t} else if(tile == 'L') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t\tleftXLimit = x - 0.5f;\n\t\t\t\t\t} else if(tile == 'l') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t\trightXLimit = x + 0.5f;\n\t\t\t\t\t} else if(tile == 'M') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t\tminXLimit = x - 0.5f;\n\t\t\t\t\t} else if(tile == 'U') {\n\t\t\t\t\t\tSpike upSpike = new Spike(x, y);\n\t\t\t\t\t\tupSpikes.add(upSpike);\n\t\t\t\t\t} else if(tile == 'V') {\n\t\t\t\t\t\tSpike downSpike = new Spike(x, y);\n\t\t\t\t\t\tdownSpikes.add(downSpike);\n\t\t\t\t\t} else if(tile == 'R') {\n\t\t\t\t\t\tSpike rightSpike = new Spike(x, y);\n\t\t\t\t\t\trightSpikes.add(rightSpike);\n\t\t\t\t\t} else if(tile == 'J') {\n\t\t\t\t\t\tSpike leftSpike = new Spike(x, y);\n\t\t\t\t\t\tleftSpikes.add(leftSpike);\n\t\t\t\t\t} else if(tile == 'D') {\n\t\t\t\t\t\tDiamond diamond = new Diamond(x, y);\n\t\t\t\t\t\tdiamondBlocks.add(diamond);\n\t\t\t\t\t} else if(tile == 'G') {\n\t\t\t\t\t\tGold gold = new Gold(x, y);\n\t\t\t\t\t\tgoldBlocks.add(gold);\n\t\t\t\t\t} else if(tile == 'S') {\n\t\t\t\t\t\tSilver silver = new Silver(x, y);\n\t\t\t\t\t\tsilverBlocks.add(silver);\n\t\t\t\t\t} else if(tile == 'P') {\n\t\t\t\t\t\tplayer = new Player(x, y);\n\t\t\t\t\t\tplayer.velocity.y = 1;\n\t\t\t\t\t\trespawnPoint = new Vector2(x, y);\n\t\t\t\t\t} else if(tile == 'C') {\n\t\t\t\t\t\tCheckpoint checkpoint = new Checkpoint(x, y);\n\t\t\t\t\t\tcheckpoints.add(checkpoint);\n\t\t\t\t\t} else if(tile == 'F') {\n\t\t\t\t\t\tEndingFlag eflag = new EndingFlag(x, y);\n\t\t\t\t\t\teflags.add(eflag);\n\t\t\t\t\t} else if(tile == '#') {\n\t\t\t\t\t\tworldNumberG = (int)Math.ceil(y);\n\t\t\t\t\t\tlevelNumberG = (int)Math.ceil(x);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t\t\n\t\t\t//set max found width across map to permanent width for current world\n\t\t\tWORLD_WIDTH = tempWidth;\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t}\n\t}", "public void newlevel() {\n\t\tblack = new Background(COURT_WIDTH, COURT_HEIGHT); // reset background\n\t\tcannon = new Cannon(COURT_WIDTH, COURT_HEIGHT); // reset cannon\n\t\tdeadcannon = null;\n\t\tbullet = null;\n\t\tshot1 = null;\n\t\tshot2 = null;\n\t\t// reset top row\n\t\tfor (int i = 0; i < alien1.length; i++) {\n\t\t\talien1[i] = new Alien(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien1[i].pos_x = alien1[i].pos_x + 30*i;\n\t\t\talien1[i].v_x = level + alien1[i].v_x;\n\t\t}\n\t\t// reset second row\n\t\tfor (int i = 0; i < alien2.length; i++) {\n\t\t\talien2[i] = new Alien2(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien2[i].pos_x = alien2[i].pos_x + 30*i;\n\t\t\talien2[i].v_x = level + alien2[i].v_x;\n\t\t}\n\t\t// reset third row\n\t\tfor (int i = 0; i < alien3.length; i++) {\n\t\t\talien3[i] = new Alien3(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien3[i].pos_x = alien3[i].pos_x + 30*i;\n\t\t\talien3[i].v_x = level + alien3[i].v_x;\n\t\t}\n\t}", "public void levelBuilder() {\r\n\t\t//round 1\r\n\t\tEnemy[] round1Enemy = new Enemy[1];\r\n\t\tround1Enemy[0] = new Enemy();\r\n\t\t\tround1Enemy[0].type = 0;\r\n\t\t\tround1Enemy[0].imag = (MyFrame.refFrame).client.getOtherPlayer(0).getCardLeader().getCardImage();\r\n\t\t\tround1Enemy[0].position = new vec2(157, 0); \r\n\t\t\tround1Enemy[0].size = new vec2(185, 201); //X: 0~500 Y:250 lower\r\n\t\t\tround1Enemy[0].blood = (MyFrame.refFrame).client.getOtherPlayer(0).getHp();\r\n\t\t\tround1Enemy[0].currentBlood = (MyFrame.refFrame).client.getOtherPlayer(0).getHp();\r\n\t\t\tround1Enemy[0].attackCD = 0;\r\n\t\t\tround1Enemy[0].attack = 0;\r\n\t\t\tround1Enemy[0].initialCD = 0;\r\n\t\t\tround1Enemy[0].defense = 0;\r\n\t\t\t\r\n\t\tround[0].addEnemy(round1Enemy);\r\n\t}", "private void level4() {\n }", "private void Level1() {\n\t\tEngine eng = new Engine();\n\t\teng.Maingame();\n\t\tthis.setVisible(false);\n\t}", "private void populateLevel() {\n\t\t// Make the ragdoll\n\t\tragdoll = new RagdollModel(DOLL_POS.x, DOLL_POS.y);\n\t\tragdoll.setDrawScale(scale.x,scale.y);\n\t\tragdoll.setPartTextures(bodyTextures);\n\t\tragdoll.getBubbleGenerator().setTexture(bubbleTexture);\n\t\taddObject(ragdoll);\n\n\t\t// Create ground pieces\n\t\tPolygonObstacle obj;\n\t\tobj = new PolygonObstacle(WALL1, 0, 0);\n\t\tobj.setBodyType(BodyDef.BodyType.StaticBody);\n\t\tobj.setDensity(BASIC_DENSITY);\n\t\tobj.setFriction(BASIC_FRICTION);\n\t\tobj.setRestitution(BASIC_RESTITUTION);\n\t\tobj.setDrawScale(scale);\n\t\tobj.setTexture(earthTile);\n\t\tobj.setName(\"wall1\");\n\t\taddObject(obj);\n\n\t\tobj = new PolygonObstacle(WALL2, 0, 0);\n\t\tobj.setBodyType(BodyDef.BodyType.StaticBody);\n\t\tobj.setDensity(BASIC_DENSITY);\n\t\tobj.setFriction(BASIC_FRICTION);\n\t\tobj.setRestitution(BASIC_RESTITUTION);\n\t\tobj.setDrawScale(scale);\n\t\tobj.setTexture(earthTile);\n\t\tobj.setName(\"wall2\");\n\t\taddObject(obj);\n\n\t\tselector = new ObstacleSelector(world);\n\t\tselector.setTexture(crosshairTexture);\n\t\tselector.setDrawScale(scale);\n\t\t\n\t\t/*\n\t\tBodyDef groundDef = new BodyDef();\n\t\tgroundDef.type = BodyDef.BodyType.StaticBody;\n\t\tEdgeShape groundShape = new EdgeShape();\n\t\tgroundShape.set(-500.0f, 0.0f, 500.0f, 0.0f);\n\t\tground = world.createBody(groundDef);\n\t\tground.createFixture(groundShape,0);\n\t\t*/\n\t}", "public Group renderLevel() {\n\t\tGroup levelGroup = new Group();\n\t\tNode background = renderBackground(level);\n\t\tlevelGroup.getChildren().add(background);\n\t\tList<Sprite> textSpriteList = level.sprites().stream().filter(sprite -> sprite.isText()).collect(Collectors.toList());\n\t\ttextSpriteList.stream().forEach(textSprite -> levelGroup.getChildren().add(renderText(textSprite)));\n\t\tList<Sprite> imageSpriteList = level.sprites().stream().filter((sprite -> !sprite.isText())).collect(Collectors.toList());\n\t\timageSpriteList.stream().filter(sprite -> sprite.isActive()).forEach(sprite -> levelGroup.getChildren().add(renderSprite(sprite)));\n\t\treturn levelGroup;\n\t}", "public Level1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(560, 560, 1); \n prepare();\n gfs_level1 = new GreenfootSound(\"main.wav\");\n\n }", "@Override\r\n public void load()\r\n {\r\n\tLevel.openMap(\"maps/Level1.map\", _width, _height);\r\n\t_level = Level.getInstance();\r\n\tCamera.getInstance().setBounds(_level.getWorldBoundaries());\r\n\t_printText = new Text(TILESHEET_TEXTURE, \"0123456789xUPC\", 0, 244, 32, 37, 4, 24, 28);\r\n\t_coin = new Sprite(\"Coin\", 6, _height - 34, 24, 24, Tiles.get(COIN_ANIM), false);\r\n\t_1UP = new Sprite(\"1UP\", 200, _height - 42, 42, 42, Tiles.get(MUSHROOM_GREEN), false);\r\n\tSoundLibrary.getInstance().loop(MUSIC_LEVEL);\r\n\tMario.clearData();\r\n }", "public Levels()\r\n { \r\n super(1070, 570, 1);\r\n \r\n //Add the bottom platform in the menu screen\r\n platforms = new Platforms[7]; \r\n for (int i = 0; i < platforms.length; i++)\r\n {\r\n platforms[i] = new Platforms();\r\n }\r\n bottomPlatform();\r\n\r\n //Add the Potato (player)\r\n player = new Player();\r\n addObject (player, 100, 512); \r\n\r\n setBackground(\"menu.png\");\r\n }", "private void level5() {\n }", "private void level6() {\n }", "private void createLevelBoxes() {\n int totalRows = (LEVELS / LEVEL_COLUMNS_PER_SCREEN) + 1;\n \n // Calculate space between each level square\n int spaceBetweenRows = (CAMERA_HEIGHT / LEVEL_ROWS_PER_SCREEN) - LEVEL_PADDING;\n int spaceBetweenColumns = (CAMERA_WIDTH / LEVEL_COLUMNS_PER_SCREEN) - LEVEL_PADDING;\n \n //Current Level Counter\n int iLevel = 1;\n //Create the Level selectors, one row at a time.\n int boxX = LEVEL_PADDING, boxY = LEVEL_PADDING;\n for (int y = 0; y < totalRows; y++) {\n for (int x = 0; x < LEVEL_COLUMNS_PER_SCREEN; x++) {\n \n //On Touch, save the clicked level in case it's a click and not a scroll.\n final int levelToLoad = iLevel;\n \n if(iLevel >= mMaxLevelReached) {\n \t dotLevel = new Sprite(boxX, boxY, resourcesManager.level_dot_red_region, vbom) {\n @Override\n public boolean onAreaTouched(final TouchEvent pSceneTouchEvent, final float pTouchAreaLocalX, final float pTouchAreaLocalY) {\n if (levelToLoad >= mMaxLevelReached)\n iLevelClicked = -1;\n else\n iLevelClicked = levelToLoad;\n return false;\n }\n };\n }\n else {\n \tdotLevel = new Sprite(boxX, boxY, resourcesManager.level_dot_green_region, vbom) {\n @Override\n public boolean onAreaTouched(final TouchEvent pSceneTouchEvent, final float pTouchAreaLocalX, final float pTouchAreaLocalY) {\n if (levelToLoad >= mMaxLevelReached)\n iLevelClicked = -1;\n else\n iLevelClicked = levelToLoad;\n return false;\n }\n };\n }\n \n this.attachChild(dotLevel);\n \n this.attachChild(new Text(boxX, boxY - 5, resourcesManager.font, String.valueOf(iLevel), vbom));\n \n \n this.registerTouchArea(dotLevel);\n \n iLevel++;\n boxX += spaceBetweenColumns + LEVEL_PADDING;\n \n if (iLevel > LEVELS)\n break;\n }\n \n if (iLevel > LEVELS)\n break;\n \n boxY += spaceBetweenRows + LEVEL_PADDING;\n boxX = 50;\n }\n }", "public void nextLevel() {\n // stops the game\n world.stop();\n level++;\n switch (level) {\n case 2:\n // get a new world\n world = new Level2();\n // populates new world with Level2()\n world.populate(this);\n \n move.setObstacle(world.getObstacle());\n move2.setObstacle2(world.getObstacle2());\n drop.setBallDrop(world.getBallPlatform());\n view.setWorld(world);\n \n try {\n gameMusicL2 = new SoundClip(\"data/music2.wav\");\n gameMusicL2.loop();\n gameMusicL1.stop();\n } catch (UnsupportedAudioFileException|IOException|LineUnavailableException e) {\n System.out.println(e);\n }\n \n //JFrame debugView = new DebugViewer(world, 500, 500);\n break;\n case 3:\n // get a new world\n world = new Level3();\n // populates new world with Level3()\n world.populate(this);\n \n move.setObstacle(world.getObstacle());\n drop.setBallDrop(world.getBallPlatform());\n world.addStepListener(new MovingBlock(world.getBlock()));\n view.setWorld(world);\n \n try {\n gameMusicL3 = new SoundClip(\"data/music3.wav\");\n gameMusicL3.loop();\n gameMusicL2.stop();\n } catch (UnsupportedAudioFileException|IOException|LineUnavailableException e) {\n System.out.println(e);\n }\n \n //JFrame debugView = new DebugViewer(world, 500, 500); \n break;\n default:\n System.out.println(\"Congratulations, you have completed the game!\");\n System.exit(0);\n }\n world.start();\n }", "private static void standardize(LevelPack pack) {\n\t\t// TODO: kill this once we have the LevelPacks stored at a standardized\n\t\t// state.\n\n\t\t// If level header info was not stored originally, check to make sure\n\t\t// there are not nulls after the deserialization.\n\t\tif (pack.levels == null)\n\t\t\tpack.levels = new WorldList();\n\t\tif (pack.levelTitles == null)\n\t\t\tpack.levelTitles = new ArrayList<String>();\n\t\tif (pack.levelDescriptions == null)\n\t\t\tpack.levelDescriptions = new ArrayList<String>();\n\t\tif (pack.levelEmblems == null)\n\t\t\tpack.levelEmblems = new ImageList();\n\n\t\t// If the level header stuff wasn't originally stored, it may be\n\t\t// necessary to populate header info with dummy data. There will always\n\t\t// be at least one level title/description/emblem, even if the levels\n\t\t// themselves don't exist.\n\t\tpack.levelCount = Math.max(1, Math.max(pack.levels.size(),\n\t\t\t\tMath.max(pack.levelTitles.size(), Math.max(pack.levelDescriptions.size(), pack.levelEmblems.size()))));\n\t\twhile (pack.levelTitles.size() < pack.levelCount)\n\t\t\tpack.levelTitles.add(\"Unnamed level.\");\n\t\twhile (pack.levelDescriptions.size() < pack.levelCount)\n\t\t\tpack.levelDescriptions.add(\"No description.\");\n\t\twhile (pack.levelEmblems.size() < pack.levelCount)\n\t\t\tpack.levelEmblems.add((BufferedImage) UIBuilder.getImage(\"images/ice_cave.jpg\"));\n\n\t\t// The lock is something new added, but it defaults to false anyway.\n\n\t}", "public void loadLevel(PackEntity pack) {\n\t\tint curLevel = pack.getCurrentLevel();\n\t\tint totalLevel = pack.getNumberOfLevel();\n\t\t\n\t\tLog.i(TAG, \"current level: \" + pack.getCurrentLevel());\n\t\t//if complete all \n\t\tif (curLevel >= totalLevel) {\n\t\t\tcurLevel--;\n\t\t}\n\t\t\n\t\tSceneManager.getInstance().handleEpisodeSelection(pack.getId(), curLevel);\n\t}", "private void prepareLevel(){\n levelAnimation = true;\n\n // Reset the menace level\n menaceInterval = 1200;\n\n // Here we will initialize all the game objects\n // Make a new player space ship\n defender = new Defender(context, PlayableX, PlayableY, ExcessX);\n\n // Prepare the players bullet\n bullet = new Bullet(context, PlayableX, PlayableY, (float) 1.2);\n\n // Initialize the invadersBullets array\n for(int i = 0; i < invadersBullets.length; i++){\n invadersBullets[i] = new Bullet(context, PlayableX, PlayableY, (float) 0.80);\n }\n\n // Build an army of invaders\n numInvaders = 0;\n for(int column = 0; column < invadersColumn; column ++ ){\n for(int row = 0; row < invadersRow; row ++ ){\n invaders[numInvaders] = new Invader(context, row, column, PlayableX, PlayableY, ExcessX);\n numInvaders ++;\n }\n }\n invadersLeft = numInvaders;\n\n try {\n // Create objects of the 2 required classes\n AssetManager assetManager = context.getAssets();\n explosionEffect = new Bitmap[12];\n for (int i=0; i < 12; i++) {\n explosionEffect[i] = Bitmap.createScaledBitmap(BitmapFactory.decodeStream(assetManager.open(\"explosion/\" + (i + 1) + \".png\")), (int) (invaders[0].getLength()*1.75), (int) (invaders[0].getLength()*1.75), true);\n }\n } catch (IOException e) {\n e.printStackTrace();\n // Print an error message to the console\n Log.e(\"error\", \"failed to load explosion effect image files\");\n }\n\n }", "public void loadLevel(BufferedImage image) {\n\n\t\tif (stage == 1) {\n\t\t\tlevelLoader.loadLevel(image, ssTiles, ssPlayer, ssMonster, ssKeys);\n\t\t}\n\n\t\t/*\n\t\t * System.out.println(\"Hello from loadLevel\");\n\t\t * \n\t\t * \n\t\t * int w = image.getWidth();\n\t\t * int h = image.getHeight();\n\t\t * \n\t\t * \n\t\t * for(int xx = 0; xx < w; xx++) {\n\t\t * for (int yy = 0; yy < h; yy++) {\n\t\t * int pixel = image.getRGB(xx,yy);\n\t\t * int red = (pixel >> 16 ) & 0xff;\n\t\t * int green = (pixel >> 8) & 0xff;\n\t\t * int blue = (pixel) & 0xff;\n\t\t * //System.out.println(\"at x\" + xx + \" and y \"+ yy);\n\t\t * \n\t\t * \n\t\t * //if a pixel in the picture is red we render it as a block.\n\t\t * if(red == 255) {\n\t\t * handler.addObject(new Block(xx*32, yy*32, ID.Block,ssTiles));\n\t\t * }\n\t\t * \n\t\t * //if a pixel in the picture is blue, we render it as a player.\n\t\t * if(blue == 255 && green == 0) {\n\t\t * System.out.println(\"player object added\");\n\t\t * handler.addObject(new Wizard(xx*32,yy*32,ID.Player,handler,this,ssPlayer));\n\t\t * }\n\t\t * \n\t\t * if(green == 255 && blue == 0) {\n\t\t * \n\t\t * \n\t\t * handler.addObject(new Enemy(xx*32, yy*32, ID.Enemy, handler,ssMonster));\n\t\t * enemies++;\n\t\t * System.out.println(\"added enemy, total enemies: \" + enemies);\n\t\t * }\n\t\t * \n\t\t * \n\t\t * if(green == 255 && blue == 255) {\n\t\t * System.out.println(\"crate found\");\n\t\t * handler.addObject(new Crate(xx*32, yy*32, ID.Crate,ssTiles));\n\t\t * }\n\t\t * \n\t\t * //System.out.println(\"There is \" + handler.object.size() +\n\t\t * \" objects loaded! \");\n\t\t * \n\t\t * }\n\t\t * \n\t\t * }\n\t\t */\n\n\t}", "private void constructLevel(int level){\n gamePanel.removeAll();\n GridLayout layout = new GridLayout(grid.length,grid[0].length);\n gamePanel.setLayout(layout);\n gamePanel.setBackground(Color.BLACK);\n gamePanel.setFocusable(true);\n gamePanel.requestFocusInWindow();\n gamePanel.updateUI();\n }", "public void generateLevel() {\n\t\tfor (int y = 0; y < this.height; y++) {\n\t\t\tfor (int x = 0; x < this.width; x++) {\n\t\t\t\tif (x * y % 10 < 5)\n\t\t\t\t\ttiles[x + y * width] = Tile.GRASS.getId();\n\t\t\t\telse\n\t\t\t\t\ttiles[x + y * width] = Tile.STONE.getId();\n\t\t\t}\n\t\t}\n\t}", "public void levelUp1()\r\n {\r\n this.health = 900;\r\n Story.levelUp1Text();\r\n }", "@Override\n public void levelUp(){\n //System.out.println(\"Level: \" + getLevel());\n if (getLevel() > 5) return;\n\n /* System.out.println(\"\\n-------\");\n System.out.println(\"Level: \" + getLevel());\n System.out.println(\"Se va a aumentar: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n*/\n double percentage = growth(getLevel()) + growthRate;\n\n setHealth((int) (getHealth() + getHealth() * percentage));\n strokePerTime = (int) (strokePerTime + strokePerTime * percentage);\n\n // Aumenta el rango si el nivel es 3 o 5\n // Luego quedan muy rotos xD\n if (getLevel() % 2 != 0) range++;\n setLevel(getLevel() + 1);\n\n /* System.out.println(\"resultado: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n System.out.println(\"-------\\n\");*/\n }", "private void initLevel () \n {\n score = 0;\n scoreVisual = score;\n level = new Level(Constants.LEVEL_01);\n cameraHelper.setTarget(level.bird);\n initPhysics();\n }", "private void levelUp() {\n\t\t\n\t\tfor (ArrayList<Invader> row : enemyArray) {\n\t\t\tfor (Invader a : row) {\n\t\t\t\tif (a.getVisibility()) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tresetInvaders();\n\t\taddRow();\n\t\t\n\t\tenemyShotList.add(new Shot(0, 0, SHOT_WIDTH, SHOT_HEIGHT, 15));\n\t\tlevel++;\n\t\t\n\t\tint powerupx = (int) (Math.random()*(WIDTH-PLAYER_WIDTH));\n\t\tdouble poweruprandom = Math.random();\n\t\t\n\t\tif (poweruprandom < 0.25) {\n\t\t\tarmorPiercing.reset(powerupx);\n\t\t}\n\t\t\n\t\tif (poweruprandom >= 0.25 && poweruprandom < 0.5) {\n\t\t\texplosive.reset(powerupx);\n\t\t}\n\t}", "public void goNextLevel() {\r\n world.stop();\r\n levelMusic.close();\r\n if(level == 1) {\r\n level++;\r\n world = new Level2();\r\n world.populate(this);\r\n keyHandler.setBody(world.getPlayer());\r\n view.setWorld(world);\r\n controlPanel.setWorld(world);\r\n audioManager = new AudioManager();\r\n levelMusic = audioManager.getLevel2Sound();\r\n levelMusic.loop();\r\n world.start();\r\n }\r\n else if(level == 2) {\r\n level++;\r\n world = new Level3();\r\n world.populate(this);\r\n keyHandler.setBody(world.getPlayer());\r\n view.setWorld(world);\r\n controlPanel.setWorld(world);\r\n audioManager = new AudioManager();\r\n levelMusic = audioManager.getLevel3Sound();\r\n levelMusic.loop();\r\n world.start();\r\n }\r\n else {\r\n System.out.println(\"PLAYER SURVIVED\");\r\n System.exit(0);\r\n }\r\n }", "@Override\n\tpublic void levelUp() {\n\n\t}", "public void levelUp3()\r\n {\r\n this.health = 1600;\r\n Story.levelUp3Text();\r\n }", "public void initialize() {\r\n /**********************************/\r\n //this.numOfLives=new hitevent.Counter(START_NUM_LIVES);\r\n //this.blocksCounter = new hitevent.Counter(this.levelInformation.numberOfBlocksToRemove());\r\n //this.gui = new GUI(\"jumping\", WIDTH_SCREEN, HI_SCREEN);\r\n /*****************************************/\r\n //create new point to create the edges of the screen\r\n Point p1 = new Point(-5, 20);\r\n Point p2 = new Point(-5, -5);\r\n Point p3 = new Point(WIDTH_SCREEN - 20, -5);\r\n Point p4 = new Point(-5, HI_SCREEN - 15);\r\n //an array to the blocks of the edges\r\n Block[] edges = new Block[4];\r\n //create the adges of the screen\r\n Counter[] edgeCount = new Counter[4];\r\n edgeCount[0] = new Counter(1);\r\n edges[0] = new Block(new Rectangle(p1, WIDTH_SCREEN + 20, 25), Color.RED, edgeCount[0]);\r\n edgeCount[1] = new Counter(1);\r\n edges[1] = new Block(new Rectangle(p2, 25, HI_SCREEN + 20), Color.RED, edgeCount[1]);\r\n edgeCount[2] = new Counter(1);\r\n edges[2] = new Block(new Rectangle(p3, 25, HI_SCREEN + 20), Color.RED, edgeCount[2]);\r\n edgeCount[3] = new Counter(1);\r\n edges[3] = new Block(new Rectangle(p4, WIDTH_SCREEN + 20, 25), Color.RED, edgeCount[3]);\r\n\r\n //initilize the paddle\r\n initializePaddle();\r\n //sprite collection and game evnironment\r\n SpriteCollection sprite = new SpriteCollection();\r\n GameEnvironment game1 = new GameEnvironment();\r\n\r\n //add the Background of the level to the sprite collection\r\n this.addSprite(this.levelInformation.getBackground());\r\n //create score Indicator, lives Indicator and level name\r\n ScoreIndicator scoreIndicator1 = new ScoreIndicator(score);\r\n LivesIndicator livesIndicator1 = new LivesIndicator(numOfLives);\r\n LevelIndicator levelName = new LevelIndicator(this.levelInformation.levelName());\r\n\r\n game1.addCollidable((Collidable) this.paddle);\r\n sprite.addSprite((Sprite) this.paddle);\r\n sprite.addSprite((Sprite) scoreIndicator1);\r\n sprite.addSprite((Sprite) livesIndicator1);\r\n sprite.addSprite((Sprite) levelName);\r\n\r\n //add the paddle, score Indicator, lives Indicator and level name to the game\r\n this.paddle.addToGame(this);\r\n scoreIndicator1.addToGame(this);\r\n livesIndicator1.addToGame(this);\r\n levelName.addToGame(this);\r\n\r\n //initilize the Blocks\r\n initializeBlocks();\r\n\r\n }", "public static Level[] createPhaseTwoLevel(){\n\t\tLevel[] testLevels = new Level[1];\n\t\t\n\t\tSquare Level1Piece1[] = new Square[6]; \n\t\tLevel1Piece1[0] = new Square(0,0);\n\t\tLevel1Piece1[1] = new Square(1,0);\n\t\tLevel1Piece1[2] = new Square(2,0);\n\t\tLevel1Piece1[3] = new Square(3,0);\n\t\tLevel1Piece1[4] = new Square(4,0);\n\t\tLevel1Piece1[5] = new Square(5,0);\t\t\n\t\t\n\t\tSquare Level1Piece2[] = new Square[6]; \n\t\tLevel1Piece2[0] = new Square(0,1);\n\t\tLevel1Piece2[1] = new Square(0,0);\n\t\tLevel1Piece2[2] = new Square(1,0);\n\t\tLevel1Piece2[3] = new Square(2,0);\n\t\tLevel1Piece2[4] = new Square(3,0);\n\t\tLevel1Piece2[5] = new Square(4,0);\t\t\n\t\t\n\t\tSquare Level1Piece3[] = new Square[6]; \n\t\tLevel1Piece3[0] = new Square(0,0);\n\t\tLevel1Piece3[1] = new Square(0,1);\n\t\tLevel1Piece3[2] = new Square(0,2);\n\t\tLevel1Piece3[3] = new Square(1,0);\n\t\tLevel1Piece3[4] = new Square(1,1);\n\t\tLevel1Piece3[5] = new Square(1,2);\t\t\n\t\t\n\t\tSquare Level1Piece4[] = new Square[6]; \n\t\tLevel1Piece4[0] = new Square(0,0);\n\t\tLevel1Piece4[1] = new Square(1,0);\n\t\tLevel1Piece4[2] = new Square(1,1);\n\t\tLevel1Piece4[3] = new Square(1,2);\n\t\tLevel1Piece4[4] = new Square(1,3);\n\t\tLevel1Piece4[5] = new Square(2,3);\n\t\t\n\t\tSquare Level1Piece5[] = new Square[6]; \n\t\tLevel1Piece5[0] = new Square(2,0);\n\t\tLevel1Piece5[1] = new Square(2,1);\n\t\tLevel1Piece5[2] = new Square(1,1);\n\t\tLevel1Piece5[3] = new Square(0,1);\n\t\tLevel1Piece5[4] = new Square(0,2);\n\t\tLevel1Piece5[5] = new Square(1,2);\t\n\t\t\n\t\tSquare Level1Piece6[] = new Square[6]; \n\t\tLevel1Piece6[0] = new Square(2,0);\n\t\tLevel1Piece6[1] = new Square(2,1);\n\t\tLevel1Piece6[2] = new Square(1,1);\n\t\tLevel1Piece6[3] = new Square(0,1);\n\t\tLevel1Piece6[4] = new Square(1,2);\n\t\tLevel1Piece6[5] = new Square(2,2);\t\n\t\t\n\t\tArrayList<Piece> bullPenPieceArray=new ArrayList<Piece>();\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece1,Level1Piece1[0],2));\n\t\tbullPenPieceArray.get(0).setColor(Color.BLUE);\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece2,Level1Piece2[0],2));\n\t\tbullPenPieceArray.get(1).setColor(Color.GREEN);\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece3,Level1Piece3[0],2));\n\t\tbullPenPieceArray.get(2).setColor(Color.YELLOW);\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece4,Level1Piece4[0],2));\n\t\tbullPenPieceArray.get(3).setColor(Color.ORANGE);\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece5,Level1Piece5[0],2));\n\t\tbullPenPieceArray.get(4).setColor(Color.RED);\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece6,Level1Piece6[0],2));\n\t\tbullPenPieceArray.get(5).setColor(Color.PINK);\n\t\tBullpen bp = new Bullpen(bullPenPieceArray);\n\t\t\n\t\t\n\t\tSquare[] sq = new Square[36]; \n\t\tfor (int i1=0;i1<6;i1++){\n\t\t\tfor (int j=0;j<6;j++){\n\t\t\t\tsq[i1*6+j] = new Square(i1,j);\n\t\t\t}\n\t\t}\n\t\tSquare hitSquares[] = new Square[6]; \n\t\thitSquares[0] = new Square(0,0);\n\t\thitSquares[1] = new Square(1,0);\n\t\thitSquares[2] = new Square(2,0);\n\t\thitSquares[3] = new Square(3,0);\n\t\thitSquares[4] = new Square(4,0);\n\t\thitSquares[5] = new Square(5,0);\t\n\t\tHint hints = new Hint(hitSquares);\n\t\tBoard bd = new Board(sq);\n\t\tbd.sethint(hints);\n\t\t\n\t\ttestLevels[0] = new PuzzleLevel(0,GetLevelTpye(0%3),bd,bp,8);\n\t\ttestLevels[0].updateLevelStar(new Achievement(0));\n\t\t\n\t\treturn testLevels;\n\t}", "private void generateLevel() {\n\t\tgenerateBorder();\n\t\tfor (int y = 1; y < height - 1; y++) {\n\t\t\tfor (int x = 1; x < height - 1; x++) {\n\t\t\t\tif (random.nextInt(2) == 1) {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getGrass(), false, x, y);\n\t\t\t\t\trandForest(x, y);\n\t\t\t\t} else {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getDirt(), false, x, y);\n\t\t\t\t\trandOre(x, y);\n\t\t\t\t}\n\t\t\t\tif (x == 4 && y == 4) {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getGrass(), false, x, y);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public void levelUp2()\r\n {\r\n this.health = 1200;\r\n Story.levelUp2Text();\r\n }", "public MiniBossLevel() {\r\n super(\"background_final.png\");\r\n setStatDisplay();\r\n generateWorld(world);\r\n }", "@Override\n public void setup_level(GameController gameController) {\n\n super.setup_level(gameController);\n \n castle = new Castle (this, FINISH_BARREL_POSITION, gameController);\n \n {\n BoxShape bottom_sensor_shape = new BoxShape (250f,0.2f);\n Body ground = new StaticBody(this,bottom_sensor_shape);\n Sensor killer_sensor = new Sensor(ground, bottom_sensor_shape);\n ground.setPosition(new Vec2(170f,-7f));\n killer_sensor.addSensorListener(new Hero_killer_sensor(this));\n \n \n Shape left_wall_shape = new BoxShape(1, 20);\n StaticBody wall = new StaticBody(this, left_wall_shape);\n wall.setPosition(new Vec2(-3f, 20f));\n wall.addImage(new BodyImage(\"sprites/platforms/invisible_wall.png\"));\n }\n {\n \n \n get_platforms().add(new Platform(this, 8, new Vec2 (3f, -1f), \"TRUNK\"));\n get_platforms().add(new Platform(this, 5, new Vec2 (20f, 6f), \"CLOUD\"));\n get_coins().add(new Coin(this, new Vec2(22f, 12f)));\n get_coins().add(new Coin(this, new Vec2(24f, 12f)));\n get_coins().add(new Coin(this, new Vec2(26f, 12f)));\n get_platforms().add(new Platform(this, 18, new Vec2 (42f, 6f), \"CLOUD\")); \n get_dynamic_enemies().add(new Turtle_fly_enemy(new Vec2(44f,7f), 4, \"TURTLE\", this));\n \n \n get_platforms().add(new Platform(this, 4, new Vec2 (96f, 6f), \"CLOUD\")); \n get_fire_rods().add(new Fire_rod(this, new Vec2 (90f, 18f)));\n \n get_platforms().add(new Platform(this, 4, new Vec2 (118f, 6f), \"CLOUD\"));\n get_fire_rods().add(new Fire_rod(this, new Vec2 (112f, 18f)));\n \n get_platforms().add(new Platform(this, 4, new Vec2 (136f, 2f), \"CLOUD\"));\n get_fire_rods().add(new Fire_rod(this, new Vec2 (138f, 12f)));\n \n get_platforms().add(new Platform(this, 4, new Vec2 (148f, 8f), \"CLOUD\"));\n get_coins().add(new Coin(this, new Vec2(150f, 14f)));\n get_coins().add(new Coin(this, new Vec2(152f, 14f)));\n get_platforms().add(new Platform(this, 5, new Vec2 (164f, 8f), \"CLOUD\"));\n \n get_fire_rods().add(new Fire_rod(this, new Vec2 (179f, 4f)));\n get_dynamic_enemies().add(new Turtle_fly_enemy(new Vec2(167f,9f), 4, \"TURTLE\", this));\n \n get_platforms().add(new Platform(this, 5, new Vec2 (184f, 8f), \"CLOUD\"));\n get_dynamic_enemies().add(new Brown_enemy(new Vec2(187f, 9f), 4, \"BROWN\", this));\n \n get_platforms().add(new Platform(this, 3, new Vec2 (204, 8f), \"CLOUD\"));\n get_coins().add(new Coin(this, new Vec2(206f, 14f)));\n get_platforms().add(new Platform(this, 3, new Vec2 (214, 13f), \"CLOUD\"));\n \n get_fire_rods().add(new Fire_rod(this, new Vec2 (230f, 10.5f)));\n get_platforms().add(new Platform(this, 3, new Vec2 (228, 13f), \"CLOUD\"));\n \n get_fire_rods().add(new Fire_rod(this, new Vec2 (244f, 10.5f)));\n get_platforms().add(new Platform(this, 3, new Vec2 (242, 13f), \"CLOUD\"));\n get_coins().add(new Coin(this, new Vec2(246f, 19f)));\n get_coins().add(new Coin(this, new Vec2(246f, 21f)));\n get_coins().add(new Coin(this, new Vec2(244f, 19f)));\n get_coins().add(new Coin(this, new Vec2(244f, 21f)));\n get_fire_rods().add(new Fire_rod(this, new Vec2 (258f, 10.5f)));\n get_platforms().add(new Platform(this, 3, new Vec2 (256, 13f), \"CLOUD\"));\n \n get_platforms().add(new Platform(this, 3, new Vec2 (266, 18f), \"CLOUD\"));\n get_dynamic_enemies().add(new Brown_enemy(new Vec2(268f, 19.25f), 4, \"BROWN\", this));\n \n get_platforms().add(new Platform(this, 3, new Vec2 (276f, 5f), \"TRUNK\"));\n get_coins().add(new Coin(this, new Vec2(279f, 21f)));\n get_coins().add(new Coin(this, new Vec2(279f, 19f)));\n get_coins().add(new Coin(this, new Vec2(279f, 17f)));\n get_coins().add(new Coin(this, new Vec2(279f, 15f)));\n \n get_platforms().add(new Platform(this, 6, new Vec2 (292f, 4f), \"TRUNK\"));\n get_dynamic_enemies().add(new Turtle_fly_enemy(new Vec2(294f,6f), -4, \"TURTLE\", this));\n get_dynamic_enemies().add(new Turtle_fly_enemy(new Vec2(298f,6f), 4, \"TURTLE\", this));\n \n get_platforms().add(new Platform(this, 2, new Vec2 (312f, 5f), \"TRUNK\"));\n \n get_platforms().add(new Platform(this, 2, new Vec2 (322f, 8f), \"TRUNK\"));\n \n get_platforms().add(new Platform(this, 1, new Vec2 (333f, 11f), \"CLOUD\"));\n \n \n \n \n get_fire_rods().add(new Fire_rod(this, new Vec2 (351f, 11.5f)));\n get_platforms().add(new Platform(this, 1, new Vec2 (343f, 15f), \"CLOUD\"));\n get_platforms().add(new Platform(this, 1, new Vec2 (351, 15f), \"CLOUD\"));\n \n get_fire_rods().add(new Fire_rod(this, new Vec2 (357f, 27.5f)));\n \n get_platforms().add(new Platform(this, 2, new Vec2 (359, 15f), \"CLOUD\"));\n \n get_platforms().add(new Platform(this, 2, new Vec2 (373, 6f), \"TRUNK\"));\n get_pipes().add(new Pipe(this, new Vec2(374.3f,11f) , true));\n get_platforms().add(new Platform(this, 3, new Vec2 (389, 12f), \"CLOUD\"));\n get_dynamic_enemies().add(new Turtle_fly_enemy(new Vec2(391f,14f), -4, \"TURTLE\", this));\n \n get_platforms().add(new Platform(this, 20, new Vec2 (399, 3f), \"GROUND\"));\n \n \n \n \n \n\n }\n \n this.start();\n\n }", "private void buildWorld() {\r\n\t\tremoveAll();\r\n\t\tintro = null;\r\n\t\tfacingEast = true;\r\n\t\t\r\n\t\taddLevels();\r\n\t\taddCharacters();\r\n\t\taddLifeDisplay();\r\n\t}", "@Override\n public void upgrade(int level){\n System.out.println(\"Level adfasdfasdf: \" + level);\n System.out.println(getLevel());\n\n if(level > 5) level = 5;\n\n if(level > 1){\n for (int i = 1; i < level; i++) levelUp();\n }\n\n /*\n //System.out.println(\"\\n-------\");\n //System.out.println(\"Se va a aumentar: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n\n double percentage = growth(level);\n\n setHealth((int) (getHealth() + getHealth() * percentage));\n strokePerTime = (int) (strokePerTime + strokePerTime * percentage);\n\n // Aumenta el rango si el nivel es 3 o 5\n // Luego quedan muy rotos xD\n if (level % 2 != 0) range++;\n\n //System.out.println(\"resultado: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n //System.out.println(\"-------\\n\");*/\n }", "public abstract void levelComplete();", "public void onModuleLoad() {\n\t\t//create our main panel\n\t\tfinal DeckPanel panels = new DeckPanel(); \n\t\tRootPanel.get(\"panel\").add(panels);\n\t\t//create our stage panels\n\t\tfinal LoginPanel login = new LoginPanel(panels,wwwordzService);\n\t\tfinal GamePanel game = new GamePanel(panels,wwwordzService); \n\t\tfinal RankingPanel ranking = new RankingPanel(panels,wwwordzService);\n\t\t//add stage panels to main panel\n\t\tpanels.add(login);\n\t\tpanels.add(game);\n\t\tpanels.add(ranking);\n\t\tpanels.showWidget(0);\n\t\t\n\n\t}", "public Level(){\n\t\tlevel_image_pattern = \"default\";\n\t\t\n\t\timages = new HashMap <String, Image>();\n\t\tpickables = new ArrayList<Pickable>();\n\t\tplayer_initial_position = new int[2];\n\t\tplayer_initial_position[0] = 0;\n\t\tplayer_initial_position[1] = 0;\n\t\t\n\t\tconfig = Config.getInstance();\n\t\t\n\t}", "void levelanzeigen(){\n if(level==levelold){\n //TODO HARDWARE this.systeminterface.tab.setcolor(255,0,0);\n //TODO HARDWARE this.systeminterface.ledFeld.zahl(0,2,level);\n }else{\n //TODO HARDWARE this.systeminterface.ledFeld.setcolor(0,0,0);\n //TODO HARDWARE this.systeminterface.ledFeld.zahl(0,2,levelold);\n //TODO HARDWARE this.systeminterface.ledFeld.setcolor(255,0,0);\n //TODO HARDWARE this.systeminterface.ledFeld.zahl(0,2,level);\n levelold=level;\n }\n //TODO HARDWARE this.systeminterface.ledFeld.show();\n //TODO HARDWARE this.systeminterface.ledFeld.setRotation(1);\n }", "private void addLevels() {\r\n\t\tlevel1 = new Level();\r\n\t\tadd(level1, LEVEL_OFFSET, getHeight() - FIRST_LEVEL_VERTICAL_OFFSET);\r\n\t\t\r\n\t\tlevel2 = new Level();\r\n\t\tadd(level2, LEVEL_OFFSET, (level1.getY() * (2/3.0)) - level2.getHeight() / 2.0);\r\n\t\t\r\n\t\tlevel3 = new Level();\r\n\t\tadd(level3, LEVEL_OFFSET, (level1.getY() * (1/3.0)) - level3.getHeight() / 2.0);\r\n\t\t\r\n\t\tladder1 = new Ladder();\r\n\t\tadd(ladder1, getWidth() - ladder1.getWidth() * 1.5, level2.getY());\r\n\t\t\r\n\t\tladder2 = new Ladder();\r\n\t\tadd(ladder2, ladder2.getWidth() / 2.0, level3.getY());\r\n\t}", "public void initialize() {\r\n levelInformation.getBackground().addToGame(this);\r\n ScoreTrackingListener scoreTrackingListener = new ScoreTrackingListener(score);\r\n ScoreIndicator scoreIndicator = new ScoreIndicator(score, guiWidth);\r\n BlockRemover blockRemover = new BlockRemover(this, blockCounter);\r\n BallAdder ballAdder = new BallAdder(this, environment, ballCounter);\r\n BallRemover ballRemover = new BallRemover(this, ballCounter);\r\n for (Block blocks : levelInformation.blocks()) {\r\n Block block = blocks;\r\n if (block.getColor() == Color.black) {\r\n block.addHitListener(ballRemover);\r\n }\r\n if (block.getColor() == Color.magenta) {\r\n block.addHitListener(ballAdder);\r\n }\r\n block.addHitListener(blockRemover);\r\n block.addHitListener(scoreTrackingListener);\r\n block.addToGame(this);\r\n }\r\n blockCounter.increase(levelInformation.numberOfBlocksToRemove());\r\n Paddle paddle = new Paddle(new Rectangle(new Point((guiWidth / 2) - (levelInformation.paddleWidth() / 2),\r\n 580), levelInformation.paddleWidth(), 10), Color.YELLOW, keyboard, levelInformation.paddleSpeed());\r\n paddle.addToGame(this);\r\n Block top = new Block(new Rectangle(new Point(0, 0), 800, 20), Color.GRAY);\r\n Block left = new Block(new Rectangle(new Point(0, 10), wallWidth, 630), Color.GRAY);\r\n Block right = new Block(new Rectangle(new Point(guiWidth - wallWidth, 10), wallWidth, 630), Color.GRAY);\r\n Block bottom = new Block(new Rectangle(new Point(0, guiHeight), 800, 10), Color.GRAY);\r\n bottom.addToGame(this);\r\n right.addToGame(this);\r\n left.addToGame(this);\r\n top.addToGame(this);\r\n bottom.addHitListener(ballRemover);\r\n scoreIndicator.addToGame(this);\r\n }", "public levelTwo()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n prepare();\n }", "private GameObject spawnBossBubble(LogicEngine toRunIn, int i_level, int i_maxLevel)\r\n\t{\r\n\t\tfloat f_sizeMultiplier = 1 - ((float)i_level/(float)i_maxLevel);\r\n\t\t\r\n\t\tif(i_level == i_maxLevel)\r\n\t\t\treturn null;\r\n\t\telse\r\n\t\t{\r\n\t\t\tGameObject go = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/redcube.png\",toRunIn.SCREEN_WIDTH/2,LogicEngine.rect_Screen.getHeight()+50,0);\r\n\t\t\tgo.i_animationFrameRow = 0;\r\n\t\t\tgo.i_animationFrame =1;\r\n\t\t\tgo.i_animationFrameSizeWidth =40;\r\n\t\t\tgo.i_animationFrameSizeHeight =37;\r\n\t\t\tgo.f_forceScaleX = 2f * f_sizeMultiplier;\r\n\t\t\tgo.f_forceScaleY = 2f * f_sizeMultiplier;\r\n\t\t\tgo.v.setMaxForce(1);\r\n\t\t\tgo.v.setMaxVel(5);\r\n\t\t\tgo.stepHandlers.add( new BounceOfScreenEdgesStep());\r\n\t\r\n\t\t\t\r\n\t\t\tgo.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\t//initial velocity of first one \r\n\t\t\tgo.v.setVel(new Vector2d(0,-5));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tgo.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//if is last one\r\n\t\t\tif(i_level == i_maxLevel - 1)\r\n\t\t\t{\r\n\t\t\t\tHitpointShipCollision collision = new HitpointShipCollision(go,1, 40.0 * f_sizeMultiplier);\r\n\t\t\t\tgo.collisionHandler = collision;\r\n\t\t\t\tcollision.setSimpleExplosion();\r\n\t\t\t\t\r\n\r\n\t\t\t\treturn go;\r\n\t\t\t}\r\n\t\t\telse //has children\r\n\t\t\t{\r\n\t\t\t\tSplitCollision collision = new SplitCollision(go,2, 15.0 * f_sizeMultiplier);\r\n\t\t\t\tcollision.setSimpleExplosion();\r\n\t\t\t\t\r\n\t\t\t\tgo.collisionHandler = collision;\r\n\t\t\t\t\r\n\t\t\t\t//add children\t\t\t\t\r\n\t\t\t\tfor(int i=0;i<4;i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tGameObject go2 = spawnBossBubble(toRunIn,i_level+1,i_maxLevel);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(i==0)\r\n\t\t\t\t\t\tgo2.v.setVel(new Vector2d(-5,-5));\r\n\t\t\t\t\tif(i==1)\r\n\t\t\t\t\t\tgo2.v.setVel(new Vector2d(5,-5));\r\n\t\t\t\t\tif(i==2)\r\n\t\t\t\t\t\tgo2.v.setVel(new Vector2d(-5,5));\r\n\t\t\t\t\tif(i==3)\r\n\t\t\t\t\t\tgo2.v.setVel(new Vector2d(5,5));\r\n\t\t\t\t\r\n\t\t\t\t\tcollision.splitObjects.add(go2);\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\treturn go;\t\t\r\n\t\t}\r\n\t}", "private void loadLevel(int level) throws SQLException, IOException {\n\t\tString levelText = LorannDAO.chooseLevel(level);\n\t\tthis.onTheLevel = new IElement[this.getWidth()][this.getHeight()];\n\t\tString[] levelArray = levelText.split(\"\\n\");\n\t\t\n\t\tfor(int y = 0; y < height; y++) {\n\t\t\tfor(int x = 0; x < width; x++) {\n\t\t\t\tswitch(levelArray[y].toCharArray()[x]) {\n\t\t\t\t\tcase '3':\n\t\t\t\t\t\tthis.setCharacterPosition(new Point(x, y));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '5':\n\t\t\t\t\t\tthis.purses.add(new Purse(x, y, this));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '8':\n\t\t\t\t\t\tthis.energyBall = new CrystalEnergy(x,y,this);\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '9':\n\t\t\t\t\t\tthis.monsters.add(new Monster_2(this, x, y));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '6':\n\t\t\t\t\t\tthis.door = new Gate(x, y, this);\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '4':\n\t\t\t\t\t\tthis.monsters.add(new Monster_1(this, x, y));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'A':\n\t\t\t\t\t\tthis.monsters.add(new Monster_3(this, x, y));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'B':\n\t\t\t\t\t\tthis.monsters.add(new Monster_4(this, x, y));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault: \n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.getFromFileSymbol(levelArray[y].toCharArray()[x]));\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void buildMap() {\n // CUBES ENGINE INITIALIZATION MOVED TO APPSTATE METHOD\n // Here we init cubes engine\n CubesTestAssets.registerBlocks();\n CubesSettings blockSettings = CubesTestAssets.getSettings(this.app);\n blockSettings.setBlockSize(5);\n //When blockSize = 5, global coords should be multiplied by 3 \n this.blockScale = 3.0f;\n this.halfBlockStep = 0.5f;\n \n testTerrain = new BlockTerrainControl(CubesTestAssets.getSettings(this.app), new Vector3Int(4, 1, 4));\n testNode = new Node();\n int wallHeight = 3;\n //testTerrain.setBlockArea(new Vector3Int(0, 0, 0), new Vector3Int(32, 1, 64), CubesTestAssets.BLOCK_STONE);\n this.testTerrain.setBlockArea( new Vector3Int(3,0,43), new Vector3Int(10,1,10), CubesTestAssets.BLOCK_STONE); // Zone 1 Floor\n this.testTerrain.setBlockArea( new Vector3Int(3,1,43), new Vector3Int(10,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(3,1,52), new Vector3Int(10,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n this.testTerrain.setBlockArea( new Vector3Int(3,1,43), new Vector3Int(1,wallHeight,10), CubesTestAssets.BLOCK_WOOD); // West Wall\n this.testTerrain.setBlockArea( new Vector3Int(12,1,43), new Vector3Int(1,wallHeight,10), CubesTestAssets.BLOCK_WOOD); // East Wall\n \n this.testTerrain.removeBlockArea( new Vector3Int(12,1,46), new Vector3Int(1,wallHeight,4)); // Door A\n \n this.testTerrain.setBlockArea( new Vector3Int(12,0,45), new Vector3Int(13,1,6), CubesTestAssets.BLOCK_STONE); // Zone 2 Floor A\n this.testTerrain.setBlockArea( new Vector3Int(12,1,45), new Vector3Int(8,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(12,1,50), new Vector3Int(13,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n this.testTerrain.setBlockArea(new Vector3Int(19,0,42), new Vector3Int(6,1,3), CubesTestAssets.BLOCK_STONE); // Zone 2 Floor B\n this.testTerrain.setBlockArea( new Vector3Int(19,1,42), new Vector3Int(1,wallHeight,3), CubesTestAssets.BLOCK_WOOD); //\n this.testTerrain.setBlockArea( new Vector3Int(24,1,42), new Vector3Int(1,wallHeight,9), CubesTestAssets.BLOCK_WOOD); //\n \n this.testTerrain.setBlockArea( new Vector3Int(15,0,26), new Vector3Int(18,1,17), CubesTestAssets.BLOCK_STONE); // Zone 3 Floor\n this.testTerrain.setBlockArea( new Vector3Int(15,1,42), new Vector3Int(18,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(15,1,26), new Vector3Int(18,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n this.testTerrain.setBlockArea( new Vector3Int(15,1,26), new Vector3Int(1,wallHeight,17), CubesTestAssets.BLOCK_WOOD); // West Wall\n this.testTerrain.setBlockArea( new Vector3Int(32,1,26), new Vector3Int(1,wallHeight,17), CubesTestAssets.BLOCK_WOOD); // East Wall\n \n this.testTerrain.removeBlockArea( new Vector3Int(20,1,42), new Vector3Int(4,wallHeight,1)); // Door B\n this.testTerrain.removeBlockArea( new Vector3Int(15,1,27), new Vector3Int(1,wallHeight,6)); // Door C\n \n this.testTerrain.setBlockArea( new Vector3Int(10,0,26), new Vector3Int(5,1,8), CubesTestAssets.BLOCK_STONE); // Zone 4 Floor A\n this.testTerrain.setBlockArea( new Vector3Int(10,1,26), new Vector3Int(5,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(3,0,18), new Vector3Int(8,1,16), CubesTestAssets.BLOCK_STONE); // Zone 4 Floor B\n this.testTerrain.setBlockArea( new Vector3Int(3,1,18), new Vector3Int(1,wallHeight,16), CubesTestAssets.BLOCK_WOOD); // East Wall\n this.testTerrain.setBlockArea( new Vector3Int(10,1,18), new Vector3Int(1,wallHeight,9), CubesTestAssets.BLOCK_WOOD); // West Wall\n this.testTerrain.setBlockArea( new Vector3Int(3,1,33), new Vector3Int(13,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n \n this.testTerrain.setBlockArea( new Vector3Int(1,0,5), new Vector3Int(26,1,14), CubesTestAssets.BLOCK_STONE); // Zone 5\n this.testTerrain.setBlockArea( new Vector3Int(1,1,18), new Vector3Int(26,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(1,1,5), new Vector3Int(26,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n this.testTerrain.setBlockArea( new Vector3Int(1,1,5), new Vector3Int(1,wallHeight,14), CubesTestAssets.BLOCK_WOOD); // West Wall\n this.testTerrain.setBlockArea( new Vector3Int(26,1,5), new Vector3Int(1,wallHeight,14), CubesTestAssets.BLOCK_WOOD); // East Wall\n \n this.testTerrain.removeBlockArea( new Vector3Int(4,1,18), new Vector3Int(6,wallHeight,1)); // Door E\n \n // Populate the world with spawn points\n this.initSpawnPoints();\n \n //Add voxel world/map to collisions\n testTerrain.addChunkListener(new BlockChunkListener(){\n @Override\n public void onSpatialUpdated(BlockChunkControl blockChunk){\n Geometry optimizedGeometry = blockChunk.getOptimizedGeometry_Opaque();\n phyTerrain = optimizedGeometry.getControl(RigidBodyControl.class);\n if(phyTerrain == null){\n phyTerrain = new RigidBodyControl(0);\n optimizedGeometry.addControl(phyTerrain);\n bulletAppState.getPhysicsSpace().add(phyTerrain);\n }\n phyTerrain.setCollisionShape(new MeshCollisionShape(optimizedGeometry.getMesh()));\n }\n });\n \n testNode.addControl(testTerrain);\n rootNode.attachChild(testNode);\n }", "public void conjoin()\n\t{\n\t\tint width = level2.width + level3.width;\n\t\tint height = level2.height;\n\t\tLevel level4 = new Level(width, height);\n\t\tlevel4.map = new byte[width][height];\n\t\t// level4.data = new byte[width][height];\n\t\tlevel4.xExit = width - 5;\n\t\tint k = 0;\n\t\tfor (int i = 0; i < width; i++)\n\t\t{\n\t\t\tif(i < level2.width)\n\t\t\t{\n\t\t\t\tlevel4.map[i] = level2.map[i].clone();\n\t\t\t\t//level4.data[i] = level2.data[i];\n\t\t\t\tlevel4.spriteTemplates[i] = level2.spriteTemplates[i];\n\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlevel4.map[i] = level3.map[k].clone();\n\t\t\t\t//level4.data[i] = level3.data[k];\n\t\t\t\tlevel4.spriteTemplates[i] = level3.spriteTemplates[k];\n\t\t\t\tk++;\n\t\t\t}\n\n\t\t}\n\t\tlevel = level4;\n\t}", "public void createLevel(){\n for(LevelController rc: rooms ) {\n rc.loadContent();\n rc.setScreenListener(listener);\n rc.setCanvas(canvas);\n }\n }", "@Override\n\tpublic void init() {\n\t\t\n\t\t// Set your level dimensions.\n\t\t// Note that rows and columns cannot exceed a size of 16\n\t\tsetDimensions(4, 4);\n\t\t\n\t\t// Select your board type\n\t\tsetBoardType(BoardType.CHECKER_BOARD);\n\n\t\t// Select your grid colors.\n\t\t// You need to specify two colors for checker boards\n\t\tList<Color> colors = new ArrayList<Color>();\n\t\tcolors.add(new Color(255, 173, 179, 250)); // stale blue\n\t\tcolors.add(new Color(255, 255, 255, 255)); // white\n\t\tsetColors(colors);\n\t\t\n\t\t// Specify the level's rules\n\t\taddGameRule(new DemoGameRule());\n\t\t\n\t\t// Retrieve player IDs\n\t\tList<String> playerIds = getContext().getGame().getPlayerIds();\n\t\tString p1 = playerIds.get(0);\n\t\tString p2 = playerIds.get(1);\n\n\t\t// Add your entities to the level's universe\n\t\t// using addEntity(GameEntity) method\n\t\taddEntity(new Pawn(this, p1, EntityType.BLACK_PAWN, new Point(0, 0)));\n\t\taddEntity(new Pawn(this, p2, EntityType.WHITE_PAWN, new Point(3, 3)));\n\t}", "@Override\n\tpublic void showContents() {\n\t\tprogram.add(Background);\n\t\tprogram.add(lvl1);\n\t\tprogram.add(lvl2);\n\t\tprogram.add(lvl3);\n\t\tprogram.add(Back);\n\n\t}", "public GameManager() {\n\t\tobjects.add(new Player(4, 4, ComponentManager.getComponent(ComponentManager.ComponentType.AABB), ProjectileManager.ProjectileType.Bullet, ComponentManager.ComponentType.AABB));\n\t\t\n\t\n\t\t\n\t\tobjects.add(new Platform(new AABBComponent()));\n\t\t\n\t\tloadLevel(\"/levelImage2_0.png\");\n\t\t\n\t\t//мусор\n\t\t\n\t\t//p1 = null;\n\t\t\n\t\t\n\t\tPBParticle p1 = null;\n\t\tPBParticle p2 = null;\n\t\t\n\t\tPLink l1 = null;\n\t\t\n\t\tnumOfPart = 48;\n\t\t\n\t\tint colNum = numOfPart / 3;\n\t\t\n\t\t\n\t\tfor(int i = 0; i < numOfPart; i ++)\n\t\t{\n\t\t\t\n\t\t\t\n\t\t\tp2 = p1; \n\t\t\t\n\t\t\tp1 = new PBParticle( (float)((4 + i % colNum) * TS),(float) ((4 + i / colNum) * TS), (float)(Math.random()*5), (float)(Math.random()*5), 1, new CircleComponent());\n\t\t\t\n\t\t\t\n\t\t\t//связи диагональ левый верхний - правый нижний\n\t\t\t/*if(i / colNum > 0 && i % colNum < colNum - 1)//не первая строка и не последняя чатсица в строке\n\t\t\t{\n\t\t\t\tl1 = new PLink(p1, (PBParticle)objects.get(objects.size() - colNum + 1), 20, this.stiffness);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tsdlinks.add(l1);\n\t\t\t}\n\t\t\t\n\t\t\t//связи диагональ правый верхний - левый нижний\n\t\t\t\n\t\t\tif(i / colNum > 0 && i % colNum > 0) \n\t\t\t{\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tl1 = new PLink(p1, (PBParticle)objects.get(objects.size() - colNum - 1), 20, this.stiffness);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tmdlinks.add(l1);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//горизонтальные связи\n\t\t\t\n\t\t\t//первая итерация для создания связи не подходит\n\t\t\t\n\t\t\t//также для создания горизонтальной связи не подходит итерация\n\t\t\t//когда p1 на новой строке, а p2 а старой\n\t\t\t\n\t\t\t\n\t\t\tif(p2 != null && (p1.getPosY() - p2.getPosY()) == 0)\n\t\t\t{\n\t\t\t\tl1 = new PLink(p1, p2, 20, this.stiffness);\n\t\t\t\t\n\t\t\t\thlinks.add(l1);\n\t\t\t}\n\t\t\t\n\t\t\t//вертикальные связи\n\t\t\t\n\t\t\t//проверить не ноль ли при делении i на количество столбцов\n\t\t\t//если не ноль то я должен выбрать из массива ссылок элемент \n\t\t\t//порядковый номер которого \n\t\t\tif(i / colNum != 0) //не первая строка\n\t\t\t{\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tl1 = new PLink(p1, (PBParticle)objects.get(objects.size() - colNum ), 20, this.stiffness);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tvlinks.add(l1);\n\t\t\t}*/\n\t\t\t\n\t\t\t\n\t\t\tobjects.add(p1);\n\t\t}\n\t\t\n\n\t\t\n\t\t\n\t\t//p1 = new PBParticle( 12 * TS, 1 * TS, 0, 1, 1);\n\t\t//objects.add(p1);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tcamera = new Camera(\"player\");\n\t}", "public abstract boolean levelUp();", "public void setLevel(Level level) { this.currentLevel = level; }", "private void setup()\n {\n // TO STUDENTS: Add, revise, or remove methods as needed to define your own game's world\n //addLeftGround();\n //addFences();\n //addMetalPlateSteps();\n addClouds();\n addEnemy();\n addCoin();\n //addRightGround();\n // add a metal plate\n for(int i=0; i<=3; i+=1)\n {\n //location\n int x = 10 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=3; i+=1)\n {\n //location\n int x = 11 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=4; i+=1)\n {\n //location\n int x = 10 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 10 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=4; i+=1)\n {\n //location\n int x = 11 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 10 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=1; i+=1)\n {\n //location\n int x = 17 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=1; i+=1)\n {\n //location\n int x = 18 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=7; i+=1)\n {\n //location\n int x = 17 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 7 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=7; i+=1)\n {\n //location\n int x = 18 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 7 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=3; i+=1)\n {\n //location\n int x = 24 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=3; i+=1)\n {\n //location\n int x = 25 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=5; i+=1)\n {\n //location\n int x = 24 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 10 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=5; i+=1)\n {\n //location\n int x = 25 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 10 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=6; i+=1)\n {\n //location\n int x = 31 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n }\n\n // add a metal plate\n for(int i=0; i<=6; i+=1)\n {\n //location\n int x = 32 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n }\n\n // add a metal plate\n for(int i=0; i<=1; i+=1)\n {\n //location\n int x = 31 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 13 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=1; i+=1)\n {\n //location\n int x = 32 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 13 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=1; i+=1)\n {\n //location\n int x = 42 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=1; i+=1)\n {\n //location\n int x = 43 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=6; i+=1)\n {\n //location\n int x = 42 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 8 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=6; i+=1)\n {\n //location\n int x = 43 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 8 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=4; i+=1)\n {\n //location\n int x = 47 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=4; i+=1)\n {\n //location\n int x = 48 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=5; i+=1)\n {\n //location\n int x = 47 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 10 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=5; i+=1)\n {\n //location\n int x = 48 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 10 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=2; i+=1)\n {\n //location\n int x = 52 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=2; i+=1)\n {\n //location\n int x = 53 * TILE_SIZE + HALF_TILE_SIZE;\n int y = HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=6; i+=1)\n {\n //location\n int x = 52 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 8 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n // add a metal plate\n for(int i=0; i<=6; i+=1)\n {\n //location\n int x = 53 * TILE_SIZE + HALF_TILE_SIZE;\n int y = 8 * TILE_SIZE + HALF_TILE_SIZE + i * TILE_SIZE;\n\n MetalPlate plate = new MetalPlate(x,y);\n addObject(plate, x, y);\n } \n\n addHero();\n }", "public LevelInformation seperateLeveData() {\n try {\n // put the value of \"level_name\" in levelName\n String levelName = map.get(\"level_name\");\n // create a list of velocities\n List<Velocity> velocities = getVelocitiesForLevel();\n // find the speed of the paddle\n int paddleSpeed = Integer.parseInt(map.get(\"paddle_speed\"));\n // find the width of the paddle\n int paddleWidth = Integer.parseInt(map.get(\"paddle_width\"));\n // find the number of blocks\n int numOfBlocks = Integer.parseInt(map.get(\"num_blocks\"));\n // creating a list of blocks\n List<Block> blockList = createBlocks();\n String backround = map.get(\"background\");\n // create a level based on the Level Data\n LevelData oneLevel = new LevelData(levelName, velocities, paddleSpeed, paddleWidth, numOfBlocks, blockList);\n if (backround.contains(\"image\")) {\n backround = backround.replaceAll(\"[()]\", \"\");\n backround = backround.substring(5);\n // create an InputStream object\n InputStream imageIS = ClassLoader.getSystemClassLoader().getResourceAsStream(backround);\n Image image = null;\n // try to load the image\n try {\n image = ImageIO.read(imageIS);\n } catch (IOException e) {\n e.printStackTrace();\n } // set the backround\n oneLevel.setBackroundImage(image);\n imageIS.close();\n return oneLevel;\n } else {\n oneLevel.setBackroundColor(new ColorsParser().colorFromString(backround));\n return oneLevel;\n }\n } catch (Exception e) {\n messageToUser();\n }\n return null;\n }", "protected void levelUp() {\n\t\tlevel++;\n\t\t// set up floors for next level\n\t\tint[] nextFloors = floors[level];\n\t\tint[] nextFurnishing = furnishings[level];\n\t\tfor(int i = 0; i < nextFloors.length; i++) {\n\t\t\tFloor newFloor = game.getFloorByKey(nextFloors[i]);\n\t\t\ttiles[i].setFloor(newFloor);\n\t\t\tif(nextFurnishing[i] != 0) {\n\t\t\t\tFurnishingDirectory newFurn = game.getFurnishingByKey(nextFurnishing[i]);\n\t\t\t\tnew Furnishing(newFurn, tiles[i]);\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n String level = getLevel(\"./levels/original/lvl-1.txt\");\n MarioWorld setupWorld = new MarioWorld(null);\n setupWorld.visuals = false;\n setupWorld.initializeLevel(level, 1000 * 200);\n setupWorld.mario.isLarge = false;\n setupWorld.mario.isFire = false;\n setupWorld.update(new boolean[MarioActions.numberOfActions()]);\n\n // set level cutout width (0 means it will be set automatically)\n int levelCutoutTileWidth = 0;\n\n // create original OOP forward model\n MarioForwardModel originalModel = new MarioForwardModel(setupWorld.clone());\n\n // convert to slim OOP forward model\n MarioForwardModelSlim slimModel = Converter.originalToSlim(originalModel, levelCutoutTileWidth);\n\n // convert to bin model\n MarioForwardModelBin binModel = Converter.slimToBin(slimModel);\n }", "private BranchGroup getScene(){\n BranchGroup scene = new BranchGroup();\r\n\r\n // transformgroup zawierający robota oraz podłoże\r\n world = new TransformGroup();\r\n world.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\r\n world.setCapability(TransformGroup.ALLOW_CHILDREN_EXTEND);\r\n world.setCapability(TransformGroup.ALLOW_CHILDREN_READ);\r\n world.setCapability(TransformGroup.ALLOW_CHILDREN_WRITE);\r\n TransformGroup robotTg;\r\n\r\n // nasz robot pobrany z klasy Robot\r\n robotTg = robot.getGroup();\r\n robotTg.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\r\n world.addChild(robotTg);\r\n\r\n // tworzenie scian\r\n float szerokoscScian = 10f;\r\n makeWalls(szerokoscScian);\r\n\r\n // tworzenie podłoża\r\n TransformGroup ground = new TransformGroup();\r\n Shape3D gr = new MyShapes().makeGround(new Point3f(szerokoscScian, 0f, szerokoscScian),\r\n new Point3f(szerokoscScian, 0f, -szerokoscScian), new Point3f(-szerokoscScian, 0f, -szerokoscScian),\r\n new Point3f(-szerokoscScian, 0f, szerokoscScian));\r\n gr.setUserData(new String(\"ground\"));\r\n Appearance appGround = new Appearance();\r\n appGround.setTexture(createTexture(\"grafika/floor.jpg\"));\r\n gr.setAppearance(appGround);\r\n\r\n // detekcja kolizji dla ziemi\r\n CollisionDetector collisionGround = new CollisionDetector(gr, new BoundingSphere(), this, robot);\r\n ground.addChild(gr);\r\n world.addChild(collisionGround);\r\n world.addChild(ground);\r\n\r\n // światła\r\n Color3f light1Color = new Color3f(1.0f, 1.0f, 1.0f);\r\n Vector3f light1Direction = new Vector3f(4.0f, -7.0f, -12.0f);\r\n BoundingSphere bounds = new BoundingSphere(new Point3d(0.0, 0.0, 0.0), 100.0);\r\n\r\n DirectionalLight light1 = new DirectionalLight(light1Color, light1Direction);\r\n light1.setInfluencingBounds(bounds);\r\n scene.addChild(light1);\r\n\r\n // obiekt do podnoszenia\r\n object = new Sphere(0.15f, robot.createAppearance(new Color3f(Color.ORANGE)));\r\n object.getShape().setUserData(new String(\"object\"));\r\n objectTransform = new Transform3D();\r\n objectTransform.setTranslation(objPos);\r\n objectTg = new TransformGroup(objectTransform);\r\n objectTg.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\r\n objectTg.addChild(object);\r\n objectGroup = new BranchGroup();\r\n objectGroup.setCapability(BranchGroup.ALLOW_DETACH);\r\n objectGroup.addChild(objectTg);\r\n world.addChild(objectGroup);\r\n\r\n // klasa behavior która służy do obsługiwania klawiatury\r\n Moving moving = new Moving(robot);\r\n moving.setSchedulingBounds(bounds);\r\n world.addChild(moving);\r\n\r\n // klasa behavior która odświeża się 60 razy na sekundę i odpowiada ona np. za nagrywanie, odtworzenie nagrania\r\n // symulowanie grawitacji\r\n loop = new GameLoop(this, robot);\r\n loop.setSchedulingBounds(bounds);\r\n world.addChild(loop);\r\n\r\n // detekcja kolizji dla obiektu\r\n CollisionDetector collisionObject = new CollisionDetector(object.getShape(), new BoundingSphere(new Point3d(), 0.15), this, robot);\r\n world.addChild(collisionObject);\r\n\r\n scene.addChild(world);\r\n\r\n scene.compile();\r\n return scene;\r\n }", "public World(Game game, int levelPack, int levelNumber) {\n\t\tdiamondBlocks = new ArrayList<Diamond>();\n\t\tsilverBlocks = new ArrayList<Silver>();\n\t\tgoldBlocks = new ArrayList<Gold>();\n\t\tregTiles = new ArrayList<RegTile>();\n\t\tupSpikes = new ArrayList<Spike>();\n\t\tdownSpikes = new ArrayList<Spike>();\n\t\trightSpikes = new ArrayList<Spike>();\n\t\tleftSpikes = new ArrayList<Spike>();\n\t\tcheckpoints = new ArrayList<Checkpoint>();\n\t\teflags = new ArrayList<EndingFlag>();\n\t\t\n\t\t//init player missing\n\t\t\n\t\tgenerateLevel(game, levelPack, levelNumber);\n\t}", "protected abstract void applyLevel(Resources res);", "public void levelUp() {\n\t\t\tpauseGame(500);//pause the game, play a nice song, and make more bricks!\n\t\t\tmakeBricks(12,8);\n\t\t\tlevelUp.play();\n\t\t}", "@Override\n public void show() {\n batch = new SpriteBatch();\n stage = createStage();\n\n // create overlays\n hud = new GigagalHUD();\n victoryOverlay = new VictoryOverlay();\n gameoverOverlay = new GameOverOverlay();\n\n // determine input processor\n useOnScreenControl = (Gdx.app.getType() == Application.ApplicationType.Android // on mobile\n || Configs.instance.isDebugOnScreenControlEnabled() // or debugging\n );\n\n if (useOnScreenControl) {\n onscreenControl = new OnscreenControl();\n gameInputProcessor = new TouchProcessor(onscreenControl);\n } else {\n gameInputProcessor = new KeyPressProcessor();\n }\n\n Gdx.input.setInputProcessor(gameInputProcessor);\n\n // load new level\n startNewLevel();\n }", "@Override\r\n\tpublic Level LoadLevel(InputStream LevelLoad)throws IOException\r\n\t{\r\n\r\n\t\tBufferedReader read = new BufferedReader(new InputStreamReader(LevelLoad));\r\n\t\tString line;\r\n\t\tint column=0;\r\n\t\tint row=0;\r\n\t\tArrayList<String> ans= new ArrayList<String>();\r\n\t\twhile((line = read.readLine()) != null)\r\n\t\t{\r\n\t\t\tif (line.length() > row)\r\n\t\t\t{\r\n\t\t\t\trow = line.length();\r\n\t\t\t}\r\n\t\tcolumn++;\r\n\t\tans.add(line);\r\n\r\n\t\t}\r\n\t\tLevel level = new Level(column,row);\r\n\t\tcolumn = 0;\r\n\t\tfor(String resualt: ans)\r\n\t\t{\r\n\r\n\t\t\tfor(int i=0;i<resualt.length();i++)\r\n\t\t\t{\r\n\t\t\t\tswitch(resualt.charAt(i))\r\n\t\t\t\t{\r\n\t\t\t\t\tcase ' ':\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tItem item = new AbstractItems(new Position2D(column,i));\r\n\t\t\t\t\t\titem.setReprestive(' ');\r\n\t\t\t\t\t\tlevel.setUnmoveableMap(column,i,item);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase '#':\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tItem item = new AbstractItems(new Position2D(column,i));\r\n\t\t\t\t\t\titem.setReprestive('#');\r\n\t\t\t\t\t\tlevel.setUnmoveableMap(column,i,item);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase 'A':\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tItem item = new AbstractItems(new Position2D(column,i));\r\n\t\t\t\t\t\titem.setReprestive('A');\r\n\t\t\t\t\t\tlevel.setMoveableMap(column,i,item);\r\n\t\t\t\t\t\tlevel.setUnmoveableMap(column,i, new AbstractItems(new Position2D(column,i), ' '));\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase '@':\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tItem item = new AbstractItems(new Position2D(column,i));\r\n\t\t\t\t\t\titem.setReprestive('@');\r\n\t\t\t\t\t\tlevel.setMoveableMap(column,i,item);\r\n\t\t\t\t\t\tlevel.setUnmoveableMap(column,i, new AbstractItems(new Position2D(column,i), ' '));\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase 'o':\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tItem item = new AbstractItems(new Position2D(column,i));\r\n\t\t\t\t\t\titem.setReprestive('o');\r\n\t\t\t\t\t\tlevel.setUnmoveableMap(column,i,item);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tcolumn++;\r\n\t\t}\r\n\r\n\r\n\t\treturn level;\r\n\t}", "public Level(String name) {\n\t\t\n\t\tthis.name = name;\n\t\t\n\t\ttry {\n\t\t\tlevelType = new LevelType(DEFAULT_LEVEL_TYPE, true);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n//\t\tscreen = new Screen(300*3/SCREEN_SCALE, 168*3/SCREEN_SCALE, SCREEN_SCALE);\n\t\tscreen = new Screen(Game.width/SCREEN_SCALE, Game.height/SCREEN_SCALE, SCREEN_SCALE);\n\t\t\n\t\twidth = 800;\n//\t\theight = 500;\n\t\theight = 200;\n\t\t\n\t\tWall wall0 = new Wall(100,80,30,40);\n\t\tWall wall1 = new Wall(166,80,16,40);\n\t\t\n\t\t//Construct a default level\n\t\tFloor defaultFloor0 = new Floor(1,44,62, \"Floor 0\");\n\t\tFloor defaultFloor1 = new Floor(53,60,96, \"Floor 1\");\n\t\tFloor defaultFloor2 = new Floor(70,50,96, \"Floor 2\");\n\t\tFloor defaultFloor3 = new Floor(90,40,96, \"Floor 3\");\n\t\t\n\t\tPlatform pf0 = new Platform(186,40,100);\n\t\tPlatform pf1 = new Platform(130,80,36);\n\t\t\n\t\tBackground bg = new Background();\n\t\tadd(bg);\n\t\t\n\t\t//Background scrolling slower is probably going to have to wait a bit\n//\t\tBackgroundObject bgo = new BackgroundObject(100,25, 2);\n//\t\tadd(bgo);\n\t\t\n\t\tCoin c0 = new Coin(10, 44);\n\t\t\n\t\t\n\t\t//Note well- floors should be added in decreasing order of height, starting with the tallest.\n\t\t//\tWay to sort objects by a variable?\n\t\tadd(defaultFloor1);\n\t\tadd(defaultFloor2);\n\t\tadd(defaultFloor3);\n\t\tadd(defaultFloor0);\n\t\t\n\t\tadd(wall0);\n\t\tadd(wall1);\n\t\tadd(pf0);\n\t\tadd(pf1);\n\t\t\n\t\tadd(c0);\n\t\t\n\t}", "public static void main(String[] args) {\r\n //Instalizing the gui and the keyboard sensor\r\n GUI guiGame = new GUI(\"Arkanoid\", 800, 600);\r\n //Initializing and running the gameLevel.\r\n List<LevelInformation> levels = new ArrayList<LevelInformation>();\r\n //When run without parameters, your program should read a default level-sets file\r\n String path = \"level_sets.txt\";\r\n //Get level sets from args.\r\n if (args.length > 0) {\r\n path = args[0];\r\n }\r\n\r\n try {\r\n //Reading the level.\r\n LevelSpecificationReader li = new LevelSpecificationReader();\r\n GameFlow gameFlow = new GameFlow(new AnimationRunner(guiGame), guiGame.getKeyboardSensor()\r\n , guiGame.getDialogManager());\r\n //Input stream to get in the resources folder.\r\n InputStream is = ClassLoader.getSystemClassLoader().getResourceAsStream(\"level_sets.txt\");\r\n InputStreamReader reader = new InputStreamReader(is);\r\n //Running the game.\r\n Map<String, String> map = LevelSetsReader.getLevelSetMap(reader);\r\n //Reset the reader to read again the file.\r\n is = ClassLoader.getSystemClassLoader().getResourceAsStream(\"level_sets.txt\");\r\n reader = new InputStreamReader(is);\r\n List<List<LevelInformation>> levelSets = LevelSetsReader.getLevels(reader);\r\n gameFlow.createMenu(levelSets, map);\r\n\r\n\r\n guiGame.close();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "Level( int tiles_per_cam_width , int tiles_per_cam_height ) {\r\n\t\ttotal_scroll = 0;\r\n\t\tleft_map_scroll = 0;\r\n\t\tleft_map_width = 20;\r\n\t\tleft_map = 0;\r\n\t\tcollision = new int[2][];\r\n\t\t_load(0,0);\r\n\t\t_load(1,1);\r\n\t\tfor(int i=0; i<2; i++) {\r\n\t\t\tcamera[i]= new OrthographicCamera();\r\n\t\t\tcamera[i].setToOrtho(false, tiles_per_cam_width, \r\n\t\t\t\t\ttiles_per_cam_height ); }\r\n\t}", "private DungeonBotsMain() {\n\t\t// Does nothing.\n\t}", "public void runLevels() {\n int levelnum = 1;\n double speed = 1;\n while (true) {\n\n GameLevel level = new GameLevel(new Level(levelnum, speed),\n this.keyboardSensor, this.animationRunner, this.blocks,\n this.score, this.numLives);\n this.frameRate = level.getFrameRate();\n\n level.initialize();\n\n while (this.blocks.getValue() > 0 && this.numLives.getValue() > 0) {\n level.playOneTurn(frameRate);\n if (this.blocks.getValue() == 0) {\n\n break;\n }\n\n this.numLives.decrease(1);\n }\n levelnum++;\n speed += 0.5;\n\n if (this.numLives.getValue() <= 0) {\n break;\n }\n\n }\n\n this.animationRunner.run(new KeyPressStoppableAnimation(animationRunner.getGui().getKeyboardSensor(),\n KeyboardSensor.SPACE_KEY, new EndScreen(score.getValue(), false)), this.frameRate);\n\n showScore();\n\n score = new Counter(0);\n numLives = new Counter(numberLives);\n blocks = new Counter(0);\n\n }", "public void display() {\n String box = \"\\n+--------------------------------------------+\\n\";\n String header = \"| \" + name;\n String lvlStat = \"Lv\" + level;\n for (int i=0; i<42-name.length()-lvlStat.length(); i++) {\n header += \" \";\n }\n header += lvlStat + \" |\\n\";\n System.out.println(box + header + \"| \" + getHealthBar() + \" |\" + box);\n }", "@Override\n public void simpleInitApp() {\n setDisplayStatView(false);\n setDisplayFps(false);\n\n // just a blue box\n Box mesh = new Box(1, 1, 1);\n Geometry geom = new Geometry(\"Box\", mesh);\n Material mat = new Material(assetManager,\n \"Common/MatDefs/Misc/Unshaded.j3md\");\n mat.setColor(\"Color\", ColorRGBA.Blue);\n geom.setMaterial(mat);\n rootNode.attachChild(geom);\n\n // Display a line of text in the default font on depth layer 0\n guiFont = assetManager.loadFont(\"Interface/Fonts/Default.fnt\");\n distanceText = new BitmapText(guiFont);\n distanceText.setSize(guiFont.getCharSet().getRenderedSize());\n distanceText.move( // x/y coordinates and z = depth layer 0\n settings.getWidth() / 2 + 50,\n distanceText.getLineHeight() + 20,\n 0);\n guiNode.attachChild(distanceText);\n\n // Display a 2D image or icon on depth layer -2\n Picture frame = new Picture(\"User interface frame\");\n frame.setImage(assetManager, \"Interface/frame.png\", false);\n frame.move(settings.getWidth() / 2 - 265, 0, -2);\n frame.setWidth(530);\n frame.setHeight(10);\n guiNode.attachChild(frame);\n\n // Display a 2D image or icon on depth layer -1\n Picture logo = new Picture(\"logo\");\n logo.setImage(assetManager, \"Interface/Monkey.png\", true);\n logo.move(settings.getWidth() / 2 - 47, 2, -1);\n logo.setWidth(95);\n logo.setHeight(75);\n guiNode.attachChild(logo);\n }", "void createNewLevel(int level);", "private void initialize() {\n\n this.levelName = \"Green 3\";\n this.numberOfBalls = 2;\n int ballsRadius = 5;\n Color ballsColor = Color.white;\n this.paddleHeight = (screenHeight / 27);\n this.paddleWidth = (screenWidth / 8);\n this.paddleSpeed = 11;\n int surroundingBlocksWidth = 30;\n this.paddleColor = new Color(1.0f, 0.699f, 0.000f);\n this.paddleUpperLeft = new Point(screenWidth / 2.2, screenHeight - surroundingBlocksWidth\n - this.paddleHeight);\n Color backgroundColor = new Color(0.000f, 0.420f, 0.000f);\n this.background = new Block(new Rectangle(new Point(0, 0), screenWidth + 1\n , screenHeight + 2), backgroundColor);\n this.background.setNumber(-1);\n\n Color[] colors = {Color.darkGray, Color.red, Color.yellow, Color.blue, Color.white};\n int blocksRowsNum = 5;\n int blocksInFirstRow = 10;\n int blocksWidth = screenWidth / 16;\n int blockHeight = screenHeight / 20;\n int firstBlockYlocation = screenHeight / 4;\n int removableBlocks = 0;\n Block[][] stairs = new Block[blocksRowsNum][];\n //blocks initialize.\n for (int i = 0; i < blocksRowsNum; i++, blocksInFirstRow--) {\n int number;\n for (int j = 0; j < blocksInFirstRow; j++) {\n if (i == 0) {\n number = 2; //top row.\n } else {\n number = 1;\n }\n stairs[i] = new Block[blocksInFirstRow];\n Point upperLeft = new Point(screenWidth - (blocksWidth * (j + 1)) - surroundingBlocksWidth\n , firstBlockYlocation + (blockHeight * i));\n stairs[i][j] = new Block(new Rectangle(upperLeft, blocksWidth, blockHeight), colors[i % 5]);\n if (stairs[i][j].getHitPoints() != -2 && stairs[i][j].getHitPoints() != -3) { // not death or live block\n stairs[i][j].setNumber(number);\n removableBlocks++;\n }\n this.blocks.add(stairs[i][j]);\n }\n\n }\n this.numberOfBlocksToRemove = (int) (removableBlocks * 0.5); //must destroy half of them.\n this.ballsCenter.add(new Point(screenWidth / 1.93, screenHeight * 0.9));\n this.ballsCenter.add(new Point(screenWidth / 1.93, screenHeight * 0.9));\n List<Velocity> v = new ArrayList<>();\n v.add(Velocity.fromAngleAndSpeed(45, 9));\n v.add(Velocity.fromAngleAndSpeed(-45, 9));\n this.ballsFactory = new BallsFactory(this.ballsCenter, ballsRadius, ballsColor,\n screenWidth, screenHeight, v);\n\n //bodies.\n //tower.\n Block base = new Block(new Rectangle(new Point(surroundingBlocksWidth + screenWidth / 16, screenHeight * 0.7)\n , screenWidth / 6, screenHeight * 0.3), Color.darkGray);\n base.setNumber(-1);\n this.bodies.add(base);\n Block base2 = new Block(new Rectangle(new Point(base.getCollisionRectangle().getUpperLine()\n .middle().getX() - base.getWidth() / 6\n , base.getCollisionRectangle().getUpperLeft().getY() - base.getHeight() / 2.5), base.getWidth() / 3\n , base.getHeight() / 2.5), Color.gray);\n base2.setNumber(-1);\n this.bodies.add(base2);\n Block pole = new Block(new Rectangle(new Point(base2.getCollisionRectangle().getUpperLine().middle().getX()\n - base2.getWidth() / 6, base2.getCollisionRectangle().getUpperLeft().getY() - screenHeight / 3)\n , base2.getWidth() / 3, screenHeight / 3), Color.lightGray);\n pole.setNumber(-1);\n this.bodies.add(pole);\n\n double windowWidth = base.getWidth() / 10;\n double windowHeight = base.getHeight() / 7;\n double b = base.getWidth() / 12;\n double h = base.getHeight() / 20;\n for (int i = 0; i < 6; i++) { //windows of tower.\n for (int j = 0; j < 5; j++) {\n Block window = new Block(new Rectangle(new Point(base.getCollisionRectangle().getUpperLeft().getX() + b\n + (windowWidth + b) * j,\n base.getCollisionRectangle().getUpperLeft().getY() + h + (windowHeight + h) * i), windowWidth\n , windowHeight), Color.white);\n window.setNumber(-1);\n this.bodies.add(window);\n }\n }\n\n //circles on the top of the tower.\n Circle c1 = new Circle(pole.getCollisionRectangle().getUpperLine().middle().getX()\n , pole.getCollisionRectangle().getUpperLine().middle().getY() - 17, 17, Color.black, \"fill\");\n Circle c2 = new Circle(pole.getCollisionRectangle().getUpperLine().middle().getX()\n , pole.getCollisionRectangle().getUpperLine().middle().getY() - 17, 12, Color.darkGray, \"fill\");\n Circle c3 = new Circle(pole.getCollisionRectangle().getUpperLine().middle().getX()\n , pole.getCollisionRectangle().getUpperLine().middle().getY() - 17, 7, Color.red, \"fill\");\n this.bodies.add(c1);\n this.bodies.add(c2);\n this.bodies.add(c3);\n\n\n }", "private void generateNextChunk() {\n \n chunkNumber++;\n \n // generate a chunk filled with content\n List<Object> list = chunkFactory.generateChunk(chunkNumber);\n Vector3f newChunkPosition =\n new Vector3f(nextChunkX, 0f, 0f);\n nextChunkX += P.chunkLength;\n\n for (Object object : list) {\n if (object instanceof Spatial) {\n Spatial spatial = (Spatial) object;\n addToLevel(spatial, spatial.getLocalTranslation().add(newChunkPosition));\n } else if (object instanceof SpotLight) {\n SpotLight light = (SpotLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition));\n } else if (object instanceof PointLight) {\n PointLight light = (PointLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition)); \n }\n }\n\n }", "@Override\n public void update(float tpf) {\n \n tempVec = this.player.getLocalTranslation();\n leftBound = tempVec.getX() - P.minLeftDistance;\n rightBound = tempVec.getX() + P.minRightDistance;\n lowerBound = tempVec.getY() - P.minDownDistance;\n \n \n for (Spatial spatial : getAllLevelObjects()) {\n if (isOutsideLevelBounds(spatial.getLocalTranslation())) {\n removeFromLevel(spatial);\n /* the background node (wall and window) acts as a checkpoint –\n * when it is removed, we know that we need more level\n */\n if (spatial.getName().equals(\"background\")) {\n generateNextChunk();\n //showLevelProgress();\n }\n }\n }\n int numLights = 0;\n for (Light light : this.gameNode.getLocalLightList()) {\n numLights++;\n if (light instanceof PointLight) {\n if (isOutsideLevelBounds(((PointLight)light).getPosition())) {\n this.gameNode.removeLight(light);\n }\n } else if (light instanceof SpotLight) {\n if (isOutsideLevelBounds(((SpotLight)light).getPosition())) {\n this.gameNode.removeLight(light);\n }\n }\n }\n for (Light light : this.gameNode.getLocalLightList()) {\n if (light instanceof PointLight) {\n if (isOutsideLevelBounds(((PointLight)light).getPosition())) {\n this.gameNode.removeLight(light);\n }\n } else if (light instanceof SpotLight) {\n if (isOutsideLevelBounds(((SpotLight)light).getPosition()) && !P.playerSpot.equals(light.getName())) {\n this.gameNode.removeLight(light);\n }\n }\n }\n if(numLights >= 2) {\n InGameState.totalLightSources += numLights-1;\n }\n InGameState.lightSamples++;\n //System.out.println(\"-------------------LIGHTS: \" + numLights);\n }", "int getLevel();", "int getLevel();", "int getLevel();", "int getLevel();", "int getLevel();", "@Override\r\n\tpublic Level LoadLevel(InputStream LevelLoad) throws IOException {\r\n\t\tBufferedReader read = new BufferedReader(new InputStreamReader(LevelLoad));\r\n\t\tString line;\r\n\t\tint column = 0;\r\n\t\tint row = 0;\r\n\t\tArrayList<String> ans = new ArrayList<String>();\r\n\t\tString name = read.readLine();\r\n\t\twhile ((line = read.readLine()) != null) {\r\n\t\t\tif (line.length() > row) {\r\n\t\t\t\trow = line.length();\r\n\t\t\t}\r\n\t\t\tcolumn++;\r\n\t\t\tans.add(line);\r\n\r\n\t\t}\r\n\t\tLevel level = new Level(column, row);\r\n\t\tlevel.setName(name);\r\n\t\tcolumn = 0;\r\n\t\tfor (String resualt : ans) {\r\n\t\t\tfor (int i = 0; i < resualt.length(); i++) {\r\n\t\t\t\tswitch (resualt.charAt(i)) {\r\n\t\t\t\tcase ' ': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive(' ');\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, item);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase '#': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive('#');\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, item);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 'A': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive('A');\r\n\t\t\t\t\tlevel.setMoveableMap(column, i, item);\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, new AbstractItems(new Position2D(column, i), ' '));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase '@': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive('@');\r\n\t\t\t\t\tlevel.setMoveableMap(column, i, item);\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, new AbstractItems(new Position2D(column, i), ' '));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 'o': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive('o');\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, item);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tcolumn++;\r\n\t\t}\r\n\r\n\t\treturn level;\r\n\t}", "public Level(int levelNumber)\r\n\t{\t\r\n\t\tlevelNum = levelNumber;\r\n\t\tlevelFileName = \"level\"+levelNum+\".txt\";\r\n\t\tlistFileName = \"level\"+levelNum+\"items.txt\";\r\n\t\tmakeCommonObjects();\r\n\t\tgrid = new Grid(levelFileName);\r\n\t\tGridSquare startSquare = grid.startLocation();\r\n\t\tplayer = new Player((int)startSquare.rect.x,(int)startSquare.platform.getBoundingRectangle().y+3);\r\n\t\tAndroidGame.camera.position.x = player.getX();\r\n\t\tAndroidGame.camera.position.y = player.getY();\r\n\t\tbackground = new Background(levelNumber, grid);\r\n\t\tdoorBubble = new OffScreenBubble(grid.getFinish());\r\n\t\tif(grid.getKey()!=null)\r\n\t\t{\r\n\t\t\thasKey = true;\r\n\t\t\tkeyBubble = new OffScreenBubble(grid.getKey());\r\n\t\t}\r\n\t\tplayer.reset(grid);\r\n\t}", "@Override\r\n public String levelName() {\r\n return \"Green 3\";\r\n }", "public Level()\n {\n //Initialise Tile Types\n try \n {\n //Dynamically assign texture paints\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/surface.jpg\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/rover.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/rock.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/mineral.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/target.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/warning.png\")), tile));\n } catch(FileNotFoundException fnfe) {\n System.out.println(\"ERROR: Invalid texture paint, file not found\" + fnfe);\n }\n catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "public GameLevel LoadGame() throws IOException {\n FileReader fr = null;\n BufferedReader reader = null;\n\n try {\n System.out.println(\"Reading \" + fileName + \" data/saves.txt\");\n\n fr = new FileReader(fileName);\n reader = new BufferedReader(fr);\n\n String line = reader.readLine();\n int levelNumber = Integer.parseInt(line);\n\n //--------------------------------------------------------------------------------------------\n\n if (levelNumber == 1){\n gameLevel = new Level1();\n } else if(levelNumber == 2){\n gameLevel = new Level2();\n JFrame debugView = new DebugViewer(gameLevel, 700, 700);\n } else {\n gameLevel = new Level3();\n }\n\n //------------------------------------------------------------------------------------------\n\n\n while ((line = reader.readLine()) != null){\n String[] tokens = line.split(\",\");\n String className = tokens[0];\n float x = Float.parseFloat(tokens[1]);\n float y = Float.parseFloat(tokens[2]);\n Vec2 pos = new Vec2(x, y);\n Body platform = null;\n\n if (className.equals(\"PlayableCharacter\")){\n PlayableCharacter playableCharacter = new PlayableCharacter(gameLevel, PlayableCharacter.getItemsCollected(),PlayableCharacter.isSpecialGravity(),game);\n playableCharacter.setPosition(pos);\n gameLevel.setPlayer(playableCharacter);\n\n }\n\n if (className.equals(\"LogPlatform\")){\n Body body = new LogPlatform(gameLevel, platform);\n body.setPosition(pos);\n }\n\n if (className.equals(\"Coin\")){\n Body body = new Coin(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(new Pickup(gameLevel.getPlayableCharacter(), game));\n }\n\n if (className.equals(\"ReducedGravityCoin\")){\n Body body = new ReducedGravityCoin(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(\n new PickupRGC(gameLevel.getPlayer(), game)\n\n );\n }\n\n if (className.equals(\"AntiGravityCoin\")){\n Body body = new AntiGravityCoin(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(\n new PickupAGC(gameLevel.getPlayer(), game) );\n }\n\n if (className.equals(\"Rock\")){\n Body body = new Rock(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(\n new FallCollisionListener(gameLevel.getPlayableCharacter(), game));\n }\n\n if (className.equals(\"Pellet\")){\n Body body = new Pellet(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(\n new AddLifeCollisionListener(gameLevel.getPlayer(), game));\n }\n\n if (className.equals(\"Branch\")){\n Body body = new Branch(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(new BranchListener(gameLevel.getPlayableCharacter(), game));\n }\n\n if (className.equals(\"Portal\")){\n Body portal = new Portal(gameLevel);\n portal.setPosition(pos);\n portal.addCollisionListener(new DoorListener(game));\n }\n\n if (className.equals(\"DeathPlatform\")){\n float w = Float.parseFloat(tokens[3]);\n float h = Float.parseFloat(tokens[4]);\n float deg = Float.parseFloat(tokens[5]);\n\n Body body = new DeathPlatform(gameLevel, w, h);\n body.setPosition(pos);\n body.addCollisionListener(new FallCollisionListener(gameLevel.getPlayer(), game));\n body.setFillColor(Color.black);\n body.setAngleDegrees(deg);\n\n }\n\n }\n\n return gameLevel;\n } finally {\n if (reader != null) {\n reader.close();\n }\n if (fr != null) {\n fr.close();\n }\n }\n }", "public static void mainDemo(String[] args){\r\n\t\t\t\r\n\t\tDisplayManager.createDisplay();\r\n\t\tAudioMaster.init();\r\n\t\tLoader loader = new Loader();\r\n\t\t\r\n\t\tTextMaster.init(loader);\r\n\t\tFontType font = new FontType(loader.loadTextureWithBias(MyPaths.makeTexturePath(\"font/candara\"), 0.0f),\r\n\t\t\t\tnew File(MyPaths.makeFontPath(\"candara\")));\r\n\t\t\r\n\t\tPage homepage = new Page();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tLoadPage.load(homepage, loader, \"/html/homepage.html\");\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t/* Finished with test fonts */\r\n\t\t\r\n\t\t/* Load fbos */\r\n\t\t\r\n\t\tMinimapFrameBuffer fbos = new MinimapFrameBuffer();\r\n\r\n\t\tLevel level = new Level(loader);\r\n\r\n\t\ttry {\r\n\t\t\tLoadMap.load(\"default-map\", level);\r\n\t\t} catch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t/* Load test minimap */\r\n\r\n\t\tGuiTexture minimap = new GuiTexture(fbos.getReflectionTexture(),\r\n\t\t\t\tnew Vector2f(0.83f, 0.78f), new Vector2f(0.14f, 0.18f));\r\n\t\tlevel.getGuis().add(minimap);\r\n\t\t\r\n\t\tFbo main_fbo = new Fbo(Display.getWidth(), Display.getHeight(), Fbo.DEPTH_RENDER_BUFFER);\r\n\t\tPostProcessing.init(loader);\r\n\t\t\r\n\t\t/* Gameloop below */\r\n\t\t\r\n\t\tboolean gameloop = false;\r\n\t\tPage currentPage = homepage;\r\n\t\t\r\n\t\twhile(!Display.isCloseRequested()){\r\n\t\t\t\r\n\t\t\tif(!gameloop){\r\n\t\t\t\trender(level.getmRenderer(), currentPage);\r\n\t\t\t\tcurrentPage = currentPage.update(loader);\r\n\t\t\t\tgameloop = currentPage == null;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tfloat dt = DisplayManager.getDelta();\r\n\t\t\t\tmandatoryUpdates(level, dt);\r\n\t\t\t\ttestColorFunction(level.getPicker(), font);\r\n\t\t\t\tinteractWithGuis(level);\r\n\t\t\t\trender(level, fbos, main_fbo, false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tPostProcessing.cleanUp();\r\n\t\tmain_fbo.cleanUp();\r\n\t\tTextMaster.cleanUp();\r\n\t\tlevel.getmRenderer().cleanUp();\r\n\t\tloader.cleanUP();\r\n\t\tDisplayManager.closeDisplay();\r\n\t\tAudioMaster.cleanUp();\r\n\t}", "private void initNewLevel() {\n\t\tmaze = new Maze(\"maze.xml\");\n\t\tPoint position = Cell.positionOfCell(26, 13);\n\t\tposition.x += 7;\n\t\tif (highScore.getScore() == 0)\n\t\t\tpacman = new Pacman(maze, position, maze.cellAt(26, 13),\n\t\t\t\t\tDirection.RIGHT, 3);\n\t\telse\n\t\t\tpacman = new Pacman(maze, position, maze.cellAt(26, 13),\n\t\t\t\t\tDirection.RIGHT, pacman.getNumberOfLives());\n\t\tinitGhosts();\n\n\t\ttimer.stop();\n\t\tlevelStartTimer.restart();\n\t}", "public void FinishTheGame(){\r\n if(blockList.HasNoBlocks()){\r\n gamePage.NextLevel();\r\n }\r\n }", "@Override\n public void afterWorldInit() {\n }", "public void setLevel(int level) { \r\n\t\tthis.level = level; \r\n\t}", "private void loadFrames(int level)\n {\n //Clear out any past frames, reset iFrame counter\n frames.clear();\n iFrame = 0;\n //Switch statement not possible due to redeclaration\n // Refactor needed if no. of levels exceeds 10\n if(level==0)\n {\n //Level zero does not allow user control, just a splashscreen\n }\n else if(level == 1)\n {\n LevelOne userCode = new LevelOne();\n userCode.main();\n }\n else if(level == 2)\n {\n LevelTwo userCode = new LevelTwo();\n userCode.main();\n }\n else if(level == 3)\n {\n LevelThree userCode = new LevelThree();\n userCode.main();\n }\n else if(level == 4)\n {\n LevelFour userCode = new LevelFour();\n userCode.main();\n }\n else if(level == 5)\n {\n LevelFive userCode = new LevelFive();\n userCode.main();\n }\n else\n {\n System.out.println(\"Invalid level\");\n }\n }", "@Override\n public int getLevelNumber() {\n return 0;\n }", "@Override\n public void world() {\n super.world();\n }", "void printLevel()\r\n\t {\r\n\t int h = height(root);\r\n\t int i;\r\n\t for (i=1; i<=h+1; i++)\r\n\t printGivenLevel(root, i);\r\n\t }", "@Override\n\tpublic void showContents() {\n\t\tprogram.add(background);\n\t\tprogram.add(topMatte);\n\t\tprogram.add(bottomMatte);\n\t\tprogram.add(stackLabel);\n\t\t\n\t\tprogram.add(basePurp);\n\t\tprogram.add(currPurp);\n\t\tbasePurp.sendToFront();\n\t\tfor (int i = 0; i < callStack; i++) {\n\t\t\tprogram.add(stackBricks[i]);\n\t\t}\n\n\t\tprogram.add(player.getImage());\n\t\tplayer.move(0, 0);\n\n\t\tAudioPlayer.getInstance().playSound(\"sounds\", \"LevelMusic.mp3\", true);\n\t\tif (portalLeft != null) {\n\t\t\tprogram.add(portalLeft.getImage());\n\t\t}\n\t\tif (portalRight != null) {\n\t\t\tprogram.add(portalRight.getImage());\n\t\t\tprogram.add(portalLabel);\n\t\t}\n\t\tif (next == null || next.payloadRetrieved) {\n\t\t\tprogram.add(payload.getImage());\n\t\t}\n\n\t\tArrayList<Payload> collectedPayload = player.getPayloads();\n\n\t\tprogram.add(psuedocode);\n\n\t\tfor (int i = 0; i < collectedPayload.size(); i++) {\n\t\t\tprogram.add(collectedPayload.get(i).getImage());\n\t\t\tpsuedocode.addRtnLong();\n\t\t}\n\t}", "public void createLevel() {\n room = 1;\n currentLevelFinish = false;\n createRoom();\n }" ]
[ "0.664524", "0.6564786", "0.65507174", "0.6393745", "0.6373512", "0.6288248", "0.62550884", "0.6241798", "0.6204972", "0.6196363", "0.61946326", "0.61662275", "0.61583906", "0.6145251", "0.6119002", "0.6109705", "0.60734856", "0.6067948", "0.6057277", "0.6050034", "0.604461", "0.603049", "0.5984503", "0.59611475", "0.5956736", "0.5953143", "0.5929845", "0.5897947", "0.588895", "0.5877979", "0.58772594", "0.58235294", "0.5822085", "0.5808735", "0.5804498", "0.5797053", "0.5790197", "0.57872045", "0.5783803", "0.57830817", "0.57813895", "0.5770151", "0.5767711", "0.576769", "0.5752986", "0.5743945", "0.5736759", "0.57269496", "0.5698687", "0.5697471", "0.5694767", "0.5694107", "0.56721216", "0.56711733", "0.5662377", "0.5646867", "0.5644974", "0.56334573", "0.5632677", "0.5629268", "0.56288743", "0.56169456", "0.56165075", "0.56143045", "0.56118065", "0.5601568", "0.55678296", "0.5567449", "0.5560318", "0.55601287", "0.55481", "0.55390865", "0.5531553", "0.5517043", "0.5499627", "0.5492291", "0.5489862", "0.54854584", "0.5482433", "0.548232", "0.5480152", "0.5480152", "0.5480152", "0.5480152", "0.5480152", "0.5477858", "0.5475712", "0.54637104", "0.54635143", "0.5460935", "0.5454905", "0.5451049", "0.54476565", "0.544497", "0.5441279", "0.5440762", "0.54405504", "0.5439373", "0.5435345", "0.54352796", "0.54347086" ]
0.0
-1
The emblem is an image representing a world/level.
public Image getLevelEmblem(int index) { while (index >= levelEmblems.size()) levelEmblems.add((BufferedImage) UIBuilder.getImage(LevelPack.DEFAULT_LEVEL_EMBLEM_FILE)); return levelEmblems.get(index); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Image getEmblem() {\n\t\tif (mainEmblem == null) {\n\t\t\tthis.mainEmblem = new ImageList();\n\t\t\tthis.mainEmblem.add((BufferedImage) UIBuilder.getImage(DEFAULT_MAIN_EMBLEM_FILE));\n\t\t}\n\n\t\treturn mainEmblem.get(0);\n\t}", "public void setEmblem(BufferedImage image) {\n\t\tif (this.mainEmblem == null) {\n\t\t\tthis.mainEmblem = new ImageList();\n\t\t\tthis.mainEmblem.add((BufferedImage) UIBuilder.getImage(DEFAULT_MAIN_EMBLEM_FILE));\n\t\t} else\n\t\t\tthis.mainEmblem.set(0, image);\n\t}", "public void setLevelEmblem(int index, BufferedImage img) {\n\t\tlevelEmblems.set(index, img);\n\t}", "public WorldImage draw() {\n return new OverlayImage(\n new Stem(this.leftLength, this.leftTheta, this.left).draw(),\n new Stem(this.rightLength, this.rightTheta, this.right).draw()); \n }", "WorldImage getImage();", "public Image getExplosion(){\n\t\treturn explosion;\n\t}", "private BufferedImage worldToImage() {\n if (world == null) {\n return null;\n }\n\n BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n\n int[] rgbWorld = new int[width * height];\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n int index = twoDimIndexToOneDimIndex(x, y);\n rgbWorld[index] = world[x][y].getRgbColor();\n }\n }\n\n image.setRGB(0, 0, width, height, rgbWorld, 0, width);\n\n return image;\n }", "public void Boom()\r\n {\r\n image1 = new GreenfootImage(\"Explosion1.png\");\r\n image2 = new GreenfootImage(\"Explosion2.png\");\r\n image3 = new GreenfootImage(\"Explosion3.png\");\r\n image4 = new GreenfootImage(\"Explosion4.png\");\r\n image5 = new GreenfootImage(\"Explosion5.png\");\r\n image6 = new GreenfootImage(\"Explosion6.png\");\r\n setImage(image1);\r\n\r\n }", "public DumbEnemy(){\n setImage(new GreenfootImage(SPRITE_W,SPRITE_H));\n }", "@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}", "Enemy(int floor, int position, String n, int l, int m){\r\n\t\tname = n;\r\n\t\talive = true;\r\n\t\tmovetype = m;\r\n\t\tlevel = l;\r\n\t\thealth = 10*level;\r\n\t\tleftImage = new ImageIcon(getClass().getClassLoader().getResource(n +\"Left.png\"));\r\n\t\trightImage = new ImageIcon(getClass().getClassLoader().getResource(n +\"Right.png\"));\r\n\t\tsetIcon(rightImage);\r\n\r\n\t\t\ty = floor - 100;\r\n\t\t\tx = position;\r\n\t\t\tsetSize(50, 100);\r\n\t\t\tsetLocation(x,y);\r\n\t\t\tsetBackground(Color.red);\r\n\r\n\r\n\t\t}", "public WorldImage draw() {\n return new OverlayImage(\n this.tree.draw(),\n new LineImage(new Posn((int) this.deltaX(), (int) this.deltaY()), Color.RED)\n .movePinhole(-this.deltaX() / 2, -this.deltaY() / 2)).movePinhole(this.deltaX(),\n this.deltaY());\n }", "public MiniBossLevel() {\r\n super(\"background_final.png\");\r\n setStatDisplay();\r\n generateWorld(world);\r\n }", "@Nonnull\n Texture getWorldMap();", "public WorldImage drawLose() {\r\n return new OverlayOffsetAlign(\"center\", \"bottom\",\r\n new TextImage(\"Flood-It!\", Cnst.textHeight, Color.BLUE),\r\n 0, Cnst.boardHeight + Cnst.scale,\r\n new AboveAlignImage(\"center\",\r\n new TextImage(\"You Lose!\", Cnst.textHeight, Color.BLACK),\r\n this.indexHelp(0,0).drawBoard(this.blocks)).movePinhole(0, (Cnst.scale * 7) / 2)\r\n ).movePinhole(0, (Cnst.scale * 76) / 10)\r\n .movePinhole(-Cnst.boardWidth / 2, -Cnst.boardHeight / 2);\r\n }", "public WorldEditor() {\n \t\tthis.layers = new LinkedList<TextureLayer>();\n \t\tthis.setMinimumSize(new Dimension(1024, 768));\n \t\tContainer c = getContentPane();\n \t\tc.setLayout(new BorderLayout());\n \t\ttry {\n \t\t\tList<Tuple> ui = SADDL.parse(new InputStreamReader(getClass()\n \t\t\t\t\t.getResourceAsStream(\"res/menubar.sdl\")));\n \t\t\tfor (Tuple tuple : ui) {\n \t\t\t\tif (tuple.getKey().equalsIgnoreCase(\"MenuBar\")) {\n \t\t\t\t\tsetJMenuBar(new JKMenuBar((List<Tuple>) tuple.getValue()));\n \t\t\t\t}\n \t\t\t}\n \t\t\t// for the moment lets do it by hand, soemday well make it data\n \t\t\t// driven\n \t\t\tEnumButtonBar bar = new EnumButtonBar<ModeEnum>(ModeEnum.values());\n \t\t\tbar.addListener(new EnumButtonBarListener() {\n \n \t\t\t\t@Override\n \t\t\t\tpublic void enumSet(Enum actualEnum) {\n \t\t\t\t\tcurrentMode = (ModeEnum)actualEnum;\n \t\t\t\t\tif(currentMode == ModeEnum.Raise || currentMode == ModeEnum.Lower || currentMode == ModeEnum.Smooth\n \t\t\t\t\t\t\t|| currentMode == ModeEnum.Paint || currentMode == ModeEnum.Erase) {\n \t\t\t\t\t\tif(world == null || terrainView == null) return;\n \t\t\t\t\t\tif(brush.getParent() == null) world.attachChild(brush);\n \t\t\t\t\t} else {\n \t\t\t\t\t\tif(world == null || terrainView == null) return;\n \t\t\t\t\t\tworld.detachChild(brush);\n \t\t\t\t\t}\n \t\t\t\t\tif(currentMode == ModeEnum.Raise || currentMode == ModeEnum.Lower || currentMode == ModeEnum.Smooth) {\n \t\t\t\t\t\tbrush.setColor(ColorRGBA.red);\n \t\t\t\t\t} else if(currentMode == ModeEnum.Paint || currentMode == ModeEnum.Erase) {\n \t\t\t\t\t\tbrush.setColor(ColorRGBA.blue);\n \t\t\t\t\t}\n \t\t\t\t\tmouseListener.setMode(currentMode);\n \t\t\t\t\tbrush.updateRenderState();\n \t\t\t\t}\n \t\t\t});\n \t\t\tc.add(bar, BorderLayout.NORTH);\n \t\t\tviewPanel = new JPanel();\n \t\t\tviewPanel.setName(\"View\");\n \t\t\tviewPanel.setLayout(new BorderLayout());\n \t\t\tviewPanel.setBorder(new TitledBorder(new LineBorder(Color.BLACK),\n \t\t\t\"View\"));\n \t\t\tc.add(viewPanel, BorderLayout.CENTER);\n \t\t\tconsolePane = new JTabbedPane();\n \t\t\tconsolePane.setPreferredSize(new Dimension(800, 100));\n \t\t\tconsolePane.setName(\"Console Pane\");\n \t\t\tJPanel consolePanel = new JPanel();\n \t\t\tconsolePanel.setLayout(new BorderLayout());\n \t\t\tconsoleOutput = new JTextArea();\n \t\t\tconsolePanel.add(consoleOutput, BorderLayout.CENTER);\n \t\t\tconsolePane.addTab(\"Console\", new JScrollPane(consolePanel));\n \t\t\tc.add(consolePane, BorderLayout.SOUTH);\n \t\t\tprojectPane = new JTabbedPane();\n \t\t\ttreeScrollPane = new JPanel();\n \t\t\ttreeScrollPane.setLayout(new BorderLayout());\n \t\t\tprojectPane.addTab(\"Scene Graph\", treeScrollPane);\n \t\t\tJPanel texturePanel = new JPanel();\n \t\t\ttextures = new PopUpList(new DefaultListModel());\n \t\t\ttextures.addListSelectionListener(new ListSelectionListener(){\n \n \t\t\t\t@Override\n \t\t\t\tpublic void valueChanged(ListSelectionEvent e) {\n \t\t\t\t\tselectedLayer = (TextureLayer)textures.getSelectedValue();\n \t\t\t\t}});\n \n \t\t\ttexturePanel.add(new JScrollPane(textures));\n \t\t\t// add menu items to texture popup menu\n \t\t\tJMenuItem deleteTexture = new JMenuItem(\"Delete\");\n \t\t\tdeleteTexture.addActionListener(new ActionListener(){\n \n \t\t\t\t@Override\n \t\t\t\tpublic void actionPerformed(ActionEvent e) {\n \t\t\t\t\tTextureManager.releaseTexture(selectedLayer.getAlpha());\n \t\t\t\t\tTextureManager.releaseTexture(selectedLayer.getColor());\n \t\t\t\t\tterrainView.detachPass(selectedLayer.getPass());\n \t\t\t\t\tterrainView.updateRenderState();\n \t\t\t\t\tDefaultListModel model = (DefaultListModel) textures.getModel();\n \t\t\t\t\tmodel.remove(textures.getSelectedIndex());\n \t\t\t\t\ttextures.repaint();\n \t\t\t\t}});\n \t\t\ttextures.addToPopup(deleteTexture);\n \t\t\tprojectPane.addTab(\"Texture Layers\",textures);\n \t\t\tprojectPane.setPreferredSize(new Dimension(200, 400));\n \t\t\tc.add(projectPane, BorderLayout.WEST);\n \t\t\tJPanel eastPanel = new JPanel();\n \t\t\teastPanel.setLayout(new GridLayout(2, 1));\n \t\t\tobjectAttr = new JPanel();\n \t\t\tobjectAttr.setName(\"Object Attributes\");\n \t\t\tobjectAttr.setBorder(new TitledBorder(new LineBorder(Color.BLACK), \"Object Attributes\"));\n \t\t\tobjectAttr.setLayout(new BorderLayout());\n \t\t\tobjectAttrTable = new AttributeEditor();\n \t\t\tobjectAttr.add(new JScrollPane(objectAttrTable),\n \t\t\t\t\tBorderLayout.CENTER);\n \t\t\teastPanel.add(objectAttr);\n \t\t\ttoolAttr = new JPanel();\n \t\t\ttoolAttr.setBorder(new TitledBorder(new LineBorder(Color.BLACK),\n \t\t\t\"Tool Attributes\"));\n \t\t\ttoolAttr.setLayout(new BorderLayout());\n \t\t\ttoolAttrTable = new AttributeEditor();\n \t\t\ttoolAttrTable.addListener(new AttributeEditorListener(){\n \t\t\t\t@Override\n \t\t\t\tpublic void attributeChanged(String key, String value) {\n \t\t\t\t\tif(key.equalsIgnoreCase(\"radius\")) {\n \t\t\t\t\t\tbrush.setRadius(Float.valueOf(value));\n \t\t\t\t\t} else if(key.equalsIgnoreCase(\"intensity\")) {\n \t\t\t\t\t\tbrush.setIntensity(Float.valueOf(value));\n \t\t\t\t\t}\n \t\t\t\t}});\n \t\t\ttoolAttr.add(new JScrollPane(toolAttrTable), BorderLayout.CENTER);\n \t\t\teastPanel.add(toolAttr);\n \t\t\teastPanel.setPreferredSize(new Dimension(200, 400));\n \t\t\tc.add(eastPanel, BorderLayout.EAST);\n \t\t\tsetDefaultCloseOperation(this.DISPOSE_ON_CLOSE);\n \t\t\timpl = new WorldEditorCanvasImpl(800, 600);\n \t\t\tset3DCanvas(impl);\n \t\t\tinitProperties();\n \t\t\t((JKMenuBar) getJMenuBar())\n \t\t\t.addListener(new WorldEditorMenuListener() {\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doAttachTo() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doCreateDirectionalLight() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doCreateLineParticle() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doCreatePointLight() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doCreateProjectedWater() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doCreateQuadParticle() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doCreateQuadWater() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doCreateSpotLight() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doCreateTextureLayer() {\n \t\t\t\t\tif(world == null || terrainView == null) return;\n \t\t\t\t\tJFileChooser chooser = new JFileChooser();\n \t\t\t\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\n \t\t\t\t\t\t\t\"Color Map Images\", \"jpg\",\"bmp\",\"tga\");\n \t\t\t\t\tchooser.setFileFilter(filter);\n \t\t\t\t\tint returnVal = chooser.showOpenDialog(WorldEditor.this);\n \t\t\t\t\tif (returnVal != JFileChooser.APPROVE_OPTION){\n \t\t\t\t\t\treturn;\n \t\t\t\t\t}\n \t\t\t\t\tFile colorMap = chooser.getSelectedFile();\n \t\t\t\t\tfilter = new FileNameExtensionFilter(\n \t\t\t\t\t\t\t\"AlphaMapImage\", \"tga\", \"png\");\n \t\t\t\t\tchooser.setFileFilter(filter);\n \t\t\t\t\treturnVal = chooser.showOpenDialog(WorldEditor.this);\n \t\t\t\t\tif (returnVal != JFileChooser.APPROVE_OPTION){\n \t\t\t\t\t\treturn;\n \t\t\t\t\t}\n \t\t\t\t\tFile alphaMap = chooser.getSelectedFile();\n \t\t\t\t\tDefaultListModel mdl = (DefaultListModel) textures.getModel();\n \t\t\t\t\tfloat xBound = ((BoundingBox)terrainView.getTerrainCluster().getWorldBound()).xExtent;\n \t\t\t\t\tfloat zBound = ((BoundingBox)terrainView.getTerrainCluster().getWorldBound()).zExtent;\n \t\t\t\t\tTextureLayer layer = new TextureLayer(colorMap,alphaMap, xBound, zBound);\n \t\t\t\t\tlayers.add(layer);\n \t\t\t\t\tmdl.add(mdl.size(),layer);\n \t\t\t\t\tterrainView.attachPass(layer.createPass(blend));\n \t\t\t\t\tterrainView.updateRenderState();\n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doCreateWorld() {\n \t\t\t\t\tString[] names = new String[EWorld.values().length];\n \t\t\t\t\tfor (int i = 0; i < names.length; i++) {\n \t\t\t\t\t\tnames[i] = EWorld.values()[i].name();\n \t\t\t\t\t}\n \t\t\t\t\tString selected = (String) JOptionPane\n \t\t\t\t\t.showInputDialog(WorldEditor.this,\n \t\t\t\t\t\t\t\"What kind of world\",\n \t\t\t\t\t\t\t\"Create World\",\n \t\t\t\t\t\t\tJOptionPane.PLAIN_MESSAGE, null,\n \t\t\t\t\t\t\tnames, names[0]);\n \t\t\t\t\tif (selected == null)\n \t\t\t\t\t\treturn;\n \t\t\t\t\tEWorld selectedEworld = EWorld.valueOf(selected);\n \t\t\t\t\tworld = new EditableWorld(selectedEworld);\n \t\t\t\t\ttreeModel.addChild(impl.getRootNode(), world);\n \t\t\t\t\tWorldEditor.this.repaint();\n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doDettachFromParent() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doExit() {\n \t\t\t\t\tdispose();\n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doExportWorld() {\n \t\t\t\t\tdlg = new ExportDialog(WorldEditor.this);\n \t\t\t\t\tif (dlg.showDialog()){\n \t\t\t\t\t\texportAction = new Callable() {\n \t\t\t\t\t\t\t@Override\n \t\t\t\t\t\t\tpublic Object call() throws Exception {\n \t\t\t\t\t\t\t\t\tif(dlg.hasFile()) {\n \t\t\t\t\t\t\t\t\t\tCloneImportExport cloner = new CloneImportExport();\n \t\t\t\t\t\t\t\t\t\tcloner.saveClone(world);\n \t\t\t\t\t\t\t\t\t\tEditableWorld cloneWorld = (EditableWorld)cloner.loadClone();\n \t\t\t\t\t\t\t\t\t\tWorld node = (World)cloneWorld.constructFinal();\n \t\t\t\t\t\t\t\t\t\tif(!dlg.exportTextures()) {\n \t\t\t\t\t\t\t\t\t\t\tthis.stripTexure(node);\n \t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\twhile(!layers.isEmpty()) {\n \t\t\t\t\t\t\t\t\t\t\t\tthis.exportAlpha(layers.pop());\n \t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\ttry {\n \t\t\t\t\t\t\t\t\t\t\tBinaryExporter.getInstance().save(node, dlg.getFile());\n \t\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n \t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\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\treturn null;\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\tprivate void stripTexure(Node node) {\n \t\t\t\t\t\t\t\tnode.clearRenderState(RenderState.RS_TEXTURE);\n \t\t\t\t\t\t\t\tfor(int i = 0; i < node.getQuantity(); i++) {\n \t\t\t\t\t\t\t\t\tSpatial child = node.getChild(i);\n \t\t\t\t\t\t\t\t\tif(child instanceof PassNode) ((PassNode)child).clearAll();\n \t\t\t\t\t\t\t\t\telse if(child instanceof Node) this.stripTexure((Node)child);\n \t\t\t\t\t\t\t\t\telse child.clearRenderState(RenderState.RS_TEXTURE);\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\tprivate void exportAlpha(TextureLayer layer) {\n \t\t\t\t\t\t\t\tString raw = dlg.getFile().getPath();\n \t\t\t\t\t\t\t\tString path = raw.substring(0, raw.lastIndexOf(\"\\\\\")+1) + layer.getAlphaName() + EDataType.Texture.getExtension();\n \t\t\t\t\t\t\t\tFile file = new File(path);\n \t\t\t\t\t\t\t\ttry {file.createNewFile();} catch (IOException e) {e.printStackTrace();}\n \t\t\t\t\t\t\t\ttry {\n \t\t\t\t\t\t\t\t\tBinaryExporter.getInstance().save(layer.getAlpha().getImage(), file);\n \t\t\t\t\t\t\t\t} catch (IOException e) {\n \t\t\t\t\t\t\t\t\te.printStackTrace();\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 \n \t\t\t\t@Override\n \t\t\t\tpublic void doExportSelected() {\n \t\t\t\t\tExportDialog dlg = new ExportDialog(WorldEditor.this);\n \t\t\t\t\tif (dlg.showDialog()){\n \t\t\t\t\t\tString exportName = dlg.getName();\n \t\t\t\t\t\tboolean exportTextures = dlg.exportTextures();\n \t\t\t\t\t}\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doHelp() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doImportModel() {\n \t\t\t\t\t// TODO\n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doModelPerspective() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doMove() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doNew() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doOpen() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doRotateX() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doRotateY() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doRotateZ() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doWorldPerspective() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \t\t\t});\n \n \t\t\tpack();\n \t\t\tsetSize(800, 600);\n \t\t\tsetVisible(true);\n \t\t\t// Note, this requires youi to refresh the canvas whenever a change\n \t\t\t// is\n \t\t\t// made to re-render it. If you want automatic refresh agt the cost\n \t\t\t// of\n \t\t\t// some performance, uncomment this line...\n \t\t\t// /startAutoRefresh(canvas);\n \t\t} catch (IOException ex) {\n \t\t\tLogger.getLogger(WorldEditor.class.getName()).log(Level.SEVERE,\n \t\t\t\t\tnull, ex);\n \t\t}\n \t}", "public Image getEtat() {\n final BufferedImage image = new BufferedImage(GUIModel.SCREEN_SIZE.width / 4, GUIModel.SCREEN_SIZE.height / 6, BufferedImage.TYPE_INT_ARGB);\n final Graphics2D g = image.createGraphics();\n g.setColor(Color.black);\n //g.drawRect(0, 0, image.getWidth(), image.getHeight());\n g.drawString(\"Age : \" + tamagoStats.getAge(), 0, 10);\n g.drawString(\"Faim : \" + tamagoStats.getFaim() + \"/\" + TamagoStats.FAIM_MAX, 0, 30);\n g.drawString(\"Fatigue : \" + tamagoStats.getFatigue() + \"/\" + TamagoStats.FATIGUE_MAX, 0, 50);\n g.drawString(\"Humeur : \" + tamagoStats.getHumeur() + \"/\" + TamagoStats.HUMEUR_MAX, 100, 10);\n g.drawString(\"Poids : \" + tamagoStats.getPoids() + \"/\" + TamagoStats.HUMEUR_MAX, 100, 30);\n g.drawString(\"Saleté : \" + tamagoStats.getSale() + \"/\" + TamagoStats.SALE_MAX, 100, 50);\n g.drawString(\"*Retour*\", 50, 70);\n g.dispose();\n return image;\n }", "public void loadLevel(BufferedImage image) {\n\n\t\tif (stage == 1) {\n\t\t\tlevelLoader.loadLevel(image, ssTiles, ssPlayer, ssMonster, ssKeys);\n\t\t}\n\n\t\t/*\n\t\t * System.out.println(\"Hello from loadLevel\");\n\t\t * \n\t\t * \n\t\t * int w = image.getWidth();\n\t\t * int h = image.getHeight();\n\t\t * \n\t\t * \n\t\t * for(int xx = 0; xx < w; xx++) {\n\t\t * for (int yy = 0; yy < h; yy++) {\n\t\t * int pixel = image.getRGB(xx,yy);\n\t\t * int red = (pixel >> 16 ) & 0xff;\n\t\t * int green = (pixel >> 8) & 0xff;\n\t\t * int blue = (pixel) & 0xff;\n\t\t * //System.out.println(\"at x\" + xx + \" and y \"+ yy);\n\t\t * \n\t\t * \n\t\t * //if a pixel in the picture is red we render it as a block.\n\t\t * if(red == 255) {\n\t\t * handler.addObject(new Block(xx*32, yy*32, ID.Block,ssTiles));\n\t\t * }\n\t\t * \n\t\t * //if a pixel in the picture is blue, we render it as a player.\n\t\t * if(blue == 255 && green == 0) {\n\t\t * System.out.println(\"player object added\");\n\t\t * handler.addObject(new Wizard(xx*32,yy*32,ID.Player,handler,this,ssPlayer));\n\t\t * }\n\t\t * \n\t\t * if(green == 255 && blue == 0) {\n\t\t * \n\t\t * \n\t\t * handler.addObject(new Enemy(xx*32, yy*32, ID.Enemy, handler,ssMonster));\n\t\t * enemies++;\n\t\t * System.out.println(\"added enemy, total enemies: \" + enemies);\n\t\t * }\n\t\t * \n\t\t * \n\t\t * if(green == 255 && blue == 255) {\n\t\t * System.out.println(\"crate found\");\n\t\t * handler.addObject(new Crate(xx*32, yy*32, ID.Crate,ssTiles));\n\t\t * }\n\t\t * \n\t\t * //System.out.println(\"There is \" + handler.object.size() +\n\t\t * \" objects loaded! \");\n\t\t * \n\t\t * }\n\t\t * \n\t\t * }\n\t\t */\n\n\t}", "public Level(){\n\t\tlevel_image_pattern = \"default\";\n\t\t\n\t\timages = new HashMap <String, Image>();\n\t\tpickables = new ArrayList<Pickable>();\n\t\tplayer_initial_position = new int[2];\n\t\tplayer_initial_position[0] = 0;\n\t\tplayer_initial_position[1] = 0;\n\t\t\n\t\tconfig = Config.getInstance();\n\t\t\n\t}", "public java.lang.String getEatImage() {\n return localEatImage;\n }", "Enemy(Bitmap image) {\n super(image);\n }", "EM createEM();", "@Override\n public byte[] getMatrix() {\n return luminances;\n }", "@Override\n public String GetImagePart() {\n return \"coal\";\n }", "public MarbleLabel(Marble m, String text){\n Image img=null;\n ImageIcon icon = null;\n if (m instanceof WhiteMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/bigliabianca.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliabianca.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof RedMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/bigliarossa.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliarossa.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof YellowMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/bigliagialla.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliagialla.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof PurpleMarble){\n //img = new Im ageIcon(new ImageIcon(\"src/main/resources/Resources/bigliaviola.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliaviola.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof BlueMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/bigliablu.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliablu.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof GreyMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/biglianera.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/biglianera.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n setHorizontalAlignment(CENTER);\n setVerticalAlignment(TOP);\n setIcon(icon);\n setText(text);\n setVerticalTextPosition(JLabel.CENTER);\n setHorizontalTextPosition(JLabel.LEFT);\n setVisible(true);\n }", "public static Node buildWorld(AssetManager assetManager) {\n TextureKey keyFloor = new TextureKey(\"Models/Scene/wall_diffuse_1.jpg\", false);// pave_color.jpg\n Texture texFloor = assetManager.loadTexture(keyFloor);\n\n TextureKey keyNorm = new TextureKey(\"Models/Scene/wall_normal.jpg\", false);// pave_norm.jpg\n Texture texNormalPlane = assetManager.loadTexture(keyNorm);\n\n Material mat_basic = new Material(assetManager, \"Common/MatDefs/Light/PBRLighting.j3md\");\n mat_basic.setTexture(\"BaseColorMap\", texFloor);\n mat_basic.setTexture(\"NormalMap\", texNormalPlane);\n mat_basic.setFloat(\"Metallic\", 0.1f);\n mat_basic.setFloat(\"Roughness\", 0.00f);\n mat_basic.setFloat(\"Glossiness\", 0.5f);\n\n // Must be false - otherwise uv gets messed up.\n TextureKey keyFloor2 = new TextureKey(\"Models/Scene/deck.jpg\", false);\n Texture texFloor2 = assetManager.loadTexture(keyFloor2);\n TextureKey keyNorm2 = new TextureKey(\"Models/Scene/deck_normal.jpg\", false);\n Texture texNormalPlane2 = assetManager.loadTexture(keyNorm2);\n\n Material mat_basic2 = new Material(assetManager, \"Common/MatDefs/Light/PBRLighting.j3md\");\n mat_basic2.setTexture(\"BaseColorMap\", texFloor2);\n mat_basic2.setFloat(\"Metallic\", 0.1f);\n mat_basic2.setFloat(\"Roughness\", 0.1f);\n mat_basic2.setTexture(\"NormalMap\", texNormalPlane2);\n // Scene\n Node scene = (Node) assetManager.loadModel(\"Models/Scene/testScene.gltf\");\n\n // Tiling\n ((Geometry) scene.getChild(\"Plane\")).getMesh().scaleTextureCoordinates(new Vector2f(4, 4));\n mat_basic.getTextureParam(\"BaseColorMap\").getTextureValue().setWrap(WrapMode.Repeat);\n mat_basic.getTextureParam(\"NormalMap\").getTextureValue().setWrap(WrapMode.Repeat);\n // Tex for scene\n scene.getChild(\"Plane\").setMaterial(mat_basic);\n scene.getChild(\"Cube\").setMaterial(mat_basic2);\n\n Node probeNode = (Node) assetManager.loadModel(\"Models/Scene/market.j3o\");\n LightProbe probe = (LightProbe) probeNode.getLocalLightList().iterator().next();\n scene.addLight(probe);\n\n // We must add a light to make the model visible\n // Light\n DirectionalLight sun = new DirectionalLight();\n sun.setColor(ColorRGBA.White.mult(0.75f));\n sun.setDirection(new Vector3f(-.5f, -.5f, -.5f).normalizeLocal());\n scene.addLight(sun);\n\n return scene;\n }", "public void levelBuilder() {\r\n\t\t//round 1\r\n\t\tEnemy[] round1Enemy = new Enemy[1];\r\n\t\tround1Enemy[0] = new Enemy();\r\n\t\t\tround1Enemy[0].type = 0;\r\n\t\t\tround1Enemy[0].imag = (MyFrame.refFrame).client.getOtherPlayer(0).getCardLeader().getCardImage();\r\n\t\t\tround1Enemy[0].position = new vec2(157, 0); \r\n\t\t\tround1Enemy[0].size = new vec2(185, 201); //X: 0~500 Y:250 lower\r\n\t\t\tround1Enemy[0].blood = (MyFrame.refFrame).client.getOtherPlayer(0).getHp();\r\n\t\t\tround1Enemy[0].currentBlood = (MyFrame.refFrame).client.getOtherPlayer(0).getHp();\r\n\t\t\tround1Enemy[0].attackCD = 0;\r\n\t\t\tround1Enemy[0].attack = 0;\r\n\t\t\tround1Enemy[0].initialCD = 0;\r\n\t\t\tround1Enemy[0].defense = 0;\r\n\t\t\t\r\n\t\tround[0].addEnemy(round1Enemy);\r\n\t}", "Enemy(int floor, int position, String n, int l){\r\n\t\tname = n;\r\n\t\talive = true;\r\n\t\tlevel = l;\r\n\t\thealth = 2*level;\r\n\t\tleftImage = new ImageIcon(getClass().getClassLoader().getResource(n +\"Left.png\"));\r\n\t\trightImage = new ImageIcon(getClass().getClassLoader().getResource(n +\"Right.png\"));\r\n\t\tsetIcon(rightImage);\r\n\r\n\t\t\ty = floor - 100;\r\n\t\t\tx = position;\r\n\t\t\tsetSize(50, 100);\r\n\t\t\tsetLocation(x,y);\r\n\t\t\tsetBackground(Color.red);\r\n\r\n\r\n\t\t}", "public Group renderLevel() {\n\t\tGroup levelGroup = new Group();\n\t\tNode background = renderBackground(level);\n\t\tlevelGroup.getChildren().add(background);\n\t\tList<Sprite> textSpriteList = level.sprites().stream().filter(sprite -> sprite.isText()).collect(Collectors.toList());\n\t\ttextSpriteList.stream().forEach(textSprite -> levelGroup.getChildren().add(renderText(textSprite)));\n\t\tList<Sprite> imageSpriteList = level.sprites().stream().filter((sprite -> !sprite.isText())).collect(Collectors.toList());\n\t\timageSpriteList.stream().filter(sprite -> sprite.isActive()).forEach(sprite -> levelGroup.getChildren().add(renderSprite(sprite)));\n\t\treturn levelGroup;\n\t}", "public WorldImage drawWin() {\r\n return new OverlayOffsetAlign(\"center\", \"bottom\",\r\n new TextImage(\"Flood-It!\", Cnst.textHeight, Color.BLUE),\r\n 0, Cnst.boardHeight + Cnst.scale,\r\n new AboveAlignImage(\"center\",\r\n new TextImage(\"You Win! Congrats!\", Cnst.textHeight, Color.BLACK),\r\n this.indexHelp(0,0).drawBoard(this.blocks)).movePinhole(0, (Cnst.scale * 7) / 2)\r\n ).movePinhole(0, (Cnst.scale * 76) / 10)\r\n .movePinhole(-Cnst.boardWidth / 2, -Cnst.boardHeight / 2);\r\n }", "private void addLifeDisplay() {\r\n\t\tGImage lifeDisplay = new GImage(\"PlayerEast.png\");\r\n\t\tlifeDisplay.scale(.3);\r\n\t\tadd(lifeDisplay, 0, 0);\r\n\t\tlifeBar = new GRect(lifeDisplay.getWidth(), LIFE_BAR_OFFSET, LIFE_BAR_WIDTH, LIFE_BAR_HEIGHT);\r\n\t\tlifeBar.setFilled(true);\r\n\t\tlifeBar.setColor(Color.GREEN);\r\n\t\tadd(lifeBar);\r\n\t}", "public WorldImage drawBoard() {\r\n return new OverlayOffsetAlign(\"center\", \"bottom\",\r\n new TextImage(\"Flood-It!\", Cnst.textHeight, Color.BLUE),\r\n 0, Cnst.boardHeight + Cnst.scale,\r\n new AboveAlignImage(\"center\",\r\n new TextImage(\"Turn Count: \" + Integer.toString(this.currTurn) + \"/\"\r\n + Integer.toString(this.maxTurn), Cnst.textHeight, Color.BLACK),\r\n this.indexHelp(0,0).drawBoard(this.blocks)).movePinhole(0, (Cnst.scale * 7) / 2)\r\n ).movePinhole(0, (Cnst.scale * 76) / 10)\r\n .movePinhole(-Cnst.boardWidth / 2, -Cnst.boardHeight / 2);\r\n }", "@Override\n public void simpleInitApp() {\n setDisplayStatView(false);\n setDisplayFps(false);\n\n // just a blue box\n Box mesh = new Box(1, 1, 1);\n Geometry geom = new Geometry(\"Box\", mesh);\n Material mat = new Material(assetManager,\n \"Common/MatDefs/Misc/Unshaded.j3md\");\n mat.setColor(\"Color\", ColorRGBA.Blue);\n geom.setMaterial(mat);\n rootNode.attachChild(geom);\n\n // Display a line of text in the default font on depth layer 0\n guiFont = assetManager.loadFont(\"Interface/Fonts/Default.fnt\");\n distanceText = new BitmapText(guiFont);\n distanceText.setSize(guiFont.getCharSet().getRenderedSize());\n distanceText.move( // x/y coordinates and z = depth layer 0\n settings.getWidth() / 2 + 50,\n distanceText.getLineHeight() + 20,\n 0);\n guiNode.attachChild(distanceText);\n\n // Display a 2D image or icon on depth layer -2\n Picture frame = new Picture(\"User interface frame\");\n frame.setImage(assetManager, \"Interface/frame.png\", false);\n frame.move(settings.getWidth() / 2 - 265, 0, -2);\n frame.setWidth(530);\n frame.setHeight(10);\n guiNode.attachChild(frame);\n\n // Display a 2D image or icon on depth layer -1\n Picture logo = new Picture(\"logo\");\n logo.setImage(assetManager, \"Interface/Monkey.png\", true);\n logo.move(settings.getWidth() / 2 - 47, 2, -1);\n logo.setWidth(95);\n logo.setHeight(75);\n guiNode.attachChild(logo);\n }", "public Emrld() {\n super(\n new Color(211, 242, 163),\n new Color(151, 225, 150),\n new Color(108, 192, 139),\n new Color(76, 155, 130),\n new Color(33, 122, 121),\n new Color(16, 89, 101),\n new Color(7, 64, 80)\n\n );\n\n\n }", "public MarbleLabel(Marble m){\n Image img=null;\n ImageIcon icon = null;\n if (m instanceof WhiteMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/bigliabianca.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliabianca.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof RedMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/bigliarossa.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliarossa.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof YellowMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/bigliagialla.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliagialla.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof PurpleMarble){\n //img = new Im ageIcon(new ImageIcon(\"src/main/resources/Resources/bigliaviola.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliaviola.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof BlueMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/bigliablu.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/bigliablu.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n if (m instanceof GreyMarble){\n //img = new ImageIcon(new ImageIcon(\"src/main/resources/Resources/biglianera.JPG\").getImage().getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n InputStream resourceAsStream = MarbleLabel.class.getResourceAsStream(\"/Resources/biglianera.JPG\");\n try {\n img = ImageIO.read(resourceAsStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n icon = new ImageIcon(img.getScaledInstance(30, 30, Image.SCALE_SMOOTH));\n }\n setHorizontalAlignment(CENTER);\n setVerticalAlignment(TOP);\n setIcon(icon);\n setVisible(true);\n }", "public WaterWorld()\r\n { \r\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\r\n super(600, 400, 1); \r\n populateWorld();\r\n }", "public Image getImgMario() {return imgMario;}", "public void newlevel() {\n\t\tblack = new Background(COURT_WIDTH, COURT_HEIGHT); // reset background\n\t\tcannon = new Cannon(COURT_WIDTH, COURT_HEIGHT); // reset cannon\n\t\tdeadcannon = null;\n\t\tbullet = null;\n\t\tshot1 = null;\n\t\tshot2 = null;\n\t\t// reset top row\n\t\tfor (int i = 0; i < alien1.length; i++) {\n\t\t\talien1[i] = new Alien(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien1[i].pos_x = alien1[i].pos_x + 30*i;\n\t\t\talien1[i].v_x = level + alien1[i].v_x;\n\t\t}\n\t\t// reset second row\n\t\tfor (int i = 0; i < alien2.length; i++) {\n\t\t\talien2[i] = new Alien2(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien2[i].pos_x = alien2[i].pos_x + 30*i;\n\t\t\talien2[i].v_x = level + alien2[i].v_x;\n\t\t}\n\t\t// reset third row\n\t\tfor (int i = 0; i < alien3.length; i++) {\n\t\t\talien3[i] = new Alien3(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien3[i].pos_x = alien3[i].pos_x + 30*i;\n\t\t\talien3[i].v_x = level + alien3[i].v_x;\n\t\t}\n\t}", "public Bassin(){\r\n\t\tImage i = Toolkit.getDefaultToolkit().getImage(\"fondmarin.jpg\");\r\n\t\tJLabel l = new JLabel(new ImageIcon(i));\r\n\t\tl.setBounds(0, 0, 600, 600);\r\n\t\tl.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));\r\n\t\tthis.add(l,new Integer(1));\r\n\t}", "void deriveImage()\n\t{\n\n\t\t//img = new BufferedImage(dimx, dimy, BufferedImage.TYPE_INT_ARGB);\n\t\timg = null;\n\t\ttry{\n\t\t\timg = ImageIO.read(new File(\"src/input/World.png\"));\n\n\t\t}catch (IOException e){\n\t\t\tSystem.out.println(\"world image file error\");\n\t\t}\n\t\t//System.out.println(img.getHeight());\n\t\t//System.out.println(img.getWidth());\n//\t\tfloat maxh = -10000.0f, minh = 10000.0f;\n//\n//\t\t// determine range of tempVals s\n//\t\tfor(int x=0; x < dimx; x++)\n//\t\t\tfor(int y=0; y < dimy; y++) {\n//\t\t\t\tfloat h = tempVals [x][y];\n//\t\t\t\tif(h > maxh)\n//\t\t\t\t\tmaxh = h;\n//\t\t\t\tif(h < minh)\n//\t\t\t\t\tminh = h;\n//\t\t\t}\n\t\t\n\t\tfor(int x=0; x < dimx; x++)\n\t\t\tfor(int y=0; y < dimy; y++) {\n\t\t\t\t \t\n\t\t\t\t// find normalized tempVals value in range\n\t\t\t\t//float val = (tempVals [x][y] - minh) / (maxh - minh);\n\t\t\t\tfloat val = tempVals[x][y];\n\n\t\t\t\t//System.out.println(val);\n\n\t\t\t\tColor c = new Color(img.getRGB(x,y));\n\n\t\t\t\tif((c.getRed() > 50 && c.getGreen() > 100 && c.getBlue() < 200)) {\n\n\t\t\t\t\tif (val != 0.0f) {\n\t\t\t\t\t\tColor col = new Color(val, 0, 0);\n\t\t\t\t\t\timg.setRGB(x, y, col.getRGB());\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}", "public GameDisplay(World world) {\r\n\t\tthis.world = world;\r\n\t\t//Initialise image variables and load image files (files loaded here \r\n\t\t//rather than dynamically when needed because it would require a large \r\n\t\t//amount of loading/unloading image files which would slow the game \r\n\t\t//down when running\r\n\t\tthis.grassTile = loadImage(\"resources/images/tiles/grass_tile.png\");\r\n\t\tthis.blackAnthillTile \r\n\t\t\t\t= loadImage(\"resources/images/tiles/black_anthill.png\");\r\n\t\tthis.redAnthillTile \r\n\t\t\t\t= loadImage(\"resources/images/tiles/red_anthill.png\");\r\n\t\tthis.rockTile = loadImage(\"resources/images/tiles/rock_tile.png\");\r\n\t\t\r\n\t\t//Some entities have different images depending on how zoomed in the\r\n\t\t//display is, i.e. ants and food. In these cases the different scaled\r\n\t\t//images are held in array, accessed via constants\r\n\t\tthis.blackAnt = new PImage[3];\r\n\t\tthis.blackAnt[SMALL_IMAGE] \r\n\t\t = loadImage(\"resources/images/ants/black_ant_small.png\");\r\n\t\tthis.blackAnt[LARGE_IMAGE] \r\n\t\t = loadImage(\"resources/images/ants/black_ant_large.png\");\r\n\t\tthis.blackAntFood = \r\n\t\t\t\tloadImage(\"resources/images/ants/black_ant_food_large.png\");\r\n\t\t\r\n\t\tthis.redAnt = new PImage[3];\r\n\t\tthis.redAnt[SMALL_IMAGE] \r\n\t\t = loadImage(\"resources/images/ants/red_ant_small.png\");\r\n\t\tthis.redAnt[LARGE_IMAGE] \r\n\t\t = loadImage(\"resources/images/ants/red_ant_large.png\");\r\n\t\tthis.redAntFood =\r\n\t\t\t\tloadImage(\"resources/images/ants/red_ant_food_large.png\");\r\n\t\t\r\n\t\tthis.foodSmall = loadImage(\"resources/images/food/food_small.png\");\r\n\t\tthis.foodMedium = loadImage(\"resources/images/food/food_medium.png\");\r\n\t\tthis.foodLarge = new PImage[9];\r\n\t\tthis.foodLarge[ONE_FOOD] \r\n\t\t = loadImage(\"resources/images/food/food_one_large.png\");\r\n\t\tthis.foodLarge[TWO_FOOD] \r\n\t\t = loadImage(\"resources/images/food/food_two_large.png\");\r\n\t\tthis.foodLarge[THREE_FOOD] \r\n\t\t = loadImage(\"resources/images/food/food_three_large.png\");\r\n\t\tthis.foodLarge[FOUR_FOOD] \r\n\t\t = loadImage(\"resources/images/food/food_four_large.png\");\r\n\t\tthis.foodLarge[FIVE_FOOD] \r\n\t\t = loadImage(\"resources/images/food/food_five_large.png\");\r\n\t\tthis.foodLarge[SIX_FOOD] \r\n\t\t = loadImage(\"resources/images/food/food_six_large.png\");\r\n\t\tthis.foodLarge[SEVEN_FOOD] \r\n\t\t = loadImage(\"resources/images/food/food_seven_large.png\");\r\n\t\tthis.foodLarge[EIGHT_FOOD] \r\n\t\t = loadImage(\"resources/images/food/food_eight_large.png\");\r\n\t\tthis.foodLarge[NINE_FOOD] = \r\n\t\t\t\tloadImage(\"resources/images/food/food_nine_large.png\");\r\n\t\t\r\n\t\tthis.blackMarker \r\n\t\t\t\t= loadImage(\"resources/images/markers/chemical_black.png\");\r\n\t\tthis.redMarker \r\n\t\t\t\t= loadImage(\"resources/images/markers/chemical_red.png\");\r\n\t\t\r\n\t\t//Load font\r\n\t\tthis.courierFont = loadFont(\"resources/fonts/courier_new_font.vlw\");\r\n\t}", "public WorldScene lastScene(String msg) {\r\n WorldScene scene = this.getEmptyScene();\r\n //make the image to draw \\/ \\/\r\n\r\n WorldImage cell = new EmptyImage();\r\n\r\n if (msg.equals(\"win\")) {\r\n cell = this.drawWin();\r\n }\r\n else {\r\n cell = this.drawLose();\r\n }\r\n\r\n //place the image on the scene \\/ \\/\r\n scene.placeImageXY(cell, 100, 200);\r\n\r\n return scene;\r\n }", "protected void addedToWorld(World world) \n {\n createImages();\n }", "public HealthyWorld()\n { \n // Create a new wolrd with 800x400 cells and a cell size of 1x1 pixels\n super(800, 400, 1);\n healthLevel = 10;\n time = 2000;\n showHealthLevel();\n showTime();\n // Create a kid in the middle of the screen\n Kid theKid = new Kid();\n this.addObject(theKid, 400, 350);\n }", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n for( int i = 0; i < IMAGE_COUNT; i++)\n {\n images[i] = new GreenfootImage(\"frame_\" + i + \"_delay-0.06s.gif\");\n }\n \n setBackground(images [0]); \n \n }", "public MineHard()\r\n { \r\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\r\n super(16, 16, 32);\r\n addObject(new Person() , 1 , 14);\r\n addObject(new Rock() , 1 , 15);\r\n addObject(new Rock() , 8 , 15);\r\n addObject(new Rock() , 12 , 15);\r\n addObject(new Rock() , 5 , 14);\r\n addObject(new Rock() , 15 , 13);\r\n addObject(new Rock() , 9 , 13);\r\n addObject(new Rock() , 12 , 12);\r\n addObject(new Rock() , 10 , 11);\r\n addObject(new Rock() , 7 , 11);\r\n addObject(new Rock() , 2 , 11);\r\n addObject(new Rock() , 1 , 12);\r\n addObject(new Rock() , 15 , 10);\r\n addObject(new Rock() , 12 , 9);\r\n addObject(new Rock() , 4 , 9);\r\n addObject(new Rock() , 1 , 9);\r\n addObject(new Rock() , 11 , 8);\r\n addObject(new Rock() , 13 , 7);\r\n addObject(new Rock() , 10 , 7);\r\n addObject(new Rock() , 9 , 7);\r\n addObject(new Rock() , 8 , 7);\r\n addObject(new Rock() , 7 , 7);\r\n addObject(new Rock() , 2 , 6);\r\n addObject(new Rock() , 5 , 5);\r\n addObject(new Rock() , 12 , 5);\r\n addObject(new Rock() , 9 , 4);\r\n addObject(new Rock() , 13 , 2);\r\n addObject(new Rock() , 3 , 3);\r\n addObject(new Rock() , 4 , 2);\r\n addObject(new Rock() , 1 , 1);\r\n addObject(new Rock() , 9 , 1);\r\n addObject(new Rock() , 10 , 0);\r\n addObject(new Rock() , 0 , 0);\r\n addObject(new Rock() , 0 , 7);\r\n addObject(new Rock() , 5 , 0);\r\n addObject(new Rock() , 15 , 0);\r\n addObject(new Rock() , 15 , 8);\r\n \r\n addObject(new Goldbar() , 15 , 2);\r\n addObject(new Goldbar() , 12 , 8);\r\n addObject(new Goldbar() , 15 , 15);\r\n addObject(new Goldbar() , 3 , 2);\r\n addObject(new Goldbar() , 9 , 0);\r\n addObject(new Goldbar() , 2 , 9);\r\n \r\n addObject(new Zombie() , 13 , 13);\r\n addObject(new Zombie() , 12 , 6);\r\n addObject(new Zombie() , 6 , 0);\r\n addObject(new Zombie() , 1 , 4);\r\n addObject(new Zombie() , 7 , 9);\r\n addObject(new TryC() , 2 , 1);\r\n addObject(new MainMenu() , 12 , 1);\r\n }", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1200, 800, 1); \n GreenfootImage bg = new GreenfootImage(\"background.jpg\");\n bg.scale(getWidth(), getHeight());\n setBackground(bg);\n initialize();\n \n }", "public EnemyGunBullet1() {\n super(DAMAGE, SPEED);\n setEnemyBullet(true);\n setShootSound(\"enemyShot.wav\");\n try {\n image = ImageIO.read(new File(\"res/images/tanks/bullets/enemyBullet1.png\"));\n }\n catch (IOException e) { }\n }", "public BossRoom() {\n\t\ttiles = new WorldTiles(width, height, width);\n\t\tbackground = new Sprite(SpriteList.BOSS_ROOM_BACKGROUND);\n\t}", "WoodElement(Level level, int tlX, int tlY, int w, int h, boolean onGround){\n super(level, tlX, tlY, w, h, 0.74f, 0.7f, 0.1f, 0.5f, 0, onGround, false);\n }", "@Override\n\tpublic String getTextureFile() {\n\t\treturn \"/reactioncraft/rcs/Blocks.png\";\n\t}", "@Override\n public String getType() {\n return \"golem\";\n }", "public Levels()\r\n { \r\n super(1070, 570, 1);\r\n \r\n //Add the bottom platform in the menu screen\r\n platforms = new Platforms[7]; \r\n for (int i = 0; i < platforms.length; i++)\r\n {\r\n platforms[i] = new Platforms();\r\n }\r\n bottomPlatform();\r\n\r\n //Add the Potato (player)\r\n player = new Player();\r\n addObject (player, 100, 512); \r\n\r\n setBackground(\"menu.png\");\r\n }", "public Ocean()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n BF bf = new BF();\n addObject(bf,500,300);\n SF sf = new SF();\n addObject(sf,100,300);\n }", "public Enemie(){\r\n \r\n r=new Random();\r\n try{\r\n \r\n //cargamos imagenes del barco, ambos helicopteros y damos valores\r\n imgHeli=ImageIO.read(new File(\"src/Images/1.png\"));\r\n imgHeli2=ImageIO.read(new File(\"src/Images/2.png\"));\r\n imgShip=ImageIO.read(new File(\"src/Images/barquito.png\"));\r\n imgBarril=ImageIO.read(new File(\"src/Images/barril.png\"));\r\n \r\n }catch(IOException ex){\r\n System.out.println(\"Imagen no encontrada.\");\r\n }\r\n //Generamos posiciones aleatorias\r\n Bx=(r.nextInt(260)+140);\r\n By=1;\r\n \r\n Bx2=(r.nextInt(260)+140);\r\n By2=1;\r\n \r\n Hx=(r.nextInt(260)+140);\r\n Hy=1;\r\n \r\n Hx2=(r.nextInt(260)+140);\r\n Hy2=1;\r\n //Cargamos altos y anchos para todas las imagenes\r\n Bwidth=imgShip.getWidth(null);\r\n Bheight=imgShip.getHeight(null);\r\n \r\n Bwidth2=imgBarril.getWidth(null);\r\n Bheight2=imgBarril.getHeight(null);\r\n \r\n Hwidth=imgHeli.getWidth(null);\r\n Hheight=imgHeli.getHeight(null);\r\n \r\n Hwidth2=imgHeli2.getWidth(null);\r\n Hheight2=imgHeli2.getHeight(null);\r\n \r\n }", "@Override\n\tpublic String getTextureFile() \n\t{\n\t\treturn \"/reactioncraft/rcs/Blocks.png\";\n\t}", "public Level()\n {\n //Initialise Tile Types\n try \n {\n //Dynamically assign texture paints\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/surface.jpg\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/rover.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/rock.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/mineral.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/target.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/warning.png\")), tile));\n } catch(FileNotFoundException fnfe) {\n System.out.println(\"ERROR: Invalid texture paint, file not found\" + fnfe);\n }\n catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "public SaboWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1);\n addObject(counter, 100, 380); //Add the scoreboard\n addObject(healthBar, 300, 370); //Add the health bar\n addObject(turret, getWidth()/2-5, getHeight()-turret.getImage().getWidth()); \n }", "public Image getBulletImg(){ \n return SpriteSheet.playerProjectileSprites[this.frameNumber]; \n }", "public Mario(){\n setImage(\"06.png\");\n \n }", "public void renderAboutManager()\n {\n background(background);\n t = millis();\n t /= 200.0f;\n shift = -150;\n //imageMode(CENTER);\n image(createdBy,width/2-createdBy.width/2+40,20);\n //image(info,width/2-info.width/2+40,450);\n for(int i = 0; i < img.length; i++)\n {\n image(img[i],width/2+shift,height/5+sin(t-i*0.4f-1)*4);\n shift += img[i].width;\n }\n imageMode(CORNERS);\n }", "public Level1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(560, 560, 1); \n prepare();\n gfs_level1 = new GreenfootSound(\"main.wav\");\n\n }", "WorldMaterialMap getMaterialMap();", "public void currentWorld(WumpusWorld world) throws RemoteException {\n\t\twidth = world.getWidth();\n\t\theight = world.getHeight();\n\t\tif (frame == null) {\n\t\t\tframe = new Frame();\n\t\t\tframe.addWindowListener(new WindowAdapter() {\n\t\t\t\tpublic void windowClosing(WindowEvent evt) {\n\t\t\t\t\tframe.dispose();\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t});\n\t\t\tframe.setTitle(\"The Wumpus Monitor\");\n\t\t\tframe.setLayout(new GridLayout(width * 2, height * 2));\n\t\t\tDimension d = Toolkit.getDefaultToolkit().getScreenSize();\n\t\t\tframe.setBounds(0, 0, d.width - 1, d.height - 1);\n\t\t} else {\n\t\t\tframe.removeAll();\n\t\t}\n\t\trooms = new DirectionalPanel[width][height][8];\n\t\tfor (int row = 0; row < width; row++) {\n\t\t\tfor (int col = 0; col < height; col++) {\n\t\t\t\trooms[row][col][0] = new DirectionalPanel(-1,\n\t\t\t\t\t\t\t\t\t\tImagePanel.NORTH | ImagePanel.WEST);\n\t\t\t\trooms[row][col][1] = new DirectionalPanel(-1,\n\t\t\t\t\t\t\t\t\t\tImagePanel.NORTH | ImagePanel.EAST);\n\t\t\t\trooms[row][col][2] = new DirectionalPanel(-1,\n\t\t\t\t\t\t\t\t\t\tImagePanel.SOUTH | ImagePanel.WEST);\n\t\t\t\trooms[row][col][3] = new DirectionalPanel(-1,\n\t\t\t\t\t\t\t\t\t\tImagePanel.SOUTH | ImagePanel.EAST);\n\t\t\t\tfor (int k = 4; k < 8; k++) {\n\t\t\t\t\trooms[row][col][k] = new DirectionalPanel(-1);\n\t\t\t\t}\n\t\t\t\tagentPositions.put(new Point(row, col), new HashSet());\n\t\t\t}\n\t\t}\n\t\tfor (int row = 0; row < world.getWidth(); row++) {\n\t\t\tfor (int turn = 0; turn < 2; turn++) {\n\t\t\t\tfor (int col = 0; col < world.getHeight(); col++) {\n\t\t\t\t\tframe.add(rooms[height - row - 1][col][2*turn]);\n\t\t\t\t\tframe.add(rooms[height - row - 1][col][2*turn + 1]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int row = 0; row < width; row++) {\n\t\t\tfor (int col = 0; col < height; col++) {\n\t\t\t\tRoom room = world.getRoom(row, col);\n\t\t\t\tif (room.getPit()) {\n\t\t\t\t\taddImage(row, col, PIT_FILE, PIT_FILE);\n\t\t\t\t}\n\t\t\t\tif (room.getGold()) {\n\t\t\t\t\taddImage(row, col, GOLD_FILE, GOLD_FILE);\n\t\t\t\t}\n\t\t\t\tWumpus w = room.getWumpus();\n\t\t\t\tif (w != null) {\n\t\t\t\t\taddImage(row, col, w.getName(), WUMPUS_FILE);\n\t\t\t\t\tsetDirection(row, col, w.getName(), w.getDirection());\n\t\t\t\t\tPoint pos = new Point(w.getRow(), w.getColumn());\n\t\t\t\t\tagents.put(w.getName(), pos);\n\t\t\t\t\tSet s = (Set) agentPositions.get(pos);\n\t\t\t\t\ts.add(w);\n\t\t\t\t\tcheckStench(row + 1, col - 1, row - 1, col + 1);\n\t\t\t\t}\n\t\t\t\tSet explorers = room.getExplorers();\n\t\t\t\tfor (Iterator it = explorers.iterator(); it.hasNext(); ) {\n\t\t\t\t\tExplorer e = (Explorer) it.next();\n\t\t\t\t\taddImage(row, col, e.getName(), EXPLORER_FILE);\n\t\t\t\t\tsetDirection(row, col, e.getName(), e.getDirection());\n\t\t\t\t\tPoint pos = new Point(e.getRow(), e.getColumn());\n\t\t\t\t\tagents.put(e.getName(), pos);\n\t\t\t\t\tSet s = (Set) agentPositions.get(pos);\n\t\t\t\t\ts.add(e);\n\t\t\t\t}\n\t\t\t\tboolean breeze = false;\n\t\t\t\tif (row > 0 && world.getRoom(row - 1, col).getPit()) {\n\t\t\t\t\tbreeze = true;\n\t\t\t\t} else if (row < world.getWidth() - 1 &&\n\t\t\t\t\t\t\t\t\tworld.getRoom(row + 1, col).getPit()) {\n\t\t\t\t\tbreeze = true;\n\t\t\t\t} else if (col > 0 && world.getRoom(row, col - 1).getPit()) {\n\t\t\t\t\tbreeze = true;\n\t\t\t\t} else if (col < world.getHeight() - 1 &&\n\t\t\t\t\t\t\t\t\tworld.getRoom(row, col + 1).getPit()) {\n\t\t\t\t\tbreeze = true;\n\t\t\t\t}\n\t\t\t\tif (breeze) {\n\t\t\t\t\taddImage(row, col, BREEZE_FILE, BREEZE_FILE);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tframe.show();\n\t\tthis.enabled = true;\n\t}", "public OverWorld()\n { \n // Create a new world with 800x600 cells with a cell size of 1x1 pixels.\n super(1024, 600, 1, false);\n Setup();\n }", "public WorldScene makeScene() {\n WorldScene ws = new WorldScene(ForbiddenIslandWorld.ISLAND_SIZE,\n ForbiddenIslandWorld.ISLAND_SIZE);\n for (Cell c : this.board) {\n ws.placeImageXY(c.drawCell(waterHeight), c.x * 10, c.y * 10);\n }\n for (Target t : this.helicopterpieces) {\n ws.placeImageXY(t.drawPiece(), t.x * 10, t.y * 10);\n }\n ws.placeImageXY(this.player.drawPerson(), player.x * 10, player.y * 10);\n ws.placeImageXY(this.player2.drawPerson2(), player2.x * 10, player2.y * 10);\n return ws;\n }", "@Override\n\tpublic void pintar() {\n\t\n\t\tapp.image(water, this.px, this.py);\n\t\t\n\t}", "@Override\n\tpublic void show () {\n overWorld = new Sprite(new TextureRegion(new Texture(Gdx.files.internal(\"Screens/overworldscreen.png\"))));\n overWorld.setPosition(0, 0);\n batch = new SpriteBatch();\n batch.getProjectionMatrix().setToOrtho2D(0, 0, 320, 340);\n\n // Creates the indicator and sets it to the position of the first grid item.\n indicator = new MapIndicator(screen.miscAtlases.get(2));\n // Creates the icon of Daur that indicates his position.\n icon = new DaurIcon(screen.miscAtlases.get(2));\n // Sets the mask position to zero, as this screen does not lie on the coordinate plane of any tiled map.\n screen.mask.setPosition(0, 0);\n screen.mask.setSize(320, 340);\n Gdx.input.setInputProcessor(inputProcessor);\n\n // Creates all relevant text.\n createText();\n // Sets numX and numY to the position of Daur on the map.\n numX = storage.cellX;\n numY = storage.cellY;\n indicator.setPosition(numX * 20, numY * 20 + 19);\n // Sets the icon to the center of this cell.\n icon.setPosition(numX * 20 + 10 - icon.getWidth() / 2, numY * 20 + 29 - icon.getHeight() / 2);\n // Creates all the gray squares necessary.\n createGraySquares();\n }", "@Override\n protected void initGame() {\n\n// entityBuilder()\n// .view(new Rectangle(64, 64, Color.BLUE))\n// .buildAndAttach();\n//\n// entityBuilder()\n// .at(getAppWidth() - 64, getAppHeight() - 64)\n// .view(new Rectangle(64, 64, Color.BLUE))\n// .buildAndAttach();\n//\n// entityBuilder()\n// .at(0, getAppHeight() / 2 - 32)\n// .view(new Rectangle(64, 64, Color.BLUE))\n// .with(new ProjectileComponent(new Point2D(1, 0), 150))\n// .buildAndAttach();\n }", "void generateEnemy(){\n\t\tEnemy e = new Enemy((int)(Math.random()*\n\t\t\t(cp.getWidthScreen() - (ss.getWidth()/2)))\n\t\t\t,ss.getHeight(), cp.getHieghtScreen());\t\t\t\t//Enemy (int x, int y, int heightScreen)\n\t\tcp.shapes.add(e);\n\t\tenemies.add(e);\n\t}", "public salida()\r\n { \r\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\r\n super(600, 400, 1); \r\n }", "Den(SimWorld aWorld) {\r\n\t\tsuper(aWorld);\r\n\t\tImage den = new Image(denURL);\r\n\t\tthis.getCollisionArea().setFill(Color.TRANSPARENT);\r\n\t\tthis.getCollisionBody().setFill(new ImagePattern(den, this.getxPos(), this.getyPos(), 1, 1, true));\r\n\t}", "public ValmarFrame(){\n\t\tsetTitle(\"Valmar\");\n\t setSize(500, 450);\n\t addWindowListener (new Closer());\n\t setVisible(true);\n\t setResizable(false);\n\t //add the game panel\n\t Dimension dim = getSize();\n\t Insets in=getInsets();\n\t setSize(dim.width+in.right+in.left, dim.height+in.top+in.bottom);\n\t Panel pan=new ValmarPanel(createImage(dim.width, dim.height),null);\n\t pan.setBounds(in.left, in.top, dim.width, dim.height);\n\t add(pan);\n\t}", "@Override\n public String getEntLS() {\n return \"Enemies\";\n }", "private void addCharacters() {\r\n\t\tplayer = new GImage(\"PlayerEast.png\");\r\n\t\tplayer.scale(.75);\r\n\t\tadd(player, player.getWidth() / 2.0, level1.getY() - player.getHeight());\r\n\t\t\r\n\t\tdragon1 = new GImage(\"Dragon1.png\");\r\n\t\tadd(dragon1, getWidth() - dragon1.getWidth() * 1.5, level1.getY() - dragon1.getHeight());\r\n\t\t\r\n\t\tdragon2 = new GImage(\"Dragon2.png\");\r\n\t\tadd(dragon2, dragon2.getWidth() / 2.0, level2.getY() - dragon2.getHeight());\r\n\t\t\r\n\t\tGObject karel = new GImage(\"karel.png\");\r\n\t\tadd(karel, getWidth() - karel.getWidth(), level3.getY() - karel.getHeight());\r\n\t\t\r\n\t\tmehran = new GImage(\"EvilMehran1.png\");\r\n\t\tadd(mehran, getWidth() - mehran.getWidth() - karel.getWidth(), level3.getY() - mehran.getHeight());\r\n\t}", "public static BodyImage getWalkImage() {return walkImage;}", "public Lives()\n {\n lives.scale(19, 19);\n setImage(lives);\n\n }", "public CrabWorld()\n {\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n musica=new GreenfootSound(\"Ufo-t-balt.mp3\");\n super(560,560, 1);\n }", "public PantallaVictoria()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(400, 600, 1); \n prepare();\n }", "public GameWon()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(550, 600, 1); \n addObject(b1,275,250);\n addObject(b2,275,380);\n }", "public World(Image other)\n {\n this(other.getWidth(null), other.getHeight(null), AIR_EL);\n getGraphics().drawImage(other, 0, 0, null);\n }", "public void act() \n {\n String worldname = getWorld().getClass().getName();\n if (worldname == \"Level0\")\n setImage(new GreenfootImage(\"vibranium.png\"));\n else if (worldname == \"Level1\")\n setImage(rocket.getCurrentImage());\n setLocation(getX()-8, getY()); \n if (getX() == 0) \n {\n getWorld().removeObject(this);\n }\n \n }", "public zombie_bg()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1010,900, 1); \n setPaintOrder(ScoreBoard.class, player.class, zomb_gen.class, options.class);\n populate();\n \n }", "public Image getSemibreve();", "@Override\n\tpublic void showContents() {\n\t\tprogram.add(Background);\n\t\tprogram.add(lvl1);\n\t\tprogram.add(lvl2);\n\t\tprogram.add(lvl3);\n\t\tprogram.add(Back);\n\n\t}", "public static Picture emboss(Picture picture) {\r\n double[][] emboss = {{-2,-1,0},{-1,1,1},{0,1,2}};\r\n\r\n return transform(picture, emboss);\r\n }", "public Bout()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n CreaBoutique();\n\n }", "@Override\n public void onWorldRender(RenderEvent event) {\n GlStateManager.pushMatrix();\n mc.world.playerEntities.stream().filter(entityPlayer -> entityPlayer != mc.player).forEach(Chams::drawEntityOutline);\n mc.world.loadedEntityList.stream().filter(entity -> EntityUtil.isLiving(entity) && entity != mc.player).forEach(Chams::drawEntityOutline);\n// entityFBO.unbindFramebuffer();\n GlStateManager.popMatrix();\n// mc.getFramebuffer().bindFramebuffer(true);\n\n// entityFBO.framebufferRenderExt(mc.displayWidth, mc.displayHeight, false);\n\n GlStateManager.color(1,1,1);\n GlStateManager.enableBlend();\n }", "public abstract WorldImage drawBoard(int blocks);", "public void makeImage() {\n image = new GreenfootImage(\"highscoreb.png\");\n \n image.setFont(new Font(\"Arial\", false, false, 50));\n image.setColor(Color.WHITE);\n image.setFont(new Font(\"Arial\", false, false, 25));\n renderer.drawShadowString(image, name, 25, getHeight() - 50);\n setBackground(image);\n }", "public WiuWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1xpixels.\n super(WIDTH_WORLD, HEIGHT_WORLD, 1); \n }", "public MyWorld()\n { \n // Create a new world with 1600x1200 cells with a cell size of 1x1 pixels.\n super(1125, 1125, 1);\n //Adds the Cornucopia to the center of the Arena.\n int centerX = this.getWidth()/2;\n int centerY = this.getHeight()/2;\n this.addObject(new Cornucopia(), centerX, centerY);\n \n //The following adds the main character for the game.\n int CharacterX = 1125/2;\n int CharacterY = 770;\n this.addObject(new Character(), CharacterX, CharacterY);\n \n //The following code adds 6 \"Careers\" into the arena.\n int CareerX = 405;\n int CareerY = 328;\n this.addObject(new Careers(), CareerX, CareerY);\n this.addObject(new Careers(), CareerX+310, CareerY-5);\n this.addObject(new Careers(), CareerX+90, CareerY+430);\n this.addObject(new Careers(), CareerX+290, CareerY+405);\n this.addObject(new Careers(), CareerX+190, CareerY-60);\n \n //The following code add the remaining 17 Tributes to the arena.\n //Also, I cannot add like a normal person so there will only be twenty-three tributes. The Capitol goofed this year.\n int TribX = 660;\n int TribY = 288;\n this.addObject(new Tributes(), TribX, TribY);\n this.addObject(new Tributes(), TribX-200, TribY);\n this.addObject(new Tributes(), TribX-227, TribY+443);\n this.addObject(new Tributes(), TribX-280, TribY+400);\n this.addObject(new Tributes(), TribX-34, TribY+467);\n this.addObject(new Tributes(), TribX+86, TribY+397);\n this.addObject(new Tributes(), TribX-134, TribY-22);\n this.addObject(new Tributes(), TribX+103, TribY+82);\n this.addObject(new Tributes(), TribX+139, TribY+144);\n this.addObject(new Tributes(), TribX+150, TribY+210);\n this.addObject(new Tributes(), TribX+150, TribY+280);\n this.addObject(new Tributes(), TribX+120, TribY+342);\n this.addObject(new Tributes(), TribX-338, TribY+275);\n this.addObject(new Tributes(), TribX-319, TribY+343);\n this.addObject(new Tributes(), TribX-343, TribY+210);\n this.addObject(new Tributes(), TribX-330, TribY+150);\n this.addObject(new Tributes(), TribX-305, TribY+80);\n \n //The following code should add the forest onto the map.\n int ForX = this.getWidth()/2;\n int ForY = 900;\n this.addObject(new Forest(), ForX, ForY);\n \n //The following code should add the lake to the map.\n int LakX = 790;\n int LakY = 990;\n this.addObject(new Lake(), LakX, LakY);\n \n //The following should add the cave to the map.\n int CavX = 125;\n int CavY = 110;\n this.addObject(new Cave(), CavX, CavY);\n \n \n int actorCount = getObjects(Tributes.class).size();\n if(actorCount == 17) {\n int BeastX = 200;\n int BeastY = 200;\n this.addObject(new Beasts(), BeastX, BeastY);\n this.addObject(new Beasts(), BeastX+100, BeastY+100);\n }\n }", "public Boss() {\n\t\tlife = 3;\n\t\timage = new Image(\"/Model/boss3.png\", true);\n\t\tboss = new ImageView(image);\n\t\tRandom r = new Random();\n\t\tboss.setTranslateX(r.nextInt(900));\n\t\tboss.setTranslateY(0);\n\t\tisAlive = true;\n\t}", "private void createModel() {\n model = new Node(\"Enemy\"+enemyCounter);\n Box b = new Box(.5f, 2, .5f);\n Geometry bg = new Geometry(\"Box\", b);\n Material bm = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n Sphere sphere = new Sphere(32, 32, 1.5f, false, false);\n Geometry sg = new Geometry(\"Sphere\", sphere);\n Material sm = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n bm.setColor(\"Color\", ColorRGBA.Blue);\n sm.setColor(\"Color\", ColorRGBA.Red);\n bg.setMaterial(bm); \n sg.setMaterial(sm);\n model.attachChild(bg);\n model.attachChild(sg);\n sg.setLocalTranslation(0,2.5f,0);\n \n attachChild(model);\n }", "public void renderWorldBlock(bbb renderblocks, ym iba, int i, int j, int k, int md)\r\n/* 26: */ {\r\n/* 27: 26 */ int cons = 0;\r\n/* 28: 27 */ TilePipe tt = (TilePipe)CoreLib.getTileEntity(iba, i, j, k, TilePipe.class);\r\n/* 29: 29 */ if (tt == null) {\r\n/* 30: 29 */ return;\r\n/* 31: */ }\r\n/* 32: 31 */ this.context.exactTextureCoordinates = true;\r\n/* 33: 32 */ this.context.setTexFlags(55);\r\n/* 34: 33 */ this.context.setTint(1.0F, 1.0F, 1.0F);\r\n/* 35: 34 */ this.context.setPos(i, j, k);\r\n/* 36: 35 */ if (tt.CoverSides > 0)\r\n/* 37: */ {\r\n/* 38: 36 */ this.context.readGlobalLights(iba, i, j, k);\r\n/* 39: 37 */ renderCovers(tt.CoverSides, tt.Covers);\r\n/* 40: */ }\r\n/* 41: 40 */ cons = PipeLib.getConnections(iba, i, j, k);\r\n/* 42: */ \r\n/* 43: */ \r\n/* 44: */ \r\n/* 45: 44 */ this.context.setBrightness(this.block.e(iba, i, j, k));\r\n/* 46: */ \r\n/* 47: 46 */ this.context.setLocalLights(0.5F, 1.0F, 0.8F, 0.8F, 0.6F, 0.6F);\r\n/* 48: 47 */ this.context.setPos(i, j, k);\r\n/* 49: */ \r\n/* 50: 49 */ RenderLib.bindTexture(\"/eloraam/machine/machine1.png\");\r\n/* 51: */ \r\n/* 52: */ \r\n/* 53: */ \r\n/* 54: */ \r\n/* 55: */ \r\n/* 56: */ \r\n/* 57: */ \r\n/* 58: */ \r\n/* 59: */ \r\n/* 60: */ \r\n/* 61: */ \r\n/* 62: */ \r\n/* 63: */ \r\n/* 64: 63 */ renderCenterBlock(cons, 26, 28);\r\n/* 65: */ \r\n/* 66: 65 */ tt.cacheFlange();\r\n/* 67: 66 */ renderFlanges(tt.Flanges, 27);\r\n/* 68: */ \r\n/* 69: 68 */ RenderLib.unbindTexture();\r\n/* 70: */ }", "private void generateLevel() {\n\t\tgenerateBorder();\n\t\tfor (int y = 1; y < height - 1; y++) {\n\t\t\tfor (int x = 1; x < height - 1; x++) {\n\t\t\t\tif (random.nextInt(2) == 1) {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getGrass(), false, x, y);\n\t\t\t\t\trandForest(x, y);\n\t\t\t\t} else {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getDirt(), false, x, y);\n\t\t\t\t\trandOre(x, y);\n\t\t\t\t}\n\t\t\t\tif (x == 4 && y == 4) {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getGrass(), false, x, y);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public short getElmLevel() {\r\n return elmLevel;\r\n }", "public Texture getDepthMapTexture(){\n return depthMap;\n }", "public void spawnDifficultyIcon( LogicEngine in_logicEngine)\r\n\t{\n\t\tif(Difficulty.isEasy())\r\n\t\t\treturn;\r\n\t\t\r\n\t\tGameObject go = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/interface.png\",(LogicEngine.SCREEN_WIDTH/2), LogicEngine.SCREEN_HEIGHT/1.5,0);\r\n\t\tgo.stepHandlers.add(new TimedLifeStep(100));\r\n\t\t\r\n\t\tgo.i_animationFrameSizeHeight=50;\r\n\t\tgo.i_animationFrameSizeWidth=50;\r\n\t\tgo.i_animationFrame=0;\r\n\t\tgo.f_forceScaleX=4;\r\n\t\tgo.f_forceScaleY=4;\r\n\t\t\r\n\t\tif(Difficulty.isMedium())\r\n\t\t\tgo.i_animationFrameRow=7;\r\n\t\tif(Difficulty.isHard())\r\n\t\t\tgo.i_animationFrameRow=8;\r\n\t\t\r\n\t\tin_logicEngine.objectsOverlay.add(go);\r\n\t\r\n\t}", "public Mesita()\r\n {\r\n super(\"mesa.png\"); \r\n }" ]
[ "0.6374533", "0.59701055", "0.59689176", "0.5755811", "0.57420015", "0.5619166", "0.5472125", "0.5471811", "0.54491335", "0.54071224", "0.53986317", "0.5382807", "0.5318729", "0.5250009", "0.52479506", "0.52243155", "0.52172965", "0.52036726", "0.52021545", "0.51898587", "0.5181694", "0.5178897", "0.5171165", "0.51700675", "0.51513696", "0.51305056", "0.5125549", "0.51145357", "0.51044685", "0.5101602", "0.5092445", "0.5080102", "0.50735265", "0.5059065", "0.5057691", "0.50561035", "0.50516564", "0.5048996", "0.50472677", "0.50451744", "0.50281733", "0.50248766", "0.5022516", "0.5020614", "0.5016291", "0.50150967", "0.5006225", "0.5002774", "0.5001569", "0.5001534", "0.49945518", "0.49930492", "0.49889717", "0.4988002", "0.49858993", "0.4971901", "0.49628112", "0.4959362", "0.49593216", "0.4958024", "0.49575987", "0.49569836", "0.494652", "0.49427867", "0.4940341", "0.49324697", "0.49190727", "0.49165127", "0.49161628", "0.49049187", "0.48993802", "0.48961", "0.4890067", "0.4890026", "0.488874", "0.48857555", "0.48841932", "0.48743638", "0.4872591", "0.48647034", "0.48629624", "0.48552504", "0.48508674", "0.48386553", "0.48382086", "0.48253912", "0.48239923", "0.48179904", "0.4813808", "0.48115462", "0.4799337", "0.4795432", "0.47850072", "0.4783369", "0.4782735", "0.47794685", "0.47769764", "0.47755426", "0.477548", "0.47747833" ]
0.62720025
1
Sets the emblem representing a world or level.
public void setLevelEmblem(int index, BufferedImage img) { levelEmblems.set(index, img); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Model\n\tprotected void setWorld(World world) {\n\t\tthis.world = world;\n\t}", "public void setWorld(GameData world) {\r\n this.world = world;\r\n }", "public void setWorld(World world) {\n this.world = world;\n }", "public static void setWorld(World aWorld)\r\n/* */ {\r\n\t \tlogger.info(count++ + \" About to setWotld : \" + \"Agent\");\r\n/* 43 */ \tworldForAgent = aWorld;\r\n/* */ }", "public void setElmLevel(short elmLevel) {\r\n this.elmLevel = elmLevel;\r\n }", "public void setEmbl(gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Embl embl)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Embl target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Embl)get_store().find_element_user(EMBL$10, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Embl)get_store().add_element_user(EMBL$10);\r\n }\r\n target.set(embl);\r\n }\r\n }", "private void setEnemy(){\n depths.setEnemy(scorpion);\n throne.setEnemy(rusch);\n ossuary.setEnemy(skeleton);\n graveyard.setEnemy(zombie);\n ramparts.setEnemy(ghoul);\n bridge.setEnemy(concierge);\n deathRoom1.setEnemy(ghost);\n deathRoom2.setEnemy(cthulu);\n deathRoom3.setEnemy(wookie); \n }", "public void setWorld(@Nullable World worldIn)\n {\n this.world = worldIn;\n\n if (worldIn == null)\n {\n this.field_78734_h = null;\n }\n }", "private void setEliteMobLevel(int newLevel) {\n if (newLevel < 1)\n newLevel = 1;\n this.eliteMobLevel = newLevel;\n }", "public void setWorld(World world) throws IllegalStateException {\n\t\tif (!canHaveAsWorld(world))\n\t\t\tthrow new IllegalStateException(\"Invalid position in the world trying to assign this entity to.\");\n\t\n\t\t//If current world is null, don't try to remove 'this' from it\n\t\t//If world is null, don't try to add anything to it\n\t\t//This allows us to provide 'null' as an argument in case we want to \n\t\t//undo the association for this entity.\n\t\tif (!(this.getWorld() == null) && !(world == null)) {\n\t\t\tthis.getWorld().removeEntity(this);\n\t\t\tworld.addEntity(this);\n\t\t}\n\n\t\tthis.world = world;\n\t\t\n\t}", "@Raw\n protected void setSuperWorld(World world) throws IllegalArgumentException{\n \tif(world == null || isValidSuperWorld(world))\t\tthis.superWorld = world;\n \telse throw new IllegalArgumentException(\"Isn't a valid world @setSuperWorld()\");\n }", "public void setPosWorldAge(GuiPositions posWorldAge) {\r\n\t\tthis.posWorldAge = posWorldAge;\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}", "public void setBullet(Bullet _bul) { // beallit egy ezredest az adott mapElementre, ha az rajta van\n bul = _bul;\n }", "public void change_sword_pos() {\n\t\tif (!heroi.isArmado())\n\t\t\tlabirinto.setLabCell(espada.getX_coord(), espada.getY_coord(), 'E');\n\t}", "protected void setRoom() {\n\t\tfor(int x = 0; x < xSize; x++) {\n\t\t\tfor (int y = 0; y < ySize; y++) {\n\t\t\t\tif (WALL_GRID[y][x] == 1) {\n\t\t\t\t\tlevelSetup[x][y] = new SimpleRoom();\n\t\t\t\t} else{\n\t\t\t\t\tlevelSetup[x][y] = new ForbiddenRoom();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\t\t// put special rooms\n\t\tlevelSetup[6][0] = new RoomWithLockedDoor();\n\t\tlevelSetup[2][6] = new FragileRoom();\n\n\t}", "private void setLanguageScreen(){\n\t\t\n\t\tscreenUI.clearScreen();\n\t\tscreenUI.drawText(2, 1, \"Choose a language/Wybierz język:\");\n\t\tscreenUI.drawText(1, 3, \"[a]: English\");\n\t\tscreenUI.drawText(1, 4, \"[b]: Polski\");\n\t}", "public void setLevel (String newLevel)\n {\n this.level = newLevel; \n }", "public World setCurrentWorld(int index) {\n\t\tassert index >= 0 && index < levels.size();\n\t\treturn levels.get(levelIndex = index);\n\t}", "public LUMOS_SOLEM ()\n {\n super();\n\n spellType = O2SpellType.LUMOS_SOLEM;\n branch = O2MagicBranch.CHARMS;\n\n flavorText = new ArrayList<String>() {{\n add(\"Light of the Sun\");\n }};\n\n text = \"Lumos Solem will cause a sun-like light to erupt in an area around the impact which will burn entities sensitive to sun.\";\n }", "public void setLevelInfo(){\n setTitle(\"\");\n Objects.requireNonNull(getSupportActionBar()).setElevation(0);\n// SET LEVEL TITLE\n String levelTitleString = (getString(R.string.level) + \" \" + String.valueOf(level));\n levelTitle.setText(levelTitleString);\n// todo: underline guessesleft\n guessesLeft = guessesLeft + 10;\n String guessesLeftString = (\"You have \" + String.valueOf(guessesLeft) + \" guesses.\");\n guessesLeftView.setText(guessesLeftString);\n }", "public void setLevel(Level level) { this.currentLevel = level; }", "public static void setLevel(LogLevel lvl){\n updateLevel(lvl);\n if (txtAreaHandler!=null){\n txtAreaHandler.changeLevel(lvl);\n }\n }", "public Level getWorld() {\r\n return this;\r\n }", "public void setWorldDisplay(Pane worldDisplay) {\n this.worldDisplay = worldDisplay;\n }", "public void setLevel(String level);", "private void setMu2(MeaningUnit mu) {\n\t\t// falls die MU aus CW und FW besteht\n\t\tif (mu.getFunctionWord() != null) {\n\t\t\tmodel.getSGCreatingMenu().setMU2(mu.getFunctionWord() + \" \" + mu.getConstitutiveWord());\n\t\t}\n\t\t// falls die MU nur aus CW besteht\n\t\telse {\n\t\t\tmodel.getSGCreatingMenu().setMU2(mu.getConstitutiveWord().toString());\n\t\t}\n\t\tmodel.getView().design(mu, true);\n\t\tmu2 = mu;\t\t\t\t\t\t\t\t\n\t}", "public void setWorld(World world) {\n\t\tthis.world = world;\n\n\t\tsetPlaying(world.isPlayOnStart());\n\t}", "public Builder setWorldid(long value) {\n bitField0_ |= 0x00000001;\n worldid_ = value;\n onChanged();\n return this;\n }", "public Builder setWorldid(long value) {\n bitField0_ |= 0x00000001;\n worldid_ = value;\n onChanged();\n return this;\n }", "public void Setlevels(int lvl)\r\n {\r\n level = lvl;\r\n }", "@Override\n\tpublic void setLord(Lord l) {\n\t\t\n\t}", "@Override\n public void world() {\n super.world();\n }", "public void setLevel(int newlevel)\n {\n level = newlevel; \n }", "public void setCurrentRoom(Room newRoom) {\n playerRoom = newRoom;\n }", "public void setAll(String name, FrillLoc loc, String font) {\n MyName = new String(name);\n MyLocation = loc;\n NameFont = new FontFinder(font, FontList.FONT_LABEL);\n NameFrill = new LabelFrill(name, loc, NameFont);\n }", "private static void assignElement(BendingPlayer bPlayer, Element e) {\n\t\tbPlayer.setElement(e);\n\t\tGeneralMethods.saveElements(bPlayer);\n\t\tBukkit.getPlayer(bPlayer.getUUID()).sendMessage(ChatColor.YELLOW + \"You have been born as \" + (e.getType() == ElementType.BENDING ? \"an \" : \"a \") + e.getColor() + e.getName() + e.getType().getBender() + ChatColor.YELLOW + \"!\");\n\t}", "public void setDifficultyString () {\n String difficultyString = \"EASY\";\n if(mAlarmDetails.getDifficulty() == 0){\n difficultyString = \"EASY\";\n }\n else if (mAlarmDetails.getDifficulty() == 1) {\n difficultyString = \"MEDIUM\";\n }\n else if (mAlarmDetails.getDifficulty() == 2) {\n difficultyString = \"HARD\";\n }\n\n TextView difficultySelection = (TextView) findViewById(R.id.difficulty_level);\n difficultySelection.setText(difficultyString);\n }", "public static void setMLS(int p, int m) {\n\t\tif (p==1) Player1.setText(\"Player 1: \"+m);\n\t\telse if (p==2) Player2.setText(\"Player 2: \"+m);\n\t\telse if (p==3) Player3.setText(\"Player 3: \"+m);\n\t}", "void levelanzeigen(){\n if(level==levelold){\n //TODO HARDWARE this.systeminterface.tab.setcolor(255,0,0);\n //TODO HARDWARE this.systeminterface.ledFeld.zahl(0,2,level);\n }else{\n //TODO HARDWARE this.systeminterface.ledFeld.setcolor(0,0,0);\n //TODO HARDWARE this.systeminterface.ledFeld.zahl(0,2,levelold);\n //TODO HARDWARE this.systeminterface.ledFeld.setcolor(255,0,0);\n //TODO HARDWARE this.systeminterface.ledFeld.zahl(0,2,level);\n levelold=level;\n }\n //TODO HARDWARE this.systeminterface.ledFeld.show();\n //TODO HARDWARE this.systeminterface.ledFeld.setRotation(1);\n }", "public void levelUp2()\r\n {\r\n this.health = 1200;\r\n Story.levelUp2Text();\r\n }", "protected void setLevel(int level){\r\n this.level = level;\r\n }", "private void setMu1(MeaningUnit mu) {\n\t\t// falls die MU aus CW und FW besteht\n\t\tif (mu.getFunctionWord() != null) {\n\t\t\tmodel.getSGCreatingMenu().setMU1(\n\t\t\t\t\tmu.getFunctionWord() + \" \"\n\t\t\t\t\t\t\t+ mu.getConstitutiveWord());\n\t\t}\n\t\t// falls die MU nur aus CW besteht\n\t\telse {\n\t\t\tmodel.getSGCreatingMenu().setMU1(\n\t\t\t\tmu.getConstitutiveWord().toString());\n\t\t}\n\t\tmodel.getView().design(mu, true);\n\t\tmu1 = mu;\n\t}", "public void setEmblem(BufferedImage image) {\n\t\tif (this.mainEmblem == null) {\n\t\t\tthis.mainEmblem = new ImageList();\n\t\t\tthis.mainEmblem.add((BufferedImage) UIBuilder.getImage(DEFAULT_MAIN_EMBLEM_FILE));\n\t\t} else\n\t\t\tthis.mainEmblem.set(0, image);\n\t}", "public Builder setWorldId(long value) {\n \n worldId_ = value;\n onChanged();\n return this;\n }", "@Override\r\n public void applyAttributes() {\r\n super.applyAttributes();\r\n getEntity().setColor(color);\r\n getEntity().setOwner(MbPets.getInstance().getServer().getPlayer(getOwner()));\r\n getEntity().setAgeLock(true);\r\n\r\n if (isBaby) {\r\n getEntity().setBaby();\r\n } else {\r\n getEntity().setAdult();\r\n }\r\n Bukkit.getMobGoals().removeGoal(getEntity(), VanillaGoal.LLAMA_ATTACK_WOLF);\r\n Bukkit.getMobGoals().removeGoal(getEntity(), VanillaGoal.LLAMA_FOLLOW_CARAVAN);\r\n Bukkit.getMobGoals().removeGoal(getEntity(), VanillaGoal.TRADER_LLAMA_DEFEND_WANDERING_TRADER);\r\n }", "public void setMenu(final OdorWorldFrameMenu menu) {\n this.menu = menu;\n }", "public void setLocation(WotlasLocation myLocation) {\n getBasicChar().setLocation(myLocation);\n\n if (myLocation.isRoom()) {\n this.myRoom = ClientDirector.getDataManager().getWorldManager().getRoom(myLocation);\n } else {\n this.myRoom = null;\n }\n if (myLocation.isTileMap()) {\n this.myTileMap = ClientDirector.getDataManager().getWorldManager().getTileMap(myLocation);\n } else {\n this.myTileMap = null;\n }\n }", "public void setLobbyLocation(Location loc) {\n gameLocations.put(GameLocation.LOBBY, loc);\n }", "public void setWorldData(WorldData worldData)\n {\n this.worldData = worldData;\n }", "public String getWorldName()\n {\n return levelName;\n }", "private void Level1() {\n\t\tEngine eng = new Engine();\n\t\teng.Maingame();\n\t\tthis.setVisible(false);\n\t}", "public void setEnemy(Enemy enemy){\n this.enemy = enemy;\n enemy.setXGrid(getXGrid());\n enemy.setYGrid(getYGrid());\n setEntity(enemy);\n }", "public void levelUp1()\r\n {\r\n this.health = 900;\r\n Story.levelUp1Text();\r\n }", "Room(RenderWindow window, KeyboardHandler kh, Level level) {\n this.window = window;\n this.kh = kh;\n this.level = level;\n }", "public void setEmphasis(double emphasisLevel);", "public void setLevel(Long value) {\r\n setAttributeInternal(LEVEL, value);\r\n }", "void setRoom(int inRoom) {\n \t\tgraphics.setRoom(inRoom);\n \t}", "public WorldEditor() {\n \t\tthis.layers = new LinkedList<TextureLayer>();\n \t\tthis.setMinimumSize(new Dimension(1024, 768));\n \t\tContainer c = getContentPane();\n \t\tc.setLayout(new BorderLayout());\n \t\ttry {\n \t\t\tList<Tuple> ui = SADDL.parse(new InputStreamReader(getClass()\n \t\t\t\t\t.getResourceAsStream(\"res/menubar.sdl\")));\n \t\t\tfor (Tuple tuple : ui) {\n \t\t\t\tif (tuple.getKey().equalsIgnoreCase(\"MenuBar\")) {\n \t\t\t\t\tsetJMenuBar(new JKMenuBar((List<Tuple>) tuple.getValue()));\n \t\t\t\t}\n \t\t\t}\n \t\t\t// for the moment lets do it by hand, soemday well make it data\n \t\t\t// driven\n \t\t\tEnumButtonBar bar = new EnumButtonBar<ModeEnum>(ModeEnum.values());\n \t\t\tbar.addListener(new EnumButtonBarListener() {\n \n \t\t\t\t@Override\n \t\t\t\tpublic void enumSet(Enum actualEnum) {\n \t\t\t\t\tcurrentMode = (ModeEnum)actualEnum;\n \t\t\t\t\tif(currentMode == ModeEnum.Raise || currentMode == ModeEnum.Lower || currentMode == ModeEnum.Smooth\n \t\t\t\t\t\t\t|| currentMode == ModeEnum.Paint || currentMode == ModeEnum.Erase) {\n \t\t\t\t\t\tif(world == null || terrainView == null) return;\n \t\t\t\t\t\tif(brush.getParent() == null) world.attachChild(brush);\n \t\t\t\t\t} else {\n \t\t\t\t\t\tif(world == null || terrainView == null) return;\n \t\t\t\t\t\tworld.detachChild(brush);\n \t\t\t\t\t}\n \t\t\t\t\tif(currentMode == ModeEnum.Raise || currentMode == ModeEnum.Lower || currentMode == ModeEnum.Smooth) {\n \t\t\t\t\t\tbrush.setColor(ColorRGBA.red);\n \t\t\t\t\t} else if(currentMode == ModeEnum.Paint || currentMode == ModeEnum.Erase) {\n \t\t\t\t\t\tbrush.setColor(ColorRGBA.blue);\n \t\t\t\t\t}\n \t\t\t\t\tmouseListener.setMode(currentMode);\n \t\t\t\t\tbrush.updateRenderState();\n \t\t\t\t}\n \t\t\t});\n \t\t\tc.add(bar, BorderLayout.NORTH);\n \t\t\tviewPanel = new JPanel();\n \t\t\tviewPanel.setName(\"View\");\n \t\t\tviewPanel.setLayout(new BorderLayout());\n \t\t\tviewPanel.setBorder(new TitledBorder(new LineBorder(Color.BLACK),\n \t\t\t\"View\"));\n \t\t\tc.add(viewPanel, BorderLayout.CENTER);\n \t\t\tconsolePane = new JTabbedPane();\n \t\t\tconsolePane.setPreferredSize(new Dimension(800, 100));\n \t\t\tconsolePane.setName(\"Console Pane\");\n \t\t\tJPanel consolePanel = new JPanel();\n \t\t\tconsolePanel.setLayout(new BorderLayout());\n \t\t\tconsoleOutput = new JTextArea();\n \t\t\tconsolePanel.add(consoleOutput, BorderLayout.CENTER);\n \t\t\tconsolePane.addTab(\"Console\", new JScrollPane(consolePanel));\n \t\t\tc.add(consolePane, BorderLayout.SOUTH);\n \t\t\tprojectPane = new JTabbedPane();\n \t\t\ttreeScrollPane = new JPanel();\n \t\t\ttreeScrollPane.setLayout(new BorderLayout());\n \t\t\tprojectPane.addTab(\"Scene Graph\", treeScrollPane);\n \t\t\tJPanel texturePanel = new JPanel();\n \t\t\ttextures = new PopUpList(new DefaultListModel());\n \t\t\ttextures.addListSelectionListener(new ListSelectionListener(){\n \n \t\t\t\t@Override\n \t\t\t\tpublic void valueChanged(ListSelectionEvent e) {\n \t\t\t\t\tselectedLayer = (TextureLayer)textures.getSelectedValue();\n \t\t\t\t}});\n \n \t\t\ttexturePanel.add(new JScrollPane(textures));\n \t\t\t// add menu items to texture popup menu\n \t\t\tJMenuItem deleteTexture = new JMenuItem(\"Delete\");\n \t\t\tdeleteTexture.addActionListener(new ActionListener(){\n \n \t\t\t\t@Override\n \t\t\t\tpublic void actionPerformed(ActionEvent e) {\n \t\t\t\t\tTextureManager.releaseTexture(selectedLayer.getAlpha());\n \t\t\t\t\tTextureManager.releaseTexture(selectedLayer.getColor());\n \t\t\t\t\tterrainView.detachPass(selectedLayer.getPass());\n \t\t\t\t\tterrainView.updateRenderState();\n \t\t\t\t\tDefaultListModel model = (DefaultListModel) textures.getModel();\n \t\t\t\t\tmodel.remove(textures.getSelectedIndex());\n \t\t\t\t\ttextures.repaint();\n \t\t\t\t}});\n \t\t\ttextures.addToPopup(deleteTexture);\n \t\t\tprojectPane.addTab(\"Texture Layers\",textures);\n \t\t\tprojectPane.setPreferredSize(new Dimension(200, 400));\n \t\t\tc.add(projectPane, BorderLayout.WEST);\n \t\t\tJPanel eastPanel = new JPanel();\n \t\t\teastPanel.setLayout(new GridLayout(2, 1));\n \t\t\tobjectAttr = new JPanel();\n \t\t\tobjectAttr.setName(\"Object Attributes\");\n \t\t\tobjectAttr.setBorder(new TitledBorder(new LineBorder(Color.BLACK), \"Object Attributes\"));\n \t\t\tobjectAttr.setLayout(new BorderLayout());\n \t\t\tobjectAttrTable = new AttributeEditor();\n \t\t\tobjectAttr.add(new JScrollPane(objectAttrTable),\n \t\t\t\t\tBorderLayout.CENTER);\n \t\t\teastPanel.add(objectAttr);\n \t\t\ttoolAttr = new JPanel();\n \t\t\ttoolAttr.setBorder(new TitledBorder(new LineBorder(Color.BLACK),\n \t\t\t\"Tool Attributes\"));\n \t\t\ttoolAttr.setLayout(new BorderLayout());\n \t\t\ttoolAttrTable = new AttributeEditor();\n \t\t\ttoolAttrTable.addListener(new AttributeEditorListener(){\n \t\t\t\t@Override\n \t\t\t\tpublic void attributeChanged(String key, String value) {\n \t\t\t\t\tif(key.equalsIgnoreCase(\"radius\")) {\n \t\t\t\t\t\tbrush.setRadius(Float.valueOf(value));\n \t\t\t\t\t} else if(key.equalsIgnoreCase(\"intensity\")) {\n \t\t\t\t\t\tbrush.setIntensity(Float.valueOf(value));\n \t\t\t\t\t}\n \t\t\t\t}});\n \t\t\ttoolAttr.add(new JScrollPane(toolAttrTable), BorderLayout.CENTER);\n \t\t\teastPanel.add(toolAttr);\n \t\t\teastPanel.setPreferredSize(new Dimension(200, 400));\n \t\t\tc.add(eastPanel, BorderLayout.EAST);\n \t\t\tsetDefaultCloseOperation(this.DISPOSE_ON_CLOSE);\n \t\t\timpl = new WorldEditorCanvasImpl(800, 600);\n \t\t\tset3DCanvas(impl);\n \t\t\tinitProperties();\n \t\t\t((JKMenuBar) getJMenuBar())\n \t\t\t.addListener(new WorldEditorMenuListener() {\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doAttachTo() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doCreateDirectionalLight() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doCreateLineParticle() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doCreatePointLight() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doCreateProjectedWater() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doCreateQuadParticle() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doCreateQuadWater() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doCreateSpotLight() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doCreateTextureLayer() {\n \t\t\t\t\tif(world == null || terrainView == null) return;\n \t\t\t\t\tJFileChooser chooser = new JFileChooser();\n \t\t\t\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\n \t\t\t\t\t\t\t\"Color Map Images\", \"jpg\",\"bmp\",\"tga\");\n \t\t\t\t\tchooser.setFileFilter(filter);\n \t\t\t\t\tint returnVal = chooser.showOpenDialog(WorldEditor.this);\n \t\t\t\t\tif (returnVal != JFileChooser.APPROVE_OPTION){\n \t\t\t\t\t\treturn;\n \t\t\t\t\t}\n \t\t\t\t\tFile colorMap = chooser.getSelectedFile();\n \t\t\t\t\tfilter = new FileNameExtensionFilter(\n \t\t\t\t\t\t\t\"AlphaMapImage\", \"tga\", \"png\");\n \t\t\t\t\tchooser.setFileFilter(filter);\n \t\t\t\t\treturnVal = chooser.showOpenDialog(WorldEditor.this);\n \t\t\t\t\tif (returnVal != JFileChooser.APPROVE_OPTION){\n \t\t\t\t\t\treturn;\n \t\t\t\t\t}\n \t\t\t\t\tFile alphaMap = chooser.getSelectedFile();\n \t\t\t\t\tDefaultListModel mdl = (DefaultListModel) textures.getModel();\n \t\t\t\t\tfloat xBound = ((BoundingBox)terrainView.getTerrainCluster().getWorldBound()).xExtent;\n \t\t\t\t\tfloat zBound = ((BoundingBox)terrainView.getTerrainCluster().getWorldBound()).zExtent;\n \t\t\t\t\tTextureLayer layer = new TextureLayer(colorMap,alphaMap, xBound, zBound);\n \t\t\t\t\tlayers.add(layer);\n \t\t\t\t\tmdl.add(mdl.size(),layer);\n \t\t\t\t\tterrainView.attachPass(layer.createPass(blend));\n \t\t\t\t\tterrainView.updateRenderState();\n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doCreateWorld() {\n \t\t\t\t\tString[] names = new String[EWorld.values().length];\n \t\t\t\t\tfor (int i = 0; i < names.length; i++) {\n \t\t\t\t\t\tnames[i] = EWorld.values()[i].name();\n \t\t\t\t\t}\n \t\t\t\t\tString selected = (String) JOptionPane\n \t\t\t\t\t.showInputDialog(WorldEditor.this,\n \t\t\t\t\t\t\t\"What kind of world\",\n \t\t\t\t\t\t\t\"Create World\",\n \t\t\t\t\t\t\tJOptionPane.PLAIN_MESSAGE, null,\n \t\t\t\t\t\t\tnames, names[0]);\n \t\t\t\t\tif (selected == null)\n \t\t\t\t\t\treturn;\n \t\t\t\t\tEWorld selectedEworld = EWorld.valueOf(selected);\n \t\t\t\t\tworld = new EditableWorld(selectedEworld);\n \t\t\t\t\ttreeModel.addChild(impl.getRootNode(), world);\n \t\t\t\t\tWorldEditor.this.repaint();\n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doDettachFromParent() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doExit() {\n \t\t\t\t\tdispose();\n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doExportWorld() {\n \t\t\t\t\tdlg = new ExportDialog(WorldEditor.this);\n \t\t\t\t\tif (dlg.showDialog()){\n \t\t\t\t\t\texportAction = new Callable() {\n \t\t\t\t\t\t\t@Override\n \t\t\t\t\t\t\tpublic Object call() throws Exception {\n \t\t\t\t\t\t\t\t\tif(dlg.hasFile()) {\n \t\t\t\t\t\t\t\t\t\tCloneImportExport cloner = new CloneImportExport();\n \t\t\t\t\t\t\t\t\t\tcloner.saveClone(world);\n \t\t\t\t\t\t\t\t\t\tEditableWorld cloneWorld = (EditableWorld)cloner.loadClone();\n \t\t\t\t\t\t\t\t\t\tWorld node = (World)cloneWorld.constructFinal();\n \t\t\t\t\t\t\t\t\t\tif(!dlg.exportTextures()) {\n \t\t\t\t\t\t\t\t\t\t\tthis.stripTexure(node);\n \t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\twhile(!layers.isEmpty()) {\n \t\t\t\t\t\t\t\t\t\t\t\tthis.exportAlpha(layers.pop());\n \t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\ttry {\n \t\t\t\t\t\t\t\t\t\t\tBinaryExporter.getInstance().save(node, dlg.getFile());\n \t\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n \t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\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\treturn null;\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\tprivate void stripTexure(Node node) {\n \t\t\t\t\t\t\t\tnode.clearRenderState(RenderState.RS_TEXTURE);\n \t\t\t\t\t\t\t\tfor(int i = 0; i < node.getQuantity(); i++) {\n \t\t\t\t\t\t\t\t\tSpatial child = node.getChild(i);\n \t\t\t\t\t\t\t\t\tif(child instanceof PassNode) ((PassNode)child).clearAll();\n \t\t\t\t\t\t\t\t\telse if(child instanceof Node) this.stripTexure((Node)child);\n \t\t\t\t\t\t\t\t\telse child.clearRenderState(RenderState.RS_TEXTURE);\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\tprivate void exportAlpha(TextureLayer layer) {\n \t\t\t\t\t\t\t\tString raw = dlg.getFile().getPath();\n \t\t\t\t\t\t\t\tString path = raw.substring(0, raw.lastIndexOf(\"\\\\\")+1) + layer.getAlphaName() + EDataType.Texture.getExtension();\n \t\t\t\t\t\t\t\tFile file = new File(path);\n \t\t\t\t\t\t\t\ttry {file.createNewFile();} catch (IOException e) {e.printStackTrace();}\n \t\t\t\t\t\t\t\ttry {\n \t\t\t\t\t\t\t\t\tBinaryExporter.getInstance().save(layer.getAlpha().getImage(), file);\n \t\t\t\t\t\t\t\t} catch (IOException e) {\n \t\t\t\t\t\t\t\t\te.printStackTrace();\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 \n \t\t\t\t@Override\n \t\t\t\tpublic void doExportSelected() {\n \t\t\t\t\tExportDialog dlg = new ExportDialog(WorldEditor.this);\n \t\t\t\t\tif (dlg.showDialog()){\n \t\t\t\t\t\tString exportName = dlg.getName();\n \t\t\t\t\t\tboolean exportTextures = dlg.exportTextures();\n \t\t\t\t\t}\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doHelp() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doImportModel() {\n \t\t\t\t\t// TODO\n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doModelPerspective() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doMove() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doNew() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doOpen() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doRotateX() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doRotateY() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doRotateZ() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void doWorldPerspective() {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \t\t\t});\n \n \t\t\tpack();\n \t\t\tsetSize(800, 600);\n \t\t\tsetVisible(true);\n \t\t\t// Note, this requires youi to refresh the canvas whenever a change\n \t\t\t// is\n \t\t\t// made to re-render it. If you want automatic refresh agt the cost\n \t\t\t// of\n \t\t\t// some performance, uncomment this line...\n \t\t\t// /startAutoRefresh(canvas);\n \t\t} catch (IOException ex) {\n \t\t\tLogger.getLogger(WorldEditor.class.getName()).log(Level.SEVERE,\n \t\t\t\t\tnull, ex);\n \t\t}\n \t}", "public void setName(String name) {\n monsterName = name;\n }", "public void setName(String name) {\n monsterName = name;\n }", "void setEditFrameText(Motion m);", "public void levelOneScreen() {\n timer.stop();\n gameModel.setState(\"Level 1\");\n currentScene = levelSetup.getLevelOne().getScene(levelOneInitialEntrance);\n currentBoard = levelSetup.getLevelOne().getBoard();\n currentLevelScreen = levelSetup.getLevelOne();\n levelOneInitialEntrance = (levelOneInitialEntrance ? false : false);\n moveCharacter(mainWindow, currentScene, hero, currentBoard);\n\n }", "public void setLevel(String lev) {\n\t\tlevel = lev;\n\t}", "private void setPlayerRoom(){\n player.setRoom(currentRoom);\n }", "void setWord(Word word);", "public void addToWorld(World world);", "public static void setMe(String m) {\n\t\tme = new HumanLocal(m, game);\n\t}", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 600, 1); \n \n drawLines();\n \n for( int r = 0; r < board.length; r++ )\n {\n for( int c = 0; c < board[r].length; c++)\n {\n board[r][c] = \"\"; \n \n }\n }\n }", "private void setLevel(){\n\t\tif(getD(y) <= T)\n\t\t\tlevel = \"lower\";\n\t\telse\n\t\t\tlevel = \"higher\";\n\t}", "public void setLoc(int x, int y)\n {\n powerUp.setBounds(x,y,65,29);\n text.setBounds(x,y,65,29);\n }", "public Builder setMent(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n ment_ = value;\n onChanged();\n return this;\n }", "public void levelUp3()\r\n {\r\n this.health = 1600;\r\n Story.levelUp3Text();\r\n }", "public void setSchool (String name, String address, String level){\n this.name = name;\n this.address = address;\n this.level = level;\n this.info = \"Name: \"+name+\"\\tAddress: \"+address+\"\\tLevel: \"+level;\n }", "protected void updateWorld(World world) {\r\n\t\tthis.world = world;\r\n\t\tsetup(); //Call setup again to re assign certain variables that depend\r\n\t\t\t\t // on the world\r\n\t\tbufferWorld(); //Buffer the new world\r\n\t}", "void setEnemyPos(Point2D pos);", "public void setWorldTime(long time)\n {\n worldTime = time;\n }", "public void setLevel(Level mLevel) {\n this.level = mLevel;\n level.increaseChamberCount();\n }", "protected void setLevel(int level)\n {\n this.level = level;\n }", "public void setCell(int dim, int row, int col ) {\n\n\t\tCell value = getEnumCell();\n\n\t\tif(isEmpty( dim, row, col)){\n\n\t\t\tboard[dim][row][col]= value;\n\n\t\t\tturn++;\n\t\t}\n\n\t\t//\t\telse System.out.println(value.toString() + \" cannot play there. Choose another location for\" + value.toString() + \" .\");\n\n\n\t}", "@Override\n\tpublic E set(Position<E> p, E e) throws IllegalArgumentException {\n\t\tNode<E> node = validate(p);\n\t\tE answer = node.getElement();\n\t\tnode.setElement(e);\n\t\treturn answer;\n\t}", "@Override\r\n public void setRoom(Room room) {\n this.room = room; //set the hive room\r\n roomList.add(this.room); // add room to the list\r\n }", "public void setCurrentLevel(Level level){\r\n currentLevel = level;\r\n currentLevel.setObserver(this);\r\n }", "public void setSpanish(String newSpanishWord)\n {\n this.spanishWord = newSpanishWord;\n }", "public void resetWorld(){\r\n\t\tSystem.out.println(\"Resetting world\");\r\n\t\tengine.removeAllEntities();\r\n\t\tlvlFactory.resetWorld();\r\n\t\t\r\n\t\tplayer = lvlFactory.createPlayer(cam);\r\n\t\tlvlFactory.createFloor();\r\n lvlFactory.createWaterFloor();\r\n \r\n int wallWidth = (int) (1*RenderingSystem.PPM);\r\n int wallHeight = (int) (60*RenderingSystem.PPM);\r\n TextureRegion wallRegion = DFUtils.makeTextureRegion(wallWidth, wallHeight, \"222222FF\");\r\n lvlFactory.createWalls(wallRegion); //TODO make some damn images for this stuff \r\n \r\n // reset controller controls (fixes bug where controller stuck on directrion if died in that position)\r\n controller.left = false;\r\n controller.right = false;\r\n controller.up = false;\r\n controller.down = false;\r\n controller.isMouse1Down = false;\r\n controller.isMouse2Down = false;\r\n controller.isMouse3Down = false;\r\n\t\t\r\n\t}", "public void initWorld(String inName, int inLevel, int id)\r\n {\r\n setBackground(248);\r\n\r\n addObject(playerPkmnInfoBox, 334, 229);\r\n addObject(enemyPkmnInfoBox, 144, 49);\r\n\r\n currentEnemyPokemon = id;\r\n\r\n addNewPokemon(\"Player\", currentPlayerPokemon, \"\", 0);\r\n if(wildPokemon)\r\n {\r\n addNewPokemon(\"Enemy\", currentEnemyPokemon, inName, inLevel);\r\n }\r\n else\r\n {\r\n addNewPokemon(\"Enemy\", currentEnemyPokemon, \"\", 0);\r\n }\r\n\r\n this.textInfoBox = new TextInfoBox(\"BattleSelectBox\", \"BattleBar\", currentPlayerPokemon);\r\n addObject(textInfoBox, getWidth() / 2, getHeight() - 69); //Battle Text Box\r\n\r\n newMusic(\"Battle\");\r\n Greenfoot.setSpeed(50);\r\n setPaintOrder(Blackout.class, TextInfoBox.class, PkmnInfoBox.class, Pokemon.class);\r\n }", "public void setMessage(String word){\r\n message.setText(word);\r\n }", "public void levelEightScreen() {\n timer.stop();\n gameModel.setState(\"Level 8\");\n currentScene = levelSetup.getLevelEight().getScene(levelEightInitialEntrance);\n currentBoard = levelSetup.getLevelEight().getBoard();\n currentLevelScreen = levelSetup.getLevelEight();\n levelEightInitialEntrance = (levelEightInitialEntrance ? false : false);\n moveCharacter(mainWindow, currentScene, hero, currentBoard);\n }", "public void setSword(Sword sword) {\n \tif(this.sword == null) {\n \t\tthis.sword = sword;\n \t\tthis.UIsword().set(true);\n \t\tdungeon.swordLeft().set(\"Sword Hits Left: 5\\n\");\n \t}\n\t}", "private void setLevel(int level){\r\n\t\tswitch(level){\r\n\t\t\tcase Game.LEVEL_ONE:\r\n\t\t\tcase Game.LEVEL_TWO:\r\n\t\t\tcase Game.LEVEL_THREE:\r\n\t\t\t\tthis.level = level;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.err.println(\"Improper level input, use 'Game.LEVEL_#' to accurately input a level into this method\");\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "public void setToPlayer(Player player)\n \t{\n \t\t// Define the inventory\n \t\tPlayerInventory inventory = player.getInventory();\n \n \t\t// Clear it all first\n \t\tinventory.clear();\n \t\tinventory.setHelmet(new ItemStack(Material.AIR));\n \t\tinventory.setChestplate(new ItemStack(Material.AIR));\n \t\tinventory.setLeggings(new ItemStack(Material.AIR));\n \t\tinventory.setBoots(new ItemStack(Material.AIR));\n \n \t\t// Set the armor contents\n \t\tif(this.helmet != null) inventory.setHelmet(this.helmet.toItemStack());\n \t\tif(this.chestplate != null) inventory.setChestplate(this.chestplate.toItemStack());\n \t\tif(this.leggings != null) inventory.setLeggings(this.leggings.toItemStack());\n \t\tif(this.boots != null) inventory.setBoots(this.boots.toItemStack());\n \n \t\t// Set items\n \t\tfor(int i = 0; i < 35; i++)\n \t\t{\n\t\t\tinventory.setItem(i, this.items[i].toItemStack());\n \t\t}\n \n \t\t// Delete\n \t\tDemigodsData.jOhm.delete(PlayerCharacterInventory.class, id);\n \t}", "public void setEnchantLevel(CustomEnchantment ce, Player p, long level){\n ItemStack is;\n ItemMeta im;\n List<String> lore;\n if(p == null || (is = p.getInventory().getItemInMainHand()) == null || (im = is.getItemMeta()) == null || (is.getType() != Material.DIAMOND_PICKAXE)) return;\n lore = im.getLore();\n if(lore == null)\n lore = new ArrayList<>();\n boolean containsEnchant = false;\n for(int i = 0; i < lore.size(); i++){\n if(lore.get(i).contains(ce.getDisplayName())){\n containsEnchant = true;\n lore.set(i, ce.getColor() + ce.getDisplayName() + \" \" + level);\n }\n }\n if(!containsEnchant) lore.add(ce.getColor() + ce.getDisplayName() + \" \" + level);\n im.setLore(lore);\n is.setItemMeta(im);\n\n\n\n\n\n }", "public void setExperience(int e) {\n\t\texperience += e;\n\t\twhile(experience >= getExperienceToNextLevel()) {\n\t\t\texperience -= getExperienceToNextLevel();\n\t\t\tlevel++;\n\t\t}\n\t\tMAX_LIFE+= level*100;\n\t\tlife = MAX_LIFE;\n\t}", "private void configureWorlds(){\n switch (gameWorld){\n case NORMAL:\n world.setPVP(true);\n world.setKeepSpawnInMemory(false);\n world.setAutoSave(false);\n world.setStorm(false);\n world.setThundering(false);\n world.setAnimalSpawnLimit((int) (mobLimit * 0.45));\n world.setMonsterSpawnLimit((int) (mobLimit * 0.45));\n world.setWaterAnimalSpawnLimit((int) (mobLimit * 0.1));\n world.setDifficulty(Difficulty.HARD);\n break;\n case NETHER:\n world.setPVP(true);\n world.setAutoSave(false);\n world.setKeepSpawnInMemory(false);\n world.setStorm(false);\n world.setThundering(false);\n world.setMonsterSpawnLimit((int) (mobLimit * 0.45));\n world.setAnimalSpawnLimit((int) (mobLimit * 0.45));\n world.setWaterAnimalSpawnLimit((int) (mobLimit * 0.1));\n world.setDifficulty(Difficulty.HARD);\n break;\n }\n }", "void setModifier(Modifier modifier);", "public void setRights(String lang, String value) {\n/* 279 */ setLangAlt(\"rights\", lang, value);\n/* */ }", "@Override\n public String getType() {\n return \"golem\";\n }", "public void setPlayer(SuperMario mario){\r\n this.mario = mario;\r\n }", "public void setLevel(Level level) {\r\n\t\tthis.level = level;\r\n\t}", "public void initSinglePlayerChoice() {\n\t\tWorld.clear();\n\t\tWorld.add(new TextStatic(difficultyString, Screen.getCenterX()\n\t\t\t\t- difficultyString.length() * Sprite.CHAR_WIDTH / 2, Screen\n\t\t\t\t.getHeight() * 6 / 8 - Sprite.CHAR_HEIGHT / 2, Color.white));\n\t\tWorld.add(new EasyButton(Screen.getCenterX() - EasyButton.WIDTH / 2,\n\t\t\t\tScreen.getHeight() * 5 / 8 - EasyButton.HEIGHT / 2, this));\n\t\tWorld.add(new MediumButton(Screen.getCenterX() - EasyButton.WIDTH / 2,\n\t\t\t\tScreen.getHeight() * 4 / 8 - EasyButton.HEIGHT / 2, this));\n\t\tWorld.add(new HardButton(Screen.getCenterX() - EasyButton.WIDTH / 2,\n\t\t\t\tScreen.getHeight() * 3 / 8 - EasyButton.HEIGHT / 2, this));\n\t\tWorld.add(new TextStatic(footerText, Screen.getCenterX()\n\t\t\t\t- footerText.length() * Sprite.CHAR_WIDTH / 2,\n\t\t\t\tSprite.CHAR_HEIGHT, Color.yellow));\n\n\t}" ]
[ "0.58837444", "0.58109903", "0.5808261", "0.54998827", "0.54376566", "0.54051375", "0.53416014", "0.53363526", "0.53286004", "0.5244745", "0.5219866", "0.5204328", "0.5175759", "0.51513", "0.5148231", "0.5138983", "0.5133648", "0.51112545", "0.50785094", "0.5038263", "0.5031929", "0.5009345", "0.49706456", "0.49695775", "0.4967054", "0.4932598", "0.49273422", "0.49157876", "0.49134797", "0.49134797", "0.48973146", "0.488566", "0.4876951", "0.48762053", "0.48675388", "0.48240775", "0.4809878", "0.48051858", "0.47981748", "0.47943112", "0.47867486", "0.4782168", "0.47799596", "0.4777461", "0.4773021", "0.47644874", "0.47574893", "0.4745189", "0.4739245", "0.47270143", "0.4726515", "0.47212756", "0.47112578", "0.4708742", "0.47055927", "0.47052413", "0.47016764", "0.46983173", "0.4693245", "0.46891302", "0.46891302", "0.46856248", "0.46820298", "0.46801275", "0.4675621", "0.46743104", "0.46721163", "0.46631426", "0.46570593", "0.4655806", "0.4649404", "0.46480736", "0.46378776", "0.46201763", "0.46134126", "0.46050417", "0.4604355", "0.4597031", "0.45865083", "0.45856926", "0.4584567", "0.45837045", "0.4583122", "0.45800397", "0.45637172", "0.45593762", "0.45589656", "0.45573083", "0.4555525", "0.45512694", "0.45501408", "0.4548806", "0.45464808", "0.4539303", "0.4536735", "0.4535847", "0.4535188", "0.45345032", "0.4530129", "0.45264086" ]
0.5383745
6
============================================================ ========= LevelPack SERIALIZATION STUFF ==================== ============================================================ Constructs and returns a LevelPack from the indicated file.
public static LevelPack fromFile(String filename) { String json = Serializer.readStringFromFile(filename); LevelPack lp = fromJson(json); standardize(lp); return lp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static LevelPack fromFilePartial(String filename) {\n\n\t\t// Read everything from the LevelPack, but don't bother deserializing\n\t\t// the Worlds.\n\t\tString json = Serializer.readStringFromFile(filename);\n\t\treturn fromJsonPartial(json);\n\t}", "public void toFile(String filename) {\n\t\tString serialized = Serializer.serializeLevelPack(this);\n\t\tSerializer.writeToFile(filename, serialized.getBytes());\n\t}", "ICpPack getPack();", "public LevelFromFile() {\n this.velocityList = new ArrayList<Velocity>();\n this.blockList = new ArrayList<Block>();\n this.levelName = null;\n numberOfBalls = null;\n paddleSpeed = null;\n paddleWidht = null;\n levelName = null;\n background = null;\n numberOfBlocksToRemove = null;\n blockDef = null;\n startOfBloks = null;\n startOfBloksY = null;\n rowHight = null;\n }", "public BrickStructure loadStructureFromBinaryFile(File file) {\n\t\tthrow new NullPointerException();\n\t}", "public synchronized void generateLevel(Game game, int levelPack, int levelNumber) {\n\t\tInputStream in = null;\n\t\tString levelCode = levelPack + \"-\" + levelNumber;\n\t\ttry {\n\t\t\tin = game.getFileIO().readAsset(\"level\" + levelCode + \".txt\");\n\t\t\tList<String> layers = readLines(in);\n\t\t\t//set world height\n\t\t\tWORLD_HEIGHT = layers.size();\n\t\t\t\n\t\t\tfor(float i = 0, y = 0.5f + layers.size() - 1; i < layers.size(); i++, y -= 1) {\n\t\t\t\tString layer = layers.get((int)i);\n\t\t\t\t\n\t\t\t\tfor(float j = 0, x = 0.5f; j < layer.length(); j++, x += 1) {\n\t\t\t\t\tif(x > tempWidth) {\n\t\t\t\t\t\ttempWidth = x + 0.5f;\n\t\t\t\t\t}\n\t\t\t\t\tchar tile = layer.charAt((int)j);\n\t\t\t\t\t\n\t\t\t\t\tif(tile == 'T') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t} else if(tile == 'L') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t\tleftXLimit = x - 0.5f;\n\t\t\t\t\t} else if(tile == 'l') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t\trightXLimit = x + 0.5f;\n\t\t\t\t\t} else if(tile == 'M') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t\tminXLimit = x - 0.5f;\n\t\t\t\t\t} else if(tile == 'U') {\n\t\t\t\t\t\tSpike upSpike = new Spike(x, y);\n\t\t\t\t\t\tupSpikes.add(upSpike);\n\t\t\t\t\t} else if(tile == 'V') {\n\t\t\t\t\t\tSpike downSpike = new Spike(x, y);\n\t\t\t\t\t\tdownSpikes.add(downSpike);\n\t\t\t\t\t} else if(tile == 'R') {\n\t\t\t\t\t\tSpike rightSpike = new Spike(x, y);\n\t\t\t\t\t\trightSpikes.add(rightSpike);\n\t\t\t\t\t} else if(tile == 'J') {\n\t\t\t\t\t\tSpike leftSpike = new Spike(x, y);\n\t\t\t\t\t\tleftSpikes.add(leftSpike);\n\t\t\t\t\t} else if(tile == 'D') {\n\t\t\t\t\t\tDiamond diamond = new Diamond(x, y);\n\t\t\t\t\t\tdiamondBlocks.add(diamond);\n\t\t\t\t\t} else if(tile == 'G') {\n\t\t\t\t\t\tGold gold = new Gold(x, y);\n\t\t\t\t\t\tgoldBlocks.add(gold);\n\t\t\t\t\t} else if(tile == 'S') {\n\t\t\t\t\t\tSilver silver = new Silver(x, y);\n\t\t\t\t\t\tsilverBlocks.add(silver);\n\t\t\t\t\t} else if(tile == 'P') {\n\t\t\t\t\t\tplayer = new Player(x, y);\n\t\t\t\t\t\tplayer.velocity.y = 1;\n\t\t\t\t\t\trespawnPoint = new Vector2(x, y);\n\t\t\t\t\t} else if(tile == 'C') {\n\t\t\t\t\t\tCheckpoint checkpoint = new Checkpoint(x, y);\n\t\t\t\t\t\tcheckpoints.add(checkpoint);\n\t\t\t\t\t} else if(tile == 'F') {\n\t\t\t\t\t\tEndingFlag eflag = new EndingFlag(x, y);\n\t\t\t\t\t\teflags.add(eflag);\n\t\t\t\t\t} else if(tile == '#') {\n\t\t\t\t\t\tworldNumberG = (int)Math.ceil(y);\n\t\t\t\t\t\tlevelNumberG = (int)Math.ceil(x);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t\t\n\t\t\t//set max found width across map to permanent width for current world\n\t\t\tWORLD_WIDTH = tempWidth;\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t}\n\t}", "public static IDatastream createBundle(File f) throws ScapException {\r\n \treturn new Bundle(f);\r\n }", "public ModuleMarshaller(File file) {\n moduleFile = file;\n }", "public static LevelPack fromJson(String json) {\n\t\treturn Serializer.deserializeLevelPack(json);\n\t}", "public String toJson() {\n\t\treturn Serializer.serializeLevelPack(this);\n\t}", "public static String pack(String filePath) throws APIException {\n\n var result = new StringBuilder();\n try (var reader = new BufferedReader(new FileReader(filePath))) {\n final var packageProcessor = PackageProcessorFactory.getProcessor(\n PackageProcessorFactory.Priority.COST_FIRST_THEN_WEIGHT);\n var line = reader.readLine();\n while (line != null) {\n var packingResult = packageProcessor.process(line);\n result.append(packingResult)\n .append(System.lineSeparator());\n line = reader.readLine();\n }\n } catch (IOException e) {\n throw new APIException(\"Cannot open file\", e);\n } catch (ParsingException e) {\n throw new APIException(\"Cannot parse data\", e);\n } catch (ProcessingException e) {\n throw new APIException(\"Cannot process data\", e);\n }\n return result.toString();\n }", "public static Optional<CompoundNBT> nbtFrom(final File file) {\n\n if (file.exists()) {\n\n try (final FileInputStream stream = new FileInputStream(file)) {\n return Optional.of(CompressedStreamTools.readCompressed(stream));\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }\n\n return Optional.empty();\n }", "public ModuleMarshaller(String filename) {\n moduleFile = new File(filename);\n }", "public static DefinedStructure loadSingleStructure(File source) throws IOException {\n DefinedStructure structure = new DefinedStructure();\n structure.b(NBTCompressedStreamTools.a(new FileInputStream(source)));\n return structure;\n }", "@Override\r\n\tpublic Level LoadLevel(InputStream LevelLoad) throws IOException {\r\n\t\tBufferedReader read = new BufferedReader(new InputStreamReader(LevelLoad));\r\n\t\tString line;\r\n\t\tint column = 0;\r\n\t\tint row = 0;\r\n\t\tArrayList<String> ans = new ArrayList<String>();\r\n\t\tString name = read.readLine();\r\n\t\twhile ((line = read.readLine()) != null) {\r\n\t\t\tif (line.length() > row) {\r\n\t\t\t\trow = line.length();\r\n\t\t\t}\r\n\t\t\tcolumn++;\r\n\t\t\tans.add(line);\r\n\r\n\t\t}\r\n\t\tLevel level = new Level(column, row);\r\n\t\tlevel.setName(name);\r\n\t\tcolumn = 0;\r\n\t\tfor (String resualt : ans) {\r\n\t\t\tfor (int i = 0; i < resualt.length(); i++) {\r\n\t\t\t\tswitch (resualt.charAt(i)) {\r\n\t\t\t\tcase ' ': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive(' ');\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, item);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase '#': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive('#');\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, item);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 'A': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive('A');\r\n\t\t\t\t\tlevel.setMoveableMap(column, i, item);\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, new AbstractItems(new Position2D(column, i), ' '));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase '@': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive('@');\r\n\t\t\t\t\tlevel.setMoveableMap(column, i, item);\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, new AbstractItems(new Position2D(column, i), ' '));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 'o': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive('o');\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, item);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tcolumn++;\r\n\t\t}\r\n\r\n\t\treturn level;\r\n\t}", "public LevelParser(String file) throws SyntacticIncException \n\t{\n\t\tthis.file = file;\n\t\ttry \n\t\t{\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(this.file));\n\t\t\tString zeile;\n\t\t\t\n\t\t\tint x = 0;\n\t\t\tint zeilenlaenge = 0;\n\t\t\twhile ((zeile = in.readLine()) != null) \n\t\t\t{\n\t\t\t\tchar[] zeilenChars = zeile.toCharArray();\n\t\t\t\tif(x!=0 && zeilenlaenge!=zeilenChars.length) throw new SyntacticIncException(\"Syntaktisch Inkorrekt - zeilen in datei unterschiedlich lang\");\n\t\t\t\tzeilenlaenge = zeilenChars.length;\n\t\t\t\tif(level==null){\n\t\t\t\t\tlevel = new char[1][zeilenlaenge];\n\t\t\t\t\tlevel[0] = zeilenChars.clone();\n\t\t\t\t}else{\n\t\t\t\t\tchar[][] levelClone = level.clone();\n\t\t\t\t\tlevel = new char[levelClone.length+1][zeilenlaenge];\n\t\t\t\t\tSystem.arraycopy(levelClone, 0, level, 0, level.length-1);\n\t\t\t\t\tlevel[levelClone.length] = zeilenChars;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tx++;\n\t\t\t}\n\t\t\tlevelActive = new char[level.length+2][level[0].length+2];\n\t\t\t\n\t\t\tfillActiveLevels();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new SyntacticIncException(\"Syntaktisch Inkorrekt - Datei nicht gefunden\");\n\t\t}\n\t\tif (!syntaktischRichtig()) \n\t\t{\n\t\t\tlevel = null;\n\t\t\tlevelActive = null;\n\t\t\tthrow new SyntacticIncException(\"Syntaktisch Inkorrekt - datei fehlerhaft\");\n\t\t} else \n\t\t{\n\t\t\tlevelGeladen = true;\n\t\t}\n\t}", "public Level(String levelFile,Scene gameS){\n levelCreator = new TileFactory();\n this.levelFile = levelFile;\n initLevel();\n gameScene = gameS;\n enableInput(gameScene);\n }", "public static void setupResourcePack() {\n try {\n FileWriter writer = new FileWriter(Paths.get(FMLPaths.CONFIGDIR.get().toAbsolutePath().toString(),WingTech.MODID, \"resources\", \"pack.mcmeta\").toFile());\n writer.write(\"{\\\"pack\\\":{\\\"pack_format\\\":6,\\\"description\\\":\\\"WingTech resource pack used for lang purposes for the user to add lang for teas.\\\"}}\");\n writer.close();\n }\n catch (Exception e){\n WingTech.LOGGER.error(\"Error creating pack.mcmeta\", e);\n }\n Minecraft.getInstance().getResourcePackRepository().addPackFinder((consumer, factory) -> {\n final ResourcePackInfo packInfo = ResourcePackInfo.create(\n WingTech.MODID,\n true,\n () -> new FolderPack(Paths.get(FMLPaths.CONFIGDIR.get().toAbsolutePath().toString(),WingTech.MODID, \"resources\").toFile()) {\n @Override\n public boolean isHidden() {\n return true;\n }\n },\n factory,\n ResourcePackInfo.Priority.TOP,\n IPackNameDecorator.BUILT_IN\n );\n if (packInfo == null) {\n WingTech.LOGGER.error(\"Failed to load tea resource pack!\");\n return;\n }\n consumer.accept(packInfo);\n });\n }", "@Override\n public Map<String, PostList> getPostPack(int file) {\n CachedPostPack c = get(file);\n\n if (c == null) {\n return null;\n }\n\n return c.getPostPack();\n }", "public NestedZipFile(File file) throws IOException {\n this(file, Charset.defaultCharset());\n }", "public static LevelPackage calculateLevelPackage(int level){\n\t\tif(level < 1) return calculateLevelPackage(1);\n\t\t\n\t\treturn new LevelPackage(level, calcMaxExpForLevel(level));\n\t}", "ICpPackInfo getPackInfo();", "public int getPack() {\r\n\t\treturn pack;\r\n\t}", "@Override\r\n\tpublic Level LoadLevel(InputStream LevelLoad)throws IOException\r\n\t{\r\n\r\n\t\tBufferedReader read = new BufferedReader(new InputStreamReader(LevelLoad));\r\n\t\tString line;\r\n\t\tint column=0;\r\n\t\tint row=0;\r\n\t\tArrayList<String> ans= new ArrayList<String>();\r\n\t\twhile((line = read.readLine()) != null)\r\n\t\t{\r\n\t\t\tif (line.length() > row)\r\n\t\t\t{\r\n\t\t\t\trow = line.length();\r\n\t\t\t}\r\n\t\tcolumn++;\r\n\t\tans.add(line);\r\n\r\n\t\t}\r\n\t\tLevel level = new Level(column,row);\r\n\t\tcolumn = 0;\r\n\t\tfor(String resualt: ans)\r\n\t\t{\r\n\r\n\t\t\tfor(int i=0;i<resualt.length();i++)\r\n\t\t\t{\r\n\t\t\t\tswitch(resualt.charAt(i))\r\n\t\t\t\t{\r\n\t\t\t\t\tcase ' ':\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tItem item = new AbstractItems(new Position2D(column,i));\r\n\t\t\t\t\t\titem.setReprestive(' ');\r\n\t\t\t\t\t\tlevel.setUnmoveableMap(column,i,item);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase '#':\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tItem item = new AbstractItems(new Position2D(column,i));\r\n\t\t\t\t\t\titem.setReprestive('#');\r\n\t\t\t\t\t\tlevel.setUnmoveableMap(column,i,item);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase 'A':\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tItem item = new AbstractItems(new Position2D(column,i));\r\n\t\t\t\t\t\titem.setReprestive('A');\r\n\t\t\t\t\t\tlevel.setMoveableMap(column,i,item);\r\n\t\t\t\t\t\tlevel.setUnmoveableMap(column,i, new AbstractItems(new Position2D(column,i), ' '));\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase '@':\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tItem item = new AbstractItems(new Position2D(column,i));\r\n\t\t\t\t\t\titem.setReprestive('@');\r\n\t\t\t\t\t\tlevel.setMoveableMap(column,i,item);\r\n\t\t\t\t\t\tlevel.setUnmoveableMap(column,i, new AbstractItems(new Position2D(column,i), ' '));\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase 'o':\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tItem item = new AbstractItems(new Position2D(column,i));\r\n\t\t\t\t\t\titem.setReprestive('o');\r\n\t\t\t\t\t\tlevel.setUnmoveableMap(column,i,item);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tcolumn++;\r\n\t\t}\r\n\r\n\r\n\t\treturn level;\r\n\t}", "public LevelPack(String name, User author, World... worlds) {\n\t\tthis.name = name;\n\n\t\tthis.transitionScript = new UserScript(\"onTransition\",\n\t\t\t\t\"--This script will be run to return an LuaInt specifying the next world to proceed to, given the current world state.\",\n\t\t\t\tSecurityLevel.AUTHOR);\n\n\t\tif (worlds.length == 0)\n\t\t\tworlds = new World[] { new World() };\n\t\tthis.levels = new WorldList();\n\t\tthis.levels.addAll(Arrays.asList(worlds));\n\t\tthis.levelIndex = 0;\n\t\tthis.levelCount = worlds.length;\n\t\tthis.levelEmblems = new ImageList();\n\t\tthis.levelTitles = new ArrayList<String>();\n\t\tthis.levelDescriptions = new ArrayList<String>();\n\n\t\tthis.authors = new ArrayList<>();\n\t\tthis.originalAuthor = author;\n\t\tthis.mainEmblem = new ImageList();\n\t\tthis.mainEmblem.add((BufferedImage) UIBuilder.getImage(DEFAULT_MAIN_EMBLEM_FILE));\n\t\tif (author != null)\n\t\t\taddAuthor(author);\n\t\tcreationDate = LocalDateTime.now();\n\t\tpublishStart = LocalDateTime.now();\n\t\tpublishEnd = publishStart.plusYears(1);\n\t\taudienceUsers = new ArrayList<>();\n\t\taudienceGroups = new ArrayList<>();\n\t\tfeedbackModel = FeedbackModel.RATING_AND_COMMENTS;\n\n\t\tcurrentPlayer = null;\n\t\tplayerVisible = new HashSet<>();\n\t\tplayerVisible.add(0);\n\t}", "private static void standardize(LevelPack pack) {\n\t\t// TODO: kill this once we have the LevelPacks stored at a standardized\n\t\t// state.\n\n\t\t// If level header info was not stored originally, check to make sure\n\t\t// there are not nulls after the deserialization.\n\t\tif (pack.levels == null)\n\t\t\tpack.levels = new WorldList();\n\t\tif (pack.levelTitles == null)\n\t\t\tpack.levelTitles = new ArrayList<String>();\n\t\tif (pack.levelDescriptions == null)\n\t\t\tpack.levelDescriptions = new ArrayList<String>();\n\t\tif (pack.levelEmblems == null)\n\t\t\tpack.levelEmblems = new ImageList();\n\n\t\t// If the level header stuff wasn't originally stored, it may be\n\t\t// necessary to populate header info with dummy data. There will always\n\t\t// be at least one level title/description/emblem, even if the levels\n\t\t// themselves don't exist.\n\t\tpack.levelCount = Math.max(1, Math.max(pack.levels.size(),\n\t\t\t\tMath.max(pack.levelTitles.size(), Math.max(pack.levelDescriptions.size(), pack.levelEmblems.size()))));\n\t\twhile (pack.levelTitles.size() < pack.levelCount)\n\t\t\tpack.levelTitles.add(\"Unnamed level.\");\n\t\twhile (pack.levelDescriptions.size() < pack.levelCount)\n\t\t\tpack.levelDescriptions.add(\"No description.\");\n\t\twhile (pack.levelEmblems.size() < pack.levelCount)\n\t\t\tpack.levelEmblems.add((BufferedImage) UIBuilder.getImage(\"images/ice_cave.jpg\"));\n\n\t\t// The lock is something new added, but it defaults to false anyway.\n\n\t}", "@Override\n\tpublic void genLevel(File f) {\n\t\t\n\t}", "private static String createLevelFile(String difficultyName)\n\t{\n\t\tInteger tries=1;\n\n\t\tString levelPath = SokobanUtilities.getPathToCode()+\"/code/levels/generated/generator_\"+difficultyName.toLowerCase();\n\t\tString tempPath = levelPath+\".xsb\";\n\t\tFile level = new File(levelPath+\".xsb\");\n\n\t\twhile(level.exists())\n\t\t{\n\t\t\ttempPath = levelPath+\"_\"+tries.toString()+\".xsb\";\n\t\t\tlevel=new File(tempPath);\n\t\t\ttries++;\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\tlevel.createNewFile();\n\t\t} catch (IOException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n\n\t\tPrintWriter out = null;\n\t\ttry\n\t\t{\n\t\t\tout = new PrintWriter(level);\n\t\t\tfor(int i=0; i<rows; i++)\n\t\t\t{\n\t\t\t\tfor(int j=0; j<columns; j++)\n\t\t\t\t{\n\t\t\t\t\tout.print(Cells.cellsToxsb(board[i][j]));\n\t\t\t\t}\n\t\t\t\tout.println();\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t} finally {\n\t\t\tout.close();\n\t\t}\n\n\t\tlevelPath=tempPath;\n\n\t\treturn levelPath;\n\t}", "FormattedSmartPlaylist readFromFile(File file) throws JAXBException, FileNotFoundException;", "public static String pack(String filePath) throws APIException{\n log.info(\"Packing {}\", filePath);\n StringBuilder sb = new StringBuilder();\n try{\n List<PackageDTO> packages = preparePackages(filePath);\n for(PackageDTO packageDTO : packages){\n List<Integer> packDPSolution = packDPInit(packageDTO);\n sb = parseEmptySolution(sb, packDPSolution);\n }\n }catch (APIException e) {\n throw e;\n }\n String res = trimSolution(sb);\n fileService.writeToPath(filePath, res);\n return res;\n }", "@Override\n\tpublic void init(String file_name) { deserialize(file_name); }", "public NestedZipFile(File file, Charset charset) throws IOException {\n this(file, OPEN_READ, charset);\n }", "public Mesh load(String filename)\r\n\t{\r\n\t\tMesh mesh = new Mesh(); mesh.addFileMetaData(filename);\r\n \r\n\t\t//Open file and read in vertices/faces\r\n\t\tScanner sc;\r\n\t\tString line;\r\n\t\t\r\n\t\ttry{\r\n\t\t\tBufferedReader ins = new BufferedReader(new FileReader(filename));\r\n\t\t\tins.readLine(); //ID; always \"nff\"\r\n\t\t\tins.readLine(); //Version\r\n\t\t\t\r\n\t\t\t//We need to move through the header to find the start of the first object\r\n\t\t\t//This will be the first line that contains text that does not start with\r\n\t\t\t//\"viewpos\" or \"viewdir\" (optional features) or \"//\" (comment)\r\n\t\t\twhile(true){\r\n\t\t\t\tline = ins.readLine();\r\n\t\t\t\tsc = new Scanner(line);\r\n\t\t\t\t\r\n\t\t\t\tif(sc.hasNext() == true){\r\n\t\t\t\t\tString token = sc.next();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif((\"viewpos\".equalsIgnoreCase(token) == false) && \r\n\t\t\t\t\t\t\t(\"viewdir\".equalsIgnoreCase(token) == false) &&\r\n\t\t\t\t\t\t\t(\"//\".equals(token.substring(0, 2)) == false)){\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tsc.close();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsc.close();\r\n\t\t\t\r\n\t\t\t//The rest of the file is filled up with objects\r\n\t\t\twhile(true){\r\n\t\t\t\tsc = new Scanner(line);\r\n\t\t\t\tString name = sc.next();\r\n\t\t\t\tsc.close();\r\n\t\t\t\t\r\n\t\t\t\tsc = new Scanner(ins.readLine());\r\n\r\n\t\t\t\tVector<Point> vertices = new Vector<Point>();\r\n\t\t\t\tVector<Face> faces = new Vector<Face>();\r\n\t\t\t\t\r\n\t\t\t\tint vertexCount = sc.nextInt();\r\n\t\t\t\t\r\n\t\t\t\t//We have vertexCount lines next with 3 floats per line\r\n\t\t\t\twhile(vertexCount > 0){\r\n\t\t\t\t\tsc.close();\r\n\t\t\t\t\tsc = new Scanner(ins.readLine());\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(sc.hasNextFloat() == false){\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tfloat x = sc.nextFloat();\r\n\t\t\t\t\t\tfloat y = sc.nextFloat();\r\n\t\t\t\t\t\tfloat z = sc.nextFloat();\r\n\t\t\t\t\t\tvertices.add(new Point(x, y, z));\r\n\t\t\t\t\t\tvertexCount--;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tsc.close();\r\n\t\t\t\tsc = new Scanner(ins.readLine());\r\n\t\t\t\tint polygonCount = sc.nextInt();\r\n\t\t\t\t\r\n\t\t\t\t//We have polygonCount lines defining the faces\r\n\t\t\t\t//The first int on each line gives the number of\r\n\t\t\t\t//vertices making up that particular face\r\n\t\t\t\t//Then the indexes of those vertices are listed\r\n\t\t\t\twhile(polygonCount > 0){\r\n\t\t\t\t\tsc.close();\r\n\t\t\t\t\tsc = new Scanner(ins.readLine());\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(sc.hasNextInt() == false){\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tvertexCount = sc.nextInt();\r\n\t\t\t\t\t\tArrayList<Integer> al = new ArrayList<Integer>();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\twhile(vertexCount > 0){\r\n\t\t\t\t\t\t\tal.add(sc.nextInt());\r\n\t\t\t\t\t\t\tvertexCount--;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfaces.add(new Face(al));\r\n\t\t\t\t\t\tpolygonCount--;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tmesh.addData(vertices, faces, -1, name);\r\n\t\t\t\t\r\n\t\t\t\t//The last thing we need to do is read up to and including\r\n\t\t\t\t//the next object's name or until we reach the end of the file\r\n\t\t\t\t\r\n\t\t\t\twhile((line = ins.readLine()) != null){\r\n\t\t\t\t\tsc.close();\r\n\t\t\t\t\tsc = new Scanner(line);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//The next non-blank line that doesn't start with \"//\" is the start of the next object\r\n\t\t\t\t\tif((sc.hasNext() == true) && (sc.next().substring(0, 2).equals(\"//\") == false)){\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tsc.close();\r\n\t\t\t\tif(line == null){ //EOF\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null; \r\n\t\t}\r\n\t\t\r\n\t\tmesh.initialize();\r\n \r\n\t\treturn mesh;\r\n\t}", "public static XmlSerializableCatalogue loadDataFromSaveFile(File file) throws DataConversionException,\n FileNotFoundException {\n try {\n return XmlUtil.getDataFromFile(file, XmlSerializableCatalogue.class);\n } catch (JAXBException e) {\n throw new DataConversionException(e);\n }\n }", "public static Object readObjectFromFile(File file)\n/* */ throws IOException, ClassNotFoundException\n/* */ {\n/* 109 */ ObjectInputStream ois = new ObjectInputStream(new BufferedInputStream(new GZIPInputStream(new FileInputStream(file))));\n/* 110 */ Object o = ois.readObject();\n/* 111 */ ois.close();\n/* 112 */ return o;\n/* */ }", "public PACKINGLIST getPack() {\n\t\treturn pack;\n\t}", "public void loadGzipedSchematic(File f) throws IOException {\nDataInputStream in = new DataInputStream(new GZIPInputStream(new FileInputStream(f)));\nloadUncompressedSchematic(in);\nin.close();\n}", "private void serializeToFile(File file) {\n\t\ttry {\n FileOutputStream outputStream = new FileOutputStream(file); // a file stream for writing the serialized objects two.\n ObjectOutputStream byteStream = new ObjectOutputStream(outputStream); // connect the byte stream to the file stream\n byteStream.writeObject(myProjects); // write objects to a byte stream for putting in a file\n byteStream.close(); \n outputStream.close();\n\t\t} catch (IOException e) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Error: file could not be read.\");\n\t\t}\n\t}", "public void gatherLevelJson(String filename) {\r\n\t\tif(level == 0) { // Get level editor level\r\n\t\t\tPreferences prefs = GDXRoot.getPreferences();\r\n\t\t\tif(prefs.contains(filename)) {\r\n\t\t\t\tlevelAssets = new JsonReader().parse(prefs.getString(filename));\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tFileHandle file = Gdx.files.internal(filename);\r\n\t\t\tString text = file.readString();\r\n\t\t\tlevelAssets = new JsonReader().parse(text);//directory.getEntry( String.format(\"level%d\", level), JsonValue.class);\r\n\t\t}\r\n\t}", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "private void fileToPoSTags(String filePath,int version){\n Log.log(\"Reading TreeBank file <\" + filePath +\">\");\n\n FileReader fr = null;\n BufferedReader br = null;\n\n try{\n fr = new FileReader(filePath);\n br = new BufferedReader(fr);\n\n String currentLine;\n String[] columns;\n\n Tag tag1 = null;\n Tag tag2;\n String word;\n\n Integer numRow;\n while((currentLine = br.readLine()) != null){\n columns = currentLine.split(\"\\t\");\n numRow = getIntegerString(columns[0]);\n if(numRow != null && numRow >= 1){\n if(numRow == 1) {\n tag1 = Tag.valueOf(\"START\");\n saveTag(tag1);\n }\n try{\n tag2 = Tag.valueOf(columns[3]);\n saveTag(tag2);\n word = columns[1];\n switch (version){\n case 1:\n savePoSTag(new PoSTag(word.toLowerCase(),tag2));\n break;\n case 2:\n if(!tag2.equals(Tag.PROPN))\n savePoSTag(new PoSTag(word.toLowerCase(),tag2));\n else if(Character.isUpperCase(word.charAt(0)))\n savePoSTag(new PoSTag(word,tag2));\n break;\n case 3:\n\n if(tag2.equals(Tag.PROPN))\n savePoSTag(new PoSTag(word,tag2));\n else{\n if(Character.isUpperCase(word.charAt(0))){\n savePoSTag(new PoSTag(word,tag2));\n savePoSTag(new PoSTag(word.toLowerCase(),tag2));\n }else{\n savePoSTag(new PoSTag(word,tag2));\n savePoSTag(new PoSTag(\n word.substring(0,1).toUpperCase()\n +word.substring(1),tag2));\n }\n\n }\n\n break;\n case 4:\n\n if(!tag2.equals(Tag.PROPN))\n savePoSTag(new PoSTag(word,tag2));\n savePoSTag(new PoSTag(word,tag2));\n break;\n case 5:\n\n if(!tag2.equals(Tag.PROPN))\n savePoSTag(new PoSTag(word.toLowerCase(),tag2));\n savePoSTag(new PoSTag(word,tag2));\n break;\n\n }\n saveBigram(new BiGram(tag1,tag2));\n tag1 = tag2;\n }catch (IllegalArgumentException e){\n e.printStackTrace();\n }\n }\n }\n\n }catch (IOException e){\n e.printStackTrace();\n }finally {\n UtilitiesIO.closeFile(fr,br);\n }\n }", "public static <T extends PMessage<T>, F extends PField> Stream<T> file(File file,\n PStructDescriptor<T, F> descriptor)\n throws IOException {\n BufferedInputStream in = new BufferedInputStream(new FileInputStream(file));\n\n PSerializer serializer;\n in.mark(16);\n int r = in.read();\n if (r < 0) {\n throw new IOException(\"Unexpected end of stream.\");\n }\n if (r == PJsonSerializer.DEFAULT_STREAM_INITIATOR[0]) {\n serializer = new PJsonSerializer(true);\n in.reset();\n } else {\n serializer = new PFastBinarySerializer(true);\n in.reset();\n }\n\n return stream(in, serializer, descriptor);\n }", "public Game(File inFile) {\n\t\tsuper();\n\t\tgameModel = new GameModel(inFile);\n\t\tview = new GamePane(gameModel);\n\t\t\n\t\tadd(view);\n\t\tpack();\n\t\tsetLocationRelativeTo(null);\n\t}", "public abstract Object unMarshal(File pobjFile);", "public Object readObject(File file, int format) throws IOException, FileNotFoundException;", "public static Result servePackFile(String file)\n {\n\t\n\ttry {\n\t //note: the (virtual) 'file' is used as the cache key, see pack()\n\t Map<String, Object> cache = (Map<String, Object>) Cacher.fetchApplicationObject(CACHE_KEY);\n\t CachedPack pack = null;\n\t if (cache!=null && (pack = (CachedPack)cache.get(file))!=null) {\n\t\t/*\n\t\t * TODO: the packed files are stored gzipped to save memory and we return it as raw bytes,\n\t\t * but we should probably offer an alternative for browsers that don't support gzip?\n\t\t */\n\t\tresponse().setHeader(\"Content-Encoding\", \"gzip\");\n\t\tresponse().setHeader(\"Content-Length\", pack.content.length + \"\");\n\t\treturn ok(pack.content).as(pack.mimeType);\n\t }\n\t else {\n\t\t/*\n\t\t * Flush the cache; this shouldn't happen if some client doens't want to load random asset files.\n\t\t * Note: this can impact the performance, so I'm flagging this as 'error' so it pops up in the logs if it does. \n\t\t */\n\t\tLogger.error(\"Flushing the pack-cache, because we seem to miss an entry for \"+file+\" - this shouldn't happen!\");\n\t\tCacher.storeApplicationObject(CACHE_KEY, null);\n\t\treturn notFound();\n\t }\n\t}\n\tcatch (Exception e) {\n\t Logger.error(\"Error while serving pack file\", e);\n\t return internalServerError();\n\t}\n }", "public Decoder(String filename) throws FileNotFoundException { \n this.i = 0;\n this.position = 0;\n this.px = 0;\n this.py = 0;\n this.alkuposition = 0;\n this.j = 0;\n this.filename = filename;\n }", "private void buildDS(String file) throws IOException,ParseException\n\t{\n\t\tJSONParser parser=new JSONParser();\n\t\tJSONObject config=(JSONObject)parser.parse(new FileReader(file));\n\t\taddToMap(config,this.types,\"types\");\n\t\tJSONObject groups=(JSONObject)config.get(\"combine\");\n\t\tfor(String key:(Set<String>)groups.keySet())\n\t\t{\n\t\t\tArrayList<String> temp=new ArrayList<String>();\n\t\t\taddToList(groups,temp,key);\n\t\t\tthis.groups.put(key,temp);\n\t\t}\n\t\taddToMap(config,this.rename,\"rename\");\n\t\taddToMap(config,this.format,\"format\");\n\t\taddToMap(config,this.ops,\"operation\");\n\t}", "public Level(int levelNumber)\r\n\t{\t\r\n\t\tlevelNum = levelNumber;\r\n\t\tlevelFileName = \"level\"+levelNum+\".txt\";\r\n\t\tlistFileName = \"level\"+levelNum+\"items.txt\";\r\n\t\tmakeCommonObjects();\r\n\t\tgrid = new Grid(levelFileName);\r\n\t\tGridSquare startSquare = grid.startLocation();\r\n\t\tplayer = new Player((int)startSquare.rect.x,(int)startSquare.platform.getBoundingRectangle().y+3);\r\n\t\tAndroidGame.camera.position.x = player.getX();\r\n\t\tAndroidGame.camera.position.y = player.getY();\r\n\t\tbackground = new Background(levelNumber, grid);\r\n\t\tdoorBubble = new OffScreenBubble(grid.getFinish());\r\n\t\tif(grid.getKey()!=null)\r\n\t\t{\r\n\t\t\thasKey = true;\r\n\t\t\tkeyBubble = new OffScreenBubble(grid.getKey());\r\n\t\t}\r\n\t\tplayer.reset(grid);\r\n\t}", "@Test\r\n\tpublic void testPackerExample(){\r\n\t\tString expectedResult = \"4\\n-\\n2,7\\n8,9\";\r\n\t\tString itemsResults = Packer.pack(\"./src/test/resources/exampleFile.txt\");\r\n\t\tassertEquals(expectedResult, itemsResults);\r\n\t\tSystem.out.println(\"Test passed. Example file.\");\r\n\t}", "@Test\r\n\tpublic void testFullCapacityLowerToHigerWeight(){\r\n\t\tString expectedResult = \"1,2,4\";\r\n\t\tString itemsResults = Packer.pack(\"./src/test/resources/fullCapacityLowerToHigerWeight.txt\");\r\n\t\tassertEquals(expectedResult, itemsResults);\r\n\t\tSystem.out.println(\"Test passed. FullCapacityLowerToHigerWeight file.\");\r\n\t}", "public TaskProtobufWrapper.CreateTaskPackOrBuilder getCreateTaskPackOrBuilder() {\n if ((packCase_ == 3) && (createTaskPackBuilder_ != null)) {\n return createTaskPackBuilder_.getMessageOrBuilder();\n } else {\n if (packCase_ == 3) {\n return (TaskProtobufWrapper.CreateTaskPack) pack_;\n }\n return TaskProtobufWrapper.CreateTaskPack.getDefaultInstance();\n }\n }", "public GameLevel LoadGame() throws IOException {\n FileReader fr = null;\n BufferedReader reader = null;\n\n try {\n System.out.println(\"Reading \" + fileName + \" data/saves.txt\");\n\n fr = new FileReader(fileName);\n reader = new BufferedReader(fr);\n\n String line = reader.readLine();\n int levelNumber = Integer.parseInt(line);\n\n //--------------------------------------------------------------------------------------------\n\n if (levelNumber == 1){\n gameLevel = new Level1();\n } else if(levelNumber == 2){\n gameLevel = new Level2();\n JFrame debugView = new DebugViewer(gameLevel, 700, 700);\n } else {\n gameLevel = new Level3();\n }\n\n //------------------------------------------------------------------------------------------\n\n\n while ((line = reader.readLine()) != null){\n String[] tokens = line.split(\",\");\n String className = tokens[0];\n float x = Float.parseFloat(tokens[1]);\n float y = Float.parseFloat(tokens[2]);\n Vec2 pos = new Vec2(x, y);\n Body platform = null;\n\n if (className.equals(\"PlayableCharacter\")){\n PlayableCharacter playableCharacter = new PlayableCharacter(gameLevel, PlayableCharacter.getItemsCollected(),PlayableCharacter.isSpecialGravity(),game);\n playableCharacter.setPosition(pos);\n gameLevel.setPlayer(playableCharacter);\n\n }\n\n if (className.equals(\"LogPlatform\")){\n Body body = new LogPlatform(gameLevel, platform);\n body.setPosition(pos);\n }\n\n if (className.equals(\"Coin\")){\n Body body = new Coin(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(new Pickup(gameLevel.getPlayableCharacter(), game));\n }\n\n if (className.equals(\"ReducedGravityCoin\")){\n Body body = new ReducedGravityCoin(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(\n new PickupRGC(gameLevel.getPlayer(), game)\n\n );\n }\n\n if (className.equals(\"AntiGravityCoin\")){\n Body body = new AntiGravityCoin(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(\n new PickupAGC(gameLevel.getPlayer(), game) );\n }\n\n if (className.equals(\"Rock\")){\n Body body = new Rock(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(\n new FallCollisionListener(gameLevel.getPlayableCharacter(), game));\n }\n\n if (className.equals(\"Pellet\")){\n Body body = new Pellet(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(\n new AddLifeCollisionListener(gameLevel.getPlayer(), game));\n }\n\n if (className.equals(\"Branch\")){\n Body body = new Branch(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(new BranchListener(gameLevel.getPlayableCharacter(), game));\n }\n\n if (className.equals(\"Portal\")){\n Body portal = new Portal(gameLevel);\n portal.setPosition(pos);\n portal.addCollisionListener(new DoorListener(game));\n }\n\n if (className.equals(\"DeathPlatform\")){\n float w = Float.parseFloat(tokens[3]);\n float h = Float.parseFloat(tokens[4]);\n float deg = Float.parseFloat(tokens[5]);\n\n Body body = new DeathPlatform(gameLevel, w, h);\n body.setPosition(pos);\n body.addCollisionListener(new FallCollisionListener(gameLevel.getPlayer(), game));\n body.setFillColor(Color.black);\n body.setAngleDegrees(deg);\n\n }\n\n }\n\n return gameLevel;\n } finally {\n if (reader != null) {\n reader.close();\n }\n if (fr != null) {\n fr.close();\n }\n }\n }", "public TaskProtobufWrapper.CreateTaskPack getCreateTaskPack() {\n if (createTaskPackBuilder_ == null) {\n if (packCase_ == 3) {\n return (TaskProtobufWrapper.CreateTaskPack) pack_;\n }\n return TaskProtobufWrapper.CreateTaskPack.getDefaultInstance();\n } else {\n if (packCase_ == 3) {\n return createTaskPackBuilder_.getMessage();\n }\n return TaskProtobufWrapper.CreateTaskPack.getDefaultInstance();\n }\n }", "TaskProtobufWrapper.CreateTaskPack getCreateTaskPack();", "public static GameLevel load(Game game, String fileName)\n throws IOException{\n FileReader fr = null;\n BufferedReader reader = null;\n try {\n System.out.println(\"Reading \" + fileName + \" ...\");\n fr = new FileReader(fileName);\n reader = new BufferedReader(fr);\n String line = reader.readLine();\n String[] tokens = line.split(\",\");\n String name = tokens[0];\n int ballCount = Integer.parseInt(tokens[1]);\n\n GameLevel level = null;\n if (name.equals(\"Level1\"))\n level = new Level1(game);\n else if (name.equals(\"Level2\"))\n level = new Level2(game);\n else if (name.equals(\"Level3\"))\n level = new Level3(game);\n else if (name.equals(\"Level4\"))\n level = new Level4(game);\n\n level.getNaruto().setBallCount(ballCount);\n\n return level;\n\n } finally {\n if (reader != null) {\n reader.close();\n }\n if (fr != null) {\n fr.close();\n }\n }\n }", "public static boolean nbtTo(final File file, final CompoundNBT data) {\n\n try (final FileOutputStream stream = new FileOutputStream(file)) {\n\n CompressedStreamTools.writeCompressed(data, stream);\n return true;\n\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n\n return false;\n }", "public static ByteArrayInputStream getLangFile() {\n JsonObject file = new JsonObject();\n for (Identifier id : AutoJsonApi.getMap().keySet()) {\n file.addProperty((AutoJsonApi.getMap().get(id).getType() == AutoConfig.AutoConfigType.ITEM ? \"item.\" : \"tile.\") + id.getNamespace() + \".\" + id.getPath(), AutoJsonApi.getMap().get(id).getLangName());\n }\n return new ByteArrayInputStream(file.toString().getBytes());\n }", "public DefaultBitBuffer(String fileName) {\n\n File file = new File(fileName);\n\n // Open the file and then get a org.codehaus.preon.channel.channel from the stream\n FileInputStream fis;\n\n try {\n fis = new FileInputStream(file);\n\n FileChannel fc = fis.getChannel();\n\n // Get the file's size and then map it into memory\n int fileSize = (int) fc.size();\n ByteBuffer inputByteBuffer = fc.map(FileChannel.MapMode.READ_ONLY,\n 0, fileSize);\n\n // Close the org.codehaus.preon.channel.channel and the stream\n fc.close();\n\n this.byteBuffer = inputByteBuffer;\n bitBufBitSize = ((long) (inputByteBuffer.capacity())) << 3;\n bitPos = 0;\n\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "void load(File file);", "public JBIArchive(File file) throws Exception {\n this(new JarFile(file));\n }", "public UserPack(String id) {\n\t\t\tdesc = new PackDesc(id);\n\t\t\tsource = new Workspace(id);\n\t\t\tcastles = new PackCasList(this);\n\t\t\tmc = new PackMapColc(this);\n\t\t\teditable = true;\n\t\t\tloaded = true;\n\t\t}", "public void load(String filePath){\r\n File loadFile = new File(filePath);\r\n if (!loadFile.exists()){\r\n System.out.println(\"I failed. There are no saved games.\");\r\n return;\r\n }\r\n FileInputStream fis = null;\r\n ObjectInputStream in = null;\r\n try {\r\n fis = new FileInputStream(filePath);\r\n in = new ObjectInputStream(fis);\r\n long versionUID = (long) in.readObject();\r\n if (versionUID != this.serialVersionUID) {\r\n throw new UnsupportedClassVersionError(\"Version mismatch for save game!\");\r\n }\r\n this.p = (Character) in.readObject();\r\n this.map = (SpecialRoom[][]) in.readObject();\r\n\r\n } catch (FileNotFoundException ex){\r\n System.out.println(\"The saved game was not found!\");\r\n ex.printStackTrace();\r\n } catch (IOException ex) {\r\n System.out.println(\"There was an error reading your save game :(\");\r\n ex.printStackTrace();\r\n System.out.println(\")\");\r\n } catch (ClassNotFoundException ex) {\r\n System.out.println(\"The version of the save game is not compatible with this game!\");\r\n ex.printStackTrace();\r\n } catch (UnsupportedClassVersionError ex) {\r\n System.out.println(ex.getMessage());\r\n ex.printStackTrace();\r\n } catch (Exception ex) {\r\n System.out.println(\"An unknown error occurred!\");\r\n }\r\n\r\n }", "public Module(TruffleFile file) {\n this.file = file;\n }", "private FixedPuckemon buildFixed(int id, int level){\n List<Object> data = excelReader.getExcelData(id);\n return new FixedPuckemon(id,level,(String)data.get(0), dissectListTypes((String)data.get(1)),(int) data.get(2),(int)data.get(3)\n ,(int)data.get(4),(int)data.get(5),dissectList((String)data.get(8)));\n }", "@Override\n\tpublic boolean load(String file) {\n\t\ttry {\n GsonBuilder builder=new GsonBuilder();\n builder.registerTypeAdapter(DWGraph_DS.class,new DWG_JsonDeserializer());\n Gson gson=builder.create();\n\n FileReader reader=new FileReader(file);\n directed_weighted_graph dwg=gson.fromJson(reader,DWGraph_DS.class);\n this.init(dwg);\n }\n catch (FileNotFoundException e){\n e.printStackTrace();\n return false;\n }\n return true;\n }", "public TaskProtobufWrapper.CreateTaskPack getCreateTaskPack() {\n if (packCase_ == 3) {\n return (TaskProtobufWrapper.CreateTaskPack) pack_;\n }\n return TaskProtobufWrapper.CreateTaskPack.getDefaultInstance();\n }", "public Level(String mapFile, String waveFile, BuyPanel buyPanel, StatusPanel statusPanel) {\n this.map = new TiledMap(mapFile);\n this.polyline = map.getAllPolylines().get(0);\n this.slicers = new ArrayList<>();\n this.towers = new ArrayList<>();\n this.waves = new ArrayList<>();\n this.buyPanel = buyPanel;\n this.statusPanel = statusPanel;\n this.damageUnits = new ArrayList<>();\n this.complete = false;\n this.waveNumber = 1;\n // Process the wave file into waves and events\n processWaveFile(waveFile);\n }", "default Pair<T, U> build(File file) throws IOException, ConfigurationException {\n return build(new FileConfigurationSourceProvider(), file.toString());\n }", "private DefaultBuildContextState loadState(File stateFile) {\n try {\n ObjectInputStream is =\n new ObjectInputStream(new GZIPInputStream(new BufferedInputStream(new FileInputStream(\n stateFile))));\n try {\n return (DefaultBuildContextState) is.readObject();\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n // ignore secondary exceptions\n }\n }\n } catch (FileNotFoundException e) {\n // this is expected, ignore\n } catch (Exception e) {\n log.debug(\"Could not read build state file {}\", stateFile, e);\n }\n return DefaultBuildContextState.emptyState();\n }", "public Pj3dObj Pj3dObj(String file)\r\n\t{\r\n \tPj3dObj obj = new Pj3dObj(this, file);\r\n\t\treturn obj;\r\n\t}", "private void BuildFromFile(String Filename)\n\t{\n\t\tDataSetBuilder<t> dsb = new DataSetBuilder<t>(\"iris.data\");\n\t\t_data = dsb.getDataMembers();\n\t\t\n\t\t//Set reference to null to queue for garbage collection and to ensure the source file gets closed\n\t\tdsb = null;\n\t}", "public static Object objectLoader(String filename) throws IOException, ClassNotFoundException {\r\n\t\t// Creat file input stream\r\n\t\tFileInputStream fileInStr = new FileInputStream(filename);\r\n\t\t// Create object input steam\r\n\t\tObjectInputStream objInStr = new ObjectInputStream(fileInStr);\r\n\t\tObject obj = (Object) objInStr.readObject();\r\n\t\t// Closing all streams\r\n\t\tobjInStr.close();\r\n\t\tfileInStr.close();\r\n\t\tSystem.out.printf(\"Deserialized data - \" + filename); // Printing message plus file name that was saved\r\n\t\treturn obj;\r\n\t}", "public NestedZipFile(File file, int mode, Charset charset) throws IOException {\n super(getEmbeddedZipFile(file), mode, charset);\n }", "@Nonnull\n public static UBL23WriterBuilder <PackingListType> packingList ()\n {\n return UBL23WriterBuilder.create (PackingListType.class);\n }", "public RecoveryJournal(String path, String filename)\n throws IOException {\n this.gzipFile = new File(path, filename + GZIP_SUFFIX);\n this.out = initialize(gzipFile);\n }", "private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n BufferedReader in = new BufferedReader(new InputStreamReader(fis));\n\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Sub>>(){}.getType();\n subList = gson.fromJson(in, listType);\n\n } catch (FileNotFoundException e) {\n subList = new ArrayList<Sub>();\n }\n }", "public LogFileV2(File file) {\n try {\n if(!file.getParentFile().exists()){\n file.getParentFile().mkdirs();\n }\n this.file = file;\n this.randomAccessFile = new RandomAccessFile(file,\"rw\");\n this.fileChannel = randomAccessFile.getChannel();\n this.readMap = fileChannel.map(FileChannel.MapMode.READ_WRITE,0, CommitLogV2.FILE_SIZE);\n this.writeMap = fileChannel.map(FileChannel.MapMode.READ_WRITE,0, CommitLogV2.FILE_SIZE);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void loadInventory(String fileName){\t\t\r\n\t\tList<String> list = new ArrayList<String>();\r\n\r\n\t\ttry (Stream<String> stream = Files.lines(Paths.get(fileName))) {\r\n\t\t\t//Convert it into a List\r\n\t\t\tlist = stream.collect(Collectors.toList());\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tfor(String itemList : list){\r\n\t\t\tString[] elements = itemList.split(\"--\");\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tswitch(elements[0].toUpperCase()){\r\n\t\t\t\t\tcase \"BURGER\":\r\n\t\t\t\t\t\t\tinventory.add(createBurger(elements));;\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\r\n\t\t\t\t\tcase \"SALAD\":\r\n\t\t\t\t\t\t\tinventory.add(createSalad(elements));;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"BEVERAGE\":\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tinventory.add(createBeverage(elements));;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"SIDE\":\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tinventory.add(createSide(elements));;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"DESSERT\":\r\n\t\t\t\t\t\t\tinventory.add(createDessert(elements));;\r\n\t\t\t\t\t\t\tbreak;\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}", "public TreeItem(String file) throws DataFormatException, FileNotFoundException, IOException {\n\t\tsuper(file);\n\t}", "private void initialiseLevelPackages() {\n\t\tlevelPackages = new ArrayList<LevelPackage>();\n\n\t\tFileHandle handle = Gdx.files.internal(BackendHelper.getAssetDirPath()\n\t\t\t\t+ \"json/levels\");\n\t\tFileHandle[] possiblePackageDirs = handle.list();\n\t\tfor (FileHandle dir : possiblePackageDirs) {\n\t\t\tif (!dir.isDirectory()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tString name = dir.name();\n\t\t\tif (name.length() != 2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (name.matches(\"[0-9][0-9]\")) {\n\t\t\t\ttry {\n\t\t\t\t\tif (dir.child(\"package.json\").exists()) {\n\t\t\t\t\t\tlevelPackages.add(this.loadPackage(Integer\n\t\t\t\t\t\t\t\t.parseInt(name)));\n\t\t\t\t\t}\n\t\t\t\t} catch (GdxRuntimeException ex) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Ignore. Just in case, libGdx' documentation of is telling\n\t\t\t\t\t * the truth (which it isn't) and an exception is thrown in\n\t\t\t\t\t * dir.child, because it is internal an non-existent\n\t\t\t\t\t */\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tCollections.sort(levelPackages, new Comparator<LevelPackage>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(LevelPackage o1, LevelPackage o2) {\n\t\t\t\treturn (int) Math.signum(o1.getLevelPackageId()\n\t\t\t\t\t\t- o2.getLevelPackageId());\n\t\t\t}\n\t\t});\n\t}", "public SecKeyRing(File file) throws IOException, PGPException {\r\n\r\n\t\tload(file);\r\n\t}", "private void loadScheme(File file)\n\t{\n\t\tString name = file.getName();\n\n\t\ttry\n\t\t{\n\t\t\tBedrockScheme particle = BedrockScheme.parse(FileUtils.readFileToString(file, Charset.defaultCharset()));\n\n\t\t\tthis.presets.put(name.substring(0, name.indexOf(\".json\")), particle);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public TaskProtobufWrapper.CreateTaskPack.Builder getCreateTaskPackBuilder() {\n return getCreateTaskPackFieldBuilder().getBuilder();\n }", "private void build(IFile unsortedFile) throws CoreException {\n \t\tInputStream is = unsortedFile.getContents();\n \t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n \n \t\ttry {\n \t\t\ttry {\n \t\t\t\tint c;\n \t\t\t\twhile ((c = is.read()) != -1) {\n \t\t\t\t\tbos.write(c);\n \t\t\t\t}\n \t\t\t} finally {\n \t\t\t\tis.close();\n \t\t\t}\n \t\t} catch (IOException e) {\n \t\t\tthrow new ResourceException(IResourceStatus.BUILD_FAILED, null, \"IOException sorting file\", e);\n \t\t}\n \n \t\tbyte[] bytes = bos.toByteArray();\n \n \t\tquicksort(bytes, 0, bytes.length - 1, isSortOrderAscending());\n \n \t\tIFile sortedFile = (IFile) convertToSortedResource(unsortedFile);\n \t\tcreateResource(sortedFile);\n \n \t\tByteArrayInputStream bis = new ByteArrayInputStream(bytes);\n \t\tsortedFile.setContents(bis, true, false, null);\n \t}", "Level makeLevel(String levelName) {\r\n return new Level(levelName);\r\n }", "public InMemoryDictionary(File dictFile) {\n\t\t// TODO: Implement constructor\n\t}", "public ProductionLine buildFromFile(String path) throws ParserConfigurationException, IOException, SAXException {\n Document doc = DocumentBuilderFactory\n .newInstance()\n .newDocumentBuilder()\n .parse(new File(path));\n doc.getDocumentElement().normalize();\n\n HashMap<String, ProductionUnit> productionUnits = new HashMap<>();\n\n // Get list of stages\n NodeList stageNodes = doc.getElementsByTagName(\"ProductionStage\");\n\n // Loop through stages\n for (int i = 0; i < stageNodes.getLength(); i++) {\n\n Node node = stageNodes.item(i);\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element stage = (Element) node;\n\n // Create station\n String name = stage.getElementsByTagName(\"Name\").item(0).getTextContent();\n\n ProductionStage productionStage = getStage(productionUnits, name);\n\n if (productionStage == null) continue;\n\n NodeList predecessors = stage.getElementsByTagName(\"Predecessors\");\n if (predecessors.getLength() > 0) {\n Node sNode = predecessors.item(0);\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element ePredecessors = (Element) sNode;\n NodeList stages = ePredecessors.getElementsByTagName(\"Stage\");\n for (int j = 0; j < stages.getLength(); j++) {\n productionStage.addPredecessor(getStage(productionUnits, stages.item(j).getTextContent()));\n }\n }\n }\n\n NodeList successors = stage.getElementsByTagName(\"Successors\");\n if (successors.getLength() > 0) {\n Node sNode = successors.item(0);\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element eSuccessors = (Element) sNode;\n NodeList stages = eSuccessors.getElementsByTagName(\"Stage\");\n for (int j = 0; j < stages.getLength(); j++) {\n productionStage.addSuccessor(getStage(productionUnits, stages.item(j).getTextContent()));\n }\n }\n }\n\n NodeList input = stage.getElementsByTagName(\"Input\");\n if (input.getLength() > 0) {\n InterStageStorage storage = getStorage(productionUnits, input.item(0).getTextContent());\n if (storage == null) continue;\n storages.add(storage);\n productionStage.setInput(storage);\n } else {\n // All stages except beginning\n productionStage.updateState(ProductionStage.State.IDLE);\n }\n\n NodeList output = stage.getElementsByTagName(\"Output\");\n if (output.getLength() > 0) {\n InterStageStorage storage = getStorage(productionUnits, output.item(0).getTextContent());\n if (storage == null) continue;\n storages.add(storage);\n productionStage.setOutput(storage);\n }\n\n stages.add(productionStage);\n }\n }\n return this;\n }", "public TaskProtobufWrapper.CreateTaskPackOrBuilder getCreateTaskPackOrBuilder() {\n if (packCase_ == 3) {\n return (TaskProtobufWrapper.CreateTaskPack) pack_;\n }\n return TaskProtobufWrapper.CreateTaskPack.getDefaultInstance();\n }", "public void dump(File file)\n {\n try\n {\n FileOutputStream out = new FileOutputStream(file);\n BufferedWriter write = new BufferedWriter(new OutputStreamWriter(out, Encoder.UTF_8));\n\n dump(write);\n\n write.close();\n }\n catch (Exception ex)\n {\n ex.printStackTrace();\n }\n }", "public static DSAGraph load(String filename) throws IllegalArgumentException\n {\n FileInputStream fileStrm;\n ObjectInputStream objStrm;\n DSAGraph inObj = null;\n try\n {\n fileStrm = new FileInputStream(filename);//Underlying stream\n objStrm = new ObjectInputStream(fileStrm);//Object serialization stream\n inObj = (DSAGraph)objStrm.readObject();//Deserialize.\n objStrm.close();//Clean up\n }\n catch (ClassNotFoundException e)\n {\n System.out.println(\"Class not found: \" + e);\n }\n catch (Exception e)\n {\n throw new IllegalArgumentException(\"Unable to load object from file: \" + e.getMessage());\n }\n return inObj;\n\n }", "public MAVLinkPacket pack() {\n\t\tMAVLinkPacket packet = new MAVLinkPacket();\n\t\tpacket.len = MAVLINK_MSG_LENGTH;\n\t\tpacket.sysid = 255;\n\t\tpacket.compid = 190;\n\t\tpacket.msgid = MAVLINK_MSG_ID_PROPELLER;\n\t\tpacket.payload.putFloat(propeller1);\n\t\tpacket.payload.putFloat(propeller2);\n\t\tpacket.payload.putFloat(propeller3);\n\t\tpacket.payload.putFloat(propeller4);\n\n\t\treturn packet;\n\t}", "public Zufallsgenerator(){//der arbeitskonstruktor, der alles setzt\n\t\t\n\t\tfile=\"Zwischenstand.txt\";\n\t\tint x=Gamepanel.Spielfeld.length;//hol die spielfeld-länge\n\n\t\tString ausgabe=\"\";\n\t\tausgabe+=\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"yes\\\"?>\";\n\t\tausgabe+=\"\\n\";\n\t\t\n\t\tausgabe+=\"<level>\";\n\t\tausgabe+=\"\\n\";\n\t\ttry{\n\t\tFile schreiber=new File(file);\n\t\tFileWriter fwriter=new FileWriter(schreiber);\n\t\t\n\t\t/**\n\t\t * Die Methode muss mehrmals verwendet werden, da sonst der String oft schnell zu groß wird\n\t\t */\n\t\tfor(int k=0;k<ausgabe.length();k++){\n\t\t\tchar c=ausgabe.charAt(k);\n\t\t\tif(c=='\\n')\n\t\t\t\tfwriter.append( System.getProperty(\"line.separator\") );\n\t\t\telse fwriter.write(c);\n\t\t}\n\t\tausgabe=\"\";\n\t\tdouble ran;\n\t\t\n\t\tfor(int i=0;i<x;i++){//methode aus dem schreibe_xml\n\t\t\t\n\t\t\tfor(int j=0;j<x;j++){\t\t\t\t\n\t\t\t\tausgabe+=(\"\\t<Feld>\");\n\t\t\t\tausgabe+=\"\\n\";\n\t\t\t\tausgabe+=(\"\\t\\t<Typ>\");\n\t\t\t\t\n\t\t\t\tif(i == 0 || i == 14 || j == 0 || j == 14){\n\t\t\t\t\tausgabe+=\"unzerstoerbar\";\n\t\t\t\t} else if((i == 1 && j == 1) || (i == 1 && j == 2) || (i == 2 && j == 1) || (i == 13 && j == 13)\n\t\t\t\t\t\t|| (i == 13 && j == 12) || (i == 12 && j == 13)) {\n\t\t\t\t\tausgabe+=\"Weg\";\n\t\t\t\t} else if(i == 7 && j == 7){\n\t\t\t\t\tausgabe +=\"Ausgang\";\n\t\t\t\t} else {\n\t\t\t\t\tran = (int) (Math.random()*3);\n\t\t\t\t\tif(ran == 0) ausgabe += \"Weg\";\n\t\t\t\t\tif(ran == 1) ausgabe += \"zerstoerbar\";\n\t\t\t\t\tif(ran == 2) ausgabe += \"zerstoerbar\";\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tausgabe+=(\"</Typ>\");\n\t\t\t\tausgabe+=\"\\n\";\n\t\t\t\tausgabe+=(\"\\t\\t<Position><X>\"+j+\"</X><Y>\"+i+\"</Y></Position>\\n\");\n\t\t\t\tausgabe+=(\"\\t</Feld>\\n\");\n\t\n\t\t\t}\n\t\t\t\tfor(int k=0;k<ausgabe.length();k++){\n\t\t\t\t\tchar c=ausgabe.charAt(k);\n\t\t\t\t\tif(c=='\\n')\n\t\t\t\t\t\tfwriter.append( System.getProperty(\"line.separator\") );\n\t\t\t\t\telse fwriter.write(c);\n\t\t\t\t}\n\t\t\t\t\tausgabe=\"\";\n\t\t\t}\n\n\t\t\tausgabe+=\"\\n\\t<Spieler1>\";\t\t\t\n\t\t\tausgabe+=\"\\n\\t\\t<X>\"+40+\"</X>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Y>\"+40+\"</Y>\";\n\t\t\tausgabe+=\"\\n\\t\\t<AnzBomb>\"+1+\"</AnzBomb>\";\n\t\t\tausgabe+=\"\\n\\t\\t<AnzLeben>\"+1+\"</AnzLeben>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Handschuh>\"+false+\" </Handschuh>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Kicker>\"+false+ \"</Kicker>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Speed>\"+0.0000275+\"</Speed>\"; \n\t\t\tausgabe+=\"\\n\\t\\t<BombReichweite>\"+2+\"</BombReichweite>\";\n\t\t\tausgabe +=\"\\n\\t</Spieler1>\";\n\t\t\t\n\t\t\tausgabe+=\"\\n\\t<Spieler2>\";\t\t\t\n\t\t\tausgabe+=\"\\n\\t\\t<X>\"+520+\"</X>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Y>\"+520+\"</Y>\";\n\t\t\tausgabe+=\"\\n\\t\\t<AnzBomb>\"+1+\"</AnzBomb>\";\n\t\t\tausgabe+=\"\\n\\t\\t<AnzLeben>\"+1+\"</AnzLeben>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Handschuh>\"+false+\" </Handschuh>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Kicker>\"+false+ \"</Kicker>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Speed>\"+0.0000275+\"</Speed>\"; \n\t\t\tausgabe+=\"\\n\\t\\t<BombReichweite>\"+2+\"</BombReichweite>\";\n\t\t\tausgabe +=\"\\n\\t</Spieler2>\";\t\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(int i=0;i<ausgabe.length();i++){\n\t\t\t\t\tchar c=ausgabe.charAt(i);\n\t\t\t\t\tif(c=='\\n')\n\t\t\t\t\t\tfwriter.append( System.getProperty(\"line.separator\") );\n\t\t\t\t\telse fwriter.write(c);\n\t\t\t\t}\n\t\t\t\tausgabe+=\"\\n\\n\\n</level>\";\n\t\t\t\tfor(int i=0;i<ausgabe.length();i++){\n\t\t\t\t\tchar c=ausgabe.charAt(i);\n\t\t\t\t\tif(c=='\\n')\n\t\t\t\t\t\tfwriter.append( System.getProperty(\"line.separator\") );\n\t\t\t\t\telse fwriter.write(c);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t\t\t\n\t\t\t\tfwriter.flush();\n\t\t\t\tfwriter.close();\n\t\t} catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t\n\t\t}\n\t\t\n\t}", "public int createPack(String name)\n {\n dbObj=new dbFlashCards(userId);\n if(dbObj.packExists(name)!=-1)\n return -1;\n else\n {\n //no such pack exists ..creates a new pack and returns its packid\n return dbObj.addPack(name);\n \n }\n \n }", "public MAVLinkPacket pack(){\n MAVLinkPacket packet = new MAVLinkPacket(MAVLINK_MSG_LENGTH);\n packet.sysid = 255;\n packet.compid = 190;\n packet.msgid = MAVLINK_MSG_ID_GIMBAL_DEVICE_INFORMATION;\n \n packet.payload.putUnsignedInt(time_boot_ms);\n \n packet.payload.putUnsignedInt(firmware_version);\n \n packet.payload.putFloat(tilt_max);\n \n packet.payload.putFloat(tilt_min);\n \n packet.payload.putFloat(tilt_rate_max);\n \n packet.payload.putFloat(pan_max);\n \n packet.payload.putFloat(pan_min);\n \n packet.payload.putFloat(pan_rate_max);\n \n packet.payload.putUnsignedShort(cap_flags);\n \n \n for (int i = 0; i < vendor_name.length; i++) {\n packet.payload.putUnsignedByte(vendor_name[i]);\n }\n \n \n \n for (int i = 0; i < model_name.length; i++) {\n packet.payload.putUnsignedByte(model_name[i]);\n }\n \n \n return packet;\n }" ]
[ "0.6799654", "0.61400896", "0.59061617", "0.5745475", "0.55595535", "0.54005396", "0.5340705", "0.53207916", "0.53055865", "0.52739376", "0.5216009", "0.5123083", "0.510583", "0.5041523", "0.499636", "0.49841222", "0.49750012", "0.49433833", "0.49371752", "0.49001566", "0.4888603", "0.48671183", "0.4840223", "0.4838457", "0.48298135", "0.48233885", "0.48038745", "0.4795517", "0.47894356", "0.47548863", "0.47374347", "0.47252497", "0.47218785", "0.47217536", "0.47212714", "0.4718686", "0.47030652", "0.47026458", "0.4681555", "0.46795908", "0.46795908", "0.46795908", "0.46795908", "0.46795908", "0.46795908", "0.4663103", "0.46573475", "0.46454778", "0.46433234", "0.46422717", "0.46377486", "0.46361127", "0.46130592", "0.4603463", "0.459774", "0.45818618", "0.45762238", "0.45453298", "0.45350328", "0.45339844", "0.45307937", "0.4523042", "0.45177162", "0.45080337", "0.4505579", "0.44992808", "0.44947967", "0.44940835", "0.44920117", "0.44825014", "0.44793913", "0.44739658", "0.44582298", "0.4456631", "0.44564408", "0.44460976", "0.44433194", "0.44368982", "0.44345587", "0.44310457", "0.44245234", "0.4417902", "0.44158852", "0.44113454", "0.44071826", "0.44037902", "0.4399096", "0.43976668", "0.43884858", "0.43802437", "0.43725553", "0.43632528", "0.4359181", "0.43588093", "0.4353905", "0.43535346", "0.43514428", "0.43483323", "0.43428457", "0.4335524" ]
0.7330919
0
Constructs and returns a LevelPack from the indicated json String.
public static LevelPack fromJson(String json) { return Serializer.deserializeLevelPack(json); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static LevelPack fromJsonPartial(String json) {\n\t\tLevelPack partial = Serializer.deserializePartialLevelPack(json);\n\t\tif (partial == null)\n\t\t\treturn partial;\n\n\t\tstandardize(partial);\n\n\t\t// Return the partial LevelPack.\n\t\treturn partial;\n\t}", "public static LevelPack fromFile(String filename) {\n\t\tString json = Serializer.readStringFromFile(filename);\n\t\tLevelPack lp = fromJson(json);\n\t\tstandardize(lp);\n\t\treturn lp;\n\t}", "public static LevelPack fromFilePartial(String filename) {\n\n\t\t// Read everything from the LevelPack, but don't bother deserializing\n\t\t// the Worlds.\n\t\tString json = Serializer.readStringFromFile(filename);\n\t\treturn fromJsonPartial(json);\n\t}", "public Packman(String str) {\r\n\t\tString[] fields = str.split(\",\");\r\n\t\tType = fields[0].charAt(0);\r\n\t\tID = Integer.parseInt(fields[1]);\r\n\t\tLocation = new LatLonAlt(fields[2] + \",\" + fields[3] + \",\" + fields[4]);\r\n\t\tSpeed = Double.parseDouble(fields[5]);\r\n\t\tRadius = Double.parseDouble(fields[6]);\r\n\t\tInitTime = new Date().getTime();\r\n\t}", "public static Level fromString(String s) throws InvalidLevelCharacterException, InvalidLevelFormatException {\n\t\tString[] valid = {\"P\", \"G\", \"X\", \"S\", \"T\", \"U\", \" \", \"B\"};\n\t\tString invalid = s;\n\t\tfor(String v: valid)\n\t\t\tinvalid = invalid.replace(v, \"\");\n\t\tinvalid = invalid.replace(\"\\r\", \"\");\n\t\tinvalid = invalid.replace(\"\\n\", \"\");\n\t\tif(invalid.length() > 0)\n\t\t\tthrow new InvalidLevelCharacterException(invalid.charAt(0));\n\t\t// Determine and validate the dimensions of the level\n\t\tScanner sc = new Scanner(s);\n\t\tint width = 0, height = 0, current;\n\t\twhile(sc.hasNextLine()) {\n\t\t\tcurrent = sc.nextLine().length();\n\t\t\tif(width != 0 && current != width) {\n\t\t\t\tsc.close();\n\t\t\t\tthrow new InvalidLevelFormatException();\n\t\t\t}\n\t\t\twidth = current;\n\t\t\t++height;\n\t\t}\n\t\t// Parse the level\n\t\tsc.close();\n\t\tsc = new Scanner(s);\n\t\tLevel level = new Level(width, height);\n\t\tfor(int i = 0; sc.hasNextLine(); ++i) {\n\t\t\tString line = sc.nextLine();\n\t\t\tfor(int j = 0; j < line.length(); ++j)\n\t\t\t\tlevel.setField(i, j, line.charAt(j));\n\t\t}\n\t\tsc.close();\n\t\treturn level;\n\t}", "public void createFromJSONString(String jsonData) throws JSONException {\n JSONObject placeJSON = new JSONObject(jsonData);\n\n // set id of place object\n this.setId(placeJSON.getString(\"_id\"));\n // set title of place object\n this.setTitle(placeJSON.getString(\"title\"));\n // set lat of place object\n this.setLat(placeJSON.getString(\"lat\"));\n // set lon of place object\n this.setLon(placeJSON.getString(\"lon\"));\n }", "public static MultiArrayDimension fromJsonString(java.lang.String jsonString) {\n\t\t// convert to a message\n\t\treturn MultiArrayDimension.fromMessage(new Message(jsonString));\n\t}", "public static Kaizen fromJson(String jsonString) {\n return new Gson().fromJson(jsonString, Kaizen.class);\n }", "public void fromJSON(String json) throws JSONException;", "Gist deserializeGistFromJson(String json);", "public static Result<MessageType, JSONException> fromString(String str) {\r\n return Result.ofRuntime(() -> valueOf(str))\r\n .mapError(ignored -> new JSONException(\"command not recognised\"));\r\n }", "public Metadata(String _JSONString) {\n mJSONObject = new JSONObject();\n mJSONObject = (JSONObject) JSONValue.parse(_JSONString);\n\n // TODO: Maybe raise a 'malformed json string exception'\n if (mJSONObject == null) {\n \tLOGGER.info(\"Invalid JSON String received. new object was created, but its NULL.\");\n }\n }", "public static RoyaltyEntity fromJson(String jsonString) throws IOException {\n return JSON.getGson().fromJson(jsonString, RoyaltyEntity.class);\n }", "<T> T fromJson(String source, JavaType type);", "<T> T fromJson(String source, Class<T> type);", "<T> T fromJson(String json, Class<T> type);", "@Override\n public void init(String jsonString) throws PluginException {\n try {\n config = new JsonSimpleConfig(jsonString);\n reset();\n } catch (IOException e) {\n log.error(\"Error reading config: \", e);\n }\n }", "@Test\n @SmallTest\n public void testReadFromJsonString() throws Throwable {\n final String jsonObjectString =\n \"{'crash-local-id':'123456abc','crash-capture-time':1234567890,\"\n + \"'crash-keys':{'app-package-name':'org.test.package'}}\";\n\n CrashInfo parsed = CrashInfo.readFromJsonString(jsonObjectString);\n CrashInfo expected =\n createCrashInfo(\"123456abc\", 1234567890, null, -1, \"org.test.package\", null);\n Assert.assertThat(parsed, equalsTo(expected));\n }", "public static JsonElement stringToJSON2(String json) {\n try {\n JsonElement parser = new JsonPrimitive(json);\n System.out.println(parser.getAsString());\n //JsonObject Jso = new JsonObject();\n //Jso = (JsonObject) parser.p(json);\n return parser;\n } catch (Exception e) {\n return new JsonObject();\n }\n }", "public static ArticleInfo fromJson(String jsonString) throws IOException {\n return JSON.getGson().fromJson(jsonString, ArticleInfo.class);\n }", "public MinecraftJson() {\n }", "public static <T> T fromJson(String json, Class<T> type)\n {\n return g.fromJson(json, type);\n }", "public static Packet getPacketFromJson(String json) {\n JsonNode node=null;\n try {\n node=mapper.readTree(json);\n String method=node.get(METHOD_FIELD).asText();\n JsonNode data=node.get(DATA_FIELD);\n Object object=null;\n if(!data.toString().isEmpty()) {\n object=getObjectFromJson(data);\n }\n return new Packet(method, object);\n }\n catch(JsonProcessingException e) {\n e.printStackTrace();\n }\n catch(Exception e) {\n return null;\n }\n return null;\n }", "public static JinyouTestOne fromJson(String jsonString) throws IOException {\n return JSON.getGson().fromJson(jsonString, JinyouTestOne.class);\n }", "protected abstract JSONObject build();", "public Dungeon load() {\n int width = json.getInt(\"width\");\n int height = json.getInt(\"height\");\n\n Dungeon dungeon = new Dungeon(width, height);\n\n JSONArray jsonEntities = json.getJSONArray(\"entities\");\n Map<String, List<Entity>> entitiesMap = loadEntities(dungeon, jsonEntities);\n\n // Only try and greate a goal condition if it is specified in json.\n if (json.has(\"goal-condition\")) {\n JSONObject goals = json.getJSONObject(\"goal-condition\");\n Goal mainGoal = loadGoals(entitiesMap, dungeon, goals);\n dungeon.setMainGoal(mainGoal);\n }\n\n return dungeon;\n }", "public static TestWebhookRequest fromJson(String jsonString) throws JsonProcessingException {\n return JSON.getMapper().readValue(jsonString, TestWebhookRequest.class);\n }", "private Field(String jsonString) {\n this.jsonString = jsonString;\n }", "public JSONString(String stringIn)\n {\n this.string = stringIn;\n }", "public native Object parse( Object json, String texturePath );", "public static Capabilities fromJson(String json) {\n Gson gson = new Gson();\n return gson.fromJson(json, Capabilities.class);\n }", "public static Builder createJson(String text) {\n return builder().setType(Type.TEXT_JSON).setText(text);\n }", "@Test\n public void testWithoutNewWarnings() {\n String request = \"{\\\"canRunOnFailed\\\":false,\\\"defaultEncoding\\\":\\\"\\\",\\\"failedTotalAll\\\":\\\"\\\",\\\"failedTotalHigh\\\":\\\"\\\",\\\"failedTotalLow\\\":\\\"\\\",\\\"failedTotalNormal\\\":\\\"\\\",\\\"healthy\\\":\\\"0\\\",\\\"pattern\\\":\\\"\\\",\\\"shouldDetectModules\\\":false,\\\"thresholdLimit\\\":\\\"low\\\",\\\"unHealthy\\\":\\\"50\\\",\\\"unstableTotalAll\\\":\\\"\\\",\\\"unstableTotalHigh\\\":\\\"\\\",\\\"unstableTotalLow\\\":\\\"\\\",\\\"unstableTotalNormal\\\":\\\"\\\"}\";\n\n JSONObject input = JSONObject.fromObject(request);\n JSONObject output = PluginDescriptor.convertHierarchicalFormData(input);\n\n assertEquals(\"Wrong JSON \", input, output);\n }", "public static Game createGameFromJSON(String json) {\n JSONObject gameJSONObject = new JSONObject(json);\n List<String> agents = parseAgents(gameJSONObject);\n String[][] actions = parseActions(gameJSONObject);\n int[][][] values = parseValues(gameJSONObject);\n\n return new Game(agents, actions, values);\n }", "public static ResponseWrapper fromJson(String json)\n\t{ \n\t\tResponseWrapper response = new ResponseWrapper();\n\t\tresponse.fromJsonCore(json, \"response\", (type) -> type.getResponseContentType()); \n\t\treturn response;\n\t}", "public JsonParser createParser(String content)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 879 */ int strLen = content.length();\n/* */ \n/* 881 */ if ((this._inputDecorator != null) || (strLen > 32768) || (!canUseCharArrays()))\n/* */ {\n/* */ \n/* 884 */ return createParser(new StringReader(content));\n/* */ }\n/* 886 */ IOContext ctxt = _createContext(content, true);\n/* 887 */ char[] buf = ctxt.allocTokenBuffer(strLen);\n/* 888 */ content.getChars(0, strLen, buf, 0);\n/* 889 */ return _createParser(buf, 0, strLen, ctxt, true);\n/* */ }", "@Override\n public void parse(String json) {\n JSONObject object = new JSONObject(json);\n id = object.getInt(\"dataset id\");\n name = object.getString(\"dataset name\");\n maxNumOfLabels = object.getInt(\"maximum number of labels per instance\");\n\n JSONArray labelsJSON = object.getJSONArray(\"class labels\");\n labels = new ArrayList<>();\n for (int i = 0; i < labelsJSON.length(); i++) {\n labels.add(new Label(labelsJSON.getJSONObject(i).toString()));\n }\n\n JSONArray instancesJSON = object.getJSONArray(\"instances\");\n instances = new ArrayList<>();\n for (int i = 0; i < instancesJSON.length(); i++) {\n instances.add(new Instance(instancesJSON.getJSONObject(i).toString()));\n }\n }", "public static Example stringToJSON(String s){\n Gson gson = new Gson();\n JsonReader reader = new JsonReader(new StringReader(s));\n reader.setLenient(true);\n\n Example ex = gson.fromJson(reader, Example.class);\n\n return ex;\n }", "public <T> T fromJson(String json, Type type) {\n return getGson().fromJson(json, type);\n }", "public static Schematic schematicFromJson(String json) {\n if (gson == null) {\n initializeGson();\n }\n\n return gson.fromJson(json, new TypeToken<Schematic>(){}.getType());\n }", "public static SofortInfo fromJson(String jsonString) throws JsonProcessingException {\n return JSON.getMapper().readValue(jsonString, SofortInfo.class);\n }", "public static TemplateGroup jsonToTemplateGroup(String jsonDefinition) {\n Gson gson = new GsonBuilder().disableHtmlEscaping().setPrettyPrinting().create();\n TemplateGroup templateGroup = gson.fromJson(jsonDefinition, TemplateGroup.class);\n\n return templateGroup;\n }", "private JSONDocument parseString(String data){\n JSONDocument temp = null;\n int pointer = 0;\n boolean firstValidCharReached = false;\n do{\n char c = data.charAt(pointer ++);\n switch (c) {\n case '{':\n HashMap thm = this.parseMap(this.getFull(data.substring(pointer),0));\n temp = new JSONDocument(thm);\n firstValidCharReached = true;\n break;\n case '[':\n ArrayList tal = this.parseList(this.getFull(data.substring(pointer),1));\n temp = new JSONDocument(tal);\n firstValidCharReached = true;\n break;\n }\n }while (!firstValidCharReached);\n return temp;\n }", "public JSONResponse(String jsonString) {\n this.jsonString = jsonString;\n }", "public static Sandwich parseSandwichJson(String json) {\n\n try {\n JSONObject jsonObj = new JSONObject(json);\n JSONObject name = jsonObj.getJSONObject(\"name\");\n mainName = name.getString(\"mainName\");\n alsoKnownAs = new ArrayList<>(addToList(name.getJSONArray(\"alsoKnownAs\")));\n // https://stackoverflow.com/questions/13790726/the-difference-between-getstring-and-optstring-in-json/13790789#13790789\n placeOfOrigin = jsonObj.optString(\"placeOfOrigin\");\n description = jsonObj.optString(\"description\");\n image = jsonObj.optString(\"image\");\n ingredients = new ArrayList<>(addToList(jsonObj.getJSONArray(\"ingredients\")));\n\n } catch (JSONException e) {\n Log.e(TAG, e.getMessage());\n\n }\n return new Sandwich(mainName, alsoKnownAs, placeOfOrigin, description, image, ingredients);\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic static<T> T createObjectFromJSON(final JSONObject json) throws JSONException {\n\t\tif(json.has(\"type\")) {\n\t\t\treturn (T) Helper.createItemFromJSON(json);\n\t\t} else if(json.has(\"triple_pattern\")) {\n\t\t\treturn (T) Helper.createTriplePatternFromJSON(json);\n\t\t} else if(json.has(\"histogram\")) {\n\t\t\treturn (T) Helper.createVarBucketFromJSON(json);\n\t\t} else {\n\t\t\tSystem.err.println(\"lupos.distributed.operator.format.Helper.createObjectFromJSON(...): Unknown type stored in JSON object, returning null!\");\n\t\t\treturn null;\n\t\t}\n\t}", "public Patient (String JSONString) {\n try {\n JSONObject n = new JSONObject(JSONString);\n name = n.get(\"name\").toString();\n fathersName = n.get(\"fathersName\").toString();\n mothersName = n.get(\"mothersName\").toString();\n SimpleDateFormat parser = new SimpleDateFormat(\"dd/MM/yyyy\");\n birthDate = parser.parse(n.get(\"birthDate\").toString());\n sex = n.get(\"sex\").toString();\n pid = n.get(\"pid\").toString();\n doctype = Integer.valueOf(n.get(\"doctype\").toString());\n enrolledSchema = new Schema(n.get(\"enrolledProject\").toString());\n /*JSONArray arry = new JSONArray(n.get(\"enrolledProjects\").toString());\n for (int i = 0; i < arry.length(); i++){\n enrolledProjects.add(new Project(arry.getString(i)));\n }*/\n nationalID = n.get(\"nationalID\").toString();\n }\n catch (JSONException e) {\n e.printStackTrace();\n }\n catch (ParseException e){\n e.printStackTrace();\n }\n }", "@Test\n public void testWithNewWarnings() {\n String request = \"{\\\"canComputeNew\\\":{\\\"failedNewAll\\\":\\\"\\\",\\\"failedNewHigh\\\":\\\"1\\\",\\\"failedNewLow\\\":\\\"\\\",\\\"failedNewNormal\\\":\\\"\\\",\\\"unstableNewAll\\\":\\\"1\\\",\\\"unstableNewHigh\\\":\\\"\\\",\\\"unstableNewLow\\\":\\\"\\\",\\\"unstableNewNormal\\\":\\\"\\\",\\\"useDeltaValues\\\":false},\\\"canRunOnFailed\\\":false,\\\"defaultEncoding\\\":\\\"\\\",\\\"failedTotalAll\\\":\\\"\\\",\\\"failedTotalHigh\\\":\\\"\\\",\\\"failedTotalLow\\\":\\\"\\\",\\\"failedTotalNormal\\\":\\\"\\\",\\\"healthy\\\":\\\"0\\\",\\\"pattern\\\":\\\"\\\",\\\"shouldDetectModules\\\":false,\\\"thresholdLimit\\\":\\\"low\\\",\\\"unHealthy\\\":\\\"50\\\",\\\"unstableTotalAll\\\":\\\"\\\",\\\"unstableTotalHigh\\\":\\\"\\\",\\\"unstableTotalLow\\\":\\\"\\\",\\\"unstableTotalNormal\\\":\\\"\\\"}\";\n\n JSONObject input = JSONObject.fromObject(request);\n JSONObject output = PluginDescriptor.convertHierarchicalFormData(input);\n\n String expected = \"{\\\"canComputeNew\\\":true,\\\"failedNewAll\\\":\\\"\\\",\\\"failedNewHigh\\\":\\\"1\\\",\\\"failedNewLow\\\":\\\"\\\",\\\"failedNewNormal\\\":\\\"\\\",\\\"unstableNewAll\\\":\\\"1\\\",\\\"unstableNewHigh\\\":\\\"\\\",\\\"unstableNewLow\\\":\\\"\\\",\\\"unstableNewNormal\\\":\\\"\\\",\\\"useDeltaValues\\\":false,\\\"canRunOnFailed\\\":false,\\\"defaultEncoding\\\":\\\"\\\",\\\"failedTotalAll\\\":\\\"\\\",\\\"failedTotalHigh\\\":\\\"\\\",\\\"failedTotalLow\\\":\\\"\\\",\\\"failedTotalNormal\\\":\\\"\\\",\\\"healthy\\\":\\\"0\\\",\\\"pattern\\\":\\\"\\\",\\\"shouldDetectModules\\\":false,\\\"thresholdLimit\\\":\\\"low\\\",\\\"unHealthy\\\":\\\"50\\\",\\\"unstableTotalAll\\\":\\\"\\\",\\\"unstableTotalHigh\\\":\\\"\\\",\\\"unstableTotalLow\\\":\\\"\\\",\\\"unstableTotalNormal\\\":\\\"\\\"}\";\n assertEquals(\"Wrong JSON \", JSONObject.fromObject(expected), output);\n }", "private void initialiseFromJson(){\n try {\n\t\t\t// The type adapter is only needed if you have a CharSequence in your model. If you're just using strings\n \t// you can just use Gson gson = new Gson();\n Gson gson = new GsonBuilder().registerTypeAdapter(CharSequence.class, new CharSequenceDeserializer()).create();\n Reader reader = new InputStreamReader(getAssets().open(VARIANTS_FILE));\n BaseVariants baseVariants = gson.fromJson(reader, BaseVariants.class);\n Neanderthal.initialise(this, baseVariants.variants, baseVariants.defaultVariant);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static ItemStack createStackFromString (String stackString) {\n \n final String[] parts = stackString.split(\"#\");\n final Object contents = getThingByName(parts[0]);\n final int damage = parts.length > 1 ? Integer.parseInt(parts[1]) : 0;\n return contents instanceof Item ? new ItemStack((Item) contents, 1, damage) : new ItemStack((Block) contents, 1, damage);\n }", "public final native JSONLoaderObject parse(JavaScriptObject json,String texturePath)/*-{\r\n\treturn this.parse(json,texturePath);\r\n\t}-*/;", "public JSONLoader() {}", "public static Spell createSpellFromJsonString(String spellJsonString, String name) throws JSONException {\n JSONArray jsonArray = null;\n try {\n jsonArray = new JSONArray(spellJsonString);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n for (int i = 0; i < jsonArray.length(); i++) {\n try {\n JSONObject jsonObj = jsonArray.getJSONObject(i);\n if (jsonObj.getString(\"spell\").equals(name)) {\n setSpell(jsonObj);\n break;\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n return spell;\n }", "public abstract void fromJson(JSONObject jsonObject);", "public static DayTraining newInstance(String json) {\n try {\n JSONObject root = new JSONObject(json);\n return new DayTraining.Builder()\n .setRunning( root.optInt(\"t1\"), root.optInt(\"t2\"), root.optInt(\"t3\"), root.optInt(\"t2_3\"), root.optInt(\"t1_3\"), root.optInt(\"ta\"), root.optInt(\"tt\"))\n .setBreathing(root.optInt(\"gx\"), root.optInt(\"gp\"),root.optInt(\"gd\"))\n .setTrainingInfo(root.optInt(\"id_athlete\"), root.optString(\"date\"), filterJsonTotalInput(root.optString(\"description\")), root.optInt(\"texniki\"), root.optInt(\"drastiriotita\"), root.optInt(\"time\"), root.optInt(\"number\"), root.optInt(\"id_race\"))\n .build();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return null;\n }", "@JsonCreator\n public static TemplateStatus fromString(String name) {\n return fromString(name, TemplateStatus.class);\n }", "public Gateway(String json) throws IllegalArgumentException {\n this();\n genClient.initJsonObject(json);\n }", "public ProvisioningGroup parseJsonCacheGroup(String json) {\n if (StringUtils.isBlank(json)) {\n return null;\n }\n ProvisioningGroup provisioningGroup = this.cacheJsonToProvisioningGroup.get(json);\n \n if (provisioningGroup != null) {\n return provisioningGroup;\n }\n \n try {\n provisioningGroup = new ProvisioningGroup();\n provisioningGroup.fromJsonForCache(json);\n \n } catch (Exception e) {\n LOG.error(\"Problem parsing json '\" + json + \"'\", e);\n provisioningGroup = null;\n }\n \n this.cacheJsonToProvisioningGroup.put(json, provisioningGroup);\n return provisioningGroup;\n \n }", "Level makeLevel(String levelName) {\r\n return new Level(levelName);\r\n }", "public JSONModel(final String json) throws JSONException {\n jo = new JSONObject(json);\n }", "public static JsonObject stringToJSON(String json) {\n try {\n JsonParser parser = new JsonParser();\n JsonObject Jso = parser.parse(json).getAsJsonObject();\n return Jso;\n } catch (Exception e) {\n System.out.println(e.getMessage());\n return new JsonObject();\n }\n }", "public static void main(String[] args) {\n String jsonString = \"{\\\"name\\\":\\\"Pourush\\\"}\";\n JsonObject jsonObject = new JsonObject(jsonString);\n jsonObject.put(\"location\",\"Utsav\");\n System.out.println(jsonObject);\n Myitem myitem = new Myitem();\n myitem.name = \"falanadhimkana\";\n myitem.description = \"some description\";\n jsonObject.put(\"Myitem\",jsonObject.mapFrom(myitem));\n System.out.println(jsonObject);\n }", "public Info(String json) {\n super(json);\n }", "Map<String, Object> parseToMap(String json);", "@Override\n\tpublic JSON parse(String in) throws IOException {\n\t\tMyJSON js = new MyJSON();\n\t\t//count brackets make sure they match\n\t\tif(!syntaxOkay(in)){\n\t\t\tthrow new IllegalStateException(\"Mismatched brackets error\");\n\t\t}\n\t\t//get rid of spaces to make things easier\n\t\tString withoutSpaces = remove(in, ' ');\n\t\t//handles edge case of an empty object\n\t\tString withoutBraces = remove(withoutSpaces, '{');\n\t\twithoutBraces = remove(withoutBraces, '}');\n\t\tif(withoutBraces.length() == 0){\n\t\t\treturn js;\n\t\t}\n\t\tint colonIndex = in.indexOf(\":\");\n\t\tString key = in.substring(0, colonIndex);\n\t\tString value = in.substring(colonIndex + 1);\n\n\t\tif(value.contains(\":\")){\n\t\t\t//this means the value is an object so we figure out how many strings to add to the object\n\t\t\tString[] values = value.split(\",\");\n\t\t\t//creates a temp for the new object\n\t\t\tMyJSON temp = new MyJSON();\n\t\t\tfillObject(values, temp);\n\t\t\tkey = removeOutsides(key);\n\t\t\tjs.setObject(key, temp);\n\t\t}else{\n\t\t\t//the base case that actually puts things as a JSON object\n\t\t\tkey = removeOutsides(key);\n\t\t\tvalue = removeOutsides(value);\n\t\t\tjs.setString(key, value);\n\t\t}\n\n\t\treturn js;\n\t}", "public TreeGroupOp setJson(String strJson) {\n json = strJson;\r\n\r\n return this;\r\n }", "public static void parseMessage(String json, Handler handler) throws InvalidProtocolBufferException {\n CommerceProtos.Message.Builder builder = CommerceProtos.Message.newBuilder();\n JsonFormat.parser().merge(json, builder);\n handleMessage(builder.build(), handler);\n }", "public final static Variable createVariableFromJSON(final JSONObject varJson) throws JSONException {\n\t\treturn new Variable(varJson.getString(\"name\"));\n\t}", "public static TemplateGroup jsonToTemplateGroup(JsonObject jsonObject) {\n String templateGroupJsonString = jsonObject.get(\"templateGroup\").toString();\n Gson gson = new GsonBuilder().disableHtmlEscaping().setPrettyPrinting().create();\n TemplateGroup templateGroup = gson.fromJson(templateGroupJsonString, TemplateGroup.class);\n\n return templateGroup;\n }", "public static ShardingRuleConfiguration fromJson(final String json) {\r\n return GsonFactory.getGson().fromJson(json, ShardingRuleConfiguration.class);\r\n }", "public static Level readJson(String jsonName) {\n\n InputStream levelInputStream;\n try {\n levelInputStream = new FileInputStream(jsonName);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n return null;\n }\n JsonReader levelReader = Json.createReader(levelInputStream);\n\n JsonObject fileObject = levelReader.readObject();\n JsonObject levelInfo = fileObject.getJsonObject(\"Level Info\");\n JsonObject tiles = fileObject.getJsonObject(\"Tiles\");\n JsonArray rows = (JsonArray) tiles.get(\"rows\");\n\n int rowCount = levelInfo.getInt(\"rowCount\");\n int colCount = levelInfo.getInt(\"columnCount\");\n JsonArray enemies = (JsonArray) levelInfo.get(\"Enemies\");\n Position playerStart = new Position(levelInfo.getInt(\"playerX\"), levelInfo.getInt(\"playerY\"));\n\n AbstractTile[][] tileArray = new AbstractTile[colCount][rowCount];\n\n Iterator<JsonValue> rowsIterator = rows.iterator();\n\n while (rowsIterator.hasNext()) {\n // Convert from jsonValue to jsonObject, then get the array of tiles\n JsonObject currentRowObject = (JsonObject) rowsIterator.next();\n JsonArray currentRow = (JsonArray) currentRowObject.get(\"objects\");\n\n // Iterate through each row of tiles\n Iterator<JsonValue> currentRowIterator = currentRow.iterator();\n while (currentRowIterator.hasNext()) {\n JsonObject currentTile = (JsonObject) currentRowIterator.next();\n JsonValue type = currentTile.get(\"Tile Type\");\n JsonValue row = currentTile.get(\"row\");\n JsonValue column = currentTile.get(\"column\");\n JsonValue rotated = currentTile.get(\"Rotation\");\n boolean isRotated = false;\n if (rotated.toString().equals(\"\\\"Horizontal\\\"\")) {\n isRotated = false;\n } else if (rotated.toString().equals(\"\\\"Vertical\\\"\")) {\n isRotated = true;\n }\n String tileName = type.toString();\n int tileRow = stringToInt(row.toString());\n int tileColumn = stringToInt(column.toString());\n AbstractTile tileObject;\n if (tileName.equals(\"\\\"Key\\\"\")) {\n JsonValue colour = currentTile.get(\"Colour\");\n String tileColour = colour.toString();\n tileColour = tileColour.substring(1, tileColour.length() - 1);\n tileObject = new Key(tileColour);\n } else if (tileName.equals(\"\\\"ExitPortal\\\"\")) {\n tileObject = new ExitPortal();\n } else if (tileName.equals(\"\\\"ExitLock\\\"\")) {\n tileObject = new ExitLock(isRotated);\n } else if (tileName.equals(\"\\\"InfoField\\\"\")) {\n JsonValue infoText = currentTile.get(\"InfoText\");\n String tileInfoText = infoText.toString();\n tileObject = new InfoField(tileInfoText);\n } else if (tileName.equals(\"\\\"LockedDoor\\\"\")) {\n JsonValue colour = currentTile.get(\"Colour\");\n String tileColour = colour.toString();\n tileColour = tileColour.substring(1, tileColour.length() - 1);\n tileObject = new LockedDoor(isRotated, tileColour);\n } else if (tileName.equals(\"\\\"Treasure\\\"\")) {\n tileObject = new Treasure();\n } else if (tileName.equals(\"\\\"DeathTile\\\"\")) {\n tileObject = new DeathTile();\n } else if (tileName.equals(\"\\\"Wall\\\"\")) {\n tileObject = new Wall();\n // Free tile\n } else {\n tileObject = new FreeTile();\n }\n tileArray[tileColumn][tileRow] = tileObject;\n }\n }\n\n ArrayList<AbstractActor> enemiesArrayList = new ArrayList<AbstractActor>();\n\n Iterator<JsonValue> enemiesIterator = enemies.iterator();\n JsonObject currentEnemyObject;\n\n while (enemiesIterator.hasNext()) {\n AbstractActor currentEnemy;\n currentEnemyObject = (JsonObject) enemiesIterator.next();\n int xstartPos = currentEnemyObject.getInt(\"startingX\");\n int ystartPos = currentEnemyObject.getInt(\"startingY\");\n JsonValue aiType = currentEnemyObject.get(\"AI Type\");\n int tickSpeed = currentEnemyObject.getInt(\"Tick Speed\");\n JsonValue movement = currentEnemyObject.get(\"Movement String\");\n\n Position aiStartPos = new Position(xstartPos, ystartPos);\n\n String aiTypeString = aiType.toString();\n String movementString = movement.toString();\n aiTypeString = aiTypeString.substring(1, aiTypeString.length() - 1);\n movementString = movementString.substring(1, movementString.length() - 1);\n\n if (aiTypeString.equals(\"PatternEnemy\")) {\n currentEnemy = new PatternEnemy(aiStartPos, tickSpeed, movementString);\n enemiesArrayList.add(currentEnemy);\n } else if (aiTypeString.equals(\"StalkerEnemy\")) {\n currentEnemy = new StalkerEnemy(aiStartPos, tickSpeed);\n enemiesArrayList.add(currentEnemy);\n }\n\n }\n\n Player returnPlayer = new Player(playerStart);\n Set<AbstractActor> returnEnemies = new HashSet<AbstractActor>();\n returnEnemies.addAll(enemiesArrayList);\n int maxTime = levelInfo.getInt(\"timeLimit\");\n Level returnLevel = new Level(maxTime, returnPlayer, tileArray, returnEnemies);\n return returnLevel;\n\n }", "private static TagMatch deserialize(JsonObject json) {\n TagKey<Fluid> tag = TagKey.create(Registry.FLUID_REGISTRY, JsonHelper.getResourceLocation(json, \"tag\"));\n int amount = GsonHelper.getAsInt(json, \"amount\");\n return new TagMatch(tag, amount);\n }", "public JsonParser createParser(InputStream in)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 809 */ IOContext ctxt = _createContext(in, false);\n/* 810 */ return _createParser(_decorate(in, ctxt), ctxt);\n/* */ }", "public native Object parse( Object json );", "@JsonCreator\n public static AlertsSummaryGroupByFields fromString(String name) {\n return fromString(name, AlertsSummaryGroupByFields.class);\n }", "public InitialData(String jsonString)\n {\n //convert JSON to GSON\n JsonObject jsonObject = new JsonParser().parse(jsonString.trim()).getAsJsonObject();\n JsonObject packet = jsonObject.getAsJsonObject(\"packet\");\n \n //convert GSON to this object\n this.agentsName = packet.get(\"agentsName\").getAsString();\n this.placesName = packet.get(\"placesName\").getAsString();\n this.placesX = packet.get(\"placesX\").getAsInt();\n this.placesY = packet.get(\"placesY\").getAsInt();\n this.numberOfPlaces = packet.get(\"numberOfPlaces\").getAsInt();\n this.numberOfAgents = packet.get(\"numberOfAgents\").getAsInt();\n this.placesX = packet.get(\"placesX\").getAsInt();\n this.placeOverloadsSetDebugData = packet.get(\"placeOverloadsSetDebugData\").getAsBoolean();\n this.placeOverloadsGetDebugData = packet.get(\"placeOverloadsGetDebugData\").getAsBoolean();\n this.agentOverloadsSetDebugData = packet.get(\"agentOverloadsSetDebugData\").getAsBoolean();\n this.agentOverloadsGetDebugData = packet.get(\"agentOverloadsGetDebugData\").getAsBoolean();\n \n //get object type of overloaded debug data for agents and places, must extend Number\n String pDataType = packet.get(\"placeDataType\").getAsString();\n String aDataType = packet.get(\"agentDataType\").getAsString();\n \n if(pDataType.trim().isEmpty())\n {\n this.placeDataType = null;\n }\n else\n {\n try \n {\n placeDataType = (Class<? extends Number>) Class.forName(\"java.lang.\" + pDataType);\n } \n catch (ClassNotFoundException | ClassCastException ex) \n {\n System.out.println(\"No such class: \" + pDataType);\n this.placeDataType = null;\n }\n }\n \n if(aDataType.trim().isEmpty())\n {\n this.agentDataType = null;\n }\n else\n {\n try \n {\n agentDataType = (Class<? extends Number>) Class.forName(\"java.lang.\" + pDataType);\n } \n catch (ClassNotFoundException | ClassCastException ex) \n {\n System.out.println(\"No such class: \" + aDataType);\n this.agentDataType = null;\n }\n }\n \n }", "ICpPack getPack();", "public static VoucherPackageSalesInfo fromJson(String jsonString) throws IOException {\n return JSON.getGson().fromJson(jsonString, VoucherPackageSalesInfo.class);\n }", "public JsonParser createParser(char[] content)\n/* */ throws IOException\n/* */ {\n/* 899 */ return createParser(content, 0, content.length);\n/* */ }", "public static BloomFilter<String> fromJson(JsonElement source) {\n return fromJson(source, String.class);\n }", "public static JSONObject strToJson(String jsonstring) {\n JSONParser parser = new JSONParser();\n JSONObject json = null;\n try {\n json = (JSONObject) parser.parse(jsonstring);\n } catch (ParseException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return json;\n }", "public void loadJson(String json) throws Exception {\r\n\t\tsetJsonToken(SimpleJson.textToHashMap(json));\r\n\t}", "@JsonCreator\n public static TransportShipmentTypes fromString(String name) {\n return fromString(name, TransportShipmentTypes.class);\n }", "public abstract Builder zza(String str);", "void fromJson(JsonStaxParser parser) throws SyntaxException, IOException;", "private Menu jsonToMenu(String jsonMenu) {\r\n\r\n Gson gson = new Gson();\r\n Menu varMenu = gson.fromJson(jsonMenu, Menu.class);\r\n\r\n return varMenu;\r\n\r\n }", "public Organization(String jsonString) throws JSONException\n\t{\n\t\tthis(new JSONObject(jsonString));\n\t}", "@JsonCreator\n public static CreateMode fromString(String name) {\n return fromString(name, CreateMode.class);\n }", "public ChatMember(JsonObject json) {\n\n }", "public static BoxBusinessDistrictInfo fromJson(String jsonString) throws IOException {\n return JSON.getGson().fromJson(jsonString, BoxBusinessDistrictInfo.class);\n }", "public LevelPack(String name, User author, World... worlds) {\n\t\tthis.name = name;\n\n\t\tthis.transitionScript = new UserScript(\"onTransition\",\n\t\t\t\t\"--This script will be run to return an LuaInt specifying the next world to proceed to, given the current world state.\",\n\t\t\t\tSecurityLevel.AUTHOR);\n\n\t\tif (worlds.length == 0)\n\t\t\tworlds = new World[] { new World() };\n\t\tthis.levels = new WorldList();\n\t\tthis.levels.addAll(Arrays.asList(worlds));\n\t\tthis.levelIndex = 0;\n\t\tthis.levelCount = worlds.length;\n\t\tthis.levelEmblems = new ImageList();\n\t\tthis.levelTitles = new ArrayList<String>();\n\t\tthis.levelDescriptions = new ArrayList<String>();\n\n\t\tthis.authors = new ArrayList<>();\n\t\tthis.originalAuthor = author;\n\t\tthis.mainEmblem = new ImageList();\n\t\tthis.mainEmblem.add((BufferedImage) UIBuilder.getImage(DEFAULT_MAIN_EMBLEM_FILE));\n\t\tif (author != null)\n\t\t\taddAuthor(author);\n\t\tcreationDate = LocalDateTime.now();\n\t\tpublishStart = LocalDateTime.now();\n\t\tpublishEnd = publishStart.plusYears(1);\n\t\taudienceUsers = new ArrayList<>();\n\t\taudienceGroups = new ArrayList<>();\n\t\tfeedbackModel = FeedbackModel.RATING_AND_COMMENTS;\n\n\t\tcurrentPlayer = null;\n\t\tplayerVisible = new HashSet<>();\n\t\tplayerVisible.add(0);\n\t}", "public List<Judgment> createJudgment(String jsons){\n Gson gson = new Gson();\n Type jsonListType = new TypeToken<List<Judgment>>(){}.getType();\n return gson.fromJson(jsons, jsonListType);\n }", "public static JSONObject parseJSON(String jsonString) throws JSONException\n {\n return new JSONObject(jsonString);\n }", "public static <T> T string2Object(String source, Class<T> type){\n\t\treturn JSON.parseObject(source, type);\n\t}", "@Nonnull\n @SuppressWarnings(\"unused\")\n public static StochasticSamplingSubnetLayer fromJson(@Nonnull final JsonObject json, Map<CharSequence, byte[]> rs) {\n return new StochasticSamplingSubnetLayer(json, rs);\n }", "@JsonIgnore\n\tpublic static WFSLayerPermissionsStore setJSON(String json)\n\t\t\tthrows IOException {\n\t\treturn TransportService.mapper.readValue(json,\n\t\t\t\tWFSLayerPermissionsStore.class);\n\t}", "public static Sandwich parseSandwichJson(String json) throws JSONException {\n final String NAME = \"name\";\n final String IMAGE = \"image\";\n final String MAINNAME = \"mainName\";\n final String ORIGIN = \"placeOfOrigin\";\n final String ALIASES = \"alsoKnownAs\";\n final String DESCRIPTION = \"description\";\n final String INGREDIENTS = \"ingredients\";\n\n /* Parsing JSON Object into separate variables */\n JSONObject sandwichJson = new JSONObject(json);\n JSONObject nameJson = sandwichJson.getJSONObject(NAME);\n String mainName = nameJson.getString(MAINNAME);\n JSONArray alsoKnownAs = nameJson.getJSONArray(ALIASES);\n List<String> alsoKnownAsList = jsonArraytoList(alsoKnownAs);\n String origin = sandwichJson.getString(ORIGIN);\n String description = sandwichJson.getString(DESCRIPTION);\n String image = sandwichJson.getString(IMAGE);\n JSONArray ingredients = sandwichJson.getJSONArray(INGREDIENTS);\n List<String> ingredientsList = jsonArraytoList(ingredients);\n\n return new Sandwich(mainName, alsoKnownAsList, origin, description, image, ingredientsList);\n }", "public static Pumpkin create(String Type) throws PlantingException {\n\t\tassert Type != null;\n\t\ttry {\n\t\t\treturn types.get(Type.toLowerCase()).returnNew();\n\t\t} catch (NullPointerException e) {\n\n\t\t\tthrow new PlantingException(Type);\n\t\t}\n\t}", "public JSONLoader( LoadingManager manager ) {}", "<T> T toJsonPOJO(String jsonString, Class<T> classType);" ]
[ "0.7046704", "0.6651613", "0.5804715", "0.5764531", "0.53667074", "0.5353684", "0.52920264", "0.5181326", "0.51387435", "0.51339966", "0.51305234", "0.51289475", "0.5113375", "0.511213", "0.51018226", "0.50831956", "0.5051684", "0.5044375", "0.5042908", "0.50422597", "0.50091624", "0.5004255", "0.49844396", "0.49836576", "0.49680024", "0.49670678", "0.49538356", "0.49533343", "0.4951267", "0.4951136", "0.49458733", "0.49457288", "0.49443734", "0.4931392", "0.49243355", "0.4887501", "0.48826405", "0.4863738", "0.48492238", "0.4839799", "0.48394972", "0.4813872", "0.48067376", "0.48002768", "0.47810975", "0.47609535", "0.475943", "0.47579363", "0.47338775", "0.4731953", "0.47300652", "0.4715868", "0.4708466", "0.4700226", "0.46904746", "0.46900707", "0.4678238", "0.46578494", "0.46538427", "0.46475732", "0.46435383", "0.4639593", "0.46118072", "0.4610595", "0.4606639", "0.45980316", "0.45919067", "0.4582774", "0.45815486", "0.457567", "0.45725837", "0.45477992", "0.4545991", "0.45453167", "0.4535634", "0.45332143", "0.45288917", "0.4525018", "0.4517556", "0.4516931", "0.4512399", "0.4510165", "0.45076817", "0.4505665", "0.45053342", "0.44987202", "0.44945094", "0.44871563", "0.4477974", "0.44718224", "0.4463849", "0.44605488", "0.44583547", "0.44541693", "0.4437506", "0.44364262", "0.443339", "0.442865", "0.44278282", "0.44252852" ]
0.848366
0
Constructs a LevelPack object, but does not deserialize the bytes representing the Worlds. Useful for constructing a list of LevelPack objects.
public static LevelPack fromFilePartial(String filename) { // Read everything from the LevelPack, but don't bother deserializing // the Worlds. String json = Serializer.readStringFromFile(filename); return fromJsonPartial(json); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LevelPack(String name, User author, World... worlds) {\n\t\tthis.name = name;\n\n\t\tthis.transitionScript = new UserScript(\"onTransition\",\n\t\t\t\t\"--This script will be run to return an LuaInt specifying the next world to proceed to, given the current world state.\",\n\t\t\t\tSecurityLevel.AUTHOR);\n\n\t\tif (worlds.length == 0)\n\t\t\tworlds = new World[] { new World() };\n\t\tthis.levels = new WorldList();\n\t\tthis.levels.addAll(Arrays.asList(worlds));\n\t\tthis.levelIndex = 0;\n\t\tthis.levelCount = worlds.length;\n\t\tthis.levelEmblems = new ImageList();\n\t\tthis.levelTitles = new ArrayList<String>();\n\t\tthis.levelDescriptions = new ArrayList<String>();\n\n\t\tthis.authors = new ArrayList<>();\n\t\tthis.originalAuthor = author;\n\t\tthis.mainEmblem = new ImageList();\n\t\tthis.mainEmblem.add((BufferedImage) UIBuilder.getImage(DEFAULT_MAIN_EMBLEM_FILE));\n\t\tif (author != null)\n\t\t\taddAuthor(author);\n\t\tcreationDate = LocalDateTime.now();\n\t\tpublishStart = LocalDateTime.now();\n\t\tpublishEnd = publishStart.plusYears(1);\n\t\taudienceUsers = new ArrayList<>();\n\t\taudienceGroups = new ArrayList<>();\n\t\tfeedbackModel = FeedbackModel.RATING_AND_COMMENTS;\n\n\t\tcurrentPlayer = null;\n\t\tplayerVisible = new HashSet<>();\n\t\tplayerVisible.add(0);\n\t}", "public World(Game game, int levelPack, int levelNumber) {\n\t\tdiamondBlocks = new ArrayList<Diamond>();\n\t\tsilverBlocks = new ArrayList<Silver>();\n\t\tgoldBlocks = new ArrayList<Gold>();\n\t\tregTiles = new ArrayList<RegTile>();\n\t\tupSpikes = new ArrayList<Spike>();\n\t\tdownSpikes = new ArrayList<Spike>();\n\t\trightSpikes = new ArrayList<Spike>();\n\t\tleftSpikes = new ArrayList<Spike>();\n\t\tcheckpoints = new ArrayList<Checkpoint>();\n\t\teflags = new ArrayList<EndingFlag>();\n\t\t\n\t\t//init player missing\n\t\t\n\t\tgenerateLevel(game, levelPack, levelNumber);\n\t}", "public static LevelPack fromFile(String filename) {\n\t\tString json = Serializer.readStringFromFile(filename);\n\t\tLevelPack lp = fromJson(json);\n\t\tstandardize(lp);\n\t\treturn lp;\n\t}", "public static LevelPack fromJson(String json) {\n\t\treturn Serializer.deserializeLevelPack(json);\n\t}", "public LevelFromFile() {\n this.velocityList = new ArrayList<Velocity>();\n this.blockList = new ArrayList<Block>();\n this.levelName = null;\n numberOfBalls = null;\n paddleSpeed = null;\n paddleWidht = null;\n levelName = null;\n background = null;\n numberOfBlocksToRemove = null;\n blockDef = null;\n startOfBloks = null;\n startOfBloksY = null;\n rowHight = null;\n }", "private static void standardize(LevelPack pack) {\n\t\t// TODO: kill this once we have the LevelPacks stored at a standardized\n\t\t// state.\n\n\t\t// If level header info was not stored originally, check to make sure\n\t\t// there are not nulls after the deserialization.\n\t\tif (pack.levels == null)\n\t\t\tpack.levels = new WorldList();\n\t\tif (pack.levelTitles == null)\n\t\t\tpack.levelTitles = new ArrayList<String>();\n\t\tif (pack.levelDescriptions == null)\n\t\t\tpack.levelDescriptions = new ArrayList<String>();\n\t\tif (pack.levelEmblems == null)\n\t\t\tpack.levelEmblems = new ImageList();\n\n\t\t// If the level header stuff wasn't originally stored, it may be\n\t\t// necessary to populate header info with dummy data. There will always\n\t\t// be at least one level title/description/emblem, even if the levels\n\t\t// themselves don't exist.\n\t\tpack.levelCount = Math.max(1, Math.max(pack.levels.size(),\n\t\t\t\tMath.max(pack.levelTitles.size(), Math.max(pack.levelDescriptions.size(), pack.levelEmblems.size()))));\n\t\twhile (pack.levelTitles.size() < pack.levelCount)\n\t\t\tpack.levelTitles.add(\"Unnamed level.\");\n\t\twhile (pack.levelDescriptions.size() < pack.levelCount)\n\t\t\tpack.levelDescriptions.add(\"No description.\");\n\t\twhile (pack.levelEmblems.size() < pack.levelCount)\n\t\t\tpack.levelEmblems.add((BufferedImage) UIBuilder.getImage(\"images/ice_cave.jpg\"));\n\n\t\t// The lock is something new added, but it defaults to false anyway.\n\n\t}", "public synchronized void generateLevel(Game game, int levelPack, int levelNumber) {\n\t\tInputStream in = null;\n\t\tString levelCode = levelPack + \"-\" + levelNumber;\n\t\ttry {\n\t\t\tin = game.getFileIO().readAsset(\"level\" + levelCode + \".txt\");\n\t\t\tList<String> layers = readLines(in);\n\t\t\t//set world height\n\t\t\tWORLD_HEIGHT = layers.size();\n\t\t\t\n\t\t\tfor(float i = 0, y = 0.5f + layers.size() - 1; i < layers.size(); i++, y -= 1) {\n\t\t\t\tString layer = layers.get((int)i);\n\t\t\t\t\n\t\t\t\tfor(float j = 0, x = 0.5f; j < layer.length(); j++, x += 1) {\n\t\t\t\t\tif(x > tempWidth) {\n\t\t\t\t\t\ttempWidth = x + 0.5f;\n\t\t\t\t\t}\n\t\t\t\t\tchar tile = layer.charAt((int)j);\n\t\t\t\t\t\n\t\t\t\t\tif(tile == 'T') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t} else if(tile == 'L') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t\tleftXLimit = x - 0.5f;\n\t\t\t\t\t} else if(tile == 'l') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t\trightXLimit = x + 0.5f;\n\t\t\t\t\t} else if(tile == 'M') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t\tminXLimit = x - 0.5f;\n\t\t\t\t\t} else if(tile == 'U') {\n\t\t\t\t\t\tSpike upSpike = new Spike(x, y);\n\t\t\t\t\t\tupSpikes.add(upSpike);\n\t\t\t\t\t} else if(tile == 'V') {\n\t\t\t\t\t\tSpike downSpike = new Spike(x, y);\n\t\t\t\t\t\tdownSpikes.add(downSpike);\n\t\t\t\t\t} else if(tile == 'R') {\n\t\t\t\t\t\tSpike rightSpike = new Spike(x, y);\n\t\t\t\t\t\trightSpikes.add(rightSpike);\n\t\t\t\t\t} else if(tile == 'J') {\n\t\t\t\t\t\tSpike leftSpike = new Spike(x, y);\n\t\t\t\t\t\tleftSpikes.add(leftSpike);\n\t\t\t\t\t} else if(tile == 'D') {\n\t\t\t\t\t\tDiamond diamond = new Diamond(x, y);\n\t\t\t\t\t\tdiamondBlocks.add(diamond);\n\t\t\t\t\t} else if(tile == 'G') {\n\t\t\t\t\t\tGold gold = new Gold(x, y);\n\t\t\t\t\t\tgoldBlocks.add(gold);\n\t\t\t\t\t} else if(tile == 'S') {\n\t\t\t\t\t\tSilver silver = new Silver(x, y);\n\t\t\t\t\t\tsilverBlocks.add(silver);\n\t\t\t\t\t} else if(tile == 'P') {\n\t\t\t\t\t\tplayer = new Player(x, y);\n\t\t\t\t\t\tplayer.velocity.y = 1;\n\t\t\t\t\t\trespawnPoint = new Vector2(x, y);\n\t\t\t\t\t} else if(tile == 'C') {\n\t\t\t\t\t\tCheckpoint checkpoint = new Checkpoint(x, y);\n\t\t\t\t\t\tcheckpoints.add(checkpoint);\n\t\t\t\t\t} else if(tile == 'F') {\n\t\t\t\t\t\tEndingFlag eflag = new EndingFlag(x, y);\n\t\t\t\t\t\teflags.add(eflag);\n\t\t\t\t\t} else if(tile == '#') {\n\t\t\t\t\t\tworldNumberG = (int)Math.ceil(y);\n\t\t\t\t\t\tlevelNumberG = (int)Math.ceil(x);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t\t\n\t\t\t//set max found width across map to permanent width for current world\n\t\t\tWORLD_WIDTH = tempWidth;\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t}\n\t}", "public Level(int levelNumber)\r\n\t{\t\r\n\t\tlevelNum = levelNumber;\r\n\t\tlevelFileName = \"level\"+levelNum+\".txt\";\r\n\t\tlistFileName = \"level\"+levelNum+\"items.txt\";\r\n\t\tmakeCommonObjects();\r\n\t\tgrid = new Grid(levelFileName);\r\n\t\tGridSquare startSquare = grid.startLocation();\r\n\t\tplayer = new Player((int)startSquare.rect.x,(int)startSquare.platform.getBoundingRectangle().y+3);\r\n\t\tAndroidGame.camera.position.x = player.getX();\r\n\t\tAndroidGame.camera.position.y = player.getY();\r\n\t\tbackground = new Background(levelNumber, grid);\r\n\t\tdoorBubble = new OffScreenBubble(grid.getFinish());\r\n\t\tif(grid.getKey()!=null)\r\n\t\t{\r\n\t\t\thasKey = true;\r\n\t\t\tkeyBubble = new OffScreenBubble(grid.getKey());\r\n\t\t}\r\n\t\tplayer.reset(grid);\r\n\t}", "@Override\r\n\tpublic Level LoadLevel(InputStream LevelLoad) throws IOException {\r\n\t\tBufferedReader read = new BufferedReader(new InputStreamReader(LevelLoad));\r\n\t\tString line;\r\n\t\tint column = 0;\r\n\t\tint row = 0;\r\n\t\tArrayList<String> ans = new ArrayList<String>();\r\n\t\tString name = read.readLine();\r\n\t\twhile ((line = read.readLine()) != null) {\r\n\t\t\tif (line.length() > row) {\r\n\t\t\t\trow = line.length();\r\n\t\t\t}\r\n\t\t\tcolumn++;\r\n\t\t\tans.add(line);\r\n\r\n\t\t}\r\n\t\tLevel level = new Level(column, row);\r\n\t\tlevel.setName(name);\r\n\t\tcolumn = 0;\r\n\t\tfor (String resualt : ans) {\r\n\t\t\tfor (int i = 0; i < resualt.length(); i++) {\r\n\t\t\t\tswitch (resualt.charAt(i)) {\r\n\t\t\t\tcase ' ': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive(' ');\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, item);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase '#': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive('#');\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, item);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 'A': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive('A');\r\n\t\t\t\t\tlevel.setMoveableMap(column, i, item);\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, new AbstractItems(new Position2D(column, i), ' '));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase '@': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive('@');\r\n\t\t\t\t\tlevel.setMoveableMap(column, i, item);\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, new AbstractItems(new Position2D(column, i), ' '));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 'o': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive('o');\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, item);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tcolumn++;\r\n\t\t}\r\n\r\n\t\treturn level;\r\n\t}", "public StorageChunk() {\n\t\tsizeX = 0;\n\t\tsizeY = 0;\n\t\tsizeZ = 0;\n\t\ttileEntities = new ArrayList<TileEntity>();\n\t\tinventoryTiles = new ArrayList<TileEntity>();\n\t\tliquidTiles = new ArrayList<TileEntity>();\n\n\t\tworld = new WorldDummy(AdvancedRocketry.proxy.getProfiler(), this);\n\t}", "@Nonnull\n public static UBL23WriterBuilder <PackingListType> packingList ()\n {\n return UBL23WriterBuilder.create (PackingListType.class);\n }", "public void loadWorld() {\n\t\tint[][] tileTypes = new int[100][100];\n\t\tfor (int x = 0; x < 100; x++) {\n\t\t\tfor (int y = 0; y < 100; y++) {\n\t\t\t\ttileTypes[x][y] = 2;\n\t\t\t\tif (x > 40 && x < 60 && y > 40 && y < 60) {\n\t\t\t\t\ttileTypes[x][y] = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tEntityList entities = new EntityList(0);\n\t\tPlayer player = new Player(Direction.SOUTH_WEST, 50, 50);\n\t\tentities.addEntity(player);\n\t\tentities.addEntity(new Tree(Direction.SOUTH_WEST,49, 49));\n\t\tworld = new World(new Map(tileTypes), player, entities);\n\t}", "public Level(int width, int height) {\n\t\ttiles = new byte[width * height];\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\tthis.generateLevel();\n\t}", "public void load() {\n loadDisabledWorlds();\n chunks.clear();\n for (World world : ObsidianDestroyer.getInstance().getServer().getWorlds()) {\n for (Chunk chunk : world.getLoadedChunks()) {\n loadChunk(chunk);\n }\n }\n }", "public Level[] makeLevels() {\n final int nbrLevels = 4;\n Level[] levels = new Level[nbrLevels];\n\n for (int i = 0; i < maps.length; i++) {\n try {\n levels[i] = getMapParser().parseMap(maps[i]);\n } catch (IOException e) {\n throw new PacmanConfigurationException(\n \"Unable to create level, name = \" + getLevelMap(), e);\n }\n }\n\n return levels;\n }", "public Level(String name) {\n\t\t\n\t\tthis.name = name;\n\t\t\n\t\ttry {\n\t\t\tlevelType = new LevelType(DEFAULT_LEVEL_TYPE, true);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n//\t\tscreen = new Screen(300*3/SCREEN_SCALE, 168*3/SCREEN_SCALE, SCREEN_SCALE);\n\t\tscreen = new Screen(Game.width/SCREEN_SCALE, Game.height/SCREEN_SCALE, SCREEN_SCALE);\n\t\t\n\t\twidth = 800;\n//\t\theight = 500;\n\t\theight = 200;\n\t\t\n\t\tWall wall0 = new Wall(100,80,30,40);\n\t\tWall wall1 = new Wall(166,80,16,40);\n\t\t\n\t\t//Construct a default level\n\t\tFloor defaultFloor0 = new Floor(1,44,62, \"Floor 0\");\n\t\tFloor defaultFloor1 = new Floor(53,60,96, \"Floor 1\");\n\t\tFloor defaultFloor2 = new Floor(70,50,96, \"Floor 2\");\n\t\tFloor defaultFloor3 = new Floor(90,40,96, \"Floor 3\");\n\t\t\n\t\tPlatform pf0 = new Platform(186,40,100);\n\t\tPlatform pf1 = new Platform(130,80,36);\n\t\t\n\t\tBackground bg = new Background();\n\t\tadd(bg);\n\t\t\n\t\t//Background scrolling slower is probably going to have to wait a bit\n//\t\tBackgroundObject bgo = new BackgroundObject(100,25, 2);\n//\t\tadd(bgo);\n\t\t\n\t\tCoin c0 = new Coin(10, 44);\n\t\t\n\t\t\n\t\t//Note well- floors should be added in decreasing order of height, starting with the tallest.\n\t\t//\tWay to sort objects by a variable?\n\t\tadd(defaultFloor1);\n\t\tadd(defaultFloor2);\n\t\tadd(defaultFloor3);\n\t\tadd(defaultFloor0);\n\t\t\n\t\tadd(wall0);\n\t\tadd(wall1);\n\t\tadd(pf0);\n\t\tadd(pf1);\n\t\t\n\t\tadd(c0);\n\t\t\n\t}", "public static LevelPack fromJsonPartial(String json) {\n\t\tLevelPack partial = Serializer.deserializePartialLevelPack(json);\n\t\tif (partial == null)\n\t\t\treturn partial;\n\n\t\tstandardize(partial);\n\n\t\t// Return the partial LevelPack.\n\t\treturn partial;\n\t}", "@Override\r\n\tpublic Level LoadLevel(InputStream LevelLoad)throws IOException\r\n\t{\r\n\r\n\t\tBufferedReader read = new BufferedReader(new InputStreamReader(LevelLoad));\r\n\t\tString line;\r\n\t\tint column=0;\r\n\t\tint row=0;\r\n\t\tArrayList<String> ans= new ArrayList<String>();\r\n\t\twhile((line = read.readLine()) != null)\r\n\t\t{\r\n\t\t\tif (line.length() > row)\r\n\t\t\t{\r\n\t\t\t\trow = line.length();\r\n\t\t\t}\r\n\t\tcolumn++;\r\n\t\tans.add(line);\r\n\r\n\t\t}\r\n\t\tLevel level = new Level(column,row);\r\n\t\tcolumn = 0;\r\n\t\tfor(String resualt: ans)\r\n\t\t{\r\n\r\n\t\t\tfor(int i=0;i<resualt.length();i++)\r\n\t\t\t{\r\n\t\t\t\tswitch(resualt.charAt(i))\r\n\t\t\t\t{\r\n\t\t\t\t\tcase ' ':\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tItem item = new AbstractItems(new Position2D(column,i));\r\n\t\t\t\t\t\titem.setReprestive(' ');\r\n\t\t\t\t\t\tlevel.setUnmoveableMap(column,i,item);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase '#':\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tItem item = new AbstractItems(new Position2D(column,i));\r\n\t\t\t\t\t\titem.setReprestive('#');\r\n\t\t\t\t\t\tlevel.setUnmoveableMap(column,i,item);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase 'A':\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tItem item = new AbstractItems(new Position2D(column,i));\r\n\t\t\t\t\t\titem.setReprestive('A');\r\n\t\t\t\t\t\tlevel.setMoveableMap(column,i,item);\r\n\t\t\t\t\t\tlevel.setUnmoveableMap(column,i, new AbstractItems(new Position2D(column,i), ' '));\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase '@':\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tItem item = new AbstractItems(new Position2D(column,i));\r\n\t\t\t\t\t\titem.setReprestive('@');\r\n\t\t\t\t\t\tlevel.setMoveableMap(column,i,item);\r\n\t\t\t\t\t\tlevel.setUnmoveableMap(column,i, new AbstractItems(new Position2D(column,i), ' '));\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase 'o':\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tItem item = new AbstractItems(new Position2D(column,i));\r\n\t\t\t\t\t\titem.setReprestive('o');\r\n\t\t\t\t\t\tlevel.setUnmoveableMap(column,i,item);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tcolumn++;\r\n\t\t}\r\n\r\n\r\n\t\treturn level;\r\n\t}", "Level makeLevel(String levelName) {\r\n return new Level(levelName);\r\n }", "public static void createNewLevel(int sizeX, int sizeY, String displayname, List<Coordinate> blockedCoordinates, double speedModifier, int startLength) {\r\n\t\tLevelFileManager lfm = new LevelFileManager();\r\n\t\tlfm.writeLevelToStorage(sizeX, sizeY, displayname, blockedCoordinates, speedModifier, startLength);\r\n\t}", "public abstract World create(World world);", "public LevelLoader(GameStateManager gsm, String worldName, String map_name) {\n\t\tsuper(gsm);\n\t\tthis.worldName = worldName;\n\t\tthis.map_name = map_name;\n\t}", "public WorldData init()\n {\n WorldData startWorldData = new WorldData();\n model.appendWorldData(startWorldData);\n return startWorldData;\n }", "public MinecraftJson() {\n }", "public Level(){\n\t\tlevel_image_pattern = \"default\";\n\t\t\n\t\timages = new HashMap <String, Image>();\n\t\tpickables = new ArrayList<Pickable>();\n\t\tplayer_initial_position = new int[2];\n\t\tplayer_initial_position[0] = 0;\n\t\tplayer_initial_position[1] = 0;\n\t\t\n\t\tconfig = Config.getInstance();\n\t\t\n\t}", "ICpPack getPack();", "public Builder setLevelNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n levelName_ = value;\n onChanged();\n return this;\n }", "public Builder setLevelNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n levelName_ = value;\n onChanged();\n return this;\n }", "public Builder setLevelNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n levelName_ = value;\n onChanged();\n return this;\n }", "private void initialiseLevelPackages() {\n\t\tlevelPackages = new ArrayList<LevelPackage>();\n\n\t\tFileHandle handle = Gdx.files.internal(BackendHelper.getAssetDirPath()\n\t\t\t\t+ \"json/levels\");\n\t\tFileHandle[] possiblePackageDirs = handle.list();\n\t\tfor (FileHandle dir : possiblePackageDirs) {\n\t\t\tif (!dir.isDirectory()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tString name = dir.name();\n\t\t\tif (name.length() != 2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (name.matches(\"[0-9][0-9]\")) {\n\t\t\t\ttry {\n\t\t\t\t\tif (dir.child(\"package.json\").exists()) {\n\t\t\t\t\t\tlevelPackages.add(this.loadPackage(Integer\n\t\t\t\t\t\t\t\t.parseInt(name)));\n\t\t\t\t\t}\n\t\t\t\t} catch (GdxRuntimeException ex) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Ignore. Just in case, libGdx' documentation of is telling\n\t\t\t\t\t * the truth (which it isn't) and an exception is thrown in\n\t\t\t\t\t * dir.child, because it is internal an non-existent\n\t\t\t\t\t */\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tCollections.sort(levelPackages, new Comparator<LevelPackage>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(LevelPackage o1, LevelPackage o2) {\n\t\t\t\treturn (int) Math.signum(o1.getLevelPackageId()\n\t\t\t\t\t\t- o2.getLevelPackageId());\n\t\t\t}\n\t\t});\n\t}", "public WorldModel(){\t\n\t}", "public World(){\r\n locations = new Location[3][3];\r\n for(int r=0; r<3; r+=1){\r\n for(int c=0; c<3; c+=1){\r\n locations[r][c] = new EmptyLocation(new Position(r,c), \"Nothing here to see.\");\r\n }\r\n }\r\n home = locations[0][0];\r\n players = new ArrayList<Player>();\r\n }", "public WorldChunk(int width, int height, SceneNode node) {\r\n\t\tinit();\r\n\t\tthis.width = width;\r\n\t\tthis.height = height;\r\n\t\tthis.parent = node;\r\n\t\tblockMatrix = new Tile[width][height];\r\n\t\tcountTiles = new int[blockTypes.length];\r\n\t\t\r\n\t\tobjectBuckets = new Entity[objectTypes.size()][width*height];\r\n\t\tobjectCounts = new int[objectTypes.size()];\r\n\t\t\r\n\t\tgrassBuckets = new Grass[2][width*height];\r\n\t\tgrassCounts = new int[2];\r\n\t\t\r\n\t\tworldChunkBuckets = new Renderable[blockTypes.length];\r\n\t}", "public Universe()\n\t{\n\t\tthis.dimension = 3;\n\t\tthis.particles = new ArrayList<Particle>();\n\t\tthis.timebase = DEF_TIMEBASE;\n\t}", "public Level(int height, int width) {\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\ttiles = new Tile[width * height];\n\t\trandom = new Random();\n\t\tentities = new ArrayList<Entity>();\n\t\titems = new ArrayList<Item>();\n\t\tgenerateLevel();\n\n\t}", "private static void generateWorld(){\n for(int i = 0; i < SIZE*SIZE; i++){\n new Chunk();\n }\n }", "public LayerDto() {}", "public Level()\n {\n //Initialise Tile Types\n try \n {\n //Dynamically assign texture paints\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/surface.jpg\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/rover.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/rock.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/mineral.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/target.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/warning.png\")), tile));\n } catch(FileNotFoundException fnfe) {\n System.out.println(\"ERROR: Invalid texture paint, file not found\" + fnfe);\n }\n catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "public static final void initLevel()\n {\n current = new JARLevel();\n\n //assign blocks, enemies, the player and all items\n current.iWalls = new JARWall[]\n {\n new JARWall( 30 + 256, current.iLevelBoundY - 310 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 384, current.iLevelBoundY - 320 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 512, current.iLevelBoundY - 300 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 640, current.iLevelBoundY - 290 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 768, current.iLevelBoundY - 280 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 896, current.iLevelBoundY - 270 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1152, current.iLevelBoundY - 260 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1408, current.iLevelBoundY - 250 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 - 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 + 0, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 + 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 - 2 * 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 - 3 * 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 - 4 * 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n\n new JARWall( 30 + 1920, current.iLevelBoundY - 230 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 2100, current.iLevelBoundY - 230 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n\n new JARWall( 66, current.iLevelBoundY - 324, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n\n new JARWall( 0, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 128, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 256, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 384, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 512, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 640, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 768, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 896, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1024, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1152, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1280, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1408, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1536, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1664, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1792, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1920, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 2048, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 2176, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n };\n current.iEnemies = new JARPlayer[]\n {\n/*\n new JARPlayer( 500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_WEAK ),\n new JARPlayer( 1000, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_WEAK ),\n new JARPlayer( 1500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_WEAK ),\n new JARPlayer( 2000, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_WEAK ),\n new JARPlayer( 2500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG ),\n new JARPlayer( 3000, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG ),\n new JARPlayer( 3500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG ),\n new JARPlayer( 4000, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG ),\n new JARPlayer( 4500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG )\n*/\n };\n\n current.iPlayer = new JARPlayer( 0, GameObjectType.EPlayer, JARPlayerTemplate.USER );\n\n current.iItems = new JARItem[]\n {\n //new JARItem( 50, 700, JARItemType.ITEM_TYPE_COIN ),\n //new JARItem( 150, 700, JARItemType.ITEM_TYPE_COIN ),\n //new JARItem( 250, 700, JARItemType.ITEM_TYPE_COIN ),\n new JARItem( 550, 700, JARItemType.ITEM_TYPE_CHERRY ),\n new JARItem( 650, 700, JARItemType.ITEM_TYPE_CHERRY ),\n new JARItem( 750, 700, JARItemType.ITEM_TYPE_CHERRY ),\n new JARItem( 1050, 700, JARItemType.ITEM_TYPE_APPLE ),\n new JARItem( 1150, 700, JARItemType.ITEM_TYPE_APPLE ),\n new JARItem( 1250, 700, JARItemType.ITEM_TYPE_APPLE ),\n new JARItem( 1550, 700, JARItemType.ITEM_TYPE_ORANGE ),\n new JARItem( 1650, 700, JARItemType.ITEM_TYPE_ORANGE ),\n new JARItem( 1750, 700, JARItemType.ITEM_TYPE_ORANGE ),\n new JARItem( 2050, 700, JARItemType.ITEM_TYPE_PEAR ),\n new JARItem( 2150, 700, JARItemType.ITEM_TYPE_PEAR ),\n new JARItem( 2250, 700, JARItemType.ITEM_TYPE_PEAR ),\n new JARItem( 2550, 700, JARItemType.ITEM_TYPE_STRAWBERRY ),\n new JARItem( 2650, 700, JARItemType.ITEM_TYPE_STRAWBERRY ),\n new JARItem( 2750, 700, JARItemType.ITEM_TYPE_STRAWBERRY ),\n };\n }", "@Override\r\n public void load()\r\n {\r\n\tLevel.openMap(\"maps/Level1.map\", _width, _height);\r\n\t_level = Level.getInstance();\r\n\tCamera.getInstance().setBounds(_level.getWorldBoundaries());\r\n\t_printText = new Text(TILESHEET_TEXTURE, \"0123456789xUPC\", 0, 244, 32, 37, 4, 24, 28);\r\n\t_coin = new Sprite(\"Coin\", 6, _height - 34, 24, 24, Tiles.get(COIN_ANIM), false);\r\n\t_1UP = new Sprite(\"1UP\", 200, _height - 42, 42, 42, Tiles.get(MUSHROOM_GREEN), false);\r\n\tSoundLibrary.getInstance().loop(MUSIC_LEVEL);\r\n\tMario.clearData();\r\n }", "public Builder clearLevel() {\n bitField0_ = (bitField0_ & ~0x00000001);\n level_ = 0;\n \n return this;\n }", "public static void parseLevelObjectsFromXml(final CandyLevelActivity candyLevel) {\r\n\t\ttry {\r\n\t\t\t// Load the XML into a DOM.\r\n\t\t\tfinal InputStream input = candyLevel.getAssets().open(\"levels/w\" + candyLevel.world + \".xml\");\r\n\t\t\tfinal DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\t\tfinal DocumentBuilder db = dbf.newDocumentBuilder();\r\n\t\t\tfinal Document doc = db.parse(new InputSource(input));\r\n\t\t\tdoc.getDocumentElement().normalize();\r\n\r\n\t\t\t// Get all elements named level.\r\n\t\t\tfinal NodeList levelNodeList = doc.getElementsByTagName(\"l\"); // l = level\r\n\r\n\t\t\t// Select the correct level in the world.\r\n\t\t\tfor (int i = 0; i < levelNodeList.getLength(); i++) {\r\n\t\t\t\tif (Integer.valueOf(((Element) levelNodeList.item(i)).getAttribute(\"id\")) == candyLevel.level) {\r\n\t\t\t\t\tfinal Element currentLevelElement = (Element) levelNodeList.item(i);\r\n\r\n\t\t\t\t\t// Make a list of all child objects.\r\n\t\t\t\t\tfinal NodeList objectNodeList = currentLevelElement.getElementsByTagName(\"o\"); // o = object\r\n\r\n\t\t\t\t\t// Load attributes into an Object[3], then append to objectArrayList.\r\n\t\t\t\t\tfor (int j = 0; j < objectNodeList.getLength(); j++) {\r\n\t\t\t\t\t\tfinal Element currentObjectElement = (Element) objectNodeList.item(j);\r\n\t\t\t\t\t\tcandyLevel.objectList.add(new int[] {Integer.valueOf(currentObjectElement.getAttribute(\"n\")), // n = number indicating type of object\r\n\t\t\t\t\t\t\t\tInteger.valueOf(currentObjectElement.getAttribute(\"r\")), // r = row\r\n\t\t\t\t\t\t\t\tInteger.valueOf(currentObjectElement.getAttribute(\"c\")) // c = column\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tfinal NodeList tutorialNodeList = currentLevelElement.getElementsByTagName(\"h\"); // h = help = tutorial\r\n\t\t\t\t\tfor (int j = 0; j < tutorialNodeList.getLength(); j++) {\r\n\t\t\t\t\t\tfinal Element currentTutorialElement = (Element) tutorialNodeList.item(j);\r\n\t\t\t\t\t\tcandyLevel.tutorialList.add(new String[] {currentTutorialElement.getTextContent(),\r\n\t\t\t\t\t\t\t\tcurrentTutorialElement.getAttribute(\"r\"), // r = row\r\n\t\t\t\t\t\t\t\tcurrentTutorialElement.getAttribute(\"c\") // c = column\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tfinal NodeList toastNodeList = currentLevelElement.getElementsByTagName(\"t\"); // t toast\r\n\t\t\t\t\tif (toastNodeList.getLength()==1) {\r\n\t\t\t\t\t\tcandyLevel.helpTextString = ((Element)toastNodeList.item(0)).getTextContent();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tfinal NodeList moveNodeList = currentLevelElement.getElementsByTagName(\"m\");\r\n\t\t\t\t\tif (moveNodeList.getLength() == 0) {\r\n\t\t\t\t\t\tcandyLevel.advancedMovesFor3Stars = 1;\r\n\t\t\t\t\t\tcandyLevel.basicMovesFor2Stars = 1;\r\n\t\t\t\t\t\tif (CandyUtils.DEBUG) Log.w(TAG, \"Level \" + candyLevel.world + \"-\" + candyLevel.level + \" lacks moves requirements.\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfinal Element currentMoveElement = (Element)moveNodeList.item(0);\r\n\t\t\t\t\t\tcandyLevel.advancedMovesFor3Stars = Integer.valueOf(currentMoveElement.getAttribute(\"a\"));\r\n\t\t\t\t\t\tcandyLevel.basicMovesFor2Stars = Integer.valueOf(currentMoveElement.getAttribute(\"b\"));\r\n\t\t\t\t\t\tif (CandyUtils.DEBUG) Log.i(TAG, \"Move requirements: \" + candyLevel.advancedMovesFor3Stars + \", \" + candyLevel.basicMovesFor2Stars);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t} else if (i + 1 == levelNodeList.getLength()) {\r\n\t\t\t\t\tthrow new Exception(\"Missing level \" + candyLevel.world + \"-\" + candyLevel.level + \"!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tif (CandyUtils.DEBUG) Log.e(TAG, \"XML FAIL!\", e);\r\n\t\t\tToast.makeText(candyLevel.getApplicationContext(), \"Failed to load level.\", Toast.LENGTH_LONG).show();\r\n\t\t\tif (!(candyLevel.world == 1 & candyLevel.level == 1)) {\r\n\t\t\t\tcandyLevel.world = 1;\r\n\t\t\t\tcandyLevel.level = 1;\r\n\t\t\t\tparseLevelObjectsFromXml(candyLevel);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static ArrayList<Level> loadAll(){\n\t\tArrayList<Level> all = new ArrayList<Level>();\n\t\tboolean unlocked =false;\n\t\ttry{\n\t\t\tFile dir = new File(\"levels/\");\n\t\t\tFile[] directoryListing = dir.listFiles();\n\t\t\tif(directoryListing != null){ // Use default level directory to create buttons\n\t\t\t\tfor(File child : directoryListing){\n\t\t\t\t\tif (child.getName().equals(\".DS_Store\")) continue;\n\t\t\t\t\tLevelState tmp = new LevelState();\n\t\t\t\t\ttmp.loadState(child.getName());\n\t\t\t\t\tString levelType = tmp.getLevelType();\n\t\t\t\t\tif(levelType != null){\n\t\t\t\t\t\tLevel newLevel = null;\n\t\t\t\t\t\tif(levelType.equals(LevelEditorState.PUZZLE)){\n\t\t\t\t\t\t\tnewLevel = new PuzzleLevel(tmp);\n\t\t\t\t\t\t} else if(levelType.equals(LevelEditorState.LIGHTNING)) {\n\t\t\t\t\t\t\tnewLevel = new LightningLevel(tmp);\n\t\t\t\t\t\t} else if(levelType.equals(LevelEditorState.RELEASE)) {\n\t\t\t\t\t\t\tnewLevel = new ReleaseLevel(tmp);\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(newLevel.getAchievement().getAchievement()>0){\n\t\t\t\t\t\t\tunlocked = true;\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tunlocked = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(unlocked){\n\t\t\t\t\t\t\tnewLevel.setLocked(false);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tnewLevel.setLocked(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tall.add(newLevel);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn all;\n\n\t}", "public LevelParser clone(){\n\t\tchar[][] level = new char[this.level.length][this.level[0].length];\n\t\tfor(int y=0;y<this.level.length;y++)\n\t\t\tfor(int x=0;x<this.level[0].length;x++)\n\t\t\t\tlevel[y][x] = this.level[y][x];\n\t\ttry {\n\t\t\treturn new LevelParser(level);\n\t\t} catch (SyntacticIncException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "@Override // android.os.Parcelable.Creator\n public final /* synthetic */ lw createFromParcel(Parcel parcel) {\n return new lw(parcel, (byte) 0);\n }", "private static VersionedWaveletDelta emptyDeserializedDeltaAtVersion(final long version) {\n return new VersionedWaveletDelta(null, HashedVersion.unsigned(version));\n }", "public Builder clearWorldid() {\n bitField0_ = (bitField0_ & ~0x00000001);\n worldid_ = 0L;\n onChanged();\n return this;\n }", "public Builder clearWorldid() {\n bitField0_ = (bitField0_ & ~0x00000001);\n worldid_ = 0L;\n onChanged();\n return this;\n }", "public Builder clearLevel() {\n bitField0_ = (bitField0_ & ~0x00000002);\n level_ = 1;\n \n return this;\n }", "public WiuWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1xpixels.\n super(WIDTH_WORLD, HEIGHT_WORLD, 1); \n }", "public void createLevel(){\n for(LevelController rc: rooms ) {\n rc.loadContent();\n rc.setScreenListener(listener);\n rc.setCanvas(canvas);\n }\n }", "public World()\n\t{\n\t\tinitWorld();\t\n\t}", "public ServicioUjaPack() {\n }", "public Floor(){\n populateRooms();\n level = new Room[5][5];\n }", "public Packman(String str) {\r\n\t\tString[] fields = str.split(\",\");\r\n\t\tType = fields[0].charAt(0);\r\n\t\tID = Integer.parseInt(fields[1]);\r\n\t\tLocation = new LatLonAlt(fields[2] + \",\" + fields[3] + \",\" + fields[4]);\r\n\t\tSpeed = Double.parseDouble(fields[5]);\r\n\t\tRadius = Double.parseDouble(fields[6]);\r\n\t\tInitTime = new Date().getTime();\r\n\t}", "public Loader(){\n\t\tthis(PLANETS, NEIGHBOURS);\n\t}", "public Map(String level) {\n this.level = level;\n terrains = new String[]{\"r\", \"p\", \"m1\", \"m2\", \"m3\"};\n\n //if default random\n if (level.equals(\"default\")) {\n String[] defaultLevel = {\n \"p\", \"p\", \"m1\", \"p\", \"r\", \"p\", \"m3\", \"p\", \"p\",\n \"p\", \"m1\", \"p\", \"p\", \"r\", \"p\", \"p\", \"p\", \"m3\",\n \"m3\", \"p\", \"p\", \"p\", \"t\", \"p\", \"p\", \"p\", \"m1\",\n \"p\", \"m2\", \"p\", \"p\", \"r\", \"p\", \"m2\", \"p\", \"p\",\n \"p\", \"p\", \"m2\", \"p\", \"r\", \"p\", \"p\", \"p\", \"m2\"};\n int j = 0;\n for (int i = 0; i < tiles.length; i++) {\n for (int k = 0; k < tiles[0].length; k++, j++) {\n tiles[i][k] = new Tile(i, k, defaultLevel[j]);\n }\n }\n }\n\n // if random level\n if (level.equals(\"random\")) {\n for (int i = 0; i < tiles.length; i++) {\n for (int k = 0; k < tiles[0].length; k++) {\n String ter = terrains[(int) (Math.random() * (terrains.length - 1))];\n tiles[i][k] = new Tile(i, k, ter);\n }\n }\n tiles[2][4] = new Tile(2, 4, \"t\");\n }\n }", "static public EzMessage CreateMessageObject(byte[] packBytes) {\n\t\tif(packBytes == null)\n\t\t\treturn null;\n\t\tCodedInputStream input = CodedInputStream.newInstance(packBytes);\n\t\ttry{\n\t\t\tint nid = input.readInt32();\n\t\t\tEzMessage msg = CreateMessageObject(nid);\n\t\t\tif(msg!=null)\n\t\t\t{\n\t\t\t\tif(msg.deSerializeFromPB(input))\n\t\t\t\t\treturn msg;\n\t\t\t\telse\n\t\t\t\t\treturn null;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmsg = CreateMessageObject(\"msg.unknown\");\n\t\t\t\tif(msg != null)\n\t\t\t\t{\n\t\t\t\t\tmsg.getKVData(\"value\").setValue(packBytes);\n\t\t\t\t\treturn msg;\n\t\t\t\t}\n\t\t\t\telse return null;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t {\n\t e.printStackTrace(); \n\t return null;\n\t }\n\t}", "public Packman(Packman p) {\r\n\t\tType = p.getType();\r\n\t\tID = p.getID();\r\n\t\tLocation = new LatLonAlt(p.getLocation());\r\n\t\tSpeed = p.getSpeed();\r\n\t\tRadius = p.getRadius();\r\n\t\tInitTime = new Date().getTime();\r\n\t\timg = p.getImage();\r\n\t}", "public Builder clearLevel() {\n bitField0_ = (bitField0_ & ~0x00000008);\n level_ = 0;\n onChanged();\n return this;\n }", "public Levels()\r\n { \r\n super(1070, 570, 1);\r\n \r\n //Add the bottom platform in the menu screen\r\n platforms = new Platforms[7]; \r\n for (int i = 0; i < platforms.length; i++)\r\n {\r\n platforms[i] = new Platforms();\r\n }\r\n bottomPlatform();\r\n\r\n //Add the Potato (player)\r\n player = new Player();\r\n addObject (player, 100, 512); \r\n\r\n setBackground(\"menu.png\");\r\n }", "@Override\n\tpublic void init() {\n\t\tworld = new World(gsm);\n\t\tworld.init();\n\t\t\n\t\tif(worldName == null){\n\t\t\tworldName = \"null\";\n\t\t\tmap_name = \"map\";\n\t\t} \n\t\tworld.generate(map_name);\n\t}", "public Builder clearLevel() {\n bitField0_ = (bitField0_ & ~0x00000001);\n level_ = 0;\n onChanged();\n return this;\n }", "private void loadWorld() {\n try {\n world = jsonReader.read();\n System.out.println(\"Loaded world from \" + JSON_STORE);\n } catch (IOException | InvalidDataException e) {\n System.out.println(\"Unable to read from file: \" + JSON_STORE);\n }\n }", "private void buildWorld() {\r\n\t\tremoveAll();\r\n\t\tintro = null;\r\n\t\tfacingEast = true;\r\n\t\t\r\n\t\taddLevels();\r\n\t\taddCharacters();\r\n\t\taddLifeDisplay();\r\n\t}", "public Level1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(560, 560, 1); \n prepare();\n gfs_level1 = new GreenfootSound(\"main.wav\");\n\n }", "public LevelInformation seperateLeveData() {\n try {\n // put the value of \"level_name\" in levelName\n String levelName = map.get(\"level_name\");\n // create a list of velocities\n List<Velocity> velocities = getVelocitiesForLevel();\n // find the speed of the paddle\n int paddleSpeed = Integer.parseInt(map.get(\"paddle_speed\"));\n // find the width of the paddle\n int paddleWidth = Integer.parseInt(map.get(\"paddle_width\"));\n // find the number of blocks\n int numOfBlocks = Integer.parseInt(map.get(\"num_blocks\"));\n // creating a list of blocks\n List<Block> blockList = createBlocks();\n String backround = map.get(\"background\");\n // create a level based on the Level Data\n LevelData oneLevel = new LevelData(levelName, velocities, paddleSpeed, paddleWidth, numOfBlocks, blockList);\n if (backround.contains(\"image\")) {\n backround = backround.replaceAll(\"[()]\", \"\");\n backround = backround.substring(5);\n // create an InputStream object\n InputStream imageIS = ClassLoader.getSystemClassLoader().getResourceAsStream(backround);\n Image image = null;\n // try to load the image\n try {\n image = ImageIO.read(imageIS);\n } catch (IOException e) {\n e.printStackTrace();\n } // set the backround\n oneLevel.setBackroundImage(image);\n imageIS.close();\n return oneLevel;\n } else {\n oneLevel.setBackroundColor(new ColorsParser().colorFromString(backround));\n return oneLevel;\n }\n } catch (Exception e) {\n messageToUser();\n }\n return null;\n }", "private void populateLevel() {\r\n\r\n\r\n\t\t// Setup Goal\r\n\t\tJsonValue goalVal = levelAssets.get(\"goal\");\r\n\t\tfloat gWidth = goalTile.getRegionWidth()/scale.x;\r\n\t\tfloat gHeight = goalTile.getRegionHeight()/scale.y;\r\n\t\tfloat gX = goalVal.get(\"pos\").getFloat(0) + gWidth / 2;\r\n\t\tfloat gY = goalVal.get(\"pos\").getFloat(1) + gHeight / 2;\r\n\t\tgoalDoor = new DoorModel(gX, gY, gWidth, gHeight);\r\n\t\tgoalDoor.setBodyType(BodyDef.BodyType.StaticBody);\r\n\t\tgoalDoor.setDensity(constants.get(\"goal\").getFloat(\"density\", 0));\r\n\t\tgoalDoor.setFriction(constants.get(\"goal\").getFloat(\"friction\", 0));\r\n\t\tgoalDoor.setRestitution(constants.get(\"goal\").getFloat(\"restitution\", 0));\r\n\t\tgoalDoor.setSensor(true);\r\n\t\tgoalDoor.setDrawScale(scale);\r\n\t\tgoalDoor.setTexture(goalTile);\r\n\t\tgoalDoor.setName(\"goal\");\r\n\t\taddObject(goalDoor);\r\n\t\taddObjectTo(goalDoor, LevelCreator.allTag);\r\n\r\n\t\t// Get default values\r\n\t\tJsonValue defaults = constants.get(\"defaults\");\r\n\t\tJsonValue objs = levelAssets.get(\"objects\");\r\n\r\n\t\t//group platform constants together for access in following for-loop\r\n\t\tTextureRegion[] xTexture = {lightTexture, darkTexture, allTexture,\r\n\t\t\tlightningLightTexture, lightningDarkTexture, lightningAllTexture,\r\n\t\t\trainLightTexture, rainDarkTexture, rainAllTexture,\r\n\t\t\t\tcrumbleLightTexture, crumbleDarkTexture, crumbleAllTexture};\r\n\r\n\t\tTextureRegion[] reducedXTexture = {lightTexture, darkTexture, allTexture,\r\n\t\t\t\tlightningLightTextureReduced, lightningDarkTextureReduced, lightningAllTextureReduced,\r\n\t\t\t\trainLightTextureReduced, rainDarkTextureReduced, rainAllTextureReduced,\r\n\t\t\t\tcrumbleLightTextureReduced, crumbleDarkTextureReduced, crumbleAllTextureReduced};\r\n\r\n\r\n\t\t// Setup platforms\r\n\t\tfor(int i=0; i < (objs != null ? objs.size : 0); i++)\r\n\t\t{\r\n\t\t\tJsonValue obj = objs.get(i);\r\n\r\n\t\t\t// Get platform attributes\r\n\t\t\tint platformType = obj.get(\"type\").asInt();\r\n\t\t\tint property = obj.get(\"property\") == null ? 0: obj.get(\"property\").asInt();\r\n\t\t\tJsonValue platformArgs = obj.get(\"positions\");\r\n\t\t\tJsonValue pathsArgs = obj.get(\"paths\");\r\n\r\n\t\t\tfor (int j = 0; j < platformArgs.size; j++) {\r\n\t\t\t\tfloat[] bounds = platformArgs.get(j).asFloatArray();\r\n\t\t\t\tfloat x = bounds[0], y = bounds[1], width = bounds[2], height = bounds[3];\r\n\t\t\t\tTextureRegion newXTexture;\r\n\t\t\t\tTextureRegion crumbleTexture = null;\r\n\t\t\t\tTexture originalTexture = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// temporary - need to refactor asset directory\r\n\t\t\t\t\tJsonValue assetName = obj.get(\"assetName\");\r\n\t\t\t\t\tint assetIndex = assetName.asInt();\r\n\t\t\t\t\tnewXTexture = new TextureRegion(tutorial_signs[assetIndex]);\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tint platIdx = platformType-1+(property - 1)*3;\r\n\t\t\t\t\tint crumbleIdx = platIdx + 3;\r\n\t\t\t\t\tnewXTexture = new TextureRegion(xTexture[platIdx]);\r\n\t\t\t\t\toriginalTexture = newXTexture.getTexture();\r\n\t\t\t\t\t// For crumble animation\r\n\t\t\t\t\tif (platIdx > 5) {\r\n\t\t\t\t\t\tcrumbleTexture = new TextureRegion(xTexture[crumbleIdx]);\r\n//\t\t\t\t\t\tcrumbleTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// If the platform size is the same as the spritesheet size\r\n\t\t\t\t\tif (originalTexture.getWidth() > 32 && width%(originalTexture.getWidth()/32) == 0) {\r\n\t\t\t\t\t\tnewXTexture = new TextureRegion(reducedXTexture[platIdx]);\r\n\t\t\t\t\t\toriginalTexture = newXTexture.getTexture();\r\n\t\t\t\t\t\tif (platIdx > 5) {\r\n\t\t\t\t\t\t\tcrumbleTexture = new TextureRegion(reducedXTexture[crumbleIdx]);\r\n//\t\t\t\t\t\t\tcrumbleTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n//\t\t\t\t\tnewXTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t}\r\n\t\t\t\tPlatformModel platformModel = new PlatformModel(bounds, platformType, property, newXTexture, scale,\r\n\t\t\t\t\t\tdefaults.getFloat( \"density\", 0.0f ), defaults.getFloat( \"friction\", 0.0f ) ,\r\n\t\t\t\t\t\tdefaults.getFloat( \"restitution\", 0.0f ), originalTexture, crumbleTexture);\r\n\t\t\t\tplatformModel.setTag(platformType);\r\n\t\t\t\tplatformModel.setProperty(property);\r\n\t\t\t\taddObject(platformModel);\r\n\t\t\t\taddObjectTo(platformModel, platformType);\r\n\t\t\t\t//TODO: Moving platforms\r\n\r\n\r\n\t\t\t\tif (pathsArgs != null) {\r\n\t\t\t\t\tfloat[] paths = pathsArgs.get(j).asFloatArray();\r\n\r\n\t\t\t\t\t//** Moving platform if > 1 path or different path from starting position\r\n\t\t\t\t\tif (hasValidPath(x, y, paths)) {\r\n\t\t\t\t\t\tplatformModel.setBodyType(BodyDef.BodyType.KinematicBody);\r\n\t\t\t\t\t\tmovingObjects.add(platformModel);\r\n\r\n\t\t\t\t\t\tPooledList<Vector2> pathList = new PooledList<>();\r\n\t\t\t\t\t\tfor (int k = 0; k < paths.length; k+=2) {\r\n\t\t\t\t\t\t\tpathList.add(new Vector2(paths[k], paths[k+1]));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tfloat velocity = 3;\r\n\r\n\t\t\t\t\t\tplatformModel.setGravityScale(0);\r\n\t\t\t\t\t\tplatformModel.setPaths(pathList);\r\n\t\t\t\t\t\tplatformModel.setVelocity(velocity);\r\n\r\n\t\t\t\t\t\tmovingObjects.add(platformModel);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// This world is heavier\r\n\t\tworld.setGravity( new Vector2(0,defaults.getFloat(\"gravity\",0)) );\r\n\r\n\t\t// Set level background index\r\n\t\tint backgroundTextureIndex = levelAssets.get(\"background\").asInt();\r\n\t\tbackgroundLightTexture = backgrounds[backgroundTextureIndex - 1];\r\n\t\tbackgroundDarkTexture = backgrounds[backgroundTextureIndex];\r\n\t\tbackgroundTexture = backgroundLightTexture;\r\n\r\n\t\t// Initialize background animations\r\n\t\tactualBackgroundTexture = backgroundTexture.getTexture();\r\n\t\tbackgroundEntirePixelWidth = actualBackgroundTexture.getWidth();\r\n\t\tbackgroundNumAnimFrames = (int)(backgroundEntirePixelWidth/backgroundFramePixelWidth);\r\n\t\tbackgroundAnimator = new FilmStrip(backgroundTexture,1, backgroundNumAnimFrames, backgroundNumAnimFrames);\r\n\t\tbackgroundAnimator.setFrame(0);\r\n\t\tbackgroundAnimeframe = 0;\r\n\t\tbackgroundOrigin = new Vector2(backgroundAnimator.getRegionWidth()/2.0f, backgroundAnimator.getRegionHeight()/2.0f);\r\n\r\n\t\t// Set level bounds\r\n\t\twidthUpperBound = levelAssets.get(\"dimensions\").getInt(0);\r\n\t\theightUpperBound = levelAssets.get(\"dimensions\").getInt(1);\r\n\r\n\t\t// Setup Somni\r\n\r\n\t\tJsonValue somniVal = levelAssets.get(\"somni\");\r\n\t\tfloat sWidth = somniTexture.getRegionWidth()/scale.x;\r\n\t\tfloat sHeight = somniTexture.getRegionHeight()/scale.y;\r\n\t\tfloat sX = somniVal.get(\"pos\").getFloat(0) + sWidth / 2;\r\n\t\tfloat sY = somniVal.get(\"pos\").getFloat(1) + sHeight / 2;\r\n\t\tsomni = new CharacterModel(constants.get(\"somni\"), sX, sY, sWidth, sHeight, platformController.somnif, CharacterModel.LIGHT);\r\n\t\tsomni.setDrawScale(scale);\r\n\t\tsomni.setTexture(somniIdleTexture);\r\n\t\tsomni.setFilterData(platformController.somnif);\r\n\t\tsomni.setActive(true);\r\n\t\taddObject(somni);\r\n\t\taddObjectTo(somni, LevelCreator.allTag);\r\n\r\n\r\n\t\t// Setup Phobia\r\n\r\n\t\tJsonValue phobiaVal = levelAssets.get(\"phobia\");\r\n\t\tfloat pWidth = phobiaTexture.getRegionWidth()/scale.x;\r\n\t\tfloat pHeight = phobiaTexture.getRegionHeight()/scale.y;\r\n\t\tfloat pX = phobiaVal.get(\"pos\").getFloat(0) + pWidth / 2;\r\n\t\tfloat pY = phobiaVal.get(\"pos\").getFloat(1) + pHeight / 2;\r\n\t\tphobia = new CharacterModel(constants.get(\"phobia\"), pX, pY, pWidth, pHeight, platformController.phobiaf, CharacterModel.DARK);\r\n\t\tphobia.setDrawScale(scale);\r\n\t\tphobia.setTexture(phobiaIdleTexture);\r\n\t\tphobia.setFilterData(platformController.phobiaf);\r\n\t\taddObject(phobia);\r\n\t\taddObjectTo(phobia, LevelCreator.allTag);\r\n\t\tphobia.setActive(true);\r\n\r\n\t\t// Setup Combined\r\n\r\n\t\tfloat cWidth = combinedTexture.getRegionWidth()/scale.x;\r\n\t\tfloat cHeight = combinedTexture.getRegionHeight()/scale.y;\r\n\r\n\t\tcombined = new CharacterModel(constants.get(\"combined\"), 0, 0, cWidth, cHeight, platformController.combinedf, CharacterModel.DARK);\r\n\t\tcombined.setDrawScale(scale);\r\n\t\tcombined.setTexture(somniPhobiaTexture);\r\n\t\t//combined.setTag();\r\n\t\tcombined.setFilterData(platformController.combinedf);\r\n\t\taddObject(combined);\r\n\t\taddObjectTo(combined, LevelCreator.allTag);\r\n\t\tcombined.setActive(true);\r\n\r\n\t\t//Remove combined\r\n\t\tobjects.remove(combined);\r\n\t\tsharedObjects.remove(combined);\r\n\t\tcombined.setActive(false);\r\n\r\n\t\taction = 0;\r\n\r\n\t\tPreferences prefs = GDXRoot.getPreferences();\r\n\t\tvolume = prefs.contains(\"volume\") ? prefs.getFloat(\"volume\") : defaults.getFloat(\"volume\",\r\n\t\t\t\t1.0f);\r\n//\t\tSystem.out.println(volume);\r\n\r\n\t\tplatformController.applyFilters(objects);\r\n\t}", "public WorldState ()\n\t{\n\t\tproperties = new HashMap<String, WorldStateProperty>();\n\t}", "public static GameWorld loadGame(InputStream in) throws PersistenceException {\n try {\n // setup: create a save file and a JAXB Unmarshaller for the class\n JAXBContext gameContext = JAXBContext.newInstance(GameWorld.class);\n Unmarshaller gameUnmarshaller = gameContext.createUnmarshaller();\n\n // load a java object from the XML file\n return (GameWorld) gameUnmarshaller.unmarshal(in);\n\n } catch (JAXBException e) {\n throw new PersistenceException(\"Failed to load the GameWorld file. \\n\", e);\n }\n }", "public MainModel(String levelname) {\r\n LevelData level = LevelData.parseLevelFromName(levelname);\r\n\r\n this.history = new ModelHistory(levelname);\r\n\r\n this.jumper = new Jumper(level.getPlayerPosition());\r\n\r\n this.blocks = new ArrayList<>();\r\n for (Quad quad : level.getQuadData()) {\r\n blocks.add(Block.fromQuad(quad, BlockType.STICKY));\r\n }\r\n blocks.add(Block.fromQuad(level.getFinishQuad(), BlockType.FINISH));\r\n\r\n }", "public BattleWorld(String pokemonName, int level)\r\n {\r\n wildPokemon = true;\r\n isBattleOver = false;\r\n initWorld(pokemonName, level, 0);\r\n }", "public MyWorld()\n {\n super(600, 400, 1);\n }", "public LevelLoader(GameStateManager gsm){\n\t\tsuper(gsm);\n\t}", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1000, 600, 1);\n planets();\n stars();\n }", "public WaterWorld()\r\n { \r\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\r\n super(600, 400, 1); \r\n populateWorld();\r\n }", "public void loadMap() {\n\n try {\n new File(this.mapName).mkdir();\n FileUtils.copyDirectory(\n new File(this.plugin.getDataFolder() + \"/maps/\" + this.mapName), new File(this.mapName));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n WorldCreator wc = new WorldCreator(this.mapName);\n World world = wc.createWorld();\n world.setAutoSave(false);\n world.setPVP(false);\n world.setDifficulty(Difficulty.PEACEFUL);\n world.setGameRuleValue(\"doDaylightCycle\", \"false\");\n world.setGameRuleValue(\"mobGriefing\", \"false\");\n world.setGameRuleValue(\"doMobSpawning\", \"false\");\n world.setGameRuleValue(\"doFireTick\", \"false\");\n world.setGameRuleValue(\"keepInventory\", \"true\");\n world.setGameRuleValue(\"commandBlockOutput\", \"false\");\n world.setSpawnFlags(false, false);\n\n try {\n final JsonParser parser = new JsonParser();\n final FileReader reader =\n new FileReader(this.plugin.getDataFolder() + \"/maps/\" + this.mapName + \"/config.json\");\n final JsonElement element = parser.parse(reader);\n this.map = JumpyJumpMap.fromJson(element.getAsJsonObject());\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "WoodElement(Level level, int tlX, int tlY, int w, int h, boolean onGround){\n super(level, tlX, tlY, w, h, 0.74f, 0.7f, 0.1f, 0.5f, 0, onGround, false);\n }", "@Override\n public void decode(DataInputStream istream) throws IOException {\n\n this.location = new WotlasLocation();\n\n this.location.setWorldMapID(istream.readInt());\n this.location.setTownMapID(istream.readInt());\n this.location.setBuildingID(istream.readInt());\n this.location.setInteriorMapID(istream.readInt());\n this.location.setRoomID(istream.readInt());\n this.location.setTileMapID(istream.readInt());\n\n int size = istream.readInt();\n this.roomLinkIDs = new int[size];\n this.isOpened = new boolean[size];\n\n for (int i = 0; i < size; i++) {\n this.roomLinkIDs[i] = istream.readInt();\n this.isOpened[i] = istream.readBoolean();\n }\n }", "public MyWorld()\n { \n // Create a new world with 600x550 cells with a cell size of 1x1 pixels.\n super(600, 550, 1);\n // Set the order in which Actors are drawn on the screen in this World\n setPaintOrder ( Counter.class, HighScore.class, Fader.class);\n // Counter\n counter = new Counter (\"Score: \");\n addObject (counter, 50, 30);\n // Initialize the player\n player = new Player ();\n addObject (player, 300, 530); \n platforms = new Platform[10]; \n startingPlatform = new Platform();\n addObject (startingPlatform, 300, 550);\n // Loop through as many Meteors as there are on this level\n for (int i = 0; i < platforms.length; i++)\n {\n // Initialize a new Platform object for each spot in the array\n platforms[i] = new Platform ();\n // Add each platform at a random position anywhere on the X axis and at intervals of 15 on the Y axis\n addObject (platforms[i], Greenfoot.getRandomNumber(600), platformCounter);\n platformCounter = platformCounter - 55;\n }\n }", "private void loadWorld(String path) {\r\n StringBuilder builder = new StringBuilder();\r\n \r\n try {\r\n BufferedReader br = new BufferedReader(new FileReader(path));\r\n String line;\r\n while ((line = br.readLine()) != null) {\r\n builder.append(line + \"\\n\");\r\n }\r\n br.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n String file = builder.toString();\r\n String[] tokens = file.split(\"\\\\s+\");\r\n width = Integer.parseInt(tokens[0]);\r\n height = Integer.parseInt(tokens[1]);\r\n spawnX = Integer.parseInt(tokens[2]);\r\n spawnY = Integer.parseInt(tokens[3]);\r\n winX = Integer.parseInt(tokens[4]);\r\n winY = Integer.parseInt(tokens[5]);\r\n \r\n tiles = new int[width][height];\r\n for (int y = 0;y < height;y++) {\r\n for (int x = 0;x < width;x++) {\r\n tiles[x][y] = Integer.parseInt(tokens[(x + y * width) + 6]);\r\n }\r\n }\r\n \r\n assert (tiles != null);\r\n }", "protected ContainerChunk(String type, String name) {\r\n this(type, name, new ArrayList());\r\n }", "public void loadLevel(int level) {\n if (level == 0) {\n return;\n }\n if (this.levels[level] == null) {\n this.elevatorLevelsUnlocked = Math.max(this.elevatorLevelsUnlocked,\n (int)((level-1)/5.0));\n \n this.levels[level] = new MineLevel.Builder(level).buildLevel(this);\n }\n Iterator<Gateway> gateways = this.levels[level-1].getGateways();\n Gateway nextGateway;\n while (gateways.hasNext()) {\n nextGateway = gateways.next();\n if (nextGateway.getDestinationGateway() == null) {\n nextGateway.setDestinationArea(this.levels[level]);\n nextGateway.setDestinationGateway(this.levels[level].getEntranceGateway());\n }\n }\n }", "private void initializeModel() {\n\t\tmodel = new Model();\n\n\t\t// load up playersave\n\t\ttry {\n\t\t\tFileInputStream save = new FileInputStream(\"playersave.ser\");\n\t\t\tObjectInputStream in = new ObjectInputStream(save);\n\t\t\tmodel = ((Model) in.readObject());\n\t\t\tin.close();\n\t\t\tsave.close();\n\t\t\tSystem.out.println(\"playersave found. Loading file...\");\n\t\t}catch(IOException i) {\n\t\t\t//i.printStackTrace();\n\t\t\tSystem.out.println(\"playersave file not found, starting new game\");\n\t\t}catch(ClassNotFoundException c) {\n\t\t\tSystem.out.println(\"playersave not found\");\n\t\t\tc.printStackTrace();\n\t\t}\n\t\t\n\t\t// load up customlevels\n\t\ttry {\n\t\t\tFileInputStream fileIn = new FileInputStream(\"buildersave.ser\");\n\t\t\tObjectInputStream in = new ObjectInputStream(fileIn);\n\t\t\tmodel.importCustomLevels(((ArrayList<LevelModel>) in.readObject()));\n\t\t\tin.close();\n\t\t\tfileIn.close();\n\t\t\tSystem.out.println(\"Builder ArrayList<LevelModel> found. Loading file...\");\n\t\t}catch(IOException i) {\n\t\t\t//i.printStackTrace();\n\t\t\tSystem.out.println(\"Builder ArrayList<LevelModel> file not found, starting new game\");\n\t\t\treturn;\n\t\t}catch(ClassNotFoundException c) {\n\t\t\tSystem.out.println(\"Builder ArrayList<LevelModel> not found\");\n\t\t\tc.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}", "private void loadLevel(int level) throws SQLException, IOException {\n\t\tString levelText = LorannDAO.chooseLevel(level);\n\t\tthis.onTheLevel = new IElement[this.getWidth()][this.getHeight()];\n\t\tString[] levelArray = levelText.split(\"\\n\");\n\t\t\n\t\tfor(int y = 0; y < height; y++) {\n\t\t\tfor(int x = 0; x < width; x++) {\n\t\t\t\tswitch(levelArray[y].toCharArray()[x]) {\n\t\t\t\t\tcase '3':\n\t\t\t\t\t\tthis.setCharacterPosition(new Point(x, y));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '5':\n\t\t\t\t\t\tthis.purses.add(new Purse(x, y, this));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '8':\n\t\t\t\t\t\tthis.energyBall = new CrystalEnergy(x,y,this);\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '9':\n\t\t\t\t\t\tthis.monsters.add(new Monster_2(this, x, y));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '6':\n\t\t\t\t\t\tthis.door = new Gate(x, y, this);\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '4':\n\t\t\t\t\t\tthis.monsters.add(new Monster_1(this, x, y));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'A':\n\t\t\t\t\t\tthis.monsters.add(new Monster_3(this, x, y));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'B':\n\t\t\t\t\t\tthis.monsters.add(new Monster_4(this, x, y));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault: \n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.getFromFileSymbol(levelArray[y].toCharArray()[x]));\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public ContentLayout(Bounds worldBounds) {\n\t\tbounds = worldBounds;\n\t\t\n\t\tleftSlots = new Slot[2];\n\t\trightSlots = new Slot[2];\n\t\t\n\t\ttopSlots = new Slot[3];\n\t\tbottomSlots = new Slot[3];\n\t\t\n\t\t\n\t\tleftSlots[0] = new Slot(384, Edge.left);\n\t\tleftSlots[1] = new Slot(1152, Edge.left);\n\n\t\trightSlots[0] = new Slot(384, Edge.right);\n\t\trightSlots[1] = new Slot(1152, Edge.right);\n\t\t\n\t\t\n\t\ttopSlots[0] = new Slot(690, Edge.top);\n\t\ttopSlots[1] = new Slot(1536, Edge.top);\n\t\ttopSlots[2] = new Slot(2382, Edge.top);\n\n\t\tbottomSlots[0] = new Slot(690, Edge.bottom);\n\t\tbottomSlots[1] = new Slot(1536, Edge.bottom);\n\t\tbottomSlots[2] = new Slot(2382, Edge.bottom);\n\n\t\t\n\t}", "@Override\n\tpublic void init(String file_name) { deserialize(file_name); }", "public static void makeLevelsForTesting() {\n\t\tBuilder builder = new Builder();\n\t\tbuilder.setLevels(new ArrayList<Level>());\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\tbuilder.addNewLevel(i % 3, 12);\n\t\t\tint[] nothing = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n\t\t\t\t\t0, 0, 0, 0, 0 };\n\t\t\tbuilder.saveLevel(nothing);\n\t\t\tSystem.out.println(builder.getLevels());\n\t\t}\n\t\tbuilder.saveToDisc();\n\t}", "public Builder clearLevelTableList() {\n levelTableList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000040);\n\n return this;\n }", "private void nocompressedUnPack()throws UnpackException,ZipEndException{\n skipByte();\n //get the len\n long LEN = 0x00;\n byte byte0 = getByte();\n byte byte1 = getByte();\n byte byte2 = getByte();\n byte byte3 = getByte();\n LEN |= byte1;\n LEN |= (byte0 << 8);\n LEN &= 0X0000ffff;\n// LEN |= (byte2<<24);\n// LEN |= (byte3<<16);\n int l = 0;\n try{\n for (long num = 0; num < LEN ; num ++){\n outputStoredByte(getByte());\n }\n }catch (IOException e){\n e.printStackTrace();\n }\n }", "public VolcanoWorld() {\n this(DEFAULT_WIDTH, DEFAULT_HEIGHT);\n }", "public OverWorld()\n { \n // Create a new world with 800x600 cells with a cell size of 1x1 pixels.\n super(1024, 600, 1, false);\n Setup();\n }", "public MineLayer(int height, int width, int bombs) {\n\t\tthis.height = height;\n\t\tthis.width = width;\n\t\tgrid = new int[height][width];\n\t\tbomblocate = new int[bombs];\n\t\t\n\t\tPopulate(bombs);\n\t}", "public Chunk() {\n }", "public GameWorld(){\r\n\t\t\r\n\t}", "LevelStacks() {\n stacks = new ArrayList<>();\n }", "private Box(String[] arr) {\r\n name = arr[0];\r\n height = Integer.parseInt(arr[1]);\r\n width = Integer.parseInt(arr[2]);\r\n depth = Integer.parseInt(arr[3]);\r\n weight = Integer.parseInt(arr[4]);\r\n }", "public MapResourcePack(MapResourcePack baseResourcePack, String resourcePackPath, String resourcePackHash) {\n this.baseResourcePack = baseResourcePack;\n this.archive = null;\n\n // Detect the appropriate archive to use\n\n // Server-defined. Take over the options from the server.properties\n if (resourcePackPath != null && resourcePackPath.equalsIgnoreCase(\"server\")) {\n if (Common.IS_TEST_MODE) {\n resourcePackPath = \"vanilla\";\n } else {\n MinecraftServerHandle mcs = MinecraftServerHandle.instance();\n resourcePackPath = mcs.getResourcePack();\n resourcePackHash = mcs.getResourcePackHash();\n }\n }\n\n // Vanilla Minecraft client, without any other resource packs applied\n if (resourcePackPath == null || resourcePackPath.isEmpty() ||\n resourcePackPath.equalsIgnoreCase(\"vanilla\") || resourcePackPath.equalsIgnoreCase(\"default\")\n ) {\n // Vanilla client resource pack.\n // If a base resource pack is already defined, don't use any archive\n // Otherwise, use the client archive\n if (this.baseResourcePack == null) {\n this.archive = new MapResourcePackClientArchive();\n } else {\n this.archive = null;\n }\n return;\n }\n\n // Auto-detect the right way to use it\n this.archive = new MapResourcePackAutoArchive(resourcePackPath, resourcePackHash);\n }", "public void levelBuilder() {\r\n\t\t//round 1\r\n\t\tEnemy[] round1Enemy = new Enemy[1];\r\n\t\tround1Enemy[0] = new Enemy();\r\n\t\t\tround1Enemy[0].type = 0;\r\n\t\t\tround1Enemy[0].imag = (MyFrame.refFrame).client.getOtherPlayer(0).getCardLeader().getCardImage();\r\n\t\t\tround1Enemy[0].position = new vec2(157, 0); \r\n\t\t\tround1Enemy[0].size = new vec2(185, 201); //X: 0~500 Y:250 lower\r\n\t\t\tround1Enemy[0].blood = (MyFrame.refFrame).client.getOtherPlayer(0).getHp();\r\n\t\t\tround1Enemy[0].currentBlood = (MyFrame.refFrame).client.getOtherPlayer(0).getHp();\r\n\t\t\tround1Enemy[0].attackCD = 0;\r\n\t\t\tround1Enemy[0].attack = 0;\r\n\t\t\tround1Enemy[0].initialCD = 0;\r\n\t\t\tround1Enemy[0].defense = 0;\r\n\t\t\t\r\n\t\tround[0].addEnemy(round1Enemy);\r\n\t}", "public LCMultiblockPacket() {\n\t}" ]
[ "0.62333786", "0.6165145", "0.5981104", "0.5678708", "0.5661932", "0.53952414", "0.5192638", "0.51655895", "0.51573956", "0.5062398", "0.5029288", "0.5009186", "0.49393266", "0.49262077", "0.48363918", "0.4830303", "0.48262265", "0.4817347", "0.48112062", "0.4773722", "0.4761199", "0.4748591", "0.47423092", "0.47257784", "0.471676", "0.46887484", "0.4673025", "0.4673025", "0.4673025", "0.46666756", "0.4666381", "0.46523985", "0.46521193", "0.46342203", "0.46124184", "0.46112868", "0.4601103", "0.4599405", "0.4590814", "0.4583034", "0.45808357", "0.45688054", "0.4559442", "0.45553687", "0.4538696", "0.4537811", "0.4532307", "0.4532307", "0.45273504", "0.45249808", "0.4511973", "0.4503075", "0.44867313", "0.4484507", "0.44771338", "0.44740564", "0.44688275", "0.44635838", "0.4460924", "0.44603074", "0.44579157", "0.44575274", "0.44562057", "0.44508472", "0.44439793", "0.44385353", "0.4423264", "0.44208163", "0.44150558", "0.44145194", "0.43987417", "0.43984333", "0.43905225", "0.43904075", "0.43883598", "0.43866158", "0.43860635", "0.4383562", "0.43786812", "0.43590665", "0.43540594", "0.43540043", "0.43527424", "0.43510103", "0.4348779", "0.43472314", "0.43466523", "0.43460503", "0.43411896", "0.43386325", "0.43332547", "0.4330464", "0.43293375", "0.43213344", "0.43170878", "0.43167546", "0.43119127", "0.4311235", "0.4310711", "0.43092334" ]
0.6296022
0
Constructs a LevelPack object from the given JSON, but does not serialize the bytes representing the Worlds. Useful for constructing a list of LevelPack objects.
public static LevelPack fromJsonPartial(String json) { LevelPack partial = Serializer.deserializePartialLevelPack(json); if (partial == null) return partial; standardize(partial); // Return the partial LevelPack. return partial; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static LevelPack fromJson(String json) {\n\t\treturn Serializer.deserializeLevelPack(json);\n\t}", "public static LevelPack fromFile(String filename) {\n\t\tString json = Serializer.readStringFromFile(filename);\n\t\tLevelPack lp = fromJson(json);\n\t\tstandardize(lp);\n\t\treturn lp;\n\t}", "public static LevelPack fromFilePartial(String filename) {\n\n\t\t// Read everything from the LevelPack, but don't bother deserializing\n\t\t// the Worlds.\n\t\tString json = Serializer.readStringFromFile(filename);\n\t\treturn fromJsonPartial(json);\n\t}", "public Dungeon load() {\n int width = json.getInt(\"width\");\n int height = json.getInt(\"height\");\n\n Dungeon dungeon = new Dungeon(width, height);\n\n JSONArray jsonEntities = json.getJSONArray(\"entities\");\n Map<String, List<Entity>> entitiesMap = loadEntities(dungeon, jsonEntities);\n\n // Only try and greate a goal condition if it is specified in json.\n if (json.has(\"goal-condition\")) {\n JSONObject goals = json.getJSONObject(\"goal-condition\");\n Goal mainGoal = loadGoals(entitiesMap, dungeon, goals);\n dungeon.setMainGoal(mainGoal);\n }\n\n return dungeon;\n }", "public MinecraftJson() {\n }", "public static Level readJson(String jsonName) {\n\n InputStream levelInputStream;\n try {\n levelInputStream = new FileInputStream(jsonName);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n return null;\n }\n JsonReader levelReader = Json.createReader(levelInputStream);\n\n JsonObject fileObject = levelReader.readObject();\n JsonObject levelInfo = fileObject.getJsonObject(\"Level Info\");\n JsonObject tiles = fileObject.getJsonObject(\"Tiles\");\n JsonArray rows = (JsonArray) tiles.get(\"rows\");\n\n int rowCount = levelInfo.getInt(\"rowCount\");\n int colCount = levelInfo.getInt(\"columnCount\");\n JsonArray enemies = (JsonArray) levelInfo.get(\"Enemies\");\n Position playerStart = new Position(levelInfo.getInt(\"playerX\"), levelInfo.getInt(\"playerY\"));\n\n AbstractTile[][] tileArray = new AbstractTile[colCount][rowCount];\n\n Iterator<JsonValue> rowsIterator = rows.iterator();\n\n while (rowsIterator.hasNext()) {\n // Convert from jsonValue to jsonObject, then get the array of tiles\n JsonObject currentRowObject = (JsonObject) rowsIterator.next();\n JsonArray currentRow = (JsonArray) currentRowObject.get(\"objects\");\n\n // Iterate through each row of tiles\n Iterator<JsonValue> currentRowIterator = currentRow.iterator();\n while (currentRowIterator.hasNext()) {\n JsonObject currentTile = (JsonObject) currentRowIterator.next();\n JsonValue type = currentTile.get(\"Tile Type\");\n JsonValue row = currentTile.get(\"row\");\n JsonValue column = currentTile.get(\"column\");\n JsonValue rotated = currentTile.get(\"Rotation\");\n boolean isRotated = false;\n if (rotated.toString().equals(\"\\\"Horizontal\\\"\")) {\n isRotated = false;\n } else if (rotated.toString().equals(\"\\\"Vertical\\\"\")) {\n isRotated = true;\n }\n String tileName = type.toString();\n int tileRow = stringToInt(row.toString());\n int tileColumn = stringToInt(column.toString());\n AbstractTile tileObject;\n if (tileName.equals(\"\\\"Key\\\"\")) {\n JsonValue colour = currentTile.get(\"Colour\");\n String tileColour = colour.toString();\n tileColour = tileColour.substring(1, tileColour.length() - 1);\n tileObject = new Key(tileColour);\n } else if (tileName.equals(\"\\\"ExitPortal\\\"\")) {\n tileObject = new ExitPortal();\n } else if (tileName.equals(\"\\\"ExitLock\\\"\")) {\n tileObject = new ExitLock(isRotated);\n } else if (tileName.equals(\"\\\"InfoField\\\"\")) {\n JsonValue infoText = currentTile.get(\"InfoText\");\n String tileInfoText = infoText.toString();\n tileObject = new InfoField(tileInfoText);\n } else if (tileName.equals(\"\\\"LockedDoor\\\"\")) {\n JsonValue colour = currentTile.get(\"Colour\");\n String tileColour = colour.toString();\n tileColour = tileColour.substring(1, tileColour.length() - 1);\n tileObject = new LockedDoor(isRotated, tileColour);\n } else if (tileName.equals(\"\\\"Treasure\\\"\")) {\n tileObject = new Treasure();\n } else if (tileName.equals(\"\\\"DeathTile\\\"\")) {\n tileObject = new DeathTile();\n } else if (tileName.equals(\"\\\"Wall\\\"\")) {\n tileObject = new Wall();\n // Free tile\n } else {\n tileObject = new FreeTile();\n }\n tileArray[tileColumn][tileRow] = tileObject;\n }\n }\n\n ArrayList<AbstractActor> enemiesArrayList = new ArrayList<AbstractActor>();\n\n Iterator<JsonValue> enemiesIterator = enemies.iterator();\n JsonObject currentEnemyObject;\n\n while (enemiesIterator.hasNext()) {\n AbstractActor currentEnemy;\n currentEnemyObject = (JsonObject) enemiesIterator.next();\n int xstartPos = currentEnemyObject.getInt(\"startingX\");\n int ystartPos = currentEnemyObject.getInt(\"startingY\");\n JsonValue aiType = currentEnemyObject.get(\"AI Type\");\n int tickSpeed = currentEnemyObject.getInt(\"Tick Speed\");\n JsonValue movement = currentEnemyObject.get(\"Movement String\");\n\n Position aiStartPos = new Position(xstartPos, ystartPos);\n\n String aiTypeString = aiType.toString();\n String movementString = movement.toString();\n aiTypeString = aiTypeString.substring(1, aiTypeString.length() - 1);\n movementString = movementString.substring(1, movementString.length() - 1);\n\n if (aiTypeString.equals(\"PatternEnemy\")) {\n currentEnemy = new PatternEnemy(aiStartPos, tickSpeed, movementString);\n enemiesArrayList.add(currentEnemy);\n } else if (aiTypeString.equals(\"StalkerEnemy\")) {\n currentEnemy = new StalkerEnemy(aiStartPos, tickSpeed);\n enemiesArrayList.add(currentEnemy);\n }\n\n }\n\n Player returnPlayer = new Player(playerStart);\n Set<AbstractActor> returnEnemies = new HashSet<AbstractActor>();\n returnEnemies.addAll(enemiesArrayList);\n int maxTime = levelInfo.getInt(\"timeLimit\");\n Level returnLevel = new Level(maxTime, returnPlayer, tileArray, returnEnemies);\n return returnLevel;\n\n }", "public JSONLoader() {}", "public abstract void fromJson(JSONObject jsonObject);", "@SuppressWarnings(\"unchecked\")\n\tpublic static<T> T createObjectFromJSON(final JSONObject json) throws JSONException {\n\t\tif(json.has(\"type\")) {\n\t\t\treturn (T) Helper.createItemFromJSON(json);\n\t\t} else if(json.has(\"triple_pattern\")) {\n\t\t\treturn (T) Helper.createTriplePatternFromJSON(json);\n\t\t} else if(json.has(\"histogram\")) {\n\t\t\treturn (T) Helper.createVarBucketFromJSON(json);\n\t\t} else {\n\t\t\tSystem.err.println(\"lupos.distributed.operator.format.Helper.createObjectFromJSON(...): Unknown type stored in JSON object, returning null!\");\n\t\t\treturn null;\n\t\t}\n\t}", "public World(Game game, int levelPack, int levelNumber) {\n\t\tdiamondBlocks = new ArrayList<Diamond>();\n\t\tsilverBlocks = new ArrayList<Silver>();\n\t\tgoldBlocks = new ArrayList<Gold>();\n\t\tregTiles = new ArrayList<RegTile>();\n\t\tupSpikes = new ArrayList<Spike>();\n\t\tdownSpikes = new ArrayList<Spike>();\n\t\trightSpikes = new ArrayList<Spike>();\n\t\tleftSpikes = new ArrayList<Spike>();\n\t\tcheckpoints = new ArrayList<Checkpoint>();\n\t\teflags = new ArrayList<EndingFlag>();\n\t\t\n\t\t//init player missing\n\t\t\n\t\tgenerateLevel(game, levelPack, levelNumber);\n\t}", "public LevelPack(String name, User author, World... worlds) {\n\t\tthis.name = name;\n\n\t\tthis.transitionScript = new UserScript(\"onTransition\",\n\t\t\t\t\"--This script will be run to return an LuaInt specifying the next world to proceed to, given the current world state.\",\n\t\t\t\tSecurityLevel.AUTHOR);\n\n\t\tif (worlds.length == 0)\n\t\t\tworlds = new World[] { new World() };\n\t\tthis.levels = new WorldList();\n\t\tthis.levels.addAll(Arrays.asList(worlds));\n\t\tthis.levelIndex = 0;\n\t\tthis.levelCount = worlds.length;\n\t\tthis.levelEmblems = new ImageList();\n\t\tthis.levelTitles = new ArrayList<String>();\n\t\tthis.levelDescriptions = new ArrayList<String>();\n\n\t\tthis.authors = new ArrayList<>();\n\t\tthis.originalAuthor = author;\n\t\tthis.mainEmblem = new ImageList();\n\t\tthis.mainEmblem.add((BufferedImage) UIBuilder.getImage(DEFAULT_MAIN_EMBLEM_FILE));\n\t\tif (author != null)\n\t\t\taddAuthor(author);\n\t\tcreationDate = LocalDateTime.now();\n\t\tpublishStart = LocalDateTime.now();\n\t\tpublishEnd = publishStart.plusYears(1);\n\t\taudienceUsers = new ArrayList<>();\n\t\taudienceGroups = new ArrayList<>();\n\t\tfeedbackModel = FeedbackModel.RATING_AND_COMMENTS;\n\n\t\tcurrentPlayer = null;\n\t\tplayerVisible = new HashSet<>();\n\t\tplayerVisible.add(0);\n\t}", "public static Game createGameFromJSON(String json) {\n JSONObject gameJSONObject = new JSONObject(json);\n List<String> agents = parseAgents(gameJSONObject);\n String[][] actions = parseActions(gameJSONObject);\n int[][][] values = parseValues(gameJSONObject);\n\n return new Game(agents, actions, values);\n }", "private static void standardize(LevelPack pack) {\n\t\t// TODO: kill this once we have the LevelPacks stored at a standardized\n\t\t// state.\n\n\t\t// If level header info was not stored originally, check to make sure\n\t\t// there are not nulls after the deserialization.\n\t\tif (pack.levels == null)\n\t\t\tpack.levels = new WorldList();\n\t\tif (pack.levelTitles == null)\n\t\t\tpack.levelTitles = new ArrayList<String>();\n\t\tif (pack.levelDescriptions == null)\n\t\t\tpack.levelDescriptions = new ArrayList<String>();\n\t\tif (pack.levelEmblems == null)\n\t\t\tpack.levelEmblems = new ImageList();\n\n\t\t// If the level header stuff wasn't originally stored, it may be\n\t\t// necessary to populate header info with dummy data. There will always\n\t\t// be at least one level title/description/emblem, even if the levels\n\t\t// themselves don't exist.\n\t\tpack.levelCount = Math.max(1, Math.max(pack.levels.size(),\n\t\t\t\tMath.max(pack.levelTitles.size(), Math.max(pack.levelDescriptions.size(), pack.levelEmblems.size()))));\n\t\twhile (pack.levelTitles.size() < pack.levelCount)\n\t\t\tpack.levelTitles.add(\"Unnamed level.\");\n\t\twhile (pack.levelDescriptions.size() < pack.levelCount)\n\t\t\tpack.levelDescriptions.add(\"No description.\");\n\t\twhile (pack.levelEmblems.size() < pack.levelCount)\n\t\t\tpack.levelEmblems.add((BufferedImage) UIBuilder.getImage(\"images/ice_cave.jpg\"));\n\n\t\t// The lock is something new added, but it defaults to false anyway.\n\n\t}", "public void fromJSON(String json) throws JSONException;", "@JsonIgnore\n\tpublic static WFSLayerPermissionsStore setJSON(String json)\n\t\t\tthrows IOException {\n\t\treturn TransportService.mapper.readValue(json,\n\t\t\t\tWFSLayerPermissionsStore.class);\n\t}", "Gist deserializeGistFromJson(String json);", "private void loadWorld() {\n try {\n world = jsonReader.read();\n System.out.println(\"Loaded world from \" + JSON_STORE);\n } catch (IOException | InvalidDataException e) {\n System.out.println(\"Unable to read from file: \" + JSON_STORE);\n }\n }", "@Nonnull\n @SuppressWarnings(\"unused\")\n public static StochasticSamplingSubnetLayer fromJson(@Nonnull final JsonObject json, Map<CharSequence, byte[]> rs) {\n return new StochasticSamplingSubnetLayer(json, rs);\n }", "protected CategoryModel createFromJSON(JSONObject json, boolean useServer) throws JSONException {\n\t\treturn CategoryModel.fromJSON(json, useServer);\n\t}", "@Deprecated\n \tpublic void loadPipeline(JSONObject json) {\n \t\tmain.remove(workspace);\n \t\tworkspace = new PipelineWorkspace(getPipelineFromJson(json));\n \t\tworkspace.setHeight(\"100%\");\n \t\tworkspace.setWidth(\"100%\");\n \t\tmain.insert(workspace, 0);\n \t}", "public Player(JsonObject jsonPlayer) {\n this.nickname = jsonPlayer.get(\"nickname\").getAsString();\n this.nRedAmmo = jsonPlayer.get(\"nRedAmmo\").getAsInt();\n this.nBlueAmmo = jsonPlayer.get(\"nBlueAmmo\").getAsInt();\n this.nYellowAmmo = jsonPlayer.get(\"nYellowAmmo\").getAsInt();\n this.points = jsonPlayer.get(\"points\").getAsInt();\n\n this.weaponList = new ArrayList<>();\n JsonArray jsonWeaponList = jsonPlayer.get(\"weaponList\").getAsJsonArray();\n for (int i = 0; i < jsonWeaponList.size(); i++) {\n Weapon w = new Weapon(jsonWeaponList.get(i).getAsJsonObject());\n this.weaponList.add(w);\n }\n\n this.powerUpList = new ArrayList<>();\n JsonArray jsonPowerUpList = jsonPlayer.get(\"powerUpList\").getAsJsonArray();\n for (int i = 0; i < jsonPowerUpList.size(); i++) {\n PowerUp p = new PowerUp(jsonPowerUpList.get(i).getAsJsonObject());\n this.powerUpList.add(p);\n }\n\n this.damages = new ArrayList<>();\n JsonArray jsonDamages = jsonPlayer.get(\"damages\").getAsJsonArray();\n for (int i = 0; i < jsonDamages.size(); i++) {\n String s = jsonDamages.get(i).getAsString();\n this.damages.add(s);\n }\n\n this.marks = new ArrayList<>();\n JsonArray jsonMarks = jsonPlayer.get(\"marks\").getAsJsonArray();\n for (int i = 0; i < jsonMarks.size(); i++) {\n String s = jsonMarks.get(i).getAsString();\n this.marks.add(s);\n }\n\n this.nDeaths = jsonPlayer.get(\"nDeaths\").getAsInt();\n this.xPosition = jsonPlayer.get(\"xPosition\").getAsInt();\n this.yPosition = jsonPlayer.get(\"yPosition\").getAsInt();\n this.isDead = jsonPlayer.get(\"isDead\").getAsBoolean();\n this.nMoves = jsonPlayer.get(\"nMoves\").getAsInt();\n this.nMovesBeforeGrabbing = jsonPlayer.get(\"nMovesBeforeGrabbing\").getAsInt();\n this.nMovesBeforeShooting = jsonPlayer.get(\"nMovesBeforeShooting\").getAsInt();\n this.playerStatus = new PlayerStatus(jsonPlayer.get(\"playerStatus\").getAsJsonObject());\n }", "public Gateway(String json) throws IllegalArgumentException {\n this();\n genClient.initJsonObject(json);\n }", "protected abstract JSONObject build();", "public void loadPipeline(org.iplant.pipeline.client.json.autobeans.Pipeline json) {\n main.remove(workspace);\n workspace = new PipelineWorkspace(buildPipeline(json));\n workspace.setHeight(\"100%\");\n workspace.setWidth(\"100%\");\n main.insert(workspace, 0);\n }", "@Test\n public void testWithoutNewWarnings() {\n String request = \"{\\\"canRunOnFailed\\\":false,\\\"defaultEncoding\\\":\\\"\\\",\\\"failedTotalAll\\\":\\\"\\\",\\\"failedTotalHigh\\\":\\\"\\\",\\\"failedTotalLow\\\":\\\"\\\",\\\"failedTotalNormal\\\":\\\"\\\",\\\"healthy\\\":\\\"0\\\",\\\"pattern\\\":\\\"\\\",\\\"shouldDetectModules\\\":false,\\\"thresholdLimit\\\":\\\"low\\\",\\\"unHealthy\\\":\\\"50\\\",\\\"unstableTotalAll\\\":\\\"\\\",\\\"unstableTotalHigh\\\":\\\"\\\",\\\"unstableTotalLow\\\":\\\"\\\",\\\"unstableTotalNormal\\\":\\\"\\\"}\";\n\n JSONObject input = JSONObject.fromObject(request);\n JSONObject output = PluginDescriptor.convertHierarchicalFormData(input);\n\n assertEquals(\"Wrong JSON \", input, output);\n }", "public void gatherLevelJson(AssetDirectory directory, int world) {\r\n\t\tlevelAssets = directory.getEntry( String.format(\"level%d\", level), JsonValue.class);\r\n\t}", "public native Object parse( Object json, String texturePath );", "void fromJson(JsonStaxParser parser) throws SyntaxException, IOException;", "public ChatMember(JsonObject json) {\n\n }", "public static GraphSchema fromJson(JsonNode jsonTree) {\n\t\tJsonNode nodes = jsonTree.get(\"nodes\");\n\t\tJsonNode edges = jsonTree.get(\"edges\");\n\n\t\tif (!nodes.isArray() || !edges.isArray()) {\n\t\t\tthrow new IllegalArgumentException(\"Illlegal schema expecting array of nodes and edges\");\n\t\t}\n\n\t\treturn new GraphSchema(mapSchemaNodes(nodes), mapSchemaEdges(edges), new ClosestContextStrategy());\n\t}", "public JSONLoader( LoadingManager manager ) {}", "@Override\n public PubSaveData buildPubSaveDataByJson(String json) {\n return null;\n }", "T fromJson(Object source);", "public static Packet getPacketFromJson(String json) {\n JsonNode node=null;\n try {\n node=mapper.readTree(json);\n String method=node.get(METHOD_FIELD).asText();\n JsonNode data=node.get(DATA_FIELD);\n Object object=null;\n if(!data.toString().isEmpty()) {\n object=getObjectFromJson(data);\n }\n return new Packet(method, object);\n }\n catch(JsonProcessingException e) {\n e.printStackTrace();\n }\n catch(Exception e) {\n return null;\n }\n return null;\n }", "public final native JSONLoaderObject parse(JavaScriptObject json,String texturePath)/*-{\r\n\treturn this.parse(json,texturePath);\r\n\t}-*/;", "public static AvgPoolingLayer fromJson(@Nonnull final JsonObject json, Map<CharSequence, byte[]> rs) {\n return new AvgPoolingLayer(json,\n JsonUtil.getIntArray(json.getAsJsonArray(\"heapCopy\")));\n }", "public static List<ExtractorLayerRequest> parseJson (String jsonData) throws JSONException,\n NoSuchAuthorityCodeException, FactoryException, MalformedURLException {\n JSONObject jsonObject = parseStringToJSon(jsonData);\n JSONArray emails = jsonObject.getJSONArray (EMAILS_KEY);\n JSONArray jsonLayers = jsonObject.getJSONArray (LAYERS_KEY);\n JSONObject globalProps = jsonObject.getJSONObject (GLOBAL_PROPS_KEY);\n\n ArrayList<ExtractorLayerRequest> layers = new ArrayList<ExtractorLayerRequest> ();\n for (int i = 0; i < jsonLayers.length (); i++) {\n ExtractorLayerRequest layer = new ExtractorLayerRequest (jsonLayers.getJSONObject (i), globalProps, emails);\n layers.add (layer);\n }\n return layers;\n }", "public static Sandwich parseSandwichJson(String json) {\n\n try {\n JSONObject jsonObj = new JSONObject(json);\n JSONObject name = jsonObj.getJSONObject(\"name\");\n mainName = name.getString(\"mainName\");\n alsoKnownAs = new ArrayList<>(addToList(name.getJSONArray(\"alsoKnownAs\")));\n // https://stackoverflow.com/questions/13790726/the-difference-between-getstring-and-optstring-in-json/13790789#13790789\n placeOfOrigin = jsonObj.optString(\"placeOfOrigin\");\n description = jsonObj.optString(\"description\");\n image = jsonObj.optString(\"image\");\n ingredients = new ArrayList<>(addToList(jsonObj.getJSONArray(\"ingredients\")));\n\n } catch (JSONException e) {\n Log.e(TAG, e.getMessage());\n\n }\n return new Sandwich(mainName, alsoKnownAs, placeOfOrigin, description, image, ingredients);\n }", "public Builder(final JsonObject jsonObject) {\n final JsonObject prototype = Validator.of(jsonObject).get();\n final JsonArray jsonNames = (JsonArray) prototype.get(\"names\");\n if (jsonNames != null) {\n names.addAll(jsonNames.stream().map(Object::toString).collect(Collectors.toList()));\n }\n final long page = getLong(prototype, \"page\");\n if (page >= 0) {\n this.page = (int) page;\n } else {\n throw new IllegalArgumentException(WRONG_PAGE_VALUE);\n }\n final long total = getLong(prototype, \"total\");\n if (total >= 0) {\n this.total = (int) total;\n } else {\n throw new IllegalArgumentException(WRONG_TOTAL_VALUE);\n }\n }", "public static Message fromJSON(JSONArray json){\n\t\t\n\t\tString message = (String) json.get(0);\n\t\tlong creationTime = (long) json.get(1);\n\t\tlong visibleTime = (long) json.get(2);\n\t\tlong id = (long) json.get(3);\n\t\t\n\t\treturn new Message(message, visibleTime, creationTime, id);\n\t}", "List<Gist> deserializeGistsFromJson(String json);", "private static FluidMatch deserialize(JsonObject json) {\n String fluidName = GsonHelper.getAsString(json, \"name\");\n Fluid fluid = ForgeRegistries.FLUIDS.getValue(new ResourceLocation(fluidName));\n if (fluid == null || fluid == Fluids.EMPTY) {\n throw new JsonSyntaxException(\"Unknown fluid '\" + fluidName + \"'\");\n }\n int amount = GsonHelper.getAsInt(json, \"amount\");\n return new FluidMatch(fluid, amount);\n }", "public void createLevel(){\n for(LevelController rc: rooms ) {\n rc.loadContent();\n rc.setScreenListener(listener);\n rc.setCanvas(canvas);\n }\n }", "public static Sandwich parseSandwichJson(String json) throws JSONException {\n final String NAME = \"name\";\n final String IMAGE = \"image\";\n final String MAINNAME = \"mainName\";\n final String ORIGIN = \"placeOfOrigin\";\n final String ALIASES = \"alsoKnownAs\";\n final String DESCRIPTION = \"description\";\n final String INGREDIENTS = \"ingredients\";\n\n /* Parsing JSON Object into separate variables */\n JSONObject sandwichJson = new JSONObject(json);\n JSONObject nameJson = sandwichJson.getJSONObject(NAME);\n String mainName = nameJson.getString(MAINNAME);\n JSONArray alsoKnownAs = nameJson.getJSONArray(ALIASES);\n List<String> alsoKnownAsList = jsonArraytoList(alsoKnownAs);\n String origin = sandwichJson.getString(ORIGIN);\n String description = sandwichJson.getString(DESCRIPTION);\n String image = sandwichJson.getString(IMAGE);\n JSONArray ingredients = sandwichJson.getJSONArray(INGREDIENTS);\n List<String> ingredientsList = jsonArraytoList(ingredients);\n\n return new Sandwich(mainName, alsoKnownAsList, origin, description, image, ingredientsList);\n }", "public final static Literal createLiteralFromJSON(final JSONObject literalJson) throws JSONException {\n\t\treturn LazyLiteral.getLiteral(literalJson.getString(\"value\"), true);\n\t}", "public static ResponseWrapper fromJson(String json)\n\t{ \n\t\tResponseWrapper response = new ResponseWrapper();\n\t\tresponse.fromJsonCore(json, \"response\", (type) -> type.getResponseContentType()); \n\t\treturn response;\n\t}", "private void initialiseLevelPackages() {\n\t\tlevelPackages = new ArrayList<LevelPackage>();\n\n\t\tFileHandle handle = Gdx.files.internal(BackendHelper.getAssetDirPath()\n\t\t\t\t+ \"json/levels\");\n\t\tFileHandle[] possiblePackageDirs = handle.list();\n\t\tfor (FileHandle dir : possiblePackageDirs) {\n\t\t\tif (!dir.isDirectory()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tString name = dir.name();\n\t\t\tif (name.length() != 2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (name.matches(\"[0-9][0-9]\")) {\n\t\t\t\ttry {\n\t\t\t\t\tif (dir.child(\"package.json\").exists()) {\n\t\t\t\t\t\tlevelPackages.add(this.loadPackage(Integer\n\t\t\t\t\t\t\t\t.parseInt(name)));\n\t\t\t\t\t}\n\t\t\t\t} catch (GdxRuntimeException ex) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Ignore. Just in case, libGdx' documentation of is telling\n\t\t\t\t\t * the truth (which it isn't) and an exception is thrown in\n\t\t\t\t\t * dir.child, because it is internal an non-existent\n\t\t\t\t\t */\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tCollections.sort(levelPackages, new Comparator<LevelPackage>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(LevelPackage o1, LevelPackage o2) {\n\t\t\t\treturn (int) Math.signum(o1.getLevelPackageId()\n\t\t\t\t\t\t- o2.getLevelPackageId());\n\t\t\t}\n\t\t});\n\t}", "public static MultiArrayDimension fromJsonObject(JsonObject jsonObject) {\n\t\t// check the fields\n\t\tjava.lang.String label = jsonObject\n\t\t\t\t.containsKey(MultiArrayDimension.FIELD_LABEL) ? jsonObject\n\t\t\t\t.getString(MultiArrayDimension.FIELD_LABEL) : \"\";\n\t\tlong size64 = jsonObject.containsKey(MultiArrayDimension.FIELD_SIZE) ? jsonObject\n\t\t\t\t.getJsonNumber(MultiArrayDimension.FIELD_SIZE).longValue() : 0L;\n\t\tlong stride64 = jsonObject\n\t\t\t\t.containsKey(MultiArrayDimension.FIELD_STRIDE) ? jsonObject\n\t\t\t\t.getJsonNumber(MultiArrayDimension.FIELD_STRIDE).longValue()\n\t\t\t\t: 0L;\n\n\t\t// convert to a 32-bit number\n\t\tint size32 = Primitive.toUInt32(size64);\n\t\tint stride32 = Primitive.toUInt32(stride64);\n\t\treturn new MultiArrayDimension(label, size32, stride32);\n\t}", "public HandlebarsKnotOptions(JsonObject json) {\n init();\n HandlebarsKnotOptionsConverter.fromJson(json, this);\n }", "public Level(int levelNumber)\r\n\t{\t\r\n\t\tlevelNum = levelNumber;\r\n\t\tlevelFileName = \"level\"+levelNum+\".txt\";\r\n\t\tlistFileName = \"level\"+levelNum+\"items.txt\";\r\n\t\tmakeCommonObjects();\r\n\t\tgrid = new Grid(levelFileName);\r\n\t\tGridSquare startSquare = grid.startLocation();\r\n\t\tplayer = new Player((int)startSquare.rect.x,(int)startSquare.platform.getBoundingRectangle().y+3);\r\n\t\tAndroidGame.camera.position.x = player.getX();\r\n\t\tAndroidGame.camera.position.y = player.getY();\r\n\t\tbackground = new Background(levelNumber, grid);\r\n\t\tdoorBubble = new OffScreenBubble(grid.getFinish());\r\n\t\tif(grid.getKey()!=null)\r\n\t\t{\r\n\t\t\thasKey = true;\r\n\t\t\tkeyBubble = new OffScreenBubble(grid.getKey());\r\n\t\t}\r\n\t\tplayer.reset(grid);\r\n\t}", "private static FluidIngredient deserializeObject(JsonObject json) {\n if (json.entrySet().isEmpty()) {\n return EMPTY;\n }\n\n // fluid match\n if (json.has(\"name\")) {\n // don't set both, obviously an error\n if (json.has(\"tag\")) {\n throw new JsonSyntaxException(\"An ingredient entry is either a tag or an fluid, not both\");\n }\n\n // parse a fluid\n return FluidMatch.deserialize(json);\n }\n\n // tag match\n if (json.has(\"tag\")) {\n return TagMatch.deserialize(json);\n }\n\n throw new JsonSyntaxException(\"An ingredient entry needs either a tag or an fluid\");\n }", "public abstract World create(World world);", "public static TemplateDataSource fromJSON(JSONObject jsonObj) throws IllegalArgumentException {\n try {\n if (!jsonObj.optString(\"_type\", \"TemplateDataSource\").equals(\"TemplateDataSource\")) {\n throw new IllegalArgumentException(\"jsonObj does not represent a TemplateDataSource.\");\n }\n \n TemplateDataSource output = new TemplateDataSource();\n \n @SuppressWarnings(\"unchecked\")\n Set<String> keySet = jsonObj.keySet();\n keySet.stream()\n .filter( key -> !key.equals(\"_type\") && !key.equals(\"parentTemplate\") )\n .forEach( key -> {\n try {\n output.put(key, Path.fromJSON(jsonObj.get(key)));\n } catch (IllegalArgumentException | JSONException e) {\n // silently ignore exceptions, but log the exception\n e.printStackTrace();\n }\n });\n return output;\n } catch (JSONException e) {\n throw new IllegalArgumentException(\"Could not parse JSON as a TemplateDataSource.\", e);\n }\n }", "public static final void initLevel()\n {\n current = new JARLevel();\n\n //assign blocks, enemies, the player and all items\n current.iWalls = new JARWall[]\n {\n new JARWall( 30 + 256, current.iLevelBoundY - 310 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 384, current.iLevelBoundY - 320 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 512, current.iLevelBoundY - 300 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 640, current.iLevelBoundY - 290 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 768, current.iLevelBoundY - 280 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 896, current.iLevelBoundY - 270 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1152, current.iLevelBoundY - 260 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1408, current.iLevelBoundY - 250 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 - 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 + 0, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 + 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 - 2 * 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 - 3 * 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 - 4 * 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n\n new JARWall( 30 + 1920, current.iLevelBoundY - 230 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 2100, current.iLevelBoundY - 230 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n\n new JARWall( 66, current.iLevelBoundY - 324, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n\n new JARWall( 0, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 128, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 256, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 384, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 512, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 640, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 768, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 896, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1024, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1152, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1280, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1408, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1536, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1664, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1792, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1920, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 2048, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 2176, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n };\n current.iEnemies = new JARPlayer[]\n {\n/*\n new JARPlayer( 500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_WEAK ),\n new JARPlayer( 1000, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_WEAK ),\n new JARPlayer( 1500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_WEAK ),\n new JARPlayer( 2000, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_WEAK ),\n new JARPlayer( 2500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG ),\n new JARPlayer( 3000, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG ),\n new JARPlayer( 3500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG ),\n new JARPlayer( 4000, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG ),\n new JARPlayer( 4500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG )\n*/\n };\n\n current.iPlayer = new JARPlayer( 0, GameObjectType.EPlayer, JARPlayerTemplate.USER );\n\n current.iItems = new JARItem[]\n {\n //new JARItem( 50, 700, JARItemType.ITEM_TYPE_COIN ),\n //new JARItem( 150, 700, JARItemType.ITEM_TYPE_COIN ),\n //new JARItem( 250, 700, JARItemType.ITEM_TYPE_COIN ),\n new JARItem( 550, 700, JARItemType.ITEM_TYPE_CHERRY ),\n new JARItem( 650, 700, JARItemType.ITEM_TYPE_CHERRY ),\n new JARItem( 750, 700, JARItemType.ITEM_TYPE_CHERRY ),\n new JARItem( 1050, 700, JARItemType.ITEM_TYPE_APPLE ),\n new JARItem( 1150, 700, JARItemType.ITEM_TYPE_APPLE ),\n new JARItem( 1250, 700, JARItemType.ITEM_TYPE_APPLE ),\n new JARItem( 1550, 700, JARItemType.ITEM_TYPE_ORANGE ),\n new JARItem( 1650, 700, JARItemType.ITEM_TYPE_ORANGE ),\n new JARItem( 1750, 700, JARItemType.ITEM_TYPE_ORANGE ),\n new JARItem( 2050, 700, JARItemType.ITEM_TYPE_PEAR ),\n new JARItem( 2150, 700, JARItemType.ITEM_TYPE_PEAR ),\n new JARItem( 2250, 700, JARItemType.ITEM_TYPE_PEAR ),\n new JARItem( 2550, 700, JARItemType.ITEM_TYPE_STRAWBERRY ),\n new JARItem( 2650, 700, JARItemType.ITEM_TYPE_STRAWBERRY ),\n new JARItem( 2750, 700, JARItemType.ITEM_TYPE_STRAWBERRY ),\n };\n }", "public Info(String json) {\n super(json);\n }", "public void deserialize(JsonObject src);", "public static SenseiRequest fromJSON(JSONObject json)\n throws Exception\n {\n return fromJSON(json, null);\n }", "public static JSONBuilder newInstance(){\n return new JSONBuilder();\n }", "public LevelFromFile() {\n this.velocityList = new ArrayList<Velocity>();\n this.blockList = new ArrayList<Block>();\n this.levelName = null;\n numberOfBalls = null;\n paddleSpeed = null;\n paddleWidht = null;\n levelName = null;\n background = null;\n numberOfBlocksToRemove = null;\n blockDef = null;\n startOfBloks = null;\n startOfBloksY = null;\n rowHight = null;\n }", "public static Item createItemFromJSON(final JSONObject itemJson) throws JSONException {\n\t\tif (itemJson.getString(\"type\").equals(\"variable\")) {\n\t\t\treturn Helper.createVariableFromJSON(itemJson);\n\t\t} else {\n\t\t\treturn Helper.createLiteralFromJSON(itemJson);\n\t\t}\n\t}", "public Gateway(org.json.JSONObject jsonObject) {\n this();\n genClient.setJsonObject(jsonObject);\n }", "public static Capabilities fromJson(String json) {\n Gson gson = new Gson();\n return gson.fromJson(json, Capabilities.class);\n }", "public synchronized void generateLevel(Game game, int levelPack, int levelNumber) {\n\t\tInputStream in = null;\n\t\tString levelCode = levelPack + \"-\" + levelNumber;\n\t\ttry {\n\t\t\tin = game.getFileIO().readAsset(\"level\" + levelCode + \".txt\");\n\t\t\tList<String> layers = readLines(in);\n\t\t\t//set world height\n\t\t\tWORLD_HEIGHT = layers.size();\n\t\t\t\n\t\t\tfor(float i = 0, y = 0.5f + layers.size() - 1; i < layers.size(); i++, y -= 1) {\n\t\t\t\tString layer = layers.get((int)i);\n\t\t\t\t\n\t\t\t\tfor(float j = 0, x = 0.5f; j < layer.length(); j++, x += 1) {\n\t\t\t\t\tif(x > tempWidth) {\n\t\t\t\t\t\ttempWidth = x + 0.5f;\n\t\t\t\t\t}\n\t\t\t\t\tchar tile = layer.charAt((int)j);\n\t\t\t\t\t\n\t\t\t\t\tif(tile == 'T') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t} else if(tile == 'L') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t\tleftXLimit = x - 0.5f;\n\t\t\t\t\t} else if(tile == 'l') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t\trightXLimit = x + 0.5f;\n\t\t\t\t\t} else if(tile == 'M') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t\tminXLimit = x - 0.5f;\n\t\t\t\t\t} else if(tile == 'U') {\n\t\t\t\t\t\tSpike upSpike = new Spike(x, y);\n\t\t\t\t\t\tupSpikes.add(upSpike);\n\t\t\t\t\t} else if(tile == 'V') {\n\t\t\t\t\t\tSpike downSpike = new Spike(x, y);\n\t\t\t\t\t\tdownSpikes.add(downSpike);\n\t\t\t\t\t} else if(tile == 'R') {\n\t\t\t\t\t\tSpike rightSpike = new Spike(x, y);\n\t\t\t\t\t\trightSpikes.add(rightSpike);\n\t\t\t\t\t} else if(tile == 'J') {\n\t\t\t\t\t\tSpike leftSpike = new Spike(x, y);\n\t\t\t\t\t\tleftSpikes.add(leftSpike);\n\t\t\t\t\t} else if(tile == 'D') {\n\t\t\t\t\t\tDiamond diamond = new Diamond(x, y);\n\t\t\t\t\t\tdiamondBlocks.add(diamond);\n\t\t\t\t\t} else if(tile == 'G') {\n\t\t\t\t\t\tGold gold = new Gold(x, y);\n\t\t\t\t\t\tgoldBlocks.add(gold);\n\t\t\t\t\t} else if(tile == 'S') {\n\t\t\t\t\t\tSilver silver = new Silver(x, y);\n\t\t\t\t\t\tsilverBlocks.add(silver);\n\t\t\t\t\t} else if(tile == 'P') {\n\t\t\t\t\t\tplayer = new Player(x, y);\n\t\t\t\t\t\tplayer.velocity.y = 1;\n\t\t\t\t\t\trespawnPoint = new Vector2(x, y);\n\t\t\t\t\t} else if(tile == 'C') {\n\t\t\t\t\t\tCheckpoint checkpoint = new Checkpoint(x, y);\n\t\t\t\t\t\tcheckpoints.add(checkpoint);\n\t\t\t\t\t} else if(tile == 'F') {\n\t\t\t\t\t\tEndingFlag eflag = new EndingFlag(x, y);\n\t\t\t\t\t\teflags.add(eflag);\n\t\t\t\t\t} else if(tile == '#') {\n\t\t\t\t\t\tworldNumberG = (int)Math.ceil(y);\n\t\t\t\t\t\tlevelNumberG = (int)Math.ceil(x);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t\t\n\t\t\t//set max found width across map to permanent width for current world\n\t\t\tWORLD_WIDTH = tempWidth;\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t}\n\t}", "public static RoyaltyEntity fromJson(String jsonString) throws IOException {\n return JSON.getGson().fromJson(jsonString, RoyaltyEntity.class);\n }", "public void loadWorld() {\n\t\tint[][] tileTypes = new int[100][100];\n\t\tfor (int x = 0; x < 100; x++) {\n\t\t\tfor (int y = 0; y < 100; y++) {\n\t\t\t\ttileTypes[x][y] = 2;\n\t\t\t\tif (x > 40 && x < 60 && y > 40 && y < 60) {\n\t\t\t\t\ttileTypes[x][y] = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tEntityList entities = new EntityList(0);\n\t\tPlayer player = new Player(Direction.SOUTH_WEST, 50, 50);\n\t\tentities.addEntity(player);\n\t\tentities.addEntity(new Tree(Direction.SOUTH_WEST,49, 49));\n\t\tworld = new World(new Map(tileTypes), player, entities);\n\t}", "JsonObject raw();", "public static JinyouTestOne fromJson(String jsonString) throws IOException {\n return JSON.getGson().fromJson(jsonString, JinyouTestOne.class);\n }", "<T> T fromJson(String json, Class<T> type);", "public JSONModel(final JSONObject json) {\n if (json == null) {\n throw new IllegalArgumentException(\"JSONObject argument is null\");\n }\n jo = json;\n }", "public static DayTraining newInstance(String json) {\n try {\n JSONObject root = new JSONObject(json);\n return new DayTraining.Builder()\n .setRunning( root.optInt(\"t1\"), root.optInt(\"t2\"), root.optInt(\"t3\"), root.optInt(\"t2_3\"), root.optInt(\"t1_3\"), root.optInt(\"ta\"), root.optInt(\"tt\"))\n .setBreathing(root.optInt(\"gx\"), root.optInt(\"gp\"),root.optInt(\"gd\"))\n .setTrainingInfo(root.optInt(\"id_athlete\"), root.optString(\"date\"), filterJsonTotalInput(root.optString(\"description\")), root.optInt(\"texniki\"), root.optInt(\"drastiriotita\"), root.optInt(\"time\"), root.optInt(\"number\"), root.optInt(\"id_race\"))\n .build();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return null;\n }", "@Override\n\t\tpublic TextureAtlas<String> load(JSONObject root) throws IOException {\n\t\t\tfinal JSONArray array = root.getJSONArray(\"atlas\");\n\n\t\t\t// Load texture atlas\n\t\t\treturn StreamSupport\n\t\t\t\t\t.stream(array.spliterator(), false)\n\t\t\t\t\t.map(JSONObject.class::cast)\n\t\t\t\t\t.map(Loader::entry)\n\t\t\t\t\t.collect(collectingAndThen(toMap(Entry::getKey, Entry::getValue), TextureAtlas::of));\n\t\t}", "public static SMClass deserialize(JsonObject json) {\r\n\t\tSMClass table = new SMClass(\"sm\");\r\n\t\tif(json == null) return table;\r\n\t\t\r\n\t\tJsonMap map = json.toMap().getJsonMap(\"content\");\r\n\t\tfor(String key : map.keySet()) {\r\n\t\t\tSMClass clazz = table.createClass(key);\r\n\t\t\tloadClassFromJson(clazz, map.getJsonMap(key));\r\n\t\t}\r\n\t\t\r\n\t\treturn table;\r\n\t}", "public void loadJson(String json) throws Exception {\r\n\t\tsetJsonToken(SimpleJson.textToHashMap(json));\r\n\t}", "public static void createNewLevel(int sizeX, int sizeY, String displayname, List<Coordinate> blockedCoordinates, double speedModifier, int startLength) {\r\n\t\tLevelFileManager lfm = new LevelFileManager();\r\n\t\tlfm.writeLevelToStorage(sizeX, sizeY, displayname, blockedCoordinates, speedModifier, startLength);\r\n\t}", "public TreeGroupOp setJson(String strJson) {\n json = strJson;\r\n\r\n return this;\r\n }", "public EntityBundleCreate(JSONObjectAdapter initializeFrom) throws JSONObjectAdapterException {\n\t\tthis();\n\t\tinitializeFromJSONObject(initializeFrom);\n\t}", "@Override\r\n\tpublic Level LoadLevel(InputStream LevelLoad) throws IOException {\r\n\t\tBufferedReader read = new BufferedReader(new InputStreamReader(LevelLoad));\r\n\t\tString line;\r\n\t\tint column = 0;\r\n\t\tint row = 0;\r\n\t\tArrayList<String> ans = new ArrayList<String>();\r\n\t\tString name = read.readLine();\r\n\t\twhile ((line = read.readLine()) != null) {\r\n\t\t\tif (line.length() > row) {\r\n\t\t\t\trow = line.length();\r\n\t\t\t}\r\n\t\t\tcolumn++;\r\n\t\t\tans.add(line);\r\n\r\n\t\t}\r\n\t\tLevel level = new Level(column, row);\r\n\t\tlevel.setName(name);\r\n\t\tcolumn = 0;\r\n\t\tfor (String resualt : ans) {\r\n\t\t\tfor (int i = 0; i < resualt.length(); i++) {\r\n\t\t\t\tswitch (resualt.charAt(i)) {\r\n\t\t\t\tcase ' ': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive(' ');\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, item);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase '#': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive('#');\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, item);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 'A': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive('A');\r\n\t\t\t\t\tlevel.setMoveableMap(column, i, item);\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, new AbstractItems(new Position2D(column, i), ' '));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase '@': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive('@');\r\n\t\t\t\t\tlevel.setMoveableMap(column, i, item);\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, new AbstractItems(new Position2D(column, i), ' '));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 'o': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive('o');\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, item);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tcolumn++;\r\n\t\t}\r\n\r\n\t\treturn level;\r\n\t}", "public void gatherLevelJson(String filename) {\r\n\t\tif(level == 0) { // Get level editor level\r\n\t\t\tPreferences prefs = GDXRoot.getPreferences();\r\n\t\t\tif(prefs.contains(filename)) {\r\n\t\t\t\tlevelAssets = new JsonReader().parse(prefs.getString(filename));\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tFileHandle file = Gdx.files.internal(filename);\r\n\t\t\tString text = file.readString();\r\n\t\t\tlevelAssets = new JsonReader().parse(text);//directory.getEntry( String.format(\"level%d\", level), JsonValue.class);\r\n\t\t}\r\n\t}", "@Test\n public void testWithNewWarnings() {\n String request = \"{\\\"canComputeNew\\\":{\\\"failedNewAll\\\":\\\"\\\",\\\"failedNewHigh\\\":\\\"1\\\",\\\"failedNewLow\\\":\\\"\\\",\\\"failedNewNormal\\\":\\\"\\\",\\\"unstableNewAll\\\":\\\"1\\\",\\\"unstableNewHigh\\\":\\\"\\\",\\\"unstableNewLow\\\":\\\"\\\",\\\"unstableNewNormal\\\":\\\"\\\",\\\"useDeltaValues\\\":false},\\\"canRunOnFailed\\\":false,\\\"defaultEncoding\\\":\\\"\\\",\\\"failedTotalAll\\\":\\\"\\\",\\\"failedTotalHigh\\\":\\\"\\\",\\\"failedTotalLow\\\":\\\"\\\",\\\"failedTotalNormal\\\":\\\"\\\",\\\"healthy\\\":\\\"0\\\",\\\"pattern\\\":\\\"\\\",\\\"shouldDetectModules\\\":false,\\\"thresholdLimit\\\":\\\"low\\\",\\\"unHealthy\\\":\\\"50\\\",\\\"unstableTotalAll\\\":\\\"\\\",\\\"unstableTotalHigh\\\":\\\"\\\",\\\"unstableTotalLow\\\":\\\"\\\",\\\"unstableTotalNormal\\\":\\\"\\\"}\";\n\n JSONObject input = JSONObject.fromObject(request);\n JSONObject output = PluginDescriptor.convertHierarchicalFormData(input);\n\n String expected = \"{\\\"canComputeNew\\\":true,\\\"failedNewAll\\\":\\\"\\\",\\\"failedNewHigh\\\":\\\"1\\\",\\\"failedNewLow\\\":\\\"\\\",\\\"failedNewNormal\\\":\\\"\\\",\\\"unstableNewAll\\\":\\\"1\\\",\\\"unstableNewHigh\\\":\\\"\\\",\\\"unstableNewLow\\\":\\\"\\\",\\\"unstableNewNormal\\\":\\\"\\\",\\\"useDeltaValues\\\":false,\\\"canRunOnFailed\\\":false,\\\"defaultEncoding\\\":\\\"\\\",\\\"failedTotalAll\\\":\\\"\\\",\\\"failedTotalHigh\\\":\\\"\\\",\\\"failedTotalLow\\\":\\\"\\\",\\\"failedTotalNormal\\\":\\\"\\\",\\\"healthy\\\":\\\"0\\\",\\\"pattern\\\":\\\"\\\",\\\"shouldDetectModules\\\":false,\\\"thresholdLimit\\\":\\\"low\\\",\\\"unHealthy\\\":\\\"50\\\",\\\"unstableTotalAll\\\":\\\"\\\",\\\"unstableTotalHigh\\\":\\\"\\\",\\\"unstableTotalLow\\\":\\\"\\\",\\\"unstableTotalNormal\\\":\\\"\\\"}\";\n assertEquals(\"Wrong JSON \", JSONObject.fromObject(expected), output);\n }", "public Builder clearLevel() {\n bitField0_ = (bitField0_ & ~0x00000002);\n level_ = 1;\n \n return this;\n }", "public static FluidIngredient deserialize(JsonElement json, String name) {\n // single ingredient object\n if (json.isJsonObject()) {\n return deserializeObject(json.getAsJsonObject());\n }\n\n // array\n if (json.isJsonArray()) {\n return Compound.deserialize(json.getAsJsonArray(), name);\n }\n\n throw new JsonSyntaxException(\"Fluid ingredient \" + name + \" must be either an object or array\");\n }", "public Message createMessageFromJson(JSONObject messageJson){\n\n try {\n this.setBody( messageJson.get(\"body\").toString());\n\n //recupèrer l'objet contact\n JSONObject contactObject = (JSONObject) messageJson.get(\"contact\");\n this.getContact().setName(contactObject.get(\"name\").toString());\n this.getContact().setNumber( contactObject.get(\"number\").toString());\n\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return this;\n }", "private LabWork convertJsonObjIntoLabWork(JSONObject jsonObject) throws java.text.ParseException {\n LabWork lw = new LabWork();\n // set ID\n Long newID = Long.parseLong(String.valueOf(jsonObject.get(\"id\")));\n System.out.println(newID);\n if(CollectionManager.IDChecker.contains(newID)){\n System.out.println(\"ID is duplicate, please insert valid input!\");\n }\n else {\n CollectionManager.IDChecker.add(newID);\n lw.setId(newID);\n }\n //set Name\n lw.setName((String)jsonObject.get(\"Name\"));\n System.out.println(lw.getName());\n\n // set Coordinates\n JSONObject coordinatesObj = (JSONObject) jsonObject.get(\"coordinates\");\n lw.setCoordinates(new Coordinates(Math.toIntExact(Long.parseLong(String.valueOf(coordinatesObj.get(\"x\")))), Double.parseDouble(String.valueOf(coordinatesObj.get(\"y\")))));\n\n /*\n parse String to LocalDateTime\n */\n\n// // date in String\n// String dateString = (String)jsonObject.get(\"creationDate\");\n//\n// //build formatter\n// DateTimeFormatter formatter = DateTimeFormatter.ISO_DATE_TIME;\n// //Parse String to LocalDateTime\n// LocalDateTime dateTime = LocalDateTime.parse(dateString,formatter);\n// lw.setCreationDate(dateTime);\n// //System.out.println(p.getCreationDate());\n\n // set minimalPoint\n lw.setMinimalPoint(Long.parseLong(String.valueOf(jsonObject.get(\"minpoint\"))));\n\n // set difficulty\n String difficultyString = (String)jsonObject.get(\"difficulty\");\n Difficulty difficultyEnum = Difficulty.valueOf(difficultyString);\n lw.setDifficulty(difficultyEnum);\n\n\n// set weight\n// lw.setWeight(Math.toIntExact(Long.parseLong(String.valueOf(jsonObject.get(\"weight\")))));\n\n// // set nationality\n// String countryString = (String)jsonObject.get(\"nationality\");\n// Country countryEnum = Country.valueOf(countryString);\n// lw.setNationality(countryEnum);\n //set author\n// set location\n JSONObject authorObj = (JSONObject)jsonObject.get(\"author\");\n JSONObject locationObj = (JSONObject)authorObj.get(\"location\");\n //System.out.println(locationObj);\n// lw.setLocation(new Location(\n// Math.toIntExact(Long.parseLong(String.valueOf(locationObj.get(\"x\")))),\n// Long.parseLong(String.valueOf(locationObj.get(\"y\"))),\n// (String)locationObj.get(\"name\")\n// ));\n\n lw.setAuthor(new Person(\n (String)authorObj.get(\"name\"), Double.parseDouble(String.valueOf(authorObj.get(\"weight\"))),Color.valueOf(String.valueOf(authorObj.get(\"eye color\"))),HairColor.valueOf(String.valueOf(authorObj.get(\"hair color\"))),Country.valueOf(String.valueOf(authorObj.get(\"nationality\"))), new Location(\n Integer.parseInt((String.valueOf(locationObj.get(\"x\")))),\n Long.parseLong(String.valueOf(locationObj.get(\"y\"))),\n (String)locationObj.get(\"name\")\n )\n ));\n\n\n\n return lw;\n }", "public Levels()\r\n { \r\n super(1070, 570, 1);\r\n \r\n //Add the bottom platform in the menu screen\r\n platforms = new Platforms[7]; \r\n for (int i = 0; i < platforms.length; i++)\r\n {\r\n platforms[i] = new Platforms();\r\n }\r\n bottomPlatform();\r\n\r\n //Add the Potato (player)\r\n player = new Player();\r\n addObject (player, 100, 512); \r\n\r\n setBackground(\"menu.png\");\r\n }", "public String toJson() {\n\t\treturn Serializer.serializeLevelPack(this);\n\t}", "public Player (String country, JSONObject json) throws JSONException, ParseException {\n super();\n\n setCountry(country);\n setName(json.getString(\"name\"));\n setBio(json.getString(\"bio\"));\n setPhotoDone(json.getString(\"photo done?\"));\n setSpecialPlayer(json.getString(\"special player? (eg. key player, promising talent, etc)\"));\n setPosition(json.getString(\"position\"));\n setNumber(json.getString(\"number\"));\n setCaps(json.getInt(\"caps\"));\n setGoalsForCountry(json.getInt(\"goals for country\"));\n setClub(json.getString(\"club\"));\n setLeague(json.getString(\"league\"));\n setDateOfBirth(dtformatter.parse(json.getString(\"date of birth\")));\n setRatingMatch1(json.getString(\"rating_match1\"));\n setRatingMatch2(json.getString(\"rating_match2\"));\n setRatingMatch3(json.getString(\"rating_match3\"));\n\n }", "@Test\n\tpublic void languageTranslationJSONTest() {\n\t\tNDLLanguageTranslate detail = new NDLLanguageTranslate(\"author\");\n\t\tdetail.addValue(new NDLLanguageDetail(\"eng\", \"debasis jana\"), new NDLLanguageDetail(\"hin\", \"डेबसिस जन\"));\n\t\tdetail.addValue(new NDLLanguageDetail(\"eng\", \"tilak mu\"), new NDLLanguageDetail(\"hin\", \"\"),\n\t\t\t\tnew NDLLanguageDetail(\"ur\", \"तिलक मु\"));\n\t\tdetail.addValue(new NDLLanguageDetail(\"eng\", \"\"), new NDLLanguageDetail(\"hin\", \"\"));\n\t\tString json = NDLDataUtils.serializeLanguageTranslation(detail);\n\t\tNDLLanguageTranslate obtained = NDLDataUtils.desrializeLanguageTranslation(json);\n\t\tList<List<NDLLanguageDetail>> values = obtained.getValues();\n\t\tfor(List<NDLLanguageDetail> value : values) {\n\t\t\tSystem.out.println(value);\n\t\t}\n\t}", "public static IPStack unMarshalServerStatus(final String json, final LoggerInterface logger)\n {\n try\n {\n return MAPPER.readValue(json, IPStack.class);\n }\n catch (JsonProcessingException e)\n {\n logger.log(LoggerInterface.LogLevel.ERROR, LoggerInterface.LogType.SYSTEM, e, \"Bad JSON %s\", json);\n return null;\n }\n }", "public static Spot validateJSONData(JSONObject json) {\r\n\t\tint id, lot_id;\r\n\t\tdouble lat, lng;\r\n\t\tString status;\r\n\t\t\r\n\t\tLog.i(\"Spot JSON\", json.toString());\r\n\t\t\r\n\t\t// Begin the disgusting wall of try-catches\r\n\t\ttry {\r\n\t\t\tid = json.getInt(RestContract.SPOT_ID);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tid = -1;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tlot_id = json.getInt(RestContract.SPOT_LOT_ID);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tlot_id = -1;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tlat = json.getDouble(RestContract.SPOT_LATITUDE);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tlat = 0;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tlng = json.getDouble(RestContract.SPOT_LONGITUDE);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tlng = 0;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tstatus = json.getString(RestContract.SPOT_STATUS);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tstatus = \"\";\r\n\t\t}\r\n\t\t\r\n\t\treturn new Spot(id, lot_id, lat, lng, status);\r\n\t}", "public static Object decode(JsonObject content) {\n return new exercise(content);\n }", "@Nonnull\n public static UBL23WriterBuilder <PackingListType> packingList ()\n {\n return UBL23WriterBuilder.create (PackingListType.class);\n }", "Level makeLevel(String levelName) {\r\n return new Level(levelName);\r\n }", "private JSON() {\n\t}", "private static VersionedWaveletDelta emptyDeserializedDeltaAtVersion(final long version) {\n return new VersionedWaveletDelta(null, HashedVersion.unsigned(version));\n }", "public static SnowInformation fromJson(JSONObject jsonObject) {\n\n double threeHoursVolume = 0.0;\n\n try {\n threeHoursVolume = jsonObject.getJSONObject(\"snow\")\n .getDouble(\"3h\");\n } catch (JSONException exception) {\n }\n\n /**\n * Obtain result object.\n */\n\n final SnowInformation resultObject = new SnowInformation.Builder()\n .setThreeHoursVolume(threeHoursVolume)\n .build();\n\n /**\n * Return result.\n */\n\n return resultObject;\n }", "public JsonArray() {\n }", "public void loadMap() {\n\n try {\n new File(this.mapName).mkdir();\n FileUtils.copyDirectory(\n new File(this.plugin.getDataFolder() + \"/maps/\" + this.mapName), new File(this.mapName));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n WorldCreator wc = new WorldCreator(this.mapName);\n World world = wc.createWorld();\n world.setAutoSave(false);\n world.setPVP(false);\n world.setDifficulty(Difficulty.PEACEFUL);\n world.setGameRuleValue(\"doDaylightCycle\", \"false\");\n world.setGameRuleValue(\"mobGriefing\", \"false\");\n world.setGameRuleValue(\"doMobSpawning\", \"false\");\n world.setGameRuleValue(\"doFireTick\", \"false\");\n world.setGameRuleValue(\"keepInventory\", \"true\");\n world.setGameRuleValue(\"commandBlockOutput\", \"false\");\n world.setSpawnFlags(false, false);\n\n try {\n final JsonParser parser = new JsonParser();\n final FileReader reader =\n new FileReader(this.plugin.getDataFolder() + \"/maps/\" + this.mapName + \"/config.json\");\n final JsonElement element = parser.parse(reader);\n this.map = JumpyJumpMap.fromJson(element.getAsJsonObject());\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "public static MedicineGroup fromJSON(JSONObject json) throws JSONException {\n MedicineGroup group = new MedicineGroup();\n group.setId(json.getLong(\"id\"));\n group.setName(json.getString(\"name\"));\n return group;\n }", "public Model(JSONObject selfAsJson) {\n try {\n int width = selfAsJson.getInt(\"width\") / PlayGameActivity.PIXELS_PER_PHYSICS_GRID;\n int height = selfAsJson.getInt(\"height\") / PlayGameActivity.PIXELS_PER_PHYSICS_GRID;\n this.physModel = new Physics2D(selfAsJson.getJSONObject(\"physics\"), width, height);\n this.graphModel = new Graphics2D(selfAsJson.getJSONObject(\"graphics\"));\n this.gameStateModel = new GameState(selfAsJson.getJSONObject(\"gamestate\"));\n }catch(JSONException e) {\n e.printStackTrace();\n }\n\n }", "public CommandPacket(JSONObject json) throws JSONException {\n this.type = Packet.getPacketType(json);\n this.clientRequestId = json.getInt(CLIENTREQUESTID);\n if (json.has(LNSREQUESTID)) {\n this.LNSRequestId = json.getInt(LNSREQUESTID);\n } else {\n this.LNSRequestId = -1;\n }\n this.senderAddress = json.getString(SENDERADDRESS);\n this.senderPort = json.getInt(SENDERPORT);\n this.command = json.getJSONObject(COMMAND);\n }" ]
[ "0.7416073", "0.6099476", "0.6086989", "0.5344613", "0.5326988", "0.5281059", "0.49828786", "0.49536023", "0.4943818", "0.48205748", "0.4811304", "0.4772701", "0.47225913", "0.47192153", "0.47004327", "0.46730518", "0.46721584", "0.46626046", "0.4637246", "0.4582748", "0.45670888", "0.45636186", "0.4558396", "0.45581463", "0.4538796", "0.4495926", "0.4487272", "0.4459069", "0.4450158", "0.444861", "0.44459555", "0.443709", "0.44307336", "0.43569094", "0.43553987", "0.434759", "0.43462428", "0.43390632", "0.42923543", "0.42817947", "0.4277856", "0.4277718", "0.42776534", "0.4259357", "0.4253437", "0.4250132", "0.4242654", "0.42222133", "0.4218035", "0.42117384", "0.4204019", "0.41997167", "0.41978872", "0.41906565", "0.41874203", "0.41813648", "0.4177023", "0.417654", "0.4171069", "0.41619495", "0.41483346", "0.41400596", "0.41392142", "0.4136438", "0.41192845", "0.40983802", "0.40983146", "0.40970224", "0.40903026", "0.40879598", "0.40690875", "0.4063094", "0.40625754", "0.40607083", "0.40532964", "0.40530547", "0.40467322", "0.40455785", "0.4044039", "0.4033378", "0.40314245", "0.4019937", "0.4016062", "0.40137875", "0.4008861", "0.4007027", "0.40001997", "0.39973655", "0.39969653", "0.39956075", "0.39950326", "0.3990662", "0.39900258", "0.39886087", "0.3988526", "0.39860523", "0.39855474", "0.39828324", "0.39826664", "0.39799246" ]
0.67500794
1
Brings the data contained in the LevelPack uptodate, in case stuff is missing.
private static void standardize(LevelPack pack) { // TODO: kill this once we have the LevelPacks stored at a standardized // state. // If level header info was not stored originally, check to make sure // there are not nulls after the deserialization. if (pack.levels == null) pack.levels = new WorldList(); if (pack.levelTitles == null) pack.levelTitles = new ArrayList<String>(); if (pack.levelDescriptions == null) pack.levelDescriptions = new ArrayList<String>(); if (pack.levelEmblems == null) pack.levelEmblems = new ImageList(); // If the level header stuff wasn't originally stored, it may be // necessary to populate header info with dummy data. There will always // be at least one level title/description/emblem, even if the levels // themselves don't exist. pack.levelCount = Math.max(1, Math.max(pack.levels.size(), Math.max(pack.levelTitles.size(), Math.max(pack.levelDescriptions.size(), pack.levelEmblems.size())))); while (pack.levelTitles.size() < pack.levelCount) pack.levelTitles.add("Unnamed level."); while (pack.levelDescriptions.size() < pack.levelCount) pack.levelDescriptions.add("No description."); while (pack.levelEmblems.size() < pack.levelCount) pack.levelEmblems.add((BufferedImage) UIBuilder.getImage("images/ice_cave.jpg")); // The lock is something new added, but it defaults to false anyway. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isPackValid() {\n\t\treturn (logData != null\n\t\t\t\t&& logData.entries != null\n\t\t\t\t&& logData.entries.size() > 1);\n\t}", "public void resetPacks() {\n user.resetPacks();\n saveData();\n }", "public void completeLevel() {\n\n this.getCurrentRoom().setIsDoorLocked(false);\n levelsCompleted++;\n this.setCurrentRoom(currentRoom.getNextRoom());\n inventory.clearContainer();\n }", "private static void mandatoryUpdates(Level level, float dt){\r\n\t\tInput.update();\r\n\t\tlevel.getPicker().update();\r\n\t\ttry{\r\n\t\t\tfor(int i = 0; i < level.getEntities().size(); i++){\r\n\t\t\t\tlevel.getEntities().get(i).update(dt/1000.0f);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(ConcurrentModificationException e){\r\n\t\t}\r\n\t\tspawnTestEnemies(level);\r\n\t\tlevel.getCamera().update(dt/1000.0f);\r\n\t\tlevel.getMinimapCam().update(dt/1000.0f);\r\n\t\tTextMaster.clear();\r\n\t}", "@Override\n\tpublic void updateEntity()\n\t{\n\t\tif (structureComplete() && checkCountdown >= CHECK_MAX)\n\t\t{\n\t\t\tcheckCountdown = 0;\n\t\t\t\n\t\t\t// Refresh the core structure.\n\t\t\tupdateStructure();\n\t\t}\n\t\telse checkCountdown++;\n\t}", "public void setComplete()\n\t{\n\t\texisting.set(0, pieces.length);\n\t}", "@Override\n\tpublic void uppdate() {\n\t\t\n\t}", "@Override\n\tpublic void uppdate() {\n\t\t\n\t}", "@Test\n\tvoid testPositionInformationAdjustmentForIncompleteVersionstamp() throws Exception {\n\t\tTuple t3 = Tuple.from(Versionstamp.incomplete(1));\n\t\tAssertions.assertEquals(1 + Versionstamp.LENGTH + Integer.BYTES, t3.getPackedSize(),\n\t\t \"incomplete versionstamp has incorrect packed size: \" + t3.getPackedSize());\n\n\t\tbyte[] bytes3 = t3.packWithVersionstamp();\n\t\tAssertions.assertEquals(1,\n\t\t ByteBuffer.wrap(bytes3, bytes3.length - Integer.BYTES, Integer.BYTES)\n\t\t .order(ByteOrder.LITTLE_ENDIAN)\n\t\t .getInt(),\n\t\t \"incomplete versionstamp has incorrect position\");\n\t\tAssertions.assertEquals(Tuple.from(Versionstamp.incomplete(1)),\n\t\t Tuple.fromBytes(bytes3, 0, bytes3.length - Integer.BYTES),\n\t\t \"unpacked bytes did not match\");\n\n\t\tSubspace subspace = new Subspace(Tuple.from(\"prefix\"));\n\t\tbyte[] bytes4 = subspace.packWithVersionstamp(t3);\n\t\tAssertions.assertEquals(1 + subspace.getKey().length,\n\t\t ByteBuffer.wrap(bytes4, bytes4.length - Integer.BYTES, Integer.BYTES)\n\t\t .order(ByteOrder.LITTLE_ENDIAN)\n\t\t .getInt(),\n\t\t \"incomplete versionstamp has incorrect position with prefix\");\n\t\tAssertions.assertEquals(Tuple.from(\"prefix\", Versionstamp.incomplete(1)),\n\t\t Tuple.fromBytes(bytes4, 0, bytes4.length - Integer.BYTES),\n\t\t \"unpacked bytes with subspace did not match\");\n\n\t\ttry {\n\t\t\t// At this point, the representation is cached, so an easy bug would be to have\n\t\t\t// it return the already serialized value\n\t\t\tt3.pack();\n\t\t\tAssertions.fail(\"was able to pack versionstamp with incomplete versionstamp\");\n\t\t} catch (IllegalArgumentException eexpected) {\n\t\t\t// eat\n\t\t}\n\t}", "@Override\n\tpublic void updateIfNeeded() {\n\t\tif(needToUpdate){\n\t\t\tinit();\n\t\t\tneedToUpdate = false;\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic void OnUnCheck(Object o) {\n\t\t\t\tchecAll(getPackTbl().getModel().getData(), false);\r\n\t\t\t\tgetPackTbl().updateUI();\r\n\t\t\t}", "private static int needToPack(){\n File atlasFile = new File(\"src/main/resources/img/packed/main.atlas\");\n if (!atlasFile.exists()) return -1;\n long atlasFileModifiedDate = atlasFile.lastModified();\n\n File packableFolder = new File(\"src/main/resources/img/packable\");\n if (!packableFolder.exists()) return 0;\n long mostRecentLastModifiedDateInPacked = recursiveFileLastModified(packableFolder);\n\n return mostRecentLastModifiedDateInPacked > atlasFileModifiedDate ? 1 : 0;\n }", "public void addPack(NBpack pack) throws ListFullException {\n synchronized (control) {\n if (write_point - read_point == COUNT_MAXPACKS) {\n throw new ListFullException();\n }\n if (write_point >= COUNT_MAXPACKS) {\n packs[write_point - COUNT_MAXPACKS] = pack;\n } else {\n packs[write_point] = pack;\n }\n write_point++;\n if (write_point + 1 == COUNT_MAXPACKS * 2) {\n write_point = 0;\n }\n control.notifyAll();\n }\n }", "private void freshTheData() {\n mData.clear();\n mData.addAll(mDataOrg);\n }", "synchronized void ensureInitialized() {\n\t\tsynchronized (syncLock) {\n\t\t\tfinal long var2 = StatCollector\n\t\t\t\t\t.getLastTranslationUpdateTimeInMilliseconds();\n\n\t\t\tif (var2 == lastTranslationUpdateTimeInMilliseconds)\n\t\t\t\treturn;\n\n\t\t\tlastTranslationUpdateTimeInMilliseconds = var2;\n\t\t\tchildren.clear();\n\t\t}\n\n\t\ttry {\n\t\t\tinitializeFromFormat(StatCollector.translateToLocal(key));\n\t\t} catch (final ChatComponentTranslationFormatException var6) {\n\t\t\tchildren.clear();\n\n\t\t\ttry {\n\t\t\t\tinitializeFromFormat(StatCollector.translateToFallback(key));\n\t\t\t} catch (final ChatComponentTranslationFormatException var5) {\n\t\t\t\tthrow var6;\n\t\t\t}\n\t\t}\n\t}", "@Override\n public boolean isFull() {\n return false;\n }", "private void nocompressedUnPack()throws UnpackException,ZipEndException{\n skipByte();\n //get the len\n long LEN = 0x00;\n byte byte0 = getByte();\n byte byte1 = getByte();\n byte byte2 = getByte();\n byte byte3 = getByte();\n LEN |= byte1;\n LEN |= (byte0 << 8);\n LEN &= 0X0000ffff;\n// LEN |= (byte2<<24);\n// LEN |= (byte3<<16);\n int l = 0;\n try{\n for (long num = 0; num < LEN ; num ++){\n outputStoredByte(getByte());\n }\n }catch (IOException e){\n e.printStackTrace();\n }\n }", "protected void updateLocalData(Building[] data){\n new DBHandler(cx).updateBuildings(data);\n }", "private void initialiseLevelPackages() {\n\t\tlevelPackages = new ArrayList<LevelPackage>();\n\n\t\tFileHandle handle = Gdx.files.internal(BackendHelper.getAssetDirPath()\n\t\t\t\t+ \"json/levels\");\n\t\tFileHandle[] possiblePackageDirs = handle.list();\n\t\tfor (FileHandle dir : possiblePackageDirs) {\n\t\t\tif (!dir.isDirectory()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tString name = dir.name();\n\t\t\tif (name.length() != 2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (name.matches(\"[0-9][0-9]\")) {\n\t\t\t\ttry {\n\t\t\t\t\tif (dir.child(\"package.json\").exists()) {\n\t\t\t\t\t\tlevelPackages.add(this.loadPackage(Integer\n\t\t\t\t\t\t\t\t.parseInt(name)));\n\t\t\t\t\t}\n\t\t\t\t} catch (GdxRuntimeException ex) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Ignore. Just in case, libGdx' documentation of is telling\n\t\t\t\t\t * the truth (which it isn't) and an exception is thrown in\n\t\t\t\t\t * dir.child, because it is internal an non-existent\n\t\t\t\t\t */\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tCollections.sort(levelPackages, new Comparator<LevelPackage>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(LevelPackage o1, LevelPackage o2) {\n\t\t\t\treturn (int) Math.signum(o1.getLevelPackageId()\n\t\t\t\t\t\t- o2.getLevelPackageId());\n\t\t\t}\n\t\t});\n\t}", "private void forceUpdate() {\n this.lastChecksum = -1;\n update();\n }", "public void loadLevel(PackEntity pack) {\n\t\tint curLevel = pack.getCurrentLevel();\n\t\tint totalLevel = pack.getNumberOfLevel();\n\t\t\n\t\tLog.i(TAG, \"current level: \" + pack.getCurrentLevel());\n\t\t//if complete all \n\t\tif (curLevel >= totalLevel) {\n\t\t\tcurLevel--;\n\t\t}\n\t\t\n\t\tSceneManager.getInstance().handleEpisodeSelection(pack.getId(), curLevel);\n\t}", "private void initializeVolumeFields() {\n s_logger.info(\"Updating detached full copy volumes.\");\n DbClient dbClient = this.getDbClient();\n List<URI> volumeURIs = dbClient.queryByType(Volume.class, true);\n\n Iterator<Volume> volumes =\n dbClient.queryIterativeObjects(Volume.class, volumeURIs);\n while (volumes.hasNext()) {\n Volume volume = volumes.next();\n boolean volumeUpdated = false;\n\n s_logger.info(\"Examining Volume (id={}) for upgrade\", volume.getId().toString());\n String replicaState = volume.getReplicaState();\n // Check if the replicate state is detached.\n if ((NullColumnValueGetter.isNotNullValue(replicaState)) &&\n (ReplicationState.DETACHED.name().equals(replicaState))) {\n URI sourceURI = volume.getAssociatedSourceVolume();\n if (!NullColumnValueGetter.isNullURI(sourceURI)) {\n // We make sure the associated source volume is null.\n // This change was made in ViPR 2.3 for Jira 12659, but\n // the 2.3 upgrade callback never marked the associated\n // source volume null for existing, detached full copies\n // in the database, which all full copies were prior to 2.3.\n // See class FullCopyVolumeReplicaStateMigration.\n s_logger.info(\"Setting associated source volume to null\");\n volume.setAssociatedSourceVolume(NullColumnValueGetter.getNullURI());\n volumeUpdated = true;\n }\n }\n\n // For any volume that has full copies, make sure none of those full copies\n // are in a detached state.\n HashSet<String> fullCopiesToRemove = new HashSet<String>();\n StringSet fullCopies = volume.getFullCopies();\n if (fullCopies != null) {\n for (String fullCopyId : fullCopies) {\n Volume fullCopy = dbClient.queryObject(Volume.class, URI.create(fullCopyId));\n if (fullCopy != null) {\n replicaState = fullCopy.getReplicaState();\n // Check if the replicate state is detached.\n if ((NullColumnValueGetter.isNotNullValue(replicaState)) &&\n (ReplicationState.DETACHED.name().equals(replicaState))) {\n fullCopiesToRemove.add(fullCopyId);\n }\n } else {\n fullCopiesToRemove.add(fullCopyId);\n }\n }\n\n // Existing, detached full copies in the database should be\n // removed from the full copies list of their source volume.\n // This is the change for Jira 12766 (COP-13552) which is\n // made in the Darth (2.4) ViPR release.\n s_logger.info(\"Removing {} from full copies list of source volume {}:{}\", fullCopiesToRemove, volume.getId());\n fullCopies.removeAll(fullCopiesToRemove);\n volumeUpdated = true;\n }\n\n // Persist the changes if necessary.\n if (volumeUpdated) {\n dbClient.persistObject(volume);\n }\n }\n }", "Object getUptodatefile();", "protected void prepareData (List stuffToSend, Document objectFormatDoc) {\n super.prepareData (stuffToSend, objectFormatDoc);\n\n // localDidRehydrate - handleNewAssets is not called if we were rehydrated, \n // so we would otherwise report spurious error.\n if (!localDidRehydrate && !allNecessaryAssetsReported())\n reportMissingAssets ();\n }", "@Override\n\tpublic boolean checkData() {\n\t\treturn false;\n\t}", "public final void updatesComplete()\r\n\t\t{\r\n\t\t\t// get the builder to build itself\r\n\t\t\tCreate();\r\n\r\n\t\t\t// inform the parent\r\n\t\t\tsuper.updatesComplete();\r\n\t\t}", "private boolean refill() {\n byteBuffer.clear();\n int nRead = loadData();\n byteBuffer.flip();\n if (nRead <= 0) {\n return false;\n }\n return true;\n }", "public void doPack() {\n if (this._sendData == null) {\n this._sendData = new byte[26];\n }\n System.arraycopy(BytesUtil.getBytes(this.mLongtitue), 0, this._sendData, 0, 8);\n System.arraycopy(BytesUtil.getBytes(this.mLantitue), 0, this._sendData, 8, 8);\n System.arraycopy(BytesUtil.getBytes(this.mNorthSpeed), 0, this._sendData, 16, 4);\n System.arraycopy(BytesUtil.getBytes(this.mEastSpeed), 0, this._sendData, 20, 4);\n System.arraycopy(BytesUtil.getBytes(this.mAccuracy), 0, this._sendData, 24, 2);\n }", "public void recover() {\n _siteStatus = true;\n for (Integer varIndex : _dataMap.keySet()) {\n List<Data> dataList;\n if (varIndex % 2 == 0) {\n dataList = _dataMap.get(varIndex);\n Data d = dataList.get(dataList.size() - 1);\n // set the last commit variable to unavailable to read\n d.setAccess(false);\n // set the unavailable time for the variable which is the time it fails\n // When a particular version of variable is unavailable, it will never\n // become available, but we may have new version of variable\n d.setUnavailableTime(_lastFailTime);\n }\n }\n }", "public static void sync() {\n // write out superblock if updated\n // write out free list blocks if updated\n // write out inode blocks if updated\n // write out data blocks if updated\n\n // at present, all changes to inodes, data blocks, \n // and free list blocks\n // are written as they go, so this method does nothing.\n }", "public void ensureHealthyPokemon()\n\t{\n\t\tif(m_pokemon[0] == null || m_pokemon[0].getHealth() == 0)\n\t\t\tfor(int i = 1; i < 6; i++)\n\t\t\t\tif(m_pokemon[i] != null && m_pokemon[i].getHealth() > 0)\n\t\t\t\t{\n\t\t\t\t\tswapPokemon(0, i);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t}", "public boolean isFull() { return false; }", "@Override\n public void ready() {\n Entity en = ce();\n\n if ((en instanceof Dropship) && !en.isAirborne()) {\n ArrayList<Coords> crushedBuildingLocs = new ArrayList<Coords>();\n ArrayList<Coords> secondaryPositions = new ArrayList<Coords>();\n secondaryPositions.add(en.getPosition());\n for (int dir = 0; dir < 6; dir++) {\n secondaryPositions.add(en.getPosition().translated(dir));\n }\n for (Coords pos : secondaryPositions) {\n Building bld = clientgui.getClient().getGame().getBoard()\n .getBuildingAt(pos);\n if (bld != null) {\n crushedBuildingLocs.add(pos);\n }\n }\n if (!crushedBuildingLocs.isEmpty()) {\n JOptionPane\n .showMessageDialog(\n clientgui,\n Messages.getString(\"DeploymentDisplay.dropshipBuildingDeploy\"), //$NON-NLS-1$\n Messages.getString(\"DeploymentDisplay.alertDialog.title\"), //$NON-NLS-1$\n JOptionPane.ERROR_MESSAGE);\n return;\n }\n }\n\n disableButtons();\n\n clientgui.getClient().deploy(cen, en.getPosition(), en.getFacing(),\n en.getElevation(), en.getLoadedUnits(), assaultDropPreference);\n en.setDeployed(true);\n\n if (ce().isWeapOrderChanged()) {\n clientgui.getClient().sendEntityWeaponOrderUpdate(ce());\n }\n endMyTurn();\n }", "void loadData() {\n\n // update if\n // station does not exist OR\n // the station exists and should be updated\n // don't update if the depth is rejected, regardless of the above 2\n\n String tmpStationId = \"\";\n if (dataType == CURRENTS) {\n tmpStationId = currents.getStationId(\"\");\n } else if (dataType == SEDIMENT) {\n tmpStationId = sedphy.getStationId(\"\");\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n tmpStationId = watphy.getStationId(\"\");\n } // if (dataType == CURRENTS)\n if (dbg3) System.out.println(\"<br>loadData: tmpStationId = \" + tmpStationId);\n if (dbg3) System.out.println(\"<br>loadData: rejectDepth = \" + rejectDepth);\n if (dbg3) System.out.println(\"<br>loadData: stationExists = \" + stationExists);\n if (dbg3) System.out.println(\"<br>loadData: stationUpdated = \" + stationUpdated);\n if (dbg3) System.out.println(\"<br>loadData: dataExists = \" + dataExists);\n if (dbg3) System.out.println(\"<br>loadData: if = \" +\n (!\"\".equals(tmpStationId) && !rejectDepth &&\n (!stationExists || stationUpdated || !dataExists)));\n if (dbg3) System.out.println(\"<br>loadData: dataType = \" + dataType);\n\n//<br>loadData: tmpStationId = WOD007919212\n//<br>loadData: rejectDepth = false\n//<br>loadData: stationExists = true\n//<br>loadData: stationUpdated = false\n//<br>loadData: dataExists = true\n\n if (!\"\".equals(tmpStationId) && !rejectDepth &&\n (!stationExists || stationUpdated || !dataExists || (thisSubdesCount == 0))) {\n\n // was it a duplicate station with a different station-id?\n // as we can't update station-id's in oracle (used as FK elsewhere),\n // we have to update the watphy record's station id\n if (dbg4) System.out.println(\"<br>loadData: stationIDs = \" +\n station.getStationId(\"\") + \" \" + tmpStationId);\n //if (!station.getStationId(\"\").equals(watphy.getStationId(\"\"))) {\n if (!station.getStationId(\"\").equals(tmpStationId)) {\n if (dataType == CURRENTS) {\n currents.setStationId(station.getStationId(\"\"));\n } else if (dataType == SEDIMENT) {\n sedphy.setStationId(station.getStationId(\"\"));\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n if (dbg4) System.out.println(\"<br>loadData: put watphy = \" + watphy);\n watphy.setStationId(station.getStationId(\"\"));\n if (dbg4) System.out.println(\"<br>loadData: put watphy = \" + watphy);\n } // if (dataType == CURRENTS)\n } // if (!station.getStationId(\"\").equals(tmpStationId))\n\n if (dataType == CURRENTS) {\n\n // insert the currents record\n if (dbg4) System.out.println(\"<br>loadData: put currents1 = \" +\n currents);\n try {\n currents.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put currents1 = \" + currents);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + currents.getInsStr());\n e.printStackTrace();\n } // try-catch\n\n //common2.DbAccessC.commit();\n if (dbg4) System.out.println(\"<br>loadData: put currents2 = \" +\n currents);\n //dataCodeEnd = currents.getCode();\n //if (dbg3) System.out.println(\"<br>loadData: put dataCodeEnd = \" + dataCodeEnd);\n currentsCount++;\n\n currents = new MrnCurrents();\n\n // set initial values for currents\n currents.setSpldattim(startDateTime);\n currents.setSubdes(subdes);\n\n } else if (dataType == SEDIMENT) {\n\n // set default values\n sedphy.setDeviceCode(1); // == unknown\n sedphy.setMethodCode(1); // == unknown\n sedphy.setStandardCode(1); // == unknown\n\n // insert the sedphy and child records\n if (dbg4) System.out.println(\"<br>loadData: put sedphy1 = \" + sedphy);\n try {\n sedphy.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put sedphy1 = \" + sedphy);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + sedphy.getInsStr());\n e.printStackTrace();\n } // try-catch\n\n //common2.DbAccessC.commit();\n if (dbg3) System.out.println(\"<br>loadData: put sedphy2 = \" + sedphy);\n dataCodeEnd = sedphy.getCode();\n if (dbg3) System.out.println(\"<br>loadData: put dataCodeEnd = \" + dataCodeEnd);\n\n //sedphyCount++;\n\n if (!sedchem1.isNullRecord()) {\n sedchem1.setSedphyCode(dataCodeEnd);\n try {\n sedchem1.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put sedchem1 = \" + sedchem1);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + sedchem1.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put sedchem1 = \" + sedchem1);\n sedchem1Count++;\n } // if (!sedchem1.isNullRecord()\n\n if (!sedchem2.isNullRecord()) {\n sedchem2.setSedphyCode(dataCodeEnd);\n try {\n sedchem2.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put sedchem2 = \" + sedchem2);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + sedchem2.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put sedchem2 = \" + sedchem2);\n sedchem2Count++;\n } // if (!sedchem2.isNullRecord()\n\n if (!sedpol1.isNullRecord()) {\n sedpol1.setSedphyCode(dataCodeEnd);\n try {\n sedpol1.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put sedpol1 = \" + sedpol1);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + sedpol1.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put sedpol1 = \" + sedpol1);\n sedpol1Count++;\n } // if (!sedpol1.isNullRecord()\n\n if (!sedpol2.isNullRecord()) {\n sedpol2.setSedphyCode(dataCodeEnd);\n try {\n sedpol2.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put sedpol2 = \" + sedpol2);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + sedpol2.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put sedpol2 = \" + sedpol2);\n sedpol2Count++;\n } // if (!sedpol2.isNullRecord()\n\n sedphy = new MrnSedphy();\n sedchem1 = new MrnSedchem1();\n sedchem2 = new MrnSedchem2();\n sedpol1 = new MrnSedpol1();\n sedpol2 = new MrnSedpol2();\n\n // set initial values for sedphy\n sedphy.setSpldattim(startDateTime);\n sedphy.setSubdes(subdes);\n\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n\n // set default values\n watphy.setDeviceCode(1); // == unknown\n watphy.setMethodCode(1); // == unknown\n watphy.setStandardCode(1); // == unknown\n\n // insert the watphy and child records\n if (dbg4) System.out.println(\"<br>loadData: put watphy1 = \" + watphy);\n try {\n watphy.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put watphy1 = \" + watphy);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + watphy.getInsStr());\n e.printStackTrace();\n } // try-catch\n\n //common2.DbAccessC.commit();\n if (dbg3) System.out.println(\"<br>loadData: put watphy2 = \" + watphy);\n dataCodeEnd = watphy.getCode();\n if (dbg3) System.out.println(\"<br>loadData: put dataCodeEnd = \" + dataCodeEnd);\n\n watphyCount++;\n\n if (dbg4) System.out.println(\"<br>loadData: put watProfQC = \" + watProfQC);\n if (!watProfQC.isNullRecord()) {\n watProfQC.setStationId(station.getStationId(\"\"));\n watProfQC.setSubdes(watphy.getSubdes(\"\"));\n if (dbg4) System.out.println(\"<br>loadData: put watProfQC = \" + watProfQC);\n try {\n watProfQC.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put watProfQC1 = \" + watProfQC);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + watProfQC.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put watProfQC = \" + watProfQC);\n } // if (!watProfQC.isNullRecord()\n\n if (dbg4) System.out.println(\"<br>loadData: put watQC = \" + watQC);\n if (!watQC.isNullRecord()) {\n try {\n watQC.setWatphyCode(dataCodeEnd);\n watQC.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put watQC = \" + watQC);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + watQC.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put watQC = \" + watQC);\n } // if (!watQC.isNullRecord())\n\n if (!watchem1.isNullRecord()) {\n watchem1.setWatphyCode(dataCodeEnd);\n try {\n watchem1.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put watchem1 = \" + watchem1);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + watchem1.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put watchem1 = \" + watchem1);\n watchem1Count++;\n } // if (!watchem1.isNullRecord()\n\n if (!watchem2.isNullRecord()) {\n watchem2.setWatphyCode(dataCodeEnd);\n try {\n watchem2.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put watchem2 = \" + watchem2);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + watchem2.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put watchem2 = \" + watchem2);\n watchem2Count++;\n } // if (!watchem2.isNullRecord()\n\n if (!watchl.isNullRecord()) {\n watchl.setWatphyCode(dataCodeEnd);\n try {\n watchl.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put watchl = \" + watchl);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + watchl.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put watchl = \" + watchl);\n watchlCount++;\n } // if (!watchl.isNullRecord())\n\n if (!watnut.isNullRecord()) {\n watnut.setWatphyCode(dataCodeEnd);\n try {\n watnut.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put watnut = \" + watnut);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + watnut.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put watnut = \" + watnut);\n watnutCount++;\n } // if (!watnut.isNullRecord())\n\n if (!watpol1.isNullRecord()) {\n watpol1.setWatphyCode(dataCodeEnd);\n try {\n watpol1.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put watpol1 = \" + watpol1);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + watpol1.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put watpol1 = \" + watpol1);\n watpol1Count++;\n } // if (!watpol1.isNullRecord()\n\n if (!watpol2.isNullRecord()) {\n watpol2.setWatphyCode(dataCodeEnd);\n try {\n watpol2.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put watpol2 = \" + watpol2);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + watpol2.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put watpol2 = \" + watpol2);\n watpol2Count++;\n } // if (!watpol2.isNullRecord()\n\n watphy = new MrnWatphy();\n watchem1 = new MrnWatchem1();\n watchem2 = new MrnWatchem2();\n watchl = new MrnWatchl();\n watnut = new MrnWatnut();\n watpol1 = new MrnWatpol1();\n watpol2 = new MrnWatpol2();\n\n watProfQC = new MrnWatprofqc();\n watQC = new MrnWatqc();\n\n // set initial values for watphy\n watphy.setSpldattim(startDateTime);\n watphy.setSubdes(subdes);\n\n } // if (dataType == CURRENTS)\n\n } // if (!rejectDepth && (!stationExists || stationUpdated))\n }", "void rebuildIfNecessary();", "public void ensureEmptied() {\n }", "protected void afterRecipeCheckFailed() {\n cleanOrExplode();\n\n for (GT_MetaTileEntity_Hatch_OutputData data : eOutputData) {\n data.q = null;\n }\n\n mOutputItems = null;\n mOutputFluids = null;\n mEfficiency = 0;\n mEfficiencyIncrease = 0;\n mProgresstime = 0;\n mMaxProgresstime = 0;\n eAvailableData = 0;\n //getBaseMetaTileEntity().disableWorking(); //can add in override\n //hatchesStatusUpdate_EM(); //called always after recipe checks\n }", "public void loadObjData() {\n this.updateGeometryAndUVs(SquareCoords, UVCoords, DrawOrder);\n SquareCoords = new float[0];\n UVCoords = new float[0];\n DrawOrder = new int[0];\n }", "synchronized public void flush() {\n \t\tp = null;\n \t\tp_layer = null;\n \t\tn_points = -1; // flag that points exist but are not loaded\n \t}", "private void loadData()\n {\n try\n {\n //Reads in the data from default file\n System.out.println(\"ATTEMPTING TO LOAD\");\n allGroups = (ArrayList<CharacterGroup>)serial.Deserialize(\"All-Groups.dat\");\n System.out.println(\"LOADED\");\n loadSuccessful = true;\n \n //If read is successful, save backup file in case of corruption\n try\n {\n System.out.println(\"SAVING BACKUP\");\n serial.Serialize(allGroups, \"All-Groups-backup.dat\");\n System.out.println(\"BACKUP SAVED\");\n } catch (IOException e)\n {\n System.out.println(\"FAILED TO WRITE BACKUP DATA\");\n }\n } catch (IOException e)\n {\n //If loading from default file fails, first try loading from backup file\n System.out.println(\"READING FROM DEFAULT FAILED\");\n try\n {\n System.out.println(\"ATTEMPTING TO READ FROM BACKUP\");\n allGroups = (ArrayList<CharacterGroup>)serial.Deserialize(\"All-Groups-backup\");\n System.out.println(\"READING FROM BACKUP SUCCESSFUL\");\n loadSuccessful = true;\n } catch (IOException ex)\n {\n //If reading from backup fails aswell generate default data\n System.out.println(\"READING FROM BACKUP FAILED\");\n allGroups = new ArrayList();\n } catch (ClassNotFoundException ex){}\n } catch (ClassNotFoundException e){}\n }", "public void cleanupData() {\n\t}", "@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void setBuildOrder() {\n\t\tqueueBuild(false, UpgradeType.Protoss_Ground_Armor);\r\n\t}", "void minecraftChunkLoaded() {\n\t\tthis.lastLoadingTime = System.currentTimeMillis();\n\t}", "protected void clearData() {\n getValues().clear();\n getChildIds().clear();\n getBTreeMetaData().setDirty(this);\n }", "private synchronized void update() {\n if (upToDate) return; // nothing to do\n productionAndConsumption.clear();\n netProduction.clear();\n goodsUsed.clear();\n ProductionMap production = new ProductionMap();\n for (ColonyTile colonyTile : colony.getColonyTiles()) {\n List<AbstractGoods> p = colonyTile.getProduction();\n if (!p.isEmpty()) {\n production.add(p);\n ProductionInfo info = new ProductionInfo();\n info.addProduction(p);\n productionAndConsumption.put(colonyTile, info);\n for (AbstractGoods goods : p) {\n goodsUsed.add(goods.getType());\n netProduction.incrementCount(goods.getType().getStoredAs(), goods.getAmount());\n }\n }\n }\n\n GoodsType bells = colony.getSpecification().getGoodsType(\"model.goods.bells\");\n int unitsThatUseNoBells = colony.getSpecification().getInteger(\"model.option.unitsThatUseNoBells\");\n int amount = Math.min(unitsThatUseNoBells, colony.getUnitCount());\n ProductionInfo bellsInfo = new ProductionInfo();\n bellsInfo.addProduction(new AbstractGoods(bells, amount));\n productionAndConsumption.put(this, bellsInfo);\n netProduction.incrementCount(bells, amount);\n\n for (Consumer consumer : colony.getConsumers()) {\n Set<Modifier> modifier = consumer.getModifierSet(\"model.modifier.consumeOnlySurplusProduction\");\n List<AbstractGoods> goods = new ArrayList<AbstractGoods>();\n for (AbstractGoods g : consumer.getConsumedGoods()) {\n goodsUsed.add(g.getType());\n AbstractGoods surplus = new AbstractGoods(production.get(g.getType()));\n if (modifier.isEmpty()) {\n surplus.setAmount(surplus.getAmount() + getGoodsCount(g.getType()));\n } else {\n surplus.setAmount((int) FeatureContainer.applyModifierSet(surplus.getAmount(),\n null, modifier));\n }\n goods.add(surplus);\n }\n ProductionInfo info = null;\n if (consumer instanceof Building) {\n Building building = (Building) consumer;\n AbstractGoods output = null;\n GoodsType outputType = building.getGoodsOutputType();\n if (outputType != null) {\n goodsUsed.add(outputType);\n output = new AbstractGoods(production.get(outputType));\n output.setAmount(output.getAmount() + getGoodsCount(outputType));\n }\n info = building.getProductionInfo(output, goods);\n } else if (consumer instanceof Unit) {\n info = ((Unit) consumer).getProductionInfo(goods);\n } else if (consumer instanceof BuildQueue) {\n info = ((BuildQueue<?>) consumer).getProductionInfo(goods);\n }\n if (info != null) {\n production.add(info.getProduction());\n production.remove(info.getConsumption());\n for (AbstractGoods g : info.getProduction()) {\n netProduction.incrementCount(g.getType().getStoredAs(), g.getAmount());\n }\n for (AbstractGoods g : info.getConsumption()) {\n netProduction.incrementCount(g.getType().getStoredAs(), -g.getAmount());\n }\n productionAndConsumption.put(consumer, info);\n }\n }\n this.productionAndConsumption = productionAndConsumption;\n this.netProduction = netProduction;\n upToDate = true;\n }", "public void markAsUpToDate() {\n\t\tlog.debug(\"No chain to catch up.\");\n\t\tupToDate = true;\n\t}", "void updateIfNeeded()\n throws Exception;", "protected void recheckDirty ()\n {\n // refresh the 'gbox' in each manager, the GroupItem will toString() differently if dirty\n for (int ii = 0, nn = _tabs.getComponentCount(); ii < nn; ii++) {\n SwingUtil.refresh(((ManagerPanel)_tabs.getComponentAt(ii)).gbox);\n }\n }", "private void checkAndModifySize() {\r\n if (size == data.length * LOAD_FACTOR) {\r\n resizeAndTransfer();\r\n }\r\n }", "void check(){\n if(!data.up.isEmpty()){\r\n if(data.floor == data.up.get(0)){\r\n data.up.remove(0);\r\n data.state = 0;\r\n data.statePrv = 1;\r\n data.isMoving = false;\r\n }\r\n }\r\n if(!data.down.isEmpty()){\r\n if(data.floor == data.down.get(0)){\r\n data.down.remove(0);\r\n data.state = 0;\r\n data.statePrv = -1;\r\n data.isMoving = false;\r\n }\r\n }\r\n }", "public void updateStructure()\n\t{\n\t\tboolean itWorked = true;\n\t\t\n\t\t// Get block's rotational information as a ForgeDirection\n\t\tForgeDirection rotation = ForgeDirection.getOrientation(Utils.backFromMeta(worldObj.getBlockMetadata(xCoord, yCoord, zCoord)));\n\t\t\n\t\t//\n\t\t// Step one: validate all blocks\n\t\t//\n\t\t\n\t\t// Get the MachineStructures from the MachineStructureRegistrar\n\t\t// But if the machine is already set up it should only check the desired structure.\n\t\tfor (MachineStructure struct : (structureComplete() ? MachineStructureRegistrar.getStructuresForMachineID(getMachineID()) : MachineStructureRegistrar.getStructuresForMachineID(getMachineID())))\n\t\t{\n\t\t\t// Check each block in requirements\n\t\t\tfor (PReq req : struct.requirements)\n\t\t\t{\n\t\t\t\t// Get the rotated block coordinates.\n\t\t\t\tBlockPosition pos = req.rel.getPosition(rotation, xCoord, yCoord, zCoord);\n\n\t\t\t\t// Check the requirement.\n\t\t\t\tif (!req.requirement.isMatch(tier, worldObj, pos.x, pos.y, pos.z, xCoord, yCoord, zCoord))\n\t\t\t\t{\n\t\t\t\t\t// If it didn't work, stop checking.\n\t\t\t\t\titWorked = false; break;\n\t\t\t\t}\n\t\t\t\t// If it did work keep calm and carry on\n\t\t\t}\n\t\t\t\n\t\t\t// We've gone through all the blocks. They all match up!\n\t\t\tif (itWorked)\n\t\t\t{\n\t\t\t\t// **If the structure is new only**\n\t\t\t\t// Which implies the blocks have changed between checks\n\t\t\t\tif (struct.ID != structureID)\n\t\t\t\t{\n\t\t\t\t\t//\n\t\t\t\t\t// This is only called when structures are changed/first created.\n\t\t\t\t\t//\n\t\t\t\t\t\n\t\t\t\t\t// Save what structure we have.\n\t\t\t\t\tstructureID = struct.ID;\n\t\t\t\t\t\n\t\t\t\t\t// Make an arraylist to save all teh structures\n\t\t\t\t\tArrayList<StructureUpgradeEntity> newEntities = new ArrayList<StructureUpgradeEntity>();\n\n\t\t\t\t\t// Tell all of the blocks to join us!\n\t\t\t\t\tfor (PReq req : struct.requirements)\n\t\t\t\t\t{\n\t\t\t\t\t\t// Get the blocks that the structure has checked.\n\t\t\t\t\t\tBlockPosition pos = req.rel.getPosition(rotation, xCoord, yCoord, zCoord);\n\t\t\t\t\t\tBlock brock = worldObj.getBlock(pos.x, pos.y, pos.z); if (brock == null) continue;\n\n\t\t\t\t\t\tif (brock instanceof IStructureAware)\n\t\t\t\t\t\t\t((IStructureAware)brock).onStructureCreated(worldObj, pos.x, pos.y, pos.z, xCoord, yCoord, zCoord);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Check the tile entity for upgrades\n\t\t\t\t\t\tTileEntity ent = worldObj.getTileEntity(pos.x, pos.y, pos.z);\n\t\t\t\t\t\tif (ent != null && ent instanceof StructureUpgradeEntity)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tStructureUpgradeEntity structEnt = (StructureUpgradeEntity)ent;\n\t\t\t\t\t\t\tnewEntities.add(structEnt);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/* // Not sure about this.\n\t\t\t\t\t\t\tif (structEnt.coreX != xCoord && structEnt.coreY != yCoord && structEnt.coreZ != zCoord)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tstructEnt.onCoreConnected()\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t*/\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// do stuff with that\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// I haven't figured out how the hell to do toArray() in this crap\n\t\t\t\t\t// so here's a weird combination of iterator and for loop\n\t\t\t\t\tupgrades = new StructureUpgradeEntity[newEntities.size()];\n\t\t\t\t\tfor (int i = 0; i < newEntities.size(); i++)\n\t\t\t\t\t\tupgrades[i] = newEntities.get(i);\n\n\t\t\t\t\t// Tell all of the structure blocks to stripe it up!\n\t\t\t\t\tfor (RelativeFaceCoords relPos : struct.relativeStriped)\n\t\t\t\t\t{\n\t\t\t\t\t\tBlockPosition pos = relPos.getPosition(rotation, xCoord, yCoord, zCoord);\n\t\t\t\t\t\tBlock brock = worldObj.getBlock(pos.x, pos.y, pos.z);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// If it's a structure block tell it to stripe up\n\t\t\t\t\t\tif (brock != null && brock instanceof StructureBlock)\n\t\t\t\t\t\t\tworldObj.setBlockMetadataWithNotify(pos.x, pos.y, pos.z, 2, 2);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// If not, reset the loop and try again.\n\t\t\telse { itWorked = true; continue; }\n\t\t}\n\t\t\n\t\t//\n\t\t// None of the structures worked!\n\t\t//\n\t\t\n\t\t// If we had a structure before, we need to clear it\n\t\tif (structureComplete())\n\t\t{\n\t\t\tfor (PReq req : MachineStructureRegistrar.getMachineStructureByID(structureID).requirements)\n\t\t\t{\n\t\t\t\tBlockPosition pos = req.rel.getPosition(rotation, xCoord, yCoord, zCoord);\n\t\t\t\tBlock brock = worldObj.getBlock(pos.x, pos.y, pos.z);\n\t\t\t\t\n\t\t\t\t// This will also un-stripe all structure blocks.\n\t\t\t\tif (brock instanceof IStructureAware)\n\t\t\t\t\t((IStructureAware)brock).onStructureBroken(worldObj, pos.x, pos.y, pos.z, xCoord, yCoord, zCoord);\n\t\t\t}\n\t\t\t// We don't have a structure.\n\t\t\tstructureID = null;\n\t\t}\n\t\t\n\t}", "public void markEverythingDirty() {\n fullUpdate = true;\n }", "private void fullBuild() throws CoreException {\n \t\ttry {\n \t\t\tIFolder sortedFolder = getSortedFolder();\n \t\t\tIFolder unsortedFolder = getUnsortedFolder();\n \n \t\t\tif (sortedFolder.exists()) {\n \t\t\t\t//delete all sorted files\n \t\t\t\tIResource[] members = sortedFolder.members();\n \t\t\t\tfor (int i = 0; i < members.length; i++) {\n \t\t\t\t\tdeleteResource(members[i]);\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tif (unsortedFolder.exists()) {\n \t\t\t\tfullBuild(unsortedFolder);\n \t\t\t}\n \t\t} catch (Exception e) {\n \t\t\tthrow new ResourceException(IResourceStatus.BUILD_FAILED, null, \"Sort builder failed\", e);\n \t\t}\n \t}", "private boolean updateBufferList() {\n while(!data.isEmpty() && availableFirst() == 0) {\n popBuffer();\n }\n return !data.isEmpty();\n }", "private void updateStatusInternal(){\n\t\tFile dataPath = Environment.getDataDirectory();\n\t\tStatFs stat = new StatFs(dataPath.getPath());\n\t\tlong blockSize = stat.getBlockSize();\n\t\tlong availableBlocks = stat.getAvailableBlocks();\n\t\t//show the space of internal storage\n\t\tmExternalTotalSpace=formatSize(availableBlocks * blockSize);\n\t}", "public void updateData() {}", "public boolean isFull() {\n return false;\n }", "public void clearAllVersions() {\n for (Integer varIndex : _dataMap.keySet()) {\n List<Data> dataList = _dataMap.get(varIndex);\n while (dataList.size() > 1) {\n dataList.remove(0);\n }\n }\n }", "protected void levelUp() {\n\t\tlevel++;\n\t\t// set up floors for next level\n\t\tint[] nextFloors = floors[level];\n\t\tint[] nextFurnishing = furnishings[level];\n\t\tfor(int i = 0; i < nextFloors.length; i++) {\n\t\t\tFloor newFloor = game.getFloorByKey(nextFloors[i]);\n\t\t\ttiles[i].setFloor(newFloor);\n\t\t\tif(nextFurnishing[i] != 0) {\n\t\t\t\tFurnishingDirectory newFurn = game.getFurnishingByKey(nextFurnishing[i]);\n\t\t\t\tnew Furnishing(newFurn, tiles[i]);\n\t\t\t}\n\t\t}\n\t}", "public void buyHullUpgrade()\n {\n if(play_state.getMoney() >= hull_upgrade_cost) {\n play_state.setMoney(play_state.getMoney() - hull_upgrade_cost);\n hull_upgrade_cost += 100;\n play_state.getDriller().addMax_health(10);\n\n }\n }", "abstract void initializeNeededData();", "public synchronized void generateLevel(Game game, int levelPack, int levelNumber) {\n\t\tInputStream in = null;\n\t\tString levelCode = levelPack + \"-\" + levelNumber;\n\t\ttry {\n\t\t\tin = game.getFileIO().readAsset(\"level\" + levelCode + \".txt\");\n\t\t\tList<String> layers = readLines(in);\n\t\t\t//set world height\n\t\t\tWORLD_HEIGHT = layers.size();\n\t\t\t\n\t\t\tfor(float i = 0, y = 0.5f + layers.size() - 1; i < layers.size(); i++, y -= 1) {\n\t\t\t\tString layer = layers.get((int)i);\n\t\t\t\t\n\t\t\t\tfor(float j = 0, x = 0.5f; j < layer.length(); j++, x += 1) {\n\t\t\t\t\tif(x > tempWidth) {\n\t\t\t\t\t\ttempWidth = x + 0.5f;\n\t\t\t\t\t}\n\t\t\t\t\tchar tile = layer.charAt((int)j);\n\t\t\t\t\t\n\t\t\t\t\tif(tile == 'T') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t} else if(tile == 'L') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t\tleftXLimit = x - 0.5f;\n\t\t\t\t\t} else if(tile == 'l') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t\trightXLimit = x + 0.5f;\n\t\t\t\t\t} else if(tile == 'M') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t\tminXLimit = x - 0.5f;\n\t\t\t\t\t} else if(tile == 'U') {\n\t\t\t\t\t\tSpike upSpike = new Spike(x, y);\n\t\t\t\t\t\tupSpikes.add(upSpike);\n\t\t\t\t\t} else if(tile == 'V') {\n\t\t\t\t\t\tSpike downSpike = new Spike(x, y);\n\t\t\t\t\t\tdownSpikes.add(downSpike);\n\t\t\t\t\t} else if(tile == 'R') {\n\t\t\t\t\t\tSpike rightSpike = new Spike(x, y);\n\t\t\t\t\t\trightSpikes.add(rightSpike);\n\t\t\t\t\t} else if(tile == 'J') {\n\t\t\t\t\t\tSpike leftSpike = new Spike(x, y);\n\t\t\t\t\t\tleftSpikes.add(leftSpike);\n\t\t\t\t\t} else if(tile == 'D') {\n\t\t\t\t\t\tDiamond diamond = new Diamond(x, y);\n\t\t\t\t\t\tdiamondBlocks.add(diamond);\n\t\t\t\t\t} else if(tile == 'G') {\n\t\t\t\t\t\tGold gold = new Gold(x, y);\n\t\t\t\t\t\tgoldBlocks.add(gold);\n\t\t\t\t\t} else if(tile == 'S') {\n\t\t\t\t\t\tSilver silver = new Silver(x, y);\n\t\t\t\t\t\tsilverBlocks.add(silver);\n\t\t\t\t\t} else if(tile == 'P') {\n\t\t\t\t\t\tplayer = new Player(x, y);\n\t\t\t\t\t\tplayer.velocity.y = 1;\n\t\t\t\t\t\trespawnPoint = new Vector2(x, y);\n\t\t\t\t\t} else if(tile == 'C') {\n\t\t\t\t\t\tCheckpoint checkpoint = new Checkpoint(x, y);\n\t\t\t\t\t\tcheckpoints.add(checkpoint);\n\t\t\t\t\t} else if(tile == 'F') {\n\t\t\t\t\t\tEndingFlag eflag = new EndingFlag(x, y);\n\t\t\t\t\t\teflags.add(eflag);\n\t\t\t\t\t} else if(tile == '#') {\n\t\t\t\t\t\tworldNumberG = (int)Math.ceil(y);\n\t\t\t\t\t\tlevelNumberG = (int)Math.ceil(x);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t\t\n\t\t\t//set max found width across map to permanent width for current world\n\t\t\tWORLD_WIDTH = tempWidth;\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t}\n\t}", "public boolean fullCommitNeeded ()\n {\n return true;\n }", "public void updateDataComp() {\n\t\tdataEntryDao.updateDataComp();\n\t}", "private void clearFullTree()\r\n {\r\n fullXmlTree = new StringBuilder();\r\n }", "public void refresh(){\n totalSpace = drv.getTotalSpace();\n freeSpace = drv.getUsableSpace();\n checkSetup();\n }", "public void FinishTheGame(){\r\n if(blockList.HasNoBlocks()){\r\n gamePage.NextLevel();\r\n }\r\n }", "public abstract void levelComplete();", "public void updata() {\n\t\tif (ReaderDataBase.search(this, \"LastReadProcess\", mFilenameString) == 0) {\n\t\t\tReaderDataBase.insertDataBase(this, \"LastReadProcess\",\n\t\t\t\t\tmFilenameString, BookPageFactory.sPercent);\n\t\t} else {\n\t\t\tReaderDataBase.upData(this, \"LastReadProcess\", mFilenameString,\n\t\t\t\t\tBookPageFactory.sPercent);\n\t\t}\n\t}", "public void initAfterUnpersistence() {\n //From a legacy bundle\n if (sources == null) {\n sources = Misc.newList(getName());\n }\n super.initAfterUnpersistence();\n openData();\n }", "private void tryARender() {\n \t\tif (Minecraft.theMinecraft.thePlayer == null)\n \t\t\treturn;\n \t\ttry {\n \t\t\tif (MinimapConfig.getInstance().isEnabled() && map.isDirty(Minecraft.theMinecraft.thePlayer.posX, Minecraft.theMinecraft.thePlayer.posZ)) {\n \t\t\t\tmapCalc();\n \t\t\t\tmap.timer = 1;\n \t\t\t}\n \t\t} catch (RuntimeException e) {\n \t\t\tthrow e;\n \t\t} finally {\n \t\t\tmap.timer++;\n \t\t}\n \t}", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "void freeze() {\n setState(State.FROZEN); // prevent new puts to this chunk\n while (pendingOps.get() != 0) ;\n }", "void loadAll() {\n\t\tsynchronized (this) {\n\t\t\tif (isFullyLoaded) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfor (Entry<Integer, Supplier<ChunkMeta<?>>> generator : ChunkMetaFactory.getInstance()\n\t\t\t\t\t.getEmptyChunkFunctions()) {\n\t\t\t\tChunkMeta<?> chunk = generator.getValue().get();\n\t\t\t\tchunk.setChunkCoord(this);\n\t\t\t\tchunk.setPluginID(generator.getKey());\n\t\t\t\ttry {\n\t\t\t\t\tchunk.populate();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// need to catch everything here, otherwise we block the main thread forever\n\t\t\t\t\t// once it tries to read this\n\t\t\t\t\tCivModCorePlugin.getInstance().getLogger().log(Level.SEVERE, \n\t\t\t\t\t\t\t\"Failed to load chunk data\", e);\n\t\t\t\t}\n\t\t\t\taddChunkMeta(chunk);\n\t\t\t}\n\t\t\tisFullyLoaded = true;\n\t\t\tthis.notifyAll();\n\t\t}\n\t}", "private void refreshStock(){\n storeStock = sysMgr.getStock(sysMgr.getLoginId());\n ArrayList<Stock> nonEmpty = new ArrayList<>();\n for(Stock i : storeStock)\n if(i.getQuantity() != 0)\n nonEmpty.add(i);\n storeStock = nonEmpty;\n }", "public void updateFrame() {\n if (level != null) {\n for (GameEntity entity : entities) entity.update(this);\n pacman.update(this);\n checkCollisions();\n }\n }", "public void doPack() {\n this._sendData = new byte[1];\n this._sendData[0] = 1;\n }", "@Override\n public void update() {\n updateBuffs();\n }", "public boolean isFull() {\r\n\t\treturn false;\r\n\t}", "public void clearNewDataAvailableFlag(String key)\n\t{\n\t\tsynchronized(mSyncStatusMap)\n\t\t{\n\t\t\tif(mSyncStatusMap.containsKey(key))\n\t\t\t{\n\t\t\t\tmSyncStatusMap.put(key, false);\n\t\t\t}\n\t\t}\n\t}", "public static void backUpLevel() {\n\n\t\t// if we are trying to backup when we are on the first level at the last\n\t\t// position,\n\t\t// then we are done\n\t\tif (jobsChosen == 1 && currentCombo[0] == numPeople) {\n\t\t\tdone = true;\n\t\t\treturn;\n\t\t}\n\n\t\tif (jobsChosen > 1) {\n\t\t\tcurrentCombo[jobsChosen - 1] = 0;// reset last row\n\t\t\tjobsChosen--;\n\n\t\t\tdo {\n\t\t\t\tcurrentCombo[jobsChosen - 1]++;\n\t\t\t} while (!checkRows() && currentCombo[jobsChosen - 1] < numPeople);\n\t\t\t\n\t\t} else {\n\t\t\tcurrentCombo[0]++;// increment top row\n\t\t\tjobsChosen--;\n\t\t}\n\n\t}", "public void fill(ArrayList<Package> warehousePackages) {\n\n int range = 0;\n int counter = 0;\n boolean isTrue = true;\n int size = warehousePackages.size();\n int[] change = new int[size];\n for (int i = 0; i < size; i++) {\n change[i] = Math.abs(warehousePackages.get(i).getDestination().getZipCode() - getZipDest());\n }\n Arrays.sort(change);\n while (isTrue) {\n for (int i = 0; i < warehousePackages.size(); i++) {\n if (range > 99999){\n isTrue = false;\n break;\n } else if (isFull() || size == counter) {\n isTrue = false;\n break;\n } else {\n int difference = Math.abs(warehousePackages.get(i).getDestination().getZipCode() - getZipDest());\n if (Math.abs(difference) <= range) {\n if (!getPackages().contains(warehousePackages.get(i))) {\n counter++;\n if (addPackage(warehousePackages.get(i))) {\n System.out.println(warehousePackages.get(i).getID() + \" has been added.\");\n maxRange = difference;\n } else {\n isTrue = false;\n break;\n }\n }\n }\n }\n\n }\n range += 10;\n\n }\n for (Package p : getPackages()) {\n Warehouse.pkgs.remove(p);\n }\n }", "private void checkUpdateAvailability() {\n\t\t\n\t\t// Grab the data from the device and manifest\n\t\tString currentVersion = Utils.getProp(\"ro.ota.version\");\n\t\tcurrentVersion = currentVersion.replaceAll(\"[^0-9]\", \"\"); // Strip anyhting not a number\n\t\tString manifestVer = results.getVersion();\n\t\tmanifestVer = manifestVer.replaceAll(\"[^0-9]\", \"\");\n\n\t\t// Parse ints\n\t\tint manifestNumber = Integer.parseInt(manifestVer);\n\t\tint currentNumber = Integer.parseInt(currentVersion);\n\t\t\n\t\t// Pad out to be at least 5 digits long\n\t\t// That way, 1.2 shows bigger than 1.1.1\n\t\t// Because 12000 > 11100\n\t\t// Without this it would show 12 > 111\n\t\tif(manifestVer.length() <= 2){\n\t\t\tmanifestNumber *= 1000;\n\t\t} else if(manifestVer.length() <= 3) {\n\t\t\tmanifestNumber *= 100;\n\t\t} else if(manifestVer.length() <= 4) {\n\t\t\tmanifestNumber *= 10;\n\t\t}\n\t\t\n\t\t// Same again\n\t\tif(currentVersion.length() <= 2){\n\t\t\tcurrentNumber *= 1000;\n\t\t} else if(currentVersion.length() <= 3) {\n\t\t\tcurrentNumber *= 100;\n\t\t} else if(currentVersion.length() <= 4) {\n\t\t\tcurrentNumber *= 10;\n\t\t}\n\t\t\n\t\t// Set pref\n\t\tPreferences.setUpdateAvailable(mContext, manifestNumber > currentNumber);\n\t}", "private DynamicBlockUpdate removeAll(int packed) {\r\n \t\tDynamicBlockUpdate oldRoot = blockToUpdateMap.remove(packed);\r\n \t\tif (oldRoot == null) {\r\n \t\t\treturn null;\r\n \t\t}\r\n \r\n \t\tDynamicBlockUpdate current = oldRoot;\r\n \t\twhile (current != null) {\r\n \t\t\tif (!queuedUpdates.remove(current)) {\r\n \t\t\t\tthrow new IllegalStateException(\"Dynamic block update missing from queue when removed\");\r\n \t\t\t}\r\n \t\t\tint previousPacked = current.getChunkPacked();\r\n \t\t\tHashSet<DynamicBlockUpdate> chunkSet = chunkToUpdateMap.get(previousPacked);\r\n \t\t\tif (chunkSet == null || !chunkSet.remove(current)) {\r\n \t\t\t\tthrow new IllegalStateException(\"Dynamic block update missing from chunk when removed\");\r\n \t\t\t}\r\n \r\n \t\t\tif (chunkSet.size() == 0) {\r\n \t\t\t\tif (chunkToUpdateMap.remove(previousPacked) == null) {\r\n \t\t\t\t\tthrow new IllegalStateException(\"Removing updates for dynamic block updates violated threading rules\");\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tcurrent = current.getNext();\r\n \t\t}\r\n \t\treturn oldRoot;\r\n \t}", "public void clearMissing()\n\t\t{\n\t\t\tm_missingInformation.clear();\n\t\t}", "public boolean isFull() {\n\t\treturn false;\n\t}", "public synchronized void updateData() {\n updateDataFields(this::defaultFetcher);\n }", "public boolean isFull(){\n\t\treturn false;\n\t}", "public void clearUpadted() {\n this.updated = false;\n }", "public boolean isUpToDate() {\n return false;\n }", "public void prepareForSnapshot() {\n if (readMap != null)\n return;\n\n readMap = new TreeMap<>();\n\n for (Map.Entry<GroupPartitionId, PagesAllocationRange> entry : writeMap.entrySet()) {\n if (!skippedParts.contains(entry.getKey()))\n readMap.put(entry.getKey(), entry.getValue());\n }\n\n skippedParts.clear();\n writeMap.clear();\n }", "private void CheckStructureIntegrity() {\n int size = 0;\n for (Module mod : modules) {\n size += mod.getAddresses().size();\n logger.info(\"BBS : {} Module {}\", mod.getAddresses().size(), mod.getName());\n }\n logger.info(\"Total BBS : {}\", size);\n }", "public void diskUpdate(FlockInfo info) {\n/*\nudanax-top.st:16740:FakePacker methodsFor: 'shepherds'!\n{void} diskUpdate: info {FlockInfo | NULL} \n\t\"The flock identified by token is Dirty!! On some later commit, write it to the disk.\"!\n*/\n}", "public void refreshDataPacket() {\n ByteBuf buffer = PacketUtils.writePacket(getFreshFullDataPacket());\n setFullDataPacket(buffer);\n }" ]
[ "0.5651242", "0.5562175", "0.5373313", "0.530713", "0.53039765", "0.52693176", "0.5196739", "0.5196739", "0.5189183", "0.51795274", "0.5167402", "0.51234275", "0.5113189", "0.5058862", "0.5036405", "0.5020729", "0.5012904", "0.49870616", "0.4980579", "0.49657166", "0.49537843", "0.49449483", "0.49360758", "0.49239594", "0.49029297", "0.48920035", "0.4885447", "0.48843354", "0.48743057", "0.4865926", "0.48577297", "0.48517314", "0.48240745", "0.4816357", "0.4814752", "0.4813178", "0.48131752", "0.48118004", "0.4810296", "0.48007205", "0.4785402", "0.4774837", "0.475137", "0.4749426", "0.4746758", "0.47443393", "0.47440878", "0.4742604", "0.47366554", "0.47184974", "0.47105375", "0.47101417", "0.47091883", "0.46938887", "0.4682049", "0.46790773", "0.46749339", "0.46708372", "0.4664115", "0.46639588", "0.46626985", "0.4658695", "0.4657621", "0.46552905", "0.46542782", "0.46530545", "0.46479583", "0.46477407", "0.46474022", "0.46470946", "0.46455386", "0.46395656", "0.4638927", "0.4638927", "0.4638927", "0.4638927", "0.4638927", "0.4638927", "0.4637689", "0.4632688", "0.46260095", "0.46219975", "0.4598285", "0.45938113", "0.45905778", "0.45889372", "0.45851487", "0.45828173", "0.45805904", "0.45789245", "0.45788848", "0.45777637", "0.45769498", "0.45731226", "0.45719966", "0.456944", "0.4568876", "0.45604423", "0.4558703", "0.45543784" ]
0.5761674
0
Saves this LevelPack to the indicated file name.
public void toFile(String filename) { String serialized = Serializer.serializeLevelPack(this); Serializer.writeToFile(filename, serialized.getBytes()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void save() {\n Game.save(UI.askNgetString(\"Filename for this save file?\")+\".xml\");\n }", "@Override\n\tpublic void save(String file_name) {\n\t\tserialize(file_name);\n\t}", "public final void saveToFile() {\n\t\tWrite.midi(getScore(), getName()+\".mid\"); \n\t}", "void save(String fileName);", "public void save(String fileName) throws IOException;", "void save(String filename);", "public void save() {\n final JFileChooser fileChooser =\n new JFileChooser(System.getProperty(\"user.dir\"));\n try {\n fileChooser.setSelectedFile(new File(\"save.ser\"));\n int saveFile = fileChooser.showSaveDialog(GameFrame.this);\n\n if (saveFile == JFileChooser.APPROVE_OPTION) {\n File saveGame = fileChooser.getSelectedFile();\n FileOutputStream fileOut = new FileOutputStream(saveGame);\n ObjectOutputStream objOut = new ObjectOutputStream(fileOut);\n objOut.writeObject(world);\n objOut.close();\n fileOut.close();\n System.out.println(\"Game saved.\");\n } else {\n return;\n }\n } catch (IOException i) {\n i.printStackTrace();\n }\n\n }", "public void save(final String name) {\r\n\t\tsave(new File(name));\r\n\t}", "public void SaveLevel(Level level, String LevelName) {\r\n\t\tString LevelString;\r\n\t\tint i = 0;\r\n\t\tLevelString = new String();\r\n\t\tLevelString = level.toString();\r\n\t\tBufferedWriter writer = null;\r\n\t\ttry {\r\n\t\t\twriter = new BufferedWriter(new FileWriter(LevelName.toString()));\r\n\t\t\twriter.write(level.getName());\r\n\t\t\twhile (LevelString.length() != i) {\r\n\t\t\t\tfor (i = 0; i < LevelString.length(); i++) {\r\n\t\t\t\t\tif (LevelString.charAt(i) != 10) {\r\n\t\t\t\t\t\twriter.write(LevelString.charAt(i));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\twriter.newLine();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\twriter.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public void save() {\n\t\tWriteFile data = new WriteFile( this.name + \".txt\" );\n\t\ttry {\n\t\t\t data.writeToFile(this.toString());\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"Couldn't print to file\");\n\t\t}\n\t}", "void saveGameState(File saveName);", "void saveToFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile target = new File(directory, FILE_NAME);\n\t\t\tif (!target.exists()) {\n\t\t\t\ttarget.createNewFile();\n\t\t\t}\n\t\t\tJsonWriter writer = new JsonWriter(new FileWriter(target));\n\t\t\twriter.setIndent(\" \");\n\t\t\twriter.beginArray();\n\t\t\tfor (Scoreboard scoreboard : scoreboards.values()) {\n\t\t\t\twriteScoreboard(writer, scoreboard);\n\t\t\t}\n\t\t\twriter.endArray();\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void save() {\n\t\tlog.log(\"Attempting to save...\");\n\t\tPath spath = Paths.get(getFullSavePath());\n\t\tPath cpath = Paths.get(getFullSavePath() + \"units/\");\n\t\ttry {\n\t\t\tif(!Files.exists(spath))\n\t\t\t\tFiles.createDirectory(spath);\n\t\t\tif(!Files.exists(cpath))\n\t\t\t\tFiles.createDirectory(cpath);\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tlog.log(\"Save failed.\");\n\t\t\treturn;\n\t\t}\n\n\t\tFile[] files = new File(cpath.toString()).listFiles();\n\t\tfor(File f : files) {\n\t\t\tf.delete();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tBufferedWriter mfestWriter = new BufferedWriter(new FileWriter(getFullSavePath() + \"progress.txt\"));\n\t\t\tmfestWriter.write(name);\n\t\t\tmfestWriter.close();\n\t\t\tfor(MapCharacter mc : getFriendlies()) {\n\t\t\t\tBufferedWriter charWriter = new BufferedWriter(new FileWriter(getFullSavePath() + \"units/\"\n\t\t\t\t\t\t+ mc.getEnclosed().getDirName()));\n\t\t\t\tcharWriter.write(mc.getEnclosed().save());\n\t\t\t\tcharWriter.close();\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tlog.log(\"Save failed.\");\n\t\t\treturn;\n\t\t}\n\t\tlog.log(\"Game saved.\");\n\t}", "public void saveGame(File fileLocation);", "void savePreset(String name);", "void saveToFile(String filename) throws IOException;", "public void save() {\n JAXB.marshal(this, new File(fileName));\n }", "public static void saveGame(Puzzle puzzle, String name) throws IOException {\n FileWriter wr;\n File file = new File(System.getenv(\"APPDATA\")+\"\\\\SudokuGR04\\\\\" + name + \".txt\");\n wr = new FileWriter(file);\n puzzle.setName(name);\n try {\n //generate File in dir SudokuGR04\n wr.write(puzzle.export());\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n wr.close();\n }\n }", "void save_to_file() {\n\t\tthis.setAlwaysOnTop(false);\n\t\t\n\t\t/**\n\t\t * chose file with file selector \n\t\t */\n\t\t\n\t\tFileDialog fd = new FileDialog(this, \"Choose a save directory\", FileDialog.SAVE);\n\t\t\n\t\t//default path is current directory\n\t\tfd.setDirectory(System.getProperty(\"user.dir\"));\n\t\tfd.setFile(\"*.cmakro\");\n\t\tfd.setVisible(true);\n\t\t\n\t\t\n\t\tString filename = fd.getFile();\n\t\tString path = fd.getDirectory();\n\t\tString file_withpath = path + filename;\n\t\t\n\t\tif (filename != null) {\n\t\t\t System.out.println(\"save path: \" + file_withpath);\n\t\t\t \n\t\ttry {\n\t\t\tObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(file_withpath));\n\n\t\t\tout.writeObject(Key_Lists);\n\t\t\t\n\t\t\tout.close();\n\t\t\t\n\t\t\tinfo_label.setForeground(green);\n\t\t\tinfo_label.setText(\"file saved :D\");\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tthis.setAlwaysOnTop(true);\n\t\t\n\t}", "void saveAs() {\n writeFile.Export();\n }", "private void saveToFile(){\n this.currentMarkovChain.setMarkovName(this.txtMarkovChainName.getText());\n saveMarkovToCSVFileInformation();\n \n //Save to file\n Result result = DigPopGUIUtilityClass.saveDigPopGUIInformationSaveFile(\n this.digPopGUIInformation,\n this.digPopGUIInformation.getFilePath());\n }", "public void saveGame(String fileName){\n try {\n File file1 = new File(fileName);\n FileOutputStream fileOutputStream = new FileOutputStream(file1);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\n objectOutputStream.writeObject(this);\n }catch (Exception e){\n System.err.println(\"Error when saving file\");\n }\n }", "public void saveGame(){\n updateProperties();\n try {\n output = new FileOutputStream(fileName);\n properties.store(output, null); //saving properties to file\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO SAVE GAME ---\");\n e.printStackTrace();\n } finally {\n if (output != null) {\n try {\n output.close();\n System.out.println(\"--- GAME SAVED ---\");\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO CLOSE OUTPUT ---\");\n e.printStackTrace();\n }\n }\n }\n }", "public Save(Player player, String worldname) {\n\t\tthis(player.game, \"/saves/\" + worldname + \"/\");\r\n\t\t\r\n\t\twriteGame(\"Game\");\n\t\t//writePrefs(\"KeyPrefs\");\r\n\t\twriteWorld(\"Level\");\r\n\t\twritePlayer(\"Player\", player);\r\n\t\twriteInventory(\"Inventory\", player);\r\n\t\twriteEntities(\"Entities\");\r\n\t\t\r\n\t\tGame.notifications.add(\"World Saved!\");\r\n\t\tplayer.game.asTick = 0;\r\n\t\tplayer.game.saving = false;\r\n\t}", "public void save() {\n // Convert the settings to a string\n String output = readSettings();\n \n try {\n // Make sure the file exists\n if (!settingsFile.exists()) {\n File parent = settingsFile.getParentFile();\n parent.mkdirs();\n settingsFile.createNewFile(); \n }\n \n // Write the data into the file\n BufferedWriter writer = new BufferedWriter(new FileWriter(settingsFile));\n writer.write(output);\n writer.close(); \n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void save() {\r\n IniReader.write(FILE_NAME, \"x\", x, \"y\", y, \"fullscreen\", fullscreen, \"controlType\", controlType, \"vol\", volMul,\r\n \"keyUpMouse\", getKeyUpMouseName(), \"keyDownMouse\", getKeyDownMouseName(), \"keyUp\", getKeyUpName(), \"keyDown\", keyDownName,\r\n \"keyLeft\", keyLeftName, \"keyRight\", keyRightName, \"keyShoot\", keyShootName, \"keyShoot2\", getKeyShoot2Name(),\r\n \"keyAbility\", getKeyAbilityName(), \"keyEscape\", getKeyEscapeName(), \"keyMap\", keyMapName, \"keyInventory\", keyInventoryName,\r\n \"keyTalk\", getKeyTalkName(), \"keyPause\", getKeyPauseName(), \"keyDrop\", getKeyDropName(), \"keySellMenu\", getKeySellMenuName(),\r\n \"keyBuyMenu\", getKeyBuyMenuName(), \"keyChangeShipMenu\", getKeyChangeShipMenuName(), \"keyHireShipMenu\", getKeyHireShipMenuName());\r\n }", "private void saveFile() {\r\n\t\tFile file = new File(this.picture.getFileName());\r\n\r\n\t\ttry {\r\n\t\t\tImageIO.write(this.picture.getBufferedImage(),\r\n\t\t\t\t\tthis.picture.getExtension(), file);\r\n\t\t} catch (IOException e) {\r\n\t\t\tJOptionPane.showMessageDialog(this.pictureFrame,\r\n\t\t\t\t \"Could not save file.\",\r\n\t\t\t\t \"Save Error\",\r\n\t\t\t\t JOptionPane.WARNING_MESSAGE);\r\n\t\t}\r\n\r\n\t}", "public void save(File filename) throws IOException {\n FileOutputStream fos = new FileOutputStream(filename);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(this);\n oos.close();\n }", "private void saveGame(int gameId, String fileName){\n\n }", "private void savePressed(){\n\t\t\n\t\tJFileChooser fileChooser = new JFileChooser(System.getProperty(\"user.dir\"));\n\t\tFileNameExtensionFilter extentions = new FileNameExtensionFilter(\"SuperCalcSave\", \"scalcsave\");\n\t\tfileChooser.setFileFilter(extentions);\n\t\tint retunedVal = fileChooser.showSaveDialog(this);\n\t\tFile file = null;\n\t\tif(retunedVal == JFileChooser.APPROVE_OPTION){\n\t\t\tfile = fileChooser.getSelectedFile();\n\t\t\t//make sure file has the right extention\n\t\t\tif(file.getAbsolutePath().contains(\".scalcsave\"))\n\t\t\t\tfile = new File(file.getAbsolutePath());\n\t\t\telse\n\t\t\t\tfile = new File(file.getAbsolutePath()+\".scalcsave\");\n\t\t}\n\t\t//only continue if a file is selected\n\t\tif(file != null){\t\n\t\t\ttry {\n\t\t\t\t//read in file\n\t\t\t\tObjectOutputStream output = new ObjectOutputStream(new FileOutputStream(file));\n\t\t\t\toutput.writeObject(SaveFile.getSaveFile());\n\t\t\t\toutput.close();\n\t\t\t\tSystem.out.println(\"Save Success\");\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public void save() throws Exception {\n // create a File object for the output file\n File outputFile = new File(MinuteUpdater.mapDir, this.fileName);\n // outputFile.mkdirs();\n outputFile.createNewFile();\n FileOutputStream fileOutputStream = new FileOutputStream(outputFile);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\n\n objectOutputStream.writeObject(this);\n objectOutputStream.close();\n }", "@Override\n\tpublic void save() {\n\t\t\n\t\tFile savingDirectory = new File(savingFolder());\n\t\t\n\t\tif( !savingDirectory.isDirectory() ) {\n\t\t\tsavingDirectory.mkdirs();\n\t\t}\n\t\t\n\t\t\n\t\t//Create the file if it's necessary. The file is based on the name of the item. two items in the same directory shouldn't have the same name.\n\t\t\n\t\tFile savingFile = new File(savingDirectory, getIdentifier());\n\t\t\n\t\tif( !savingFile.exists() ) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tsavingFile.createNewFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"the following item couldn't be saved: \" + getIdentifier());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\t}\n\n\t\t\n\t\t//generate the savingTextLine and print it in the savingFile. the previous content is erased when the PrintWriter is created.\n\t\t\n\t\tString text = generateSavingTextLine();\n\n\t\ttry {\n\t\t\tPrintWriter printer = new PrintWriter(savingFile);\n\t\t\tprinter.write(text);\t\t\t\n\t\t\tprinter.close();\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tsave();\n\t\t} \n\t}", "@Override\n public void saveFile(String fileString, String filename) throws IOException {\n }", "public void save(String filename) throws IOException\n {\n DataOutputStream output;\n\n try\n {\n output = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(new File(filename))));\n }\n catch (Exception e)\n {\n throw new IOException(\"Cannot open output file \" + filename + \":\" + e.getMessage());\n }\n save(output);\n output.flush();\n output.close();\n }", "public void save(String name) throws IOException {\n\t\tFile outputfile = new File(name+\".jpg\");\n\t\tImageIO.write(this.img, \"jpg\", outputfile);\n\t}", "public static void saveAs(){\n\t\tFile saveFile;\n\t\tJFileChooser saveChooser = new JFileChooser();\n\t\tFileNameExtensionFilter saveFilter = new FileNameExtensionFilter(\"Sensormap Files (.stuff)\", \"stuff\");\n\t\tFileNameExtensionFilter saveFilter2 = new FileNameExtensionFilter(\"Gzipped Sensormap Files (.stuff.gz)\", \"stuff.gz\");\n\t\tsaveChooser.setFileFilter(saveFilter);\n\t\tsaveChooser.setFileFilter(saveFilter2);\n\t\tint saveReturnVal = saveChooser.showSaveDialog(ControlPanelFrame.getFrame());\n\t\tif(saveReturnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tif(saveChooser.getFileFilter() == saveFilter && saveChooser.getSelectedFile().getName().endsWith(\".stuff\")==false){\n\t\t\t\tsaveFile = new File(saveChooser.getSelectedFile().getAbsolutePath()+\".stuff\");\n\t\t\t} else if(saveChooser.getFileFilter() == saveFilter2 && saveChooser.getSelectedFile().getName().endsWith(\".stuff.gz\")==false){\n\t\t\t\tsaveFile = new File(saveChooser.getSelectedFile().getAbsolutePath()+\".stuff.gz\");\n\t\t\t} else {\n\t\t\t\tsaveFile = saveChooser.getSelectedFile();\n\t\t\t}\n\t\t\tXMLSaver.saveSensorList(saveFile);\n\t\t\tGUIReferences.viewPort.halfTitle = saveFile.getName();\n\t\t\tGUIReferences.viewPort.setTitle(saveFile.getName());\n\t\t\tGUIReferences.currentFile = saveFile;\n\t\t\tGUIReferences.saveMenuItem.setEnabled(false);\n\t\t}\n\t}", "public void save() {\n UTILS.write(FILE.getAbsolutePath(), data);\n }", "public void save(){\r\n\t\ttry {\r\n\t\t\tgame.suspendLoop();\r\n\t\t\tGameStockage.getInstance().save(game);\r\n\t\t\tgame.resumeLoop();\r\n\t\t} catch (GameNotSaveException e) {\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\tgame.resumeLoop();\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\tgame.resumeLoop();\r\n\t\t}\r\n\t}", "private void saveAs(String newLabName){\n // Call Clone Script, feeding in the new lab name\n // Call python new_lab_script: new_lab_setup.py -c newLabName\n String cmd = \"new_lab_setup.py -c \"+newLabName;\n doLabCommand(cmd); \n // Rename to current lab and set the path to the new lab\n this.labName = newLabName;\n LabnameLabel.setText(\"Lab: \"+this.labName);\n this.currentLab = new File(labsPath+File.separator+this.labName);\n this.labDataCurrent.setName(this.labName);\n this.labDataCurrent.setPath(this.currentLab);\n\n // Write the current state to the new lab's start.config\n try {\n saveLab();\n } \n catch (FileNotFoundException ex) {\n Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n // Make the Save As Dialo disappear\n SaveAsDialog.setVisible(false);\n }", "private void saveGame() throws FileNotFoundException {\r\n\t\tJFileChooser fileChooser = new JFileChooser();\r\n\t\tFile file = null;\r\n\t\tif (fileChooser.showSaveDialog(gameView) == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tfile = fileChooser.getSelectedFile();\r\n\t\t}\r\n\t\tif (file != null) {\r\n\t\t\tFileWriter fileWriter = new FileWriter(convertToStringArrayList(), file);\r\n\t\t\tfileWriter.writeFile();\r\n\t\t}\r\n\r\n\t}", "@FXML\n private void saveFile() {\n FileHandler.saveFileData(stage, dRegister);\n }", "public void save(String filePath){\r\n Scanner in = new Scanner(System.in);\r\n File saveFile = new File(filePath);\r\n if (saveFile.exists()){\r\n System.out.println(\"Do you really, really want to overwrite your previous game?\");\r\n System.out.println(\"Yes: '1', No: '0'.\");\r\n int input = in.nextInt();\r\n if (input!=1){\r\n return;\r\n }\r\n }\r\n File saveDir = new File(this.savePath);\r\n if (!saveDir.exists()){\r\n saveDir.mkdir();\r\n }\r\n FileOutputStream fos = null;\r\n ObjectOutputStream out = null;\r\n try {\r\n fos = new FileOutputStream(saveFile);\r\n out = new ObjectOutputStream(fos);\r\n out.writeObject(this.serialVersionUID);\r\n out.writeObject(p);\r\n out.writeObject(map);\r\n out.close();\r\n } catch (Exception ex) {\r\n System.out.println(\"Make sure you don't use spaces in your folder names.\");\r\n ex.printStackTrace();\r\n }\r\n }", "public void saveTemplate(String filename){\n Context context = App.getContext();\n LogManager.reportStatus(context, \"INSPECTOR\", \"savingTemplate\");\n blueprint = currentTemplate.createBlueprint();\n //make sure we have correct extension\n filename = FileManager.removeExtension(filename);\n if (isInspecting){\n filename = filename + \".in\";\n } else {\n filename = filename + \".bp\";\n }\n boolean hasSaved = FileManager.createTemplate(filename, blueprint);\n if (hasSaved){\n Toast.makeText(this, \"Saved\", Toast.LENGTH_LONG).show();\n }else{\n Toast.makeText(this, \"Did not save\", Toast.LENGTH_LONG).show();\n }\n }", "void save(File file);", "private void saveProject()\n\t{\n\t\t\n\t\tint fileChooserReturnValue =\n\t\t\twindowTemplate\n\t\t\t\t.getFileChooser()\n\t\t\t\t.showSaveDialog(windowTemplate);\n\t\t\n\t\tif(fileChooserReturnValue == JFileChooser.APPROVE_OPTION) {\n\t\t\t\n\t\t\t// Get the file that the user selected\n\t\t\tFile file = windowTemplate.getFileChooser().getSelectedFile();\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t// Open the output streams\n\t\t\t\tFileOutputStream fileOutput = new FileOutputStream(file.getAbsolutePath());\n\t\t\t\tObjectOutputStream objectOutput = new ObjectOutputStream(fileOutput);\n\t\t\t\n\t\t\t\t// Write the objects\n\t\t\t\tfor(int i = 0; i < cards.size(); i++) {\n\t\t\t\t\tobjectOutput.writeObject(cards.get(i));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Close the output streams\n\t\t\t\tobjectOutput.close();\n\t\t\t\tfileOutput.close();\n\t\t\t\t\n\t\t\t\t// Update the title of the frame to reflect the file name\n\t\t\t\twindowTemplate.setTitle(file.getName());\n\t\t\t\t\n\t\t\t} catch (IOException e1) {\n\t\t\t\tJOptionPane.showMessageDialog(windowTemplate, \"Could not save the file.\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "public void tempSaveToFile() {\n try {\n ObjectOutputStream outputStream = new ObjectOutputStream(\n this.openFileOutput(MenuActivity2048.TEMP_SAVE_FILENAME, MODE_PRIVATE));\n outputStream.writeObject(boardManager);\n outputStream.close();\n } catch (IOException e) {\n Log.e(\"Exception\", \"File write failed: \" + e.toString());\n }\n }", "public void save() \n throws IOException \n {\n File tickDir = new File(TextUtil.expand(TICKS_DIR));\n\n File tickFile = getTickFile(mExport);\n if (!mTicks.isEmpty() \n || (tickFile.exists() && !tickFile.getParentFile().equals(tickDir))) \n {\n tickFile.getParentFile().mkdirs();\n \n ZipOutputStream zip = new ZipOutputStream(new FileOutputStream(tickFile));\n try {\n String basename = mFile.getName();\n // file\n {\n ZipEntry fileEntry = new ZipEntry(basename);\n zip.putNextEntry(fileEntry);\n zip.write(mText.getBytes());\n zip.closeEntry();\n } \n // ticks\n {\n ZipEntry tickEntry = new ZipEntry(basename + TickConstants.TICK_ENTRY_EXT);\n zip.putNextEntry(tickEntry);\n zip.write(saveTicks());\n zip.closeEntry();\n }\n } finally {\n FileUtil.close(zip);\n }\n } else {\n tickFile.delete();\n }\n }", "public void save(String path){\t\r\n\t\t\t FMParser.save(this, path);\r\n\t\t\t}", "public void writeToFile() {\n\t\ttry {\n\t\t\tFileOutputStream file = new FileOutputStream(pathName);\n\t\t\tObjectOutputStream output = new ObjectOutputStream(file);\n\n\t\t\tMap<String, HashSet<String>> toSerialize = tagToImg;\n\t\t\toutput.writeObject(toSerialize);\n\t\t\toutput.close();\n\t\t\tfile.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void saveScore() {\r\n FileDialog fd = new FileDialog(this, \"Save as a MIDI file...\", FileDialog.SAVE);\r\n fd.setFile(\"FileName.mid\");\r\n fd.show();\r\n //write a MIDI file to disk\r\n if ( fd.getFile() != null) {\r\n Write.midi(score, fd.getDirectory() + fd.getFile());\r\n }\r\n }", "protected static void save(String fileName) {\n\t\tif (curMIDI != null) {\n\t\t\ttry {\n\t\t\t\tMidiSystem.write(curMIDI, 1, new File(fileName));\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Could not save file\");\n\t\t\t}\n\t\t}\n\t}", "public void saveToFile(String fileName) {\n try {\n ObjectOutputStream outputStream = new ObjectOutputStream(\n this.openFileOutput(fileName, MODE_PRIVATE));\n outputStream.writeObject(boardManager);\n outputStream.close();\n } catch (IOException e) {\n Log.e(\"Exception\", \"File write failed: \" + e.toString());\n }\n }", "public void save() {\n Path root = Paths.get(storagePath);\n try {\n Files.copy(file.getInputStream(), root.resolve(file.getOriginalFilename()),\n StandardCopyOption.REPLACE_EXISTING);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void saveNewRollManager()\n\t{\n\t JFileChooser chooser = new JFileChooser(); //allows the user to choose a file\n\t chooser.setCurrentDirectory(new File(\"/home/me/Documents\"));\t//sets the directory of where to find the file\n\t int retrival = chooser.showSaveDialog(null);\n\t if (retrival == JFileChooser.APPROVE_OPTION) {\n\t try \n\t {\n\t FileWriter fw = new FileWriter(chooser.getSelectedFile()+\".txt\");\n\t fw.write (getCourseToFileString ( ));\n\t for(Student b : getStudents ( ))\t \t\n\t \tfw.write(b.toFileString ( ));\n\t \tfw.close ( );\n\t \t;\n\t } \n\t catch (Exception ex) \n\t {\n\t ex.printStackTrace();\n\t }\n\t\t\tthis.saveNeed = false;\n\n\t }\n\t \n\t}", "public void save() throws FileNotFoundException, IOException, ClassNotFoundException ;", "Saver() throws IOException\n\t\t{\n\t\t\tthis(new File(file.getParentFile(),\n\t\t\t\t\"#\" + file.getName() + \"#save#\"));\n\t\t}", "private void saveHighScore() {\n\n\t\tFileOutputStream os;\n\t\n\t\ttry {\n\t\t boolean exists = (new File(this.getFilesDir() + filename).exists());\n\t\t // Create the file and directories if they do not exist\n\t\t if (!exists) {\n\t\t\tnew File(this.getFilesDir() + \"\").mkdirs();\n\t\t\tnew File(this.getFilesDir() + filename);\n\t\t }\n\t\t // Saving the file\n\t\t os = new FileOutputStream(this.getFilesDir() + filename, false);\n\t\t ObjectOutputStream oos = new ObjectOutputStream(os);\n\t\t oos.writeObject(localScores);\n\t\t oos.close();\n\t\t os.close();\n\t\t} catch (Exception e) {\n\t\t e.printStackTrace();\n\t\t}\n }", "public void saveMap(String name){\n\t\tString path = new File (\".\").getAbsolutePath();\n\t\t//System.out.println(path);\n\t\tObjectOutputStream outputStream=null;\n\t\t\n\t\tString fileName=path.concat(\"//Maps//\"+name+\".txt\");\n\t\tFile file = new File(fileName);\n\t\t\n\t\n\t\t\n\t\ttry {\n\t\t\tFileOutputStream fileOutputStream =new FileOutputStream(file);\n\t\t\toutputStream = new ObjectOutputStream(fileOutputStream);\n\t\t\n\t\t\toutputStream.writeInt(getWidth());\n\t\t\toutputStream.writeInt(getHeight());\n\t\t\t\n\t\t\tfor (Path p : temp){\n\t\t\t\toutputStream.writeInt(p.getPos());\n\t\t\t}\n\t\t\toutputStream.writeInt(-1);\n\t\t\t\n\t\t\toutputStream.flush();\n\t\t\toutputStream.close();\n\t\t\tsaveMapName(name);\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Problem opening the file \"+name+\".txt\");\n\t\t\t//e.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Problem with output to file \"+name+\".txt\");\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\n\n\n\t}", "public void saveAs() {\n editorManager.currentFileManager().saveAs();\n mimaUI.fileChanged();\n }", "public boolean save(String file);", "public static void save(GameLevel level, String fileName)\n throws IOException\n {\n\n boolean append = false;\n FileWriter writer = null;\n try {\n writer = new FileWriter(fileName, append);\n writer.write(level.getLevelName() + \",\" + level.getNaruto().getBallCount() + \"\\n\");\n } finally {\n if (writer != null) {\n writer.close();\n }\n }\n }", "@FXML\n public void saveFile(Event e) {\n String outputData = output.getText();\n\n File file = chooser.showSaveDialog(save.getScene().getWindow());\n\n if(file != null) {\n createFile(outputData, file);\n }\n }", "void saveFile () {\r\n\r\n\t\ttry {\r\n\t\t\tFileOutputStream fos = new FileOutputStream (\"Bank.dat\", true);\r\n\t\t\tDataOutputStream dos = new DataOutputStream (fos);\r\n\t\t\tdos.writeUTF (saves[count][0]);\r\n\t\t\tdos.writeUTF (saves[count][1]);\r\n\t\t\tdos.writeUTF (saves[count][2]);\r\n\t\t\tdos.writeUTF (saves[count][3]);\r\n\t\t\tdos.writeUTF (saves[count][4]);\r\n\t\t\tdos.writeUTF (saves[count][5]);\r\n\t\t\tJOptionPane.showMessageDialog (this, \"The Record has been Saved Successfully\",\r\n\t\t\t\t\t\t\"BankSystem - Record Saved\", JOptionPane.PLAIN_MESSAGE);\r\n\t\t\ttxtClear ();\r\n\t\t\tdos.close();\r\n\t\t\tfos.close();\r\n\t\t}\r\n\t\tcatch (IOException ioe) {\r\n\t\t\tJOptionPane.showMessageDialog (this, \"There are Some Problem with File\",\r\n\t\t\t\t\t\t\"BankSystem - Problem\", JOptionPane.PLAIN_MESSAGE);\r\n\t\t}\r\n\r\n\t}", "synchronized public void saveToFile() {\n try {\n saveObjToFile(this, saveFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n log(\"error saving resource to file\");\n }\n }", "public void saveMixerSettingsLocally() {\n\t\tFileChooser fileChooser = new FileChooser();\n\t\tExtensionFilter filter = new ExtensionFilter(\"TXT files (*.txt)\", \"*.txt\");\n\t\tfileChooser.getExtensionFilters().add(filter);\n\t\tFile file = fileChooser.showSaveDialog(mainContainer.getScene().getWindow());\n\t\tString fullPath;\n\t\ttry {\n\t\t\tfullPath = file.getAbsolutePath();\n\t\t\tif (!fullPath.endsWith(\".txt\")) {\n\t\t\t\tfullPath = fullPath + \".txt\";\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tFileWriter writeFile = new FileWriter(fullPath);\n\t\t\t\twriteFile.write(Double.toString(sliderPitch.getValue()) + \"\\n\");\n\t\t\t\twriteFile.write(Double.toString(sliderEchoLength.getValue()) + \"\\n\");\n\t\t\t\twriteFile.write(Double.toString(sliderDecay.getValue()) + \"\\n\");\n\t\t\t\twriteFile.write(Double.toString(sliderGain.getValue()) + \"\\n\");\n\t\t\t\twriteFile.write(Double.toString(sliderFlangerLength.getValue()) + \"\\n\");\n\t\t\t\twriteFile.write(Double.toString(sliderWetness.getValue()) + \"\\n\");\n\t\t\t\twriteFile.write(Double.toString(sliderLfoFrequency.getValue()) + \"\\n\");\n\t\t\t\twriteFile.write(Float.toString((float) sliderLowPass.getValue()) + \"\\n\");\n\t\t\t\twriteFile.close();\n\t\t\t\tAlert alert = new Alert(AlertType.INFORMATION);\n\t\t\t\talert.setTitle(bundle.getString(\"sMSsaveAlert1Title\"));\n\t\t\t\talert.setHeaderText(bundle.getString(\"sMSsaveAlert1Header\"));\n\t\t\t\talert.showAndWait();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\t\talert.setTitle(bundle.getString(\"mSSaveAlertTitle\"));\n\t\t\t\talert.setHeaderText(bundle.getString(\"mSSaveAlertHeader\"));\n\t\t\t\talert.setContentText(bundle.getString(\"mSSaveAlertContent\"));\n\t\t\t\talert.showAndWait();\n\t\t\t}\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}", "public void saveFile() {\t\n\t\tString fileloc = \"\";\n\t\tif(!prf.foldername.getText().equals(\"\"))\n\t\t\tfileloc += prf.foldername.getText()+\"/\";\n\t\tfileloc += ((MinLFile) tabbedPane.getSelectedComponent()).filename;;\t\t\n\t\tFile fl = new File(fileloc);\n\t\t\n\t\ttry {\n\t\t\tif(fl.exists()) {\n\t\t\t\tint option = JOptionPane.showConfirmDialog(null, \"The file with this name already exists, do you want to overwrite it?\", \"Save File\", JOptionPane.YES_NO_OPTION);\n\t\t\t\tif(option == 0) {\n\t\t\t\t\tFiles.delete(fl.toPath());\n\t\t\t\t\ttry {\n\t\t\t\t\t\t\n\t\t\t\t\t\tFileWriter fw = new FileWriter(fileloc);\n\t\t\t\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\t\t\t\tbw.write(((MinLFile) tabbedPane.getSelectedComponent()).CodeArea.getText());\n\t\t\t\t\t\tbw.close();\n\t\t\t\t\t\tfw.close();\n\t\t\t\t\t\t((MinLFile) tabbedPane.getSelectedComponent()).filechanged = false;\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttry {\n\t\t\t\t\tFileWriter fw = new FileWriter(fileloc);\n\t\t\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\t\t\tbw.write(((MinLFile) tabbedPane.getSelectedComponent()).CodeArea.getText());\n\t\t\t\t\tbw.close();\n\t\t\t\t\tfw.close();\n\t\t\t\t\t((MinLFile) tabbedPane.getSelectedComponent()).filechanged = false;\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"The specified folder doesnt exist.\");\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void xmlSave() {\r\n FileDialog fd = new FileDialog(new Frame(), \r\n \"Save as a jMusic XML file...\", \r\n FileDialog.SAVE);\r\n fd.show();\r\n if (fd.getFile() != null) {\r\n jm.util.Write.xml(score, fd.getDirectory() + fd.getFile());\r\n }\r\n }", "void save() {\n gameModelPoDao.saveToFile(file.getAbsolutePath(), gameModelPo);\n }", "void save(String fileName) throws IOException, TransformerConfigurationException, ParserConfigurationException;", "public void save() {\t\n\t\n\t\n\t}", "public void save(String folderName, String fileName) {\n try {\n File directory = new File(BASE_FOLDER_NAME + File.separator + folderName);\n directory.mkdir();\n FileWriter writer = new FileWriter(BASE_FOLDER_NAME + File.separator + folderName\n + File.separator + fileName + FILE_EXTENSION);\n writer.write(width + \"\\n\");\n writer.write(height + \"\\n\");\n for (int j = 0; j < height; j++) {\n for (int i = 0; i < width; i++) {\n writer.write(SEPERATOR_SYMBOL);\n writer.write(entries[j][i]);\n }\n writer.write(\"\\n\");\n }\n writer.close();\n } catch (IOException e) {\n System.out.println(\"Oops, the file writer took in a directory for some reason!\");\n }\n }", "public void saveWorkflow(String filename);", "public void save() {\n MidiFileIO.saveMIDIFile(sequence);\n }", "private void saveFile(){\n\tif (numPlayers == 1 && 0 < numNPCs && numNPCs < 6){\n\t int returnVal = fileChooser.showSaveDialog(this);\n\t if (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\ttry {\n\t\t FileWriter writer =\n\t\t\tnew FileWriter(fileChooser.getSelectedFile());\n\t\t writer.write(this.toXML());\n\t\t writer.close();\n\t\t} catch (Exception ex) {\n\t\t ex.printStackTrace();\n\t\t}\n\t }\n\t} else {\n\t //If it wouldn't make a valid game, warn the user\n\t JFrame f = new JFrame();\n\t JOptionPane.showMessageDialog(f,\n\t\t\t\t\t \"You must have exactly one playable\\n\"\n\t\t\t\t\t + \"character and 1-5 NPCs.\\n\" +\n\t\t\t\t\t \"Current PCs= \" + numPlayers +\n\t\t\t\t\t \", NPCs = \" + numNPCs,\n\t\t\t\t\t \"Improper Game Configuration\",\n\t\t\t\t\t JOptionPane.WARNING_MESSAGE);\t \n\t}\n }", "@Override\n public void save(final String filename) throws IOException {\n Filer.getInstance().save(this, DGraphIOFactory.getInstance(), filename);\n }", "private void saveToDir(String name, Object obj) {\n\t\tFileOutputStream fileOut = null;\n\t\ttry {\n\t\t\tfileOut = new FileOutputStream(this.dir + \"/\" + name);\n\t\t\tObjectOutputStream out = new ObjectOutputStream(fileOut);\n\t\t\tout.writeObject(obj);\n\t\t\tout.close();\n\t\t\tfileOut.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error occurred while saving the index file: \" + name);\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "private boolean save(File file)\n {\n return save_tree(file, m_root, m_gameinfo);\n }", "public void save() {\n\n\t\tint[][] rawData = new int[2][CHUNK_SIZE * CHUNK_SIZE];\n\n\t\tfor (int l = 0; l < 2; l++) {\n\t\t\tLayer layer = Layer.get(l);\n\t\t\tfor (int y = 0; y < CHUNK_SIZE; y++) {\n\t\t\t\tfor (int x = 0; x < CHUNK_SIZE; x++) {\n\t\t\t\t\trawData[l][x + y * CHUNK_SIZE] = getTileId(layer, x, y);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tthis.saveData = new RawChunkData(rawData);\n\t}", "@Override\r\n public void save(String[] arr) {\r\n\tString name = arr[arr.length - 2];\r\n\tString fileName = arr[arr.length - 1];\r\n\tMaze3d m = hMaze.get(name);\r\n\ttry {\r\n\t OutputStream out = new MyCompressorOutputStream(new FileOutputStream(fileName));\r\n\t out.write(m.toByteArray());\r\n\t out.close();\r\n\t setChanged();\r\n\t notifyObservers(\"Maze \" + name + \" is saved\");\r\n\t} catch (FileNotFoundException e) {\r\n\t setChanged();\r\n\t notifyObservers(\"Error - the file was not found\");\r\n\t} catch (IOException e) {\r\n\t setChanged();\r\n\t notifyObservers(\"Error - IOException\");\r\n\t}\r\n }", "public void saveGame(DataOutputStream s) throws IOException {\n s.writeUTF(level.toString());\n s.writeUTF(level.getName());\n s.writeInt(lives);\n s.writeInt(points);\n s.writeInt(wonLevels);\n pacman.writeEntity(s);\n s.writeInt(entities.size());\n for (GameEntity entity : entities)\n entity.writeEntity(s);\n }", "public void save() {\n try {\n FileOutputStream fos = new FileOutputStream(file);\n properties.store(fos, \"Preferences\");\n } catch (FileNotFoundException e) {\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void savePuzzle (Puzzle puzzle) {\n int status;\n File newFile = new File (\"empty\");\n status = chooser.showSaveDialog (null);\n if (status == JFileChooser.APPROVE_OPTION) {\n try {\n newFile = chooser.getSelectedFile ();\n BufferedWriter buffer = new BufferedWriter (new FileWriter (newFile));\n String s = puzzle.save ();\n buffer.write (s);\n buffer.close ();\n } catch (IOException e) {\n JOptionPane.showMessageDialog (null, \"File IO Exception\\n\" + e.getLocalizedMessage (), \"Error!\", JOptionPane.ERROR_MESSAGE);\n }\n }\n }", "public boolean save() {\n\t\treturn save(_file);\n\t}", "public void save () {\n preference.putBoolean(\"sound effect\", hasSoundOn);\n preference.putBoolean(\"background music\", hasMusicOn);\n preference.putFloat(\"sound volume\", soundVolume);\n preference.putFloat(\"music volume\", musicVolume);\n preference.flush(); //this is called to write the changed data into the file\n }", "public void save(){\n Player temp = Arena.CUR_PLAYER;\n try{\n FileOutputStream outputFile = new FileOutputStream(\"./data.sec\");\n ObjectOutputStream objectOut = new ObjectOutputStream(outputFile);\n objectOut.writeObject(temp);\n objectOut.close();\n outputFile.close();\n }\n catch(FileNotFoundException e){\n System.out.print(\"Cannot create a file at that location\");\n }\n catch(SecurityException e){\n System.out.print(\"Permission Denied!\");\n }\n catch(IOException e){\n System.out.println(\"Error 203\");\n } \n }", "private void save() {\r\n\t\tif (Store.save()) {\r\n\t\t\tSystem.out.println(\" > The store has been successfully saved in the file StoreData.\\n\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\" > An error occurred during saving.\\n\");\r\n\t\t}\r\n\t}", "public void onSave(View view){\n saveTemplate(filename);\n Toast.makeText(this, \"Saved\", Toast.LENGTH_LONG).show();\n }", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\tString fileName=JOptionPane.showInputDialog(\"Enter the File name without any extension\");\r\n\t\t\ttheGame.save(fileName);\r\n\t\t}", "@Override\n public void actionPerformed(ActionEvent e){\n JFileChooser fileChooser = new JFileChooser();\n int status = fileChooser.showSaveDialog(null);\n \n //Check if they actually saved the file\n if (status == JFileChooser.APPROVE_OPTION) {\n File fileToSave = fileChooser.getSelectedFile();\n \n //Try block to make sure file actually exists\n try {\n FileOutputStream fos = new FileOutputStream(fileToSave);\n ObjectOutputStream out = new ObjectOutputStream(fos);\n out.writeObject(games);\n \n //Close the file\n fos.close();\n out.close();\n } catch (FileNotFoundException ex) {\n JOptionPane.showMessageDialog(null, \"Error: File not found\");\n } catch (IOException ex) {\n JOptionPane.showMessageDialog(null, \"Error: File I/O problem\");\n }\n \n //Tell the user it saved successfully\n JOptionPane.showMessageDialog(null, \"Saved as file: \" + fileToSave.getAbsolutePath());\n }\n }", "@Override\r\n\tpublic void SavePlayerName() {\r\n\t\tPlayer player = (Player)Player.getPlayerInstance();\r\n\t\t\r\n\t\tString file = \"PlayerName.txt\";\r\n\t\tString playerName = player.getName();\r\n\t\ttry{\r\n\t\t\tPrintWriter print = new PrintWriter(file);\r\n\t\t\tprint.println(playerName);\r\n\t\t}\r\n\t\tcatch(FileNotFoundException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public void save(List<Album> pdApp,String name) throws IOException {\n ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(storeDir + File.separator +name+ storeFile2));\n oos.writeObject(pdApp);\n oos.close();\n }", "public void saveLayoutFile() {\n\t\ttry {\n\t\t\tFileManager.saveLayout(new Layout(layout.getText()), fc4.getSelectedFile().toString());\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Failed To Save Layout\");\n\t\t}\n\t}", "public void saveFile(boolean newFile) {\n\t\tif(projectFile == null || newFile)\n\t\t\tprojectFile = fileChooser.showSaveDialog(stage);\n\n\t\tif(projectFile != null){\n\t\t\t//Convert the synth object to JSON format\n\t\t\tString projectJson = gson.toJson(new Project(synth.getInstruments(), synth.getBPM(), synth.getVolume(), noteFrequencies), Project.class);\n\n\t\t\ttry {\n\t\t\t\tFiles.writeString(Path.of(projectFile.getAbsolutePath()), projectJson, StandardOpenOption.CREATE);\n\t\t\t} catch (IOException ignored) {}\n\t\t}\n\t}", "void onGameSaved(File file);", "public void save(){\n try{\n Date date = new Date();\n \n PrintWriter writer = new PrintWriter(\"data.MBM\", \"UTF-8\");\n \n writer.println(\"version:\"+MBMDriver.version);\n writer.println(\"numworlds:\" + worlds.size());\n writer.println(\"lastclosed:\" + date.toString());\n writer.println(\"outDir:\"+outputDir.toPath());\n \n for(int i = 0; i < worlds.size(); i++){\n \n writer.println(\"MBMWORLD:\"+worlds.get(i).getWorldFile().getName()+\":\"+worlds.get(i).getName()+\":\"+worlds.get(i).getWorldFile().toPath()+\":\"+worlds.get(i).getLastBackupDate());\n }\n \n writer.close();\n }catch(FileNotFoundException e){\n System.out.println(\"ERROR: Failed to Find File\");\n }catch(UnsupportedEncodingException e){\n System.out.println(\"ERROR: Unsupported Encoding Exception\");\n }\n }", "private void saveAs() {\n\t\tFileChooser fileChooser = new FileChooser();\n\n\t\t// Set extension filter\n\t\tFileChooser.ExtensionFilter extFilter = new FileChooser.ExtensionFilter(\n\t\t\t\t\"XML files (*.xml)\", \"*.xml\");\n\t\tfileChooser.getExtensionFilters().add(extFilter);\n\n\t\t// Show save file dialog\n\t\tFile file = fileChooser.showSaveDialog(mainApp.getPrimaryStage());\n\n\t\tif (file != null) {\n\t\t\t// Make sure it has the correct extension\n\t\t\tif (!file.getPath().endsWith(\".xml\")) {\n\t\t\t\tfile = new File(file.getPath() + \".xml\");\n\t\t\t}\n\t\t\tmainApp.saveFilmDataToFile(file);\n\t\t}\n\t}", "public void saveFile() {\r\n File savedFile = new File(fileName);\r\n\r\n try (FileWriter fw = new FileWriter(savedFile)) {\r\n fw.write(workSpace.getText());\r\n\r\n fw.close();\r\n } catch (IOException ex) {\r\n JOptionPane.showMessageDialog(null, \"There was an error saving the file\");\r\n }\r\n }", "public void save(View v) {\n if (!currentMode.equals(Mode.GAME)) {\n Toast.makeText(this, \"Speichern nur im Spiel moeglich!\", Toast.LENGTH_LONG).show();\n return;\n }\n\n // Leeres speichern verhindern\n if (!(itemList.size() > 0)) {\n Toast.makeText(this, \"Keine Tips zum Speichern!\", Toast.LENGTH_LONG).show();\n return;\n }\n // String formatieren\n String output = generateSaveFileString();\n\n // In Datei speichern\n writeToSaveFile(output);\n\n // Neue Runde starten\n startNewRound();\n }", "public void saveGame(String fileName){\n Gson gson = new Gson();\n String userJson = gson.toJson(player);\n\n try(Writer w = new BufferedWriter(new OutputStreamWriter( new FileOutputStream(fileName), \"UTF-8\"))) {\n w.write(userJson);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void setSaveFile(File file)\n {\n \n }" ]
[ "0.70145303", "0.6808435", "0.6665312", "0.6632317", "0.65801114", "0.6545648", "0.6528743", "0.6503033", "0.6481968", "0.6459012", "0.6394221", "0.6334411", "0.6328103", "0.62555504", "0.62475485", "0.62189776", "0.6215627", "0.6184643", "0.6137235", "0.61254483", "0.61233807", "0.611775", "0.6096503", "0.60851777", "0.6062587", "0.60417783", "0.6014378", "0.60068685", "0.60065025", "0.59777313", "0.59774995", "0.59737754", "0.5973179", "0.59731007", "0.5965988", "0.5948871", "0.59472966", "0.59419394", "0.5932928", "0.5916785", "0.5914489", "0.58926094", "0.5888186", "0.58770293", "0.58624125", "0.58605695", "0.58529216", "0.58526945", "0.58486223", "0.58455294", "0.58425283", "0.58281744", "0.5823406", "0.5819792", "0.5818985", "0.5817909", "0.5811078", "0.5802359", "0.5800543", "0.57961893", "0.57914644", "0.5784202", "0.57770294", "0.5776874", "0.5774893", "0.5770476", "0.5769212", "0.5757605", "0.5737589", "0.5737508", "0.57364726", "0.57363987", "0.57250875", "0.5704504", "0.5703998", "0.5703174", "0.5701904", "0.5701056", "0.56987756", "0.5688227", "0.5684471", "0.56670386", "0.5652157", "0.56509376", "0.5650087", "0.5649642", "0.56461674", "0.5646108", "0.5644757", "0.56404597", "0.5635991", "0.5635566", "0.56283367", "0.5626134", "0.5624789", "0.561959", "0.56163585", "0.56153744", "0.5614929", "0.56112003" ]
0.7029967
0
Returns a String which is the json serialization of this LevelPack.
public String toJson() { return Serializer.serializeLevelPack(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "public String getAsJson() {\n StringBuffer sb = new StringBuffer();\n sb.append(\"{\\\"code\\\": \\\"\").append(this.code).append(\"\\\", \");\n sb.append(\"\\\"color\\\": \\\"\").append(this.color).append(\"\\\", \");\n\n /* Append a size only if the product has a Size */\n if (this.size.getClass() != NoSize.class) {\n sb.append(\"\\\"size\\\": \\\"\").append(this.size).append(\"\\\", \");\n }\n\n sb.append(\"\\\"price\\\": \").append(this.price).append(\", \");\n sb.append(\"\\\"currency\\\": \\\"\").append(this.currency).append(\"\\\"}, \");\n\n return sb.toString();\n }", "@Override\n\tpublic String toString() {\n\t\treturn Json.pretty( this );\n\t}", "public String toJson() { return new Gson().toJson(this); }", "public String toJSON() {\n return new Gson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\r\n\r\n\treturn new Gson().toJson(this);\r\n }", "@Override\n public String toString() {\n Gson gson = new Gson();\n\n String json = gson.toJson(this);\n System.out.println(\"json \\n\" + json);\n return json;\n }", "public String toJSON(){\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "public String toJsonString() {\n return JsonUtils.getGson().toJson(toJson());\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn JSONObject.toJSONString(this);\r\n\t}", "@Override\n public String toString() {\n return new JSONSerializer().serialize(this);\n }", "public String toJsonString() {\n String str;\n String str2;\n try {\n if (this.lifetime == null) {\n str = \"null\";\n } else {\n str = \"\\\"\" + this.lifetime.toString() + \"\\\"\";\n }\n if (this.frequency == null) {\n str2 = \"\";\n } else {\n str2 = \",\\\"frequency\\\":\" + this.frequency;\n }\n return \"{\\\"enabled\\\":\" + this.enabled + str2 + \",\\\"lifetime\\\":\" + str + \"}\";\n } catch (Exception e) {\n C3490e3.m663c(e.getMessage());\n return \"\";\n }\n }", "String toJSON();", "@Override\n\tpublic String toString() {\n\t\treturn toJSON().toString();\n\t}", "public String serializeJSON () {\n ObjectMapper mapper = new ObjectMapper();\n String jsonString = null;\n \n try {\n jsonString = mapper.writeValueAsString(this);\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n return jsonString;\n }", "public String toJson() {\n\n final StringBuilder jsonRepresentation = new StringBuilder();\n\n jsonRepresentation.append(\"[\");\n\n final Iterator<TrackingDataEntry> entriesIter = getEntries().iterator();\n while (entriesIter.hasNext()) {\n\n final TrackingDataEntry entry = entriesIter.next();\n\n serializeTrackingDataVariables(jsonRepresentation, entry.getVars());\n\n if (null != entry.getName()) {\n jsonRepresentation.append(\",\\\"name\\\":\\\"\").append(entry.getName()).append(\"\\\"\");\n }\n if (null != entry.getId()) {\n jsonRepresentation.append(\",\\\"id\\\":\\\"\").append(entry.getId()).append(\"\\\"\");\n }\n if (null != entry.getType()) {\n jsonRepresentation.append(\",\\\"type\\\":\\\"\").append(entry.getType()).append(\"\\\"\");\n }\n if (null != entry.getUrl()) {\n jsonRepresentation.append(\",\\\"url\\\":\\\"\").append(entry.getUrl()).append(\"\\\"\");\n }\n jsonRepresentation.append(\"}\");\n if (entriesIter.hasNext()) {\n jsonRepresentation.append(\",\");\n }\n }\n\n jsonRepresentation.append(\"]\");\n\n return jsonRepresentation.toString();\n }", "@Override\n public String toString() {\n return jsonString;\n }", "@Override\n public String toString() {\n return gson.toJson(this);\n }", "public String toJsonData() {\n\t\treturn new Gson().toJson(this);\n\t}", "public String toJson() {\n try{\n return new JsonSerializer().getObjectMapper().writeValueAsString(this);\n } catch (IOException e){\n throw new RuntimeException(e);\n }\n }", "public String toJsonString() {\n\t\tString json = null;\n\t\t\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tmapper.setSerializationInclusion(Include.NON_NULL);\n\t\tmapper.configure(SerializationFeature.WRAP_ROOT_VALUE, true);\n\t\ttry {\n\t\t\tjson = mapper.writeValueAsString(this);\n\t\t} catch (JsonProcessingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn json;\n\t}", "public String toString() {\n\t\treturn this.toJSON().toString();\n\t}", "public String toString() {\n\t\treturn this.toJSON().toString();\n\t}", "public synchronized String getJSONString() {\n\n return getJSONObject().toString();\n }", "public String toJson() {\n return this.toJson(SerializationFormattingPolicy.None);\n }", "public String jsonify() {\n return gson.toJson(this);\n }", "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "@Override\r\n public String toString() {\r\n return JsonSerializer.SerializeObject(this);\r\n }", "@Override\n\tpublic String toJSON()\n\t{\n\t\tStringJoiner json = new StringJoiner(\", \", \"{\", \"}\")\n\t\t.add(\"\\\"name\\\": \\\"\" + this.name + \"\\\"\")\n\t\t.add(\"\\\"id\\\": \" + this.getId());\n\t\tString locationJSON = \"\"; \n\t\tif(this.getLocation() == null)\n\t\t{\n\t\t\tlocationJSON = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlocationJSON = this.getLocation().toJSON(); \n\t\t}\n\t\tjson.add(\"\\\"location\\\": \" + locationJSON);\n\t\tStringJoiner carsJSON = new StringJoiner(\", \", \"[\", \"]\");\n\t\tfor(Object r : cars)\n\t\t{\n\t\t\tcarsJSON.add(((RollingStock) r).toJSON());\n\t\t}\n\t\tjson.add(\"\\\"cars\\\": \" + carsJSON.toString());\n\t\treturn json.toString(); \n\t}", "@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }", "public String toJson() {\n Gson gson = new Gson();\n TurretServer ta = cast(this);\n return gson.toJson(ta);\n }", "public String toJson() throws JsonProcessingException {\n return JSON.getMapper().writeValueAsString(this);\n }", "public String toJson() throws JsonProcessingException {\n return JSON.getMapper().writeValueAsString(this);\n }", "@Override\n public String encode() {\n JsonObject tmp = new JsonObject();\n addIfSet(tmp, \"id\", id);\n addIfSet(tmp, \"courseId\", courseId);\n addIfSet(tmp, \"sheetId\", sheetId);\n addIfSet(tmp, \"maxPoints\", maxPoints);\n addIfSet(tmp, \"type\", type);\n addIfSet(tmp, \"link\", link);\n addIfSet(tmp, \"bonus\", bonus);\n addIfSet(tmp, \"linkName\", linkName);\n addIfSet(tmp, \"submittable\", submittable);\n addIfSet(tmp, \"resultVisibility\", resultVisibility);\n tmp = super.encodeToObject(tmp);\n return tmp.toString();\n }", "public String serialize() {\n switch (type) {\n case LIST:\n return serializeList();\n\n case OBJECT:\n return serializeMap();\n\n case UNKNOWN:\n return serializeUnknown();\n }\n return \"\";\n }", "public String getJsonAsString() {\n\t\treturn this.flodJsonObject.toString();\n\t}", "public String toJson()\n\t{\n\t\tJsonStringEncoder encoder = JsonStringEncoder.getInstance();\n\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append('{');\n\n\t\tboolean needComma = true;\n\t\tif (m_Message != null)\n\t\t{\n\t\t\tchar [] message = encoder.quoteAsString(m_Message.toString());\n\t\t\tbuilder.append(\"\\n \\\"message\\\" : \\\"\").append(message).append('\"').append(',');\n\t\t\tneedComma = false;\n\t\t}\n\n\t\tif (m_ErrorCode != null)\n\t\t{\n\t\t\tbuilder.append(\"\\n \\\"errorCode\\\" : \").append(m_ErrorCode.getValueString());\n\t\t\tneedComma = true;\n\t\t}\n\n\t\tif (m_Cause != null)\n\t\t{\n\t\t\tif (needComma)\n\t\t\t{\n\t\t\t\tbuilder.append(',');\n\t\t\t}\n\t\t\tchar [] cause = encoder.quoteAsString(m_Cause.toString());\n\t\t\tbuilder.append(\"\\n \\\"cause\\\" : \\\"\").append(cause).append('\"');\n\t\t}\n\n\t\tbuilder.append(\"\\n}\\n\");\n\n\t\treturn builder.toString();\n\t}", "@Override\n public String toString() {\n return new Gson().toJson(this);\n }", "@Override\n public String toJSONString()\n {\n return \"{\\\"packet\\\":{\\\"agentsName\\\":\\\"\\\",\\\"placesName\\\":\\\"\\\",\\\"placesX\\\":0,\\\"placesY\\\":0,\\\"numberOfPlaces\\\":0,\\\"numberOfAgents\\\":0,\\\"placeOverloadsSetDebugData\\\":false,\\\"placeOverloadsGetDebugData\\\":false,\\\"agentOverloadsSetDebugData\\\":false,\\\"agentOverloadsGetDebugData\\\":false,\\\"placeDataType\\\":\\\"\\\",\\\"agentDataType\\\":\\\"\\\"},\\\"request\\\":0}\";\n }", "@Override\n\tpublic String toString() {\n\t\treturn JSON.toJSONString(this,SerializerFeature.WriteMapNullValue,\n\t\t\t\tSerializerFeature.WriteNonStringKeyAsString,\n\t\t\t\tSerializerFeature.WriteNullListAsEmpty,\n\t\t\t\tSerializerFeature.WriteNullNumberAsZero,\n\t\t\t\tSerializerFeature.WriteNullStringAsEmpty);\n\t}", "@Override\n\tprotected String toJSON()\n\t{\n\t\treturn getJSON(null);\n\t}", "public abstract String toJsonString();", "@Override\n\tpublic String toString() {\n\t\treturn JSONFormatter.formatArray(this, 0, false).toString();\n\t}", "public String convertToString() {\n return mJSONObject.toString();\n }", "@Override\n public String toString() {\n ObjectMapper mapper = new ObjectMapper();\n try {\n return mapper.writeValueAsString(this);\n } catch (JsonProcessingException e) {\n return null;\n }\n }", "@Override\r\n\tpublic String toJsonString() {\n\t\treturn null;\r\n\t}", "@Override\n public String toJsonString() {\n GsonBuilder gsonBuilder = new GsonBuilder();\n gsonBuilder.registerTypeAdapter(TransferOperation.class, new TransferSerializer());\n return gsonBuilder.create().toJson(this);\n }", "protected String toJSONFragment() {\n StringBuffer json = new StringBuffer();\n boolean first = true;\n if (isSetProductCategoryId()) {\n if (!first) json.append(\", \");\n json.append(quoteJSON(\"ProductCategoryId\"));\n json.append(\" : \");\n json.append(quoteJSON(getProductCategoryId()));\n first = false;\n }\n if (isSetProductCategoryName()) {\n if (!first) json.append(\", \");\n json.append(quoteJSON(\"ProductCategoryName\"));\n json.append(\" : \");\n json.append(quoteJSON(getProductCategoryName()));\n first = false;\n }\n if (isSetParent()) {\n if (!first) json.append(\", \");\n json.append(\"\\\"Parent\\\" : {\");\n Categories parent = getParent();\n\n\n json.append(parent.toJSONFragment());\n json.append(\"}\");\n first = false;\n }\n return json.toString();\n }", "public String toLogData() { \n\t return gson.toJson(this);\n\t}", "public String toJson() throws Exception {\r\n\t\treturn SimpleJson.HashMapToText(getJsonToken());\r\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\" {\");\n sb.append(\" \\\"fileid\\\":\\\"\").append(fileid);\n sb.append(\", \\\"filename\\\":\\\"\").append(filename);\n sb.append(\", \\\"fileupdate\\\":\\\"\").append(fileupdate);\n sb.append(\", \\\"filepath\\\":\\\"\").append(filepath);\n sb.append(\", \\\"fileuploader\\\":\\\"\").append(fileuploader);\n sb.append(\", \\\"isdelete\\\":\\\"\").append(isdelete);\n sb.append(\", \\\"filedesc\\\":\\\"\").append(filedesc);\n sb.append(\", \\\"filetype\\\":\\\"\").append(filetype);\n sb.append(\"\\\"}\");\n return sb.toString();\n }", "public String toString()\n {\n StringBuffer sb = new StringBuffer();\n\n sb.append(super.toString());\n sb.append(\"{m_priority=\");\n sb.append(m_priority);\n sb.append(\", m_category=\");\n sb.append(m_category);\n sb.append(\", m_status=\");\n sb.append(m_status);\n sb.append(\", m_logicalKey=\");\n sb.append(m_logicalKey);\n sb.append(\", m_levelObjectType=\");\n sb.append(getLevelTypeAsString(m_levelObjectType));\n sb.append(\", m_levelObjectId=\");\n sb.append(m_levelObjectId);\n sb.append(\", m_issueHistory={\");\n sb.append(m_issueHistory.toString());\n sb.append(\"}}\");\n\n return sb.toString();\n }", "@Override\n public String toString() {\n try {\n return new ObjectMapper().writeValueAsString(this);\n } catch (final JsonProcessingException ioe) {\n return ioe.getLocalizedMessage();\n }\n }", "public String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int key: levelOrder())\n\t\t\tsb.append (key + \" \");\n\t\treturn sb.toString ();\n\t}", "public abstract String toJson();", "@Override\n\tpublic String toJSON() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}", "public String toJSON() throws JSONException;", "@Override\n\tpublic String toString() {\n\t\ttry {\n\t\t\treturn this.toJSONString(0);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\tJsonObject jo = new JsonObject();\r\n\t\t\r\n\t\tjo.addProperty(\"IssuerInfo\", issuerInfo.toString());\r\n\t\tjo.addProperty(\"SubjectInfo\", subjectInfo.toString());\r\n\t\tjo.addProperty(\"AccessRights\", accessRights.toString());\r\n\t\tjo.addProperty(\"ResourceID\", resourceId);\r\n\t\tjo.addProperty(\"ValidityCondition\", validityCondition.toString());\r\n\t\tjo.addProperty(\"RevocationURL\", revocationUrl);\r\n\t\tString sig = \"\";\r\n\t\tfor(byte b : digitalSignature){\r\n\t\t\tsig = sig + Integer.toHexString(0xFF & b);\r\n\t\t}\r\n\t\tjo.addProperty(\"DigitalSignature\", sig);\r\n\t\t\r\n\t\treturn jo.toString();\r\n\t}", "public String getJson() {\n Object ref = json_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n json_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getJson() {\n Object ref = json_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n json_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getJson() {\n Object ref = json_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n json_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "protected String toJSONFragment() {\n StringBuffer json = new StringBuffer();\n boolean first = true;\n if (isSetStepConfig()) {\n if (!first) json.append(\", \");\n json.append(\"\\\"StepConfig\\\" : {\");\n StepConfig stepConfig = getStepConfig();\n\n\n json.append(stepConfig.toJSONFragment());\n json.append(\"}\");\n first = false;\n }\n if (isSetExecutionStatusDetail()) {\n if (!first) json.append(\", \");\n json.append(\"\\\"ExecutionStatusDetail\\\" : {\");\n StepExecutionStatusDetail executionStatusDetail = getExecutionStatusDetail();\n\n\n json.append(executionStatusDetail.toJSONFragment());\n json.append(\"}\");\n first = false;\n }\n return json.toString();\n }", "@Override\n\tpublic String toString() {\n\t\t\n\t\treturn \"{\\\"a\\\":\"+a+\", \\\"B\\\":\\\"\"+B+\"\\\"}\";\n\t}", "@JsonIgnore\n\tpublic String getAsJSON() {\n\t\ttry {\n\t\t\treturn TransportService.mapper.writeValueAsString(this); // thread-safe\n\t\t} catch (JsonGenerationException e) {\n\t\t\tlog.error(e, \"JSON Generation failed\");\n\t\t} catch (JsonMappingException e) {\n\t\t\tlog.error(e, \"Mapping from Object to JSON String failed\");\n\t\t} catch (IOException e) {\n\t\t\tlog.error(e, \"IO failed\");\n\t\t}\n\t\treturn null;\n\t}", "public String serialize() {\n return x + \", \" + y + \", \" + z;\n }", "public String toString()\n\t{\n\t\tString result = \"\";\n\t\tresult += this.data;\n\t\treturn result;\n\t}", "public String getJson() {\n Object ref = json_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n json_ = s;\n return s;\n }\n }", "public String getJson() {\n Object ref = json_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n json_ = s;\n return s;\n }\n }", "public String getJson() {\n Object ref = json_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n json_ = s;\n return s;\n }\n }", "@Override\n public String toString() {\n String toString = \"{\\\"ds_chain\\\":[\";\n for (int i = 0; i < blockChain.size(); i++) {\n if (i == blockChain.size() - 1) {\n toString += blockChain.get(i).toString() + \"]\";\n } else {\n toString += blockChain.get(i).toString() + \",\";\n }\n }\n toString = toString + \",\\\"chainHash\\\":\\\"\" + chainHash + \"\\\"}\";\n return toString;\n }", "@SuppressWarnings(\"unchecked\")\n @Override\n public String toJSONString() {\n JSONObject entry = new JSONObject();\n\n Map<String, Object> configuration = new LinkedHashMap<String, Object>();\n configuration.put(\"smtpHostname\", smtpHostname);\n configuration.put(\"smtpPort\", new Integer(smtpPort));\n configuration.put(\"tls\", tls);\n configuration.put(\"ssl\", ssl);\n configuration.put(\"username\", username);\n configuration.put(\"password\", password);\n configuration.put(\"fromEMail\", fromEMail);\n configuration.put(\"fromSenderName\", fromSenderName);\n\n entry.put(configurationName, configuration);\n\n /*\n * The JSONWriter will pretty-print the output\n */\n Writer jsonWriter = new JSONWriter();\n try {\n entry.writeJSONString(jsonWriter);\n } catch (IOException ioe) {\n throw new RuntimeException(ioe);\n }\n\n return jsonWriter.toString();\n }", "public String getJson();", "public String toString() {\n StringBuffer buffer = new StringBuffer(getClass().getName());\n\n buffer.append(\": \");\t\t\t\t//NOI18N\n buffer.append(\" name: \");\t\t\t//NOI18N\n buffer.append(getName());\n buffer.append(\", logging level: \");\t//NOI18N\n buffer.append(toString(getLevel()));\n\n return buffer.toString();\n }", "public static String getJson() {\n\t\treturn jsonString;\n\t}", "public String toString() {\n return \"\" + data;\n }", "@Override\n public String toJson() {\n return \"{'content':'\" + this.content + \"'}\";\n }", "public String toString() {\n\t\treturn GrilleLoader.serialize(this, false); //isGrlFormat=false\n\t}", "public String toString() {\n\t\treturn data.toString();\n\t}", "public String toString() {\n\t\treturn data.toString();\n\t}", "String serialize();", "@Override\n public String toString() {\n return new GsonBuilder().serializeNulls().create().toJson(this).toString();\n }", "public String toString() {\n\t\treturn \"{\\\"username\\\":\\\"\" + this.username + \"\\\",\\\"apiKey\\\":\\\"\"\n\t\t\t\t+ this.apiKey + \"\\\",\\\"apiSecret:\\\"\" + this.apiSecret\n\t\t\t\t+ \"\\\",\\\"nonce:\\\"\" + this.nonce + \"\\\"}\";\n\t}", "@Override\n public String toString() {\n String result = \"\";\n byte[] data = buffer.data;\n for (int i = 0; i < (buffer.end - buffer.start) / bytes; i++) {\n if (i > 0) result += \", \";\n result += get(i).toString();\n }\n return type + \"[\" + result + \"]\";\n }", "public String toJsonString() {\n JSONObject jsonObject = new JSONObject();\n try {\n jsonObject.put(\"from\", from);\n jsonObject.put(\"domain\", domain);\n jsonObject.put(\"provider\", provider);\n jsonObject.put(\"action\", action);\n\n try {\n JSONObject jsonData = new JSONObject();\n for (Map.Entry<String, String> entry : data.entrySet()) {\n jsonData.put(entry.getKey(), entry.getValue());\n }\n jsonObject.put(\"data\", jsonData);\n } catch (Exception e) {\n e.printStackTrace();\n jsonObject.put(\"data\", \"{}\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return jsonObject.toString();\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getJsonConfiguration() != null)\n sb.append(\"JsonConfiguration: \").append(getJsonConfiguration()).append(\",\");\n if (getParquetConfiguration() != null)\n sb.append(\"ParquetConfiguration: \").append(getParquetConfiguration());\n sb.append(\"}\");\n return sb.toString();\n }", "@Override\n\tpublic String toString() {\n\t\treturn new StringBuilder()\n\t\t\t.append(this.getClass().getSimpleName())\n\t\t\t.append(\" { id:\").append(id)\n\t\t\t.append(\", version:\").append(version)\n\t\t\t.append(\" }\")\n\t\t\t.toString();\n\t}" ]
[ "0.7214577", "0.7214577", "0.71281505", "0.7124397", "0.710086", "0.7095778", "0.7069624", "0.7069624", "0.7069624", "0.7069624", "0.7069624", "0.7069624", "0.7069624", "0.7069624", "0.7069624", "0.7069624", "0.7032749", "0.702025", "0.70101595", "0.69780445", "0.6971553", "0.69528604", "0.68797565", "0.6873036", "0.6816719", "0.68150705", "0.679624", "0.67929924", "0.67613006", "0.67571896", "0.67545855", "0.6753923", "0.6751852", "0.6751852", "0.67457944", "0.6744776", "0.67271906", "0.6707012", "0.6707012", "0.6707012", "0.66710854", "0.66492367", "0.6619173", "0.65883857", "0.65692234", "0.65692234", "0.6558808", "0.65557", "0.6547004", "0.6527948", "0.6517823", "0.6503135", "0.6446544", "0.6442967", "0.6415781", "0.63539577", "0.63280475", "0.63255656", "0.6306799", "0.62963116", "0.62739325", "0.62286747", "0.62086517", "0.6190297", "0.6185657", "0.61835825", "0.617816", "0.6170923", "0.61594707", "0.6146914", "0.6145392", "0.6120323", "0.6111986", "0.6111986", "0.6111986", "0.6108641", "0.6096164", "0.6092278", "0.60885745", "0.6082094", "0.6068394", "0.6068394", "0.6068394", "0.6066782", "0.6062777", "0.6056452", "0.60525966", "0.6040413", "0.6036393", "0.60282654", "0.6015668", "0.6004198", "0.6004198", "0.60019726", "0.60012686", "0.5978154", "0.5977187", "0.5964329", "0.5960834", "0.595584" ]
0.8839035
0
TODO Autogenerated method stub
public void upload(String token) { String json = this.toJson(); HttpURLConnection conn; try { conn = (HttpURLConnection ) new URL(UPLOAD_URL).openConnection(); OutputStreamWriter writer = new OutputStreamWriter(conn.getOutputStream()); writer.write(json); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } finally{ } }
{ "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
Create a new configuration instance.
public RuleConfiguration() { rule = new Rule(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Config createConfig(String filename);", "public ManagedConfiguration createConfiguration() throws SmartFrogException, RemoteException {\n return ManagedConfiguration.createConfiguration(this, true, isClusterRequired(), false);\n }", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Configuration createConfiguration();", "abstract public Config createConfig(String path);", "protected Configuration() {\r\n }", "public Config() {\n this(System.getProperties());\n\n }", "public ConfigExample() {\n }", "public abstract Configuration configuration();", "public abstract CONFIG build();", "public Config() {\n\t\t// TODO Auto-generated constructor stub\n\t\t\n\t}", "private Config() {\n }", "@NonNull\n\t\tConfig build();", "public OServerConfiguration() {}", "private ProjectConfigurationFactory()\n {}", "public static AmqpTransportConfig create() {\n\t\tfinal AmqpTransportConfig res = new AmqpTransportConfig();\n\t\tres.setBuilder(BUILDER);\n\t\treturn res;\n\t}", "ConfigModel createInstanceOfConfigModel();", "public WorkflowConfiguration() {\n\t\t\n\t}", "protected Configuration createConfiguration()\r\n/* 76: */ {\r\n/* 77:119 */ this.configuration_d.setNumOfIterations(Integer.parseInt(this.jTextField1.getText()));\r\n/* 78:120 */ this.configuration_d.setPopulationSize(Integer.parseInt(this.popSize_d.getText()));\r\n/* 79:121 */ ((GAConfiguration)this.configuration_d).setCrossoverThreshold(Double.valueOf(this.jTextField2.getText()).doubleValue());\r\n/* 80:122 */ ((GAConfiguration)this.configuration_d).setMutationThreshold(Double.valueOf(this.jTextField3.getText()).doubleValue());\r\n/* 81:123 */ ((GAConfiguration)this.configuration_d).setMethod((String)this.methodList_d.getSelectedItem());\r\n/* 82:124 */ return this.configuration_d;\r\n/* 83: */ }", "abstract public Config createConfigWithFactory(String path, String factoryPath);", "public static Configuration getInstance() {\r\n if (INSTANCE == null)\r\n INSTANCE = new Configuration();\r\n else\r\n INSTANCE.loadConfigurationFromDisk();\r\n\r\n return INSTANCE;\r\n }", "public IheConfiguration() {\n }", "public void newConfig ()\n {\n Class<?> clazz = group.getRawConfigClasses().get(0);\n try {\n ManagedConfig cfg = (ManagedConfig)PreparedEditable.PREPARER.apply(\n clazz.newInstance());\n if (cfg instanceof DerivedConfig) {\n ((DerivedConfig)cfg).cclass = group.getConfigClass();\n }\n newNode(cfg);\n } catch (Exception e) {\n log.warning(\"Failed to instantiate config [class=\" + clazz + \"].\", e);\n }\n }", "private ConfigProperties() {\n\n }", "@Nonnull\n HashMap<String, Object> createAgentConfiguration();", "public StorageConfiguration() {\n }", "public static synchronized Configuration getInstance() {\n\t\tif (configuration == null) configuration = new Configuration();\n\t\treturn configuration;\n\t}", "public MecBasicsConfig()\n {\n\n }", "Configuration getConfiguration();", "Configuration getConfiguration();", "Configuration getConfiguration();", "Configuration getConfiguration();", "public Conf() {\n createIfNotExists = false;\n deleteInputOnSuccess = false;\n }", "public StorageConfig() {\n }", "public SimulationConfig() {\r\n\t}", "public static SPSConfig createSPSConfig() {\n return new SPSConfig();\n }", "public Configuration(Config config){\n String error = fromConfig(config);\n if(errors){\n throw new RuntimeException(error);\n }\n }", "public PushPluginConfigurationImpl() {\n }", "private static void makeInstance(){\n\n if(settingsFile==null){\n settingsFile = new MetadataFile(SETTINGS_FILE_PATH);\n }\n\n if(!settingsFile.exists()){\n settingsFile.create();\n }\n\n if(tagListeners==null){\n tagListeners= new HashMap<>();\n }\n\n }", "Pair<T, U> build() throws IOException, ConfigurationException;", "public static <K, V> ConfigurationAdapter<K, V> create(Configuration<K, V> c) {\n if (c instanceof CompleteConfiguration) {\n return new ConfigurationAdapter<>(\n new MutableConfiguration<>((CompleteConfiguration<K, V>) c));\n } else {\n //support use of Basic Configuration\n MutableConfiguration<K, V> mutableConfiguration = new MutableConfiguration<>();\n mutableConfiguration.setStoreByValue(c.isStoreByValue());\n mutableConfiguration.setTypes(c.getKeyType(), c.getValueType());\n return new ConfigurationAdapter<>(new MutableConfiguration<>(mutableConfiguration));\n }\n }", "private Config()\n {\n try\n {\n // Load settings from file\n load();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }", "public Configuration() {\r\n\t\tthis.serverAddress = \"127.0.0.1\";\r\n\t\tthis.serverPort = \"2586\";\r\n\t}", "void init (Map<String, String> conf) throws ConfigException;", "private OptimoveConfig() {\n }", "public E4KTunerConfiguration()\n\t{\n\t\tthis( \"Default\" );\n\t}", "public KafkaConfig() { }", "public Config(String filename) {\n this.filename = filename;\n }", "protected freemarker.template.Configuration newConfiguration(TemplateLoader templateLoader) throws IOException, TemplateException {\n return enhance ? new Configuration(templateLoader) : new freemarker.template.Configuration();\n }", "private ConfigurationObject createObject(String name, String type) throws Exception {\r\n ConfigurationObject object = new DefaultConfigurationObject(name);\r\n object.setPropertyValue(PROPERTY_TYPE, type);\r\n\r\n return object;\r\n }", "public static YamlConfiguration createConfig(String name) {\r\n if (!name.endsWith(\".yml\")) {\r\n \tname += \".yml\";\r\n }\r\n \r\n if (plugin.getResource(name) != null){\r\n \tplugin.saveResource(name, false);\r\n \treturn getConfig(name);\r\n } else {\r\n \tFile file = new File(plugin.getDataFolder(),name);\r\n if (!file.exists()) {\r\n plugin.getDataFolder().mkdir();\r\n try {\r\n file.createNewFile();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n return YamlConfiguration.loadConfiguration(file);// returns the newly created configuration object.\r\n }\r\n }", "public Adsconfig() {\n this(\"AdsConfig\", null);\n }", "private void configInit() {\r\n\t\tconfig = pluginInstance.getConfiguration();\r\n\t\tif (!new File(pluginInstance.getDataFolder().getPath() + File.separator + \"config.yml\")\r\n\t\t\t\t.exists()) {\r\n\t\t\tconfig.setProperty(\"reset-deathloc\", true);\r\n\t\t\tconfig.setProperty(\"use-iConomy\", true);\r\n\t\t\tconfig.setProperty(\"creation-price\", 10.0D);\r\n\t\t\tconfig.setProperty(\"deathtp-price\", 50.0D);\r\n\t\t\tconfig.setProperty(\"allow-tp\", true);\r\n\t\t\tconfig.setProperty(\"maxTombStone\", 0);\r\n\t\t\tconfig.setProperty(\"TombKeyword\", \"[Tomb]\");\r\n\t\t\tconfig.setProperty(\"use-tombAsSpawnPoint\", true);\r\n\t\t\tconfig.setProperty(\"cooldownTp\", 5.0D);\r\n\t\t\tconfig.setProperty(\"reset-respawn\", false);\r\n\t\t\tconfig.setProperty(\"maxDeaths\", 0);\r\n\t\t\tconfig.save();\r\n\t\t\tworkerLog.info(\"Config created\");\r\n\t\t}\r\n\t\tconfig.load();\r\n\t}", "protected JobConf createJobConf() \n {\n return new JobConf();\n }", "public ConfigManager() {\n // Nobody here.\n }", "CdapServiceInstanceConfiguration createCdapServiceInstanceConfiguration();", "public DriverConfig createDriver()\n {\n DriverConfig driver = new DriverConfig(this);\n \n _driverList.add(driver);\n \n return driver;\n }", "public void createConfiguration(String configName, String imageID,\n\t\t\tString instantType, String securityGroup) {\n\t\t// asClient.setRegion(usaRegion);\n\t\tCreateLaunchConfigurationRequest lcRequest = new CreateLaunchConfigurationRequest();\n\t\tlcRequest.setLaunchConfigurationName(configName);\n\t\tlcRequest.setImageId(imageID);\n\t\tlcRequest.setInstanceType(instantType);\n\n\t\t/**\n\t\t * EC2 security groups use the friendly name VPC security groups use the\n\t\t * identifier\n\t\t */\n\t\tList securityGroups = new ArrayList();\n\t\tsecurityGroups.add(securityGroup);\n\t\tlcRequest.setSecurityGroups(securityGroups);\n\n\t\tInstanceMonitoring monitoring = new InstanceMonitoring();\n\t\tmonitoring.setEnabled(Boolean.TRUE);// set basic monitoring with FALSE\n\t\tlcRequest.setInstanceMonitoring(monitoring);\n\n\t\tasClient.createLaunchConfiguration(lcRequest);\n\t}", "public void configure() throws ConfigurationException;", "abstract public Config createConfigFromString(String data);", "public void init(Map<String, String> configuration);", "public KedaConfiguration() {\n }", "public static Config createJeruslaemConfig() {\n\t\tConfig config = ConfigUtils.createConfig();\n\n\t\tconfig.network().setInputFile(INPUT_NETWORK);\n\t\tconfig.plans().setInputFile(INPUT_POPULATION);\n\t\tconfig.facilities().setInputFile(INPUT_FACILITES);\n\t\tconfig.households().setInputFile(INPUT_HOUSEHOLDS);\n\n\t\t// modify controler\n\t\tconfig.controler().setWriteEventsInterval(25);\n\t\tconfig.controler().setWritePlansInterval(25);\n\t\tconfig.controler().setEventsFileFormats(EnumSet.of(EventsFileFormat.xml));\n\t\tconfig.controler().setOutputDirectory(OUTPUT_FOLDER + RUN_ID + \"/\");\n\t\tconfig.controler().setOverwriteFileSetting(OverwriteFileSetting.overwriteExistingFiles);\n\t\tconfig.controler().setFirstIteration(0);\n\t\tconfig.controler().setLastIteration(300);\n\t\tconfig.controler().setMobsim(\"qsim\");\n\t\tconfig.controler().setRoutingAlgorithmType(RoutingAlgorithmType.FastAStarLandmarks);\n\t\tconfig.controler().setRunId(RUN_ID);\n\t\t\n\t\t// modify Qsim\n\t\tconfig.qsim().setStartTime(0.0);\n\t\tconfig.qsim().setEndTime(30 * 3600);\n\t\tconfig.qsim().setFlowCapFactor(0.3);\n\t\tconfig.qsim().setStorageCapFactor(Math.pow(0.3, 0.75));\n\t\tconfig.qsim().setNumberOfThreads(12);\n\t\tconfig.qsim().setSnapshotPeriod(1);\n\t\tconfig.qsim().setStuckTime(10);//30,60 or multiply by 60\n\t\tconfig.qsim().setRemoveStuckVehicles(false);\n\t\tconfig.qsim().setTimeStepSize(1);\n\t\tconfig.qsim().setTrafficDynamics(TrafficDynamics.kinematicWaves);// kinematic waves\n\t\tconfig.qsim().setMainModes(Arrays.asList(TransportMode.car));\n\t\tconfig.qsim().setInsertingWaitingVehiclesBeforeDrivingVehicles(true);\n\n\t\t// modify global\n\t\tconfig.global().setCoordinateSystem(\"EPSG:2039\");\n\t\tconfig.global().setNumberOfThreads(16);\n\t\t// ?? random seed?<param name=\"randomSeed\" value=\"4711\" />\n\t\t\n\t\t// Add transit\n\t\tconfig.transit().setUseTransit(true);\n\t\tconfig.transit().setTransitScheduleFile(INPUT_TRANSIT_SCHEDULE);\n\t\tconfig.transit().setVehiclesFile(INPUT_TRANSIT_VEHICLES);\n\t\t\n\n\n//\t\t// Add sub-tour mode choice\n//\t\tconfig.subtourModeChoice()\n//\t\t\t\t.setModes(new String[] { TransportMode.car, TransportMode.pt, TransportMode.walk, TransportMode.bike });\n//\t\t// TODO check that bike is biycle\n//\t\tconfig.subtourModeChoice().setChainBasedModes(new String[] { TransportMode.car });\n//\n\t\t// Add sub-tour mode choice\n\t\tconfig.timeAllocationMutator().setMutationRange(3600);\n\n\t\t// Add strategy\n\t\tconfig.strategy().setMaxAgentPlanMemorySize(5);\n\t\tconfig.strategy().setFractionOfIterationsToDisableInnovation(0.8);\n\n\t\t// Add strategy - plan selector\n\t\tStrategySettings changeExpStrategy = new StrategySettings();\n\t\tchangeExpStrategy.setDisableAfter(-1);\n\t\tchangeExpStrategy.setStrategyName(DefaultPlanStrategiesModule.DefaultSelector.ChangeExpBeta.toString());\n\t\tchangeExpStrategy.setWeight(0.8);\n\t\tconfig.strategy().addStrategySettings(changeExpStrategy);\n\n//\t\t Add strategy - time-mutation\n\t\tStrategySettings timeMutatorStrategy = new StrategySettings();\n\t\ttimeMutatorStrategy\n\t\t\t\t.setStrategyName(DefaultPlanStrategiesModule.DefaultStrategy.TimeAllocationMutator.toString());\n\t\ttimeMutatorStrategy.setWeight(0.1);\n\t\tconfig.strategy().addStrategySettings(timeMutatorStrategy);\n\n\t\t// Add strategy - re-route\n\t\tStrategySettings reRouteStrategy = new StrategySettings();\n\t\treRouteStrategy.setStrategyName(DefaultPlanStrategiesModule.DefaultStrategy.ReRoute.toString());\n\t\treRouteStrategy.setWeight(0.1);\n\t\tconfig.strategy().addStrategySettings(reRouteStrategy);\n\n//\t\t Add strategy - Sub-tour strategy\n\t\tStrategySettings subTourModeChoiceStrategy = new StrategySettings();\n\t\tsubTourModeChoiceStrategy\n\t\t\t\t.setStrategyName(DefaultPlanStrategiesModule.DefaultStrategy.SubtourModeChoice.toString());\n\t\tsubTourModeChoiceStrategy.setWeight(0.1);\n\t\tconfig.strategy().addStrategySettings(subTourModeChoiceStrategy);\n\n\t\t// add car Availability after adding attributes to popualtion\n\t\t config.subtourModeChoice().setConsiderCarAvailability(true);\n\n\t\t// add network modes which are simulated on network in future add more modes\n\t\t// config.plansCalcRoute().setNetworkModes(Arrays.asList(TransportMode.car));\n\t\t// config.plansCalcRoute().setInsertingAccessEgressWalk(true);\n\n\t\t// // just a place hodler\n\t\t// ModeRoutingParams taxiModeRoute = new ModeRoutingParams();\n\t\t// taxiModeRoute.setMode(TransportMode.taxi);\n\t\t// taxiModeRoute.setTeleportedModeSpeed(100.0);\n\t\t// config.plansCalcRoute().addModeRoutingParams(taxiModeRoute);\n\n\t\t// global scoring values taken from TLVM model = SF 14\n\t\tconfig.planCalcScore().setEarlyDeparture_utils_hr(0.0);\n\t\tconfig.planCalcScore().setLateArrival_utils_hr(0);\n\t\tconfig.planCalcScore().setMarginalUtilityOfMoney(0.062);\n\t\tconfig.planCalcScore().setPerforming_utils_hr(0.96);\n\t\tconfig.planCalcScore().setUtilityOfLineSwitch(0);\n\t\tconfig.planCalcScore().setMarginalUtlOfWaitingPt_utils_hr(-0.18);\n\n\t\t// car scoring functions from TLVM model = SF 14\n\t\tPlanCalcScoreConfigGroup.ModeParams carCalcScoreParams = new PlanCalcScoreConfigGroup.ModeParams(\n\t\t\t\tTransportMode.car);\n\t\tcarCalcScoreParams.setConstant(-0.562);\n\t\tcarCalcScoreParams.setMode(\"car\");\n\t\tcarCalcScoreParams.setMonetaryDistanceRate(-0.0004);\n\t\tconfig.planCalcScore().addModeParams(carCalcScoreParams);\n\n\t\t// PT scoring functions from TLVM model = SF 14\n\t\tPlanCalcScoreConfigGroup.ModeParams ptCalcScoreParams = new PlanCalcScoreConfigGroup.ModeParams(\n\t\t\t\tTransportMode.pt);\n\t\tptCalcScoreParams.setConstant(-0.124);\n\t\tptCalcScoreParams.setMode(\"pt\");\n\t\tptCalcScoreParams.setMarginalUtilityOfTraveling(-0.18);\n\t\tconfig.planCalcScore().addModeParams(ptCalcScoreParams);\n\n\t\t// Walk scoring functions from TLVM model = SF 14\n\t\tPlanCalcScoreConfigGroup.ModeParams walkCalcScoreParams = new PlanCalcScoreConfigGroup.ModeParams(\n\t\t\t\tTransportMode.walk);\n\t\twalkCalcScoreParams.setMode(\"walk\");\n\t\twalkCalcScoreParams.setMarginalUtilityOfTraveling(-1.14);\n\t\tconfig.planCalcScore().addModeParams(walkCalcScoreParams);\n\n\t\t// TODO get values for Taxi scoring\n\t\t// Taxi scoring functions place holder (taken from car)\n\t\t// PlanCalcScoreConfigGroup.ModeParams TaxiCalcScoreParams = new\n\t\t// PlanCalcScoreConfigGroup.ModeParams(TransportMode.taxi);\n\t\t// TaxiCalcScoreParams.setConstant(-0.562);\n\t\t// TaxiCalcScoreParams.setMode(\"taxi\");\n\t\t// TaxiCalcScoreParams.setMonetaryDistanceRate(-0.0004);\n\t\t// config.planCalcScore().addModeParams(walkCalcScoreParams);\n\n\t\t// TODO add ride as network mode remove from modechoice\n\t\t// Ride scoring functions place holder taken from Berlin MATSim model -\n\t\t// monetaryDistanceRate same as car -0.0004\n\t\tPlanCalcScoreConfigGroup.ModeParams rideCalcScoreParams = new PlanCalcScoreConfigGroup.ModeParams(\n\t\t\t\tTransportMode.ride);\n\t\trideCalcScoreParams.setMode(\"ride\");\n\t\trideCalcScoreParams.setMonetaryDistanceRate(-0.0004);\n\t\tconfig.planCalcScore().addModeParams(rideCalcScoreParams);\n\n\t\t// TODO check with JLM bike - bicyle\n\t\t// bike scoring functions place holder taken from Berlin MATSim model of bicyke\n\t\tPlanCalcScoreConfigGroup.ModeParams bikeCalcScoreParams = new PlanCalcScoreConfigGroup.ModeParams(\n\t\t\t\tTransportMode.bike);\n\t\tbikeCalcScoreParams.setConstant(-1.9);\n\t\tbikeCalcScoreParams.setMode(\"bike\");\n\t\tconfig.planCalcScore().addModeParams(bikeCalcScoreParams);\n\n\t\t// TODO get activities open hours\n\t\tActivityParams home = new ActivityParams(\"home\");\n\t\thome.setTypicalDuration(16 * 60 * 60);\n\t\tconfig.planCalcScore().addActivityParams(home);\n\n\t\tActivityParams work = new ActivityParams(\"work\");\n\t\twork.setOpeningTime(6 * 3600);\n\t\twork.setClosingTime(20 * 3600);\n\t\twork.setTypicalDuration(8 * 60 * 60);\n\t\tconfig.planCalcScore().addActivityParams(work);\n\n\t\tActivityParams school = new ActivityParams(\"school\");\n\t\tschool.setOpeningTime(8 * 3600);\n\t\tschool.setClosingTime(14 * 3600);\n\t\tschool.setTypicalDuration(8 * 60 * 60);\n\t\tconfig.planCalcScore().addActivityParams(school);\n\n\t\tActivityParams leisure = new ActivityParams(\"leisure\");\n\t\tleisure.setOpeningTime(9 * 3600);\n\t\tleisure.setClosingTime(24 * 3600);\n\t\tleisure.setTypicalDuration(8 * 60 * 60);\n\t\tconfig.planCalcScore().addActivityParams(leisure);\n\n\t\tActivityParams other = new ActivityParams(\"other\");\n\t\tother.setTypicalDuration(8 * 60 * 60);\n\t\tconfig.planCalcScore().addActivityParams(other);\n\n\t\treturn config;\n\n\t}", "private Config()\n {\n // Load from properties file:\n loadLocalConfig();\n // load the system property overrides:\n getExternalConfig();\n }", "public PanoramaConfig() {\n }", "static InttConfiguration getInstance() {\n if ( instance == null ) {\n instance = new InttConfiguration();\n }\n \n return instance;\n }", "public FtlConfig() {\n cfg = new Configuration(Configuration.VERSION_2_3_30);\n cfg.setClassLoaderForTemplateLoading(this.getClass().getClassLoader(), \"ftl\");\n cfg.setDefaultEncoding(\"UTF-8\");\n cfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);\n cfg.setSharedVariable(\"random\",\n new BeansWrapperBuilder(Configuration.VERSION_2_3_30).build().getStaticModels());\n cfg.setLogTemplateExceptions(false);\n cfg.setWrapUncheckedExceptions(true);\n cfg.setFallbackOnNullLoopVariable(false);\n }", "public Configuration(Properties props) {\n test = Boolean.valueOf(props.getProperty(\"test\", \"false\"));\n name = props.getProperty(\"name\", \"OpenCraft Server\");\n message = props.getProperty(\"message\", \"http://opencraft.sf.net/\");\n maximumPlayers = Integer.valueOf(props.getProperty(\"max_players\", \"16\"));\n publicServer = Boolean.valueOf(props.getProperty(\"public\", \"false\"));\n verifyNames = Boolean.valueOf(props.getProperty(\"verify_names\", \"false\"));\n spongeRadius = Integer.valueOf(props.getProperty(\"sponge_radius\", \"2\"));\n gameMode = props.getProperty(\"game_mode\", CTFGameMode.class.getName());\n statsPostURL = props.getProperty(\"statsPostURL\");\n discordURL = props.getProperty(\"discordURL\");\n discordToken = props.getProperty(\"discordToken\");\n welcomeMessage = props.getProperty(\"welcomeMessage\");\n Constants.PORT = Integer.valueOf(props.getProperty(\"port\"));\n Constants.WEB_PORT = Integer.valueOf(props.getProperty(\"webPort\"));\n }", "public static StateConductorDriverConfig newConfig(Map<String, String>... properties) {\n Map<String, String> props = getMergedProperties(properties);\n logger.debug(\"Configuration Properties: {}\", props);\n // build the configuration\n StateConductorDriverConfig config = new StateConductorDriverConfig();\n config.host = getPropertyValue(props, \"mlHost\", \"localhost\");\n config.port = Integer.parseInt(getPropertyValue(props, \"mlPort\", \"8000\"));\n config.username = getPropertyValue(props, \"username\", null);\n config.password = getPropertyValue(props, \"password\", null);\n config.jobsDatabase = getPropertyValue(props, \"jobsDatabase\", \"state-conductor-jobs\");\n config.securityContextType = SecurityContextType.valueOf(getPropertyValue(props, \"securityContextType\", \"basic\").toUpperCase());\n config.simpleSsl = Boolean.parseBoolean(getPropertyValue(props, \"simpleSsl\", \"false\"));\n config.externalName = getPropertyValue(props, \"externalName\", null);\n config.certFile = getPropertyValue(props, \"certFile\", null);\n config.certPassword = getPropertyValue(props, \"certPassword\", null);\n config.connectionType = DatabaseClient.ConnectionType.valueOf(getPropertyValue(props, \"connectionType\", \"direct\").toUpperCase());\n config.threadCount = Integer.parseInt(getPropertyValue(props, \"threadCount\", \"10\"));\n config.pollSize = Integer.parseInt(getPropertyValue(props, \"pollSize\", \"1000\"));\n config.batchSize = Integer.parseInt(getPropertyValue(props, \"batchSize\", \"5\"));\n config.queueThreshold = Integer.parseInt(getPropertyValue(props, \"queueThreshold\", \"20000\"));\n config.cooldownMillis = Long.parseLong(getPropertyValue(props, \"cooldownMillis\", \"5000\"));\n config.pollInterval = Long.parseLong(getPropertyValue(props, \"pollInterval\", \"1000\"));\n config.metricsInterval = Long.parseLong(getPropertyValue(props, \"metricsInterval\", \"5000\"));\n config.flowNames = getPropertyValue(props, \"flowNames\", null);\n config.flowStatus = getPropertyValue(props, \"flowStatus\", null);\n return config;\n }", "public PackageBuilderConfiguration(Properties properties) {\r\n init( null,\r\n properties );\r\n }", "public Properties() {\n\n\t\tconfig = new java.util.Properties();\n\n\t\ttry {\n\t\t\tInputStream input = new FileInputStream(new File(\n\t\t\t\t\t\"ConfigurationFile.txt\"));\n\t\t\tconfig.load(input);\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private GameConfig() {}", "private Conf() {\n // empty hidden constructor\n }", "public static Config create(String name,String relativePath, boolean createFile) { // createFile = create properties file with default values, if not exist\n\t\tif(null==name || \"\".equals(name)) {\n\t\t\t//TODO exception, logging\n\t\t\treturn null;\n\t\t}\n\t\tLogger.trace(\"Creating new Config Object...\");\n\t\tFileConfig c;\n\t\tc=new FileConfig(name, relativePath, () -> DefaultMainConfig.create() );\n\t\tif(!c.hasFile) {\n\t\t\tc.resetToDefault();\n\t\t}\n\t\treturn confMap.put(name, c);\n\t}", "public Configuration(File configFile) {\r\n \t\tproperties = loadProperties(configFile);\r\n \t}", "void init(Config config);", "public static Config getInstance() {\r\n\t\tif (instance == null) {\r\n\t\t\tGson gson = new Gson();\r\n\t\t\ttry {\r\n\t\t\t\tinstance = gson.fromJson(FileUtil.getResourceContent(\"config.data\"), Config.class);\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tSystem.err.println(ex.getMessage());\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn instance;\r\n\t}", "private void createConfig() {\n try {\n if (!getDataFolder().exists()) {\n getDataFolder().mkdirs();\n }\n File file = new File(getDataFolder(), \"config.yml\");\n if (!file.exists()) {\n getLogger().info(\"config.yml not found :( Creating one with default values...\");\n saveDefaultConfig();\n } else {\n getLogger().info(\"config.yml found :) Loading...\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n\n }\n\n }", "void setConfiguration();", "public AntConfiguration(){\n this.channelID1 = new ChannelID(); //initially set all parameters of Channel ID to 0\n this.channelID2 = new ChannelID(); //initially set all parameters of Channel ID to 0\n\n this.channelAssigned1 = new Channel(); //initially do not assign any cha\n this.channelAssigned2 = new Channel(); //initially do not assign any channel\n\n this.channelPeriod = 4; //set to 4Hz by default\n this.level = PowerLevel.NEGTWENTY; //set to -20dB as default\n this.state1 = ChannelState.UNASSIGNED;\n this.state2 = ChannelState.UNASSIGNED;\n\n }", "public CrawlerConfiguration() {\n\t\tinitConfiguration();\n\t}", "private ConfigurationModel() {\r\n\tloadConfiguration();\r\n }", "public MicroConfiguration() {\n this(\n System.getProperty(\"piranha.version\", MicroConfiguration.class.getPackage().getImplementationVersion()),\n System.getProperty(\"piranha.extensions\", \"micro-core,micro\"),\n System.getProperty(\"piranha.dependencies\", \"\"),\n System.getProperty(\"piranha.repositories\", \"https://repo1.maven.org/maven2\"),\n Boolean.valueOf(System.getProperty(\"piranha.offline\", \"false\")),\n Integer.valueOf(System.getProperty(\"piranha.port\", \"8080\")),\n System.getProperty(\"piranha.root\"),\n System.getProperty(\"piranha.http.server\", \"impl\"),\n\n\n null,\n null,\n null);\n }", "public SourceTypeConfiguration() {\n\n\t}", "@Override\n\tpublic DataConfig createDefaultConfig() {\n\t\treturn new DataConfig();\n\t}", "void configure(String name, Map<String, Object> configuration);", "private static Configuration getConfig() {\n Configuration vgConfig = new Configuration();\n vgConfig.addBrowser(1200, 800, BrowserType.CHROME);\n vgConfig.addBrowser(1200, 800, BrowserType.FIREFOX);\n vgConfig.addBrowser(1200, 800, BrowserType.EDGE);\n vgConfig.addBrowser(1200, 800, BrowserType.SAFARI);\n vgConfig.addDeviceEmulation(DeviceName.iPhone_X, ScreenOrientation.PORTRAIT);\n return vgConfig;\n }", "public ValidateConfiguration() {\n super();\n }", "public AbstractRepositoryImplConfig() {\n\t}", "private ConfigurationKeys() {\n // empty constructor.\n }", "public SimpleXMLPipelineConfiguration() {\n configurations = new HashMap();\n }", "public SmtpConfiguration() {\n }", "private Configuration(String location) {\n this.location = location;\n }", "public PipelineConfig() {\n super();\n }", "CdapInternalApplicationConfiguration createCdapInternalApplicationConfiguration();", "@SneakyThrows\n public static AgentConfig createAgentConfig(final String filename) {\n if (Objects.isNull(filename)) {\n return new AgentConfig();\n }\n try (InputStream inputStream = new FileInputStream(filename)) {\n return YAML_MAPPER.readValue(inputStream, AgentConfig.class);\n }\n }", "public void configure(Map<String, String> configuration) throws AlgebricksException;", "public static Configuration getConfiguration() {\n Configuration hBaseConfig = HBaseConfiguration.create();\n hBaseConfig.setInt(\"timeout\", 120000);\n hBaseConfig.set(\"hbase.master\", \"*\" + NAME_NODE_1 + \":9000*\");\n hBaseConfig.set(\"hbase.zookeeper.quorum\", NAME_NODE_1);\n hBaseConfig.set(\"hbase.zookeeper.property.clientPort\", \"2181\");\n return hBaseConfig;\n }", "Pair<T, U> build(ConfigurationSourceProvider provider, String path) throws IOException, ConfigurationException;", "Map<String, Object> createConfig(Request request, String configtype);", "private static Configuration getConfiguration(HIFTestOptions options) {\n Configuration conf = new Configuration();\n conf.set(ConfigurationOptions.ES_NODES, options.getServerIp());\n conf.set(ConfigurationOptions.ES_PORT, options.getServerPort().toString());\n conf.set(ConfigurationOptions.ES_NODES_WAN_ONLY, TRUE);\n // Set username and password if Elasticsearch is configured with security.\n conf.set(ConfigurationOptions.ES_NET_HTTP_AUTH_USER, options.getUserName());\n conf.set(ConfigurationOptions.ES_NET_HTTP_AUTH_PASS, options.getPassword());\n conf.set(ConfigurationOptions.ES_RESOURCE, ELASTIC_RESOURCE);\n conf.set(\"es.internal.es.version\", ELASTIC_INTERNAL_VERSION);\n conf.set(ConfigurationOptions.ES_INDEX_AUTO_CREATE, TRUE);\n conf.setClass(HadoopInputFormatIOConstants.INPUTFORMAT_CLASSNAME,\n org.elasticsearch.hadoop.mr.EsInputFormat.class, InputFormat.class);\n conf.setClass(HadoopInputFormatIOConstants.KEY_CLASS, Text.class, Object.class);\n conf.setClass(HadoopInputFormatIOConstants.VALUE_CLASS, LinkedMapWritable.class, Object.class);\n return conf;\n }", "public ConfigAction()\n {\n this(null, null, true);\n }" ]
[ "0.70058876", "0.69769603", "0.6813724", "0.67946583", "0.64881706", "0.64830714", "0.6482483", "0.6456742", "0.64459705", "0.64137113", "0.632255", "0.62460756", "0.6230026", "0.61898094", "0.6187389", "0.6185853", "0.61190665", "0.61139774", "0.6060678", "0.598149", "0.5939941", "0.59393746", "0.5931943", "0.59256476", "0.58967125", "0.58958197", "0.58900857", "0.58665615", "0.58665615", "0.58665615", "0.58665615", "0.58632296", "0.584716", "0.584614", "0.5841824", "0.58362025", "0.5827988", "0.57743526", "0.57640266", "0.57505304", "0.57478434", "0.5725729", "0.57023996", "0.5695633", "0.5695013", "0.5687736", "0.5677874", "0.56695193", "0.56692046", "0.56647635", "0.5658994", "0.5651281", "0.56481355", "0.5631281", "0.5614123", "0.560173", "0.5595963", "0.55920047", "0.5585962", "0.55750126", "0.5563182", "0.55548877", "0.5552451", "0.55478495", "0.5544735", "0.5544229", "0.5541861", "0.5539235", "0.55314547", "0.55303264", "0.5529984", "0.55281883", "0.5520094", "0.5519256", "0.5516381", "0.54997134", "0.5494108", "0.54873353", "0.54752296", "0.5474762", "0.5473214", "0.5469864", "0.5460303", "0.5458527", "0.5442652", "0.54394734", "0.5437721", "0.5436299", "0.54340893", "0.54327554", "0.54306954", "0.5425184", "0.54240495", "0.54223", "0.54195935", "0.53966606", "0.5388115", "0.53881127", "0.53757405", "0.5374143", "0.5371074" ]
0.0
-1
An interface to enable the sharing of constant values
public interface Constants { /** * The maximum number of Prizes allowed */ int NUMBER_OF_PRIZES = 10; /** * The maximum number of students */ int NUMBER_OF_STUDENTS = 1000; /** * The maximum number of topics a student can undertake */ int NUMBER_OF_TOPICS = 40; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface IConstantAlgo extends IAlgo {\n\n\t/**\n\t * Returns the output that exports the constant value\n\t * @return\n\t */\n\tpublic IInputOutput getConstantOuput();\n\t\n\t/**\n\t * Returns the parameter that stores the constant value\n\t * @return\n\t */\n\tpublic Parameter<?> getConstantParameter();\n\t\n}", "ConstValue createConstValue();", "public abstract boolean isConstant();", "@Override\n public boolean isConstant() {\n return false;\n }", "public boolean isConstant();", "public Constant (int value){\r\n this.value = value;\r\n\r\n }", "public interface constantValue {\n String redisIp=\"115.159.206.169\";\n String redisPort=\"6379\";\n String redisPasswd=\"thrsky\";\n}", "@Override\n\tpublic void setConstant(InterpreteConstants c) {\n\t\t\n\t}", "public void constants_should_be_unique() throws IllegalAccessException {\n Class<Constants> klass = Constants.class;\n Map<String, Field> values = new HashMap<String, Field>();\n for (Field f : klass.getFields()) {\n Object value = f.get(klass);\n if (!(value instanceof String))\n continue;\n String val = (String) value;\n Field sameValueField = values.get(val);\n if (sameValueField != null) {\n fail(\"Constants \" + f.getName() + \" and \" + sameValueField.getName() + \" have same value \" + val);\n } else {\n values.put(val, f);\n }\n }\n }", "@Override\r\n\tpublic void computeConstant() {\n\t\t\r\n\t}", "public interface CommonIndexValue\n{\n\tpublic byte[] getVisibility();\n\n\tpublic void setVisibility(\n\t\t\tbyte[] visibility );\n\n\tpublic boolean overlaps(\n\t\t\tNumericDimensionField[] field,\n\t\t\tNumericData[] rangeData );\n}", "public void setConstant(){\n \tisConstant = true;\n }", "public interface Constants {\n public static final int CASE_ZERO = 0;\n public static final int CASE_ONE = 1;\n\n}", "@Override\n public boolean wrapConstant(Object constant) {\n return false;\n }", "public void setConst() {\r\n\t\tthis.isConst = true;\r\n\t}", "public boolean isConstant() {\n return false;\n }", "String getConstant();", "java.lang.String getConstantValue();", "@Nullable public abstract Object getConstantValue() throws CompileException;", "public interface ConstantExpression extends AtomicExpression {\r\n}", "boolean hasConstantValue();", "public interface MyConstant {\n\tpublic boolean DEBUG = true;\n\n}", "public interface BaseConstant {\n\n //=======数据来源=========//\n /**\n * 微信公众号\n */\n Integer SOURCE_TYPE_WECHAT=1;\n /**\n * 后台\n */\n Integer SOURCE_TYPE_WEB=2;\n /**\n * APP\n */\n Integer SOURCE_TYPE_APP=3;\n //=======数据来源end=========//\n}", "public interface KeyValueConst {\n\n String PUBLIC_KEY = \"PublicKey\";\n String PRIVATE_KEY = \"PrivateKey\";\n}", "public interface Constants {\n String NA = \"NA\";\n}", "@Override\n\tpublic boolean getIsConstant() {\n\t\treturn false;\n\t}", "default void putConstant(ConstantName constantName, Constant constant) {}", "public interface LibraryConstant {\n\n public interface LanguageConstant {\n\n public static String JAVA=\"JAVA\";\n public static String C=\"C\";\n public static String CPP=\"C++\";\n }\n\n public interface StyleConstant {\n\n //pre-defined Styles\n\n public static final String NORMAL=\"NORMAL\";\n public static final String BOLD=\"BOLD\";\n public static final String ITALIC=\"ITALIC\";\n public static final String UNDERLINE=\"UNDERLINE\";\n public static final String SUPERSCRIPT=\"SUPERSCRIPT\";\n public static final String SUBSCRIPT=\"SUBSCRIPT\";\n\n\n }\n}", "Rule Const() {\n // Push 1 ConstNode onto the value stack\n StringVar constName = new StringVar(\"\");\n return Sequence(\n \"const \",\n FieldType(),\n Identifier(),\n actions.pop(),\n ACTION(constName.set(match())),\n \"= \",\n ConstValue(),\n Optional(ListSeparator()),\n WhiteSpace(),\n push(new IdentifierNode(constName.get())),\n actions.pushConstNode());\n }", "public default boolean isConstant() {\n\t\treturn getValue().isConstantAddress();\n\t}", "public interface Constants {\n int BYTES_PER_FLOAT = 4;\n}", "public interface Constants {\r\n\r\n /** The factory. */\r\n FieldFactory FACTORY = new FieldFactoryImpl();\r\n\r\n /** The 64 K chunk size */\r\n int _64K = 40 * 40 * 40;\r\n\r\n /** The Aligned 64 compiler */\r\n Aligned64Compiler ALIGNED64 = new Aligned64Compiler();\r\n\r\n /** Number of Elements to be READ */\r\n int ELEMENTS_READ = _64K;\r\n\r\n /** Number of Elements to be Written */\r\n int ELEMENTS_WRITTEN = _64K;\r\n\r\n /** The packed compiler*/\r\n CompilerBase PACKED = new PackedCompiler();\r\n\r\n /** The * iterations. */\r\n int _ITERATIONS = 20;\r\n\r\n /** The read iterations. */\r\n int READ_ITERATIONS = _ITERATIONS;\r\n\r\n /** The read union iterations. */\r\n int READ_ITERATIONS_UNION = _ITERATIONS;\r\n\r\n /** The write iterations non-transactional. */\r\n int WRITE_ITERATIONS_NON_TRANSACTIONAL = _ITERATIONS;\r\n\r\n /** The write iterations transactional. */\r\n int WRITE_ITERATIONS_TRANSACTIONAL = _ITERATIONS;\r\n\r\n /** The write union iterations non-transactional. */\r\n int WRITE_ITERATIONS_UNION_NON_TRANSACTIONAL = _ITERATIONS;\r\n\r\n /** The write union iterations transactional. */\r\n int WRITE_ITERATIONS_UNION_TRANSACTIONAL = _ITERATIONS;\r\n\r\n}", "public interface Constants {\n\n String CURRENT_SCORE = \"CURRENT_SCORE\";\n\n String HIGH_SCORES = \"HIGH_SCORES\";\n\n String DB_WRITER = \"DB_WRITER\";\n\n String DB_READER = \"DB_READER\";\n\n String DB_HELPER = \"DB_HELPER\";\n\n\n}", "public static ConstantExpression constant(Object value) { throw Extensions.todo(); }", "String constant();", "public interface Constants {\n\t\n\t/** The Constant SPACE_CHAR of type Character of one empty space. */\n\tstatic final char SPACE_CHAR = ' ';\n\t\n\t/** The Constant LETTER_O of type Character which holds mark X. */\n\tstatic final char LETTER_O = 'O';\n\t\n\t/** The Constant LETTER_X of type Character which holds mark O. */\n\tstatic final char LETTER_X = 'X';\n}", "Rule ConstValue() {\n // Push 1 ConstValue node onto the value stack\n return Sequence(\n FirstOf(\n IntConstant(),\n DoubleConstant(),\n Literal(),\n Identifier(),\n ConstList(),\n ConstMap()),\n actions.pushConstValueNode());\n }", "public interface VerificationConst {\n\t/**\n\t * Минимальные габариты зала\n\t */\n\tpublic static final int MIN_SECTOR_DIMENSIONS = 1000;\n\t/**\n\t * минимальные габариты стеллажа\n\t */\n\tpublic static final int MIN_RACK_DIMENSIONS = 10;\n\t/**\n\t * минимальные габариты полки стеллажа\n\t */\n\tpublic static final int MIN_RACK_SHELF_DIMENSIONS = 5;\n}", "@Override\n\tpublic InterpreteConstants constant() {\n\t\treturn null;\n\t}", "public interface Token extends Serializable {\r\n\r\n\t/**\r\n\t * The \"const\" keyword\r\n\t */\r\n\tToken CONST = new Token(){\r\n\t\tprivate static final long serialVersionUID = -3891676043565611933L;\r\n\t};\r\n\t//TODO\r\n}", "public interface Constant<T> extends Remote {\n T getValue() throws RemoteException;\n}", "public interface Constants extends ShareConstants {\n String FASTDEX_DIR = \"fastdex\";\n String PATCH_DIR = \"patch\";\n String TEMP_DIR = \"temp\";\n String DEX_DIR = \"dex\";\n String OPT_DIR = \"opt\";\n String RES_DIR = \"res\";\n}", "public interface Constants {\n final String TAG = \"myTag\";\n}", "RealConstant createRealConstant();", "private ParallelGatewayConstant() {\n }", "public interface DublinCoreConstants {\n \n /** Creates a new instance of Class */\n public static int DC_TITLE = 0;\n public static int DC_CREATOR = 1;\n public static int DC_SUBJECT = 2;\n public static int DC_DATE = 3;\n public static int DC_TYPE= 4;\n public static int DC_FORMAT= 5;\n public static int DC_IDENTIFIER = 6;\n public static int DC_COLLECTION = 7;\n public static int DC_COVERAGE = 8;\n \n public static int SUPPORTED_NUMBER = 9;\n \n public static final String[] DC_FIELDS = {\"title\",\"creator\",\"subject\",\"date\",\"type\",\"format\",\"identifier\",\"collection\",\"coverage\"};\n public static final String DC_NAMESPACE = \"dc:\";\n \n}", "public interface Constants {\r\n public static final String APPLE_PRODUCT_CODE = \"APP1456\";\r\n public static final String ORANGE_PRODUCT_CODE = \"ORG3456\";\r\n public static final Double APPLE_PRODUCT_PRICE = 0.60;\r\n public static final Double ORANGE_PRODUCT_PRICE = 0.25;\r\n public static final int MAGIC_NUMBER_ZERO = 0;\r\n public static final int MAGIC_NUMBER_TWO = 2;\r\n public static final int MAGIC_NUMBER_THREE = 3;\r\n public static final int MAGIC_NUMBER_FIVE = 5;\r\n public static final int MAGIC_NUMBER_SEVEN = 7;\r\n public static final int MAGIC_NUMBER_NINE = 9;\r\n}", "public interface Constants {\n\n String KEY_BOOK_INFO = \"key_book_info\";\n\n}", "public interface Constants\r\n{\r\n\tfinal public static double EPSILON = 0.0001;\r\n\tfinal public static int LEFT_BUTTON = MouseEvent.BUTTON1;\r\n\tfinal public static int RIGHT_BUTTON = MouseEvent.BUTTON3;\r\n\tfinal public static double SMALL_EPSILON = 0.0000000001;\r\n}", "private Const() {\n }", "private TwoPassPartialConstant() {\r\n\t\tthis(true);\r\n\t}", "public interface Constant {\n\n String JWT_SECRET = \"jwtsecret\";\n\n long EXP_TIME_LENGTH = 86400000;\n}", "public interface CookieConstant {\n\n String TOKEN = \"token\";\n\n Integer EXPIRE = 7200;\n}", "float getConst();", "Constant(String name, IRubyObject irubyObject) {\n super(name, irubyObject);\n }", "public ConstantProduct() {\n constProperty = \"constant\";\n constProperty2 = \"constant2\";\n }", "private List<Object> getConstantValue()\r\n/* 97: */ {\r\n/* 98:117 */ return (List)this.constant.getValue();\r\n/* 99: */ }", "private ConstantValue(final ConstantValue other) {\n\t\tsuper(other.nameIndex, other.length);\n\n\t\tthis.constantValueIndex = other.constantValueIndex;\n\t}", "public interface TriggerUtilConstants {\n\n public static final int DEFAULT_MAX_BUFFERS = 1000;\n public static final int DEFAULT_BUFFER_BLEN = 32000;\n}", "BlockConstant createBlockConstant();", "public boolean isConstant()\r\n/* 92: */ {\r\n/* 93:112 */ return this.constant != null;\r\n/* 94: */ }", "public interface Constants {\n public static final short NET_MASK_MAX_LENGTH = 32;\n}", "public interface ConstantExpression extends GenericExpression\n{\n}", "boolean hasConst();", "private ConstantTransformer(Object constant) {\n super();\n iConstant = constant;\n }", "public interface CustomerConstants {\r\n\r\n int CUST_ID_SIZE = 5;\r\n int EMAIL_SIZE = 30;\r\n int FIRST_NAME_SIZE = 15;\r\n int LAST_NAME_SIZE = 15;\r\n}", "public interface MyConstants {\n String ISPROCTECTED =\"isProctected\";\n String SAFENUMBER = \"safenumber\";\n String SIMNUMBER = \"simnumber\";\n String SPFILE = \"config\";\n String PASSWORD = \"password\";\n String ISSETUP = \"isSetup\";\n}", "public Cached(StackManipulation fieldConstant) {\n this.fieldConstant = fieldConstant;\n }", "public static interface Resolver\n {\n Constant resolve(Constant constOrig);\n }", "public interface Constants {\n\n /*TODO KEY VALUE 参数*/\n String BUNDLE = \"bundle\";\n\n /*TODO APP 渠道*/\n String APP_SHANXI = \"SHANXI\";\n}", "public interface Constants {\n int STATE_AGREE = 1;\n int STATE_DISAGREE = 2;\n}", "private Constants() {\n\t\tthrow new AssertionError();\n\t}", "public boolean isConstant() {\n\t\treturn this.isConstant;\n\t}", "@Override\n public void visit(RealConstantNode intConstantNode) {\n }", "Shared shared();", "public interface Constant {\n int TIME_OUT = 30000;\n\n String POST = \"POST\";\n\n String GET = \"GET\";\n}", "default Constant getConstant(ConstantName constantName) {return (Constant) constantName;}", "public interface BundleConsts extends BundleConstants {\n}", "IntConstant createIntConstant();", "private Constants() {\n }", "private Constants() {\n }", "public static ConstantExpression constant(Object value, Class clazz) { throw Extensions.todo(); }", "public Parameter<?> getConstantParameter();", "public abstract boolean isShared();", "public static RuntimeValue constant(Object value) throws RuntimeException {\n if (value instanceof Integer) {\n return new RuntimeValue(RuntimeValue.Type.DISCRETE_INT_SAMPLE, DiscreteSample.create(value));\n }\n\n if (value instanceof Float) {\n return new RuntimeValue(RuntimeValue.Type.DISCRETE_FLOAT_SAMPLE, DiscreteSample.create(value));\n }\n\n if (value instanceof Boolean) {\n return new RuntimeValue(RuntimeValue.Type.DISCRETE_BOOL_SAMPLE, DiscreteSample.create(value));\n }\n\n throw new RuntimeException(\"Incompatible constant\");\n }", "public interface SharingFunction {\r\n\r\n /**\r\n * Sets internal DistanceFunction responsible for computation of plain distance between given individuals.\r\n * @param distanceFunction - DistanceFunction responsible for computation of plain distance as an input value for sharing function.\r\n */\r\n public void setDistanceFunction(DistanceFunction distanceFunction);\r\n\r\n /**\r\n * Computes value of shared function for targetIndividual which is also located in allIndividuals.\r\n * @param targetIndividual - individual for which the sharing value will be computed.\r\n * @param secondIndividual - individual in respect to which the sharing value is computed.\r\n * @return value of sharing function for individual according to secondIndividual.\r\n */\r\n public double computeShareValue(Individual targetIndividual, Individual secondIndividual);\r\n}", "public interface Common {\n}", "public interface Constants {\n\n final public static String TAG = \"[PracticalTest02Var04]\";\n\n final public static boolean DEBUG = true;\n\n final public static String EMPTY_STRING = \"\";\n\n final public static String QUERY_ATTRIBUTE = \"query\";\n\n final public static String SCRIPT_TAG = \"script\";\n final public static String SEARCH_KEY = \"wui.api_data =\\n\";\n\n final public static String CURRENT_OBSERVATION = \"current_observation\";\n\n}", "private Constants() {\n\n }", "public interface IActivityConstants {\n\n public static final int ADD_UNIT_REQ_CODE = 1;\n\n public static final String METRIC_KEY = \"METRIC\";\n\n public static final String KNOT_KEY = \"KNOT\";\n\n public static final String BEUA_KEY = \"BEUAFORT\";\n\n public static final String INPUT_KEY = \"INPUT\";\n\n}", "LTimeConstant createLTimeConstant();", "private Constants() {\n throw new AssertionError();\n }", "public void visitFCONST(FCONST o){\n\t\t// nothing to do here.\n\t}", "public interface Constants {\n\n /**\n * 资源路径\n */\n String CONTENT_RESOURCES_PATH = \"content\";\n\n /**\n * 名师头像地址\n */\n String TEACHER_HEADE_IMG_PATH = \"teacher\";\n\n /**\n * 证书保存地址\n */\n String CERTIFICATE_IMG_PATH = \"certificate\";\n\n\n /**\n * 舞谱上传地址目录\n */\n String DANCE_BOOK_PATH = \"dance_book\";\n}", "public interface Constants {\n int SERVER_PORT = 6001;\n String LOCALHOST = \"127.0.0.1\";\n\n String DEFAULT_PHONE_NUMBER = \"+380965354234\";\n\n}", "public interface Constants\n{\n\tString EMAIL = \"email\";\n\tString RECORD_ID = \"_id\";\n\tString ENTRY_DATE = \"entryDate\";\n\tString DATE_FORMAT = \"yyyy-MM-dd'T'HH:mm:ssXXX\";\n\tString LEADS = \"leads\";\n}", "public interface Constants {\n\n String IMAGE_DOWNLOAD_LINK = \"http://appsculture.com/vocab/images/\";\n\n}", "public Iterable<Map.Entry<String,Double>> getConstants() {\r\n return Collections.unmodifiableMap(constants).entrySet();\r\n }", "public interface RedisConstant {\n\n String TOKEN_PREFIX = \"TOKEN_%s\";\n Integer EXPIRE = 7200;//SECOND\n\n}", "public abstract interface SummaryConstants\n{\n public static final Font FONT = new Font(\"Verdana\", 1, 12);\n public static final Color BACKGROUND_COLOR = new Color(205, 220, 242);\n public static final Color FOREGROUND_COLOR = new Color(6, 22, 157);\n}" ]
[ "0.64999914", "0.6458879", "0.63971347", "0.63660526", "0.6156777", "0.61437726", "0.611582", "0.6112708", "0.60963404", "0.6089445", "0.6017591", "0.6012432", "0.6005941", "0.59972787", "0.5926078", "0.5877639", "0.58383447", "0.58329", "0.5813288", "0.5804773", "0.5804666", "0.5800943", "0.5796698", "0.5783606", "0.57747954", "0.5766534", "0.57650566", "0.5761358", "0.57324016", "0.57291466", "0.5720945", "0.5713334", "0.5694004", "0.56905234", "0.5672826", "0.5670867", "0.5667996", "0.56605196", "0.5651238", "0.564304", "0.5601181", "0.5595462", "0.5588651", "0.5586677", "0.55697924", "0.5567925", "0.55617154", "0.55585665", "0.5550828", "0.55270565", "0.552298", "0.55176264", "0.5503917", "0.549064", "0.54732156", "0.54711086", "0.54690695", "0.54581195", "0.5451306", "0.54459536", "0.5445651", "0.5434227", "0.54332286", "0.54329693", "0.54206365", "0.5407775", "0.5402579", "0.540025", "0.5395867", "0.5384472", "0.53775936", "0.5375614", "0.53706443", "0.5357678", "0.53539586", "0.53423584", "0.53388304", "0.532546", "0.53234917", "0.531994", "0.531994", "0.531604", "0.53143096", "0.53137517", "0.5308518", "0.5294307", "0.5291532", "0.52910906", "0.52898157", "0.5273238", "0.52685976", "0.52575415", "0.5256364", "0.52557486", "0.52549636", "0.524893", "0.5247518", "0.52387744", "0.5238741", "0.5234172" ]
0.54642177
57
Creates a new Deck object. Initialises deck.
public Deck() { cards = new LinkedList<Integer>(); removedCards = new LinkedList<Integer>(); int i, j; for (i = MIN_VALUE; i <= MAX_VALUE; i++) { for (j = 0; j <= NUM_SUITS; j++) { cards.add(i); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Deck() {\n generateDeckOfCards();\n }", "public Deck()\r\n\t{\r\n\t\tcards = new String[DECK_SIZE];\r\n\t\t\r\n\t\tnewDeck();\r\n\t}", "public Deck() {\n this.deck = new LinkedList<>();\n }", "public Deck() {\n System.out.println(\"Inside deck\");\n cards = new ArrayList<>();\n fillDeck();\n }", "public Deck(){\n\t\tcards = new ArrayList<>(deckSize);\n\t\tdeck = new int[deckSize];\n\t}", "public Deck() {\n deck = new LinkedList<>();\n for (int i = 1; i < FACE_VALUES + 1; i++) {\n deck.add(new Card(i, SPADES));\n deck.add(new Card(i, CLUB));\n deck.add(new Card(i, DIAMOND));\n deck.add(new Card(i, HEART));\n }\n }", "public Deck()\n\t{\n\t\t//call other Constructor defining one deck with out shuffling\n\t\tthis(false);\n\t}", "public Deck() {\n this.allocateMasterPack();\n this.init(1);\n }", "public Deck( ) {\r\n int ordinal;\r\n alalSets = new ArrayList<>();\r\n \r\n // load the cards\r\n for ( ordinal = 1; ordinal <= 13; ordinal++) {\r\n for( int iCount = 1; iCount <= 4; iCount++) {\r\n // the deck adds one set which contains one card\r\n \r\n ArrayList<Card> redCardSet = new ArrayList<>();\r\n Card redCard = new Card();\r\n redCard.value = ordinal;\r\n redCard.color = Enums.RED;\r\n redCardSet.add(redCard); // add card to set\r\n alalSets.add( redCardSet ); // add set to deck\r\n\r\n ArrayList<Card> blackCardSet = new ArrayList<>();\r\n Card blackCard = new Card();\r\n blackCard.value = ordinal;\r\n blackCard.color = Enums.BLACK;\r\n blackCardSet.add(blackCard);\r\n alalSets.add( blackCardSet );\r\n }\r\n }\r\n }", "public Deck()\n {\n deck = new ArrayList<>();\n }", "public void initialise()\r\n {\n Deck d = new Deck();\r\n d.shuffle();\r\n //Deal cards to players\r\n Iterator<Card> it = d.iterator();\r\n int count = 0;\r\n while (it.hasNext())\r\n {\r\n players[count % nosPlayers].addCard(it.next());\r\n it.remove();\r\n ++count;\r\n }\r\n //Initialise Discards\r\n discards = new Hand();\r\n //Chose first player\r\n currentPlayer = 0;\r\n currentBid = new Bid();\r\n currentBid.setRank(Card.Rank.TWO);\r\n }", "public Deck()\n {\n this(1);\n }", "public Deck() {\n deck = new ArrayList<>();\n for (Color d : Color.values()) {\n for (Value e : Value.values()) {\n Card c = new Card(d, e);\n deck.add(c);\n }\n }\n }", "public Deck()\n {\n deck = new Stack<Card>();\n /* Increments through each suit, and then for each suit through each rank,\n * and pushes a\n * new card with the corresponding information onto the deck.\n */\n /* The above comment did not show up in the checkstyle. */\n for (Suit suit : Suit.values())\n {\n /* Increments through each card value. */\n for (CardValue value : CardValue.values())\n {\n deck.push(new Card(suit, value));\n }\n }\n Collections.shuffle(deck);\n }", "public Deck() {\n this.cards = new Card[STANDARD_DECK_SIZE];\n this.topCardIndex = 0;\n int cardIndex = 0;\n int DeckLength = this.cards.length;\n for (Card.Suit suit : Card.Suit.values() ) {\n for (int i = Card.ACE ; i <= Card.KING ; i++ ) {\n cards[cardIndex] = new Card (i, suit);\n cardIndex++;\n }\n }\n }", "private Pile createDeck() {\n \t\tPile deck = new Pile(\"deck\"); // TODO Refactor, no hardcoded string\n\t\tpileNames.add(\"deck\");\n \t\tfor (Suit suit : Suit.values()) {\n \t\t\tfor (Rank rank : Rank.values()) {\n \t\t\t\tdeck.addCard(new Card(suit, rank));\n \t\t\t}\n \t\t}\n \t\t// Put the deck at the middle of the table\n \t\tmTable.set(MID_OF_TABLE, deck);\n \t\treturn deck;\n \t}", "public Deck() {\n cards = new Card[52];\n size = 0;\n for (int suit = Card.SPADES; suit <= Card.CLUBS; suit++) {\n for (int rank = Card.ACE; rank <= Card.KING; rank++) {\n cards[size] = new Card(rank, suit);\n size += 1;\n }\n }\n }", "public Deck() { // This constructor creates a standard deck\n\n\tcards = new Card[52];\n\tint k=0;\n\t\n\tfor (int i=0; i<4; i++)\n\t for (int j=2; j<15; j++){\n\t\tcards[k]= new Card (j, i);\n\t\tk++;\n\t\t }\n\t \n\n\tshuffle();\n\t\n\tcardsLeft = 52;\n\t/*\tfor (int i=0; i<52; i++)\n\t\tSystem.out.println (cards[i]);*/\n }", "public Deck(){\n\t\tcount = 51;\n\t\tcards = new Card[52];\n\t\trand = new Random();\n\t\tfor(Suit suit : Suit.values()){\n\t\t\tfor (int i = 2; i < 15; i++) {\n\t\t\t\tcards[suit.ordinal()*13 + i - 2] = new Card(suit,i);\n\t\t\t}\n\t\t}\n\t}", "public Deck(String name){\r\n\t\tthis(name, new ArrayList<Card>());\r\n\t}", "public Deck(int numDecks) {\n\t\t// Loop through number of decks, suits, and rank\n\t\tfor (int k = 0; k<numDecks; k++) {\n\t\t\tfor (int i = 1; i <= 4; i++) {\n\t\t\t\tfor (int j = 1; j <= 13; j++) {\n\t\t\t\t\t// Add Card object to linked list\n\t\t\t\t\tdeck.add(new Card(i,j));\n\t\t\t\t\tsize++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public Deck(Deck iDeck){\n this.addAll(iDeck);\n }", "@Test\n public void create() {\n Deck deck = new DeckImplementation();\n assertEquals(\"Wrong initial deck size!\", 180,\n deck.numberOfCardsRemaining());\n deck.drawACard();\n assertEquals(\"Wrong size deck after draw!\", 179,\n deck.numberOfCardsRemaining());\n }", "public void createDeck(){\n //Does nothing because it will be overridden in the child classes.\n }", "public Deck(Deck other){\r\n this.cards = other.getCards();\r\n this.deckSize = other.getDeckSize();\r\n }", "public Dealer() {\n dealerHand = new Deck();\n }", "private void initDecks() {\n\t\tDeck[] decks = new Deck[2];\n\t\tdecks[0] = charDeck;\n\t\tdecks[1] = mainDeck;\n\n\t\tfor (int i = 0; i < decks.length; i++) {\n\t\t\tDeck d = decks[i];\n\t\t\td.setNrOfShownCards(d.getDeckSize());\n\t\t\td.setShownLines(showLines);\n\t\t\td.setLineLength(lineLength);\n\t\t\td.setHandPosRelative(-21, -20);\n\t\t\td.reset();\n\t\t}\n\t}", "public void makeDeck()\r\n\t{\r\n\t\tfor (int i = 1; i < 5; i++)\r\n\t\t{\r\n\t\t\tfor (int j = 2; j < 15; j++)\r\n\t\t\t{\r\n\t\t\t\tdeck.add(new Card(i,j));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Deck(ArrayList<Card> deck)\n {\n this.deck = deck;\n }", "@Override\r\n public void dealerCreateNewDeck() {\r\n this.dealer.createNewDeck();\r\n System.out.println(\"Dealer deck created\");\r\n }", "public Deck () {\r\n int arrayPlace = 51;\r\n cardDeck = new Card [52];\r\n String [] suits = {\"Clubs\", \"Diamonds\", \"Hearts\", \"Spades\"};\r\n for (int index = 0; index < suits.length; index++) {\r\n for (int i = 1; i < 14; i++) {\r\n cardDeck [arrayPlace] = new Card (i, suits[index]);\r\n arrayPlace--;\r\n }\r\n }\r\n }", "public Deck() {\n\t\trand = new Random();\n\t\trand.setSeed(System.currentTimeMillis());\n\t\twhile(deck.size()<52){\n\t\t\tint suit = rand.nextInt(4);\n\t\t\tint rank = rand.nextInt(13);\n\t\t\tString card = this.rank[rank] +\" of \" + this.suit[suit];\n\t\t\tdeck.add(card);\n\t\t}\n\t}", "public Dealer(int deckNum, HandCard handCard) {\n List<Deck> deckList = new ArrayList<>();\n for (int i = 0; i < deckNum; i++) {\n deckList.add(new Deck());\n }\n this.deckList = deckList;\n this.handCard = handCard;\n\n this.cardIterator = new CardIterator();\n }", "public Deck(String id) {\n this.id = id;\n }", "public DeckOfCards() {\n\n String faces[] = {\"Ace\", \"Deuce\", \"Three\", \"Four\", \"Five\", \"Six\", \"Seven\", \"Eight\", \"Nine\", \"Ten\", \"Jack\", \"Queen\", \"King\"};\n String suits[] = {\"Hearts\", \"Diamonds\", \"Clubs\", \"Spades\"};\n\n deck = new Card[NUMBER_OF_CARDS]; //create an array of card objects (52)\n currentCard = 0;\n randomNumbers = new Random();\n\n //Populate deck with card objects\n for(int count = 0; count < deck.length; count++){\n deck[count] = new Card(faces[count % 13], suits[count / 13]);\n //first 13 cards will be ace through king of hearts then ace though king of diamonds etc...\n\n }\n\n }", "void makeDeck() {\n\t\t// start with an array of 1..28 for easy shuffling\n\t\tint[] cardValues = new int[28];\n\t\t// assign values from 1 to 28\n\t\tfor (int i=0; i < cardValues.length; i++) {\n\t\t\tcardValues[i] = i+1;\n\t\t}\n\n\t\t// shuffle the cards\n\t\tRandom randgen = new Random();\n\t\tfor (int i = 0; i < cardValues.length; i++) {\n\t\t\tint other = randgen.nextInt(28);\n\t\t\tint temp = cardValues[i];\n\t\t\tcardValues[i] = cardValues[other];\n\t\t\tcardValues[other] = temp;\n\t\t}\n\n\t\t// create a circular linked list from this deck and make deckRear point to its last node\n\t\tCardNode cn = new CardNode();\n\t\tcn.cardValue = cardValues[0];\n\t\tcn.next = cn;\n\t\tdeckRear = cn;\n\t\tfor (int i=1; i < cardValues.length; i++) {\n\t\t\tcn = new CardNode();\n\t\t\tcn.cardValue = cardValues[i];\n\t\t\tcn.next = deckRear.next;\n\t\t\tdeckRear.next = cn;\n\t\t\tdeckRear = cn;\n\t\t}\n\t}", "public Deck(boolean shuffle) {\n\t\t//52 cards\n\t\tthis.cardNumber = 52;\n\t\t//Total slots of 52 ARRAY\n\t\tthis.card = new Card[this.cardNumber];\n\t\t\n\t\t//location of the card\n\t\tint cardLocation= 0;\n\t\t\n\t\t// each suit\n\t\tfor(int suit = 0; suit < 4; suit++)\n\t\t{\n\t\t\t//each number in the deck\n\t\t\tfor(int num = 1; num <=13; num++)\n\t\t\t{\n\t\t\t\t// add a new card to the deck \n\t\t\t\tthis.card[cardLocation] = new Card(Suit.values()[suit],num);\n\t\t\t\tcardLocation++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Shuffling done\n\t\tif(shuffle == true)\n\t\t{\n\t\t\tthis.shuffle();\n\t\t}\n\t}", "public Deck(int numPacks) {\n //Build the master pack.\n this.allocateMasterPack();\n //If the user wants more packs than are available, give them the max.\n if (numPacks > Deck.MAX_PACKS)\n this.init(Deck.MAX_PACKS);\n //If the user wants 0 or less packs, give them one.\n else if (numPacks < 1)\n this.init(1);\n else\n //Otherwise, build the deck with the specified number of packs.\n this.init(numPacks);\n }", "public Game() {\n //Create the deck of cards\n cards = new Card[52 * numDecks];\n cards = initialize(cards, numDecks);\n cards = shuffleDeck(cards, numDecks);\n }", "void fillDeck()\n\t{\n\t\t\n\t\tfor ( byte decks = 0 ; decks < howManyDecks ; decks++ )\n\t\t\tfor ( byte suit = 0 ; suit < 4 ; suit++ )\n\t\t\t\tfor ( byte value = 1 ; value < 14 ; value++ ) \n\t\t\t\t\tdeck.add ( new Card (value , suit , true) );\n\t}", "public void initialDeck()\t{\n\t\tdeck1 = new Deck();\n\t\tdeck2 = new Deck();\n\t\tdeck1.shuffle();\n\t\tdeck2.shuffle();\n\t\tdeck1 = deck1.combine(deck2);\n\t\tdeck1.shuffle();\n\t}", "public BigTwoDeck(){\r\n\t\tinitialize();\r\n\t}", "public Deck makeComputerDeck()\r\n\t{\r\n\t\tDeck computer = new Deck();\r\n\r\n \tfor (int i = 0; i < (DECK_COUNT/2); i++)\r\n \t{\r\n \t computer.addToDeck(deck.remove(0));\r\n \t}\r\n\r\n\t\treturn computer;\r\n\t}", "@Test\r\n public void testDeck() {\r\n Deck instance = new Deck();\r\n System.out.println(\"Testing Contructor\");\r\n assertNotNull(instance);\r\n }", "private void initializeDeck() {\n drawPile.clear();\n\n for (ICard.Color color : ICard.Color.values()) {\n // Numbered cards\n drawPile.add(new NumberedCard(color, 0));\n for (int value = 1; value < 10; value++) {\n drawPile.add(new NumberedCard(color, value));\n drawPile.add(new NumberedCard(color, value));\n }\n\n // Special cards\n drawPile.add(new SkipCard(color));\n drawPile.add(new SkipCard(color));\n\n drawPile.add(new ReverseCard(color));\n drawPile.add(new ReverseCard(color));\n\n drawPile.add(new DrawTwoCard(color));\n drawPile.add(new DrawTwoCard(color));\n }\n\n for (int i = 0; i < 4; i++) {\n drawPile.add(new WildCard());\n drawPile.add(new WildFourCard());\n }\n }", "public GDeck(Deck startdeck){\r\n\t\t cards=startdeck;\r\n\t\t add(back=new GImage(((GCard)startdeck.get(0)).getBackImage().getImage()));\r\n\t }", "public void createDecks(){\r\n\t\tfor (int j = 10; j < 20; j++){\r\n\t\t\taddCard(new Card(cardNames[j]));\r\n\t\t}\r\n\t}", "private void createDeck() {\n FileReader reader = null;\n try {\n try {\n reader = new FileReader(deckInputFile);\n Scanner in = new Scanner(reader);\n \n // read the top line column names of the file\n // e.g. description, size, speed etc.\n String categories = in.nextLine();\n\n // loop through the file line by line, creating a card and adding to the deck\n while (in.hasNextLine()) {\n String values = in.nextLine();\n Card newCard = new Card(categories, values);\n deck.add(newCard);\n }\n } finally {\n if (reader != null) {\n reader.close();\n }\n }\n } catch (IOException e) {\n System.out.print(\"error\");\n }\n }", "public Deck( int copiesPerCard ) {\n if (copiesPerCard <= 0) {\n throw new IllegalArgumentException();\n }\n this.cards = new Card[STANDARD_DECK_SIZE * copiesPerCard];\n this.topCardIndex = 0;\n int DeckLength = this.cards.length;\n int cardIndex = 0;\n for (int copy = 1; copy <= copiesPerCard ; copy++ ) {\n for (Card.Suit suit : Card.Suit.values() ) {\n for (int i = Card.ACE ; i <= Card.KING ; i++ ) {\n cards[cardIndex] = new Card (i, suit);\n cardIndex++;\n }\n }\n }\n }", "public Deck(final String fileName) {\r\n\t\tthis(fileName, true);\r\n\t}", "private Deck()\n\t{\n\t\tfor (Suit s : Suit.values())\n\t\t\tfor(Rank r : Rank.values())\n\t\t\t\tcards.add(new Card(s,r));\n\t}", "public Deck(String name){\n mJson = new JSONObject();\n cards = new ArrayList<>();\n mCardIterator = cards.iterator();\n createdAt = System.currentTimeMillis();\n lastPlayed = NEVER_PLAYED;\n this.name = name;\n try {\n mJson.put(KEY_NAME, name);\n } catch (JSONException e) {\n //Should never get here\n }\n }", "private List<Card> setupDeck(){\n List<Card> llist = new LinkedList<Card>();\n String[] faceCards = {\"J\",\"Q\",\"K\",\"A\"};\n String[] suits = {\"spades\",\"clubs\",\"diamonds\",\"hearts\"};\n\n for(int i=2; i<=10; i++){\n for(int j=1; j<=4; j++){\n llist.add(new Card(Integer.toString(i), suits[j-1], j, i));\n }\n }\n for(int k=1; k<=4; k++){\n for(int l=1; l<=4; l++){\n llist.add(new Card(faceCards[k-1],suits[l-1], l, k+10));\n }\n }\n return llist;\n }", "public Deck( Card c1, Card c2, Card c3, Card c4, Card c5, Card c6, Card c7, Card c8, Card c9,\n\t\t\t\t Card c10, Card c11, Card c12, Card c13, Card c14, Card c15, Card c16, Card c17, Card c18,\n\t\t\t\t Card c19, Card c20, Card c21, Card c22, Card c23, Card c24, Card c25, Card c26, Card c27, \n\t\t\t\t Card c28, Card c29, Card c30, Card c31, Card c32, Card c33, Card c34, Card c35, Card c36, \n\t\t\t\t Card c37, Card c38, Card c39, Card c40, Card c41, Card c42, Card c43, Card c44, Card c45, \n\t\t\t\t Card c46, Card c47, Card c48, Card c49, Card c50, Card c51, Card c52 ) \n\t{\n\t\tCard[] tempDeck = { c1, c2, c3, c4, c5, c6, c7, c8, c9,\n\t\t\t\t\t\t\tc10, c11, c12, c13, c14, c15, c16, c17, c18,\n\t\t\t\t\t\t\tc19, c20, c21, c22, c23, c24, c25, c26, c27,\n\t\t\t\t\t\t\tc28, c29, c30, c31, c32, c33, c34, c35, c36, c37,\n\t\t\t\t\t\t\tc38, c39, c40, c41, c42, c43, c44, c45, c46, \n\t\t\t\t\t\t\tc47, c48, c49, c50, c51, c52 };\n\t\t\n\t\tdeck = new Card[tempDeck.length];\n\t\t\n\t\tfor( int i = 0; i < tempDeck.length; i++ ) {\n\t\t\tdeck[i] = tempDeck[i];\n\t\t}\n\t}", "public void initChestDeck() {\n\t\tchestDeck = new Deck();\n\t\tfor (int i = 0; i < 16; i++) {\n\t\t\tchestDeck.addCard(new Card(i + 16));\n\t\t}\n\t\t//makes cards random\n\t\tchestDeck.shuffle();\n\t}", "public void createDeck() {\n\t\t// for loop that repeats 4 times - one for each suit\n\t\tfor (String suit : suits) {\n\t\t\t// for loop that repeats 13 times (2-14) - once for each value\n\t\t\tfor (int i = 2; i < 15; i++) {\n\t\t\t\t//create instance of new card createCard(value, name);\n\t\t\t\tCard card = new Card(i, suit);\n\t\t\t\t//add card to deck array\n\t\t\t\taddCardToDeck(card);\n\t\t\t}\t\n\t\t}\n\t}", "public Game() {\t\t\t\t\t\n\t\t\n\t\tmDeck = new Deck();\t\t\t\t\t\t\t\t\t\t\t\n\t\tmDealer = new Dealer(mDeck.getCard(), mDeck.getCard());\t//dealer gets a random value card twice to initialise the dealers hand with 2 cards\n\t\tmUser = new User();\t\t\t\t\t\t\t\t\t\t\t\n\t\tgiveCard();\t\t\t\t\t\n\t}", "public void startGame() {\n this.deck = new Deck();\n this.deck.shuffle(); //shuffle the deck\n Card card = this.deck.deal(this.getPlayerHand());\n card = this.deck.deal(this.getPlayerHand());\n card = this.deck.deal(this.getDealerHand());\n }", "public Card(int deckValue){\n\t\t\n\t\t//Guard against an invalid state:\n\t\tif((deckValue < 1) || (deckValue > 52))\n\t\t{\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\t\n\t\tthis.deckValue = deckValue;\n\t\tfaceValue = toFaceValue(deckValue);\n\t\tsuitValue = toSuitValue(deckValue);\n\t}", "public CardDeck cardDeck(){\r\n\t\treturn deck;\r\n\t}", "public Card[] initialize(Card[] deck, int decks) {\n counter = 0;\n\n //Initialize the deck\n for (int i = 0; i < decks; i++) {\n for (int suit = 0; suit < 4; suit++) {\n for (int rank = 0; rank < 13; rank++) {\n cards[counter] = new Card(suit, rank, resolvePNG(suit, rank));\n counter++;\n }\n }\n }\n\n return deck;\n }", "public Card () {}", "public void generateDeck() {\n\t\tList<String> valueList = Arrays.asList(\"Ace\", \"2\", \"3\",\"4\", \"5\", \"6\",\"7\", \"8\", \"9\",\"10\", \"Jack\", \"Queen\",\"King\");\n\t\tList<String> suitList = Arrays.asList(\"Diamonds\", \"Spades\", \"Clubs\", \"Hearts\");\n\t\tvalues.addAll(valueList);\n\t\tsuits.addAll(suitList);\n\t\t\n\t\t//adding card objects to deckOfCards arraylist\n\t\tint i = 1;\n\t\twhile(i<=52){\n Card card = new Card(values.get(random.nextInt(13)), suits.get(random.nextInt(4)));\n if (!deckOfCards.contains(card)) {\n deckOfCards.add(card);\n i++;\n }else{\n\n }\n }\n\t}", "public Card()\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************ Start Card Method *****************/\n\n\t// Set face value to null\n\tfaceValue = null;\n\n\t// Set true value to 0\n\ttrueValue = 0;\n\n\t// Set suit to null\n\tsuit = null;\n\n\t// Set picture to null\n\tpicture = null;\n\n }", "public Queue(int[] Deck) {\n shuffleArray(Deck);\n Node node = new Node();\n for (int i = 0; i < Deck.length; i++) {\n node = new Node();\n node.card = Deck[i];\n node.next = null;\n if (head == null) {\n head = node;\n tail = node;\n }\n else {\n tail.next = node;\n tail = node;\n }\n }\n }", "private void buildDeck() {\r\n //Initialise size of deck and number of cards \r\n this.numOfCards = FIFTYTWO;\r\n //create new Deck Array \r\n this.deck = new ICard[this.numOfCards];\r\n //Creates Deck deck \r\n createDeck(Suit.values(), Rank.values());\r\n //shuffles deck \r\n shuffleCards(deck);\r\n\r\n }", "public void initChanceDeck() {\n\t\tchanceDeck = new Deck();\n\t\tfor (int i = 0; i < 16; i++) {\n\t\t\tchanceDeck.addCard(new Card(i));\n\t\t}\n\t\t//shuffled to make the order random\n\t\tchanceDeck.shuffle();\n\t}", "public Deck getDeck() {\n\t\treturn deck;\n\t}", "private void initPanelDeck() {\r\n\t\tgsp.panelDeck = gsp.createPanel(100, 50, 50, 50, 0, 0, 400, 350);\r\n\t\t\r\n\t\tgsp.buttonDeck = new JButton();\r\n\t\tgsp.setImageIcon(\"Deck\", gsp.buttonDeck);\r\n\t\t\r\n\t\tgsp.labelLastCard = new JLabel();\r\n\t\tgsp.updateLastCardView();\r\n\t\t\r\n\t\tgsp.panelDeck.add(gsp.buttonDeck);\r\n\t\tgsp.panelDeck.add(gsp.labelLastCard);\r\n\t}", "public poker_class ()\n\t{\n\t face = \"Two\";\n\t suit = \"Clubs\";\n\t}", "public BlackjackHand() {\n super(0);\n aceCount = 0;\n cards = new ArrayList<>();\n }", "public Blackjack() {\n\n\t\tKaarten deck = new Kaarten();\n\n\t\tdeck.kaartSpelAanmaken();\n\n\t\tSystem.out.println(\n\t\t\t\t\"Welkom bij Blackjack.\\n\" + \"U bent de eerste speler.\\n\" + \"Vul uw naam hier in om te beginnen!\");\n\t\tString input = scanner.next();\n\n\t\tSpelers speler1 = new Spelers(input);\n\t\tSpelers dealer = new Spelers();\n\n\t\tSystem.out.println(\"Welkom \" + input);\n\n\t\tSystem.out.println(\"Wilt u het deck met kaarten controleren? (y/n)\");\n\t\tString input2 = scanner.next();\n\t\tif (input2.contains(\"y\")) {\n\n\t\t\tdeck.kaartenLatenZien();\n\t\t\tSystem.out.println(\"De kaarten zullen nu opnieuw geschud worden!\");\n\t\t\tdeck.schudKaarten();\n\t\t} else {\n\n\t\t\tdeck.schudKaarten();\n\t\t}\n\n\t\tSystem.out.println(\"Het spel zal nu beginnen\");\n\t\teersteRondeSpelen(speler1, dealer, deck.kaartenspel);\n\n\t\twhile (stoppen = false) {\n\t\t\tkeuzeNaRonde(speler1, dealer, deck.kaartenspel);\n\t\t}\n\t}", "public Card()\n {}", "public Deck(int deckSize,Suit suits[]){\r\n this.suits = suits;\r\n this.deckSize = deckSize;\r\n this.fillDeck();\r\n this.shuffle();\r\n }", "public void buildDeck(){\n\t\tfor(int i = 0; i < deckSize; i++){\n\t\t\tdeck[i] = i;\n\t\t}\n\t}", "public Card(String cardFace, String cardSuit) {\r\n this.face = cardFace; // initialize face of card\r\n this.suit = cardSuit; // initialize suit of card\r\n }", "public Player (Deck mainDeck) {\n this.mainDeck = mainDeck;\n }", "private void initializeDeck() {\r\n\t\t// Loop over the 4 card suits\r\n\t\tfor (Suit suit : Suit.values()) {\r\n\t\t\t// Loop over 13 card types\r\n\t\t\tfor (CardType value : CardType.values()) {\r\n\t\t\t\tcards.addCard(new Card(suit, value));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void createDeckFromInput() {\n\n if(titleField.getText().isBlank()) {\n MainGUI.confirmDialog(\"Deckname cannot be blank\");\n return;\n }\n String deckName = titleField.getText();\n Deck deck = new Deck(deckName, 0,0,0,0,0);\n int deckID = DatabaseAPI.storeDeck(deck);\n DatabaseAPI.createUserDeckBridge(user.getId(), deckID);\n\n String[] tags = FormatData.formatHashtags(tagField.getText());\n for(String tag : tags) {\n if(!FormatData.isBlankString(tag)) {\n int tagID = DatabaseAPI.checkTag(tag);\n if(tagID != 0) {\n DatabaseAPI.createDeckTagBridge(deckID, tagID);\n } else {\n int newTagID = DatabaseAPI.storeTag(tag);\n DatabaseAPI.createDeckTagBridge(deckID, newTagID);\n }\n }\n }\n\n\n }", "private void initializeDeck() {\r\n deck = new ArrayList<>(52);\r\n\r\n for (String suit : SUITS) {\r\n for (String rank : RANKS) {\r\n deck.add(new Card(rank, suit)); // adds 52 cards to the deck (13 ranks, 4 suits)\r\n }\r\n }\r\n }", "private void initializeDecks()\n\t{\n\t\tdiscardRestrictedCards();\n\t\t\n\t\tboard.getRandomEventCardDeck().shuffleDeck();\n\t\tboard.getPersonalityCardDeck().shuffleDeck();\n\t\tDeck<Card> brownCards = new Deck<Card>();\n\t\tDeck<Card> greenCards = new Deck<Card>();\n\t\tfor(Card card : board.getPlayerCardDeck())\n\t\t{\n\t\t\tif(card.getType() == Card.CardType.GreenPlayerCard)\n\t\t\t{\n\t\t\t\tgreenCards.addCard(card);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbrownCards.addCard(card);\n\t\t\t}\n\t\t}\n\t\tbrownCards.shuffleDeck();\n\t\tgreenCards.shuffleDeck();\n\t\tboard.getPlayerCardDeck().clear();\n\t\tboard.getPlayerCardDeck().addAll(brownCards);\n\t\tboard.getPlayerCardDeck().addAll(greenCards);\n\t}", "public Deck getDeck(){\r\n\t\t return cards;\r\n\t }", "@Override\n public void createDeck(){\n for (char suit:standardSuits) {\n for (Map.Entry<Character, Integer> item:deckCards.entrySet()) {\n Card card = new Card(item.getKey(),item.getValue(),suit);\n deckOfCards.add(card);\n }\n }\n }", "private void InitializeDeck(){\n //Spades\n\n deck.add(\"spadesace\");\n deck.add(\"spadesjack\");\n deck.add(\"spadesqueen\");\n deck.add(\"spadesking\");\n deck.add(\"spades2\");\n deck.add(\"spades3\");\n deck.add(\"spades4\");\n deck.add(\"spades5\");\n deck.add(\"spades6\");\n deck.add(\"spades7\");\n deck.add(\"spades8\");\n deck.add(\"spades9\");\n deck.add(\"spades10\");\n\n\n //Diamonds\n deck.add(\"diamondsace\");\n deck.add(\"diamondsjack\");\n deck.add(\"diamondsqueen\");\n deck.add(\"diamondsking\");\n deck.add(\"diamonds2\");\n deck.add(\"diamonds3\");\n deck.add(\"diamonds4\");\n deck.add(\"diamonds5\");\n deck.add(\"diamonds6\");\n deck.add(\"diamonds7\");\n deck.add(\"diamonds8\");\n deck.add(\"diamonds9\");\n deck.add(\"diamonds10\");\n\n //Clubs\n deck.add(\"clubsace\");\n deck.add(\"clubsjack\");\n deck.add(\"clubsqueen\");\n deck.add(\"clubsking\");\n deck.add(\"clubs2\");\n deck.add(\"clubs3\");\n deck.add(\"clubs4\");\n deck.add(\"clubs5\");\n deck.add(\"clubs6\");\n deck.add(\"clubs7\");\n deck.add(\"clubs8\");\n deck.add(\"clubs9\");\n deck.add(\"clubs10\");\n\n //Hearts\n deck.add(\"heartsace\");\n deck.add(\"heartsjack\");\n deck.add(\"heartsqueen\");\n deck.add(\"heartsking\");\n deck.add(\"hearts2\");\n deck.add(\"hearts3\");\n deck.add(\"hearts4\");\n deck.add(\"hearts5\");\n deck.add(\"hearts6\");\n deck.add(\"hearts7\");\n deck.add(\"hearts8\");\n deck.add(\"hearts9\");\n deck.add(\"hearts10\");\n\n Collections.shuffle(deck);\n\n for(int i = 0; i < deck.size(); i++){\n System.out.println(deck.get(i));\n }\n }", "public DiscardDeck() {\n\t\tthis.content = new ArrayList<Card>();\n\t}", "public Card(String faceName, String suit) {\n setFaceName(faceName);\n setSuit(suit);\n }", "@Override\n public String toString() {\n return \"Deck{\" + \"deck=\" + deck + '}';\n }", "public Card(Suit suit, Face face) {\n\t\tthis.suit = suit;\n\t\tthis.face = face;\n\t}", "public CardGame( int handSize, int copiesPerDeck ){\n this.handOne = new Hand(handSize);\n this.handTwo = new Hand(handSize);\n this.gameDeck = new Deck(copiesPerDeck);\n this.playerScore = 0;\n this.oppoScore = 0;\n }", "public BlackJackGame()\r\n\t{\r\n\t\tplayer1 = new Player();\r\n\t\tdealer = new Player();\r\n\t\tcardDeck = new Deck();\r\n\t\tendGame = false;\r\n\t}", "@Before\r\n\tpublic void setUp() throws Exception {\n\t\ttestDeck = new Deck(1, true);\r\n\t\tdeckCards = testDeck.getDeck();\r\n\t\t\r\n\t}", "public CardDeck getCardDeck() {\n return cardDeck;\n }", "public Deck getDeck() {\n\t\treturn this.deck;\n\t}", "public SpoonsDeck() {\r\n\t deck = new ArrayList<SpoonsCard>();\r\n\t int cardCt = 0; // How many cards have been created so far.\r\n\t for ( int suit = 0; suit <= 3; suit++ ) {\r\n\t for ( int value = 2; value <= 14; value++ ) {\r\n\t \t deck.add(cardCt, new SpoonsCard(value,suit)); \r\n\t \t cardCt++;\r\n\t }\r\n\t \r\n\t }\r\n\t cardsUsed = 0;\r\n }", "public void buildDeck () {\n this.deck = new ArrayList();\n for (ValueType value: ValueType.values()) {\n for(SuitType suit: SuitType.values()) {\n deck.add(new Card(value, suit));\n }\n }\n shuffleDeck();\n }", "public War()\n {\n //Create the decks\n dealer = new Deck(); \n dw = new Deck();\n de = new Deck(); \n warPile = new Deck(); \n \n \n fillDeck(); //Add the cards to the dealer's pile \n dealer.shuffle();//shuffle the dealer's deck\n deal(); //deal the piles \n \n }", "private List<Card> createDeck(){\n List<Card> newDeck= new ArrayList<Card>();\n for (int i =0;i<CardSet.ALL_CARDS.size(); ++i ) {\n newDeck.add(CardSet.ALL_CARDS.get(i));\n }\n return newDeck;\n }", "public Card(FrontFace frontFace, BackFace backFace) {\n this.frontFace = frontFace;\n this.backFace = backFace;\n }", "private void fillDeck() {\n int index = 0;\n for (int suit = 1; suit <= 4; suit++) {\n for (int rank = 1; rank <= 13; rank++) {\n deck[index] = new Card(rank, suit);\n index++;\n\n }\n }\n }", "Deck(byte decks, byte burn, byte times) \n \t{\n\t\tdeck = new ArrayList<Card>(); // Instantiate the ArrayList.\n\t \thowManyDecks = decks; // How many 52-card decks the deck should contain.\n\t \tshuffleTimes = times; // How many times to shuffle the deck\n\t \n\t \tfillDeck(); // Fill it with Cards.\n\t \tshuffleDeck(); //shuffle the deck \n\t \tburn(burn); // remove given amount of Cards from the top of the deck\n\t}" ]
[ "0.80939204", "0.798944", "0.78785485", "0.78069454", "0.7735496", "0.7581103", "0.7415529", "0.7403116", "0.7369075", "0.73675233", "0.7184097", "0.7180243", "0.71709573", "0.7161748", "0.71399266", "0.7098909", "0.7070195", "0.69392926", "0.6927925", "0.68817526", "0.6840607", "0.6807812", "0.68007773", "0.68001825", "0.65652305", "0.65524966", "0.6531328", "0.65107775", "0.64955145", "0.64797884", "0.6472463", "0.64708096", "0.64461917", "0.6444976", "0.6439797", "0.6383834", "0.63722986", "0.63659817", "0.63384086", "0.63377464", "0.63315415", "0.6331112", "0.631473", "0.63005316", "0.6297732", "0.628871", "0.6287182", "0.62853986", "0.62708837", "0.6248219", "0.6247105", "0.62294483", "0.62204534", "0.6211819", "0.6189907", "0.6181606", "0.6167806", "0.6164465", "0.6158747", "0.61346257", "0.61296844", "0.6128471", "0.612439", "0.61076903", "0.60992736", "0.60817164", "0.6062523", "0.6054514", "0.60308814", "0.6029941", "0.6020278", "0.5991339", "0.59911996", "0.5986845", "0.59818745", "0.59745944", "0.5953115", "0.5953071", "0.5951918", "0.59474206", "0.5929019", "0.5928615", "0.591275", "0.59096086", "0.59088105", "0.5904761", "0.589321", "0.58891994", "0.58737284", "0.5862852", "0.58476365", "0.5843864", "0.58409846", "0.58196723", "0.58191794", "0.5811962", "0.5798906", "0.5789441", "0.5772634", "0.5765745" ]
0.6377292
36
Choose and remove the specified number of cards at random from the deck. Returns the cards in sorted order.
public List<Integer> dealCards(int numCards) { int[] hand = new int[numCards]; Random rand = new Random(); int index, chosenCard; for (int i = 0; i < numCards; i++) { index = rand.nextInt(cards.size()); chosenCard = cards.remove(index); hand[i] = chosenCard; removedCards.add(chosenCard); } Arrays.sort(hand); return toList(hand); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shuffle() {\n List<Card> shuffledCards = new ArrayList<>(52);\n while (cards.size() > 0) {\n int index = random.nextInt(cards.size());\n shuffledCards.add(cards.remove(index));\n }\n cards = shuffledCards;\n }", "public CardCollection destroyRandom(int number) ;", "public void shuffle()\n\t{\n\t\tHashSet<Integer> usedRandoms = new HashSet<Integer>();\n\t\tthis.currentCard = 0;\n\t\tint i= 0;\n\t\twhile (i < deck.length)\n\t\t{\n\t\t\tint another = this.rand.nextInt(NUMBER_OF_CARDS);\n\t\t\tif(!usedRandoms.contains(another))\n\t\t\t{\n\t\t\t\tCard temp = this.deck[i];\n\t\t\t\tthis.deck[i] = this.deck[another];\n\t\t\t\tthis.deck[another] = temp;\n\t\t\t\ti++;\n\t\t\t\tusedRandoms.add(another);\n\t\t\t}\n\t\t}\n\t}", "public void discardToDeck() {\n\t\tfor(int i=discardPile.size(); i>0; i--) {\n\t\t deck.add(discardPile.remove(0));\n\t\t}\n\t\tCollections.shuffle(deck);\n\t}", "public void RandomizeTheDeck() {\r\n ArrayList<ArrayList<Card>> alalCopy = new ArrayList<>();\r\n int i, iRand;\r\n Random rand = new Random();\r\n \r\n // remove deck to the copy\r\n for( i=0; i<104; i++) {\r\n alalCopy.add( alalSets.get(i) );\r\n }\r\n alalSets.clear();\r\n \r\n // randomly copy them back as copy size gets smaller\r\n for( i=104; i>0; i-- ) {\r\n iRand = (int)rand.nextInt(i);\r\n alalSets.add( alalCopy.remove(iRand) );\r\n }\r\n }", "void shuffleDeck() {\n\t\tfor(int index = 0; index < this.getNumberOfCards(); index++) {\n\t\t\tint randomNumber = index + (int)(Math.random() * (this.getNumberOfCards() - index));\n\t\t\tCard temp = this.cardsInDeck[randomNumber];\n\t\t\tthis.cardsInDeck[randomNumber] = this.cardsInDeck[index];\n\t\t\tthis.cardsInDeck[index] = temp;\n\t\t}\n\t}", "public void shuffleDeck() {\n for (int i = 0; i < TOTAL_NUMBER_OF_CARDS - 1; i++) {\n Random r = new Random();\n int x = r.nextInt(TOTAL_NUMBER_OF_CARDS);\n Card y = deck.get(x);\n deck.set(x, deck.get(i));\n deck.set(i, y);\n }\n }", "private void reshuffleDiscardPile() {\n ICard topCard = discardPile.pop();\n\n drawPile.addAll(discardPile);\n Collections.shuffle(drawPile, rng);\n\n discardPile.clear();\n discardPile.add(topCard);\n }", "public void shuffle() {\r\n for ( int i = deck.size()-1; i > 0; i-- ) {\r\n int rand = (int)(Math.random()*(i+1));\r\n SpoonsCard temp = deck.get(i);\r\n deck.set(i, deck.get(rand));\r\n deck.set(rand, temp);\r\n }\r\n cardsUsed = 0;\r\n }", "public void shuffle(){\r\n int randomPos;\r\n //for each card in the deck\r\n for(int i=0; i<52; i++){\r\n randomPos = getRandomPos(i);\r\n exchangeCards(i, randomPos);\r\n }\r\n topCardIndex = 0;\r\n\t}", "public void shuffle(){\n\n // resetting the int counters\n nextCard = 0;\n nextDiscardedPlace = 0;\n discardPile = new PlayingCard[Constants.DECK_SIZE];\n\n PlayingCard temp = null;\n Random rand = new Random();\n\n for(int i = 0; i < MAX_SHUFFLE; i++) {\n int pos1 = rand.nextInt(Constants.DECK_SIZE);\n int pos2 = rand.nextInt(Constants.DECK_SIZE);\n\n temp = deck[pos1];\n deck[pos1] = deck[pos2];\n deck[pos2] = temp;\n }\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 void shuffle() {\n\t\tfor (int i = deck.length - 1; i > 0; i--) {\n\t\t\tint rand = (int) (Math.random() * (i + 1));\n\t\t\tCard temp = deck[i];\n\t\t\tdeck[i] = deck[rand];\n\t\t\tdeck[rand] = temp;\n\t\t}\n\t\tcardsUsed = 0;\n\t}", "public void shuffle() {\n\t\tRandom randIndex = new Random();\n\t\tint size = cards.size();\n\t\t\n\t\tfor(int shuffles = 1; shuffles <= 20; ++shuffles)\n\t\t\tfor (int i = 0; i < size; i++) \n\t\t\t\tCollections.swap(cards, i, randIndex.nextInt(size));\n\t\t\n\t}", "public void shuffle() {\n Random rand = new Random();\n for(int i = 0; i < deck.length; i++) {\n // get random index past current index\n int randomVal = i + rand.nextInt(deck.length - i);\n // swaps randomly selected card with card at index i\n Card swap = deck[randomVal];\n deck[randomVal] = deck[i];\n deck[i] = swap;\n }\n }", "public void shuffle(){ \n \n Collections.shuffle(cardDeck);\n /*Random rand = new Random();\n for(int i = 0 ; i < 110 ; i++){\n int firstCard = rand.nextInt(110);\n int secondCard = rand.nextInt(110);\n Collections.swap(cardDeck,firstCard,secondCard);\n }*/\n }", "public void discard(){\n for(int i = 1 ; i <= 110 ; i++) cardDeck.remove(i);\n }", "public void shuffle() {\n\t\tRandom random = new Random();\n\t\tint dealtCards = this.dealtCards.get();\n\t\tfor (int i = dealtCards; i < Deck.DECK_SIZE; i++) {\n\t\t\t// Obtain random position for available cards.\n\t\t\tint randomNumber = dealtCards + random.nextInt((Deck.DECK_SIZE - dealtCards));\n Card tempCard = cards.get(i);\n // Swap cards position.\n cards.set(i, cards.get(randomNumber));\n cards.set(randomNumber, tempCard);\n }\n\t}", "public void shuffle() {\r\n for (int i = 0; i < this.numCards; i++) {\r\n int spot = (int) (Math.random() * ((this.numCards - 1) - i + 1) + i);\r\n Card temp = cards[i];\r\n cards[i] = cards[spot];\r\n cards[spot] = temp;\r\n\r\n\r\n }\r\n }", "Vector<Card> shuffleDeck(Vector<Card> cards)\n\t{\n\t Collections.shuffle(cards);\n\t return cards;\n\t}", "public void shuffle(){\r\n Collections.shuffle(cards);\r\n }", "public void Shuffle() {\n\t\tCollections.shuffle(cards);\n\t}", "public void shuffle() {\n\t\tfor (int i = 51; i > 0; i--) {\n\t\t\tint rand = (int) (Math.random() * (i + 1));\n\t\t\tint temp = deck[i];\n\t\t\tdeck[i] = deck[rand];\n\t\t\tdeck[rand] = temp;\n\t\t}\n\t\tcurrentPosition = 0;\n\t}", "public void shuffle() {\n\n\tcardsLeft = cards.length;\n\tfor (int i=cards.length-1; i>=0; --i) {\n\n\t int r = (int)(Math.random()*(i+1)); // pick a random pos <= i\n\n\t Card t = cards[i];\n\t cards[i] = cards[r];\n\t cards[r] = t;\n\n\t}\n }", "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 void shuffle(){\n Collections.shuffle(this.deckOfCards);\n }", "public void hinduShuffle()\r\n {\r\n List<Card> cut = new ArrayList<Card>();\r\n List<Card> cut2 = new ArrayList<Card>();\r\n List<Card> shuffledDeck = new ArrayList<Card>();\r\n int cutPoint = 0;\r\n int cutPoint2 = 0;\r\n for (int x = 0; x < SHUFFLE_COUNT; x++) {\r\n cutPoint = rand.nextInt( cards.size()-1 );\r\n cutPoint2 = rand.nextInt( cards.size() - cutPoint ) + cutPoint;\r\n for (int i = 0; i < cutPoint; i++) {\r\n cut.add(draw());\r\n }\r\n for (int i = cutPoint2; i < cards.size(); i++) {\r\n cut2.add(draw());\r\n }\r\n for (int i = 0; i < cut.size(); i++) {\r\n shuffledDeck.add(cut.remove(0));\r\n }\r\n for (int i = 0; i < cards.size(); i++) {\r\n shuffledDeck.add(cards.remove(0));\r\n }\r\n for (int i = 0; i < cut2.size(); i++) {\r\n shuffledDeck.add(cut2.remove(0));\r\n }\r\n cut = cards;\r\n cut.clear();\r\n cut2.clear();\r\n cards = shuffledDeck;\r\n }\r\n }", "public void shuffle() {\n for (int i = 0; i < this.cards.length ; i++ ) {\n double x = Math.floor(Math.random() * ((double)this.cards.length - (double)0)) + (double)0;\n Card temp = this.cards[i];\n this.cards[i]= this.cards[(int)x];\n this.cards[(int)x]= temp;\n }\n }", "public void shuffle() {\n\t\tfor (int i = 0; i < cards.size(); i++){\n\t\t\t//exchange card i with the random card from i to cards.size() - 1\n\t\t\tint j = Randoms.randomIntInRange(i, cards.size() - 1);\n\t\t\tT c1 = cards.get(i);\n\t\t\tT c2 = cards.get(j);\n\t\t\tcards.set(i, c2);\n\t\t\tcards.set(j, c1);\n\t\t}\n\t}", "public static int[] shuffle(int[] deck){\n\t\tRandom rnd = new Random();\n\t for (int i = deck.length - 1; i > 0; i--)\n\t {\n\t int index = rnd.nextInt(i + 1);\n\t int a = deck[index];\n\t deck[index] = deck[i];\n\t deck[i] = a;\n\t }\n\t return deck;\n\t}", "public void shuffleDeck() {\n\t\tint numberOfShuffles = (int) ( Math.random() * 4 + 1 ) ;\n\t\tCard temp;\n\t\t\n\t\tfor( int j = 0; j < numberOfShuffles; j++ ) {\n\t\t\tfor( int i = 0; i < deck.length; i++ ) {\n\t\t\t\tint randSwitchNum = (int) (Math.random() * 52);\n\t\t\t\ttemp = deck[i];\n\t\t\t\tdeck[i] = deck[randSwitchNum];\n\t\t\t\tdeck[randSwitchNum] = temp;\n\t\t\t}\n\t\t}\t\n\t}", "public void shuffleThePresentCardToTheEnd() {\n storageCards.add(storageCards.remove());\n }", "public void shuffle(){\n //After shuffling dealing starts at deck[0] again\n currentCard = 0;\n //for each card , pick another random card and swap them\n for(int first = 0; first < deck.length; first++){\n int second = randomNumbers.nextInt(NUMBER_OF_CARDS);\n\n //Swap Method to swap current card with randomly selected card\n Card temp = deck[first];\n deck[first] = deck[second];\n deck[second] = temp;\n }\n }", "private void shuffleAndGiveCards() {\n\n List<Card> tmpDeck= new ArrayList<Card>(deck); \n Collections.shuffle(tmpDeck, shuffleRng);\n \n for (int i=0; i<players.size(); ++i) {\n int startIndex= Jass.HAND_SIZE*i; //So for player 0 the startIndex will be 0, for player2 9, etc...\n int endIndex = Jass.HAND_SIZE*(i+1); //So for player 1 the endIndex will be 9, for player2 18, etc...\n\n CardSet hand= CardSet.of(tmpDeck.subList(startIndex, endIndex));\n PlayerId player = PlayerId.ALL.get(i);\n\n players.get(player).updateHand(hand);\n handsOfCards.put(player, hand); \n }\n }", "public void spreadShuffle()\r\n {\r\n List<Card> shuffledDeck = new ArrayList<Card>();\r\n List<Card> tempDeck = null;\r\n for (int i = 0; i < SHUFFLE_COUNT; i++) {\r\n while (cards.size() > 0)\r\n {\r\n shuffledDeck.add( drawRandom() );\r\n }\r\n tempDeck = cards;\r\n cards = shuffledDeck;\r\n tempDeck.clear();\r\n shuffledDeck = tempDeck;\r\n }\r\n }", "public void shuffle()\r\n {\r\n Collections.shuffle(cards);\r\n top = NUMCARDS - 1;\r\n }", "public Deck randomShuffle(){\n\t\tshuffleOnceRandom();\n\t\tshuffleOnceRandom();\n\t\treturn ourDeck;\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 }", "public void shuffle(int numShuffles)\n { \n Card tempCard;\n int switchOne, switchTwo;\n\n for (int i=0; i<numCards; i++){\n switchOne = rand.nextInt(numCards);\n switchTwo = rand.nextInt(numCards);\n\n tempCard = cardAry[switchOne];\n cardAry[switchOne] = cardAry[switchTwo];\n cardAry[switchTwo] = tempCard; \n }\n\n if(cardAry.length > 1 && cardAry.length <=5 && isSorted()==true)\n shuffle(2);\n }", "private void pickCards() throws IOExceptionFromController {\n Deck deck = game.getDeck();\n try {\n if (playerControllers.get(0).getClient().chooseYesNo(\"Do you want to randomize the playable God Powers pool?\")) {\n deck.pickRandom(game.getPlayerNum());\n playerControllers.get(0).getClient().displayMessage(\"Picking cards...\");\n } else {\n ArrayList<Card> choices = playerControllers.get(0).getClient().chooseCards(deck.getCards(), game.getPlayerNum(), null);\n for (Card card : choices) {\n deck.pickCard(card);\n }\n }\n } catch (IOException | InterruptedException e) {\n throw new IOExceptionFromController(e, playerControllers.get(0));\n }\n ArrayList<Card> cardPool = deck.getPickedCards();\n ArrayList<Card> chosenCards = new ArrayList<Card>();\n for (int i = 0; i < game.getPlayerNum(); i++) {\n int j = (i == game.getPlayerNum() - 1) ? 0 : i + 1;\n Card chosenCard;\n try {\n chosenCard = playerControllers.get(j).getClient().chooseCards(cardPool, 1, chosenCards).get(0);\n } catch (IOException | InterruptedException e) {\n throw new IOExceptionFromController(e, playerControllers.get(j));\n }\n cardPool.remove(chosenCard);\n chosenCards.add(chosenCard);\n players.get(j).setGodCard(chosenCard);\n playerControllers.get(j).setGodController(chosenCard.getController());\n broadcastMessage((players.get(j).getId() + \" is \" + chosenCard.getGod() + \" (\" + players.get(j).getColor() + \")\\n\"));\n broadcastMessage(\"Picking cards...\");\n }\n }", "public Deck() {\n\t\trand = new Random();\n\t\trand.setSeed(System.currentTimeMillis());\n\t\twhile(deck.size()<52){\n\t\t\tint suit = rand.nextInt(4);\n\t\t\tint rank = rand.nextInt(13);\n\t\t\tString card = this.rank[rank] +\" of \" + this.suit[suit];\n\t\t\tdeck.add(card);\n\t\t}\n\t}", "public void shuffle() {\r\n\t\tCollections.shuffle(cards);\r\n\t\t// : Shuffle with random seed each time, then we can save the seed\r\n\t\t// Collections.shuffle(cards, new Random(10));\r\n\t}", "public void shuffle() {\r\n\t\tCollections.shuffle(cards);\r\n\t}", "public void shuffle() {\n deck.clear();\n deck.addAll(allCards);\n Collections.shuffle(deck, new Random(System.nanoTime()));\n }", "private void mixDeck() {\n Random rnd = new Random();\n ArrayList<UnoCard> mixed = new ArrayList<UnoCard>();\n\n // mix it!\n for(int i = cards.size()-1; i>0;i--) {\n int index = rnd.nextInt(i+1);\n UnoCard helper = cards.get(index);\n cards.remove(index);\n mixed.add(helper);\n }\n\n // delete current arrayList\n cards = null;\n // set mixed cards to original carddeck\n cards = mixed;\n\n // paint cards again because order has changed\n for(UnoCard c : cards) {\n c.setContainer(deckPos);\n }\n\n }", "public Card drawFromChance()\n {\n Random draw = new Random();\n \n //if the chance cards are exhausted, re-fill the cards\n if(m_chance.size() == 0)\n {\n m_chance = m_drawnChance;\n m_drawnChance.clear();\n }\n //draw a random card and add it to the list of the cards drawn\n int drawFrom = draw.nextInt(m_chance.size() - 1) + 1;\n Card card = m_chance.remove(drawFrom);\n m_drawnChance.add(card);\n \n return card;\n }", "public int Shuffle_Distribute(int numberOfPlayers)\n\t{\n\t\t//put 52 cards in a list and shuffle them\n\t\tArrayList<String> pokerToUse = new ArrayList<String>(Arrays.asList(pokerCards));\n\t\tCollections.shuffle(pokerToUse);\n\t\t//based on how many people play\n\t\tint whoStarts=0;\n\t\tswitch(numberOfPlayers)\n\t\t{\n\t\t\t\n\t\t\tcase 2:\n\t\t\t\tuser1card = new ArrayList<String>();\n\t\t\t\tuser2card = new ArrayList<String>();\n\t\t\t\t//give 13 cards to each player\n\t\t\t\tfor(int i=0;i<13;i++)\n\t\t\t\t{\n\t\t\t\t\t//give a random card to the first player\n\t\t\t\t\tint idx1 = new Random().nextInt(pokerToUse.size());\n\t\t\t\t\tString random1 = pokerToUse.get(idx1);\n\t\t\t\t\tpokerToUse.remove(idx1);\n\t\t\t\t\tuser1card.add(random1);\n\t\t\t\t\t//give a random card to the second player\n\t\t\t\t\tint idx2 = new Random().nextInt(pokerToUse.size());\n\t\t\t\t\tString random2 = pokerToUse.get(idx2);\n\t\t\t\t\tpokerToUse.remove(idx2);\n\t\t\t\t\tuser2card.add(random2);\n\t\t\t\t}\t\n\t\t\t\tboolean findWhoStarts = false;\n\t\t\t\tint cardNumber=4;\n\t\t\t\twhile(findWhoStarts==false)\n\t\t\t\t{\n\t\t\t\t\tString card = new StringBuilder(\"h\").append(Integer.toString(cardNumber)).toString();\n\t\t\t\t\tif(user1card.contains(card))\n\t\t\t\t\t{\n\t\t\t\t\t\tfindWhoStarts=true;\n\t\t\t\t\t\twhoStarts=1;\n\t\t\t\t\t}\n\t\t\t\t\telse if(user2card.contains(card))\n\t\t\t\t\t{\n\t\t\t\t\t\tfindWhoStarts=true;\n\t\t\t\t\t\twhoStarts=2;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tfindWhoStarts=false;\n\t\t\t\t\t\tcardNumber++;\n\t\t\t\t\t\t//it's rarely possible no one has a heart car. If it happesn, re shuffle \n\t\t\t\t\t\tif (cardNumber==14)\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\twhoStarts=99;//error needs reshuffle\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\tbreak;\t\t\t\t\n\t\t\tdefault:\n\t\t\t\twhoStarts=0;\n\t\t\t\tbreak;\n\t\t\n\t\t}\t\n\t\treturn whoStarts;\n\t}", "public void shuffle(){\n Collections.shuffle(Arrays.asList(this.deck));\n }", "private ArrayList<Card> getDeckCards(){\n\t\t\t\tArrayList<Card> getdeck = new ArrayList<>();\r\n\t\t\t\t// deck = new ArrayList(52);\r\n\r\n\t\t\t\t// create cards in the deck (0-51)\r\n\t\t\t\tfor (int i = 0; i <= 10; i++) {\r\n\t\t\t\t\tgetdeck.add(new Card(i));\r\n\t\t\t\t}\r\n\t\t\t\t//Collections.shuffle(getdeck);\r\n\t\t\t\t// shuffle the cards\r\n\t\t\t\tfor (int i = 0; i <= getdeck.size()-1; i++) {\r\n\t\t\t\t\tint newindex = (int) (Math.random() * 51);\r\n\t\t\t\t\tCard temp = getdeck.get(i);\r\n\t\t\t\t\tgetdeck.set(i, getdeck.get(newindex));\r\n\t\t\t\t\tgetdeck.set(newindex, temp);\r\n\t\t\t\t}\r\n\t\t\t\t//TODO delete println\r\n\t\t\t\t// print shuffled deck\r\n\t\t\t\tfor (int i = 0; i <= getdeck.size()-1; i++) {\r\n\t\t\t\t\tSystem.out.println(getdeck.get(i).getCardNbr());\r\n\t\t\t\t}\r\n\t\t\t\treturn getdeck;\r\n\t}", "public void shuffle() {\n //Beginning with the top card, decrement i until i is 0.\n for (int i = this.topCard - 1; i >= 0; i--) {\n Card tmpCard = this.cards[i]; //Store the card at i, since it will be overwritten.\n //Choose a random card position from within the deck.\n int randomPosition = (int) (Math.random() * (this.topCard - 1));\n //Take the card from the random position and store it in the ith position.\n this.cards[i] = this.cards[randomPosition];\n //Take the card from the ith position, and put it into the randomly chosen position.\n this.cards[randomPosition] = tmpCard;\n //The cards have now been swapped.\n }\n }", "public void cards() {\n\t\t\n\n\t\tboolean[] randomCards = new boolean[52];\n\n\t\t// choose 4 random distinct cards from the deck\n\t\tint count = 0;\n\t\tint card1 = 0;\n\t\tint card2 = 0;\n\t\tint card3 = 0;\n\t\tint card4 = 0;\n\n\t\twhile (count < 4) {// Display only four cards\n\n\t\t\tcard1 = ((int) (Math.random() * 12) + 1) + 1;// Ignore zero\n\t\t\tcard2 = ((int) (Math.random() * 12) + 1) + 1;// Ignore zero\n\t\t\tcard3 = ((int) (Math.random() * 12) + 1) + 1;// Ignore zero\n\t\t\tcard4 = ((int) (Math.random() * 12) + 1) + 1;// Ignore zero\n\n\t\t\tif ((randomCards[card1] = !randomCards[card2]) && (randomCards[card1] = !randomCards[card3])\n\t\t\t\t\t&& (randomCards[card1] = !randomCards[card4]) && (randomCards[card2] = !randomCards[card3])\n\t\t\t\t\t&& (randomCards[card2] = !randomCards[card4]) && (randomCards[card3] = !randomCards[card4])) {\n\n\t\t\t\tString[] cards = { \"clubs\", \"diamonds\", \"hearts\", \"spades\" };\n\n\t\t\t\tString name1 = cards[(int) (Math.random() * cards.length)];\n\t\t\t\tString name2 = cards[(int) (Math.random() * cards.length)];\n\t\t\t\tString name3 = cards[(int) (Math.random() * cards.length)];\n\t\t\t\tString name4 = cards[(int) (Math.random() * cards.length)];\n\n\t\t\t\tImage image1 = new Image(\"png/\" + (card1) + \"_of_\" + name1 + \".png\");\n\t\t\t\tImage image2 = new Image(\"png/\" + (card2) + \"_of_\" + name2 + \".png\");\n\t\t\t\tImage image3 = new Image(\"png/\" + (card3) + \"_of_\" + name3 + \".png\");\n\t\t\t\tImage image4 = new Image(\"png/\" + (card4) + \"_of_\" + name4 + \".png\");\n\n\t\t\t\timgCard1.setImage(image1);\n\t\t\t\timgCard2.setImage(image2);\n\t\t\t\timgCard3.setImage(image3);\n\t\t\t\timgCard4.setImage(image4);\n\n\t\t\t\tcount++;\n\n\t\t\t}\n\n\t\t}\n\n\t\tString cardOneValue = Integer.toString(card1);\n\t\tString cardTwoValue = Integer.toString(card2);\n\t\tString cardThreeValue = Integer.toString(card3);\n\t\tString cardFourValue = Integer.toString(card4);\n\t\tSystem.out.println(cardOneValue + \" - \" + cardTwoValue + \" - \" + cardThreeValue + \" - \" + cardFourValue);\n\t\tsetText.setText(cardOneValue +\" \"+ cardTwoValue +\" \"+ cardThreeValue +\" \"+ cardFourValue);\n\t\t\n\t\tint solution = 0; \n\t\tif(solution!=24) {\n\t\tfor(int limit = 0; limit < 25; limit++) {\n\t\t\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(solution);\n\t\t\n\t}", "public void drawFromBag(int n) {\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\t\t\tif (this.bag.size() == 0) {\r\n\t\t\t\tif (this.discard.size() == 0) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.bag = discard;\r\n\t\t\t\t\tthis.discard = new ArrayList<Card>();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (lockedCards.size() > 0) {\r\n\t\t\t\tthis.hand.add(this.lockedCards.remove(0));\r\n\t\t\t} else {\r\n\t\t\t\tint nextCard = (int) (Math.random() * this.bag.size());\r\n\t\t\t\tthis.hand.add(this.bag.remove(nextCard));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void shuffle() {\n\t\t\t/*\n\t\t\t * This is very different from the sort method because:\n\t\t\t * @ we decant the cards into an array list;\n\t\t\t * @ we use a library function to do the work;\n\t\t\t * The implementation you write for the sort method should\n\t\t\t * have *neither* of these characteristics.\n\t\t\t */\n\t\t\tList<Card> cards = new ArrayList<Card>();\n\t\t\twhile (!isEmpty()) {\n\t\t\t\tcards.add(draw());\n\t\t\t}\n\t\t\tCollections.shuffle(cards);\n\t\t\tfor (Card c: cards) {\n\t\t\t\tadd(c);\n\t\t\t}\n\t\t}", "public void dealCards() {\n for(int i=0; i < 5; i++) { \n for(PokerPlayer player : players) {\n player.takeCard(deck.draw());\n }\n }\n }", "public static void shuffle(Card[] cards) {\n for (int i = 0; i < cards.length - 1; i++) {\n int j = i + (int)((cards.length - i) * Math.random());\n swap(i, j, cards);\n }\n }", "private void shuffleCards(final ICard[] myCards) {\r\n ICard tmp;\r\n int rand;\r\n for (int i = ZERO; i < myCards.length; i++) {\r\n rand = rmd.nextInt(myCards.length);\r\n tmp = myCards[i];\r\n myCards[i] = myCards[rand];\r\n myCards[rand] = tmp;\r\n }\r\n }", "public void clearRandomItems();", "public void shuffle() {\n\t\tCollections.shuffle(cards);\n\t}", "public void drawCard(Integer cardLocation){\n Random random = new Random();\n boolean isPlayerHandEmpty = false;\n Integer sizeOfPlayerHand = 4;\n //The reason for this is as follows: we are wanting to keep an array size of 4 consistent for playerHand, however\n //using the .remove() function actually shortens the size. Yet .set(index,null) is still counted as an element, hence\n //isEmpty does not work, and the size() is still 4.\n //Is this the most agile way to do this? I don't know, but this worked.\n\n for (Card s:playerHand){\n if(s == null){\n sizeOfPlayerHand--;\n }\n }\n if (sizeOfPlayerHand == 0){\n isPlayerHandEmpty = true;\n }\n\n\n\n if (playerTempDeck.size() > 0 && (sizeOfPlayerHand < 4 || playerHand.size() < 4)){\n //System.out.println(\"Adding cards from deck.\");\n\n Integer n = random.nextInt(playerTempDeck.size()); //0 to the number in the bracket. Pick a random card from the deck and use it here.\n playerHand.set(cardLocation, playerTempDeck.get(n));\n //System.out.println(\"Now the playerHand is: \" + playerHand.toString());\n //System.out.println(\"Size of deck: \" + playerTempDeck.size());\n //System.out.println(\"Trying to remove: \" + playerTempDeck.get(n).getEffect());\n playerTempDeck.remove(playerTempDeck.get(n));\n }\n\n if (playerTempDeck.size() == 0 && (isPlayerHandEmpty || playerHand.size() == 0)){ //deck is empty and no cards left to play, reshuffle.\n //System.out.println(\"Hand and deck are both empty!\");\n playerTempDeck.addAll(discardedCards);\n discardedCards.clear();\n drawCard(0);\n drawCard(1);\n drawCard(2);\n drawCard(3);\n }\n }", "public static void main(String[] args) {\r\n\r\n CardDeck deck = new CardDeck();\r\n System.out.println(deck.dealHand(5)); // <- print 5 cards 3 times\r\n System.out.println(deck.dealHand(5));\r\n System.out.println(deck.dealHand(5));\r\n System.out.println(deck.dealHand(50)); // <- only 39 cards should be printed here\r\n System.out.println(deck.dealHand(50)); // <- and empty list should be printed\r\n deck.shuffle();\r\n System.out.println(deck.dealHand(5)); // <- another 5 cards\r\n\r\n }", "public static int[] createShuffledDeck(){\n //create a deck\n int[] deck = new int[52];\n //make each item their respective index + 1 to avoid repetition\n for(int i = 0; i < deck.length; i++){\n deck[i] = i+1;\n }\n //shuffle deck\n shuffle(deck);\n return deck;\n }", "private void shuffleDeck()\r\n {\n cardList = new ArrayList<Card>(deck);\r\n // shuffle the deck of cards using the ArrayList\r\n Collections.shuffle(getCardList());\r\n // convert it back to a HashSet\r\n deck = new HashSet<Card>(getCardList());\r\n }", "private java.util.List<Card> deal(java.util.List<Card> hand, int numCards) {\n for (int i = 0; i < numCards; ++i) {\n hand.add(removeTop(deck));\n }\n return hand;\n }", "public Card draw(){\n\t\tif(count < 0 ){\n\t\t\tthrow new IllegalStateException(\"Drew from an empty card deck!\");\n\t\t}\n\t\tint pick = (count == 0 ? 0 : rand.nextInt(count));\n\t\tCard ret = cards[pick];\n\t\tcards[pick] = cards[count];\n\t\tcount--;\n\t\treturn ret;\n\t}", "public static void shuffle(int[] deck){\n //temporary variable for swapping the values\n int storage = 0;\n //random integer\n int randomInt;\n for(int i = 0; i < deck.length; i++){\n //set the variable equal to a random integer every time\n randomInt = (int) (Math.random() * (deck.length));\n //store the original deck[i] in storage\n //swap deck[i] and deck[randomInt]\n storage = deck[i];\n deck[i] = deck[randomInt];\n deck[randomInt] = storage;\n }\n }", "public CardStack shuffle() {\n Card[] arr = new Card[cards.size()];\n List<Card> cardsList = Arrays.asList(cards.toArray(arr));\n Collections.shuffle(cardsList);\n cards.removeAllElements();\n cards.addAll(cardsList);\n return this;\n }", "public void resetDeck() {\r\n\t\tcards = new ArrayList<Card>();\r\n\t\tfor (Suit f : Suit.values())\r\n\t\t\tfor (int i = 2; i < 15; i++)\r\n\t\t\t\tcards.add(new Card(i, f));\r\n\r\n\t}", "public void shuffle() {\n for (int i = size - 1; i > 0; i--) {\n swap(i, (int)(Math.random() * (i + 1)));\n }\n }", "public void shuffleDeck() {\n\t\tCollections.shuffle(deck);\n\t}", "public int chooseCard(){\n if(playable.size() == 1)//checks the size\n return searchCard(0);//returns the only playable card\n else{\n int temp = (int) Math.random()*playable.size();//chooses a random one\n return searchCard(temp);//returns that cards position\n }\n }", "public Card dealCard() {\n if (deck.size() == 52) {\n shuffle();\n }\n Card temp;\n temp = deck.get(0);\n remove(0);\n return temp;\n }", "void shuffle() {\r\n cards.addAll(dealtCards);\r\n dealtCards.removeAll(dealtCards);\r\n Collections.shuffle(cards);\r\n System.out.println(\"Shuffled cards\" + cards);\r\n }", "@Override\n\tpublic void shuffleDeck() {\n\t\tfor(int i = 0; i < 1000000; i++) {\n\t\t\tint randomStelle1 = (int) (Math.random() * 32);\n\t\t\tint randomStelle2 = (int) (Math.random() * 32);\n\t\t\tPlayingCard copy = aktuellesDeck[randomStelle1];\n\t\t\taktuellesDeck[randomStelle1] = aktuellesDeck[randomStelle2];\n\t\t\taktuellesDeck[randomStelle2] = copy;\n\t\t}\n\t}", "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 Card[] shuffleDeck(Card[] deck, int decks) {\n Random rnd = new Random();\n Card temp;\n\n int numCards = 52 * decks;\n\n if (decks < 1)\n numCards = 52;\n\n //Iterate through the deck\n for (int i = 0; i < numCards; i++) {\n //Get a random index\n int random = rnd.nextInt(52);\n\n //Swap the current card with the random index\n temp = deck[random];\n deck[random] = deck[i];\n deck[i] = temp;\n }\n\n //Return the shuffled deck\n return deck;\n }", "public void populateDeck(){\n\n //Add everything to r\n for(int i=0;i<LUMBER;i++){\n deck.add(new ResourceCard(container, Resource.WOOD, cardStartPoint));\n }\n\n for(int i=0;i<WOOL;i++){\n deck.add(new ResourceCard(container, Resource.WOOL, cardStartPoint));\n }\n\n for(int i=0;i<GRAIN;i++){\n deck.add(new ResourceCard(container, Resource.WHEAT, cardStartPoint));\n }\n\n for(int i=0;i<BRICK;i++){\n deck.add(new ResourceCard(container, Resource.BRICKS, cardStartPoint));\n }\n\n for(int i=0;i<ORE;i++){\n deck.add(new ResourceCard(container, Resource.ORE, cardStartPoint));\n }\n //Collections.shuffle(deck);\n\n }", "public void shuffle() {\n Collections.shuffle(deck);\n }", "public void shuffle() {\n Collections.shuffle(deck);\n }", "public void generateDeck() {\n\t\tList<String> valueList = Arrays.asList(\"Ace\", \"2\", \"3\",\"4\", \"5\", \"6\",\"7\", \"8\", \"9\",\"10\", \"Jack\", \"Queen\",\"King\");\n\t\tList<String> suitList = Arrays.asList(\"Diamonds\", \"Spades\", \"Clubs\", \"Hearts\");\n\t\tvalues.addAll(valueList);\n\t\tsuits.addAll(suitList);\n\t\t\n\t\t//adding card objects to deckOfCards arraylist\n\t\tint i = 1;\n\t\twhile(i<=52){\n Card card = new Card(values.get(random.nextInt(13)), suits.get(random.nextInt(4)));\n if (!deckOfCards.contains(card)) {\n deckOfCards.add(card);\n i++;\n }else{\n\n }\n }\n\t}", "public void shuffle()\r\n {\r\n // We will start from the last element and swap the cards one by one. We actually\r\n // don't need to swap the last element.\r\n for (int i = valid - 1; i > 0; i --) { \r\n \r\n // By using Math.random, we will get a random integer from 0 to i\r\n int j = (int) ( (i+1) * Math.random()); \r\n \r\n // Swapping with the help of temp instance of Card Class.\r\n Card temp = cards[i]; \r\n cards[i] = cards[j]; \r\n cards[j] = temp; \r\n } \r\n // Prints the random array \r\n }", "private void shuffleOnceRandom(){\n\t\t//You need to have a copy of the deck before you shuffled it so you can reference\n\t\t//It when you are trying to replace the new values\n\t\tList<Card> beforeShuffle = ourDeck.makeCopy().getCurrentDeck();\n\t\t//The topIndex tells us where we are in reference to the top half of the deck\n\t\t//Same with bottom this helps us reference the original deck to get whatever\n\t\t//Card we need and the deckIndex helps us put it in the correct spot\n\t\tint topIndex = 0, bottomIndex = ourDeck.getSize() / 2, deckIndex = 0;\n\t\t//These ints help us keep track of how many cards are left in each half\n\t\tint remainingTop = ourDeck.getSize() / 2, remainingBot = ourDeck.getSize() / 2;\n\t\tboolean shouldLoop = true;\n\t\t//This is the shuffling loop\n\t\twhile(shouldLoop){\n\t\t\t//This means the number coming from the specific deck which in this method is random\n\t\t\tint numTop = generator.nextInt(RAND_BOUND), numBot = generator.nextInt(RAND_BOUND);\n\t\t\t//After we determine the random number of cards we're using we have to do some checks\n\t\t\t//This means we wanted more than there was less therefore the stack is out\n\t\t\t//This is the stopping condition for the loop\n\t\t\tif(numTop >= remainingTop){\n\t\t\t\tnumTop = remainingTop;\n\t\t\t\tnumBot = remainingBot;\n\t\t\t\tshouldLoop = false;\n\t\t\t}\n\t\t\t\t\n\t\t\tif(numBot >= remainingBot){\n\t\t\t\tnumTop = remainingTop;\n\t\t\t\tnumBot = remainingBot;\n\t\t\t\tshouldLoop = false;\n\t\t\t}\n\t\t\t//This is where I replace the newCard into ourDeck\n\t\t\t//I iterate for the number of times we take from the top or bottom\n\t\t\tfor(int i = 1; i <= numTop; i++){\t\n\t\t\t\tCard newCard = beforeShuffle.get(topIndex);\t//I get the card we want to move\n\t\t\t\tourDeck.setCard(newCard, deckIndex);\t\t//Then I move it to the new deckIndex\n\t\t\t\ttopIndex++;\tdeckIndex++;\n\t\t\t}\n\t\t\tfor(int i = 1; i <= numBot; i++){\n\t\t\t\tCard newCard = beforeShuffle.get(bottomIndex);\n\t\t\t\tourDeck.setCard(newCard, deckIndex);\n\t\t\t\tbottomIndex++;\tdeckIndex++;\n\t\t\t}\n\t\t\tremainingTop = remainingTop - numTop;\n\t\t\tremainingBot = remainingBot - numBot;\n\t\t}\n\t}", "public Card dealCard() {\n int randPos = random.nextInt(51 - 0 + 1);\n Card rand = deck[randPos];\n return rand;\n\n }", "Set<Card> remove();", "public void pileShuffle(int numPiles)\r\n {\r\n List<List<Card>> piles = new ArrayList<List<Card>>(numPiles);\r\n List<Card> shuffledDeck = new ArrayList<Card>();\r\n for (int x = 0; x < SHUFFLE_COUNT; x++) {\r\n for (int i = 0; i < numPiles; i++) {\r\n piles.add( new ArrayList<Card>() );\r\n }\r\n int j = 0;\r\n while (cards.size() > 0) {\r\n piles.get(j).add(draw());\r\n j = (j + 1) % numPiles;\r\n }\r\n for (int i = 0; i < numPiles; i++) {\r\n while (piles.get(i).size() > 0) {\r\n shuffledDeck.add(piles.get(i).remove(0));\r\n }\r\n }\r\n cards = shuffledDeck;\r\n for (int i = 0; i < numPiles; i++) {\r\n piles.get(i).clear();\r\n }\r\n }\r\n }", "private static int[][] randomCards(int samples, int cardsPerSample){\n int[][] retCards = new int[samples][cardsPerSample];\n\n List<Integer> cards = new ArrayList<>();\n for(int i = 0; i < 52; i++){\n cards.add(i);\n }\n\n for(int i = 0; i < samples; i++){\n Collections.shuffle(cards);\n for(int j = 0; j < cardsPerSample; j++){\n retCards[i][j] = cards.get(j);\n }\n }\n\n return retCards;\n }", "public Card removeCard(){\n Card temp = pile[0]; //removes top card. putting placement card to avoid null pointer\n for(int i = 0; i < pilePlace; i++){ //shifts cards\n pile[i] = pile[i+1];\n }\n pilePlace--;\n return temp;\n\n }", "private int getRandomCard (ArrayList<Card> hand) {\n\t\treturn (int)(Math.random() * hand.size());\r\n\t}", "@Test(expected = TooManyDiscardsException.class)\n public void allow_discard_no_more_than_2_cards(){\n\n Deck deck = new Deck();\n Card card1 = new Card(3,2,5);\n Card card2 = new Card(2,7,1);\n Card card3 = new Card(2,7,1);\n deck.add(card1);\n deck.add(card2);\n deck.add(card3);\n Game game = new Game(deck);\n\n game.join(\"susan\");\n game.join(\"peter\");\n\n Card pickedCard1 = game.pickCard(\"susan\");\n game.discard(\"susan\");\n Card pickedCard2 = game.pickCard(\"susan\");\n game.discard(\"susan\");\n Card pickedCard3 = game.pickCard(\"susan\");\n game.discard(\"susan\");\n\n }", "protected void shuffle(List<Card> deck) {\n Collections.shuffle(deck);\n }", "public Deck() {\n cards = new LinkedList<Integer>();\n removedCards = new LinkedList<Integer>();\n \n int i, j;\n for (i = MIN_VALUE; i <= MAX_VALUE; i++) {\n for (j = 0; j <= NUM_SUITS; j++) {\n cards.add(i);\n }\n }\n }", "public void RemoveCardFromDeck(int value){\n deck.remove(value);\n }", "public Card pop(){\r\n Card temp = cards.get(0);\r\n cards.remove(0);\r\n deckSize--;\r\n return temp;\r\n }", "public void shuffleCards() {\n Collections.shuffle(suspectCards);\n Collections.shuffle(weaponCards);\n Collections.shuffle(roomCards);\n\n }", "public void reset(){\n\n deck = new PlayingCard[52];\n String[] cardTypes = {\"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"J\", \"Q\", \"K\"};\n\n // initialise Aces separately for a cleaner loop later\n deck[0] = new PlayingCard(\"A\", PlayingCard.HEARTS, 1, 14);\n deck[1] = new PlayingCard(\"A\", PlayingCard.DIAMONDS, 1, 14);\n deck[2] = new PlayingCard(\"A\", PlayingCard.CLUBS, 1, 14);\n deck[3] = new PlayingCard(\"A\", PlayingCard.SPADES, 1, 14);\n\n int j = 0;\n\n for(int i = 0; i < Constants.SUIT_SIZE-1; ++i) {\n\n j = (i+1) * 4; // used to be able to declare 4 cards at once without overwriting\n deck[j] = new PlayingCard(cardTypes[i], PlayingCard.HEARTS, i + 2, i + 2);\n deck[j+1] = (new PlayingCard(cardTypes[i], PlayingCard.CLUBS, i + 2, i + 2));\n deck[j+2] = new PlayingCard(cardTypes[i], PlayingCard.DIAMONDS, i + 2, i + 2);\n deck[j+3] = new PlayingCard(cardTypes[i], PlayingCard.SPADES, i + 2, i + 2);\n }\n\n this.shuffle();\n }", "public void shuffleDeck() {\n\t\tCollections.shuffle(this.deck);\n\t}", "public List<Card> drawCards(int numberOfCards) {\r\n if (numberOfCards < 1) {\r\n return new ArrayList<>();\r\n }\r\n\r\n if (drawPile.size() < numberOfCards) {\r\n return null;\r\n }\r\n\r\n List<Card> result = drawPile.subList(0, numberOfCards);\r\n drawPile = drawPile.subList(numberOfCards, drawPile.size());\r\n return result;\r\n }", "public int[] shuffle() {\r\n if (nums == null) return nums;\r\n int tmp = 0;\r\n \r\n int[] newNums = nums.clone();\r\n \r\n for (int i=1; i<newNums.length; i++) {\r\n int selectPos = rd.nextInt(i+1);\r\n tmp = newNums[i];\r\n newNums[i] = newNums[selectPos];\r\n newNums[selectPos] = tmp;\r\n }\r\n \r\n return newNums;\r\n }", "public void shuffle()\n\t{\n\t\tCollections.shuffle(card);\n\t}", "public static Card deal(ArrayList<Card> deck) {\n\t\treturn deck.get(randomInt(0, 52));\n\n\t\t// return null; // delete this after writing the above\n\t}", "public T removeRandom();" ]
[ "0.7238125", "0.6891811", "0.6770798", "0.66108567", "0.6590764", "0.65204924", "0.65041137", "0.64799094", "0.6455266", "0.64261067", "0.6411978", "0.63330257", "0.6322269", "0.62875915", "0.6274185", "0.6256634", "0.6239997", "0.6222167", "0.619293", "0.6172935", "0.6165501", "0.6163073", "0.6155352", "0.6120232", "0.6114633", "0.61022633", "0.60819674", "0.60733753", "0.6070014", "0.602181", "0.6009353", "0.60077554", "0.60048187", "0.599889", "0.59979886", "0.594946", "0.5938624", "0.5935466", "0.5922705", "0.59001815", "0.58981645", "0.5895252", "0.5857515", "0.5853176", "0.5847387", "0.5842478", "0.5833426", "0.5827608", "0.5815222", "0.57951987", "0.5784967", "0.57760155", "0.5774942", "0.5756567", "0.5751539", "0.57485825", "0.5743004", "0.5742242", "0.5734976", "0.5707939", "0.57007754", "0.56867737", "0.5677181", "0.5666992", "0.56580013", "0.56357676", "0.56247693", "0.56240207", "0.5615249", "0.5614765", "0.56137705", "0.56122345", "0.5600382", "0.56003225", "0.5585316", "0.55829656", "0.5576354", "0.5576354", "0.55638844", "0.5550613", "0.5539294", "0.55382687", "0.55329716", "0.5531443", "0.5530281", "0.55282146", "0.5522208", "0.5514431", "0.5510158", "0.550853", "0.55045223", "0.5504292", "0.5487237", "0.5482405", "0.5472122", "0.5471673", "0.5469195", "0.54658145", "0.5461252", "0.5451849" ]
0.7103719
1
Converts an array to a list.
private List<Integer> toList(int[] array) { List<Integer> list = new LinkedList<Integer>(); for (int item : array) { list.add(item); } return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List toList(Object arr[])\r\n {\r\n return (arr == null) ? null : Arrays.asList(arr);\r\n }", "public static List<Integer> asList(int[] array) {\n\t\treturn new IntList(array);\n\t}", "public static List<Integer> asList(int[] a) {\n assert (a != null);\n List<Integer> ret = new ArrayList<>(a.length);\n for (int e : a)\n ret.add(e);\n return ret;\n }", "static List<Integer> arrayToList(int[] array) {\r\n List<Integer> list = new ArrayList<Integer>();\r\n for(int i : array)\r\n list.add(i);\r\n return list;\r\n }", "public static List<String> arrayToList(String[] a) {\n return new ArrayList<String>(Arrays.asList(a));\n }", "public COSArray toList() \n {\n return array;\n }", "public static List<Double> toList(final double[] array) {\n List<Double> list = new ArrayList<Double>(array.length);\n for (int i = 0; i < array.length; i++) {\n list.add(array[i]);\n }\n return list;\n }", "public static List<Long> asList(long[] array) {\n\t\treturn new LongArrayList(array);\n\t}", "public static List<Double> asList(double[] array) {\n\t\treturn new DoubleArrayList(array);\n\t}", "public static ArrayList<Integer> ArraytoArrayList(int [] arr){\n ArrayList<Integer> list = new ArrayList<>();\n return list;\n }", "public static List ruleArrayToList(String [][] array)\t{\n\t\treturn appendToSyntax(array, new ArrayList(array.length));\n\t}", "public static void convertIntArrayToList() {\n\t\tint[] inputArray = { 0, 3, 7, 1, 7, 9, 11, 6, 3, 5, 2, 13, 14 };\n\n\t\t// ********** 1 *************\n\t\tList<Integer> list = Arrays.stream(inputArray) // IntStream\n\t\t\t\t.boxed() // Stream<Integer>\n\t\t\t\t.collect(Collectors.toList());\n\t\tSystem.out.println(list);\n\n\t\t// ********** 2 *************\n\t\tList<Integer> list_2 = IntStream.of(inputArray) // returns IntStream\n\t\t\t\t.boxed().collect(Collectors.toList());\n\t\tSystem.out.println(list_2);\n\t}", "public static List<Float> asList(float[] array) {\n\t\treturn new FloatArrayList(array);\n\t}", "private List<Double> double2List(final double[] array) {\n\t\tList<Double> result = new ArrayList<Double>();\n\t\tfor (double n : array) {\n\t\t\tresult.add(new Double(n));\n\t\t}\n\t\treturn result;\n\t}", "@SuppressWarnings( { \"rawtypes\", \"unchecked\" } )\n\tprotected static List fromJSONArray( JSONArray array )\n\t{\n\t\tList l = new ArrayList( );\n\t\tfor ( int i = 0; i < array.length( ); i++ )\n\t\t{\n\t\t\tl.add( array.get( i ) );\n\t\t}\n\t\treturn l;\n\t}", "public static ArrayList<Object> JSONArrayToArray(JSONArray array) {\r\n\t\t\r\n\t\t\r\n\t\t// initialize the list\r\n\t\tArrayList<Object> list = new ArrayList<Object>();\r\n\t\t\r\n\t\t\r\n\t\t// whether the JSONArray null or empty, it will return an empty list\r\n\t\tif (array == null || array.size() == 0) {\r\n\t\t\treturn list;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// reaching this points mean the array is valid\r\n\t\tfor (Object i : array) {\r\n\t\t\tlist.add(i);\r\n\t\t}\t\r\n\t\t\r\n\t\t// That's all Folks!\r\n\t\treturn list;\r\n\t}", "public static <T> ConstList<T> asList(T... array) {\n return (new TempList<T>(array)).makeConst();\n }", "public List<Integer> toList (int[][] twoDarray) {\r\n\r\n List<Integer> list = new ArrayList<>();\r\n\r\n// for(Integer[] array : twoDarray) {\r\n// list.addAll(Arrays.asList(array));\r\n// }\r\n\r\n for (int i = 0; i < twoDarray.length; i++) {\r\n for (int j = 0; j < twoDarray.length; j++) {\r\n list.add(twoDarray[i][j]);\r\n }\r\n }\r\n return list;\r\n }", "private static List<Node> arrayToList(Node[] n) {\n List<Node> listItems = new ArrayList<>();\n for (Node n1 : n) {\n listItems.add(n1);\n }\n return listItems;\n }", "public static ListUtilities arrayToList(int[] array){\n\t\tListUtilities startNode = new ListUtilities();\n\t\tif (array.length != 0){\n\t\t\tstartNode.setInt(array[0]);\n\t\t\tfor (int i = 1; i < array.length; i++){\n\t\t\t\tstartNode.addNum(array[i]);\n\t\t\t}\n\t\t}\n\t\treturn startNode;\n\t}", "private PyObject[] listtoarray(ArrayList<PyObject> a)\n {\n PyObject[] results = new PyObject[a.size()];\n int iter = 0;\n for (PyObject pt : a) {\n results[iter] = pt;\n iter++;\n }\n return results;\n }", "private static List<Dog> dogArrayToList(Dog[] dogs) {\n return Arrays.asList(dogs);\n }", "public static List<String> toStringList(JsonArray array) {\r\n\t\treturn array.getValuesAs(JsonString.class).stream()\r\n\t\t\t.map(x -> x.toString())\r\n\t\t\t.collect(Collectors.toCollection(ArrayList::new));\r\n\t}", "public static <T> T[] listToArray (Object list) {\n\tif (! (list instanceof Collection)) {\n\t\treturn (T[]) new Object[0];\n\t}\n\treturn (T[]) ((Collection) list).toArray();\n }", "private void intListToArrayList(int[] list, ArrayList<Integer> arrayList){\n for(int integer: list){\n arrayList.add(integer);\n }\n }", "public Object[] toArray()\n\t{\n\t\treturn list.toArray();\n\t}", "public List getList() {\n return Arrays.asList(toJavaArray()); \n }", "JAVATYPE [] convertArray(JAVATYPE [] oldArray, final METATYPE meta);", "public T[] toArray(T[] array) {\n\t\tif (array.length < size)\n\t\t\tarray = (T[]) java.lang.reflect.Array.newInstance(\n\t\t\t\t\tarray.getClass().getComponentType(), size);\n\t\tNode<T> curNode = head;\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tarray[i] = curNode.value;\n\t\t\tcurNode = curNode.next;\n\t\t}\n\t\treturn array;\n\t}", "T[] toArray(T[] a);", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default List<IData> asList() {\n \n return notSupportedCast(\"IData[]\");\n }", "public Object[] toArray(){\n\n \tObject[] o = new Object[list.size()];\n\n o = list.toArray();\n\n \treturn o;\n\n }", "public List<T> toList() {\n return Query.toList(iterable);\n }", "static public int[] toArray(IntArray array){\r\n final int[] result = new int[array.getLength()];\r\n for (int i = 0; i < array.getLength(); i++) {\r\n result[i] = array.getData(i);\r\n }\r\n return result;\r\n }", "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 }", "public static ArrayList<String> stringArrayToArrayList(String[] strArray) {\n\t\tif (strArray.length == 0 || strArray == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn new ArrayList<String>(Arrays.asList(strArray));\n\t}", "Listof<X> toList();", "public ArrayList<T> returnAsArray(ArrayList<T> arr) {\n\t\tif (arr == null) {\n\t\t\tarr = new ArrayList<T>();\n\t\t}\n\t\tif (this == null) {\n\t\t\treturn arr;\n\t\t}\n\t\tif (this.valCount == 0) {\n\t\t\treturn arr;\n\t\t}\n\t\tfor (int i = 0; i < childCount; ++i) {\n\t\t\tthis.children[i].returnAsArray(arr);\n\t\t\tif (i < childCount - 1) {\n\t\t\t\tarr.add(values[i]);\n\t\t\t}\n\t\t}\n\t\treturn arr;\n\t}", "public static List<String> getList(JSONArray array) {\n\tList<String> result = new ArrayList<String>();\n\tfor(int i=0;i<array.length();i++) {\n\t result.add(array.getString(i));\n\t}\n\treturn result;\n }", "public ArrayList<ArrayList<Integer>> toListRow(int [][] mergearray)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tArrayList<ArrayList<Integer>> manylistsrow = new ArrayList<ArrayList<Integer>>();\r\n\t\t\t\t\t\tArrayList<Integer> templist=new ArrayList<Integer>();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//System.out.println(\"=================================================================================\");\r\n\t\t\t\t\t\t//System.out.println(\"Copying Array items to lists\");\r\n\t\t\t\t\t\t//System.out.println(\"=================================================================================\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tfor (int i=0;i<mergearray.length;i++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tfor(int j=0;j<mergearray[0].length;j++)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\ttemplist.add(mergearray[i][j]);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tmanylistsrow.add(new ArrayList<Integer>());\r\n\t\t\t\t\t\t\tmanylistsrow.get(i).addAll(templist);\r\n\t\t\t\t\t\t\ttemplist.clear();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// System.out.println(manylists.size());\r\n\t\t\t\t\t\t//System.out.println(manylists);\r\n\t\t\t\t\t\treturn manylistsrow;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "public <T> T[] toArray(T[] a) {\n int k = 0;\n Node<E> p;\n for (p = first(); p != null && k < a.length; p = succ(p)) {\n E item = p.item;\n if (item != null)\n a[k++] = (T)item;\n }\n if (p == null) {\n if (k < a.length)\n a[k] = null;\n return a;\n }\n\n // If won't fit, use ArrayList version\n ArrayList<E> al = new ArrayList<E>();\n for (Node<E> q = first(); q != null; q = succ(q)) {\n E item = q.item;\n if (item != null)\n al.add(item);\n }\n return al.toArray(a);\n }", "public static ListUtilities arrayToSortedList(int[] array){\n\t\tListUtilities startNode = new ListUtilities();\n\t\tif (array.length != 0){\n\t\t\tstartNode.setInt(array[0]);\n\t\t\tfor (int i = 1; i < array.length; i++){\n\t\t\t\tstartNode.addNumSorted(array[i]);\n\t\t\t}\n\t\t}\n\t\treturn startNode;\n\t}", "@SuppressWarnings(\"unchecked\")\n public E[] toArray(E[] arr) {\n if(arr.length < size) {\n arr = (E[]) Array.newInstance(arr.getClass().getComponentType(), size);\n }\n Node<E> cur = head;\n for(int i = 0; i < size; i++) {\n arr[i] = cur.item;\n cur = cur.next;\n }\n return arr;\n }", "public static <T> List<T> toList(Iterable<T> elements) {\n return toList(elements.iterator());\n }", "private static ArrayList<String> convertToStringList(JSONArray arr)\n throws JSONException {\n ArrayList<String> list = new ArrayList<String>();\n if (arr != null) {\n for (int i = 0; i < arr.length(); i++) {\n list.add(arr.getString(i));\n }\n }\n return list;\n }", "ArrayList<ArrayList<Integer>> convert2DArrayToList(int[][] image) {\n ArrayList<ArrayList<Integer>> list = new ArrayList<ArrayList<Integer>>();\n for(int i=0;i < image.length;i++) {\n list.add(new ArrayList<Integer>());\n for(int j=0; j< image[0].length;j++) {\n list.get(i).add(image[i][j]);\n }\n }\n return list;\n }", "public List<Integer> convert (List<int[]> list) {\r\n\r\n List<Integer> result = new ArrayList<>();\r\n for(int[] array : list) {\r\n for (int i = 0; i < array.length; i++) {\r\n result.add(array[i]);\r\n }\r\n }\r\n return result;\r\n }", "public static ListNode arrayToList(int[] array) {\n if (array == null || array.length == 0) {\n return null;\n }\n ListNode head = new ListNode(array[0]);\n ListNode current = head;\n for (int index = 1; index < array.length; index++) {\n current.next = new ListNode(array[index]);\n current = current.next;\n }\n return head;\n}", "@Override\n public T[] toArray() {\n T[] result = (T[])new Object[numItems];\n for(int i = 0; i < numItems; i++)\n result[i] = arr[i];\n return result;\n }", "public static List<Integer> reverseArray(List<Integer> a) {\n int s=a.size();\n List<Integer> list=new ArrayList<Integer>(s);\n for(int i=s-1;i>=0;i--)\n {\n list.add(a.get(i));\n }\n return list;\n }", "public static void convert (int arr[])\r\n\t{\n\t\tArrayList l = new ArrayList ();\r\n\t\t//loop and add element \r\n\t\tfor (int i = 0 ;i<arr.length ; i++) \r\n\t\t{\r\n\t\t\t// index element\r\n\t\t\t// | |\r\n\t\t\tl.add( i , arr[i] );\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// ouput l element \r\n\t\tSystem.out.println(l);\r\n\t}", "public ArrayList<T> getAsList(){\r\n return arrayList;\r\n }", "private static List<String> jsonArraytoList(JSONArray jsonArray) throws JSONException {\n List<String> listData = new ArrayList<>();\n if (jsonArray != null) {\n for (int i = 0; i < jsonArray.length(); i++)\n listData.add(jsonArray.getString(i));\n }\n return listData;\n }", "public static <T> List<T> AsList(@NonNull T... ts) {\n return Arrays.asList(ts);\n }", "@Override\n\tpublic Object[] toArray() {\n\t\tif (isEmpty()) {\n\t return null;\n\t }\n\n\t\tObject[] data = new Object[size()];\n\n\t ListNode tmp = head;\n\t for (int i = 0; i < size(); i++) {\n\t data[i] = tmp.datum;\n\t tmp = tmp.next;\n\t }\n\n\t return data;\t\t\n\t}", "Object[] toArray();", "Object[] toArray();", "Object[] toArray();", "public static List ruleToList(String [] rule)\t{\n\t\treturn appendToRule(rule, new ArrayList(rule.length));\n\t}", "@Override\n\tpublic ArrayList<T> toArrayList() {\n\t\tArrayList<T> out = new ArrayList<T>();\n\t\ttoArrayListRecursive(out,root);\n\t\treturn out;\n\t}", "public static int[] toArray(Collection<Integer> a) {\n assert (a != null);\n int[] ret = new int[a.size()];\n int i = 0;\n for (int e : a)\n ret[i++] = e;\n return ret;\n }", "E[] toArray();", "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 }", "@SuppressWarnings(\"unchecked\")\n public void testListToArray() throws Exception\n {\n List<PSKeyword> sourceList = new ArrayList<PSKeyword>();\n sourceList.add(createKeyword(\"1\"));\n sourceList.add(createKeyword(\"2\"));\n \n List<PSKeyword> targetList = roundTripListConversion(\n com.percussion.webservices.content.PSKeyword[].class, \n sourceList);\n\n assertTrue(sourceList.equals(targetList));\n }", "@Override\n public T[] toArray() {\n return (T[]) array;\n }", "int[] toArray();", "private TaskListItem[] getListArray() {\n return allLists.toArray(new TaskListItem[allLists.size()]);\n }", "public abstract long[] toLongArray();", "public <T> T[] toArray(T[] arr);", "public static int[] convertIntegersToArray(List<Integer> integers){\n \n \tint[] newArray = new int[integers.size()]; \n \tIterator<Integer> iterator = integers.iterator(); // Declare and create iterator on integers arraylist.\n \n for (int i = 0; i < newArray.length; i++){\n newArray[i] = iterator.next().intValue(); // add elements to newArray \n }\n \n return newArray;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic T[] asArray() {\n\t\t// have to use explicit cast because we cannot use the alternative signature of toArray(T[]), as you cannot instantiate an array of a\n\t\t// type parameter (not even an empty array)\n\t\treturn (T[]) this.itemList.toArray();\n\t}", "private Object arrayToSPLArray(String name, JSONArray jarr, Type ptype) throws Exception {\n\t\tif(l.isLoggable(TraceLevel.DEBUG)) {\n\t\t\tl.log(TraceLevel.DEBUG, \"Creating Array: \" + name);\n\t\t}\n\t\tCollectionType ctype = (CollectionType) ptype;\n\t\tint cnt=0;\n\t\tString cname = \"List: \" + name;\n\n\t\tswitch(ctype.getElementType().getMetaType()) {\n\t\tcase INT8:\n\t\tcase UINT8: \n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tbyte[] arr= new byte[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Byte)val;\n\t\t\treturn arr;\n\t\t} \n\t\tcase INT16:\n\t\tcase UINT16:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tshort[] arr= new short[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Short)val;\n\t\t\treturn arr;\n\t\t} \n\t\tcase INT32:\n\t\tcase UINT32:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tint[] arr= new int[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Integer)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase INT64:\n\t\tcase UINT64:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tlong[] arr= new long[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Long)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase BOOLEAN:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tboolean[] arr= new boolean[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Boolean)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase FLOAT32:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tfloat[] arr= new float[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Float)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase FLOAT64:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tdouble[] arr= new double[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Double)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase USTRING:\n\t\t{\n\t\t\tList<String> lst = new ArrayList<String>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((String)obj);\n\t\t\t}\n\t\t\treturn lst.toArray(new String[lst.size()]);\n\t\t} \n\n\t\tcase BSTRING:\n\t\tcase RSTRING:\n\t\t{\n\t\t\tList<RString> lst = new ArrayList<RString>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((RString)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\n\t\tcase TUPLE:\n\t\t{\n\t\t\tList<Tuple> lst = new ArrayList<Tuple>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((Tuple)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\n\t\tcase LIST:\n\t\tcase BLIST:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add(obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\t\tcase SET:\n\t\tcase BSET:\n\t\t{\n\t\t\tSet<Object> lst = new HashSet<Object>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add(obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\t\tcase DECIMAL32:\n\t\tcase DECIMAL64:\n\t\tcase DECIMAL128:\n\t\t{\n\t\t\tList<BigDecimal> lst = new ArrayList<BigDecimal>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((BigDecimal)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\t\tcase TIMESTAMP:\n\t\t{\n\t\t\tList<Timestamp> lst = new ArrayList<Timestamp>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((Timestamp)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\n\n\t\t//TODO -- not yet supported types\n\t\tcase BLOB:\n\t\tcase MAP:\n\t\tcase BMAP:\n\t\tcase COMPLEX32:\n\t\tcase COMPLEX64:\n\t\tdefault:\n\t\t\tthrow new Exception(\"Unhandled array type: \" + ctype.getElementType().getMetaType());\n\t\t}\n\n\t}", "public abstract int[] toIntArray();", "private static double[] toArray(ArrayList<Double> dbls) {\n double[] r = new double[dbls.size()];\n int i = 0;\n for( double d:dbls ) r[i++] = d;\n return r;\n }", "static public Object[] coerceJavaArray(JSObject arr) throws Exception {\r\n\t\t// actual arrays\r\n\t\tif (arr instanceof JSArray)\r\n\t\t\treturn ((JSArray) arr).toArray();\r\n\t\t// array-like objects\r\n\t\tint len = (int) JSUtils.asNumber(arr.get(\"length\"));\r\n\t\tObject[] out = new Object[len];\r\n\t\tfor (int j = 0; j < len; j++)\r\n\t\t\tout[j] = arr.get(j);\r\n\t\treturn out;\r\n\t}", "@Override\n public int[] toArray() {\n int[] result = new int[size];\n Entry tmp = first;\n for (int i = 0; i < size; i++) {\n result[i] = tmp.value;\n tmp = tmp.next;\n }\n return result;\n }", "public XSListSimpleType asList() {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 0: idiv \n // 1: laload \n // LocalVariableTable:\n // Start Length Slot Name Signature\n // ----- ------ ---- ---- ------------------------------------------\n // 0 2 0 this Lcom/sun/xml/xsom/impl/ListSimpleTypeImpl;\n // \n // The error that occurred was:\n // \n // java.lang.ArrayIndexOutOfBoundsException\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "public static ArrayList<Integer> getSubsequence(List<Integer> array) {\n Collections.sort(array);\n return createSubSequence(array);\n }", "public static <E extends F, F> F[] asAList(List<E> l, Class<F> theClass) {\n F[] res = (F[]) Array.newInstance(theClass, l.size());\n for (int i = 0; i < l.size(); i++) {\n res[i] = l.get(i);\n }\n return res;\n }", "@Override\r\n\tpublic <T> T[] toArray(T[] a) {\n\t\treturn null;\r\n\t}", "@Test public void getArrayShouldReturnCorrectArray() throws SQLException {\n\t\tList<String> list = new ArrayList<>();\n\t\tArray array = new ListArray(list, Types.VARCHAR);\n\t\tassertTrue(array.getArray() instanceof String[]);\n\t\tlist.add(\"test\");\n\t\tarray = new ListArray(list, Types.VARCHAR);\n\t\tassertEquals(\"test\", ((String[])array.getArray())[0]);\n\t\tlist.add(\"test2\");\n\t\tarray = new ListArray(list, Types.VARCHAR);\n\t\tassertEquals(\"test2\", ((String[])array.getArray())[1]);\n\t}", "@Override\r\n\tpublic <T> T[] toArray(T[] a)\r\n\t{\n\t\tthrow new UnsupportedOperationException(\"Series collection doesn't support this operation.\");\r\n\t}", "public static Edge[] listToArray(ArrayList<Edge> list){\n\t\t\tEdge[] EdgeAry = new Edge[list.size()];\n\t\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\t\tEdgeAry[i] = list.get(i);\n\t\t\t}\n\t\t\treturn EdgeAry;\n\t\t}", "public Object[] toArray() {\n\t\tObject[] ret = new Object[currentSize];\n\t\tfor (int i = 0; i < currentSize; i++)\n\t\t\tret[i] = array[i];\n\t\treturn ret;\n\t}", "private static String[] listToArray(List<String> list){\n\t\tString[] arr = new String[list.size()];\n\t\tfor (int i = 0; i < list.size(); i++){\n\t\t\t\n\t\t\tarr[i] = list.get(i);\n\t\t}\n\t\t\n\t\treturn arr;\n\t}", "@Override\n\tpublic Object[] toArray() {\n\t\tObject[] result = copyArray(elements, size);\n\n\t\treturn result;\n\t}", "@Override\n\t\tpublic <T> T[] toArray(T[] a) {\n\t\t\treturn null;\n\t\t}", "public long[] toArray() {\n/* 406 */ long[] array = new long[(int)(this.max - this.min + 1L)];\n/* 407 */ for (int i = 0; i < array.length; i++) {\n/* 408 */ array[i] = this.min + i;\n/* */ }\n/* 410 */ return array;\n/* */ }", "private String[] convertList(String[][] l){\n String[] list = new String[l.length];\n for(int i =0; i<list.length;i++){\n String input = l[i][1];\n System.out.println(input);\n list[i] = input;\n }\n \n return list;\n }", "protected static ArrayList<Resource> asList(Resource... bundles) {\n\t\treturn new ArrayList<>(Arrays.asList(bundles));\n\t}", "@SuppressWarnings(\"unchecked\")\n @Override\n public <T> T[] toArray(T[] out) {\n int size = array.length;\n if (out.length < size) {\n out = ArrayHelper.createFrom(out, size);\n }\n for (int i = 0; i < size; ++i) {\n out[i] = (T) array[i];\n }\n if (out.length > size) {\n out[size] = null;\n }\n return out;\n }", "public static String[] list2array(List<String> list) {\n return collect2array(list);\n }", "private int[] arrayListToIntList(ArrayList<Integer> arrayList){\n int[] list=new int[arrayList.size()];\n for(Integer integer:arrayList){\n list[arrayList.indexOf(integer)]=integer;\n }\n return list;\n }", "@Override\n\tpublic Object[] toArray() {\n\t\tListNode<L> newHead=first;\n\t\tObject[] array=new Object[size];\n\t\tfor(int i =0;i<size;i++) {\n\t\t\tarray[i]=newHead.storage;\n\t\t\tnewHead=newHead.next;\n\t\t}\n\t\treturn array;\n\t}", "public Polynomial[] getAsArray() {\n Polynomial[] list = new Polynomial[collection.size()];\n\n for (int i = 0; i < collection.size(); i++) {\n list[i] = collection.get(i);\n }\n return list;\n }", "public static String listArray(int num[]) {\n String out = \"{\";\n for (int j = 0; j < num.length; j++) {\n if (j > 0) {\n out += \", \";\n }\n out += num[j];\n }\n out += \"} \";\n return out;\n }", "@Override\n public List<E> asList() {\n ArrayList<E> result = null;\n\n while (top.next != null) {\n top = top.next;\n result.add(top.data);\n }\n return result;\n }", "public ArrayList<Node> TreeToArray(Node node, ArrayList<Node> treeArray)\n\t{\n\t\ttreeArray.add(node);\n\t\tfor(Node child: node.getChildren())\n\t\t\tTreeToArray(child, treeArray);\n\t\treturn treeArray;\n\t}", "@Override\n\tpublic <T> T[] toArray(T[] a) {\n\t\treturn null;\n\t}", "@Test\n public void testToArray_GenericType() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n Integer[] expResult = { 1, 2, 3, 4, 5, 6 };\n Integer[] result = instance.toArray(new Integer[] {});\n assertArrayEquals(expResult, result);\n }" ]
[ "0.7545577", "0.73804146", "0.7379801", "0.72525275", "0.7233239", "0.71733487", "0.7024702", "0.6994792", "0.6783884", "0.67781556", "0.67561024", "0.6649602", "0.66378164", "0.66305983", "0.6494708", "0.6413332", "0.63945746", "0.6388161", "0.62711746", "0.6246455", "0.62028146", "0.6116276", "0.60988885", "0.60832757", "0.6077686", "0.5975684", "0.5950863", "0.59064275", "0.58628035", "0.58580554", "0.5848005", "0.5828132", "0.58262104", "0.5788609", "0.5763502", "0.575255", "0.5742171", "0.5718146", "0.56925845", "0.56771326", "0.5670074", "0.56651497", "0.5657829", "0.5654273", "0.5651891", "0.5630456", "0.56275725", "0.5611677", "0.55664", "0.5538504", "0.5538326", "0.5536306", "0.55284554", "0.55276924", "0.55041355", "0.5497641", "0.5497641", "0.5497641", "0.54945266", "0.5452413", "0.5450579", "0.5438211", "0.54237115", "0.5419047", "0.5383726", "0.538198", "0.5369017", "0.5367467", "0.5365233", "0.53547394", "0.5342715", "0.5328431", "0.52709574", "0.52607656", "0.5251471", "0.52389956", "0.5231454", "0.522541", "0.5215107", "0.5211669", "0.5192268", "0.51897794", "0.51861256", "0.51858175", "0.51848125", "0.51767975", "0.51674634", "0.516048", "0.51582205", "0.5147457", "0.51472545", "0.5139711", "0.5139107", "0.5129935", "0.5125811", "0.5125169", "0.5122972", "0.51141256", "0.5113517", "0.51133305" ]
0.75380814
1
Adds the removed cards back to the deck.
public void resetDeck() { cards.addAll(removedCards); removedCards.clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void discard(Card card) {\n discardPile.add(card);\n }", "public void removeCards() {\n\t\tthis.content.removeAll(this.content);\n\t}", "public void addToDiscard(Card card) {\r\n\t\tthis.discard.add(card);\r\n\t}", "public void shuffleThePresentCardToTheEnd() {\n storageCards.add(storageCards.remove());\n }", "public void addCardsToDiscardPile(List<Card> cards) {\r\n discardPile.addAll(cards); // TODO: this triggers a nullpointerexception ( ava.lang.NullPointerException: Attempt to invoke interface method 'int java.util.Collection.size()' on a null object reference\r\n // at java.util.LinkedList.addAll(LinkedList.java:386)\r\n // at ch.ethz.inf.vs.a4.minker.einz.model.GlobalState.addCardsToDiscardPile(GlobalState.java:158) )\r\n discardPile.subList(Math.max(0, discardPile.size() - maxDiscardPileSize), discardPile.size());\r\n }", "public void discardToDeck() {\n\t\tfor(int i=discardPile.size(); i>0; i--) {\n\t\t deck.add(discardPile.remove(0));\n\t\t}\n\t\tCollections.shuffle(deck);\n\t}", "public void discard(){\n for(int i = 1 ; i <= 110 ; i++) cardDeck.remove(i);\n }", "Set<Card> remove();", "public DiscardDeck() {\n\t\tthis.content = new ArrayList<Card>();\n\t}", "public void reFillCard() {\n ArrayList<Cards> refill = new ArrayList<Cards>();\n for (Cards card : playedCards) {\n refill.add(card);\n }\n setDeckCards(new Deck(refill));\n playedCards.clear();\n playedCards.add(refill.get(refill.size()-1));\n }", "public void addCardToDiscardPile(Card card) {\r\n discardPile.add(card);\r\n if (discardPile.size() > maxDiscardPileSize) {\r\n discardPile = discardPile.subList(1, discardPile.size());\r\n }\r\n }", "private void dealCards(){\n\t\tfor(int k = 0; k <2;k++){\n\t\t\tfor(int i = 0; i < Players.size();i++){\n\t\t\t\tPlayers.get(i).addCardToHand(gameDeck.dealCard());\n\t\t\t}\n\t\t}\n\t\t\n\t setChanged();\n\t notifyObservers(\"CardsDealed\");\n\t}", "public void removePresentCard() {\n storageCards.remove();\n }", "public void clear(){\r\n cards.clear();\r\n deckSize = 0;\r\n }", "public Card removeCard(){\n Card temp = pile[0]; //removes top card. putting placement card to avoid null pointer\n for(int i = 0; i < pilePlace; i++){ //shifts cards\n pile[i] = pile[i+1];\n }\n pilePlace--;\n return temp;\n\n }", "public void dealCards () {\t\n\n\t\tint numOfPlayers = players.size();\n\t\tint count = 0;\n\t\tCard[] cards = deck.getDeck();\n\t\tfor (int i=0; i<cards.length; i++) {\n\t\t\t\t// Go through all the cards, for each player deal 1 card at a time\n\t\t\t\t(players.get(count % numOfPlayers).getCards()).add(cards[i]); \n\t\t\t\tcount++;\n\t\t}\n\t}", "private void resetDeck()\n {\n Stack<Card> temp = new Stack<Card>();\n while(!waste.isEmpty())\n temp.push(waste.pop()); \n while(!temp.isEmpty())\n deck.addCard((Card)temp.pop());\n }", "public void removePrevCardList(){\n for (int i = 0; i < playerCardList.getPlayerCardListSize(); i++){\n playerCardPuzzle.getChildren().remove(playerCardList.getPlayerCardByNo(i));\n }\n }", "public void reset() {\r\n\t\tcards.addAll(dealt);\r\n\t\tdealt.clear();\r\n\t}", "public void resetDeck() {\r\n\t\tcards = new ArrayList<Card>();\r\n\t\tfor (Suit f : Suit.values())\r\n\t\t\tfor (int i = 2; i < 15; i++)\r\n\t\t\t\tcards.add(new Card(i, f));\r\n\r\n\t}", "public void removeCardAndAddToHand(int location,ArrayList<Card> hand) {\n// if(cards.get(location).equals()){\n hand.add(cards.get(location));\n cards.remove(location);\n// }\n //add to player\n }", "void refillCards() {\n if (this.gameDeck.isEmpty() && !this.wonDeck.isEmpty()) {\n this.wonDeck.shufffle();\n Deck temp = this.gameDeck;\n this.gameDeck = this.wonDeck;\n this.wonDeck = temp;\n\n }\n\n }", "private java.util.List<Card> deal(java.util.List<Card> hand, int numCards) {\n for (int i = 0; i < numCards; ++i) {\n hand.add(removeTop(deck));\n }\n return hand;\n }", "for (Card ca : deck) {\n\t\tif (ca.suit == 'c') {\n\t\t\tdeck.remove(ca);\n\t\t}\n\t}", "public void drawCard(Integer cardLocation){\n Random random = new Random();\n boolean isPlayerHandEmpty = false;\n Integer sizeOfPlayerHand = 4;\n //The reason for this is as follows: we are wanting to keep an array size of 4 consistent for playerHand, however\n //using the .remove() function actually shortens the size. Yet .set(index,null) is still counted as an element, hence\n //isEmpty does not work, and the size() is still 4.\n //Is this the most agile way to do this? I don't know, but this worked.\n\n for (Card s:playerHand){\n if(s == null){\n sizeOfPlayerHand--;\n }\n }\n if (sizeOfPlayerHand == 0){\n isPlayerHandEmpty = true;\n }\n\n\n\n if (playerTempDeck.size() > 0 && (sizeOfPlayerHand < 4 || playerHand.size() < 4)){\n //System.out.println(\"Adding cards from deck.\");\n\n Integer n = random.nextInt(playerTempDeck.size()); //0 to the number in the bracket. Pick a random card from the deck and use it here.\n playerHand.set(cardLocation, playerTempDeck.get(n));\n //System.out.println(\"Now the playerHand is: \" + playerHand.toString());\n //System.out.println(\"Size of deck: \" + playerTempDeck.size());\n //System.out.println(\"Trying to remove: \" + playerTempDeck.get(n).getEffect());\n playerTempDeck.remove(playerTempDeck.get(n));\n }\n\n if (playerTempDeck.size() == 0 && (isPlayerHandEmpty || playerHand.size() == 0)){ //deck is empty and no cards left to play, reshuffle.\n //System.out.println(\"Hand and deck are both empty!\");\n playerTempDeck.addAll(discardedCards);\n discardedCards.clear();\n drawCard(0);\n drawCard(1);\n drawCard(2);\n drawCard(3);\n }\n }", "public void remove(Card card)\n {\n deck.remove(card);\n //Add listener to check if the deck is empty (then refill it) or not\n }", "public void giveOutCards() {\n boolean shared = false;\n while (!shared) {\n for (Player player : this.players) {\n if (this.cards.size() == 0) {\n shared = true;\n } else {\n Card card = this.cards.get(0);\n this.cards.remove(0);\n if (!envelope.has(card)) {\n player.addCard(card);\n }\n }\n }\n }\n }", "public void discard(Card card) {\n if (!myTurn()) {\n return;\n }\n // CardAction cardAct = new CardAction(card, \"Discard: \" + card.getName());\n // history.add(cardAct);\n\n if (handPile.contains(card)) {\n tmpDiscardPile.add(card);\n handPile.remove(card);\n } else {\n tmpDiscardPile.add(card);\n }\n }", "public Card drawCard() {\n Card c = cards.get(0);//get a card\n cards.remove(0);//remove the card form the deck that's given out\n discard.add(c);//so the card given out is added to the discard list\n return c;//return a card object\n\n }", "public void gatherCards() {\n this.cards.clear();\n this.cards.addAll(this.roomCards);\n this.cards.addAll(this.weaponCards);\n this.cards.addAll(this.suspectCards);\n }", "public void RemoveCardFromDeck(int value){\n deck.remove(value);\n }", "public void remove(Card card) {\r\n\t\tcards.remove(card);\r\n\t}", "public void removeFromHand(int card) {\n\t\tString [] temp = new String[hand.length];//make new temp array for hand\n\t\tint internalCounter = 0;//keeps track of next available index\n\t\tfor(int i = 0; i < hand.length; ++i){//loop through whole hand\n\t\t if( i != card ){//if the current card is not equal to the desired card\n\t\t temp[internalCounter] = hand[i];//add the current card to the array in the lowest available slot\n\t\t internalCounter++;//increase available index\n\t\t }\n\t\t}\n\t\ttemp[temp.length-1] = null;//make last slot null\n\t\tString [] temp2 = new String[temp.length-1];//new temp array to shorten the hand to exclude null entries\n\t\tfor (int j = 0; j < temp2.length; j++) {//loop through the new temp array\n\t\t\tif (temp[j] != null) {//if the slot in the first temp array isn't null\n\t\t\t\ttemp2[j] = temp[j];//add the card to the shortened temp array\n\t\t\t}\n\t\t}\n\t\thand = temp2;//make the hand equal to the shortened hand\n\t}", "public TrainCard usedCard(){\n TrainCard removedCard = cardDeck.remove(0);\n return removedCard;\n }", "public static void deal () {\n //Create a new instance of the Deck class called thisDeck.\n //This is the deck that we will deal from and remove cards from as we go.\n ArrayList<String> thisDeck = Deck.createDeck();\n //Create another new instance of the Deck class called unchangedDeck.\n //This is the deck we will use to check card values. It will remain unchanged.\n ArrayList<String> unchangedDeck = Deck.createDeck();\n\n //Create a variable called numberOfPlayers that we will set to the number entered by the user in the\n //getNumberOfPlayers method.\n int numberOfPlayers = getNumberOfPlayers();\n //Create a new array list where we will store our list of players.\n ArrayList<String> playerPositions = new ArrayList<>();\n playerPositions.add(\"Player One\");\n playerPositions.add(\"Player Two\");\n playerPositions.add(\"Player Three\");\n playerPositions.add(\"Player Four\");\n playerPositions.add(\"Player Five\");\n playerPositions.add(\"Player Six\");\n\n //Create an array called dealtCards where we will track the value of the cards that have been dealt.\n int dealtCards[] = {0, 0, 0, 0, 0, 0};\n\n //This loop will deal cards. We want to run it a number of times equal to the number of players.\n for (int i = 0; i < numberOfPlayers; i++) {\n \n //Create a new instance of the Random class called random that will allow us to select a random\n //index from the deck array list.\n Random random = new Random();\n \n //Create a variable called index that will select a random index from our deck array list.\n int index = random.nextInt(thisDeck.size());\n\n //Create a String variable that will represent a random card. Set it to whichever card is in the position\n //that we just randomly chose in the deck array list.\n String randomCard = thisDeck.get(index);\n\n //Create an int variable that will represent the absolute position of the card in a complete deck.\n //We need to know its original position to calculate its value because we are going to be removing cards\n //from thisDeck. Therefore we set it to its original index in the unchangedDeck array list - its index\n //will represent its score. twoOfSpades = 0, threeOfSpades = 1, aceOfHearts = 52, etc.\n int randomCardPosition = unchangedDeck.indexOf(randomCard);\n\n //Print each players card. Since we started our loop at 0, the player number will end up being i+1.\n System.out.println(\"Player \" + (i + 1) + \"'s card is: \" + randomCard);\n\n //Set the value of dealtCards in the current position to the score of our random card.\n dealtCards[i] = randomCardPosition;\n\n //Remove the card we chose from our deck so that it can not be dealt again.\n thisDeck.remove(randomCard);\n }\n\n //Create a new array called staticDealtCards that will track the starting position of each of our cards.\n //We need to do this because we are going to sort the dealtCards array to figure out a winner, but we need to\n //remember which score belongs to which player.\n int[] staticDealtCards = {0, 0, 0, 0, 0, 0};\n\n //Create a loop that will run a number of times equal to the length of our staticDealtCards array.\n //This will set our staticDealtCards array to the same numbers as our dealtCards array.\n for (int m = 0; m < staticDealtCards.length; m++) {\n staticDealtCards[m] = dealtCards[m];\n }\n\n //This is a bubble sort that will sort our dealtCards array from smallest to largest.\n for (int y = 0; y < dealtCards.length - 1; y++) {\n for (int z = 0; z < dealtCards.length - y - 1; z++) {\n if (dealtCards[z] > dealtCards[z + 1]) {\n int newPosition = dealtCards[z];\n dealtCards[z] = dealtCards[z + 1];\n dealtCards[z + 1] = newPosition;\n }\n }\n }\n\n //Create a new variable called winningCard that will equal the largest number in the array (which is always\n //going to be the number in the 5th position after our sort).\n int winningCard = dealtCards[5];\n\n //Create a loop that will look through all of our dealt cards until it finds the one that is equal to our winning card.\n //Then we will print the winning player and the winning card.\n for (int n = 0; n < dealtCards.length; n++) {\n //If the user was never able to enter a number between 2 and 6 (for example if they entered a character or string,\n //numberOfPlayers will still be set to 0 and we will not have a winner so we don't want to run this loop in that case.\n if (numberOfPlayers < 2) {\n break;\n }\n if (winningCard == staticDealtCards[n]) {\n System.out.println(\"The winner is \" + playerPositions.get(n) + \" with the \" + unchangedDeck.get(winningCard) + \".\");\n }\n }\n\n }", "public Card pop(){\r\n Card temp = cards.get(0);\r\n cards.remove(0);\r\n deckSize--;\r\n return temp;\r\n }", "public void findAndRemoveCard(Card c){\n\t\tboolean b = myCards.remove(c);\n//\t\tSystem.out.println(\"mycards size\" + myCards.size() + \"and removed was \" + b);\n\t\treturn;\n\t}", "public void addCard(Card card) {\n myCards.add(card);\n cardNumber = myCards.size();// reset the number of cards\n }", "private void deal() {\n int index = 0;\n while (!deck.isEmpty()) {\n Card card = deck.get(0);\n players.get(index).receiveCard(card);\n deck.remove(0);\n if (index < players.size() - 1) {\n index++;\n } else {\n index = 0;\n }\n }\n }", "public void RandomizeTheDeck() {\r\n ArrayList<ArrayList<Card>> alalCopy = new ArrayList<>();\r\n int i, iRand;\r\n Random rand = new Random();\r\n \r\n // remove deck to the copy\r\n for( i=0; i<104; i++) {\r\n alalCopy.add( alalSets.get(i) );\r\n }\r\n alalSets.clear();\r\n \r\n // randomly copy them back as copy size gets smaller\r\n for( i=104; i>0; i-- ) {\r\n iRand = (int)rand.nextInt(i);\r\n alalSets.add( alalCopy.remove(iRand) );\r\n }\r\n }", "public void cardWasUsed(Card card) {\r\n\t\tthis.hand.remove(card);\r\n\t\tthis.discard.add(card);\r\n\t}", "public Card dealCard() {\n if (deck.size() == 52) {\n shuffle();\n }\n Card temp;\n temp = deck.get(0);\n remove(0);\n return temp;\n }", "public void addToDiscardPile(Card card) {\n CardSprite sprite = card.getSprite();\n discardPile.add(sprite);\n gameDrawer.removeFromDrawList(sprite);\n gameDrawer.addToDrawList(sprite);\n }", "private void mixDeck() {\n Random rnd = new Random();\n ArrayList<UnoCard> mixed = new ArrayList<UnoCard>();\n\n // mix it!\n for(int i = cards.size()-1; i>0;i--) {\n int index = rnd.nextInt(i+1);\n UnoCard helper = cards.get(index);\n cards.remove(index);\n mixed.add(helper);\n }\n\n // delete current arrayList\n cards = null;\n // set mixed cards to original carddeck\n cards = mixed;\n\n // paint cards again because order has changed\n for(UnoCard c : cards) {\n c.setContainer(deckPos);\n }\n\n }", "public void removeCard(UnoCard cardToRemove){\n for (UnoCard c : this.cards){\n if (c.getName().equals(cardToRemove.getName())){\n Log.d(\"Removed Card:\", c.getName());\n this.cards.remove(c);\n break;\n }\n }\n }", "public CardCollection destroyAllCards() ;", "boolean canBeRemoved(int cardIndex);", "public Deck() {\n cards = new LinkedList<Integer>();\n removedCards = new LinkedList<Integer>();\n \n int i, j;\n for (i = MIN_VALUE; i <= MAX_VALUE; i++) {\n for (j = 0; j <= NUM_SUITS; j++) {\n cards.add(i);\n }\n }\n }", "private static boolean handOutCards(Player player){\r\n\t\t/* \r\n\t\t * Seleccionamos una de las cartas restantes\r\n\t\t * en la baraja de forma aleatoria y se la \r\n\t\t * pasamos a la mano del jugador\r\n\t\t */\r\n\t\tint index;\r\n\r\n\t\t// Comprobamos las cartas restantes en la baraja\r\n\t\tif(deckOfCards.size() <= 0 || deckOfCards == null){\r\n\t\t\tSystem.err.println(\"No hay cartas para repartir.\");\r\n\t\t\treturn false;\r\n\t\t}else{\r\n\t\t\t// Seleccionamos una de las cartas de la baraja\r\n\t\t\tindex = (int) (Math.random()*deckOfCards.size());\r\n\t\t\tplayer.addCard(deckOfCards.get(index)); // Agregamos la carta a la mano del jugador\r\n\t\t\t// Eliminamos la carta de la baraja y lo mostramos en la consola\r\n\t\t\tSystem.out.println(player.getName() + \" recibió una carta con valor de \" + deckOfCards.remove(index).getValue() + \" puntos\"); \r\n\t\t}\r\n\t\treturn true;\r\n\t}", "protected void removeChosenCard(Board gameBoard, Card chosenCard) {\n Iterator<Card> it = myCards.iterator();\n Card tempgroundCard= gameBoard.getGroundCard();\n while (it.hasNext()) {\n Card tempCard = it.next();\n if (tempCard.equals(chosenCard)) {\n it.remove();\n // Card tempgroundCard=gameBoard.getGroundCard;\n if (tempgroundCard instanceof WildDrawCard\n || tempgroundCard instanceof ColorChangeCard) {// if the last ground card was Wild set\n // it black again\n gameBoard.getGroundCard().setColor(0);\n }\n gameBoard.setGroundCard(tempCard);\n gameBoard.addToStorage(tempCard);\n if (!(tempCard instanceof DrawCard) && !(tempCard instanceof WildDrawCard)) { // if the Card was't Draw\n gameBoard.resetDraw();\n }\n cardNumber = myCards.size();\n break;\n }\n }\n }", "public void applyCard(Card card, String user){\n if (user.equals(\"player\")){\n if (card == null){\n //System.out.println(\"No card in this slot\");\n //System.out.println(\"Size of tempDeck: \" + playerTempDeck.size());\n } else{\n if(playerMana >= card.getManaCost()){\n updateMana(\"player\", -card.getManaCost());\n //Check if has enough gold, too. Make free cards have a worth of gold = 0.\n //playerGoldAmount -= card.getGoldCost(); //------------------------------------------------Implement this once it can be tested.\n\n if(card.getEffect().contains(\"A\")){ //attack\n //looks long, but it finds the index of the Attack symbol (\"A\") and adds one to it, so it'll find the value 5 if the input is \"A5\", anywhere on the string.\n //Allows for things such as \"A4D1\" in theory.\n updateHealth(\"enemy\", -Character.getNumericValue(card.getEffect().charAt(card.getEffect().indexOf(\"A\") + 1)), true);\n }\n if(card.getEffect().contains(\"D\")) { //Defend\n updateDefence(\"player\", Character.getNumericValue(card.getEffect().charAt(card.getEffect().indexOf(\"D\") + 1)));\n }\n\n //Discard the card just used, put into discarded pile.\n Integer index = playerHand.indexOf(card);\n discardedCards.add(card);\n //System.out.println(\"Current index is: \" + index);\n //System.out.println(\"At that index was: \" + playerHand.get(index));\n playerHand.set(index, null);\n\n\n //System.out.println(\"The deck is currently: \" + playerHand.toString());\n //playerHand.remove(card); //Doesn't work, shortens the size all together.\n drawCard(index);\n }\n }\n }\n\n else if (user.equals(\"enemy\")){\n if(enemyMana >= card.getManaCost()){\n updateMana(\"enemy\", -card.getManaCost());\n if(card.getEffect().contains(\"A\")){\n updateHealth(\"player\", -Character.getNumericValue(card.getEffect().charAt(card.getEffect().indexOf(\"A\") + 1)), true);\n }\n if(card.getEffect().contains(\"D\")) {\n updateDefence(\"enemy\", Character.getNumericValue(card.getEffect().charAt(card.getEffect().indexOf(\"D\") + 1)));\n }\n }\n }\n }", "public synchronized void collectCard(Card card){\n try{\r\n List<Player> pList = Arrays.asList(players);\r\n \r\n Iterator<Player> pIter = pList.iterator();\r\n while(pIter.hasNext()){\r\n //for(Player player: players){\r\n Player player = pIter.next();\r\n \r\n \r\n if(player == null){\r\n continue;\r\n }\r\n System.out.println(\"Collect\");\r\n \r\n if(player.removeCard(card)){\r\n player.getRemoved().clear();\r\n \r\n getCardsPlayed().add(card);\r\n getCardsInPlay().remove(card);\r\n }\r\n }\r\n }catch(Exception ex){\r\n System.out.println(\"Collect ex: \" + ex);\r\n }\r\n \r\n }", "public void clearHand(){\n\t\tthis.hand = new ArrayList<Card>();\n\t}", "public void reset() {\r\n setGiftCardList(new ArrayList());\r\n for (int i = 0; i < getMaxNumGiftCards(); i++) {\r\n addBlankGiftCard(getGiftCardList());\r\n }\r\n \r\n setGiftCardTempList(new ArrayList());\r\n for (int i = 0; i < getMaxNumGiftCards(); i++) {\r\n addBlankGiftCard(getGiftCardTempList());\r\n }\r\n }", "private void reshuffleDiscardPile() {\n ICard topCard = discardPile.pop();\n\n drawPile.addAll(discardPile);\n Collections.shuffle(drawPile, rng);\n\n discardPile.clear();\n discardPile.add(topCard);\n }", "public void discardAll()\n\t{\n\t\thand = new Card[12];\n\t\tnumCards = 0;\n\t}", "public void removeCard(int index) {\n cards.remove(index);\n }", "private void shuffleDeck()\r\n {\n cardList = new ArrayList<Card>(deck);\r\n // shuffle the deck of cards using the ArrayList\r\n Collections.shuffle(getCardList());\r\n // convert it back to a HashSet\r\n deck = new HashSet<Card>(getCardList());\r\n }", "private void addCardToDeck(Card card) {\n\t\tdeck.add(card);\n\t}", "public void RefillDeck()\n\t{\n\t\tRefillDeck(false);\n\t}", "public void reset() {\r\n\r\n for ( Card card : cards ) {\r\n if ( card.isFaceUp() ) {\r\n card.toggleFace( true );\r\n }\r\n }\r\n Collections.shuffle( cards );\r\n\r\n this.undoStack = new ArrayList<>();\r\n\r\n this.moveCount = 0;\r\n\r\n announce( null );\r\n }", "public void otherDiscard(int pos, GameCard card){\n this.infoTokens += 1;\n int count = this.discardPile.getOrDefault(card.toString(), 0);\n this.discardPile.put(card.toString(), count + 1);\n playerCardsList.get(turnCounter % playerCardsList.size()).set(pos, card);\n notifyObservors();\n }", "private void updateLastCardDiscarded(){\r\n\t\tint x = 0;\r\n\t\twhile(this != game.getPlayer(x++)){} // find the nextPlayer\r\n\t\tx = x % game.getNumberOfPlayers();\r\n\t\tnextPlayer = game.getPlayer(x);\r\n\t\t\r\n\t\tif(latestRound != game.getRoundNumber()){ // if it's a new Round, reset\r\n\t\t\tpickedUpCards = new ArrayList<Card>();\r\n\t\t\tlastCardDiscarded = null;\r\n\t\t\tlatestRound = game.getRoundNumber();\r\n\t\t\t\r\n\t\t\tfor(int y = 0; y < game.getNumberOfPlayers(); y++){ // ?????\r\n\t\t\t\tif(game.getPlayer(y) != this && \r\n\t\t\t\t\t\t(getScore() >= game.getPlayer(y).getScore() || getPhase() > game.getPlayer(y).getPhase())){//????\r\n\t\t\t\t\tsetName(oldName);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsetName(oldName + \"is#WINNING\"); // ?????\r\n\t\t}else if(lastCardDiscarded != null && Configuration.getTypeRequired(nextPlayer.getPhase(), 0) == Configuration.SET_PHASE){\r\n\t\t\tif(nextPlayer.drewFromDiscard())\r\n\t\t\t\tpickedUpCards.add(lastCardDiscarded); // add the card to picked up card if it was picked up \r\n\t\t}\r\n\t}", "public void AddCardToComputerHand(){\n //Add the first card to the computer\n handComputer.add(deck.get(0));\n\n //Remove card from deck\n deck.remove(0);\n }", "@Override\n\tpublic ServerResponse movesDiscardCards(DiscardedCards cards) {\n\t\treturn null;\n\t}", "private void deal()\n { \n for(int i = 1; i <= dealer.NUM_CARDS; i++)\n {\n dw.enqueue(((Card)dealer.dequeue())); \n i++;\n de.enqueue(((Card)dealer.dequeue())); \n i++;\n }\n }", "public void addToCollected(PlayingCard card){\n\t\tcollected.add(card);\t\t\n\t}", "public Card deal()\r\n\t{\r\n\t\tCard card = deck.remove(0);\r\n\t\treturn card;\r\n\t}", "public SpoonsCard dealCard() {\r\n\t SpoonsCard card = deck.get(0);\r\n\t deck.remove(0);\r\n\t return card;\r\n }", "public void pick(Card card, Deck deck) throws DeckSizeException\n {\n add(card);\n deck.remove(card);\n }", "public void cashIn() {\r\n\t\t//Updates the troops to deploy text\r\n\t\ttroopsToDeploy.setText(\"Troops to Deploy: \" + troopSpendage);\r\n\t\t\r\n\t\t//Only delete cards while there are cards to delete\r\n\t\twhile (selectedCards.size() > 0) {\r\n\t\t\t//Loop for the amount of cards in the player's hand\r\n\t\t\tfor (int x = 0; x < currentCards.size(); x++) {\r\n\t\t\t\t//Only loop while neither arrayList is empty - catch for when cards have been deleted\r\n\t\t\t\tif (selectedCards.size() > 0 && currentCards.size() > 0) {\r\n\t\t\t\t\t//if this card in the player's hand is selected, it is being cashed-in. Therefore, it must be removed from the player's hand\r\n\t\t\t\t\tif (currentCards.get(x) == selectedCards.get(0)) {\r\n\t\t\t\t\t\t//Remove the card from the player, remove the card from having been selected, and add the card to the used cards araryList\r\n\t\t\t\t\t\tcurrentCards.remove(x);\r\n\t\t\t\t\t\tusedCards.add(selectedCards.get(0));\r\n\t\t\t\t\t\tselectedCards.remove(0);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Sets the player's cards as the updated current cards\r\n\t\tplayers.get(turnCounter).setCards(currentCards);\r\n\t\t// Refresh the cards images and the selectedCard background images\r\n\t\tfor (int x = 0; x < 5; x++) {\r\n\t\t\tcardPics[x].setIcon(null);\r\n\t\t\tif (cardPics[x].getMouseListeners() != null)\r\n\t\t\t\tcardPics[x].removeMouseListener(mch);\r\n\t\t\tcardSelectedPics[x].setVisible(false);\r\n\t\t\tcardSelectedPics[x].setBackground(players.get(turnCounter).getColor());\r\n\t\t}\r\n\r\n\t\t// Draw the player's cards\r\n\t\tg.setColor(Color.WHITE);\r\n\t\tg.setFont(new Font(\"Impact\", Font.BOLD, 20));\r\n\t\tg.drawString(\"Player \" + (turnCounter + 1) + \"'s Cards\", 105, 750);\r\n\t\tBufferedImage img = null;\r\n\t\t//Add an image to each card label, for as many cards as the player owns\r\n\t\tfor (int y = 0; y < players.get(turnCounter).getCards().size(); y++) {\r\n\t\t\tcardPics[y].addMouseListener(mch);\r\n\t\t\tcardPics[y].setEnabled(true);\r\n\t\t\ttry {\r\n\t\t\t\timg = ImageIO.read(\r\n\t\t\t\t\t\t//read in the card from a seperate resources file\r\n\t\t\t\t\t\tnew File (\"Ressources/\" + \"Cards/\" + players.get(turnCounter).getCards().get(y).getCountry() + \"Card.png\"));\r\n\t\t\t} catch (IOException e1) {\r\n\t\t\t\t// Catch\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\t\t\tcardPics[y].setIcon(new ImageIcon(recolorCard(img, y)));\r\n\t\t}\r\n\t\t//Disable and hide the cash-in button after use since it can only be used once per turn. \r\n\t\tcashInButton.setVisible(false);\r\n\t\t//Disable the phase button since the player must spend bonus troops before moving on.\r\n\t\tphaseButton.setEnabled(false);\r\n\t}", "public void remove(Card card) {\n if (!myTurn()) {\n return;\n }\n if (handPile.contains(card)) {\n //history.add(new CardAction(card, \"Remove: \" + card.getName()));\n handPile.remove(card);\n }\n }", "public void shuffle() {\n List<Card> shuffledCards = new ArrayList<>(52);\n while (cards.size() > 0) {\n int index = random.nextInt(cards.size());\n shuffledCards.add(cards.remove(index));\n }\n cards = shuffledCards;\n }", "public void addToDeck(ArrayList<Card> cards)\r\n\t{\r\n\t\tfor (int i = 0; i < cards.size(); i++)\r\n\t\t{\r\n\t\t\tdeck.add(cards.get(i));\r\n\t\t}\r\n\t}", "@Override\n public void removeCard(int i) {\n this.cards.remove(i);\n }", "public static void deal_singel_card(Deck deck, ArrayList<String> playerDeck)\n\t{\n\t\tint cardidx;\n\t\tcardidx = (int)(Math.random() * deck.getTotalCards());\n\t\tplayerDeck.add(deck.getCard(cardidx));\n\t\tdeck.removeCard(cardidx);\n\t\tdeck.setTotalCards(deck.getTotalCards() - 1);\n\t}", "public List<Integer> dealCards(int numCards) {\n int[] hand = new int[numCards];\n Random rand = new Random();\n int index, chosenCard;\n \n for (int i = 0; i < numCards; i++) {\n index = rand.nextInt(cards.size());\n chosenCard = cards.remove(index);\n \n hand[i] = chosenCard;\n removedCards.add(chosenCard);\n }\n \n Arrays.sort(hand);\n return toList(hand);\n }", "public Card drawFromDeck() {\n\t\treturn cards.remove(0);\n\t}", "public void deleteAllCards()\n\t{\n\t\tcards.clear();\n\t\t\n\t\t// Update the views\n\t\tsyncCardsWithViews();\n\t\t\n\t}", "public void setPlayerDeckByCardType(List<CardModel> cards, EnumHandler.CardType cardType, int numbeOfUnits) {\n ArrayList<CardModel> playerCards=playerModel.getDeck();\n ArrayList<CardModel> playerCardsToRemove=new ArrayList<CardModel>();\n int cardCounter=0;\n if(cards!=null){\n\n for (int i = 0; i < playerCards.size(); i++){\n if(playerCards.get(i).getCardType() == cardType && cardCounter<numbeOfUnits){\n playerCardsToRemove.add(playerCards.get(i));\n cardCounter=cardCounter+1;\n }\n }\n if(playerCardsToRemove.size() > 0) {\n playerCards.removeAll(playerCardsToRemove);\n }\n cardCounter=0;\n }\n\n\n /// CardModel card = cards.stream().filter(x -> x.getCardType().equals(cardType)).findFirst().get();\n// if (card != null) {\n// //card.setNumberOfCards(card.getNumberOfCards() - numbeOfUnits);\n// }\n\n }", "void shuffleDeck() {\n\t\tfor(int index = 0; index < this.getNumberOfCards(); index++) {\n\t\t\tint randomNumber = index + (int)(Math.random() * (this.getNumberOfCards() - index));\n\t\t\tCard temp = this.cardsInDeck[randomNumber];\n\t\t\tthis.cardsInDeck[randomNumber] = this.cardsInDeck[index];\n\t\t\tthis.cardsInDeck[index] = temp;\n\t\t}\n\t}", "public void deal() {\r\n\t\tfor(Player p : players) {\r\n\t\t\tp.recieveCards();\r\n\t\t}\r\n\t\t/*Deals the cards onto the board, 5 cards */\r\n\t\tfor(int i = 0; i < 5; i++) {\r\n\t\t\tboard.add(gameDeck.deal());\r\n\t\t}\r\n\t}", "public CardGao dealCard()\r\n {\r\n return cards.get(top--);\r\n\r\n }", "public void shuffle(){\n\n // resetting the int counters\n nextCard = 0;\n nextDiscardedPlace = 0;\n discardPile = new PlayingCard[Constants.DECK_SIZE];\n\n PlayingCard temp = null;\n Random rand = new Random();\n\n for(int i = 0; i < MAX_SHUFFLE; i++) {\n int pos1 = rand.nextInt(Constants.DECK_SIZE);\n int pos2 = rand.nextInt(Constants.DECK_SIZE);\n\n temp = deck[pos1];\n deck[pos1] = deck[pos2];\n deck[pos2] = temp;\n }\n }", "public void dealCards() {\n for(int i=0; i < 5; i++) { \n for(PokerPlayer player : players) {\n player.takeCard(deck.draw());\n }\n }\n }", "private void removeCard() {\n\t\tint sic_idHolder; // declares sic_idHolder\n\t\t\n\t\tSystem.out.println(\"Please enter the SIC ID number you'd like to remove:\");\n\t\tsic_idHolder = scan.nextInt(); // prompts user to input sic_idHolder\n\t\tscan.nextLine();\n\t\t\n\t\tinventoryObject.removeStockIndexCard(sic_idHolder); //calls removeStockIndexCard from InventoryManagement\n\t\tgetUserInfo();\n\t}", "public void dealCard(Player player){\n TrainCard removedCard = draw();\n player.addTrainCard(removedCard);\n }", "public void hideCard()\n {\n ArrayList<Card> superCards = super.removeCards();\n if (hiddenCard != null) {\n super.addCard(Card.getEmptyCard());\n super.addCards(superCards.subList(1, superCards.size()));\n }\n hidden = true;\n }", "@Override\n public void moveAllToShoe(ArrayList<Card> cardsToAdd) {\n this.cards.addAll(cardsToAdd);\n }", "public Card drawCard(){\n if(size() == 0)\n throw new IndexOutOfBoundsException();\n Card card = cards.get(cards.size() - 1);\n cards.remove(card);\n return card;\n }", "public void draw() {\n\t\t//check letters in deck\n\t\tif(deck.size() == 0) {\n\t\t\treturn;\n\t\t}\n\t\t// remove letter from deck\n\t\tLetter temp = deck.remove();\n\t\t// add letter to hand\n\t\thand.add(temp);\n\t}", "public void putCard(Cards cards) {\n playedCards.add(cards);\n }", "public void clearHand() {\n cards.clear();\n aceCount = 0;\n setSize(0);\n }", "public void emptyDeck() {\n\t\twhile (!this.deck.empty()) {\n\t\t\tdeck.pop();\n\t\t}\n\t}", "public void reset(){\n\n deck = new PlayingCard[52];\n String[] cardTypes = {\"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"J\", \"Q\", \"K\"};\n\n // initialise Aces separately for a cleaner loop later\n deck[0] = new PlayingCard(\"A\", PlayingCard.HEARTS, 1, 14);\n deck[1] = new PlayingCard(\"A\", PlayingCard.DIAMONDS, 1, 14);\n deck[2] = new PlayingCard(\"A\", PlayingCard.CLUBS, 1, 14);\n deck[3] = new PlayingCard(\"A\", PlayingCard.SPADES, 1, 14);\n\n int j = 0;\n\n for(int i = 0; i < Constants.SUIT_SIZE-1; ++i) {\n\n j = (i+1) * 4; // used to be able to declare 4 cards at once without overwriting\n deck[j] = new PlayingCard(cardTypes[i], PlayingCard.HEARTS, i + 2, i + 2);\n deck[j+1] = (new PlayingCard(cardTypes[i], PlayingCard.CLUBS, i + 2, i + 2));\n deck[j+2] = new PlayingCard(cardTypes[i], PlayingCard.DIAMONDS, i + 2, i + 2);\n deck[j+3] = new PlayingCard(cardTypes[i], PlayingCard.SPADES, i + 2, i + 2);\n }\n\n this.shuffle();\n }", "private void discardRestrictedCards()\n\t{\n\t\tif (playerList.size() == 2)\n\t\t{\n\t\t\tfor(Card card : restrictedCard2PlayerList)\n\t\t\t{\n\t\t\t\tswitch (card.getType())\n\t\t\t\t{\n\t\t\t\t\tcase GreenPlayerCard:\n\t\t\t\t\tcase BrownPlayerCard:\n\t\t\t\t\t\tCard playerCardMatch = board.getPlayerCardDeck().pickCardByID(card.getId());\n\t\t\t\t\t\tif (playerCardMatch != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tboard.getDiscardDeck().addCard(playerCardMatch);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase CityAreaCard:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase PersonalityCard:\n\t\t\t\t\t\tCard personalityCardMatch = board.getPersonalityCardDeck().pickCardByID(card.getId());\n\t\t\t\t\t\tif (personalityCardMatch != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tboard.getDiscardDeck().addCard(personalityCardMatch);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase RandomEventCard:\n\t\t\t\t\t\tCard randomEventCardMatch = board.getRandomEventCardDeck().pickCardByID(card.getId());\n\t\t\t\t\t\tif (randomEventCardMatch != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tboard.getDiscardDeck().addCard(randomEventCardMatch);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testRemoveCard() {\n d_gameData.getD_playerList().get(1).addCard(GameCard.BOMB);\n d_gameData.getD_playerList().get(1).removeCard(GameCard.BOMB);\n assertEquals(false, d_gameData.getD_playerList().get(1).getD_cards().contains(GameCard.BOMB));\n }", "public void RemoveCardFromComputer(int value){\n handComputer.remove(value);\n }", "public void clearHand() {\n for (Component c : cardPane.getComponents()) {\n if (c instanceof Card) {\n cardPane.remove(c); //Removes all Cards from card panel\n }\n }\n busted = false; //Hand not busted\n values.clear(); //Removes all Integers from values\n values.add(0); //Sets initial value to 0\n updateValue(); //Updates value\n repaint(); //Redraws hand\n }", "public void draw(Deck commingFrom){\n this.cards.add(commingFrom.getCard(0));\n commingFrom.removeCard(0);\n }" ]
[ "0.71461535", "0.7122315", "0.70685464", "0.70261717", "0.7005545", "0.699466", "0.694928", "0.6936172", "0.6877577", "0.684363", "0.6770923", "0.6744709", "0.67427444", "0.6723579", "0.6688415", "0.66599715", "0.66041344", "0.6599623", "0.65968585", "0.6594724", "0.65830964", "0.6568987", "0.6554896", "0.6546606", "0.6531161", "0.65224904", "0.6509579", "0.64583236", "0.642812", "0.64138025", "0.63596684", "0.63161594", "0.63144237", "0.63092184", "0.63006026", "0.629885", "0.62930447", "0.6239639", "0.6219937", "0.6206793", "0.6197259", "0.61957353", "0.6178521", "0.6174145", "0.6167534", "0.61596143", "0.61261886", "0.61203593", "0.61140627", "0.6098351", "0.60949117", "0.6093275", "0.6089382", "0.6087492", "0.60863185", "0.607558", "0.605521", "0.60515374", "0.6048484", "0.6046186", "0.60317147", "0.6031473", "0.6025329", "0.6025221", "0.6023278", "0.5993268", "0.5989919", "0.5987174", "0.59732413", "0.5966795", "0.59570605", "0.5949009", "0.5940759", "0.59395176", "0.59331626", "0.59287107", "0.59267026", "0.5922943", "0.5918833", "0.5910695", "0.5901418", "0.58966804", "0.5888893", "0.5884247", "0.58834624", "0.58748543", "0.5874336", "0.58697104", "0.5855151", "0.58439034", "0.58350503", "0.5834161", "0.5827265", "0.5825894", "0.5821341", "0.58188576", "0.580916", "0.5791777", "0.57901424", "0.5771257" ]
0.78396875
0
Returns a comma delimited representation of the cards. Converts the card values to symbols.
public static String cardsToString(List<Integer> cards) { if (cards.size() == 0) { return ""; } StringBuilder out = new StringBuilder(); out.append(toSymbol(cards.get(0))); for (int i = 1; i < cards.size(); i++) { out.append("," + toSymbol(cards.get(i))); } return out.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString(){\r\n\t\t\r\n\t\tString result = \"\";\r\n\t\tfor (int i = 0; i < this.cardCount()-1; i++)\r\n\t\t\tresult += this.getCard(i).toString() + \", \";\r\n\t\t\r\n\t\treturn result + this.getCard(this.cardCount()-1).toString() + \" has Blackjack value \" + this.value();\r\n\t}", "public String toString() {\n String handString = \"( \";\n for (int i = 0; i < this.numCards; i++) {\n handString += this.myCards[i].toString();\n if (i != this.numCards - 1)\n handString += \", \";\n }\n handString += \" )\";\n return handString;\n }", "public String toString() {\n // return \"Card {suit: \"+getSuitString()+\", rank: \"+getRankString()+\"}\";\n return \"{\"+getSuitString()+\",\"+getRankString()+\"}\";\n }", "@Override\n public String toString() {\n String hand = \"\";\n for (int i = 0; i < cards.size(); i++) {\n hand += \"(\"+(i+1)+\")\"+cards.get(i).toString() + \", \";\n }\n return hand;\n }", "public static String cardsToString(int[] cards){\n //check for null array\n if(cards == null){\n return \"[]\";\n }\n //string buffer with open brackets\n StringBuffer sb = new StringBuffer(\"[\");\n //add the individual string cards to the string buffer\n for(int i = 0; i < cards.length; i++){\n sb.append(cardToString(cards[i]));\n //add a comma after all of the cards except the last one\n if(i != cards.length - 1){\n sb.append(\", \");\n }\n }\n //add close bracket\n sb.append(\"]\");\n return sb.toString();\n }", "public String toString() {\n String cardListOutput = \"\";\n for (Card aCard : this.cards) {\n cardListOutput += aCard.toString() + \"\\n\";\n }\n return cardListOutput;\n }", "public void printCard() {\r\n String print = \"[\";\r\n for (Card card : cards) {\r\n print += card.toString();\r\n print += \",\";\r\n }\r\n\r\n print = print.substring(0, print.length() - 1);\r\n print += \"]\";\r\n print += \" Score = \";\r\n print += score();\r\n\r\n System.out.println(print);\r\n }", "public String getCards()\r\n\t{\r\n\t\t// creates a larger string which will have the cards appended to it\r\n\t\tString cardList = \"\";\r\n\t\t\r\n\t\t// adds all cards currently in hand\r\n\t\tfor (int i = 0; i < handCount; i++)\r\n\t\t{\r\n\t\t\tcardList = cardList + pCards[i] + \" \";\r\n\t\t}\r\n\t\t\r\n\t\treturn cardList;\r\n\t}", "public String toString()\r\n {\r\n StringBuilder sBuilder = new StringBuilder();\r\n sBuilder.append(\"Hand: \");\r\n sBuilder.append(\"\\n\");\r\n if (numCards == 0)\r\n {\r\n sBuilder.append(\"Out of Cards\");\r\n return sBuilder.toString();\r\n }\r\n for (int i = 0; i < numCards; i++)\r\n {\r\n if (myCards[i] != null)\r\n {\r\n if (i != numCards - 1)\r\n {\r\n if ((i + 1) % 10 == 0 && i != 0)\r\n {\r\n sBuilder.append(myCards[i].toString());\r\n sBuilder.append(\"\\n\");\r\n } else\r\n {\r\n {\r\n sBuilder.append(myCards[i].toString());\r\n sBuilder.append(\", \");\r\n }\r\n }\r\n\r\n } else\r\n {\r\n sBuilder.append(myCards[i].toString());\r\n }\r\n }\r\n }\r\n return sBuilder.toString();\r\n }", "public String toString(){\n String handString = \"\";\n int i = 1;\n sort();\n for(Card c: cards){\n handString += Integer.toString(i) + \": \" + c + \"\\n\";\n i++;\n }\n handString = handString.substring(0, handString.length() - 1);\n return handString;\n }", "public String toString(){\n return \"Hand: \" + cards; \n }", "public String toString(){\n String card = null; \n //clubs\n if(suit==1){\n \tcard = \"c\" + Integer.toString(value);\n }\n //diamonds\n if(suit==2){\n \tcard = \"d\" + Integer.toString(value);\n }\n //hearts\n if(suit==3){\n \tcard = \"h\" + Integer.toString(value);\n }\n //spades\n if(suit==4){\n \tcard = \"s\" + Integer.toString(value);\n }\n return card; \n\t}", "@Override\n public String toString() {\n CardValue cardValue = new CardValue(value).invoke();\n\n // Change the value to the actual name when printing out\n // the card.\n\n return cardValue.getValueName() + \" of \" + suit;\n }", "public String showCards() {\n String message = \"[ \";\n for (Card card : personHand) {\n message += card + \" \";\n }\n message += \"]\";\n return message;\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn name + \" (Deck, \" + cards.size() + \" cards)\";\r\n\t}", "public String toString() {\n StringBuilder string = new StringBuilder();\n Iterator<E> i = iterator();\n if (!this.isEmpty()) {\n while (i.hasNext()) {\n string.append(i.next());\n if (i.hasNext()) {\n string.append(\", \");\n }\n }\n }\n return string.toString();\n }", "public String toString(){\n return String.valueOf(symbol);\n }", "public String toString() {\n\t\treturn String.format(\"%-6s %-8s\", pileNum, numOfCards) + card.toString();\n\t}", "public String displayCard()\n {\n card = \"\";\n \n switch(cardValue)\n {\n case 11:\n card+= \"J\";\n break;\n case 12:\n card+= \"Q\";\n break;\n case 13:\n card+= \"K\";\n break;\n case 14:\n card+= \"A\";\n break; \n default:\n card+= String.valueOf(cardValue); \n break;\n }\n \n switch(cardSuit){\n case 0:\n card+= \" of Clubs\";\n break;\n case 1:\n card+= \" of Diamonds\";\n break;\n case 2:\n card+= \" of Spades\";\n break;\n case 3:\n card+= \" of Hearts\";\n break;\n default:\n break;\n }\n \n return card;\n }", "@Override\n\tpublic String toString() {\n\t\tString[] possibleSymbols = getPossibleSymbols();\n\t\tif (possibleSymbols.length == 1) {\n\t\t\treturn possibleSymbols[0];\n\t\t} else {\n\t\t\treturn Arrays.toString(possibleSymbols);\n\t\t}\n\t}", "public String toString() {\n return \"The card has \" + this.balance + \" euros\";\n }", "@Override\r\n public String toString(){\n StringBuilder displayCard = new StringBuilder();\r\n \r\n if(rank==11)\r\n {\r\n displayCard.append(\"Jack\");\r\n }\r\n else if(rank==12)\r\n {\r\n displayCard.append(\"Queen\");\r\n }\r\n else if(rank == 13)\r\n {\r\n displayCard.append(\"King\");\r\n }\r\n else if(rank==14)\r\n {\r\n displayCard.append(\"Ace\");\r\n }\r\n else\r\n {\r\n displayCard.append(rank);\r\n }\r\n displayCard.append(\" of \"); //setting the format of the output\r\n \r\n if(suit==0)\r\n {\r\n displayCard.append(\"Spades\");\r\n }\r\n else if(suit==1)\r\n {\r\n displayCard.append(\"Hearts\");\r\n }\r\n else if(suit==2)\r\n {\r\n displayCard.append(\"Clubs\");\r\n }\r\n else if(suit==3)\r\n {\r\n displayCard.append(\"Diamonds\");\r\n }\r\n //return the result of an entire cmombined string\r\n return displayCard.toString();\r\n }", "@Override\n public String toString() {\n StringBuilder stringBuilder = new StringBuilder(\"Hand contains:\\n\");\n for (Card c : cardList) {\n stringBuilder.append(c.getFace().toString());\n stringBuilder.append(\" of \");\n stringBuilder.append(c.getSuit().toString());\n stringBuilder.append(\"\\n\");\n }\n return stringBuilder.toString();\n }", "private String symbol(Cardtype c) {\n if (c == Cardtype.HEARTS) {\n return \"\\u2665\";\n } else if (c == Cardtype.DIAMONDS) {\n return \"\\u2666\";\n } else if (c == Cardtype.SPADES) {\n return \"\\u2660\";\n } else if (c == Cardtype.CLUBS) {\n return \"\\u2663\";\n } else {\n return \"\";\n }\n }", "public String handToString() {\n\t\tStringBuilder str = new StringBuilder();\n\t\tstr.append(\"Holding:\");\n\t\tfor (Card c: hand) {\t\t\t\n\t\t\tstr.append(\" \" + c.getName() + \",\");\n\t\t}\n\t\treturn str.toString().substring(0, str.toString().length()-1);\n\t}", "public static String cardsToCodeString(Card[] cards) {\n if (cards == null || cards.length == 0)\n throw new IllegalArgumentException(\"Can't stringify empty or null array\");\n\n String[] codes = new String[cards.length];\n\n for (int i = 0; i < cards.length; i++)\n codes[i] = cards[i].getCode();\n\n return String.join(\" \", codes);\n }", "public String toString()\n {\n return value + \" \" + suit;\n }", "public String toString()\n {\n\t// Local constants\n\n\t// Local variables\n\tString outputString = \"\";\n\n\t/************** Start getCardPicture Method *****************/\n\n\t// Add face value to output string\n\toutputString += \"FaceValue: \" + faceValue + \" | \";\n\n\t// Add suit to output string\n\toutputString += \"Suit : \" + suit + \" | \";\n\n\t// Add trueValue to output string\n\toutputString += \" TrueValue :\" + trueValue;\n\n\t// Return output string\n return outputString;\n\n }", "public String getCSVString() {\n return getId() + \",\" + noOfRounds + \",\" + caliber + \",\" + manufacturer + \",\" + price;\n }", "public String toString() {\n if (this.errorFlag == true)\n return \"[INVALID CARD]\";\n else\n return this.value + \" of \" + suit.toString();\n }", "public String toString(){\n String r = \"\";\n String s = \"\";\n switch(rank){\n case 1: r = \"Ace\"; break;\n case 2: r = \"Two\"; break;\n case 3: r = \"Three\"; break;\n case 4: r = \"Four\"; break;\n case 5: r = \"Five\"; break;\n case 6: r = \"Six\"; break;\n case 7: r = \"Seven\"; break;\n case 8: r = \"Eight\"; break;\n case 9: r = \"Nine\"; break;\n case 10: r = \"Ten\"; break;\n case 11: r = \"Jack\"; break; \n case 12: r = \"Queen\"; break;\n case 13: r = \"King\"; break;\n }\n \n switch(suit) {\n case 1: s = \" of Clubs\"; break;\n case 2: s = \" of Diamonds\"; break;\n case 3: s = \" of Hearts\"; break;\n case 4: s = \" of Spades\"; break;\n }\n return r + s; //returns the name of the card\n }", "protected String printCard(){\r\n return ranks[rank] + \" of \" + suits[suit];\r\n }", "public static String cardToString(int card){\n StringBuffer sb = new StringBuffer(\"\");\n //add the suit of the card\n //convert the suit number into letter\n //create an array of suits\n String[] suits = {\"S\", \"H\", \"C\", \"D\"};\n sb.append(suits[suit(card) - 1]);\n //add the face of the card\n //convert 1, 10, 11, 12, 13 face numbers into letters\n //create an array of special faces\n String[] faces = {\"X\", \"J\", \"Q\", \"K\"};\n if(face(card) == 1){\n sb.append(\"A\");\n } else if(face(card) >= 10){\n sb.append(faces[face(card) - 10]);\n } else {\n sb.append(face(card));\n }\n return sb.toString();\n }", "public String toString() {\n String color = translateColor(card.getColor());\n StringBuilder build = new StringBuilder();\n build.append(color).append(\" \").append(color).append(card.getCardID()).append(color).append(\" \").append(Color.reset()).append(\"\\n\").append(color).append(\"╔════\").append(color).append(\"Level\").append(color).append(\"════╗\").append(Color.reset()).append(\"\\n\").append(color).append(\"║ \").append(color).append(card.getLevel()).append(color).append(\" ║\").append(Color.reset()).append(\"\\n\").append(color).append(\"╠════\").append(color).append(\"Cost\").append(color).append(\"═════╣\").append(Color.reset()).append(\"\\n\");\n for (Resource resource : card.getCost().keySet()) {\n build.append(color).append(\"║ \").append(CLI.colorResource(resource)).append(card.getCost().get(resource)).append(\" \").append(CLI.shapeResource(resource)).append(color).append(\" ║\").append(Color.reset()).append(\"\\n\");\n }\n build.append(color).append(\"╠═\").append(color).append(\"Production\").append(color).append(\"══╣\").append(Color.reset()).append(\"\\n\");\n for (Resource resource : card.getProductionPower().getConsumedResources().keySet()) {\n build.append(color).append(\"║ \").append(CLI.colorResource(resource)).append(card.getProductionPower().getConsumedResources().get(resource)).append(\" \").append(CLI.shapeResource(resource)).append(color).append(\" ║\").append(Color.reset()).append(\"\\n\");\n }\n if (card.getProductionPower().getRequiredResourceOfChoice() != 0) {\n build.append(color).append(\"║ \").append(color).append(+card.getProductionPower().getRequiredResourceOfChoice()).append(\" \").append(\"?\").append(color).append(\" ║\").append(Color.reset()).append(\"\\n\");\n }\n build.append(color).append(\"║ \").append(color).append(\"--->>> \").append(color).append(\" ║ \").append(Color.reset()).append(\"\\n\");\n for (Resource resource : card.getProductionPower().getProducedResources().keySet()) {\n build.append(color).append(\"║ \").append(CLI.colorResource(resource)).append(card.getProductionPower().getProducedResources().get(resource)).append(\" \").append(CLI.shapeResource(resource)).append(color).append(\" ║\").append(Color.reset()).append(\"\\n\");\n }\n if (card.getProductionPower().getFaithPointsProduced() != 0) {\n build.append(color).append(\"║ \").append(color).append(+card.getProductionPower().getFaithPointsProduced()).append(\" \").append(\"+\").append(color).append(\" ║\").append(Color.reset()).append(\"\\n\");\n }\n if (card.getProductionPower().getProducedResourceOfChoice() != 0) {\n build.append(color).append(\"║ \").append(color).append(+card.getProductionPower().getProducedResourceOfChoice()).append(\" \").append(\"?\").append(color).append(\" ║\").append(Color.reset()).append(\"\\n\");\n }\n\n\n build.append(color).append(\"╠═══\").append(color).append(\"VPoints\").append(color).append(\"═══╣\").append(Color.reset()).append(\"\\n\");\n if (card.getVictoryPoints() < 10) {\n build.append(color).append(\"║ \").append(color).append(card.getVictoryPoints()).append(color).append(\" ║\").append(Color.reset()).append(\"\\n\");\n } else\n build.append(color).append(\"║ \").append(color).append(card.getVictoryPoints()).append(color).append(\" ║\").append(Color.reset()).append(\"\\n\");\n build.append(color).append(\"╚════\").append(color).append(color).append(\"═════════╝\").append(Color.reset()).append(\"\\n\");\n build.append((color + \" \" + color + color + \" \" + Color.reset() + \"\\n\").repeat(5));\n return build.toString();\n }", "@Override\n public String toString() {\n StringBuilder devPlaceArt = new StringBuilder();\n StringBuilder[] devString = new StringBuilder[3];\n devString[0] = new StringBuilder();\n devString[1] = new StringBuilder();\n devString[2] = new StringBuilder();\n int i = 0;\n String space = \" \";\n String emptyCard =\n \"\"\"\n ┌─────────────────┐\n │ │\n │ │\n │ │\n │ │\n │ │\n │ │\n │ │\n │ │\n └─────────────────┘\n \"\"\";\n String emptySpace = \"\"\"\n \\s\n \\s\n \\s\n \"\"\";\n String[] temp1;\n String[] temp2;\n String[] temp3;\n\n for (ObservableList<DevelopmentCard> stacks : devStack) {\n if (stacks.isEmpty()) {\n devString[i].append(emptyCard);\n devString[i].append(emptySpace).append(emptySpace);\n } else {\n devString[i].append(stacks.get(stacks.size() - 1).toString());\n switch (stacks.size()) {\n case 1 -> devString[i].append(emptySpace).append(emptySpace);\n case 2 -> {\n int l = stacks.get(0).toString().length();\n devString[i].append(stacks.get(0).toString(), l - 58, l);\n devString[i].append(emptySpace);\n }\n case 3 -> {\n int len = stacks.get(0).toString().length();\n devString[i].append(stacks.get(0).toString(), len - 58, len);\n devString[i].append(stacks.get(1).toString(), len - 58, len);\n }\n }\n\n }\n i++;\n }\n temp1 = devString[0].toString().split(\"\\n\");\n temp2 = devString[1].toString().split(\"\\n\");\n temp3 = devString[2].toString().split(\"\\n\");\n\n for (int j = 0; j < 14; j++) {\n devPlaceArt.append(temp1[j]).append(space).append(temp2[j]).append(space).append(temp3[j]);\n devPlaceArt.append(\"\\n\");\n }\n return devPlaceArt.toString();\n }", "public String materialsToString() {\r\n\r\n\t\t String materials = \"\";\r\n\r\n\t\t for(int index = 0; index < this.getMaterials().size(); index++) {\r\n\t\t materials += getMaterials().get(index).getName()+\"-\"+getMaterials().get(index).getQuantity();\r\n\r\n\t\t if(index != this.getMaterials().size() - 1)\r\n\t\t materials += \",\";\r\n\t\t }\r\n\r\n\t\t return materials;\r\n\t\t \r\n\t }", "void printDeck() {\n\t\tfor(int index = 0; index < this.getNumberOfCards(); index++) {\n\t\t\tSystem.out.print(this.cardsInDeck[index].getName() + this.cardsInDeck[index].getColor() + \",\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "public String ArrayToString(ArrayList<Card> Arr){\n String ArrayContents1 = \"\"; //contents of array\n for(int i =0; i< Arr.size(); i++){\n Card card = Arr.get(i);\n\n String cardNameString = card.getCardName();\n ArrayContents1= ArrayContents1 + \", \" + cardNameString;\n }\n return ArrayContents1;\n }", "public String toString() {\r\n\t\treturn super.display() + \"\\n\" + listAllCards() + \r\n\t\t\t\t\"Purchased tickets: \\n\" + listAllTickets() +\r\n\t\t\t\t\"___________________________________________\";\r\n\t}", "final public String toString() {\r\n\t\tswitch (face) {\r\n\t\tcase 10:\r\n\t\t\treturn \"X\" + Character.toString(suit);\r\n\t\tcase 11:\r\n\t\t\treturn \"J\" + Character.toString(suit);\r\n\t\tcase 12:\r\n\t\t\treturn \"Q\" + Character.toString(suit);\r\n\t\tcase 13:\r\n\t\t\treturn \"K\" + Character.toString(suit);\r\n\t\tdefault:\r\n\t\t\treturn face + Character.toString(suit);\t\t\t\t\r\n\t\t}\r\n\t}", "public String toString() {\r\n\t\t\r\n\t\tString cardSuit = \"\";\r\n\t\tString cardRank = \"\";\r\n\t\tString cardString = \"\";\r\n\t\t\r\n\t\t\r\n\t\tint cs = getSuit();\r\n\t\tint cr = getRank();\r\n\t\t\r\n\t\tswitch(cr) {\r\n\t\tcase 1:\r\n\t\t\tcardRank = \"ace\";\r\n\t\t\tbreak;\r\n\t\tcase 2: \r\n\t\t\tcardRank =\"2\";\r\n\t\t\tbreak;\r\n\t\tcase 3: \r\n\t\t\tcardRank =\"3\";\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tcardRank =\"4\";\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tcardRank =\"5\";\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tcardRank =\"6\";\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tcardRank =\"7\";\r\n\t\t\tbreak;\r\n\t\tcase 8:\r\n\t\t\tcardRank =\"8\";\r\n\t\t\tbreak;\r\n\t\tcase 9:\r\n\t\t\tcardRank =\"9\";\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tcardRank =\"10\";\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tcardRank =\"jack\";\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tcardRank =\"queen\";\r\n\t\t\tbreak;\r\n\t\tcase 13:\r\n\t\t\tcardRank =\"king\";\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tcardRank = \"n/a\";\r\n\t\t\t\r\n\t\t}//switch rank\r\n\t\t\r\n\t\t//got a string representation of the rank\r\n\t\t//now get a string representation of the siut\r\n\t\t\r\n\t\tswitch(cs) {\r\n\t\tcase 0:\r\n\t\t\tcardSuit = \"hearts\";\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tcardSuit = \"diamonds\";\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tcardSuit = \"clubs\";\r\n\t\t\tbreak; \r\n\t\tcase 3:\r\n\t\t\tcardSuit = \"spades\";\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tcardSuit = \"n/a\";\r\n\t\t\t\r\n\t\t}\r\n\t\tcardString = \"file:cards/\"+cardRank+\"_of_\"+cardSuit+\".png\";\r\n\t\t\r\n\t\treturn cardString;\r\n\t\t\r\n\t}", "public String toString () {\r\n // write out amount of cash\r\n String stuffInWallet = \"The total amount of Bills in your wallet is: $\" + getAmountInBills() + \"\\n\" +\r\n \"The total amount of Coins in your wallet is: $\" + getAmountInCoins() + \"\\n\";\r\n\r\n // add in the charge (credit and debit) cards\r\n // for each element in the chargeCards list, calls its toString method\r\n for ( int i = 0; i < chargeCards.size(); i++ ) {\r\n stuffInWallet += chargeCards.get( i ) + \"\\n\";\r\n }\r\n\r\n for ( int i = 0; i < idCards.size(); i++ ) {\r\n stuffInWallet += idCards.get( i ) + \"\\n\";\r\n }\r\n\r\n return stuffInWallet;\r\n }", "public String toString() {\n\n return this.symbol;\n }", "public String get卡名and類型Name() {\r\n return \"[\" + 卡名 + \"-\" + CardType.CARD_TYPE_NAME[類型] + \"] \";\r\n }", "public String toString() \r\n\t{\r\n\t\treturn value + \" \" + rank + \" of \" + suit;\r\n\t}", "public String toString() {\n/* 46 */ return ModelUtil.toCommaSeparatedList((Object[])getValue());\n/* */ }", "@Override\n public String toString() {\n \tString retString = \"Stack[\";\n \tfor(int i = 0; i < stack.size() - 1; i++) // append elements up to the second to last onto the return string\n \t\tretString += stack.get(i) + \", \";\n \tif(stack.size() > 0)\n \t\tretString += stack.get(stack.size() - 1); // append final element with out a comma after it\n \tretString += \"]\";\n \treturn retString;\n }", "@Override\n public String toString() {\n return name + \" Funds: £\" + funds +\n \", Shares: A[\" + shares.get(0) + \"], B[\" + shares.get(1) + \"], C[\" + shares.get(2) +\n \"], D[\" + shares.get(3) + \"], E[\" + shares.get(4) + \"]\";\n }", "public String toString() {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < symbolCodeBits.length; i++) {\n sb.append(String.format(\"Code %s: Symbol %d%n\", Integer.toBinaryString(symbolCodeBits[i]).substring(1),\n symbolValues[i]));\n }\n return sb.toString();\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder(rank.toString());\n sb.append(\" \");\n sb.append(suit.toString());\n\n return sb.toString();\n }", "public String toString() {\r\n\t\tString output = \"\";\r\n\t\tfor (int n = 0; n < parts.size(); n++){\r\n\t\t\toutput = output + parts.get(n) + \", \";\r\n\t\t}\r\n\t\t\r\n\t\tint toAdd = 5 - parts.size(); \r\n\t\t\t\r\n\t\tfor( int i = 0; i < toAdd; i++ ) {\r\n \t\r\n\t\toutput = output + \"[ ], \";\r\n \r\n\t\t} \r\n\t\t\r\n\t\treturn output;\r\n\t\t\t\r\n\t}", "public String toString() {\n\t\treturn SUIT_NAMES[suit]+RANK_NAMES[rank];\n\t}", "public String toString() {\n return \"The \" + value + \" of \" + suit;\n }", "public String toString(int format)\n {\n StringBuilder outString = new StringBuilder();\n\n //outString.ensureCapacity();\n\n outString.ensureCapacity(3*(cardAry.length+2));\n\n for (int i=0; i<cardAry.length; i++)\n {\n if (i%13 == 0 )\n outString.append(\"\\n\");\n\n //System.err.println(\"cardNum is \" + i);\n if( cardAry[i] != null) {\n\n if(i>0 && cardAry[i-1].hashCode() > cardAry[i].hashCode())\n outString.append(\"*\");\n\n outString.append(cardAry[i].toString(format));\n if (format == Card.VERBOSE)\n outString.append(\"\\n\");\n else if (format == Card.SHORT)\n outString.append(\", \");\n }\n\n else \n {\n outString.append(\" nul \");\n }\n }\n\n return new String( outString);\n }", "public void printCards()\n {\n System.out.println(\"Your Card \" + playerCard.toString() + \" and the Computer Card \" + computerCard.toString());\n }", "@Override\n\tpublic String toString() {\n\t\treturn amount + \" \" + currency; \n\t}", "public String toString() {\n String info = values[value] + \" of \" + suits[suit];\n return info;\n }", "public void printMyCards() {\n System.out.print(String.format(\"%c[%d;%dfPlayer : %s\", escCode, 29, 1, getName()));// print the name\n ArrayList<Card> myCards = getMyCards();\n Iterator<Card> it = myCards.iterator();\n\n for (int i = 1; it.hasNext(); i++) { // print the cards in order\n Card tempCard = it.next();\n int x = 30;\n if (i > 10) {\n x = 40;// to go to the next line\n }\n System.out.printf(\"%c[0m\", escCode);\n tempCard.visiblePrint(x, i, \"\", i);\n System.out.printf(\"%c[0m\", escCode);\n }\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"\\nCard Name: \" + getName() +\n\t\t\t\t\"\\nMultiverse Id: \" + getMultiverseid() +\n\t\t\t\t\"\\nMana Cost: \" + getManaCost();\n\t}", "public String toString()\n\t{\n\t\treturn this.value+\" \"+this.currency;\n\t}", "public String toStringPrologFormatListChar()\r\n\t{\n\t\t\r\n\t\tString output = \"[\";\r\n\r\n\t\tfor (Character ch : this.listCharacter)\r\n\t\t{\r\n\t\t\toutput += ch.CharToStringPrologFormat();\r\n\t\t\toutput += \",\";\r\n\t\t}\r\n\t\toutput = output.substring(0, output.length()-1);\r\n\t\toutput += \"]\";\r\n\t\t\r\n\t\treturn output;\r\n\t}", "public com.google.protobuf.ByteString getCards() {\n return cards_;\n }", "@Override\n public String toString(){\n String result = chapVerse.toString() + \"\\t\\t\";\n String comm = \"\";\n for (SermCit blah : citations){\n result += comm + blah;\n comm = \", \";\n }\n return result;\n }", "public String toString() {\n\t\tboolean first = true;\n\t\tStringWriter buf = new StringWriter();\n\t\tbuf.append('[');\n\t\tfor(String value : values) {\n\t\t\tif(first) { first = false; } else { buf.append(\",\"); }\n\t\t\tbuf.append(value);\n\t\t}\n\t\tbuf.append(']');\n\t\treturn buf.toString();\t\t\n\t}", "private String symbol() {\n switch (this.suit) {\n case 1:\n return \"♣\";\n case 2:\n return \"♦\";\n case 3:\n return \"♥\";\n case 4:\n return \"♠\";\n default:\n throw new IllegalArgumentException(\"Invalid Suit\");\n }\n }", "public String toString() {\n final StringBuilder buffer = new StringBuilder() ;\n final DecimalFormat df = new DecimalFormat( \"#00.00\" ) ;\n\n buffer.append( StringUtil.rightPad( this.symbol, 20 ) ) ;\n buffer.append( StringUtil.leftPad( \"\" + getNumActiveCashUnits(), 5 ) ) ;\n buffer.append( StringUtil.leftPad( df.format( this.avgCashUnitPrice ), 10 ) ) ;\n buffer.append( StringUtil.leftPad( df.format( this.realizedProfit ), 10 ) ) ;\n buffer.append( StringUtil.leftPad( df.format( getUnRealizedCashProfit() ), 10 ) ) ;\n\n return buffer.toString() ;\n }", "public String toString(){//method of return card number and balance\r\n return \"Card no:\" +number+\" has a balance of: \"+balance; \r\n }", "public com.google.protobuf.ByteString getCards() {\n return cards_;\n }", "public String toString(){\r\n\t\tString theString= \"\";\r\n\t\t\r\n\t\t//loop through and add values to the string\r\n\t\tfor (int i = 0; i < this.data.length; i++)\r\n\t\t{\r\n\t\t\ttheString = theString + this.data[i];\r\n\t\t\tif (i != this.data.length - 1)\r\n\t\t\t{\r\n\t\t\t\ttheString = theString + \", \";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn \"[\" + theString + \"]\";\r\n\t}", "@Override\n\tpublic String toString() {\n\t\tString strSuit = suit.toString().substring(0, 1);\n\t\tstrSuit += suit.toString().toLowerCase()\n\t\t\t\t.substring(1, suit.toString().length());\n\n\t\treturn strSuit + value;\t\n\t}", "public String toString(){\n\t\tNumberFormat nf = NumberFormat.getCurrencyInstance();\r\n\t\tString lastprice = nf.format(this.price);\r\n\t\tString lasttprice = nf.format(this.bulkP);\r\n\t\tif (this.bulkQ == 0){\r\n\t\t\treturn (this.name + \", \" + lastprice);\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn this.name + \", \" + lastprice + \" (\" + bulkQ + \" for \" + lasttprice + \")\";\r\n\t\t}\r\n\t\t\r\n\t}", "public static List<ScrumPokerCard> getDeck() {\n return Arrays.stream(values()).collect(Collectors.toList());\n }", "public String toString() {\n NumberFormat formatter = NumberFormat.getCurrencyInstance();\n return firstName + lastName + \"\\n\" + cardNum + \"\\n\" + email + \"\\n\" + formatter.format(accCreditLimit);\n }", "@Override\n\tpublic String toString() {\n\t\tif(this.upOrDown == CardFace.FaceUp) {\n\t\t\treturn this.suit.toString() + \" \" + this.rank.toString();\n\t\t}\n\t\telse {\n\t\t\treturn \"Card Face Down\";\n\t\t}\n\t}", "public String getencodedCard() {\r\n \r\n String cardDesc=\"\";\r\n String partnerId=\"\";\r\n String cardId=\"\";\r\n \r\n if(session!=null) {\r\n if (session.getAttribute(\"Partner_Object_List\") != null) {\r\n partnerInfoList =\r\n (List<PartnerInfo>)session.getAttribute(\"Partner_Object_List\");\r\n if(getPartner()!=null && !getPartner().equals(\"\") && getCardPk() != null && !getCardPk().equals(\"\")){\r\n partnerId=getPartner();\r\n cardId=getCardPk().toString().trim();\r\n \r\n if (partnerInfoList != null) {\r\n for (int k = 0; k < partnerInfoList.size(); k++) {\r\n if (partnerId.equalsIgnoreCase(partnerInfoList.get(k).getPartnerValue().toString())) {\r\n for (int ac = 0;ac < partnerInfoList.get(k).getAccountList().size();ac++) {\r\n for (int cg = 0;cg < partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().size();cg++) {\r\n for (int cd = 0;cd < partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().get(cg).getCard().size();cd++) {\r\n if(cardId.equalsIgnoreCase(partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().get(cg).getCard().get(cd).getCardID())) {\r\n if(partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().get(cg).getCard().get(cd).getDisplayCardNumber() != null)\r\n {\r\n cardDesc= partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().get(cg).getCard().get(cd).getDisplayCardNumber().toString();\r\n }\r\n }\r\n }\r\n }\r\n\r\n }\r\n }\r\n\r\n }\r\n }\r\n }\r\n }\r\n }\r\n return cardDesc;\r\n \r\n \r\n }", "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}", "public String toString() {\n\t\tString s = new String(\"\");\n\t\tfor(int i=0; i<numeros.size(); i++) {\n\t\t\ts += numeros.get(i) + \" \";\n\t\t}\n\t\ts += \"| \";\n\t\tfor(int i=0; i<n_chances.size(); i++) {\n\t\t\ts += n_chances.get(i) + \" \";\n\t\t}\n\t\ts += \"\\n\";\n\t\treturn s;\n\t}", "@Override\n public String toString() {\n return rankArray[rank] + suitArray[suit];\n }", "public String toString()\n {\n \tNumberFormat fmt = NumberFormat.getCurrencyInstance();\n \tString item;\n \tif (name.length() >= 8)\n \t\titem = name + \"\\t\";\n \telse\n \t\titem = name + \"\\t\\t\";\n \treturn (item + \" \" + fmt.format(price) + \"\\t \" + quantity \n \t\t\t+ \"\\t\\t\" + fmt.format(price*quantity));\n }", "private String getValues()\n\t{\n\t\tString values = \"(\";\n\t\tfor(int spot = 0; spot < fieldList.size(); spot++)\n\t\t{\n\t\t\tvalues += \"'\" + fieldList.get(spot).getText() + \"'\";\n\t\t\tif(spot == fieldList.size()-1)\n\t\t\t{\n\t\t\t\tvalues += \");\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tvalues += \", \";\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn values;\n\t}", "public String toString() {\n\t\tNumberFormat currency = NumberFormat.getCurrencyInstance();\n return \"\" + id + \"\\t\\t\" + currency.format(income) + \"\\t\" + members;\n }", "public String toCsvRow() {\r\n\t return Stream.of(String.valueOf(TxnsRefNo),Description)\r\n\t .map(value -> value.replaceAll(\"\\\"\", \"\\\"\\\"\"))\r\n\t .map(value -> Stream.of(\"\\\"\", \",\").anyMatch(value::contains) ? \"\\\"\" + value + \"\\\"\" : value)\r\n\t .collect(Collectors.joining(\",\"));\r\n\t}", "public String toString(){\r\n\t DoubleLinkedSeq clone = new DoubleLinkedSeq(); \r\n\t clone = this.clone();\r\n\t String elements = \"{\";\r\n\t for(clone.cursor = head; clone.cursor != null; clone.cursor = clone.cursor.getLink()){\r\n\t\t elements = elements + (clone.cursor.getData() + \",\"); \r\n\t }\r\n\t \r\n\t elements = elements + \")\";\r\n\t \r\n\t return elements; \r\n }", "public String toString() {\n String temp = this.value + \"\";\n if (this.value == 11) {\n temp = \"Jack\";\n } else if (this.value == 12) {\n temp = \"Queen\";\n } else if (this.value == 13) {\n temp = \"King\";\n } else if (this.value == 14) {\n temp = \"Ace\";\n }\n return temp + \" of \" + getSuitName();\n }", "public String cardDisplay(){\n if(this.faceDown) {\n return \"Bicycle\";}\n else{ return \"Friendly Names of: \" + this.rank + \":\"+this.suit;\n\n }\n }", "public String getHand()\n\t{\n\t\tStringBuffer buffer = new StringBuffer(String.format(\"%s:[%d] \", getName(), getHandTotal() ));\n\t\t\n\t\tfor (Card c : hand)\n\t\t{\n\t\t\tbuffer.append(String.format(\"%s: \", c));\n\t\t}\n\n\t\treturn buffer.toString();\n\t}", "private static final String renderStateAsSymbolList(Set<GdlSentence> theState) {\n\t\tString s = \"( \";\n\t\tfor (GdlSentence sent : theState) {\n\t\t\tString sentString = sent.toString();\n\t\t\ts += sentString.substring(6, sentString.length() - 2).trim() + \" \";\n\t\t}\n\t\treturn s + \")\";\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn getSymbol().toString();\r\n\t}", "public String toString(){\n\t\t\treturn competitors.toString();\n\t\t}", "public String toString() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\tsb.append(\"[\");\n\t\tfor(int i = 0; i < size(); i++) {\n\t\t\tif( i != size()-1)\n\t\t\t\tsb.append(get(i) + \" , \");\n\t\t\telse\n\t\t\t\tsb.append(get(i));\n\t\t}\n\t\tsb.append(\"]\");\n\t\tsb.append(\"\\n\");\n\t\t\n\t\treturn sb.toString();\n\t}", "@Override\n public String toString() {\n return \"Card{\"\n + \"frontInfo='\" + frontInfo\n + '\\''\n + \", backInfo='\" + backInfo\n + '\\''\n + \", startTime=\" + startTime\n + \", ID=\" + cardID\n + '}';\n }", "public String toString()\r\n\t\t{\r\n\t\t\tString str = \" \" ;\r\n\t\t\tif (this.num.size() == 0)\r\n\t\t\t\tstr = \"<vacia>\";\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\tfor (int i = 0; i < this.num.size(); i++) \r\n\t\t\t\t\tstr = str + this.num.get(i) + \" \";\r\n\t\t\t}\r\n\t\t\treturn str;\r\n\t\t}", "public String toString() {\n\t\t\tStringBuilder str = new StringBuilder();\n\t\t\tstr.append(\"Hand ID: \" + getHandId() + \"<br>\");\n\t\t\tstr.append(\"Hand Wager: <font color = red>\" + moneyFormat.format(getHandWager()) + \"</font><br>\");\n\t\t\tstr.append(\"Dealer Total: <font color = red>\" + getDealerTotal() + \"</font><br>\");\n\t\t\tstr.append(\"Player Total: <font color = red>\" + getPlayerTotal() + \"</font><br>\");\n\t\t\tstr.append(\"Hand Outcome: <font color = red>\" + getHandOutcome().substring(0, (getHandOutcome().length() - 2)) + \"</font><br>\" );\n\t\t\tstr.append(\"Post-Hand Player Wallet: <font color = red>\" + moneyFormat.format(getPlayerWallet()) + \"</font><br><br>\");\n\t\t\t\t\n\t\t\treturn str.toString();\t\t\n\t\t}", "@Override\n public String toString() {\n return \"\" + currency + amount;\n }", "@Override\n public String toString () {\n String stock = \"\";\n\n for (int i = 0; i < inventory.size(); i++) {\n\n Product p = inventory.get(i);\n stock += p.toString() + '\\n';\n }\n return stock;\n }", "public String toString()\n\t{\n\t\treturn Name+\",\"+Number+\",\";\n\t}", "public String printCharStack() {\r\n\t\t String elements = \"<\";\r\n\t\t \r\n\t\tfor(int i = 0; i < count; i++) {\r\n\t\t\telements += \" \" + (char)array[i];\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\telements += \">\";\r\n\t\t\treturn elements;\r\n\t }", "public static String getValidValues()\r\n\t{\r\n\t\tString comma = \"\";\r\n\t\tStringBuilder enumValue = new StringBuilder();\r\n\r\n\t\tfor (TabelaEnum i : TabelaEnum.class.getEnumConstants())\r\n\t\t{\r\n\t\t\tenumValue.append(comma).append(i.getValue());\r\n\t\t\tcomma = \", \";\r\n\t\t}\r\n\r\n\t\treturn enumValue.toString();\r\n\t}", "public String generate(List<BasketSeriesItemBean> seriesItems){\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint size = seriesItems.size();\n\t\tfor(int i=0; i < size ; i++) {\n\t\t\tBasketSeriesItemBean bsib = seriesItems.get(i);\n\t\t\tsb.append(bsib.getSeriesId());\n\t\t\tsb.append(\",\");\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\tint lastComma = sb.lastIndexOf(\",\");\n\t\t\n\t\t//System.out.println(\"char at length - 1: \" + sb.charAt(sb.length() - 1) + \" length: \" + sb.length() + \" lastComma: \" + lastComma);\n\t\tsb.replace(lastComma, lastComma, \"\");\n\t\tsb.trimToSize();\n\t\t//System.out.println(\"length: \" + sb.length());\n\t\treturn sb.toString();\n\t}", "public String toString() {\n\t\t// retrun all the attributes as a string but appending with \", \"\n\t\tString str = teamName + \", \" + noOfWins + \", \" + noOfLosses + \", \" + noOfDraws;\n\t\treturn str;\n\t}" ]
[ "0.6848116", "0.67894304", "0.6733862", "0.671927", "0.66051435", "0.6533657", "0.64241755", "0.6410186", "0.6369564", "0.6319478", "0.62964535", "0.62761205", "0.61807424", "0.6064193", "0.59665656", "0.5966074", "0.5958325", "0.5953354", "0.5947882", "0.593724", "0.59306085", "0.589945", "0.58852404", "0.58556473", "0.5839981", "0.5812813", "0.5787383", "0.5776966", "0.57518244", "0.5751519", "0.57495", "0.5727054", "0.5697263", "0.56947285", "0.5691711", "0.56841046", "0.56660044", "0.56616503", "0.565722", "0.5643763", "0.56398743", "0.5599326", "0.55824596", "0.5577702", "0.55622154", "0.55579895", "0.5543479", "0.5521104", "0.55119467", "0.55072224", "0.5502682", "0.54955757", "0.5495375", "0.54929304", "0.54849684", "0.5456321", "0.5455662", "0.54547215", "0.5454135", "0.5443843", "0.5443317", "0.54419404", "0.5433109", "0.5426616", "0.54252505", "0.54231775", "0.54121435", "0.54112774", "0.54095393", "0.5401225", "0.53947026", "0.53887504", "0.5384573", "0.5381996", "0.536499", "0.53489894", "0.5343887", "0.53384054", "0.533232", "0.5331563", "0.5328432", "0.53248477", "0.53243285", "0.5321497", "0.5320887", "0.53153956", "0.5314186", "0.5308735", "0.5296415", "0.5292378", "0.529135", "0.52853465", "0.52718467", "0.52620393", "0.5253836", "0.52491724", "0.52489734", "0.52476895", "0.5239416", "0.52369064" ]
0.7525884
0
Returns the corresponding symbol for the value.
public static char toSymbol(int value) { char symbol; if (value < 10 && value > 1) { symbol = (char)(value + '0'); } else if (value == 10) { symbol = 'T'; } else if (value == 11) { symbol = 'J'; } else if (value == 12) { symbol = 'Q'; } else if (value == 13) { symbol = 'K'; } else if (value == 14) { symbol = 'A'; } else { System.err.println("Error: invalid value"); symbol = 'X'; } return symbol; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getSymbol();", "String symbol();", "public abstract String getSymbol();", "public String getSymbol() {\n return symbol.get();\n }", "public String getSymbol( )\n {\n return symbol;\n }", "long getSymbol();", "public char getSymbol() {\n return symbol;\n }", "public String getSymbol() {\n }", "@Override public String symbol() {\n return symbol;\n }", "public int get(int symbol);", "public String getSymbol() {\n return symbol;\n }", "protected char getSymbol(){\r\n\t\treturn this.symbol;\r\n\t}", "public char getSymbol() {\n\t\treturn this.symbol;\n\t}", "public String getSymbol() {\n Object ref = symbol_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n symbol_ = s;\n }\n return s;\n }\n }", "public String getSymbol() {\n Object ref = symbol_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n symbol_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getSymbol() {\r\n\t\treturn symbol;\r\n\t}", "public String getSymbol() {\r\n\t\treturn symbol;\r\n\t}", "public String getSymbol() {\n return this.symbol ;\n }", "public String getSymbol() {\n return symbol;\n }", "public char getSymbol() {\n switch (player) {\n case 0:\n return 'O';\n case 1:\n return 'X';\n default:\n return '+';\n }\n }", "public java.lang.String getSymbol() {\n java.lang.Object ref = symbol_;\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 symbol_ = s;\n return s;\n }\n }", "public String getSymbol() {\n\t\treturn symbol;\n\t}", "public String getSymbol(){\n return this.symbol;\n }", "@Override\n public String getSymbol() {\n return SYMBOL;\n }", "String getDisplayValue() {\n\t\treturn symbol;\n\t}", "public java.lang.String getSymbol() {\n java.lang.Object ref = symbol_;\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 symbol_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "Character getSymbol(Environment environment);", "public Symbol getSymbol() {\r\n\t\treturn symbol;\r\n\t}", "@Override\n\tpublic String asText() {\n\t\treturn symbol;\n\t}", "public char symbol(){\n\n if (currentTokenType == TYPE.SYMBOL){\n\n return currentToken.charAt(0);\n\n }else{\n throw new IllegalStateException(\"Current token is not a symbol!\");\n }\n }", "private String symbol() {\n switch (this.suit) {\n case 1:\n return \"♣\";\n case 2:\n return \"♦\";\n case 3:\n return \"♥\";\n case 4:\n return \"♠\";\n default:\n throw new IllegalArgumentException(\"Invalid Suit\");\n }\n }", "public String toString(){\n return String.valueOf(symbol);\n }", "public Symbol getSymbol() {\n\n return this.symbol;\n }", "public Alphabet getShiftableSymbolName() {\n\t\tif (0 <= marker && marker < getRhs().length) {\n\t\t\treturn getRhs()[marker];\n\t\t}\n\t\treturn null;\n\t}", "public String getSymbol()\n {\n return annot.getString(COSName.SY);\n }", "public Symbol getCurrentPlayerSymbol();", "java.lang.String getSymbolId();", "public String getSymbolName() {\n return this.name;\n }", "public com.google.protobuf.ByteString\n getSymbolBytes() {\n java.lang.Object ref = symbol_;\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 symbol_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSymbolBytes() {\n Object ref = symbol_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n symbol_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String returnSymbol(Token token) {\n\n\t\tswitch (token.getType()) {\n\n\t\t\tcase L_ROUND:\n\t\t\t\treturn \"(\";\n\n\t\t\tcase R_ROUND:\n\t\t\t\treturn \")\";\n\n\n\n\t\t\tcase L_CURLY:\n\t\t\t\treturn \"{\";\n\n\n\t\t\tcase R_CURLY:\n\t\t\t\treturn \"}\";\n\n\t\t\tcase ASSIGN:\n\t\t\t\treturn \"=\";\n\n\t\t\tcase NEGATIVE:\n\t\t\t\treturn \"-\";\n\n\t\t\tcase EQ:\n\t\t\t\treturn \"==\";\n\n\t\t\tcase NEQ:\n\t\t\t\treturn \"^\";\n\n\t\t\tcase LT_EQ:\n\t\t\t\treturn \"<=\";\n\n\t\t\tcase GT_EQ:\n\t\t\t\treturn \">=\";\n\n\t\t\tcase PLUS:\n\t\t\t\treturn \"+\";\n\n\n\t\t\tcase MINUS:\n\t\t\t\treturn \"-\";\n\n\t\t\tcase MULTIPLY:\n\t\t\t\treturn \"*\";\n\n\t\t\tcase DIVIDE:\n\t\t\t\treturn \"/\";\n\n\t\t\tdefault:\n\n\t\t\t\treturn \"\";\n\t\t}\n\t}", "@Override\n\tpublic String getSymbolName()\n\t{\n\t\treturn getFormattedText();\n\t}", "public com.google.protobuf.ByteString\n getSymbolBytes() {\n java.lang.Object ref = symbol_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n symbol_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "com.google.protobuf.ByteString\n getSymbolBytes();", "public com.google.protobuf.ByteString\n getSymbolBytes() {\n Object ref = symbol_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n symbol_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String toString() {\n\n return this.symbol;\n }", "private char getSymbolCharacter(String key, String numsys) {\n return getSymbolString(key, numsys).charAt(0);\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn getSymbol().toString();\r\n\t}", "public static SymbolicName name(String value) {\n\n\t\treturn SymbolicName.create(value);\n\t}", "@CheckForNull\n Symbol getSymbol(@Nonnull String name);", "java.lang.String getSymbolTuple();", "public String symbolAtPosition ( int position )\n {\n String s = null;\n for ( LeafNode current : this.regexNode.getTokenNodes () )\n {\n if ( current.getPosition () == position )\n {\n s = current.getNodeString ().toString ();\n }\n }\n return s;\n }", "char getSymbol();", "String getBbgSymbol();", "public java.lang.String getSymbolId() {\n java.lang.Object ref = symbolId_;\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 if (bs.isValidUtf8()) {\n symbolId_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getSymbolId() {\n java.lang.Object ref = symbolId_;\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 if (bs.isValidUtf8()) {\n symbolId_ = s;\n }\n return s;\n }\n }", "byte toStringValue() {\n return (byte) String.valueOf(value).charAt(0);\n }", "public String getTentSymbol(){ return tentSymbol;}", "@Override\n public String toString() {\n return value + symbol(this.type);\n }", "Index getIndex(String symbol);", "public static String getBinarySymbolByID(String symbol)\n {\n return \"frx\" + symbol;\n }", "public char getSymbol(int[] coords)\n\t{\n\t\treturn levelActive[coords[1]][coords[0]];\n\t}", "public char getValue() {\n return value;\n }", "public java.lang.String getSymbolTuple() {\n java.lang.Object ref = symbolTuple_;\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 if (bs.isValidUtf8()) {\n symbolTuple_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "private String symbol(Cardtype c) {\n if (c == Cardtype.HEARTS) {\n return \"\\u2665\";\n } else if (c == Cardtype.DIAMONDS) {\n return \"\\u2666\";\n } else if (c == Cardtype.SPADES) {\n return \"\\u2660\";\n } else if (c == Cardtype.CLUBS) {\n return \"\\u2663\";\n } else {\n return \"\";\n }\n }", "public static Value makeSymbol(ObjectLabel v) {\n if (v == null)\n throw new NullPointerException();\n if (v.getKind() != Kind.SYMBOL)\n throw new AnalysisException(\"Creating symbol value with a non-symbol\");\n return Value.makeObject(v);\n }", "public static CurveCharKind get(int value) {\n\t\tswitch (value) {\n\t\t\tcase ANSI_EXTREMELY_INVERSE_VALUE: return ANSI_EXTREMELY_INVERSE;\n\t\t}\n\t\treturn null;\n\t}", "public SymbolType getSymbolType() {\n return symbolType;\n }", "public java.lang.String getSymbolTuple() {\n java.lang.Object ref = symbolTuple_;\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 if (bs.isValidUtf8()) {\n symbolTuple_ = s;\n }\n return s;\n }\n }", "public abstract String getVertexSymbol(int vertexIndex);", "public static Symbol getSymbolOf(Expression e) {\n if (e instanceof Identifier) {\n return ((Identifier)e).getSymbol();\n } else if (e instanceof ArrayAccess) {\n return getSymbolOf(((ArrayAccess)e).getArrayName());\n } else if (e instanceof AccessExpression) {\n return new AccessSymbol((AccessExpression)e);\n } else if (e instanceof UnaryExpression) {\n return getSymbolOf(((UnaryExpression)e).getExpression());\n/*\n UnaryExpression ue = (UnaryExpression)e;\n if (ue.getOperator() == UnaryOperator.DEREFERENCE) {\n DFIterator<Identifier> iter = new DFIterator<Identifier>(\n ue.getExpression(), Identifier.class);\n if (iter.hasNext()) {\n return iter.next().getSymbol();\n }\n }\n*/\n } else if (e instanceof Typecast) {\n return getSymbolOf(((Typecast)e).getExpression());\n }\n return null;\n }", "public java.lang.String sign() {\n\n return java.lang.String.valueOf(this.getValue().charAt(0));\n }", "private String getSymbolString(String key, String numsys) {\n String value = null;\n try {\n value = cldrFile.getWinningValue(\"//ldml/numbers/symbols[@numberSystem='\" + numsys + \"']/\" + key);\n if (value == null || value.length() < 1) {\n throw new RuntimeException();\n }\n return value;\n } catch (RuntimeException e) {\n throw new IllegalArgumentException(\"Illegal value <\" + value + \"> at \"\n + \"//ldml/numbers/symbols[@numberSystem='\" + numsys + \"']/\" + key);\n }\n }", "public String getSymbol(int symbol, boolean uppercase) {\n\n //System.err.println(\"symbol = \" + symbol);\n if (symbol == 0) {\n return \"\";\n }\n\n if (symbol < 0) {\n return slexicinv.get(-symbol - 1);\n }\n\n // re-use strings\n if (symbol < MAX_CHARCACHE) {\n return uppercase? UPCHARCACHE[symbol] : CHARCACHE[symbol];\n }\n\n\n if (!uppercase) {\n return String.valueOf((char)symbol);\n } else {\n return String.valueOf(Character.toUpperCase((char)symbol));\n }\n }", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "public char getValue()\n\t{\n\t\treturn value;\n\t}", "String getValueName();", "public Symbol(int value)\n\t{\n\t\tthis.value = value;\n\t}", "public Character getPromptSymbol();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "@Override\n\tpublic String getSymbolName()\n\t{\n\t\tVariableDeclarationContext ctx = getContext();\n\t\tNameContextExt nameContextExt = (NameContextExt)getExtendedContext(ctx.name());\n\t\treturn nameContextExt.getFormattedText();\n\t}", "public Color getSymbolColour() {\n return this.symbolColour;\n }", "public char symbolDecode(String binary) {\n\t\tfor(int index=0; index < binary.length(); index++) {\r\n\t\t\t//this.rootNode.getNode(Integer.getInteger(binary.charAt(index)));\r\n\t\t}\r\n\t\treturn 'x';\r\n\t}", "public Builder setSymbol(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n symbol_ = value;\n onChanged();\n return this;\n }", "public Builder setSymbol(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n symbol_ = value;\n onChanged();\n return this;\n }", "@Override\n public String toString() {\n return this.symbol + super.toString();\n }" ]
[ "0.7742857", "0.7605741", "0.7243401", "0.7240399", "0.72245115", "0.71777457", "0.7168362", "0.71625686", "0.71044", "0.70367885", "0.7032445", "0.7030972", "0.70089877", "0.7000949", "0.6987131", "0.6983322", "0.6983322", "0.69587827", "0.6957014", "0.6905809", "0.6898859", "0.68966836", "0.68949836", "0.6890084", "0.6888556", "0.68577844", "0.6818131", "0.6811802", "0.6782213", "0.677754", "0.67634445", "0.6756946", "0.6741222", "0.6675879", "0.66460687", "0.65594393", "0.65337867", "0.65268296", "0.6511922", "0.6501473", "0.6484796", "0.6484786", "0.6471724", "0.6449262", "0.6436691", "0.6425676", "0.64015037", "0.63621396", "0.63485175", "0.633354", "0.6294519", "0.6233155", "0.61940783", "0.61611867", "0.61227024", "0.6119386", "0.60615635", "0.6000468", "0.598614", "0.5964721", "0.5963309", "0.5947605", "0.5929406", "0.59235966", "0.59228045", "0.59135765", "0.5910912", "0.59058636", "0.5900637", "0.58976805", "0.58971304", "0.5887005", "0.5874252", "0.5870436", "0.58565164", "0.58565164", "0.58565164", "0.58565164", "0.58565164", "0.58565164", "0.58396053", "0.5829193", "0.5793643", "0.57706076", "0.57601595", "0.57601595", "0.57601595", "0.57601595", "0.57601595", "0.57601595", "0.57601595", "0.57601595", "0.57601595", "0.57601595", "0.5730209", "0.5712461", "0.5698146", "0.5668204", "0.5637485", "0.56347305" ]
0.70315605
11
Returns the corresponding value for the symbol. Ace is assumed to have a value of 14, the highest value.
public static int toValue(char symbol) { int value; if (Character.isDigit(symbol)) { value = Character.getNumericValue(symbol); } else if (symbol == 'T') { value = 10; } else if (symbol == 'J') { value = 11; } else if (symbol == 'Q') { value = 12; } else if (symbol == 'K') { value = 13; } else if (symbol == 'A') { value = 14; } else { System.err.println("Error: Invalid symbol"); value = 0; } return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCardVal(){\n\t\tint aces = 0;\n\t\tif(cardString.charAt(0) == 'J' || cardString.charAt(0) == 'Q' || cardString.charAt(0) == 'K' || cardString.charAt(0) == 'T'){\n\t\t\tcardValue = 10;\n\t\t}\n\t\telse if(cardString.charAt(0) == 'A'){\n\t\t\tcardValue = 11;\n\t\t}\n\t\telse{\n\t\t\tcardValue = Character.getNumericValue(cardString.charAt(0));\n\t\t}\n\t\treturn cardValue;\n\t}", "public int get(int symbol);", "static int getValue(char c) {\n\t\tswitch(c) {\n\t\tcase 'A': return 0;\n\t\tcase 'C': return 1;\n\t\tcase 'G': return 2;\n\t\tcase 'T': return 3;\n\t\tdefault: return -1;\n\t\t}\n\t}", "public int getCardVal(boolean aceIsOne) {\n\t\tint val = (this.getCardNum()-1)/4 + 2;\n\t\tif(val==14 && aceIsOne)\n\t\t\tval = 1;\n\t\telse if(val > 10 && val < 14)\n\t\t\tval = 10;\n\t\telse if(val == 14)\n\t\t\tval = 11;\n\t\t\n\t\treturn val;\n\t}", "long getSymbol();", "public int getValue(String name) {\r\n // Looks things up in the symbol table\r\n return symbolTable.getValue(name);\r\n }", "public int getValue() {\n\t\tif (!this.isCard()) {\n\t\t\tSystem.out.println(\"Error! \" + id + \" isn't a card!\");\n\t\t\treturn 0;\n\t\t} else if (id % 13 != 0)\n\t\t\treturn id % 13;\n\t\telse\n\t\t\treturn 13;\n\t}", "public int cardValue(Card card) //translate string into card's numerical value\r\n {\r\n if (card.face.equals(\"Deuce\"))\r\n return 2;\r\n if (card.face.equals(\"Three\"))\r\n return 3;\r\n if (card.face.equals(\"Four\"))\r\n return 4;\r\n if (card.face.equals(\"Five\"))\r\n return 5;\r\n if (card.face.equals(\"Six\"))\r\n return 6;\r\n if (card.face.equals(\"Seven\"))\r\n return 7;\r\n if (card.face.equals(\"Eight\"))\r\n return 8;\r\n if (card.face.equals(\"Nine\"))\r\n return 9;\r\n if (card.face.equals(\"Ten\"))\r\n return 10;\r\n if (card.face.equals(\"Jack\"))\r\n return 11;\r\n if (card.face.equals(\"Queen\"))\r\n return 12;\r\n if (card.face.equals(\"King\"))\r\n return 13;\r\n if (card.face.equals(\"Ace\"))\r\n return 14;\r\n return -2;\r\n }", "public char getValue()\n\t{\n\t\treturn value;\n\t}", "public char getValue() {\n return value;\n }", "public int getKapitelValue() {\n\t\tint absvalue = 0;\n\t\tMatcher m = kapitelPattern.matcher(getId());\n\t\tif (m.find()) {\n\t\t\ttry {\n\t\t\t\t int whole = Integer.parseInt(m.group(1));\n\t\t\t\t int radix = Integer.parseInt(m.group(2));\n\t\t\t\t absvalue = whole * 1000 + radix;\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tLogger.getLogger(this.getClass())\n\t\t\t\t\t.error(\"Kapitelnummer der Gefaehrdung ist kein Float.\", e);\n\t\t\t}\n\t\t}\n\t\treturn absvalue;\n\t\n\t}", "public static PositionConfidence valueAt(int index)\n {\n\tif (index < 0 || index >= 16)\n\t throw new IndexOutOfBoundsException();\n\t\n\treturn cNamedNumbers[index];\n }", "public int getValue();", "public int getValue();", "public int highCardVal()\n\t{\n\t\tint value = 0;\n\t\t\n\t\tfor (int i=0; i<MAX_CARDS; i++)\n\t\t\tvalue += hand[i].getValue();\n\t\t\n\t\treturn value;\n\t}", "public int getValue()\n {\n try\n {\n return (Integer) AlphaComposite.class.getField(name).get(null);\n }\n catch (Exception e)\n {\n return -1;\n }\n }", "public int letterValue(char letter){\n int val;\n\n switch(letter){\n case 'a':\n case 'e':\n case 'i':\n case 'o':\n case 'u':\n case 'l':\n case 'n':\n case 's':\n case 't':\n case 'r': val =1;\n break;\n\n case 'd':\n case 'g': val =2;\n break;\n\n case 'b':\n case 'c':\n case 'm':\n case 'p': val =3;\n break;\n\n case 'f':\n case 'h':\n case 'v':\n case 'w':\n case 'y': val =4;\n break;\n\n case 'k': val =5;\n break;\n\n case 'j':\n case 'x': val =8;\n break;\n\n case 'q':\n case 'z': val =10;\n break;\n\n default: val =0;\n }\n return val;\n }", "int getValue();", "int getValue();", "int getValue();", "int getValue();", "int getValue();", "public String getValue() {\r\n\t\tAllowedKey tp = this.getAllowedKey();\r\n\t\tKeyMask km = this.getKeyMask();\r\n\r\n\t\tif (tp == TextFieldExt.AllowedKey.AK_SOLO_NUMEROS) {\r\n\t\t\tif (km == TextFieldExt.KeyMask.KM_Moneda)\r\n\t\t\t\treturn StringTools.parseFromQuantityToNumber(this.getText().trim());\r\n\t\t\telse {\r\n\t\t\t\tif (km == TextFieldExt.KeyMask.KM_Numero)\r\n\t\t\t\t\treturn StringTools.parseFromQuantityToNumber(this.getText().trim());\r\n\t\t\t\telse\r\n\t\t\t\t\treturn this.getText().trim();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (tp == TextFieldExt.AllowedKey.AK_NUMEROS_CON_FRACCION) {\r\n\t\t\t\tif (km == TextFieldExt.KeyMask.KM_Moneda)\r\n\t\t\t\t\treturn StringTools.parseFromQuantityToNumber(this.getText().trim());\r\n\t\t\t\telse {\r\n\t\t\t\t\tif (km == TextFieldExt.KeyMask.KM_Numero)\r\n\t\t\t\t\t\treturn StringTools.parseFromQuantityToNumber(this.getText().trim());\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\treturn this.getText().trim();\r\n\t\t\t\t}\r\n\t\t\t} else\r\n\t\t\t\treturn this.getText().trim();\r\n\t\t}\r\n\t}", "public int getHandValue() {\n\t\tint value = 0;\n\t\tint aces = 0;\n\t\tfor (Card card : cardHand) {\n\t\t\t// convert suits to 10\n\t\t\tif (card.getValue() > 10) {\n\t\t\t\tvalue += 10;\n\t\t\t} else if (card.getValue() == 1) {\n\t\t\t\taces++;\n\t\t\t} else {\n\t\t\t\tvalue += card.getValue();\n\t\t\t}\n\t\t}\n\t\tvalue += calculateAce(value, aces);\n\n\t\treturn value;\n\t}", "public int getAlphaInfoValue() {\n return instance.getAlphaInfoValue();\n }", "Short getValue();", "public int value(){\r\n\t\t\r\n\t\tthis.sort();\r\n\t\t\r\n\t\tint result = 0;\r\n\t\t\r\n\t\tfor(int i = this.cardCount()-1; i >= 0; i--){\r\n\t\t\tif(this.getCard(i).getValue().compareTo(CardValue.ACE) == 0){\r\n\t\t\t\tif(result <= 10 - i)\r\n\t\t\t\t\tresult += 11;\r\n\t\t\t\telse\r\n\t\t\t\t\tresult += 1;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(this.getCard(i).getValue().compareTo(CardValue.TEN) == 0 ||\r\n\t\t\t\tthis.getCard(i).getValue().compareTo(CardValue.JACK) == 0 ||\r\n\t\t\t\tthis.getCard(i).getValue().compareTo(CardValue.QUEEN) == 0 ||\r\n\t\t\t\tthis.getCard(i).getValue().compareTo(CardValue.KING) == 0 ){\r\n\t\t\t\tresult += 10;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(this.getCard(i).getValue().compareTo(CardValue.TWO) == 0){\r\n\t\t\t\tresult += 2;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(this.getCard(i).getValue().compareTo(CardValue.THREE) == 0){\r\n\t\t\t\tresult += 3;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(this.getCard(i).getValue().compareTo(CardValue.FOUR) == 0){\r\n\t\t\t\tresult += 4;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(this.getCard(i).getValue().compareTo(CardValue.FIVE) == 0){\r\n\t\t\t\tresult += 5;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(this.getCard(i).getValue().compareTo(CardValue.SIX) == 0){\r\n\t\t\t\tresult += 6;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(this.getCard(i).getValue().compareTo(CardValue.SEVEN) == 0){\r\n\t\t\t\tresult += 7;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(this.getCard(i).getValue().compareTo(CardValue.EIGHT) == 0){\r\n\t\t\t\tresult += 8;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(this.getCard(i).getValue().compareTo(CardValue.NINE) == 0){\r\n\t\t\t\tresult += 9;\r\n\t\t\t}\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}", "public CurrencySymbolPosition getSymbolPosition()\r\n {\r\n return (m_symbolPosition);\r\n }", "int getCodeValue();", "public AXValue getValue() {\n return value;\n }", "com.google.protobuf.StringValue getCurrencyCode();", "TickerPrice getPrice(String symbol);", "private static int value(char r) {\n if (r == 'I')\n return 1;\n if (r == 'V')\n return 5;\n if (r == 'X')\n return 10;\n if (r == 'L')\n return 50;\n if (r == 'C')\n return 100;\n if (r == 'D')\n return 500;\n if (r == 'M')\n return 1000;\n return -1;\n }", "public double getValueOfEDFA() {\n\t\treturn valueOfEDFA;\n\t}", "public int getCardValue(int card) {\n\t\tint result = card;\n\t\tswitch (card) {\n\t\tcase 11:\n\t\tcase 12:\n\t\tcase 13:\n\t\t\tresult = 10;\n\t\t}\n\t\treturn result;\n\t}", "public V getValue27();", "public int getValue ()\r\n\t{\r\n\t\treturn (m_value);\r\n\t}", "private String symbol() {\n switch (this.suit) {\n case 1:\n return \"♣\";\n case 2:\n return \"♦\";\n case 3:\n return \"♥\";\n case 4:\n return \"♠\";\n default:\n throw new IllegalArgumentException(\"Invalid Suit\");\n }\n }", "private char getSymbolCharacter(String key, String numsys) {\n return getSymbolString(key, numsys).charAt(0);\n }", "public int mo23298ga() {\n return ((Integer) this.f13965a.mo23249a(C7196pb.f13914zb)).intValue();\n }", "public double getAKA068() {\n return AKA068;\n }", "private byte getValue() {\n\t\treturn value;\n\t}", "String getSymbol();", "String getEACCode();", "public int mo23290ca() {\n return ((Integer) this.f13965a.mo23249a(C7196pb.f13777Ya)).intValue();\n }", "public double getAKA104() {\n return AKA104;\n }", "private int getvalueofUTRANorGSM(int index){\n\t\t\tint value = 0;\n\t\t\tif(strUorG[index] == \"G\"){\n\t\t\t\tvalue = 1;\n\t\t\t}\n\t\t\treturn value;\n\t}", "Character getCode();", "public AVT getLetterValue()\n {\n return m_lettervalue_avt;\n }", "int getSat(){\n return getPercentageValue(\"sat\");\n }", "public int getCVValue(String name){\r\n\t\treturn this.cvMap.getValue(name);\r\n\t}", "public int getValue() { return getValue(OPEN); }", "@VTID(14)\r\n double getValue();", "public int getValue()\n\t{\n\t\treturn value;\n\t}", "public int getValue()\n\t{\n\t\treturn value;\n\t}", "public int getValue()\n\t{\n\t\treturn value;\n\t}", "public int getValue()\r\n/* 21: */ {\r\n/* 22: 71 */ return this.value;\r\n/* 23: */ }", "protected char getSymbol(){\r\n\t\treturn this.symbol;\r\n\t}", "public double getAveragePrice(String symbol);", "Integer getValue();", "Integer getValue();", "public int getValue()\r\n {\r\n return value;\r\n }", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue(){\n\t\treturn value;\n\t}", "BigInteger getValue();", "public int getValue() {\n\t\treturn 3;\n\t}", "public int getValue() {\n\t\treturn this.getValue();\n\t}", "public int getValue() {\r\n\t\treturn this.value;\r\n\t}", "public int getValue() {\r\n\t\treturn this.value;\r\n\t}", "int getCurEXP();", "int getCurEXP();", "public int getValue()\n {\n return value;\n }", "public int getValue() \n {\n return value;\n }", "public String getCardValue() {\n return Cvalue;\n }", "public int getValue() {\n\t\t \treturn ordinal();\n\t\t }", "public int getValue () {\n return value;\n }", "String highValue(String comp) { return null; }", "public Integer getValue();", "String symbol();", "public int getValue() {\r\n return value;\r\n }", "public String getValue() {\r\n return xValue;\r\n }", "public int getValue()\n {\n return value;\n }", "public int getValue() {\n return value;\n }" ]
[ "0.6629569", "0.65408105", "0.64056987", "0.6376918", "0.63394034", "0.63368887", "0.6215636", "0.6151988", "0.61370486", "0.60539675", "0.6038483", "0.5867301", "0.5856643", "0.5856643", "0.58416784", "0.58243054", "0.5814355", "0.57977617", "0.57977617", "0.57977617", "0.57977617", "0.57977617", "0.57682323", "0.57649595", "0.5756778", "0.5718441", "0.5716474", "0.5701567", "0.5700811", "0.56904334", "0.5686856", "0.568653", "0.56831616", "0.56515396", "0.5616059", "0.5616011", "0.55971307", "0.5592534", "0.5590549", "0.55870116", "0.5581654", "0.55742717", "0.5563984", "0.55599004", "0.5558459", "0.55515385", "0.5551141", "0.5537968", "0.5520919", "0.5512663", "0.5503508", "0.5502395", "0.54994744", "0.54948086", "0.54948086", "0.54948086", "0.5491276", "0.54798466", "0.54740834", "0.546575", "0.546575", "0.5461634", "0.54548204", "0.54548204", "0.54548204", "0.54548204", "0.54548204", "0.54548204", "0.54548204", "0.54548204", "0.54548204", "0.54548204", "0.54490584", "0.54490584", "0.54490584", "0.54490584", "0.54490584", "0.54490584", "0.54490584", "0.54490584", "0.5446973", "0.5445612", "0.54436374", "0.54407203", "0.54396534", "0.54396534", "0.5437497", "0.5437497", "0.54373604", "0.5428138", "0.5426963", "0.54254985", "0.5425183", "0.54246676", "0.54244703", "0.5423569", "0.54233575", "0.5416493", "0.5413679", "0.5412504" ]
0.6227575
6
Tests if the specified value is valid.
public static boolean isValidValue(int value) { return (value >= MIN_VALUE && value <= MAX_VALUE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean validateValue(Object value) {\n return true;\n }", "boolean isValidValue(String value);", "public boolean isCValueValid();", "public abstract Value validateValue(Value value);", "protected final boolean isValidValueImpl(String value) {\n if (value.length() != 8) {\n return false;\n }\n\n // Convert all 3 components of the string to integers\n int y, m, d;\n try {\n y = Integer.parseInt(value.substring(0, 4));\n m = Integer.parseInt(value.substring(4, 6));\n d = Integer.parseInt(value.substring(6, 8));\n } catch (NumberFormatException nfe) {\n return false;\n }\n\n // Check that the values are in the correct range\n return (y >= 0) && (m >= 1) && (m <= 12) && (d >= 1) && (d <= 31);\n }", "public abstract boolean isValidValue(String input);", "public boolean isValid(int number)", "@Override\n protected boolean isValueIsValid(String value) {\n return false;\n }", "public boolean check(int value);", "public boolean validate(int value) {\n return (Integer.toString(value).length() == 4) ? true : false;\n }", "protected void validateValue(T value) {\n }", "boolean allowsValue (final String str, final ValidationContext vc)\n {\n try\n {\n getValue (str, vc);\n return true;\n }\n catch (final DatatypeException e)\n {\n return false;\n }\n }", "public boolean checkValueTypeValidity(Object value) {\n\t\treturn propType.checkValueTypeValidity(value);\n\t}", "private boolean isValidValue(double value) {\r\n\t\treturn (value > 0);\r\n\t}", "public static boolean isValidParamValue(int index, int value)\n {\n return (value >= akParams_[index].lowerBound && value <= akParams_[index].upperBound);\n }", "private boolean isInputValid() {\n return true;\n }", "@Override\n protected boolean isValidValue(String value) {\n // Password must be at least 8 characters long and contain at least\n // one number\n //\n if (value != null\n && (value.length() < 8 || !value.matches(\".*\\\\d.*\"))) {\n return false;\n }\n return true;\n }", "@Test\n\tpublic void testIsValid()\n\t{\n\t\tSystem.out.println(\"isValid\");\n\n\t\tUserTypeCode userTypeCode = new UserTypeCode();\n\t\tuserTypeCode.setCode(\"Test\");\n\t\tuserTypeCode.setDescription(\"Test\");\n\n\t\tValidationModel validateModel = new ValidationModel(userTypeCode);\n\t\tvalidateModel.setConsumeFieldsOnly(true);\n\n\t\tboolean expResult = true;\n\t\tboolean result = ValidationUtil.isValid(validateModel);\n\t\tassertEquals(expResult, result);\n\n\t\tvalidateModel = new ValidationModel(userTypeCode);\n\n\t\texpResult = false;\n\t\tresult = ValidationUtil.isValid(validateModel);\n\t\tassertEquals(expResult, result);\n\t}", "boolean valueCheckMatch(String value) {\r\n\t\tif (value.length() > intLength) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (hasRange) {\r\n\t\t\tLong ulongValue = Long.valueOf(Long.parseLong(value));\r\n\t\t\tif ((ulongValue.compareTo(minimum) < 0)\r\n\t\t\t\t\t|| (ulongValue.compareTo(maximum) > 0)) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "protected final void checkValue (String value) throws InvalidArgumentException {\n TreeUtilities.checkAttributeValue (value);\n }", "public boolean isValid(final int value) {\n\t\tif ((value <= this.maxInteger) && (value >= this.minInteger))\n\t\t\treturn true;\n\n\t\treturn false;\n\t}", "public boolean validate() {\n if (value == null || currencyCode == null) {\n return false;\n }\n return true;\n }", "void validateValue(long val) {\n\n if ((min != null && val < min) || (max != null && val > max)) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Value, \");\n sb.append(val);\n sb.append(\", is outside of the allowed range\");\n throw new IllegalArgumentException(sb.toString());\n }\n }", "public boolean isInputValid()\n {\n String[] values = getFieldValues();\n if(values[0].length() > 0 || values[1].length() > 0 || values[2].length() > 0)\n return true;\n else\n return false;\n }", "@Test\n public void testValidateValue()\n {\n FacesContext context = mock(FacesContext.class);\n UIComponent component = mock(UIComponent.class);\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.INTEGER);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n \n try\n {\n m_SUT.validateValue(context, component, \"not int\");\n fail(\"Validation exception should be thrown.\");\n }\n catch (ValidatorException exception)\n {\n //ExpectedException\n assertThat(exception.getFacesMessage().getSummary(), is(\"Value Invalid Type!\"));\n }\n \n try\n {\n m_SUT.validateValue(context, component, \"34\");\n }\n catch (ValidatorException exception)\n {\n fail(\"Validation should have passed and therefore no exception should be thrown.\");\n }\n }", "public void validate( Object object, Object value )\n //throws MetaException\n {\n String mask = (String) getAttribute( ATTR_MASK );\n String msg = getMessage( \"Invalid value format\" );\n\n String val = (value==null)?null:value.toString();\n\n if ( !GenericValidator.isBlankOrNull( val )\n && !GenericValidator.matchRegexp( val, mask )) {\n throw new InvalidValueException( msg );\n }\n }", "void checkValid();", "public boolean isValid();", "public boolean isValid();", "public boolean isValid();", "public boolean isValid();", "public boolean isValid();", "protected abstract boolean isInputValid();", "public static boolean numberFormatIsValid(String value) {\n return value.matches(\"^(([0-9]{1,3}[.][0-9]{1,2})|([0-9]{1,3}))$\");\n }", "Boolean getIsValid();", "public void validate(DataRecord value) {\n\r\n\t}", "private boolean isAmountValid(String amount) {\n return Integer.parseInt(amount) > 0;\n }", "public boolean checkValidity() {\n String sep = DECIMAL_FORMAT.getDecimalFormatSymbols().getDecimalSeparator() + \"\";\n String name = nameField.getText().trim();\n String priceText = valueField.getText().trim();\n if (name.equals(\"\") || priceText.equals(\"\")) {\n Utils.showWarningMessage(getRootPane(), \"The fields can not be empty!\");\n return false;\n }\n String price = priceText.replace(sep, \"\");\n if (!price.matches(\"^[0-9]+$\")) {\n Utils.showWarningMessage(getRootPane(), \"Please enter a valid price!\");\n return false;\n }\n int priceInt = Integer.parseInt(price);\n if (priceInt == 0) {\n Utils.showWarningMessage(getRootPane(), \"The price can not be 0.\");\n return false;\n }\n return true;\n }", "public void setValidType(int value) {\r\n this.validType = value;\r\n }", "public boolean isValid()\n\t{\n\t\treturn false;\n\t}", "boolean isValid();", "boolean isValid();", "boolean isValid();", "boolean isValid();", "boolean isValid();", "boolean checkValidity();", "public boolean checkValues(String name, String value, boolean string)\n\t{\n\t\t\n\t\tif (string)\n\t\t{\n\t\t\tif ((name+\"...\").equals(value) || (value.equals(\"\")))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (name.equals(\"Phone\"))\n\t\t\t{\n\t\t\t\tif (value.length() != 8 || value.charAt(0) == '0')\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry\n\t\t\t{\n\t\t\t\tint input = Integer.parseInt(value);\n\t\t\t\tif(input < 0)\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private boolean checkValue(){\n\t\tfor (int i = 0; i <binary.length();i++){\n\t\t\tif(Character.getNumericValue(binary.charAt(i))>'1' || binary.length()>32 || binary.length()\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t%4 != 0){\n\t\t\t\tSystem.out.println(\"Invalid Input\");\n\t\t\t\tpw.println(\"Invalid Input\");\n\t\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\t\t\n\t}", "public boolean isValid(){\r\n\t\t\r\n\t\t// TODO\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public static boolean isPSNValid(String value)\n {\n boolean valid = true;\n if (value.trim().length() != 2)\n {\n valid = false;\n }\n if (valid)\n {\n try\n {\n int parsedValue = Integer.parseInt(value);\n if (parsedValue < 0 || parsedValue > 99)\n {\n valid = false;\n }\n }\n catch (Exception ex)\n {\n valid = false;\n }\n }\n return valid;\n }", "public boolean isValid(int value){\n\t\tif(value<1 || value>size*size)\n\t\t\treturn false;\n\t\tint x = (value-1)/size;\n\t\tint y = (value-1)%size;\n\t\tif(board[x][y] == '\\u0000')\n\t\t\treturn true;\n\t\treturn false;\n\t}", "private boolean isValidInput() {\n\t\treturn true;\n\t}", "private boolean isEditValid ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint value = Integer.parseInt (super.getText ());\r\n\t\t\tboolean isValid = isInsideValidRange (value);\r\n\r\n\t\t\tif (isValid)\r\n\t\t\t{\r\n\t\t\t\tcommitEdit (value);\r\n\t\t\t}\r\n\r\n\t\t\treturn (isValid);\r\n\t\t}\r\n\t\tcatch (NumberFormatException e)\r\n\t\t{\r\n\t\t\t// Parse failed; therefore invalid\r\n\t\t\treturn (false);\r\n\t\t}\r\n\t}", "public boolean isValid(final float value) {\n\t\tif ((value <= this.maxFloat) && (value >= this.minFloat))\n\t\t\treturn true;\n\n\t\treturn false;\n\t}", "public boolean isValid() {\r\n/* */ try {\r\n/* 326 */ validate();\r\n/* 327 */ } catch (ValidationException vex) {\r\n/* 328 */ return false;\r\n/* */ } \r\n/* 330 */ return true;\r\n/* */ }", "public void setValid(int valid) {\n this.valid = valid;\n }", "public boolean isValid(){\n\t\treturn true;\n\t}", "public boolean isValid(){\n\t\treturn valid;\n\t}", "boolean getValid();", "public static boolean isValue(String v) {\n return isNotBlank(v);\n }", "public boolean isValid() {\n return true;\n }", "private boolean isInsideValidRange (int value)\r\n\t{\r\n\t\treturn (value > m_lowerBounds && value <= m_upperBounds);\r\n\t}", "public boolean isValid() {\n return true;\n }", "public boolean isValid() {\n return true;\n }", "private static void checkValidity(boolean valid) throws InvalidExpression\r\n {\r\n if(!valid)\r\n {\r\n throw new InvalidExpression(\"The expression entered is not valid\");\r\n }\r\n }", "public boolean isValid() {\n\t\treturn valid;\n\t}", "private boolean isValidContextValue(String value) {\n\t\t// At the moment accept context values just composed by letters, numbers, space and dash (for UUID)\n\t\t// this is mainly to avoid the usage of strange characters (like semicolon or quotes) opening the door for SQL injection\n\t\tfinal String sanitize = \"^[A-Za-z0-9\\\\s\\\\-]+$\";\n\t\treturn Pattern.matches(sanitize, value);\n\t}", "public Boolean valid(String value) {\n return needle.contains(value);\n }", "public boolean isValid() {\n \t\treturn valid;\n \t}", "boolean isValue();", "@Test\n public void testIsValidInteger() {\n System.out.println(\"isValidInteger\");\n String integer = \"6.8\";\n boolean expResult = false;\n boolean result = ValidVariables.isValidInteger(integer);\n assertEquals(expResult, result);\n }", "@POST\n public FormValidation doCheckSpotBlockReservationDurationStr(@QueryParameter String value) {\n if (value == null || value.trim().isEmpty())\n return FormValidation.ok();\n try {\n int val = Integer.parseInt(value);\n if (val >= 0 && val <= 6)\n return FormValidation.ok();\n } catch (NumberFormatException nfe) {\n }\n return FormValidation.error(\"Spot Block Reservation Duration must be an integer between 0 & 6\");\n }", "private boolean isValidValue(String val) {\n for (int i = 2; i <= 10; i++) {\n if (val.equals(i + \"\")) {\n return true;\n }\n }\n return (val.equals(\"J\") || val.equals(\"Q\") || val.equals(\"K\") || val.equals(\"A\"));\n }", "public boolean isInvalid() {\n\t\treturn invalid;\n\t}", "public boolean isValid() {\n\t\treturn(m_valid);\n\t}", "private boolean validateInput() {\n\tboolean valid = false;\n\ttry {\n\t if (paymentText == null | paymentText.getValue() == \"\") {\n\t\tpaymentText.focus();\n\t\tthrow new NullPointerException(\"paymentText fehlt\");\n\t }\n\t if (paymentBetrag == null | paymentBetrag.getValue() == \"\") {\n\t\tpaymentBetrag.focus();\n\t\tthrow new NullPointerException(\"paymentBetrag fehlt\");\n\t }\n\t if (!paymentBetrag.isEmpty()) {\n\t\t@SuppressWarnings(\"unused\")\n\t\tdouble d = Double.parseDouble(paymentBetrag.getValue());\n\t }\n\t // seems that everything was OK\n\t valid = true;\n\t} catch (NullPointerException e) {\n\t System.out.println(\"PaymentWindow - \" + e);\n\t} catch (NumberFormatException e) {\n\t // entered value is no number\n\t paymentBetrag.focus();\n\t}\n\treturn valid;\n }", "public boolean isValid()\n {\n return valid;\n }", "public static boolean isStringAValidUuid(String value){\n boolean isValidUuid;\n try{\n UUID uuid = UUID.fromString(value);\n isValidUuid = true;\n } catch (IllegalArgumentException exception){\n isValidUuid = false;\n }\n return isValidUuid;\n }", "public boolean isValid() {\n // TODO: Question 2.2.\n \n return false;\n }", "private boolean validarNumDistanc(double value) {\n\n String msjeError;\n if (value < 0) {\n\n msjeError = \"Valor No Aceptado\";\n this.jLabelError.setText(msjeError);\n this.jLabelError.setForeground(Color.RED);\n this.jLabelError.setVisible(true);\n\n this.jLabel5.setForeground(Color.red);\n return false;\n } else {\n\n this.jLabel5.setForeground(jlabelColor);\n this.jLabelError.setVisible(false);\n return true;\n }\n }", "private void validateValue()\r\n {\r\n try\r\n {\r\n Long.parseLong(getText());\r\n }\r\n catch (NumberFormatException ex)\r\n {\r\n setText(\"\");\r\n }\r\n \r\n }", "public boolean isValid()\n {\n return valid;\n }", "boolean isValid(T t);", "public Builder setValid(boolean value) {\n \n valid_ = value;\n onChanged();\n return this;\n }", "public boolean isValid() {\n\t\treturn false;\n\t}", "public boolean isValid() {\n return valid;\n }", "public boolean isValid() {\n return valid;\n }", "public boolean isValid() {\n return valid;\n }", "public boolean valid() {\n return valid;\n }", "public boolean isPositionValid(int row, int col, int value){\n return !isInRow(row, value) && !isInCol(col, value) && !isInBox(row, col, value);\n }", "public boolean isValid(){\n\t\treturn validBit;\n\t}", "protected boolean isValid() {\n \t\treturn valid;\n \t}", "@Override\r\n\tpublic boolean isValid() {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic boolean isValid() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isValid() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isValid() {\n\t\treturn false;\n\t}", "protected void verifyValidity(float healthValue) {\n if (healthValue > 1024.0f || healthValue <= 0.0f) {\n throw new IllegalArgumentException(\"Invalid health value: \" + healthValue);\n }\n }", "public boolean valid(Object obj) {\n return !validator.valid(obj);\n }", "@Override\r\n\tpublic boolean validate(String num) {\n\t\treturn false;\r\n\t}", "public abstract void validate(String value) throws DatatypeException;" ]
[ "0.78386694", "0.76377815", "0.7255178", "0.7038501", "0.7002364", "0.6954437", "0.67843", "0.6775967", "0.661243", "0.66085964", "0.6552152", "0.6518056", "0.6427711", "0.6299075", "0.6285085", "0.62496513", "0.6245355", "0.6241561", "0.6220122", "0.6206871", "0.6191267", "0.61824775", "0.6154313", "0.6150484", "0.614373", "0.6140996", "0.6137293", "0.61270225", "0.61270225", "0.61270225", "0.61270225", "0.61270225", "0.61214", "0.612044", "0.61108315", "0.6099746", "0.6055431", "0.60548234", "0.6008018", "0.60024273", "0.59896076", "0.59896076", "0.59896076", "0.59896076", "0.59896076", "0.5981747", "0.59813297", "0.59789795", "0.5964519", "0.5949116", "0.5948612", "0.59192324", "0.59153974", "0.5914003", "0.59119666", "0.59075963", "0.59063476", "0.59010965", "0.58900493", "0.5884275", "0.588323", "0.5879509", "0.58739614", "0.58739614", "0.58627194", "0.58614445", "0.58552897", "0.58475286", "0.5842182", "0.58349854", "0.58277404", "0.5824532", "0.58223647", "0.5816313", "0.5811289", "0.5804664", "0.5800231", "0.579965", "0.57904357", "0.57830024", "0.5782593", "0.5779811", "0.5767972", "0.57581615", "0.5736831", "0.5736725", "0.5736725", "0.5736725", "0.5726338", "0.5722914", "0.5719664", "0.57169294", "0.57087934", "0.57081026", "0.57081026", "0.57081026", "0.5707454", "0.5706032", "0.56982046", "0.5695612" ]
0.63883656
13
Gets the total number of cards.
public static int getDeckSize() { return DECK_SIZE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getTotalCards() {\n\t\treturn cards.size();\n\t}", "public int getAmountOfCards() {\n\t\t\n\t\treturn myCards.size();\n\t\t\n\t}", "public int getCardCount() {\n return cardSet.totalCount();\n }", "public int numOfCards() {\n return cards.size();\n }", "public int getNumberOfCards()\n\t{\n\t\treturn numCards;\n\t}", "public int getCardCount() {\r\n\t\treturn this.cards;\r\n\t}", "public int getNumberOfCards() {\r\n\t\treturn numberOfCards;\r\n\t}", "public int getCardCount() {\n\t\treturn this.cardsInhand.size();\n\t}", "public int getTotalRegularCards() {\n return StatisticsHelper.sumMapValueIntegers(statistics.getCardsByWins());\n }", "public int size() {\r\n\t\treturn cards.size();\r\n\t}", "public int getNumCards()\r\n {\r\n return numCards;\r\n }", "public int getNumCards() {\n return this.numCards;\n }", "public int getCardCount() {\r\n return cardCount;\r\n\t}", "public int getTotalGoldenCards() {\n return StatisticsHelper.sumMapValueIntegers(statistics.getGoldCardsByWins());\n }", "public int getSize(){\r\n\t\treturn cards.size();\r\n\t}", "public int length()\n {\n return cards.size();\n }", "private Integer[] getNumberOfCards() {\n Integer[] numberOfCards = new Integer[players.length];\n\n for (int i = 0; i < players.length; i++) {\n numberOfCards[i] = players[i].getHand().length;\n }\n\n return numberOfCards;\n }", "public int size()\n\t{\n\t\treturn card.size();\n\t}", "public int getNumCards() {\n return this.topCard;\n }", "int getNumCards();", "public int getCountTradeCards() {\r\n\t\treturn countTradeCards;\r\n\t}", "public int getNumDevCards() {\n \t\tint count = 0;\n \t\tfor (int i = 0; i < cards.length; i++)\n \t\t\tcount += cards[i];\n \n \t\treturn count + newCards.size();\n \t}", "public int cardsRemaining() {\n return deck.cardsRemaining();\n }", "public int remaining() {\r\n\t\treturn cards.size();\r\n\t}", "public int getHandTotal () {\n int handTotal = 0;\n int aceCount = 0;\n for (Card e : hand) {\n if (e.returnRankValue() >= 10) {\n handTotal += 10;\n } else if (e.returnRankValue() == 1) {\n ++aceCount;\n } else { handTotal += e.returnRankValue(); }\n }\n\n /* Calculate the worth of aces after all other cards have been counted */\n for (int i = 0; i < aceCount; ++i) {\n if (handTotal+11 > 21) {\n handTotal += 1;\n } else {\n handTotal += 11;\n }\n }\n\n return handTotal;\n }", "public int count() {\n\t\t\tassert wellFormed() : \"invariant false on entry to count()\";\n\n\t\t\tint count = 0;\n\t\t\tfor(Card p = this.first; p != null; p = p.next) {\n\t\t\t\t++count;\n\t\t\t}\n\n\t\t\treturn count; // TODO\n\t\t}", "public int getSizeOfDeck(){\n return cardDeck.size();\n }", "public static int getNumCardsPerHand()\n {\n return NUM_CARDS_PER_HAND;\n }", "public int GetDeckSize(){\n System.out.println(\"DECK \" + deck.size());\n\n return deck.size();\n }", "public int remainingCards() {\n return this.cards.length - this.topCardIndex ;\n }", "public int receiveNumCards() {\n try {\n return dIn.readInt();\n } catch (IOException e) {\n System.out.println(\"Number of cards not received\");\n e.printStackTrace();\n }\n return 0;\n }", "public int getTotalCount() {\n return totalCount;\n }", "public int cardsLeft() {\n return deck.size();\n }", "public int size() {\n return deck.size();\n }", "public static double getCardCounter() {\n\t\treturn cardCounter;\n\t}", "public int size()\r\n\t{\r\n\t\treturn deck.size();\r\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 synchronized int getNumberOfItems(){\n int totalItems=0;\n \n for(ShoppingCartItem item : getItems()){\n //we sum the quantity of products for each item\n totalItems += item.getQuantity();\n }\n \n return totalItems;\n }", "public int CardsOnDeck()\n\t{\n\t\treturn cardNumber;\n\t}", "public int getCardCount() {\n \t\treturn dupCount;\n \t}", "public int size() {\n return this.deck.size();\n }", "public int getHandTotal()\n\t{\n\t\tint total = 0;\n\t\tfor (Card c : hand)\n\t\t{\n\t\t\ttotal += c.getValue();\n\t\t}\n\t\treturn total;\n\t}", "public int getCardsRemaining() {\n\n\treturn cardsLeft;\n\n }", "public int leaderDeckSize(){\n return deckLeaderCard.size();\n }", "public int size() {\r\n\t\treturn seedCards.size();\r\n\t}", "public Integer getTotalItemCount() {\n return totalItemCount;\n }", "public int deckLength() {\n\t\treturn this.deck.size();\n\t}", "public int getDeckSize()\n\t{\n\t\treturn deck.size();\n\t}", "@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}", "@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}", "public int getTotal () {\r\n\t\treturn total;\r\n\t}", "public int getTotal () {\r\n\t\treturn total;\r\n\t}", "public int getTotal() {\n\t\treturn total;\n\t}", "public int getNumCars() {\r\n\t\treturn (numCars + numSmallCars);\r\n\t}", "public int getTotal() {\n\t\t\treturn total;\n\t\t}", "public int getTotal () {\n\t\treturn total;\n\t}", "public int getTotal()\n\t{\n\t\treturn total;\n\t\t\n\t}", "public int totalWorth() {\n\t\tint val = 0;\n\t\tfor (Card c : cards) {\n\t\t\tval += c.value();\n\t\t}\n\t\treturn val;\n\t}", "public int getCount() \r\n\t{\r\n\t\tSystem.out.print(\"The number of book in the Array is \");\r\n\t\treturn numItems;\r\n\t\t\r\n\t}", "public int deckSize() {\n\t\treturn size;\n\t}", "public int getTotal()\r\n\t{\r\n\t\t// the running total of points in the hand\r\n\t\tint sum = 0;\r\n\r\n\t\t// count of the number of aces in the hand, to be processed later\r\n\t\tint aces = 0;\r\n\t\t\r\n\t\t// evaluates each card in the hand\r\n\t\tfor (int i = 0; i < handCount; i++)\r\n\t\t{\r\n\t\t\tint value = 0;\r\n\t\r\n\t\t\t/* while each card stores a value for both its suite and rank, this method is only\r\n\t\t\tconcerned with rank, and thus only examines the first character */\r\n\t\t\tchar thisCard = pCards[i].charAt(0);\r\n\t\t\t\r\n\t\t\tswitch(thisCard)\r\n\t\t\t{\r\n\t\t\t\tcase '2':\tvalue = 2;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase '3':\tvalue = 3;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase '4':\tvalue = 4;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase '5':\tvalue = 5;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase '6':\tvalue = 6;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase '7':\tvalue = 7;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase '8':\tvalue = 8;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase '9':\tvalue = 9;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase '1':\tvalue = 10;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'J':\tvalue = 10;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'Q':\tvalue = 10;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'K':\tvalue = 10;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'A':\taces++;\r\n\t\t\t\t\t\t\t\tvalue = 0;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t} // end switch\r\n\t\r\n\t\t\tsum += value;\r\n\t\t} // end for\r\n\t\t\r\n\t\t// checks if any aces exist\r\n\t\tif (aces > 0)\r\n\t\t{\r\n\t\t\t// The value of all aces in the hand, the first valued at 11 and all subsequent aces valued at 1\r\n\t\t\tint aceTotal = 11 + (aces - 1);\r\n\t\t\r\n\t\t\t/* if this total would cause the player to bust, the aces are all added at value 1.\r\n\t\t\tOtherwise, the first is added at value of 11, and the others at value of 1. */\r\n\t\t\tif ( sum <= (BlackJackGame.BUST_SCORE - aceTotal ) )\r\n\t\t\t{\r\n\t\t\t\tsum = sum + aceTotal;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tsum = sum + aces;\r\n\t\t\t}\r\n\t\t} // end if\r\n\t\r\n\t\treturn sum;\r\n\t}", "public Long getTotalCount() {\r\n return totalCount;\r\n }", "int getCardsRemaining(int player) {\n return players[player].getHand().size();\n }", "public int getClipCardUses() {\n\t\tint d = 0;\n\n\t\tfor (Order o : orders) {\n\t\t\tfor (Payment p : o.getPayments()) {\n\t\t\t\tif (p.getPaymentType() == PaymentType.CLIP_CARD) {\n\t\t\t\t\td += p.getAmount();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn d;\n\t}", "public int getTotalOfGames() {\n return statistics.get(TypeOfGames.SIMGAME).getNumberOfGames()\n + statistics.get(TypeOfGames.EASYCOMPUTERGAME).getNumberOfGames()\n + statistics.get(TypeOfGames.HARDCOMPUTERGAME).getNumberOfGames();\n }", "public int getCount(){\n int c = 0;\n for(String s : this.counts){\n c += Integer.parseInt(s);\n }\n return c;\n }", "public int getCount() {\n\t\treturn Dispatch.get(object, \"Count\").getInt();\n\t}", "public int listAmount() {\n return count;\n }", "public int getTotal() {\n return total;\n }", "public int getTotal() {\n return total;\n }", "int getAcksCount();", "int getAcksCount();", "int getTotalCount();", "public int getTotalCoins() {\r\n\t\treturn goods.get(Resource.COIN);\r\n\t}", "public static int getCount(char type) {\n if (type == CARD) {\n return globalCardCount;\n } else {\n return globalRiderCount;\n }\n }", "public final int count() {\n\t\tCountFunction function = new CountFunction();\n\t\teach(function);\n\t\treturn function.getCount();\n\t}", "public int getHandSize() {\r\n\t\treturn playerCards.size();\r\n\t}", "public long getTotalCount() {\n return _totalCount;\n }", "public int getTotal() {\n\t\treturn this.total;\n\t}", "public int getTotalChips() {\n int size1 = stackA.getNumChips();\n int size2 = stackB.getNumChips();\n int size3 = stackC.getNumChips();\n return size1 + size2 + size3 ;\n }", "@Override\r\n\tpublic int[] getTicketCount() {\n\t\tint[] result = new int[2];\r\n\t\tList<FeeRecord> card = feeRecordDao.getCardRecords();\r\n\t\tList<FeeRecord> cash = feeRecordDao.getCashRecords();\r\n\t\tresult[0] = card.size();\r\n\t\tresult[1] = cash.size();\r\n\t\treturn result;\r\n\t}", "public int getTotal () {\n return total;\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 }", "public Long getTotalCount() {\n\t\treturn this.totalCount;\n\t}", "public int getTotalItems()\n {\n return totalItems;\n }", "public int howManyPieces() {\n int totalPieces = 0;\n // for each item in stock\n for (int i = 0; i < this._noOfItems; i++) {\n // add the quantity of the item to the sum\n totalPieces += this._stock[i].getQuantity();\n }\n // and return the total of quantities\n return totalPieces;\n }", "public int getCount() {\n return definition.getInteger(COUNT, 1);\n }", "@Override\n public int getShoeSize() {\n return this.cards.size();\n }", "public Integer score() {\r\n List<Card> aceCards = new ArrayList<>();\r\n int score = 0;\r\n for (Card card : cards) {\r\n if (card.getValue().equals(CardValueType.JACK) ||\r\n card.getValue().equals(CardValueType.QUEEN) ||\r\n card.getValue().equals(CardValueType.KING)) {\r\n score += 10;\r\n } else if (card.getValue().equals(CardValueType.ACE)) {\r\n aceCards.add(card);\r\n } else {\r\n score += Integer.parseInt(card.getValue().getShortName());\r\n }\r\n }\r\n if (!aceCards.isEmpty()) {\r\n if (score + aceCards.size() > 11) {\r\n score += aceCards.size();\r\n } else {\r\n score += 11;\r\n score += (aceCards.size() - 1);\r\n }\r\n }\r\n return score;\r\n }", "public int totalGames() {\n return wins + losses + draws;\n }", "public int count() {\n\t\treturn sizeC;\n\t}", "public int total() {\n return _total;\n }", "public int getTotal() {\n return total;\n }", "public final int size() {\n int size = 0;\n final Iterator iterator = this.iterator();\n while (iterator.hasNext()) {\n size++;\n iterator.next();\n }\n return size;\n }", "public int getTotalCount() {\r\n return root.getTotalCount();\r\n }", "public int getTotRuptures();", "public int getSize() {\n return pokerList.size();\n }", "public static int totalSupply() {\n return totalSupplyGet();\n }", "public int getNumberOfBeds() {\n\t\tint total;\n\t\ttotal = getNbrOfBeds()[0] + getNbrOfBeds()[1] + getNbrOfBeds()[2];\n\t\treturn total;\n\t}", "@Override\n\tpublic int countBySeatIdAndCardNum(DgCard card) {\n\t\treturn dgCardMapper.countBySeatIdAndCardNum(card);\n\t}", "public static int getTotalSessionCount() {\n\t\treturn (totalSessionCount);\n\t}" ]
[ "0.87018406", "0.8466331", "0.83435065", "0.8064679", "0.7930525", "0.7929112", "0.7888602", "0.7759633", "0.7648862", "0.7586701", "0.75692093", "0.7553767", "0.7484497", "0.7457259", "0.74189514", "0.73934495", "0.7363299", "0.7301298", "0.7247406", "0.72130066", "0.7205486", "0.7161407", "0.7050205", "0.70029145", "0.69927615", "0.69902784", "0.69819003", "0.69542", "0.6943467", "0.6941532", "0.68764067", "0.68742293", "0.6842121", "0.68032765", "0.6782074", "0.67789274", "0.6773932", "0.6760585", "0.67275053", "0.67050666", "0.6673443", "0.6629279", "0.66257215", "0.6620824", "0.6619033", "0.6560667", "0.6499323", "0.64860284", "0.6485064", "0.6485064", "0.6477575", "0.6477575", "0.6462689", "0.646254", "0.645661", "0.64560264", "0.64558923", "0.64384913", "0.64371", "0.64274657", "0.6425845", "0.642186", "0.6419547", "0.6418782", "0.6411213", "0.64061254", "0.64037883", "0.64024454", "0.6397034", "0.6397034", "0.6395847", "0.6395847", "0.6392878", "0.6382668", "0.6382163", "0.63722134", "0.63628703", "0.6353527", "0.63350004", "0.63305336", "0.6322559", "0.6320924", "0.6313774", "0.63130873", "0.6309948", "0.63025457", "0.62854785", "0.62684435", "0.62483585", "0.6222334", "0.6199187", "0.6195949", "0.6194397", "0.61780363", "0.6168204", "0.6166329", "0.6166219", "0.6161256", "0.61522514", "0.6140887", "0.61329895" ]
0.0
-1
Using a (almost) nice DSL we can configure the router. The second argument NinjaModuleDemoRouter contains all routes of a submodule. By simply injecting it we activate the routes.
@Override public void init(Router router) { // ///////////////////////////////////////////////////////////////////// // some default functions // ///////////////////////////////////////////////////////////////////// // simply render a page: router.GET().route("/").with(ApplicationController.class, "index"); router.GET().route("/examples").with(ApplicationController.class, "examples"); // render a page with variable route parts: router.GET().route("/user/{id}/{email}/userDashboard").with(ApplicationController.class, "userDashboard"); router.GET().route("/validation").with(ApplicationController.class, "validation"); // redirect back to / router.GET().route("/redirect").with(ApplicationController.class, "redirect"); router.GET().route("/session").with(ApplicationController.class, "session"); router.GET().route("/flash_success").with(ApplicationController.class, "flashSuccess"); router.GET().route("/flash_error").with(ApplicationController.class, "flashError"); router.GET().route("/flash_any").with(ApplicationController.class, "flashAny"); router.GET().route("/htmlEscaping").with(ApplicationController.class, "htmlEscaping"); // ///////////////////////////////////////////////////////////////////// // Json support // ///////////////////////////////////////////////////////////////////// router.GET().route("/api/person.json").with(PersonController.class, "getPersonJson"); router.POST().route("/api/person.json").with(PersonController.class, "postPersonJson"); router.GET().route("/api/person.xml").with(PersonController.class, "getPersonXml"); router.POST().route("/api/person.xml").with(PersonController.class, "postPersonXml"); // ///////////////////////////////////////////////////////////////////// // Form parsing support // ///////////////////////////////////////////////////////////////////// router.GET().route("/contactForm").with(ApplicationController.class, "contactForm"); router.POST().route("/contactForm").with(ApplicationController.class, "postContactForm"); // ///////////////////////////////////////////////////////////////////// // Cache support test // ///////////////////////////////////////////////////////////////////// router.GET().route("/test_caching").with(ApplicationController.class, "testCaching"); // ///////////////////////////////////////////////////////////////////// // Lifecycle support // ///////////////////////////////////////////////////////////////////// router.GET().route("/udpcount").with(UdpPingController.class, "getCount"); // ///////////////////////////////////////////////////////////////////// // Route filtering example: // ///////////////////////////////////////////////////////////////////// router.GET().route("/filter").with(FilterController.class, "filter"); router.GET().route("/teapot").with(FilterController.class, "teapot"); // ///////////////////////////////////////////////////////////////////// // Route filtering example: // ///////////////////////////////////////////////////////////////////// router.GET().route("/injection").with(InjectionExampleController.class, "injection"); // ///////////////////////////////////////////////////////////////////// // Async example: // ///////////////////////////////////////////////////////////////////// router.GET().route("/async").with(AsyncController.class, "asyncEcho"); // ///////////////////////////////////////////////////////////////////// // I18n: // ///////////////////////////////////////////////////////////////////// router.GET().route("/i18n").with(I18nController.class, "index"); router.GET().route("/i18n/{language}").with(I18nController.class, "indexWithLanguage"); // ///////////////////////////////////////////////////////////////////// // Upload showcase // ///////////////////////////////////////////////////////////////////// router.GET().route("/upload").with(UploadController.class, "upload"); router.POST().route("/uploadFinish").with(UploadController.class, "uploadFinish"); //this is a route that should only be accessible when NOT in production // this is tested in RoutesTest if (!ninjaProperties.isProd()) { router.GET().route("/_test/testPage").with(ApplicationController.class, "testPage"); } router.GET().route("/assets/.*").with(AssetsController.class, "serve"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setup(HttpRouting.Builder routing);", "public void addRoutes(Routing routing) {\n\n // Map to /foo\n routing.route(path(\"foo\", new Handler() {\n public void handle(Exchange exchange) {\n exchange.getResponse().send(\"from the foo handler\");\n }\n }));\n\n // Map to /bar\n routing.route(path(\"bar\", new Handler() {\n public void handle(Exchange exchange) {\n exchange.getResponse().send(\"from the bar handler\");\n }\n }));\n\n // Set up a nested routing block, where\n routing.route(path(\"nested\", new RoutingBuilder<Routing>() {\n public void addRoutes(Routing routing) {\n\n // Map to /nested/*/*\n routing.route(exactPath(\":var1/:var2\", new Handler() {\n public void handle(Exchange exchange) {\n // The path tokens are the :var1 and :var2 path components above\n Map<String, String> pathTokens = exchange.getPathTokens();\n exchange.getResponse().send(\"from the nested handler, var1: \" + pathTokens.get(\"var1\") + \", \" + pathTokens.get(\"var2\"));\n }\n }));\n }\n }));\n\n // Map a dependency injected handler to\n routing.route(path(\"injected\", handler(MyHandler.class)));\n\n // Bind the /static app path to the src/ratpack/assets dir\n // Try /static/logo.png\n routing.route(assetsPath(\"static\", \"assets\", new Handler() {\n public void handle(Exchange exchange) {\n exchange.getResponse().status(404).send();\n }\n }));\n\n // If nothing above matched, we'll get to here.\n routing.route(new Handler() {\n public void handle(Exchange exchange) {\n exchange.getResponse().send(\"root handler!\");\n }\n });\n }", "public TestRouter() throws IOException {\n super( PORT );\n addDefaultRoutes();\n }", "public void configureRoutes() {\n Service http = Service.ignite();\n\n http.port( 6001 );\n\n http.after( ( (request, response) -> response.type(\"application/json\" ) ) );\n\n http.post( \"/accounts/authenticate\", this.authRoutes.authenticate );\n http.post( \"/restaurants/authenticate\", this.authRoutes.authenticateRestaurant );\n\n http.post( \"*\", (req, res) -> {\n res.status( HttpStatus.NOT_FOUND_404 );\n\n return \"{}\";\n } );\n }", "public Restlet createInboundRoot() {\n\t\t\n\t\tRouter baseRouter = new Router(getContext());\n\t\tDemoResource demoRestlet = new DemoResource(\n getContext());\n\t\tdemoRestlet.setApiInboundRoot(this);\n attachSwaggerDocumentationRestlets(baseRouter, \"/api-docs\",\n \t\tdemoRestlet, \"/api-docs/demo\", demoRestlet);\n return baseRouter;\n }", "public interface BlogLibTestMasterAppModule extends ApplicationModule {\r\n String helloMasterModule(String param);\r\n}", "@Override\n\tpublic void configure() throws Exception {\n\t\t\n\t\tProducerTemplate camelTemplate = getContext().createProducerTemplate();\n\n\t\tCamelHelper.getInstance().setHttpCamelTemplate(camelTemplate);\n\n\t\t//endpoint 설정\n\t\tfrom(\"jetty:http://0.0.0.0:9999\"+\"/testApi\")\n\t\t .routeId(\"HTTP_TEST_API\")\n\t\t .process(testProcessor)\n\t\t;\n\t}", "@Override\r\n \t\tpublic void configRoute(Routes me) {\n \t\t\tsuper.configRoute(me);\r\n \t\t\tme.add(\"/\", TestController.class, \"\");\r\n \t\t}", "@Override\n public void startUp(FloodlightModuleContext context) {\n restApi.addRestletRoutable(this);\n }", "public interface IRouter {\n\n void start(RouterContext routerContext);\n\n}", "public interface Router {\n\t/**\n\t * @return\n\t * \t\trouting target information or null, if the URI didn't match\n\t */\n\tpublic RoutingTarget routeUri(HttpServletRequest request);\n\t\n\t/**\n\t * routers should be able to access the configuration and path resolver\n\t */\n\tpublic void setConfig(WeberknechtConf conf, AreaPathResolver areaPathResolver);\n}", "@Override public void startUp(FloodlightModuleContext context) {\n restApi.addRestletRoutable(this);\n\n }", "public Router getRouter();", "public void configure() {\n from(\"as2://\" + PATH_PREFIX + \"/listen?requestUriPattern=/\")\n .to(\"mock:as2RcvMsgs\");\n\n // test route processing exception\n Processor failingProcessor = new Processor() {\n public void process(org.apache.camel.Exchange exchange) throws Exception {\n throw new Exception(PROCESSOR_EXCEPTION_MSG);\n }\n };\n from(\"as2://\" + PATH_PREFIX + \"/listen?requestUriPattern=/process_error\")\n .process(failingProcessor)\n .to(\"mock:as2RcvMsgs\");\n\n // test route for listen with custom MDN parameters\n from(\"as2://\" + PATH_PREFIX\n + \"/listen?requestUriPattern=/mdnTest&from=MdnTestFrom&subject=MdnTestSubjectPrefix\")\n .to(\"mock:as2RcvMsgs\");\n }", "@Override\n\tpublic void configure() throws Exception {\n\t\tSystem.out.println(\"Hello Camel Java DSL\");\n\t\t\n\t}", "public TestRouter( final int port ) throws IOException {\n super( port );\n addDefaultRoutes();\n }", "public Route routes() {\n return concat(\n pathPrefix(\"hello\", () ->\n concat(\n getHello(),\n path(PathMatchers.segment(), message -> concat(\n getAck(message)\n )\n )\n )\n ),\n pathPrefix(\"mission\", this::handleMission)\n );\n }", "public int initializeRouteEnvironment(int level);", "@Override\r\n protected void configure() {\r\n bindRequiredName(\"LTAS_SERVICE_NAME\", \"LTAS_SERVICE_NAME\");\r\n bindRequiredName(\"RABBITMQ_HOST\", \"RABBITMQ_HOST\");\r\n bindRequiredName(\"RABBITMQ_PORT\", \"RABBITMQ_PORT\");\r\n bindRequiredName(\"RABBITMQ_USERNAME\", \"RABBITMQ_USERNAME\");\r\n bindRequiredName(\"RABBITMQ_PWD\", \"RABBITMQ_PWD\");\r\n bindRequiredName(\"RABBITMQ_VIRTUALHOST\", \"RABBITMQ_VIRTUALHOST\");\r\n\r\n bind(RabbitMQAPI.class);\r\n bind(RabbitMQService.class);\r\n\r\n }", "@Override\n\tprotected void configure() {\n\t\tbind(EventBus.class).to(SimpleEventBus.class).in(Singleton.class);\n\t\t//experimental stuff...\n\t\tbind(PlaceController.class).to(MyPlaceController.class).in(Singleton.class);\n\t\t\n\t\t// binding view implementations.\n\t\tbind(ContentView.class).to(ContentViewImpl.class);\n\t\tbind(BannerView.class).to(BannerViewImpl.class);\n\t\tbind(SidebarView.class).to(SidebarViewImpl.class);\n\t\t\n\t\t//bind presenter impls...\n\t\tbind(ContentView.Presenter.class).to(ContentPresenter.class);\n\t\tbind(BannerView.Presenter.class).to(BannerPresenter.class);\n\t\tbind(SidebarView.Presenter.class).to(SidebarPrensenter.class);\n\t\t\n\t\t// entrypoint view.\n\t\tbind(MainView.class).to(MainViewImpl.class).in(Singleton.class);\n\t\tbind(MainView.Presenter.class).to(MainPresenterActivity.class).in(Singleton.class);\n\t\t\n\t}", "@Override\n public Restlet createInboundRoot() {\n Router router = new Router(getContext());\n\n // Attach the handlers to the root router\n router.attach(\"/pipelines\", Pipelines.class);\n router.attach(\"/pipelines/{id}\", Pipeline.class);\n router.attach(\"/pipelines/{id}/inputs/{port}\", Input.class);\n router.attach(\"/pipelines/{id}/outputs/{port}\", Output.class);\n router.attach(\"/pipelines/{id}/options\", Options.class);\n router.attach(\"/pipelines/{id}/options/{option}\", Option.class);\n router.attach(\"/pipelines/{id}/parameters\", Parameters.class);\n router.attach(\"/pipelines/{id}/parameters/{port}\", Parameters.class);\n router.attach(\"/pipelines/{id}/parameters/{port}/{param}\", Parameter.class);\n router.attach(\"/pipelines/{id}/run\", Run.class);\n router.attach(\"/pipelines/{id}/reset\", Reset.class);\n router.attach(\"/status\", Status.class);\n router.attach(\"/help\", Help.class);\n router.attach(\"/stop\", Stop.class);\n router.attach(\"/\", Help.class);\n\n // Return the root router\n return router;\n }", "@Override\n\tprotected void configure() {\n\n\t\tbind(AddNetworkView.class).to(AddNetworkDesktopView.class).in(Singleton.class);\n\t\tbind(AddNetworkActivity.class);\n\n\t}", "@Override\n\tpublic Router getRestlet(Context context){\n\t\tRouter router = new Router(context);\n\t\trouter.attach(\"/links/json\", LinksResource.class);\n\t\trouter.attach(\"/config/json\",FdmReq_CapResource.class);\n\t\t\n\t\t\n\t\treturn router;\n\t}", "@SuppressWarnings(\"unchecked\")\r\n private Route attach(Router router, String targetClassName,\r\n String uriPattern, boolean defaultRoute) {\r\n Route route = null;\r\n // Load the application class using the given class name\r\n if (targetClassName != null) {\r\n try {\r\n Class<?> targetClass = Engine.classForName(targetClassName);\r\n \r\n // First, check if we have a Resource class that should be\r\n // attached directly to the router.\r\n if (Resource.class.isAssignableFrom(targetClass)) {\r\n Class<? extends Resource> resourceClass = (Class<? extends Resource>) targetClass;\r\n \r\n if (uriPattern != null && !defaultRoute) {\r\n route = router.attach(uriPattern, resourceClass);\r\n } else {\r\n route = router.attachDefault(resourceClass);\r\n }\r\n } else {\r\n Restlet target = null;\r\n \r\n try {\r\n // Create a new instance of the application class by\r\n // invoking the constructor with the Context parameter.\r\n target = (Restlet) targetClass.getConstructor(\r\n Context.class).newInstance(getContext());\r\n } catch (NoSuchMethodException e) {\r\n getLogger()\r\n .log(\r\n Level.WARNING,\r\n \"Couldn't invoke the constructor of the target class. Please check this class has a constructor with a single parameter of type Context. The empty constructor and the context setter will be used instead.\",\r\n e);\r\n \r\n // The constructor with the Context parameter does not\r\n // exist. Instantiate an application with the default\r\n // constructor then invoke the setContext method.\r\n target = (Restlet) targetClass.getConstructor()\r\n .newInstance();\r\n \r\n // Set the context based on the component's context\r\n target.setContext(getContext());\r\n }\r\n \r\n if (target != null) {\r\n if (uriPattern != null && !defaultRoute) {\r\n route = router.attach(uriPattern, target);\r\n } else {\r\n route = router.attachDefault(target);\r\n }\r\n }\r\n }\r\n } catch (ClassNotFoundException e) {\r\n getLogger().log(\r\n Level.WARNING,\r\n \"Couldn't find the target class. Please check that your classpath includes \"\r\n + targetClassName, e);\r\n \r\n } catch (InstantiationException e) {\r\n getLogger()\r\n .log(\r\n Level.WARNING,\r\n \"Couldn't instantiate the target class. Please check this class has an empty constructor \"\r\n + targetClassName, e);\r\n } catch (IllegalAccessException e) {\r\n getLogger()\r\n .log(\r\n Level.WARNING,\r\n \"Couldn't instantiate the target class. Please check that you have to proper access rights to \"\r\n + targetClassName, e);\r\n } catch (NoSuchMethodException e) {\r\n getLogger()\r\n .log(\r\n Level.WARNING,\r\n \"Couldn't invoke the constructor of the target class. Please check this class has a constructor with a single parameter of Context \"\r\n + targetClassName, e);\r\n } catch (InvocationTargetException e) {\r\n getLogger()\r\n .log(\r\n Level.WARNING,\r\n \"Couldn't instantiate the target class. An exception was thrown while creating \"\r\n + targetClassName, e);\r\n }\r\n }\r\n return route;\r\n }", "@Override\n public void configure() throws Exception {\n restConfiguration().component(\"netty-http\")\n .host(\"localhost\")\n .port(\"9091\")\n .bindingMode(RestBindingMode.auto)\n .enableCORS(true);\n\n rest(\"/api\")\n // Begin: Stations REST endpoints\n .get(\"/stations\")\n .produces(\"application/xml\")\n .route()\n .bean(stations_interactor, \"getAllStations\")\n .endRest()\n\n .get(\"/station/{id}\")\n .produces(\"application/xml\")\n .route()\n .bean(stations_interactor, \"getStation(${header.id})\")\n .endRest()\n\n .put(\"/station/{id}\")\n .type(TransportStation.class)\n .consumes(\"application/xml\")\n .produces(\"application/xml\")\n .route()\n .bean(stations_interactor, \"replaceStation(${header.id}, ${body})\")\n .endRest()\n\n .post(\"/station\")\n .type(TransportStation.class)\n .consumes(\"application/xml\")\n .produces(\"application/xml\")\n .route()\n .bean(stations_interactor, \"createStation(${body})\")\n .endRest()\n\n .delete(\"/station/{id}\")\n .produces(\"application/xml\")\n .route()\n .bean(stations_interactor, \"deleteStation(${header.id})\")\n .endRest()\n\n // Begin: Vehicles REST endpoints\n\n .get(\"/vehicles\")\n .produces(\"application/xml\")\n .route()\n .bean(vehicles_interactor, \"getAllVehicles\")\n .endRest()\n\n .get(\"/vehicle/{id}\")\n .produces(\"application/xml\")\n .route()\n .bean(vehicles_interactor, \"getVehicle(${header.id})\")\n .endRest()\n\n .put(\"/vehicle/{id}\")\n .type(Vehicle.class)\n .consumes(\"application/xml\")\n .produces(\"application/xml\")\n .route()\n .bean(vehicles_interactor, \"replaceVehicle(${header.id}, ${body})\")\n .endRest()\n\n .post(\"/vehicle\")\n .type(Vehicle.class)\n .consumes(\"application/xml\")\n .produces(\"application/xml\")\n .route()\n .bean(vehicles_interactor, \"createVehicle(${body})\")\n .endRest()\n\n .delete(\"/vehicle/{id}\")\n .produces(\"application/xml\")\n .route()\n .bean(vehicles_interactor, \"deleteVehicle(${header.id})\")\n .endRest()\n\n // Begin: TimeTables REST endpoints\n .get(\"/timetables\")\n .produces(\"application/xml\")\n .route()\n .bean(timetables_interactor, \"getAllTimeTables\")\n .endRest()\n\n .get(\"/timetable/{id}\")\n .produces(\"application/xml\")\n .route()\n .bean(timetables_interactor, \"getTimeTable(${header.id})\")\n .endRest()\n\n .put(\"/timetable/{id}\")\n .type(TimeTable.class)\n .consumes(\"application/xml\")\n .produces(\"application/xml\")\n .route()\n .bean(timetables_interactor, \"replaceTimeTable(${header.id}, ${body})\")\n .endRest()\n\n .post(\"/timetable\")\n .type(TimeTable.class)\n .consumes(\"application/xml\")\n .produces(\"application/xml\")\n .route()\n .bean(timetables_interactor, \"createTimeTable(${body})\")\n .endRest()\n\n .delete(\"/timetable/{id}\")\n .produces(\"application/xml\")\n .route()\n .bean(timetables_interactor, \"deleteTimeTable(${header.id})\")\n .endRest();\n }", "public HALMapper() {\n registerModule(DEFAULT_HAL_MODULE);\n }", "@Bean\r\n\tpublic RouterFunction<ServerResponse> helloRouterFunction() {\r\n\t\tRouterFunction<ServerResponse> routerFunction = RouterFunctions.route(RequestPredicates.path(\"/hello-again\"),\r\n\t\t\t\tserverRequest -> ServerResponse.ok().body(Mono.just(\"Hello Again!\"), String.class));\r\n\r\n\t\treturn routerFunction;\r\n\t}", "ModuleDefinition createModuleDefinition();", "private void configureRoutesAndExceptions() {\n\n }", "public DefaultRouterNode() {\n }", "@Override\n protected void configure() {\n MorphiaLoggerFactory.reset();\n init();\n bind();\n }", "public ProgramModule getDefaultRootModule();", "public void configure(Binder binder) {\n ResourceBundle bundle = ResourceBundle.getBundle(Lookup.RESOURCE_BUNDLE);\n final String moduleName = bundle.getString(\"guice.module\");\n Module module = null;\n\n try {\n log.debug(\"Loading Guice Module: \" + moduleName);\n module = (Module) Class.forName(moduleName).newInstance();\n }\n catch (Exception ex) {\n throw new RuntimeException(\"Failed to instantiate Guice module for dependency injection\", ex);\n }\n\n binder.install(module);\n }", "public void start(NServent servent, Router router);", "RegistrationModule createRegistrationModule();", "@Override\n public void initialize(Bootstrap<ExampleConfiguration> bootstrap)\n {\n ConfigAccessor<ExampleConfiguration> configAccessor = new ConfigAccessor<ExampleConfiguration>()\n {\n @Override\n public WebConfiguration getAppConfiguration(ExampleConfiguration configuration)\n {\n return configuration.web;\n }\n\n @Override\n public Optional<WebConfiguration> getAdminConfiguration(ExampleConfiguration configuration)\n {\n return Optional.empty(); // in this example, we're not using Sobase Web for admin\n }\n };\n bootstrap.addBundle(new WebBundle<>(this::makeModel, configAccessor));\n }", "public void start(ListableBeanFactory ctx) {\n log = getBean(ctx, GridLogger.class);\n\n if (log == null) {\n U.error(log, \"Failed to find logger definition in application context. Stopping the router.\");\n\n return;\n }\n\n GridTcpRouterConfiguration tcpCfg = getBean(ctx, GridTcpRouterConfiguration.class);\n\n if (tcpCfg == null)\n U.warn(log, \"TCP router startup skipped (configuration not found).\");\n else {\n tcpRouter = new GridTcpRouterImpl(tcpCfg);\n\n try {\n tcpRouter.start();\n }\n catch (GridException e) {\n U.error(log, \"Failed to start TCP router on port \" + tcpCfg.getPort() + \": \" + e.getMessage(), e);\n\n tcpRouter = null;\n }\n }\n\n GridHttpRouterConfiguration httpCfg = getBean(ctx, GridHttpRouterConfiguration.class);\n\n if (httpCfg == null)\n U.warn(log, \"HTTP router startup skipped (configuration not found).\");\n else {\n httpRouter = new GridHttpRouterImpl(httpCfg);\n\n try {\n httpRouter.start();\n }\n catch (GridException e) {\n U.error(log, \"Failed to start HTTP router. See log above for details.\", e);\n\n httpRouter = null;\n }\n }\n }", "@Override\n\tpublic void configure() {\n\t final SlackComponent slackComponent = (SlackComponent) this.getContext().getComponent(\"slack\");\n\t // set the webhook URL\n\t slackComponent.setWebhookUrl(\"https://hooks.slack.com/services/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\");\n\t\t\n\t\tfrom(from)\n\t\t.routeId(routeId)\n\t\t.setHeader(\"applicationId\", constant(applicationId))\n .process(processor)\n\t\t.to(toUris)\n\t\t.tracing(tracing)\n\t\t.log(log);\n\t}", "protected void initModules()\n {\n\n }", "private void initialiseByHand() {\n Configuration production = new Configuration(\"api.example.com\", false, 2000);\n Configuration staging = new Configuration(\"api-staging.example.com\", false, 2000);\n Configuration debug = new Configuration(\"api-dev.example.com\", true, 1000);\n Map<String, Configuration> baseVariants = new HashMap<>();\n baseVariants.put(PRODUCTION, production);\n baseVariants.put(STAGING, staging);\n baseVariants.put(DEBUG, debug);\n Neanderthal.initialise(this, baseVariants, PRODUCTION);\n }", "@Singleton\n@Component(modules = { AppModule.class, NetModule.class })\npublic interface NetComponent {\n void inject(MainHandler handler);\n}", "public void configure() {\n\t\tfrom(\"seda:vxf.onboard?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"onBoardVxFToMANOProvider\") //returns exception or nothing\n\t\t.log(\"VNFD Onboarded Successfully\")\n\t\t.doCatch(Exception.class)\n\t\t.log(\"VNFD Onboarding failed!\");\n\n\t\tfrom(\"seda:nsd.onboard?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"onBoardNSDToMANOProvider\") //returns exception or nothing\n\t\t.log(\"NSD Onboarded Successfully\")\n\t\t.doCatch(Exception.class)\n\t\t.log(\"NSD Onboarding failed!\");\t\t\n\n\t\t\n\t\tfrom(\"seda:nsd.deploy?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"deployNSDToMANOProvider\") //returns exception or nothing\n\t\t.log(\"NS deployed Successfully\").stop()\n\t\t.doCatch(Exception.class)\n\t\t.log(\"NS deployment failed!\").stop();\t\t\n\n\t\tfrom(\"seda:nsd.deployment.complete?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"terminateNSFromMANOProvider\") //returns exception or nothing\n\t\t.log(\"NS completed Successfully\")\n\t\t.doCatch(Exception.class)\n\t\t.log(\"NS completion failed!\").stop();\n\n\t\tfrom(\"seda:nsd.deployment.delete?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"deleteNSFromMANOProvider\") //returns exception or nothing\n\t\t.log(\"NS deleted Successfully\")\n\t\t.doCatch(Exception.class)\n\t\t.log(\"NS deletion failed!\").stop();\n\t\t\n\t\t//from(\"timer://checkAndDeployTimer?delay=2m&period=120000\").bean(new MANOController(),\"checkAndDeployExperimentToMANOProvider\").stop();\n\t\t//from(\"timer://checkAndTerminateTimer?delay=2m&period=120000\").bean(new MANOController(),\"checkAndTerminateExperimentToMANOProvider\").stop();\n\t\t\n\t\tfrom(\"timer://checkAndUpdateRunningDeploymentDescriptors?delay=1m&period=120000\").bean(MANOController.class,\"checkAndUpdateRunningDeploymentDescriptors\").stop();\n\t\t\n\t}", "public void configure(DynamicConfiguration configurator) {\n configurator.bind(BuilderHelper.link(RunLevelContext.class).\n to(Context.class).to(RunLevelContext.class).in(Singleton.class.getName()).build());\n \n // Bind the run level service\n configurator.bind(BuilderHelper.link(RunLevelControllerImpl.class).\n to(RunLevelController.class).in(Singleton.class.getName()).build());\n \n bindService(configurator, TestListener.class, Singleton.class);\n \n // Bind each service\n for (int i = 0; i < services.length; i++) {\n bindService(configurator, services[i], null);\n }\n }", "public static void main(String[] args) throws GridException {\n String buildDate = new SimpleDateFormat(\"yyyyMMdd\").format(new Date(BUILD * 1000));\n\n String rev = REV_HASH.length() > 8 ? REV_HASH.substring(0, 8) : REV_HASH;\n String ver = \"ver. \" + VER + '#' + buildDate + \"-sha1:\" + rev;\n\n X.println(\n \" _____ _ _______ _ \",\n \" / ___/____(_)___/ / ___/___ _(_)___ \",\n \"/ (_ // __/ // _ / (_ // _ `/ // _ \\\\ \",\n \"\\\\___//_/ /_/ \\\\_,_/\\\\___/ \\\\_,_/_//_//_/\",\n \" \",\n \"GridGain Router Command Line Loader\",\n ver,\n COPYRIGHT,\n \" \"\n );\n\n if (args.length < 1) {\n X.error(\"Missing XML configuration path.\");\n\n System.exit(1);\n }\n\n String cfgPath = args[0];\n\n URL cfgUrl = U.resolveGridGainUrl(cfgPath);\n\n if (cfgUrl == null) {\n X.error(\"Spring XML file not found (is GRIDGAIN_HOME set?): \" + cfgPath);\n\n System.exit(1);\n }\n\n boolean isLog4jUsed = U.gridClassLoader().getResource(\"org/apache/log4j/Appender.class\") != null;\n\n GridBiTuple<Object, Object> t = null;\n\n if (isLog4jUsed)\n t = U.addLog4jNoOpLogger();\n\n ApplicationContext ctx = null;\n\n try {\n ctx = loadCfg(cfgUrl);\n }\n finally {\n if (isLog4jUsed && t != null)\n U.removeLog4jNoOpLogger(t);\n }\n\n final GridRouterCommandLineStartup routerLdr = new GridRouterCommandLineStartup();\n\n if (ctx != null) {\n routerLdr.start(ctx);\n\n Runtime.getRuntime().addShutdownHook(new Thread() {\n @Override public void run() {\n routerLdr.stop();\n }\n });\n }\n else {\n X.error(\"Failed to start router with given configuration. Url: \", cfgUrl);\n\n System.exit(1);\n }\n }", "protected void configureNestedRouter() throws MuleException\n {\n if (service.getNestedRouter() != null)\n {\n Map bindings = new HashMap();\n for (Iterator it = service.getNestedRouter().getRouters().iterator(); it.hasNext();)\n {\n NestedRouter nestedRouter = (NestedRouter) it.next();\n Object proxy = bindings.get(nestedRouter.getInterface());\n\n if (proxy == null)\n {\n // Create a proxy that implements this interface\n // and just routes away using a mule client\n // ( using the high level Mule client is probably\n // a bit agricultural but this is just POC stuff )\n proxy = nestedRouter.createProxy(pojoService);\n bindings.put(nestedRouter.getInterface(), proxy);\n\n //Now lets set the proxy on the Service object\n Method setterMethod;\n\n\n List methods =\n ClassUtils.getSatisfiableMethods(pojoService.getClass(),\n new Class[]{nestedRouter.getInterface()}, true, false, null);\n if (methods.size() == 1)\n {\n setterMethod = (Method) methods.get(0);\n }\n else if (methods.size() > 1)\n {\n throw new TooManySatisfiableMethodsException(\n pojoService.getClass(), new Class[]{nestedRouter.getInterface()});\n }\n else\n {\n throw new NoSatisfiableMethodsException(\n pojoService.getClass(), new Class[]{nestedRouter.getInterface()});\n }\n\n try\n {\n setterMethod.invoke(pojoService, new Object[]{proxy});\n }\n catch (Exception e)\n {\n throw new InitialisationException(\n CoreMessages.failedToSetProxyOnService(nestedRouter,\n pojoService.getClass()), e, this);\n }\n }\n else\n {\n NestedInvocationHandler handler = (NestedInvocationHandler) Proxy.getInvocationHandler(proxy);\n handler.addRouterForInterface(nestedRouter);\n }\n }\n }\n }", "@Singleton\n@Component(modules = {NetworkModule.class, EventBusModule.class})\npublic interface AppComponent {\n\n void inject(RootViewModel rootViewModel);\n\n}", "@Override\n\tpublic Restlet createInboundRoot() {\n\t\tRouter router = new Router(getContext());\n\t\trouter.attach(\"/supermarche/clients\", ResourceClients.class);\n\t\trouter.attach(\"/supermarche/clients/\", ResourceClients.class);\n\n\t\trouter.attach(\"/supermarche/clients/{id}\", ResourceClient.class);\n\t\trouter.attach(\"/supermarche/clients/{id}/\", ResourceClient.class);\n\n\t\trouter.attach(\"/supermarche/stock\", ResourceStocks.class);\n\t\trouter.attach(\"/supermarche/stock/\", ResourceStocks.class);\n\t\treturn router;\n\t}", "Module createModule();", "@Override\n protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {\n return application.sources(DemowebosApplication.class);\n }", "public static void main(String[] args) {\n\t\tConfig config = createJeruslaemConfig();\n\n\t\tScenario scenario = ScenarioUtils.loadScenario(config);\n\n\t\tControler controler = new Controler(scenario);\n\t\t\n\t\t// Add raptor\n\t\tcontroler.addOverridingModule(new SwissRailRaptorModule());\n\n\t\t\n SwissRailRaptorConfigGroup raptorConfig = ConfigUtils.addOrGetModule(config, SwissRailRaptorConfigGroup.class);\n \n\n\t\tcontroler.run();\n\t}", "@Override\n public synchronized Restlet createInboundRoot() {\n\n Router router = new Router(getContext());\n router.attach(\"/\" + outputWSConfig.getKeywordPath(), KeywordQueryExecutorResource.class);\n router.attach(\"/\" + outputWSConfig.getUriPath(), UriQueryExecutorResource.class);\n router.attach(\"/\" + outputWSConfig.getMetadataPath(), MetadataQueryExecutorResource.class);\n router.attach(\"/\" + outputWSConfig.getNamedGraphPath(), NamedGraphQueryExecutorResource.class);\n return router;\n }", "@Override\n\tprotected void configure() {\n\t\tbind(Tire.class);\n\t\tbind(Spoke.class);\n\n\t}", "public interface ModuleConfigurationProvider {\n ModuleConfiguration getConfiguration(Module module);\n}", "public DynamicRoutingManager(\n final String routingServiceName,\n final String routingServiceGroupName,\n final String propertiesPrefix,\n final Properties properties\n ) {\n this(\n null,\n routingServiceName,\n routingServiceGroupName,\n propertiesPrefix,\n properties\n );\n }", "public void setInternalRouter(Router internalRouter) {\r\n this.internalRouter = internalRouter;\r\n }", "public static void setupModules(){\n\t\tStart.setupModules();\n\t\t//add\n\t\t//e.g.: special custom scripts, workers, etc.\n\t}", "public interface MainRouter {\n void showWeather();\n\n void showSettings();\n\n void showAbout();\n}", "@GinModules(MyAppGinModule.class)\npublic interface MyAppGinjector extends Ginjector {\n\n String ANNOTATED_STRING_VALUE = \"abc\";\n\n MyApp getMyApp();\n\n SimpleObject getSimple();\n\n MyService getMyService();\n\n MyServiceImpl getMyServiceImpl();\n\n MyProvided getMyProvided();\n\n @Named(\"blue\") SimpleObject getSimpleBlue();\n @Named(\"red\") SimpleObject getSimpleRed();\n\n EagerObject getEagerObject();\n\n // Providers we never bound explicitly -- they should be synthesized\n // since we bound the keys directly\n Provider<SimpleObject> getSimpleProvider();\n @Named(\"blue\") Provider<SimpleObject> getSimpleBlueProvider();\n\n @MyBindingAnnotation String getAnnotatedString();\n\n MyRemoteServiceAsync getMyRemoteServiceAsync();\n}", "@Singleton\n@Component(modules = {ContextModule.class, BusModule.class, GithubModule.class, GankModule.class, ZhiHuModule.class, RssModule.class})\npublic interface AppComponent {\n Context getContext();\n GankService getGankService();\n ZhiHuService getZhiHuService();\n RssService getRssService();\n EventBus getBus();\n}", "public void boot()\n {\n injector = Guice.createInjector( modules );\n }", "public void boot() throws Exception {\n HazelcastInstance hz = Hazelcast.newHazelcastInstance();\n\n // setup the hazelcast idempontent repository which we will use in the route\n HazelcastIdempotentRepository repo = new HazelcastIdempotentRepository(hz, \"camel\");\n\n main = new Main();\n main.enableHangupSupport();\n // bind the hazelcast repository to the name myRepo which we refer to from the route\n main.bind(\"myRepo\", repo);\n // add the route and and let the route be named BAR and use a little delay when processing the files\n main.addRouteBuilder(new FileConsumerRoute(\"BAR\", 100));\n main.run();\n }", "@Override\n public void run(Configuration configuration, Environment environment) throws Exception {\n environment.jersey().register(new AdminRESTAPI());\n environment.jersey().register(new ProfessorRESTAPI());\n environment.jersey().register(new StudentRESTAPI());\n }", "private void loadModules() {\n\n ModuleTiers moduleTiers = new ModuleTiers();\n moduleTiers.setSource(.5);\n moduleTiers.setNumTiers(5);\n String tiersKey = \"module tiers\";\n addDemoPanelWithModule(moduleTiers, tiersKey, null);\n demoPanels.get(tiersKey).removeGUI();\n\n ModuleCellular moduleCellular = new ModuleCellular();\n moduleCellular.setCoefficients(9, .5, 3, 7);\n String cellularKey = \"module cellular\";\n addDemoPanelWithModule(moduleCellular, cellularKey, null);\n demoPanels.get(cellularKey).removeGUI();\n\n /*\n * ground_gradient\n */\n // ground_gradient\n ModuleGradient groundGradient = new ModuleGradient();\n groundGradient.setGradient(0, 0, 0, 1, 0, 0);\n String gradientKey = \"Ground Gradient\";\n addDemoPanelWithModule(groundGradient, gradientKey, null);\n demoPanels.get(gradientKey).removeGUI();\n\n String mountainsKey = \"mountains before gradient\";\n TerrainNoiseSettings mountainSettings = getDemoPanelSettings(mountainsKey);\n if (mountainSettings == null) {\n mountainSettings = TerrainNoiseSettings.MountainTerrainNoiseSettings(seed, false);\n }\n Module mountainTerrainNoGradient = mountainSettings.makeTerrainModule(null);\n addDemoPanelWithModule(mountainTerrainNoGradient, mountainsKey, mountainSettings);\n\n String mountainsWithGradientKey = \"translate gradient domain with mountains\";\n TerrainNoiseSettings gradMountainSettings = getDemoPanelSettings(mountainsWithGradientKey);\n if (gradMountainSettings == null) {\n gradMountainSettings = TerrainNoiseSettings.MountainTerrainNoiseSettings(seed, false);\n }\n ModuleTranslateDomain mountainTerrain = new ModuleTranslateDomain();\n mountainTerrain.setAxisYSource(mountainTerrainNoGradient);\n mountainTerrain.setSource(groundGradient);\n\n addDemoPanelWithModule(mountainTerrain, mountainsWithGradientKey, gradMountainSettings);\n demoPanels.get(mountainsWithGradientKey).removeGUI();\n\n /*\n String highlandKey = \"highlands\";\n TerrainNoiseSettings highlandSettings = getDemoPanelSettings(highlandKey);\n if (highlandSettings == null) {\n highlandSettings = TerrainNoiseSettings.HighLandTerrainNoiseSettings(seed);\n }\n Module highlandTerrain = TerrainDataProvider.MakeTerrainNoise(groundGradient, highlandSettings );\n addDemoPanelWithModule(highlandTerrain, highlandKey, highlandSettings);\n */\n /*\n * select air or solid with mountains\n */\n String terrainSelectKey = \"terrain Select\";\n TerrainNoiseSettings terrSelectSettings = getDemoPanelSettings(terrainSelectKey);\n if (terrSelectSettings == null) {\n terrSelectSettings = TerrainNoiseSettings.TerrainSettingsWithZeroOneModuleSelect(seed, mountainTerrain);\n } else {\n terrSelectSettings.moduleSelectSettings.controlSource = mountainTerrain;\n }\n Module terrSelectModule = terrSelectSettings.moduleSelectSettings.makeSelectModule();\n addDemoPanelWithModule(terrSelectModule, terrainSelectKey, terrSelectSettings);\n\n /*\n * noise to determine which kind of solid block\n */\n String typeSelectSettingKey = \"terrain type select\";\n TerrainNoiseSettings typeSelectSettings = getDemoPanelSettings(typeSelectSettingKey);\n if (typeSelectSettings == null) {\n typeSelectSettings = TerrainNoiseSettings.TerrainTypeSelectModuleNoiseSettings(seed, false);\n }\n Module selectTypeTerr = typeSelectSettings.makeTerrainModule(null);\n //addDemoPanelWithModule(selectTypeTerr, typeSelectSettingKey, typeSelectSettings);\n\n String dirtOrStoneSelectSettingsKey = \"dirt or stone\";\n TerrainNoiseSettings dirtOrStoneSelectSettings = getDemoPanelSettings(dirtOrStoneSelectSettingsKey);\n if (dirtOrStoneSelectSettings == null) {\n dirtOrStoneSelectSettings = TerrainNoiseSettings.BlockTypeSelectModuleSettings(seed, selectTypeTerr, BlockType.DIRT, BlockType.STONE);\n } else {\n dirtOrStoneSelectSettings.moduleSelectSettings.controlSource = selectTypeTerr;\n }\n Module dirtOrStoneModule = dirtOrStoneSelectSettings.moduleSelectSettings.makeSelectModule();\n //addDemoPanelWithModule(dirtOrStoneModule, dirtOrStoneSelectSettingsKey, dirtOrStoneSelectSettings);\n\n /*\n * combine terrain select and block type select\n */\n String combineTerrainAndBlockTypeKey = \"Terrain And BlockType\";\n ModuleCombiner terrAndBlockTypeMod = new ModuleCombiner(ModuleCombiner.CombinerType.MULT);\n terrAndBlockTypeMod.setSource(0, terrSelectModule);\n terrAndBlockTypeMod.setSource(1, dirtOrStoneModule);\n TerrainNoiseSettings combineSettings = new TerrainNoiseSettings(seed); //defaults\n combineSettings.renderWithBlockColors = true;\n //addDemoPanelWithModule(terrAndBlockTypeMod, combineTerrainAndBlockTypeKey, combineSettings);\n //demoPanels.get(combineTerrainAndBlockTypeKey).removeGUI();\n\n\n\n }", "public static void main(String[] args) {\n new Helloworld().portMatcher();\n\n }", "@Override\n protected RoutesBuilder createRouteBuilder() throws Exception {\n // override this method and provide our RouteBuilder class\n return new RestDslRouteBuilder();\n }", "@Override\n public void configure() throws Exception {\n restConfiguration()\n .component(\"netty-http\")\n .host(\"0.0.0.0\")\n .port(8099);\n\n rest()\n .post(\"/webhook\")\n .route()\n .setBody(constant(\"{\\\"ok\\\": true}\"))\n .endRest()\n .post(\"/slack/api/conversations.list\")\n .route()\n .setBody(constant(\n \"{\\\"ok\\\":true,\\\"channels\\\":[{\\\"id\\\":\\\"ABC12345\\\",\\\"name\\\":\\\"general\\\",\\\"is_channel\\\":true,\\\"created\\\":1571904169}]}\"))\n .endRest()\n .post(\"/slack/api/conversations.history\")\n .route()\n .setBody(constant(\n \"{\\\"ok\\\":true,\\\"messages\\\":[{\\\"type\\\":\\\"message\\\",\\\"subtype\\\":\\\"bot_message\\\",\\\"text\\\":\\\"Hello Camel Quarkus Slack\\\"\"\n + \",\\\"ts\\\":\\\"1571912155.001300\\\",\\\"bot_id\\\":\\\"ABC12345C\\\"}],\\\"has_more\\\":true\"\n + \",\\\"channel_actions_ts\\\":null,\\\"channel_actions_count\\\":0}\"));\n }", "public static RouterDefinition createDefaultRouterDefinition() {\n RouterDefinition def = new RouterDefinition();\n def.setName(PersistenceController.class.getSimpleName());\n def.setBlocking(true);\n def.setController(PersistenceController.class);\n def.setHandlerProperties(getDefaultProperties());\n def.setRoutes(new String[] { \"/persistenceController/:entity/:ID/:action/read.html\" });\n def.setCaptureCollection(createDefaultCaptureCollection());\n return def;\n }", "@Override\n public void configure() throws Exception {\n Properties properties = new Properties();\n properties.load(this.getClass().getClassLoader().getResourceAsStream(\"route.properties\"));\n String ordersFolder = properties.getProperty(\"folder.orders\");\n String postidentFolder = properties.getProperty(\"folder.postident\");\n if(ordersFolder == null || postidentFolder == null) {\n throw new RuntimeException(\"could not read properties for camel route, make sure there\" +\n \" is a file called route.properties in the root or the resoureces folder of your \" +\n \"application that contains the properties folder.orders and folder.postident\");\n }\n\n /*\n * There are two ways of starting the open-account process:\n *\n * - placing an XML file in a hot folder (see route.properties for folder location)\n * - sending a JSON order to a REST web service (see README.txt for instructions)\n */\n // This route handles files placed in the incoming orders folder (see route.properties file)\n // and routes the XML to a JMS queue:\n from(\"file://\" + ordersFolder).\n routeId(\"hot-folder order route\").\n log(\"=======================\").\n log(\"Received order from hot-folder\").\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\").\n log(\"=======================\").\n log(\"Delivering order to JMS XML queue\").\n to(\"jms:xmlQueue\");\n\n // Order objects that are sent to the REST web service are placed in a JMS queue called\n // orderQueue (see README.txt about setting up the JMS queue). This route listens for\n // incoming messages on that queue, transforms the object to XML using the marshalling\n // feature that is built into camel and delivers the resulting XML to the same queue the\n // incoming XML documents are placed in:\n from(\"jms:orderQueue\").\n routeId(\"order to xml route\").\n log(\"=======================\").\n log(\"received order from orderQueue\").\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\").\n log(\"=======================\").\n log(\"transforming order object to xml\").\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\").\n log(\"=======================\").\n marshal(new JaxbDataFormat(Order.class.getPackage().getName())).\n log(\"=======================\").\n log(\"delivering order xml to xmlQueue\").\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\").\n log(\"=======================\").\n to(\"jms:xmlQueue\");\n\n /*\n * This route listens for incoming messages on the JMS queue named xmlQueue. When a message\n * arrives, a CDI bean called incomingOrderService is used to extract the data from the XML\n * into a HashMap that will be passed on to the camunda BPM engine when the process instance\n * is started. The HashMap is the same as a variable map that can be passed on to process\n * instances via the camunda BPM API.\n */\n from(\"jms:xmlQueue\").\n routeId(\"start order process route\").\n log(\"=======================\").\n log(\"received order xml from xmlQueue\").\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\").\n log(\"=======================\").\n log(\"setting order # to '\" + CAMUNDA_BPM_BUSINESS_KEY + \"' property\").\n setProperty(CAMUNDA_BPM_BUSINESS_KEY).xpath(\"//@ordernumber\").\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\").\n log(\"=======================\").\n log(\"transforming order xml to order object\").\n unmarshal(new JaxbDataFormat(Order.class.getPackage().getName())).\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\").\n log(\"=======================\").\n log(\"transforming order object to variable map (java.util.Map) as input for the camunda BPM process\").\n process(new OrderToMapProcessor()).\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\").\n log(\"=======================\").\n log(\"starting open-account process\").\n to(\"camunda-bpm:start?processDefinitionKey=open-account\").\n log(\"=======================\").\n log(\"open-account process started\").\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\")\n ;\n\n /*\n * If the order was rejected, we'll send a mail to the customer to inform him that his\n * application will not be processed.\n */\n from(\"direct:inform-customer\").\n routeId(\"inform customer route\").\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\").\n beanRef(\"emailService\");\n\n /*\n * When the order is approved, it can be passed to the accountService to create an account\n * object and persist it to the database. Since the order was split up into values in a\n * java.util.Map, we'll first pass the map to the MapToOrderProcessor.\n */\n from(\"direct:setup-account\").\n routeId(\"set up account route\").\n log(\"=======================\").\n log(\"transforming process variable map to order object: ${body}\").\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\").\n log(\"=======================\").\n process(new MapToOrderProcessor()).\n log(\"=======================\").\n log(\"calling accountService to create account from incoming order\").\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\").\n log(\"=======================\").\n beanRef(\"accountService\");\n\n /*\n * Finally, this route waits for incoming postident scans to be placed in a hot folder.\n * When a document is placed there (edit route.properties to configure the location of\n * the folder), the order number is extracted from the file name and used as correlation\n * id to send a signal to the waiting process instance.\n */\n from(\"file://\" + postidentFolder).\n routeId(\"incoming postident route\").\n log(\"=======================\").\n log(\"received postident document\").\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\").\n log(\"=======================\").\n log(\"extracting order number from file name\").\n process(new Processor() {\n @Override\n public void process(Exchange exchange) throws Exception {\n String businessKey = exchange.getIn().getHeader(\"CamelFileName\").toString().split(\"-\")[1].substring(0, 4);\n exchange.setProperty(CAMUNDA_BPM_BUSINESS_KEY, businessKey);\n }\n }).\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\").\n log(\"=======================\").\n log(\"correlating document with process instance\").\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\").\n log(\"=======================\").\n to(\"camunda-bpm://message?processDefinitionKey=open-account&activityId=wait_for_postident\").\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\");\n }", "@Singleton\n@Component(modules = {NetworkModule.class, SubcomponentsModule.class})\npublic interface ApplicationComponent {\n /**\n * This function exposes the HomeComponent Factory out of the graph so consumers\n * can use it to obtain new instances of HomeComponent.\n *\n * @return {@link HomeComponent.Factory}\n */\n HomeComponent.Factory homeComponent();\n}", "@Component(modules = {ApplicationModule.class})\npublic interface ApplicationComponent {\n ModuleA moduleA();\n}", "public void bootConsumer() throws Exception {\n\t\tmain = new Main();\r\n\t\t// bind MyBean into the registry\r\n\t\tmain.bind(\"foo\", new AsimpleBean());\r\n\t\t// add routes\r\n\t\tmain.addRouteBuilder(new SubRouteBuilder());\r\n\r\n\t\t// add event listener\r\n\t\tmain.addMainListener(new SubEvents());\r\n\t\t// run until you terminate the JVM\r\n\t\tSystem.out.println(\"Starting Camel. Use ctrl + c to terminate the JVM.\\n\");\r\n\t\tmain.run();\r\n\t}", "@Singleton\r\n@Component(modules = {UIModule.class, InteractorModule.class, MockModelModule.class, MockNetworkModule.class})\r\npublic interface MockAnimalFindApplicationComponent extends AnimalFindApplicationComponent {\r\n}", "public interface RouterConfiguration {\n\n /**\n * 配置路由策略\n * @return\n */\n @NonNull\n RouterStrategy[] configRouterStrategies();\n\n\n /**\n * 配置路由映射\n * @return\n */\n @Nullable\n RouterMapping[] configRouterMappings();\n}", "public AngularPageConfigurator()\n\t{\n\t\t//No config required\n\t}", "public void configure() {\n\n // here is a sample which processes the input files\n // (leaving them in place - see the 'noop' flag)\n // then performs content based routing on the message using XPath\n\n }", "public interface RouterB {\n @RouterUri(\"suninfo://host_b\")\n public Intent getIntentActivityB(@RouterParamters(\"name\") String name);\n}", "void subprojects(Action<? super ProjectPluginDependenciesSpec> configuration);", "public abstract ModularConfigurationModule<T> getDefaultModule();", "@Override\n protected Injector getInjector() {\n return Guice.createInjector(new PortalServletModule());\n }", "@Component(modules = {ApplicationModule.class,HttpModule.class})\npublic interface ApplicationComponent {\n\n MyApp getApplication();\n\n NewsApi getNetEaseApi();\n\n JanDanApi getJanDanApi();\n\n Context getContext();\n\n}", "public static void main(String[] argv) {\n if (DFSUtil.parseHelpArgument(argv, USAGE, System.out, true)) {\n System.exit(0);\n }\n\n try {\n StringUtils.startupShutdownMessage(Router.class, argv, LOG);\n\n Router router = new Router();\n\n ShutdownHookManager.get().addShutdownHook(\n new CompositeServiceShutdownHook(router), SHUTDOWN_HOOK_PRIORITY);\n\n Configuration conf = getConfiguration();\n router.init(conf);\n router.start();\n } catch (Throwable e) {\n LOG.error(\"Failed to start router\", e);\n terminate(1, e);\n }\n }", "@SuppressWarnings(\"rawtypes\")\n\t@Override\n\tpublic void configure() throws Exception {\n\t\t\n\t\tfrom(\"direct:addtraitshierarchy-repos\").process(new Processor() {\n\t\t\t@Override\n\t\t\tpublic void process(Exchange ex) throws Exception { // NOSONAR Must throw Exception because of inherited definition\n\t\t\t\tTraitHierarchy newTraitHierarchy = ex.getIn().getBody(TraitHierarchy.class);\n\t\t\t\tex.getOut().setBody(new Work<TraitHierarchy>(TraitHierarchy.class, null, newTraitHierarchy, Action.CREATE));\n\t\t\t}\n\t\t}).process(new DroolsCommandTransformer<Work>(\"work\", Work.class)).to(\"drools:node/ksession\")\n\t\t\t.transform().simple(\"${body.getValue('work').newContainer}\")\n\t\t\t.process(new TraitHierarchyParentIdProcessor())\n\t\t\t.choice()\n\t\t\t\t.when(body().isNull())\n\t\t\t\t\t.enrich(\"direct:getNextParentId-repos\", new TraitHierarchyEnrichAggregationStrategy(Action.GET))\n\t\t\t\t.end()\n\t\t\t.choice()\n\t\t\t\t.when(body().isNotNull())\n\t\t\t\t\t.process(new TraitHierarchyProcessor())\n\t\t\t\t.end()\n\t\t\t.bean(traitsHierarchiesRepo, \"add\");\n\t\t\n\t\t//Get next parent id for trait department creation\n\t\tfrom(\"direct:getNextParentId-repos\")\n\t\t\t\t.bean(traitsHierarchiesRepo, \"getNextParentId\");\n\t\t\n\t\t/*\n\t\t * get the basic trait hierarchy information. Input will either be the id.\n\t\t */\n\t\tfrom(\"direct:gettraitshierarchy-repos\").convertBodyTo(TraitHierarchy.class)\n\t\t.process(new Processor() {\n\t\t\t@Override\n\t\t\tpublic void process(Exchange ex) throws Exception { // NOSONAR Must throw Exception because of inherited definition\n\t\t\t\tTraitHierarchy newTraitHierarchy = ex.getIn().getBody(TraitHierarchy.class);\n\t\t\t\tex.setProperty(APPINIMAP, newTraitHierarchy.getAppIniMap());\n\t\t\t}\n\t\t\t})\n\t\t\t.choice()\n\t\t\t\t.when(simple(\"${body} is 'com.walmart.traits.TraitHierarchy'\")).transform().simple(\"${body.id}\") // NOSONAR \n\t\t\t.end()\n\t\t.bean(traitsHierarchiesRepo, \"withId\")\n\t\t.choice()\n\t\t\t.when(body().isNotNull())\n\t\t\t\t.process(new TraitHODeptProcessor())\n\t\t\t\t.choice()\n\t\t\t\t\t.when(body().isNotNull())\n\t\t\t\t\t\t.enrich(\"direct:getHoMerchDept\", new TraitHOEnrichAggregationStrategy())\n\t\t\t\t.end()\n\t\t\t\t.choice()\n\t\t\t\t\t.when(body().isNull())\n\t\t\t\t\t\t.process(new TraitHierarchyProcessor())\n\t\t\t\t.end()\n\t\t.end();\n\t\t//Get all trait departments available\n\t\tfrom(\"direct:getAllTraitDepartments-repos\")\n\t\t\t.choice()\n\t\t\t\t.when(simple(\"${body} is 'com.walmart.traits.TraitHierarchy'\")).transform().simple(\"${body.level}\") // NOSONAR \n\t\t\t.end()\n\t\t.bean(traitsHierarchiesRepo, \"withTraitsHierarchyLevel\");\n\t\t\n\t\t//Get all trait departments details for admin\n\t\tfrom(\"direct:getDeptDetails-repos\")\n\t\t.bean(traitsHierarchiesRepo, \"get\");\n\t\t\n\t\t//Get all trait categories available for a trait department.\n\t\tfrom(\"direct:getAllTraitCategories-repos\")\n\t\t\t.choice()\n\t\t\t\t.when(simple(\"${body} is 'com.walmart.traits.TraitHierarchy'\")).transform().simple(\"${body.parentId}\") // NOSONAR \n\t\t\t.end()\n\t\t.bean(traitsHierarchiesRepo, \"withTraitsDepartment\");\n\t\t\n\t\t//Delete trait hierarchy information. Input will either be the id.\n\t\tfrom(\"direct:removetraitshierarchy-repos\").convertBodyTo(TraitHierarchy.class)\n\t\t\t.enrich(\"direct:gettraitshierarchy-repos\", new TraitHierarchyEnrichAggregationStrategy(Action.DELETE))\n\t\t\t.process(new DroolsCommandTransformer<Work>(\"work\", Work.class)).to(\"drools:node/ksession\")\n\t\t.transform().simple(\"${body.getValue('work').oldContainer}\").bean(traitsHierarchiesRepo, \"remove\");\n\t\t\n\t\t//Update trait hierarchy information.\n\t\tfrom(\"direct:updatetraitshierarchy-repos\").convertBodyTo(TraitHierarchy.class)\n\t\t .enrich(\"direct:gettraitshierarchy-repos\", new TraitHierarchyEnrichAggregationStrategy(Action.UPDATE))\n\t\t\t.process(new DroolsCommandTransformer<Work>(\"work\", Work.class)).to(\"drools:node/ksession\")\n\t\t\t.transform().simple(\"${body.getValue('work')}\").process(new ValidateCategoryUpdate())\n\t\t\t.choice().when(body().isNotNull())\n\t\t\t\t.enrich(\"direct:validateMaxForCat-repos\").process(new ValidateMaxError())\n\t\t\t.end()\t\n\t\t\t.process(new Processor() {\n\t\t\t\t\tpublic void process(Exchange ex) throws Exception { // NOSONAR Must throw Exception because of inherited definition\n\t\t\t\t\t\tex.getOut().setBody(ex.getIn().getHeader(TRAIT_HIERARCHY));\n\t\t\t\t\t}\n\t\t \t })\n\t\t\t.choice().when(simple(\"${body.errorMessage} == null\"))\n\t\t\t\t.bean(traitsHierarchiesRepo, \"update\")\n\t\t\t\t.choice()\n\t\t\t\t\t.when(body().isNotNull())\n\t\t\t\t\t\t.process(new TraitCatgHODeptProcessor())\n\t\t\t\t\t\t.choice()\n\t\t\t\t\t\t\t.when(body().isNotNull())\n\t\t\t\t\t\t\t\t.bean(traitsHierarchiesRepo, \"updateHoDeptCatgAssociation\")\n\t\t\t\t\t\t\t\t.bean(traitsHierarchiesRepo, \"updateHoDeptTraitsAssociation\")\n\t\t\t\t\t\t.end()\n\t\t\t\t\t\t.choice()\n\t\t\t\t\t\t \t.when(body().isNull())\n\t\t\t\t\t\t \t\t.process(new TraitHierarchyProcessor())\n\t\t\t\t\t\t .end()\n\t\t\t\t.end()\n\t\t\t.end();\n\t\t\t\n\t\t//Get trait departments available with given name\n\t\tfrom(\"direct:getTraitDepartmentsWithName-repos\")\n\t\t\t.choice()\n\t\t\t\t.when(simple(\"${body} is 'com.walmart.traits.TraitHierarchy'\")).transform().simple(\"${body.name}\") // NOSONAR \n\t\t\t.end()\n\t\t.bean(traitsHierarchiesRepo, \"withDepartmentName\");\n\t\t\n\t // DO NOT ADD NEW ROUTES AFTER THIS LINE!!!\n\t /* Includes the transactional routes \n\t\t* (Adds the transacted() DSL) \n\t\t* corresponding to all the routes in this class.*/ \n\t\tfinal List<String> hierarchyRoutes = transactionalRoutes\n\t\t\t\t.getRouteUris(getRouteCollection().getRoutes());\n\t\tincludeRoutes(transactionalRoutes.configureTransactionalRoutes(hierarchyRoutes));\n\t\tincludeRoutes(transactionalRoutes.configureResourceRoutes(hierarchyRoutes));\n\t\t\n\t}", "@Inject\n public JaxRsApplicationUriNamingStrategy(BeanContext beanContext) {\n this.contextPath = normalizeContextPath(\n beanContext.getBeanDefinition(Application.class)\n .stringValue(ApplicationPath.class)\n .orElse(\"/\")\n );\n }", "public AppModuleImpl() {\n }", "public AppModuleImpl() {\n }", "public static Route prepareRoute(Microcks microcks, Context<Microcks> context) {\n logger.infof(\"Preparing desired Microcks Route for '%s'\", microcks.getMetadata().getName());\n\n final ObjectMeta microcksMetadata = microcks.getMetadata();\n final String microcksName = microcksMetadata.getName();\n\n RouteBuilder builder = new RouteBuilder()\n .withNewMetadata()\n .withName(getRouteName(microcks))\n .addToLabels(\"app\", microcksName)\n .addToLabels(\"group\", \"microcks\")\n .endMetadata()\n .withNewSpec()\n .withNewTo()\n .withKind(\"Service\")\n .withName(MicrocksServiceDependentResource.getServiceName(microcks))\n .endTo()\n .withNewPort()\n .withNewTargetPort(\"spring\")\n .endPort()\n .withNewTls()\n .withTermination(microcks.getSpec().getMicrocks().getOpenshift().getRoute().getTlsTermination())\n .endTls()\n .endSpec();\n\n // Add custom url is present in the spec.\n if (microcks.getSpec().getMicrocks().getUrl() != null) {\n builder.editSpec().withHost(microcks.getSpec().getMicrocks().getUrl());\n }\n\n // Add optional TLS configuration if specified in route spec.\n final OpenShiftRouteSpec routeSpec = microcks.getSpec().getMicrocks().getOpenshift().getRoute();\n if (routeSpec.getTlsKey() != null) {\n builder.editSpec().editTls().withKey(routeSpec.getTlsKey()).endTls().endSpec();\n }\n if (routeSpec.getTlsCertificate() != null) {\n builder.editSpec().editTls().withCertificate(routeSpec.getTlsCertificate()).endTls().endSpec();\n }\n if (routeSpec.getTlsCertificate() != null) {\n builder.editSpec().editTls().withCertificate(routeSpec.getTlsCertificate()).endTls().endSpec();\n }\n if (routeSpec.getTlsDestinationCaCertificate() != null) {\n builder.editSpec().editTls().withDestinationCACertificate(routeSpec.getTlsDestinationCaCertificate()).endTls().endSpec();\n }\n if (routeSpec.getTlsInsecureEdgeTerminationPolicy() != null) {\n builder.editSpec().editTls().withInsecureEdgeTerminationPolicy(routeSpec.getTlsInsecureEdgeTerminationPolicy()).endTls().endSpec();\n }\n\n return builder.build();\n }", "public ANTForPlugins()\n {\n super();\n }", "@Singleton\n@Component(modules = {ApplicationModule.class, NetWorkModule.class})\npublic interface ApplicationComponent {\n\n Application getApplication();\n\n NetworkApi getNetworkApi();\n\n}", "@Singleton\n@Component(modules = {\n AndroidInjectionModule.class,\n AppModule.class,\n ActivityBuilder.class,\n NetModule.class, GlideAppModules.class\n})\npublic interface AppComponent {\n\n @Component.Builder\n interface Builder {\n\n @BindsInstance Builder application(Application application);\n AppComponent build();\n Builder net(NetModule netModule);\n Builder glide(GlideAppModules glideAppModules);\n }\n\n void inject(MyApplication application);\n\n}", "public DynamicRoutingManager(\n final RoutingService routingService,\n final String routingServiceName,\n final String routingServiceGroupName,\n final String propertiesPrefix,\n final Properties properties\n ) {\n checkNotNull(\n routingServiceGroupName,\n \"Group name must not be null\"\n );\n checkNotNull(\n propertiesPrefix,\n \"Property prefix must not be null\"\n );\n checkNotNull(\n properties,\n \"Properties must not be null\"\n );\n\n // store properties and prefix\n this.propertiesPrefix = propertiesPrefix;\n this.properties = properties;\n\n // log properties when info is enabled\n if (LOGGER.isInfoEnabled()) {\n for (String key : properties.stringPropertyNames()) {\n LOGGER.info(\n \"key='{}', value='{}'\",\n key,\n properties.getProperty(key)\n );\n }\n }\n\n // create configuration filter\n ConfigurationFilterProvider configurationFilterProvider = new ConfigurationFilterProvider(\n propertiesPrefix, properties);\n\n // create dynamic partition observer\n dynamicPartitionObserver = new DynamicPartitionObserver();\n // filter out RTI topics\n dynamicPartitionObserver.addFilter(new RtiTopicFilter());\n // filter out entities belonging to the same routing service group\n dynamicPartitionObserver.addFilter(new RoutingServiceGroupEntitiesFilter(routingServiceGroupName));\n // filter out entities that have no configuration\n dynamicPartitionObserver.addFilter(configurationFilterProvider);\n\n // create domain participant for discovery\n domainParticipantDiscovery = createDiscoveryDomainParticipant(\n Integer.parseInt(StringSubstitutor.replace(getProperty(PROPERTY_DISCOVERY_DOMAIN_ID), System.getenv()))\n );\n\n // create new publication observer\n publicationObserver = new PublicationObserver(domainParticipantDiscovery);\n publicationObserver.addListener(dynamicPartitionObserver, false);\n\n // create new subscription observer\n subscriptionObserver = new SubscriptionObserver(domainParticipantDiscovery);\n subscriptionObserver.addListener(dynamicPartitionObserver, false);\n\n // depending on provided property start either local or remote administration interface\n if (Boolean.parseBoolean(StringSubstitutor\n .replace(getProperty(PROPERTY_ADMINISTRATION_LOCAL, DEFAULT_PROPERTY_ADMINISTRATION_LOCAL), System.getenv()))) {\n createLocalAdministration(routingService, configurationFilterProvider);\n } else {\n createRemoteAdministration(routingServiceName, configurationFilterProvider);\n }\n\n // enable discovery domain participant\n domainParticipantDiscovery.enable();\n }", "@GinModules(InjectorModule.class)\npublic interface Injector extends Ginjector {\n PlaceHistoryHandler getPlaceHistoryHandler();\n MainView getAppWidget();\n}", "@Component(modules = AppModule.class)\npublic interface AppComponent {\n\n\n EventListComponent plus(EventListModule eventListModule);\n\n EventDetailComponent plus(EventDetailModule eventDetailModule);\n\n}", "@Component(\n modules = {\n AndroidSupportInjectionModule.class,\n NetworkModule.class,\n ViewModelModule.class,\n WeatherContributor.class\n }\n)\n@Singleton\npublic interface WeatherComponent extends AndroidInjector<WeatherApplication> {\n\n @Component.Builder\n interface Builder{\n\n @BindsInstance\n Builder application(Application application);\n\n WeatherComponent build();\n }\n}", "@Override\n\tprotected void configure() {\n\n\t\tbind(RacingBike.class).annotatedWith(ApacheRR.class).to(ApacheRR310.class);\n\t\tbind(RacingBike.class).annotatedWith(ApacheRS.class).to(ApacheRR200.class);\n//\t\tbind(RacingBike.class).annotatedWith(Names.named(\"ApacheRT\")).to(ApacheRR160.class);\n//\t\t\n//\t\tbind(String.class).annotatedWith(Names.named(\"Prajjwal Singh\")).toInstance(\"This is Prajjwal Singh Welcoming you here\");\n\t\t\n\t\t//provider class binding\n//\t\tbind(RacingBike.class).toProvider(ProviderBikes.class);\n\t\t\n//\t\tbind(ApacheRR310.class).to(ApacheRR200.class);\n\t\t\n\t}", "@Delegate\n @Path(\"/projects/{project}/global\")\n RouteApi getRouteApi(@PathParam(\"project\") String projectName);", "@Override\n public void configure() throws Exception {TODO: implement using data generators\n// final SensorDataProcessor sensorDataProcessor = new SensorDataProcessor();\n//\n// from(restBaseUri() + \"/sensorData?httpMethodRestrict=GET\")\n// .setHeader(\"address\", simple(CONFIG.getSensorAddress()))\n// .setBody(simple(\"\"))\n// .to(\"bulldog:i2c?readLength=2\")\n// .process(sensorDataProcessor)\n// .marshal().json(JsonLibrary.Jackson, true);\n//\n from(\"timer:sensorBroadcast?period=5000\")\n .setBody(simple(\"\\\"temperature\\\" : 10, \\\"humidity\\\" : 100, \"))\n .log(\"firing\")\n .to(\"websocket:weather?sendToAll=true\");\n\n HouseBean houseBean = HouseBean.getInstance();\n\n from(restBaseUri() + \"/all?httpMethodRestrict=GET\")\n .setProperty(\"type\", simple(Object.class.getSimpleName()))\n .bean(houseBean, \"objInfo\")\n .marshal().json(JsonLibrary.Jackson, true);\n\n\n }", "@Component(\n modules = {\n ComputerModule.class,\n AccessoriesModule.class,\n DrinksModule.class\n }\n)\npublic interface DemoComponent {\n\n Programmer programmer();\n void inject(MainActivity activity);\n\n}", "@Singleton\n@Component(modules = {DemoRepositoryModule.class, ApplicationModule.class})\npublic interface DemoRepositoryComponent {\n\n DemoRepository getDemoRepository();\n}", "protected void loadRoutesFromClasses(final App app){\n\t\t//Load web app's routes.\n log.debug(\"Load routes[base-path=/] from classes in base package '{}'\", app.getBasePackage());\n\t\tfinal String basePackage = app.getBasePackage();\n\t\tapp.config().getResources().processClasses((cls) -> {\n\t\t\tif(cls.getName().startsWith(basePackage)){\n\t\t\t\tif(as.isControllerClass(cls)){\n log.debug(\" Load controller '{}'\", cls.getName());\n\t\t\t\t\tloadControllerClass(app, \"/\", cls);\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t});\n\n\t\t//Load web module's routes.\n\t\tfor(ModuleConfig module : app.getWebConfig().getModules()){\n\t\t\t// don't repeat load controller\n\t\t\tif(Strings.startsWith(module.getBasePackage()+\".\",basePackage+\".\")){\n\t\t\t\tif(Strings.isEmpty(module.getBasePath())||Strings.equals(\"/\",module.getBasePath())){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n log.debug(\"Scanning module resource(s) in package '{}'...\", module.getBasePackage());\n ResourceSet rs = Resources.scanPackage(module.getBasePackage());\n\n if(rs.isEmpty()) {\n log.info(\"No resource scanned in base package '{}' of module '{}', is the module exists?\",\n\t\t\t\t\t\tmodule.getBasePackage(), module.getName());\n }else{\n String appContextPath = app.getContextPath().equals(\"\") ? \"/\" : app.getContextPath();\n String moduleContextPath = module.getContextPath();\n\n if(Strings.isEmpty(moduleContextPath) || appContextPath.equals(moduleContextPath)) {\n\n log.debug(\"Load routes[base-path={}' from classes in base package '{}' of module '{}'.\",\n module.getBasePath(), module.getBasePackage(), module.getName());\n\n rs.processClasses((cls) -> {\n if(as.isControllerClass(cls)) {\n loadControllerClass(app, module.getBasePath(), cls);\n }\n });\n\n }\n }\n }\n\t}", "public ProgramModule createRootModule(String treeName) throws DuplicateNameException;" ]
[ "0.56222063", "0.5356287", "0.5078619", "0.5033735", "0.5028909", "0.50035155", "0.49777794", "0.49673364", "0.49377963", "0.49003184", "0.4837781", "0.48273838", "0.47750595", "0.4701167", "0.4673339", "0.46620893", "0.46365914", "0.45810026", "0.45773748", "0.45548806", "0.4519487", "0.4496122", "0.4482748", "0.44778052", "0.44766533", "0.44719127", "0.4470879", "0.4458531", "0.44514197", "0.44322658", "0.44055876", "0.43922085", "0.43818316", "0.43777215", "0.43664262", "0.43354562", "0.43258706", "0.43073615", "0.43014115", "0.42959574", "0.4293503", "0.42777637", "0.4272522", "0.42657238", "0.42306808", "0.42117026", "0.42103493", "0.41829082", "0.4181765", "0.4180946", "0.41798013", "0.41655383", "0.4164485", "0.4164003", "0.41590384", "0.41489738", "0.41250402", "0.41193613", "0.41189563", "0.41116446", "0.41058508", "0.41021353", "0.40969637", "0.40845138", "0.4081623", "0.40815583", "0.40792507", "0.40768522", "0.40759745", "0.40617454", "0.40603366", "0.40593123", "0.40566832", "0.40508354", "0.404728", "0.40226665", "0.4014581", "0.40142658", "0.40139478", "0.4007256", "0.40011826", "0.3992511", "0.39864767", "0.39796588", "0.39796588", "0.3979095", "0.39769492", "0.396819", "0.39656705", "0.3964986", "0.39536718", "0.3952103", "0.39501396", "0.39475513", "0.39448124", "0.39434367", "0.39429346", "0.39344817", "0.393273", "0.39310688" ]
0.5728552
0
Constructor for all SkinBase instances.
public MeterSkin(MeterView control) { super(control); Pane pane = new Pane(); Arc arc = new Arc(0, 0, 2, 2, 90 - control.getAngle()/2, control.getAngle()); arc.lengthProperty().bind(control.angleProperty()); arc.startAngleProperty().bind(Bindings.subtract(90, control.angleProperty().divide(2))); arc.radiusXProperty().bind(arc.radiusYProperty()); arc.radiusYProperty().bind(Bindings.min(pane.widthProperty(), pane.heightProperty()).multiply(0.35)); arc.centerXProperty().bind(pane.widthProperty().divide(2)); arc.centerYProperty().bind(pane.heightProperty().divide(2)); arc.typeProperty().bind(control.arcTypeProperty()); arc.setStrokeLineCap(StrokeLineCap.ROUND); arc.strokeProperty().bind(control.arcStrokeProperty()); arc.strokeWidthProperty().bind(arc.radiusYProperty().divide(10)); arc.fillProperty().bind(control.arcFillProperty()); Label label = new Label(""); label.textProperty().bind(control.nameProperty()); label.setMaxWidth(60); label.setWrapText(true); label.setTextAlignment(TextAlignment.CENTER); label.layoutXProperty().bind(pane.widthProperty().divide(2).subtract(label.widthProperty().divide(2))); label.layoutYProperty().bind(pane.heightProperty().divide(2).subtract(arc.radiusYProperty().divide(2)) .subtract(label.heightProperty().divide(2))); label.scaleXProperty().bind(label.scaleYProperty()); label.scaleYProperty().bind(arc.radiusYProperty().multiply(0.025)); Label valueText = new Label(); ChangeListener<String> formatListener = (v1, v2, v3) -> { if (v3 == null) { valueText.setVisible(false); } else { valueText.textProperty().bind(Bindings.format(v3, control.valueProperty())); valueText.setVisible(true); } }; formatListener.changed(null, null, control.getTextFormat()); control.textFormatProperty().addListener(formatListener); valueText.layoutXProperty().bind(pane.widthProperty().divide(2).subtract(valueText.widthProperty().divide(2))); valueText.layoutYProperty().bind(pane.heightProperty().subtract(valueText.heightProperty()) .subtract(valueText.heightProperty().multiply(valueText.scaleYProperty()) .subtract(valueText.heightProperty()).divide(2))); valueText.scaleXProperty().bind(valueText.scaleYProperty()); valueText.scaleYProperty().bind(arc.radiusYProperty().multiply(0.035)); Path arrow = new Path( new MoveTo(110, 0), new LineTo(0, 10), new ArcTo(10, 10, 180, 0, -10, true, true), new LineTo(110, 0)); arrow.layoutXProperty().bind(pane.widthProperty().divide(2)); arrow.layoutYProperty().bind(pane.heightProperty().divide(2)); arrow.strokeProperty().bind(control.arrowStrokeProperty()); arrow.fillProperty().bind(control.arrowFillProperty()); Scale sc = new Scale(1, 1, 0, 0); sc.xProperty().bind(sc.yProperty()); sc.yProperty().bind(arc.radiusYProperty().divide(100)); Rotate rt = new Rotate(0, 0, 0); ChangeListener<Number> valueListener = (v1, v2, v3) -> { new Timeline( new KeyFrame(Duration.ZERO, new KeyValue(rt.angleProperty(), rt.getAngle())), new KeyFrame(Duration.millis(400), new KeyValue(rt.angleProperty(), -arc.getStartAngle() - (arc.getLength() - (v3.doubleValue() / (control.getMax() - control.getMin()) * arc.getLength())), new SmoothInterpolator(SmoothInterpolator.AnimType.ACCELDECEL))) ).playFromStart(); }; valueListener.changed(null, null, Double.isNaN(control.getValue()) ? 0 : control.getValue()); control.valueProperty().addListener(valueListener); arrow.getTransforms().addAll(rt, sc); pane.getChildren().addAll(label, valueText, arc, arrow); pane.setMinSize(75, 75); pane.setPrefSize(200, 200); getChildren().add(pane); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SkinTest() {\r\n initComponents();\r\n }", "protected void initSkins()\n {\n synchronized (this)\n {\n _skins = new HashMap<SkinMetadata, Skin>();\n }\n }", "public PagerXSkin(PagerX pager) {\n super(pager, new PagerXBehavior(pager));\n init();\n// initListeners();\n System.out.println(\"PAGERX SKIN Contructor\");\n }", "public RaceBasePanel()\n\t{\n\t\tinitComponents();\n\t\tinitComponentContents();\n\t}", "public Sku() {\n\t}", "public void Skin() {\n }", "@SuppressWarnings(\"unchecked\")\n protected AbstractTextureManager() {\n lastAtlasIndex = new ArrayList<Integer>();\n expectedAtlasCount = new ArrayList<Integer>();\n rootDirectories = new ArrayList<String>();\n textures = new HashMap<String, Texture>();\n }", "public Assets() {\n\t\tinit();\n\t}", "@Override\n public void init() {\n\n super.init();\n\n }", "@Override // opcional\n public void init(){\n\n }", "public void init() {\r\n\t\t/*\r\n\t\t * Initialize panel for base\r\n\t\t */\r\n\t\tbaseList = GameMap.getBaseList();\r\n\t\tthis.add(new BaseInfoPanel(baseList.getFirst(), controlPanel));\r\n\t}", "@Override public void init()\n\t\t{\n\t\t}", "public Levels()\r\n { \r\n super(1070, 570, 1);\r\n \r\n //Add the bottom platform in the menu screen\r\n platforms = new Platforms[7]; \r\n for (int i = 0; i < platforms.length; i++)\r\n {\r\n platforms[i] = new Platforms();\r\n }\r\n bottomPlatform();\r\n\r\n //Add the Potato (player)\r\n player = new Player();\r\n addObject (player, 100, 512); \r\n\r\n setBackground(\"menu.png\");\r\n }", "public BaseObject()\n\t {\n\t className=\"BaseObject\";\n\t objectName=\"default object\";\n\t }", "public void init() {\r\n\t\t// to override\r\n\t}", "public TShapePanel() {\r\ncommonInitialization();\r\n }", "protected void init() {\n // to override and use this method\n }", "protected void init(){\n }", "abstract public Skin getSkin();", "Constructor() {\r\n\t\t \r\n\t }", "public Sandwich()\n\t{super();\n \n\t\t\n\t}", "public void init() {\n\t\t \r\n\t\t }", "public Widget() {\n /*\n * THIS - You can use the \"this\" keyword as a method too, which will call the appropriate\n * constructor. This lets you reuse the initialization code you have written in a different\n * constructor.\n */\n this(\"Widget\");\n }", "@Override\n protected void init() {\n }", "public RenderSystem() {\n super(SystemType.RENDER);\n bufferBuffer =\n new MasterBuffer(\n voide.resources.Resources\n .get()\n .getResource(\"voide.packed_texture\", Texture.class)\n .getTextureId()\n );\n master =\n new MasterRenderer(Constants.GAME_WIDTH, Constants.GAME_HEIGHT);\n }", "public BaseElement() {\n }", "@Override\n public void init() {}", "public Boop() {\n\t\tsuper();\n\t}", "public CatalogSettings() {\n init();\n }", "@Override\r\n\tpublic void init() {\n\t\tsuper.init();\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {\n }", "protected void init() {\n }", "public SKIN_SPECIALIST() {\n initComponents();\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "public RobotContainer() \n {\n /* Bind commands to joystick buttons. */\n m_OI.configureButtonBindings();\n\n /* Initialize various systems on robotInit. */\n this.initializeStartup();\n\n /* Initialize autonomous command chooser and display on the SmartDashboard. */\n this.initializeAutoChooser();\n\n /* Initialize PID tuning for use on the SmartDashboard. */\n this.initializePIDValues();\n\n // this.testColorSensing();\n }", "@Override\n public void init() {\n super.init();\n\n setTheme(\"xtreemfs\");\n\n initLayout();\n initTable();\n initFileDetails();\n initButtons();\n initFilteringControls();\n initUploadState();\n }", "public BaseCatalog()\n {\n System.out.println(\"BaseCatalog: BaseCatalog() ... a new service created\");\n _environment = new Environment();\n _layout = new PageLayout();\n _layoutProj = new LayoutProject();\n _layoutProj.setRegisteredEnvironment(_environment);\n _layoutProj.setRegisteredLayout(_layout);\n }", "public SWPResourcesConfigBase(org.semanticwb.platform.SemanticObject base)\r\n {\r\n super(base);\r\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}", "protected void initialize()\n {\n uiFactory.configureUIComponent(this, UI_PREFIX);\n\n initializeFields();\n initializeLabels();\n initLayout();\n }", "public static void init()\n {\n\n addShapeless();\n\n addShaped();\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public HealthUI() {\n init();\n }", "private UI()\n {\n this(null, null);\n }", "public BankPanel() {\r\n\t super();\r\n\t}", "private TSLManager() {\n\t\tsuper();\n\t}", "Base1()\r\n\t{\r\n\t\tSystem.out.println(\"Base Constructor Called\");\r\n\t}", "public ClassTester()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1);\n addObject(new NonScrollingBackground(\"Stage - 0.jpg\"),300,131);\n addObject(playerMage,35,170);\n addObject(new AbilityDisplayer(playerMage),125,268);\n }", "private void init() {\n healthBars = new TextureAtlas( Gdx.files.internal( \"health/health.pack\" ) );\n buildUIElements();\n }", "protected TWidget() {\n children = new ArrayList<TWidget>();\n }", "public static void classInit(){\n //set up font\n //font = WurfelEngine.getInstance().manager.get(\"com/BombingGames/WurfelEngine/EngineCore/arial.fnt\"); //load font\n font = new BitmapFont(false);\n //font.scale(2);\n\n\n font.setColor(Color.GREEN);\n //font.scale(-0.5f);\n \n //load sprites\n Block.loadSheet();\n addInputProcessor(staticStage);\n skin = new Skin(Gdx.files.internal(\"com/BombingGames/WurfelEngine/Core/skin/uiskin.json\"));\n GameplayScreen.msgSystem().viewInit(skin,Gdx.graphics.getWidth()/2, Gdx.graphics.getHeight()/4);\n }", "private VP_Theme() {\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "protected void init() {\n\t}", "protected void init() {\n\t}", "public Player(){\n default_init();\n }", "public UI() {\n initComponents();\n }", "public ComboManager()\n {\n comboSize = Math.min(SkillAPI.getSettings().getComboSize(), Click.MAX_COMBO_SIZE);\n clicks = SkillAPI.getSettings().getEnabledClicks();\n }", "protected void initialize() {\n\t\tsetBodyColor(Color.BLACK);\r\n\t\tsetGunColor(Color.BLACK);\r\n\t\tsetRadarColor(Color.BLACK);\r\n\t\tsetScanColor(Color.BLUE);\r\n\t\tsetBulletColor(Color.RED);\r\n\t}", "@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\t\tpublic void init() {\n\t\t}", "@Override\n void init() {\n }", "public BridgingUI() {\n initComponents();\n initUserActions();\n }", "@Override\n\tpublic void init() {\n\t}", "public Controls()\n {\n string = \"Controls\";\n getButtonImage();\n }", "public DeviceSelectionComponentBase() {\n initComponents();\n }", "public Cow() {\n\t\tsuper();\n\t\tloadImages();\n\t}", "public Region() {\n initComponents();\n bindingTabel();\n }", "@Override\n public void init() {\n }", "public void init()\n\t{\n\t\tsuper.init();\n\t\tM_log.info(\"init()\");\n\t}", "public void init()\n\t{\n\t\tsuper.init();\n\t\tM_log.info(\"init()\");\n\t}", "public Theme() {\n\t\tpalette = new HashMap<>();\n\t\tinitDefaultPalette(palette);\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}", "protected ICUResourceBundle(){}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "public Soil()\n\t{\n\n\t}", "public JhoveResources() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void init() {\n\t\tsuper.init();\n\t\tlog.info(getClass().getSimpleName()+\" initialized\");\n\t}", "public ComponentsFactory() {\n\t\tsuper();\n\t}", "public PanelIconos() {\n initComponents();\n }", "public ScribbleFactoryImpl()\n {\n\t\tsuper();\n\t}", "public UiFactoryImpl() {\n\t\tsuper();\n\t}", "public Library() {\r\n initComponents();\r\n }", "public StimuliFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public UI() {\n initComponents();\n setResizable(false);\n }", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "public Level()\n {\n //Initialise Tile Types\n try \n {\n //Dynamically assign texture paints\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/surface.jpg\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/rover.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/rock.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/mineral.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/target.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/warning.png\")), tile));\n } catch(FileNotFoundException fnfe) {\n System.out.println(\"ERROR: Invalid texture paint, file not found\" + fnfe);\n }\n catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "public Constructor(){\n\t\t\n\t}" ]
[ "0.68512726", "0.6426725", "0.64153826", "0.6278928", "0.6103872", "0.6079664", "0.60748386", "0.6025575", "0.602141", "0.5935267", "0.58880526", "0.58752906", "0.58675873", "0.58062154", "0.57927793", "0.57913834", "0.57877094", "0.57813096", "0.5778408", "0.5773638", "0.5763862", "0.57483155", "0.57451874", "0.57234985", "0.57153296", "0.5712266", "0.57048255", "0.5696343", "0.5693383", "0.5679002", "0.56704664", "0.5669155", "0.5653913", "0.56294286", "0.5628526", "0.56240964", "0.56240964", "0.56204295", "0.5619779", "0.5616183", "0.5607716", "0.5606819", "0.5606819", "0.5606819", "0.5604912", "0.56043214", "0.5603692", "0.5602914", "0.5593955", "0.5582137", "0.5572967", "0.5570862", "0.5564967", "0.556186", "0.55606884", "0.5554245", "0.5551685", "0.55488497", "0.55476487", "0.55476487", "0.55452", "0.5529995", "0.55292714", "0.5527303", "0.5518772", "0.5518772", "0.5518772", "0.5518772", "0.5518772", "0.55175334", "0.55117285", "0.55089456", "0.5505904", "0.55035985", "0.54955286", "0.54945725", "0.5490442", "0.54887885", "0.54880214", "0.54880214", "0.54865617", "0.5486268", "0.5486268", "0.5486268", "0.54825217", "0.5481301", "0.5481301", "0.5481301", "0.54755545", "0.5472738", "0.54724926", "0.5472142", "0.5465984", "0.54618824", "0.5459225", "0.5455524", "0.54523116", "0.5451907", "0.544749", "0.5447354", "0.5446967" ]
0.0
-1
Creates new form NewJInternalFrame
public ViewEliminar() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void createInternalFrame() {\n\t\tJInternalFrame frame = new JInternalFrame();\n\t\tframe.setVisible(true);\n\t\tframe.setClosable(true);\n\t\tframe.setResizable(true);\n\t\tframe.setFocusable(true);\n\t\tframe.setSize(new Dimension(300, 200));\n\t\tframe.setLocation(100, 100);\n\t\tdesktop.add(frame);\n\t\ttry {\n\t\t\tframe.setSelected(true);\n\t\t} catch (java.beans.PropertyVetoException e) {\n\t\t}\n\t}", "protected JInternalFrame getNewInternalFrame() {\n\t\tJInternalFrame frame = new JInternalFrame();\n\t\tframe.getContentPane();\n\t\tframe.setVisible(true);\n\t\tframe.setClosable(true);\n\t\tframe.setResizable(true);\n\t\tframe.setFocusable(true);\n\t\tframe.setSize(new Dimension(300, 200));\n\t\tframe.setLocation(100, 400);\n\t\ttry {\n\t\t\tframe.setSelected(true);\n\t\t} catch (java.beans.PropertyVetoException e) {\n\t\t}\n\t\treturn frame;\n\t}", "private JInternalFrame createInternalFrame() {\n\n initializeChartPanel();\n\n chartPanel.setPreferredSize(new Dimension(200, 100));\n final JInternalFrame frame = new JInternalFrame(\"Frame 1\", true);\n frame.getContentPane().add(chartPanel);\n frame.setClosable(true);\n frame.setIconifiable(true);\n frame.setMaximizable(true);\n frame.setResizable(true);\n return frame;\n\n }", "public JInternalFrame createAndShow() {\r\n /** Create and set up the window. */\r\n JInternalFrame frame = new JInternalFrame(\"About\");\r\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n \r\n frame.putClientProperty(\"JInternalFrame.isPallete\", Boolean.TRUE);\r\n\r\n /** Add content to the window. */\r\n frame.add(new About());\r\n \r\n frame.setClosable(true);\r\n\r\n /** Display the window. */\r\n frame.pack();\r\n frame.setVisible(true);\r\n \r\n return frame;\r\n }", "public NuevoProductoJInternalFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n // HidenLable.setVisible(false);\n }", "public FixedJInternalFrame(){\n super();\n }", "public FixedJInternalFrame(String title){\n super(title);\n }", "public CFJInternalFrame( ) {\n initComponents();\n \n refresh();\n }", "private void insertNewInternalFrame(JInternalFrame treeDisplay) {\n jInternalFrameTree = treeDisplay;\n jLayeredPane1.add(jInternalFrameTree, JLayeredPane.PALETTE_LAYER);\n jInternalFrameTree.setMaximizable(true);\n jInternalFrameTree.setDefaultCloseOperation(JInternalFrame.DISPOSE_ON_CLOSE);\n jInternalFrameTree.setIconifiable(true);\n jInternalFrameTree.setClosable(true);\n jInternalFrameTree.setVisible(true);\n jInternalFrameTree.addMouseListener(new MouseAdapter(){\n public void mouseClicked(MouseEvent event){\n doMouseClicked(event);\n }\n\n private void doMouseClicked(MouseEvent event) {\n if(event.getButton() == MouseEvent.BUTTON3 && event.getComponent().getParent().getParent() instanceof JSplitPane){\n jInternalFrameTree = ((JInternalFrame)event.getComponent());\n JPopupMenu jPopupMenu = new JPopupMenu();\n JMenuItem jMenuItem = new JMenuItem(\"Window Preview\");\n jPopupMenu.add(jMenuItem);\n jMenuItem.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n setNewWindowEnabled(false);\n }\n\n private void setNewWindowEnabled(boolean b) {\n JFrame frame = new JFrame();\n JMenuBar jMenuBar = new JMenuBar();\n JMenu jMenu = new JMenu(\"Restore size\");\n jMenu.addMouseListener(new MouseAdapter() {\n public void mouseClicked(MouseEvent event){\n jMenuSelected(event);\n }\n\n private void jMenuSelected(MouseEvent event) {\n if(event.getComponent() instanceof JMenu){\n Container container = event.getComponent().getParent().getParent().getParent();\n jInternalFrameTree = new JInternalFrame(((JFrame)event.getComponent().getParent().getParent().getParent().getParent()).getTitle());\n jInternalFrameTree.setToolTipText(\"teste\");\n //jInternalFrameTree.add(null);\n insertNewInternalFrame(jInternalFrameTree);\n }\n }\n });\n jMenuBar.add(jMenu);\n frame.setJMenuBar(jMenuBar);\n frame.setTitle(jInternalFrameTree.getTitle());\n frame.add(jInternalFrameTree.getContentPane());\n try {\n jInternalFrameTree.setClosed(true);\n } catch (PropertyVetoException ex) {\n Logger.getLogger(Tool.class.getName()).log(Level.SEVERE, null, ex);\n }\n //jInternalFrameTree.dispose();\n //jInternalFrameTree = null;\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n frame.setSize(800, 800);\n frame.setVisible(true);\n }\n });\n jPopupMenu.show(event.getComponent(), event.getX(), event.getY());\n }\n }\n });\n }", "public NewJFrame() {\n initComponents();\n \n }", "public NewJFrame() {\r\n initComponents();\r\n }", "public void newWindow() {\n\t\tJMenuTest frame1 = new JMenuTest();\n\t\tframe1.setBounds(100, 100, 400, 400);\n\t\tframe1.setVisible(true);\n\t}", "public NewJFrame1(NewJFrame n) {\n main = n;\n initComponents();\n winOpen();\n setLocationFrame();\n this.setVisible(true);\n }", "public NewJFrame() {\n Connect();\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n }", "public NewJFrame()\r\n {\r\n initComponents();\r\n }", "public NewFrame() {\n initComponents();\n }", "Frame createFrame();", "public NewJFrame() {\n initComponents();\n\n }", "public NewJFrame17() {\n initComponents();\n }", "public NewJFrame1() {\n initComponents();\n }", "public NewJFrame() {\n initComponents();\n IniciarTabla();\n \n \n // ingreso al githup \n \n }", "public xinxiNewJFrame() {\n initComponents();\n }", "public NewDialog() {\n\t\t\t// super((java.awt.Frame)null, \"New Document\");\n\t\t\tsuper(\"JFLAP 7.0\");\n\t\t\tgetContentPane().setLayout(new GridLayout(0, 1));\n\t\t\tinitMenu();\n\t\t\tinitComponents();\n\t\t\tsetResizable(false);\n\t\t\tpack();\n\t\t\tthis.setLocation(50, 50);\n\n\t\t\taddWindowListener(new WindowAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void windowClosing(final WindowEvent event) {\n\t\t\t\t\tif (Universe.numberOfFrames() > 0) {\n\t\t\t\t\t\tNewDialog.this.setVisible(false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tQuitAction.beginQuit();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}", "private void makeFrame(){\n frame = new JFrame(\"Rebellion\");\n\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n frame.setSize(800,800);\n\n makeContent(frame);\n\n frame.setBackground(Color.getHSBColor(10,99,35));\n frame.pack();\n frame.setVisible(true);\n }", "public internalFrame() {\r\n initComponents();\r\n }", "public ColorGeneralDetalleFormJInternalFrame() throws Exception {\r\n\t\tsuper(PaginaTipo.FORMULARIO);\r\n //super(\"ColorGeneral No \" + (++openFrameCount),true, /*resizable*/true, /*closable*/true, /*maximizable*/true);//iconifiable\r\n\t \ttry {\r\n\t\t\tBoolean cargarRelaciones=false;\r\n\t\t\t\r\n\t\t\tthis.initialize(null,false,false,cargarRelaciones,null,null,null,null,null,null,PaginaTipo.PRINCIPAL);\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFuncionesSwing.manageException(this, e, null);\r\n\t\t}\r\n }", "public static void createMainframe()\n\t{\n\t\t//Creates the frame\n\t\tJFrame foodFrame = new JFrame(\"USDA Food Database\");\n\t\t//Sets up the frame\n\t\tfoodFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfoodFrame.setSize(1000,750);\n\t\tfoodFrame.setResizable(false);\n\t\tfoodFrame.setIconImage(icon.getImage());\n\t\t\n\t\tGui gui = new Gui();\n\t\t\n\t\tgui.setOpaque(true);\n\t\tfoodFrame.setContentPane(gui);\n\t\t\n\t\tfoodFrame.setVisible(true);\n\t}", "private JFrame getJFrame() {\n\t\tif (jFrame == null) {\n\t\t\tjFrame = new JFrame();\n\t\t\tjFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tjFrame.setJMenuBar(getJJMenuBar());\n\t\t\tjFrame.setSize(400, 200);\n\t\t\tjFrame.setContentPane(getJContentPane());\n\t\t\tjFrame.setTitle(\"Mancala\");\n\t\t}\n\t\treturn jFrame;\n\t}", "private JInternalFrame makeInternalFrame(String title, int locationX, int locationY, int sizeX, int sizeY,\n\t\t\tboolean boolVisible, boolean boolResize, boolean boolIcon)\n\t{\n\t\tJInternalFrame iFrame = new JInternalFrame(title);\n\t\tiFrame.setLocation(locationX, locationY);\n\t\tiFrame.setSize(sizeX, sizeY);\n\t\tiFrame.setVisible(boolVisible);\n\t\tiFrame.setResizable(boolResize);\n\t\tiFrame.setIconifiable(boolIcon);\n\n\t\treturn iFrame;\n\t}", "public SriDetalleFormJInternalFrame() throws Exception {\r\n\t\tsuper(PaginaTipo.FORMULARIO);\r\n //super(\"Sri No \" + (++openFrameCount),true, /*resizable*/true, /*closable*/true, /*maximizable*/true);//iconifiable\r\n\t \ttry {\r\n\t\t\tBoolean cargarRelaciones=false;\r\n\t\t\t\r\n\t\t\tthis.initialize(null,false,false,cargarRelaciones,null,null,null,null,null,null,PaginaTipo.PRINCIPAL);\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFuncionesSwing.manageException(this, e, null);\r\n\t\t}\r\n }", "public TipoInversionDetalleFormJInternalFrame() throws Exception {\r\n\t\tsuper(PaginaTipo.FORMULARIO);\r\n //super(\"TipoInversion No \" + (++openFrameCount),true, /*resizable*/true, /*closable*/true, /*maximizable*/true);//iconifiable\r\n\t \ttry {\r\n\t\t\tBoolean cargarRelaciones=false;\r\n\t\t\t\r\n\t\t\tthis.initialize(null,false,false,cargarRelaciones,null,null,null,null,null,null,PaginaTipo.PRINCIPAL);\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFuncionesSwing.manageException(this, e, null);\r\n\t\t}\r\n }", "public PedidoProduDetalleFormJInternalFrame() throws Exception {\r\n\t\tsuper(PaginaTipo.FORMULARIO);\r\n //super(\"PedidoProdu No \" + (++openFrameCount),true, /*resizable*/true, /*closable*/true, /*maximizable*/true);//iconifiable\r\n\t \ttry {\r\n\t\t\tBoolean cargarRelaciones=false;\r\n\t\t\t\r\n\t\t\tthis.initialize(null,false,false,cargarRelaciones,null,null,null,null,null,null,PaginaTipo.PRINCIPAL);\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFuncionesSwing.manageException(this, e, null);\r\n\t\t}\r\n }", "public LiquidacionImpuestoImporDetalleFormJInternalFrame() throws Exception {\r\n\t\tsuper(PaginaTipo.FORMULARIO);\r\n //super(\"LiquidacionImpuestoImpor No \" + (++openFrameCount),true, /*resizable*/true, /*closable*/true, /*maximizable*/true);//iconifiable\r\n\t \ttry {\r\n\t\t\tBoolean cargarRelaciones=false;\r\n\t\t\t\r\n\t\t\tthis.initialize(null,false,false,cargarRelaciones,null,null,null,null,null,null,PaginaTipo.PRINCIPAL);\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFuncionesSwing.manageException(this, e, null);\r\n\t\t}\r\n }", "public TipoCompaniaDetalleFormJInternalFrame() throws Exception {\r\n\t\tsuper(PaginaTipo.FORMULARIO);\r\n //super(\"TipoCompania No \" + (++openFrameCount),true, /*resizable*/true, /*closable*/true, /*maximizable*/true);//iconifiable\r\n\t \ttry {\r\n\t\t\tBoolean cargarRelaciones=false;\r\n\t\t\t\r\n\t\t\tthis.initialize(null,false,false,cargarRelaciones,null,null,null,null,null,null,PaginaTipo.PRINCIPAL);\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFuncionesSwing.manageException(this, e, null);\r\n\t\t}\r\n }", "private JFrame showNewFrame(String title) {\n\t\tJFrame f = new JFrame();\n\t\tf.setTitle(title);\n\t\tf.setSize(400, 500);\n\t\tf.setLocationRelativeTo(null);\n\t\tf.setVisible(true);\n\t\treturn f;\n\t}", "public NewJFrame1() {\n initComponents();\n\n dip();\n sh();\n }", "public NewJFrame() {\n initComponents();\n \n \n //combo box\n comboCompet.addItem(\"Séléction officielle\");\n comboCompet.addItem(\"Un certain regard\");\n comboCompet.addItem(\"Cannes Courts métrages\");\n comboCompet.addItem(\"Hors compétitions\");\n comboCompet.addItem(\"Cannes Classics\");\n \n \n //redimension\n this.setResizable(false);\n \n planning = new Planning();\n \n \n }", "public EmpleadoIdiomaDetalleFormJInternalFrame() throws Exception {\r\n\t\tsuper(PaginaTipo.FORMULARIO);\r\n //super(\"EmpleadoIdioma No \" + (++openFrameCount),true, /*resizable*/true, /*closable*/true, /*maximizable*/true);//iconifiable\r\n\t \ttry {\r\n\t\t\tBoolean cargarRelaciones=false;\r\n\t\t\t\r\n\t\t\tthis.initialize(null,false,false,cargarRelaciones,null,null,null,null,null,null,PaginaTipo.PRINCIPAL);\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFuncionesSwing.manageException(this, e, null);\r\n\t\t}\r\n }", "private void buildFrame() {\n String title = \"\";\n switch (formType) {\n case \"Add\":\n title = \"Add a new event\";\n break;\n case \"Edit\":\n title = \"Edit an existing event\";\n break;\n default:\n }\n frame.setTitle(title);\n frame.setResizable(false);\n frame.setPreferredSize(new Dimension(300, 350));\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n\n frame.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n // sets the main form to be visible if the event form was exited\n // and not completed.\n mainForm.getFrame().setEnabled(true);\n mainForm.getFrame().setVisible(true);\n }\n });\n }", "private static void createGUI(){\r\n\t\tframe = new JFrame(\"Untitled\");\r\n\r\n\t\tBibtexImport bib = new BibtexImport();\r\n\t\tbib.setOpaque(true);\r\n\r\n\t\tframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tframe.setContentPane(bib);\r\n\t\tframe.setJMenuBar(bib.menu);\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t}", "FRAME createFRAME();", "public MontoDetalleFormJInternalFrame() throws Exception {\r\n\t\tsuper(PaginaTipo.FORMULARIO);\r\n //super(\"Monto No \" + (++openFrameCount),true, /*resizable*/true, /*closable*/true, /*maximizable*/true);//iconifiable\r\n\t \ttry {\r\n\t\t\tBoolean cargarRelaciones=false;\r\n\t\t\t\r\n\t\t\tthis.initialize(null,false,false,cargarRelaciones,null,null,null,null,null,null,PaginaTipo.PRINCIPAL);\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFuncionesSwing.manageException(this, e, null);\r\n\t\t}\r\n }", "public void populateInternalFrame(JInternalFrame frame, JDesktopPane desktop) {\r\n // empty default impl\r\n }", "public abstract void newWindow(ReFrame newFrame);", "public FixedJInternalFrame(String title, boolean resizable, boolean closable){\n super(title, resizable, closable);\n }", "public void buildFrame();", "public NewJFrame() {\n \n this.setIconImage(img.getImage());\n initComponents();\n \n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"FEEx v. \"+VERSION);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n //Create and set up the content pane.\n Main p = new Main();\n p.addComponentToPane(frame.getContentPane());\n\n frame.addWindowListener(new java.awt.event.WindowAdapter() {\n @Override\n public void windowClosing(java.awt.event.WindowEvent windowEvent) {\n \tstopPolling();\n \tstopMPP();\n p.port.close();\n Utils.storeSizeAndPosition(frame);\n }\n });\n \n //Display the window.\n frame.pack();\n Utils.restoreSizeAndPosition(frame);\n frame.setVisible(true);\n }", "public ParametroProduDetalleFormJInternalFrame() throws Exception {\r\n\t\tsuper(PaginaTipo.FORMULARIO);\r\n //super(\"ParametroProdu No \" + (++openFrameCount),true, /*resizable*/true, /*closable*/true, /*maximizable*/true);//iconifiable\r\n\t \ttry {\r\n\t\t\tBoolean cargarRelaciones=false;\r\n\t\t\t\r\n\t\t\tthis.initialize(null,false,false,cargarRelaciones,null,null,null,null,null,null,PaginaTipo.PRINCIPAL);\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFuncionesSwing.manageException(this, e, null);\r\n\t\t}\r\n }", "public FixedJInternalFrame(String title, boolean resizable){\n super(title, resizable);\n }", "protected void createFrame(String x) {\n InternalFrame frame = new InternalFrame();\n frame.setVisible(true);\n JOptionPane.showMessageDialog(frame, x, \"ERROR\", JOptionPane.ERROR_MESSAGE);\n JLabel invalid = new JLabel(x);\n invalid.setBounds(180, 500, 200, 100);\n frame.add(invalid);\n try {\n frame.setSelected(true);\n } catch (java.beans.PropertyVetoException e) {\n e.printStackTrace();\n }\n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Firma digital\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLocationRelativeTo(null);\r\n\r\n //Create and set up the content pane.\r\n final FirmaDigital newContentPane = new FirmaDigital(frame);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Make sure the focus goes to the right component\r\n //whenever the frame is initially given the focus.\r\n frame.addWindowListener(new WindowAdapter() {\r\n public void windowActivated(WindowEvent e) {\r\n newContentPane.resetFocus();\r\n }\r\n });\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jInternalFrame1 = new javax.swing.JInternalFrame();\n jInternalFrame2 = new javax.swing.JInternalFrame();\n jSplitPane1 = new javax.swing.JSplitPane();\n jSplitPane2 = new javax.swing.JSplitPane();\n jDesktopPane1 = new javax.swing.JDesktopPane();\n jDesktopPane2 = new javax.swing.JDesktopPane();\n jPopupMenu1 = new javax.swing.JPopupMenu();\n jCheckBoxMenuItem1 = new javax.swing.JCheckBoxMenuItem();\n jMenu1 = new javax.swing.JMenu();\n jMenuItem1 = new javax.swing.JMenuItem();\n jMenuItem2 = new javax.swing.JMenuItem();\n jOptionPane1 = new javax.swing.JOptionPane();\n popupMenu1 = new java.awt.PopupMenu();\n jScrollPane1 = new javax.swing.JScrollPane();\n comboCompet = new javax.swing.JComboBox<>();\n buttonShowProj = new javax.swing.JToggleButton();\n buttonNewProj = new javax.swing.JToggleButton();\n\n jInternalFrame1.setVisible(true);\n\n javax.swing.GroupLayout jInternalFrame1Layout = new javax.swing.GroupLayout(jInternalFrame1.getContentPane());\n jInternalFrame1.getContentPane().setLayout(jInternalFrame1Layout);\n jInternalFrame1Layout.setHorizontalGroup(\n jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n jInternalFrame1Layout.setVerticalGroup(\n jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n\n jInternalFrame2.setVisible(true);\n\n javax.swing.GroupLayout jInternalFrame2Layout = new javax.swing.GroupLayout(jInternalFrame2.getContentPane());\n jInternalFrame2.getContentPane().setLayout(jInternalFrame2Layout);\n jInternalFrame2Layout.setHorizontalGroup(\n jInternalFrame2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 191, Short.MAX_VALUE)\n );\n jInternalFrame2Layout.setVerticalGroup(\n jInternalFrame2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 142, Short.MAX_VALUE)\n );\n\n javax.swing.GroupLayout jDesktopPane1Layout = new javax.swing.GroupLayout(jDesktopPane1);\n jDesktopPane1.setLayout(jDesktopPane1Layout);\n jDesktopPane1Layout.setHorizontalGroup(\n jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 100, Short.MAX_VALUE)\n );\n jDesktopPane1Layout.setVerticalGroup(\n jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 100, Short.MAX_VALUE)\n );\n\n javax.swing.GroupLayout jDesktopPane2Layout = new javax.swing.GroupLayout(jDesktopPane2);\n jDesktopPane2.setLayout(jDesktopPane2Layout);\n jDesktopPane2Layout.setHorizontalGroup(\n jDesktopPane2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 100, Short.MAX_VALUE)\n );\n jDesktopPane2Layout.setVerticalGroup(\n jDesktopPane2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 100, Short.MAX_VALUE)\n );\n\n jCheckBoxMenuItem1.setSelected(true);\n jCheckBoxMenuItem1.setText(\"jCheckBoxMenuItem1\");\n\n jMenu1.setText(\"jMenu1\");\n\n jMenuItem1.setText(\"jMenuItem1\");\n\n jMenuItem2.setText(\"jMenuItem2\");\n\n popupMenu1.setLabel(\"popupMenu1\");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosed(java.awt.event.WindowEvent evt) {\n formWindowClosed(evt);\n }\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n\n comboCompet.setModel(new javax.swing.DefaultComboBoxModel<>());\n comboCompet.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n comboCompetActionPerformed(evt);\n }\n });\n\n buttonShowProj.setText(\"Afficher Projection\");\n buttonShowProj.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n buttonShowProjActionPerformed(evt);\n }\n });\n\n buttonNewProj.setText(\"Nouvelle projection\");\n buttonNewProj.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n buttonNewProjActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(44, 44, 44)\n .addComponent(comboCompet, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(299, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(65, 308, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(buttonNewProj)\n .addComponent(buttonShowProj))\n .addGap(110, 110, 110))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(45, 45, 45)\n .addComponent(comboCompet, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(24, 24, 24)\n .addComponent(buttonShowProj)\n .addGap(48, 48, 48)\n .addComponent(buttonNewProj)\n .addContainerGap(193, Short.MAX_VALUE))\n );\n\n pack();\n }", "public DetalleRequisicionCompraDetalleFormJInternalFrame() throws Exception {\r\n\t\tsuper(PaginaTipo.FORMULARIO);\r\n //super(\"DetalleRequisicionCompra No \" + (++openFrameCount),true, /*resizable*/true, /*closable*/true, /*maximizable*/true);//iconifiable\r\n\t \ttry {\r\n\t\t\tBoolean cargarRelaciones=false;\r\n\t\t\t\r\n\t\t\tthis.initialize(null,false,false,cargarRelaciones,null,null,null,null,null,null,PaginaTipo.PRINCIPAL);\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFuncionesSwing.manageException(this, e, null);\r\n\t\t}\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jDesktopPane1 = new javax.swing.JDesktopPane();\n jInternalFrame1 = new javax.swing.JInternalFrame();\n jPanel1 = new javax.swing.JPanel();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jInternalFrame2 = new javax.swing.JInternalFrame();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jInternalFrame1.setClosable(true);\n jInternalFrame1.setIconifiable(true);\n jInternalFrame1.setMaximizable(true);\n jInternalFrame1.setResizable(true);\n jInternalFrame1.setVisible(true);\n\n jButton1.setText(\"jButton1\");\n\n jButton2.setText(\"jButton2\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton1)\n .addComponent(jButton2))\n .addContainerGap(111, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(47, 47, 47)\n .addComponent(jButton2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 59, Short.MAX_VALUE)\n .addComponent(jButton1)\n .addGap(29, 29, 29))\n );\n\n javax.swing.GroupLayout jInternalFrame1Layout = new javax.swing.GroupLayout(jInternalFrame1.getContentPane());\n jInternalFrame1.getContentPane().setLayout(jInternalFrame1Layout);\n jInternalFrame1Layout.setHorizontalGroup(\n jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jInternalFrame1Layout.setVerticalGroup(\n jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jInternalFrame1.setBounds(20, 30, 210, 210);\n jDesktopPane1.add(jInternalFrame1, javax.swing.JLayeredPane.DEFAULT_LAYER);\n\n jInternalFrame2.setVisible(true);\n\n javax.swing.GroupLayout jInternalFrame2Layout = new javax.swing.GroupLayout(jInternalFrame2.getContentPane());\n jInternalFrame2.getContentPane().setLayout(jInternalFrame2Layout);\n jInternalFrame2Layout.setHorizontalGroup(\n jInternalFrame2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 134, Short.MAX_VALUE)\n );\n jInternalFrame2Layout.setVerticalGroup(\n jInternalFrame2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 141, Short.MAX_VALUE)\n );\n\n jInternalFrame2.setBounds(230, 20, 150, 170);\n jDesktopPane1.add(jInternalFrame2, javax.swing.JLayeredPane.DEFAULT_LAYER);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jDesktopPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jDesktopPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)\n );\n\n pack();\n }", "public static void buildFrame() {\r\n\t\t// Make sure we have nice window decorations\r\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\r\n\t\t\r\n\t\t// Create and set up the window.\r\n\t\t//ParentFrame frame = new ParentFrame();\r\n\t\tMediator frame = new Mediator();\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\r\n\t\t// Display the window\r\n\t\tframe.setVisible(true);\r\n\t}", "public static MainFrame createNewFrame(Display display, Document doc)\n {\n Shell shell = new Shell(display);\n\n MainFrame frame = new MainFrame(shell, doc);\n frame.initComponents(null);\n\n shell.open();\n\n return frame;\n }", "public DatoGeneralUsuarioDetalleFormJInternalFrame() throws Exception {\r\n\t\tsuper(PaginaTipo.FORMULARIO);\r\n //super(\"DatoGeneralUsuario No \" + (++openFrameCount),true, /*resizable*/true, /*closable*/true, /*maximizable*/true);//iconifiable\r\n\t \ttry {\r\n\t\t\tBoolean cargarRelaciones=false;\r\n\t\t\t\r\n\t\t\tthis.initialize(null,false,false,cargarRelaciones,null,null,null,null,null,null,PaginaTipo.PRINCIPAL);\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFuncionesSwing.manageException(this, e, null);\r\n\t\t}\r\n }", "public SriFacturasProveedoresIva012DetalleFormJInternalFrame() throws Exception {\r\n\t\tsuper(PaginaTipo.FORMULARIO);\r\n //super(\"SriFacturasProveedoresIva012 No \" + (++openFrameCount),true, /*resizable*/true, /*closable*/true, /*maximizable*/true);//iconifiable\r\n\t \ttry {\r\n\t\t\tBoolean cargarRelaciones=false;\r\n\t\t\t\r\n\t\t\tthis.initialize(null,false,false,cargarRelaciones,null,null,null,null,null,null,PaginaTipo.PRINCIPAL);\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFuncionesSwing.manageException(this, e, null);\r\n\t\t}\r\n }", "public void buildEditFrame() {\n\n\tframe.addWindowListener(new WindowAdapter() {\n\t public void windowClosing(WindowEvent e) {\n\t\t//System.exit(0);\n\t }\n\t});\n\n\t// show the frame\n frame.setSize(Width, Height);\n\tframe.setLocation(screenSize.width/2 - Width/2,\n\t\t\t screenSize.height/2 - Height/2);\n\tframe.getContentPane().setLayout(new BorderLayout());\n\tframe.getContentPane().add(jp, BorderLayout.CENTER);\n\n\tframe.pack();\n//\t((CDFEdit)getFrame()).getDialog().setVisible(false);\n\tframe.setVisible(true);\n\n\t// Deprecated API - jp.requestDefaultFocus(); \n\tjp.requestFocus();\n\tframe.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\n }", "public void createframe(String cid) {\n\t\tviewframe = new JFrame();\n\t\tviewconsumer(cid);\n\t\tviewframe.setTitle(\"Search result\");\n\t\tviewframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tviewframe.setLayout(new BorderLayout()); \n\t\tviewframe.add(viewpage);\n\t\tviewframe.setVisible(true); \n\t\tviewframe.setSize(500, 400);\n\t\tviewframe.setResizable(true);\n\t}", "private static void createAndShowGUI() {\r\n //Disable boldface controls.\r\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE); \r\n\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"Exertion Scripting\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Create and set up the content pane.\r\n NetletEditor newContentPane = new NetletEditor(null);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private void agregarAlPanel(JInternalFrame frame)\n\t{\n\t\tframe.setBounds(10 * (contentPane.getAllFrames().length + 1), 50 + (10 * (contentPane.getAllFrames().length + 1)), (int)frame.getBounds().getWidth(), (int)frame.getBounds().getHeight());\n\t\tcontentPane.add(frame);\n\t\tframe.moveToFront();\n\t}", "private void basicUIButtonActionPerformed() {\n dbCopyFrame basicFrame = new dbCopyFrame(mainFrame, true);\n basicFrame.pack();\n basicFrame.setVisible(true);\n }", "public NewJFrame() {\n initComponents();\n mcam.setLineWrap(true);\n\n }", "private static void createAndShowUI(){\n JFrame frame = new JFrame(\"TargetTest\");\n TargetTest test = new TargetTest();\n frame.setLayout(new FlowLayout());\n frame.getContentPane().add(test.getMainPanel());\n //frame.getContentPane().add(test.getControlsPanel());\n\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n frame.pack();\n\n frame.setLocationRelativeTo(null);\n\n frame.setVisible(true);\n}", "private void createManualJPanel() {\r\n createJPanelWithManual();\r\n JFrame frame = new JFrame();\r\n customizeFrame(frame);\r\n }", "public TamanhoInternalFrameTest() {\r\n initComponents();\r\n setExtendedState(java.awt.Frame.MAXIMIZED_BOTH); // iniciar com tela full\r\n}", "public void createAndShowGUI() {\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n\tif(open==0)\n\t\tframe = new JFrame(\"Open a file\");\n\telse if(open ==1)\n\t\tframe = new JFrame(\"Save file as\");\n //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane =this ;\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n // frame.setSize(500,500);\n//\tvalidate();\n }", "public static JFrame makeFrame (String title)\n {\n\t// make the frame and put a new TextOutputPanel in it\n\tJFrame frame = new JFrame (title);\n\tfinal TextOutputPanel panel = new TextOutputPanel (frame);\n\tframe.setContentPane (panel);\n\tframe.setDefaultCloseOperation (frame.HIDE_ON_CLOSE);\n\n\t// make the menubar for the frame\n\tJMenuBar menuBar = new JMenuBar ();\n\tframe.setJMenuBar (menuBar);\n\n\tJMenu fileMenu = new JMenu (\"File\");\n\tmenuBar.add (fileMenu);\n\tfileMenu.add (new AbstractAction (\"Save As...\")\n\t{\n\t public void actionPerformed (ActionEvent event)\n\t {\n\t\tpanel.saveAs ();\n\t }\n\t});\n\n\tJMenu editMenu = new JMenu (\"Edit\");\n\tmenuBar.add (editMenu);\n\teditMenu.add (new AbstractAction (\"Copy\")\n\t{\n\t public void actionPerformed (ActionEvent event)\n\t {\n\t\tpanel.myDocumentPane.copy ();\n\t }\n\t});\n\teditMenu.add (new AbstractAction (\"Select All\")\n\t{\n\t public void actionPerformed (ActionEvent event)\n\t {\n\t\tpanel.myDocumentPane.selectAll ();\n\t }\n\t});\n\teditMenu.add (new AbstractAction (\"Clear\")\n\t{\n\t public void actionPerformed (ActionEvent event)\n\t {\n\t\tpanel.clear ();\n\t }\n\t});\n\n\tframe.pack ();\n\treturn frame;\n }", "private static ISInspectorGui createNewInstance(ISInspectorController controller) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(ISInspectorGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n Holder<ISInspectorGui> result = new Holder();\n try {\n /* Create and display the form */\n java.awt.EventQueue.invokeAndWait(new Runnable() {\n @Override\n public void run() {\n result.setValue(new ISInspectorGui(controller));\n result.getValue().setVisible(true);\n }\n });\n } catch (InterruptedException | InvocationTargetException ex) {\n Logger.getLogger(ISInspectorGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n return result.getValue();\n }", "public FirstNewFrame() {\n\t\tjbInit();\n\t}", "NOFRAME createNOFRAME();", "@SuppressWarnings({\"nullness\",\"initialization\"})\n public SimServerJInternalFrame() {\n simServerJPanel1 = new crcl.ui.server.SimServerJPanel();\n\n setIconifiable(true);\n setMaximizable(true);\n setResizable(true);\n setTitle(\"CRCL Simulation Server\");\n\n setJMenuBar(simServerJPanel1.jMenuBarSimServer);\n add(simServerJPanel1);\n pack();\n this.simServerJPanel1.setMenuOuter(this);\n }", "public EstadoPoliticasClienteDetalleFormJInternalFrame() throws Exception {\r\n\t\tsuper(PaginaTipo.FORMULARIO);\r\n //super(\"EstadoPoliticasCliente No \" + (++openFrameCount),true, /*resizable*/true, /*closable*/true, /*maximizable*/true);//iconifiable\r\n\t \ttry {\r\n\t\t\tBoolean cargarRelaciones=false;\r\n\t\t\t\r\n\t\t\tthis.initialize(null,false,false,cargarRelaciones,null,null,null,null,null,null,PaginaTipo.PRINCIPAL);\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFuncionesSwing.manageException(this, e, null);\r\n\t\t}\r\n }", "public ProcesoFacturasProductosJInternalFrame() throws Exception {\r\n\t\tsuper(PaginaTipo.PRINCIPAL);\r\n //super(\"ProcesoFacturasProductos No \" + (++openFrameCount),true, /*resizable*/true, /*closable*/true, /*maximizable*/true);//iconifiable\r\n\t \ttry {\r\n\t\t\t//Boolean cargarRelaciones=false;\r\n\t\t\t\r\n\t\t\tinitialize(null,false,false,false/*cargarRelaciones*/,null,null,null,null,null,null,PaginaTipo.PRINCIPAL);\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFuncionesSwing.manageException(this, e, null);\r\n\t\t}\r\n }", "public NewRoomFrame() {\n initComponents();\n }", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n \n\n}\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n \n\n} catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n \n\n} catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n \n\n} catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new NewJFrame1().setVisible(true);\n }\n });\n }", "private static void createAndShowGUI()\r\n {\r\n JFrame frame = new JFrame(\"ChangingTitleFrame Application\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.getContentPane().add(new FramePanel(frame).getPanel());\r\n frame.pack();\r\n frame.setLocationRelativeTo(null);\r\n frame.setVisible(true);\r\n }", "private void buildFrame(){\n this.setVisible(true);\n this.getContentPane();\n this.setSize(backgrondP.getIconWidth(),backgrondP.getIconHeight());\n this.setDefaultCloseOperation(EXIT_ON_CLOSE);\t \n\t }", "public Hwk2JFrame() {\n initComponents();\n }", "public FixedJInternalFrame(String title, boolean resizable, boolean closable,\n boolean maximizable, boolean iconifiable){\n super(title, resizable, closable, maximizable, iconifiable);\n }", "private static void createAndShowGUI() {\n\n frame = new JFrame(messages.getString(\"towers.of.hanoi\"));\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n addComponentsToPane(frame.getContentPane());\n frame.pack();\n frame.setSize(800, 600);\n frame.setVisible(true);\n }", "private static void createAndShowGUI() {\n Font f = new Font(\"微软雅黑\", 0, 12);\n String names[] = {\"Label\", \"CheckBox\", \"PopupMenu\", \"MenuItem\", \"CheckBoxMenuItem\",\n \"JRadioButtonMenuItem\", \"ComboBox\", \"Button\", \"Tree\", \"ScrollPane\",\n \"TabbedPane\", \"EditorPane\", \"TitledBorder\", \"Menu\", \"TextArea\",\n \"OptionPane\", \"MenuBar\", \"ToolBar\", \"ToggleButton\", \"ToolTip\",\n \"ProgressBar\", \"TableHeader\", \"Panel\", \"List\", \"ColorChooser\",\n \"PasswordField\", \"TextField\", \"Table\", \"Label\", \"Viewport\",\n \"RadioButtonMenuItem\", \"RadioButton\", \"DesktopPane\", \"InternalFrame\"\n };\n for (String item : names) {\n UIManager.put(item + \".font\", f);\n }\n //Create and set up the window.\n JFrame frame = new JFrame(\"AutoCapturePackagesTool\");\n\n String src = \"/optimizationprogram/GUICode/u5.png\";\n Image image = null;\n try {\n image = ImageIO.read(new CaptureGUI().getClass().getResource(src));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n frame.setIconImage(image);\n //frame.setIconImage(Toolkit.getDefaultToolkit().getImage(src));\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setResizable(false);\n frame.setLocation(Toolkit.getDefaultToolkit().getScreenSize().width / 2 - 520 / 2,\n Toolkit.getDefaultToolkit().getScreenSize().height / 2 - 420 / 2);\n frame.getContentPane().add(new CaptureGUI());\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "public void rebuildFrame(){\n \n // Re-initialize frame with default attributes\n controlFrame.dispose();\n controlFrame = buildDefaultFrame(\"CSCI 446 - A.I. - Montana State University\");\n \n // Initialize header with default attributes\n header = buildDefaultHeader();\n \n // Initialize control panel frame with default attributes\n controlPanel = buildDefaultPanel(BoxLayout.Y_AXIS);\n \n // Combine objects\n controlPanel.add(header, BorderLayout.NORTH);\n controlFrame.add(controlPanel);\n \n }", "public DetallePedidoExporJInternalFrame() throws Exception {\r\n\t\tsuper(PaginaTipo.PRINCIPAL);\r\n //super(\"DetallePedidoExpor No \" + (++openFrameCount),true, /*resizable*/true, /*closable*/true, /*maximizable*/true);//iconifiable\r\n\t \ttry {\r\n\t\t\t//Boolean cargarRelaciones=false;\r\n\t\t\t\r\n\t\t\tinitialize(null,false,false,false/*cargarRelaciones*/,null,null,null,null,null,null,PaginaTipo.PRINCIPAL);\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFuncionesSwing.manageException(this, e, null);\r\n\t\t}\r\n }", "public TrainModelGUI CreateNewGUI() {\n //Create a GUI object\n \ttrainModelGUI = new TrainModelGUI(this);\n \tsetValuesForDisplay();\n \treturn trainModelGUI;\n }", "private static void createAndShowGUI() {\n\t\t/*\n //Create and set up the window.\n JFrame frame = new JFrame(\"HelloWorldSwing\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Add the ubiquitous \"Hello World\" label.\n JLabel label = new JLabel(\"Hello World\");\n frame.getContentPane().add(label);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n */\n\t\tfinal AC_GUI currentGUI = new AC_GUI();\n\t\t//currentGUI.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tcurrentGUI.setSize(900, 800);\n\t\t// make the frame full screen\n\t\t// currentGUI.setExtendedState(JFrame.MAXIMIZED_BOTH);\n }", "protected static void create(String[] userDataInput, String billboardID, String currentName) {\n JFrame frame = new RenameBillboard(\"Billboard Client\", userDataInput, billboardID, currentName);\n frame.setVisible(true);\n }", "private JFrame getHlavneOkno() {\n\t\tif (hlavneOkno == null) {\n\t\t\thlavneOkno = new JFrame();\n\t\t\thlavneOkno.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\thlavneOkno.setBackground(new Color(238, 238, 238));\n\t\t\thlavneOkno.setResizable(true);\n\t\t\thlavneOkno.setLocation(new Point(200, 100));\n\t\t\thlavneOkno.setJMenuBar(getMenuLista());\n\t\t\thlavneOkno.setSize(571, 551);\n\t\t\thlavneOkno.setContentPane(getHlavneOknoObsah());\n\t\t\thlavneOkno.setTitle(\"SluchAnal v1.0\");\n\t\t}\n\t\treturn hlavneOkno;\n\t}", "public FixedJInternalFrame(String title, boolean resizable, boolean closable,\n boolean maximizable){\n super(title, resizable, closable, maximizable);\n }", "public PlaniVacacionJInternalFrame() throws Exception {\r\n\t\tsuper(PaginaTipo.PRINCIPAL);\r\n //super(\"PlaniVacacion No \" + (++openFrameCount),true, /*resizable*/true, /*closable*/true, /*maximizable*/true);//iconifiable\r\n\t \ttry {\r\n\t\t\t//Boolean cargarRelaciones=false;\r\n\t\t\t\r\n\t\t\tinitialize(null,false,false,false/*cargarRelaciones*/,null,null,null,null,null,null,PaginaTipo.PRINCIPAL);\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFuncionesSwing.manageException(this, e, null);\r\n\t\t}\r\n }", "private void buildFrame() {\n mainFrame = new JFrame();\n header = new JLabel(\"View Contact Information\");\n header.setHorizontalAlignment(JLabel.CENTER);\n header.setBorder(BorderFactory.createEmptyBorder(5, 0, 0, 0));\n \n infoTable.setFillsViewportHeight(true);\n infoTable.setShowGrid(true);\n infoTable.setVisible(true);\n scrollPane = new JScrollPane(infoTable);\n\n mainFrame.add(header, BorderLayout.NORTH);\n mainFrame.add(scrollPane, BorderLayout.CENTER);\n }" ]
[ "0.8123063", "0.7922201", "0.7646065", "0.7432231", "0.7364758", "0.7308966", "0.71917677", "0.7155258", "0.70915276", "0.6972306", "0.68954474", "0.6858871", "0.6850336", "0.68484706", "0.6841525", "0.6813206", "0.6813206", "0.6813206", "0.6813206", "0.6813206", "0.6813206", "0.6813206", "0.6780989", "0.67536414", "0.6731951", "0.67042583", "0.6639848", "0.66344494", "0.6627043", "0.65638214", "0.6541843", "0.6510334", "0.6492054", "0.64912635", "0.648032", "0.64663106", "0.6453612", "0.64530957", "0.6437331", "0.64344424", "0.642691", "0.6424861", "0.6401823", "0.63991225", "0.6381809", "0.6380593", "0.63798654", "0.6378457", "0.6364458", "0.63541335", "0.63360757", "0.6328952", "0.63134015", "0.63127196", "0.628624", "0.6279276", "0.6269337", "0.62499326", "0.62496144", "0.6248907", "0.6240703", "0.62320673", "0.6214771", "0.6191915", "0.61872035", "0.6176388", "0.617322", "0.6167053", "0.61632365", "0.61592925", "0.6147413", "0.614408", "0.6143643", "0.6137169", "0.61229455", "0.611699", "0.6111591", "0.60929054", "0.6089571", "0.60810333", "0.6065443", "0.6064968", "0.60508096", "0.6046962", "0.60383826", "0.603265", "0.602638", "0.6024532", "0.6014039", "0.600744", "0.6006528", "0.60011375", "0.5989187", "0.59846693", "0.5981375", "0.59779394", "0.5976183", "0.596974", "0.59686077", "0.5953328", "0.5945682" ]
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jLabel7 = new javax.swing.JLabel(); jLabel1 = new javax.swing.JLabel(); jtNombre = new javax.swing.JTextField(); jtDNI = new javax.swing.JTextField(); jLabel2 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jtDomicilio = new javax.swing.JTextField(); jtCiudad = new javax.swing.JTextField(); jbBuscar = new javax.swing.JButton(); jLabel4 = new javax.swing.JLabel(); jtTelefono = new javax.swing.JTextField(); jbAceptar = new javax.swing.JButton(); jCheckBox1 = new javax.swing.JCheckBox(); setClosable(true); setIconifiable(true); setMaximizable(true); setResizable(true); setTitle("Eliminar"); jLabel7.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N jLabel7.setForeground(new java.awt.Color(255, 0, 0)); jLabel7.setText("Ingrese el numero de DNI del cliente que desea eliminar"); jLabel1.setText("Nombre Completo"); jtNombre.setEditable(false); jtNombre.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jtNombreActionPerformed(evt); } }); jtDNI.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jtDNIActionPerformed(evt); } }); jLabel2.setText("DNI"); jLabel6.setText("Ciudad"); jLabel5.setText("Domicilio"); jtDomicilio.setEditable(false); jtDomicilio.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jtDomicilioActionPerformed(evt); } }); jtCiudad.setEditable(false); jtCiudad.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jtCiudadActionPerformed(evt); } }); jbBuscar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/reclutamiento.png"))); // NOI18N jbBuscar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jbBuscarActionPerformed(evt); } }); jLabel4.setText("Numero de Telefono"); jtTelefono.setEditable(false); jtTelefono.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jtTelefonoActionPerformed(evt); } }); jbAceptar.setText("ACEPTAR"); jbAceptar.setToolTipText(""); jbAceptar.setEnabled(false); jbAceptar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jbAceptarActionPerformed(evt); } }); jCheckBox1.setText("Tilde esta casilla para eliminar el cliente."); jCheckBox1.setEnabled(false); jCheckBox1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBox1ActionPerformed(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(31, 31, 31) .addComponent(jLabel7)) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(15, 15, 15) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jtTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(21, 21, 21) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jtDNI, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jbBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(84, 84, 84) .addComponent(jtCiudad, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jtDomicilio, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE))))) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(31, 31, 31) .addComponent(jCheckBox1)) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(134, 134, 134) .addComponent(jbAceptar, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(14, Short.MAX_VALUE)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel7) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(1, 1, 1) .addComponent(jbBuscar)) .addGroup(jPanel1Layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jtDNI, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel2)))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jtCiudad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jtDomicilio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jtTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBox1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jbAceptar) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public FrmMenu() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public JFFornecedores() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }", "public frmAddIncidencias() {\n initComponents();\n }" ]
[ "0.73192346", "0.7290526", "0.7290526", "0.7290526", "0.7285891", "0.72480357", "0.7213616", "0.7207808", "0.71955067", "0.71891475", "0.71844363", "0.7159038", "0.71474695", "0.7092269", "0.7079923", "0.70560205", "0.69864315", "0.697697", "0.69552195", "0.6953691", "0.69458604", "0.6942849", "0.6935743", "0.6930747", "0.69286084", "0.6924837", "0.69246644", "0.6911876", "0.69103247", "0.68922365", "0.6891582", "0.68904996", "0.68901706", "0.6888661", "0.68829393", "0.6881672", "0.6880505", "0.68782157", "0.6875765", "0.6874406", "0.68711114", "0.6859388", "0.6856025", "0.68551815", "0.6855079", "0.6855076", "0.68530315", "0.68524104", "0.68524104", "0.6843717", "0.68364704", "0.6836458", "0.6828335", "0.68279964", "0.6826276", "0.68240345", "0.6823631", "0.68171996", "0.6816324", "0.68097955", "0.68088883", "0.68078303", "0.6807776", "0.680721", "0.680251", "0.6795605", "0.6794452", "0.67921954", "0.67907083", "0.678904", "0.6787817", "0.6787755", "0.67814714", "0.67663145", "0.6765024", "0.67649895", "0.6756559", "0.6754775", "0.6751848", "0.67506975", "0.67435455", "0.6738591", "0.6737042", "0.6735227", "0.6732907", "0.6726301", "0.6726003", "0.67197675", "0.67156976", "0.6714806", "0.6713657", "0.6708582", "0.67078584", "0.6705488", "0.6700733", "0.6699659", "0.6698679", "0.66974026", "0.6693979", "0.66902804", "0.6690275" ]
0.0
-1
Adds an object to the acceleration structure
@Override public void add(final Obj prim) { bvhObjList.add(prim); if(bvhBox == null) { this.bvhBox = prim.bbox(); }else { Point mm = prim.bbox().getMin(); Point mx = prim.bbox().getMax(); float nex = Float.max(mx.x(),bvhBox.getMax().x()); float ney = Float.max(mx.y(),bvhBox.getMax().y()); float nez = Float.max(mx.z(),bvhBox.getMax().z()); float nex1 = Float.min(mm.x(),bvhBox.getMin().x()); float ney1 = Float.min(mm.y(),bvhBox.getMin().y()); float nez1 = Float.min(mm.z(),bvhBox.getMin().z()); Point nemax = new Point(nex, ney, nez); Point nemin = new Point(nex1,ney1,nez1); this.bvhBox = BBox.create(nemax, nemin); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void add(GeometricalObject object);", "public void add(GeometricalObject object);", "@Override\r\n\tpublic void add(Object object) {\n\t\t\r\n\t}", "protected void addObject(Obstacle obj) {\n\t\tassert inBounds(obj) : \"Object is not in bounds\";\n\t\tobjects.add(obj);\n\t\tobj.activatePhysics(world);\n\t}", "void add(ObjectType object)\n throws GuacamoleException;", "public void addObject(AdvObject obj) {\n\t\tobjects.add(obj);\n\t}", "public synchronized void add(T object) throws InterruptedException {\n\t\twhile (store.size() == capacity) {\n\t\t\tLOG.info(\"No more space\");\n\t\t\twait();\n\t\t}\n\t\tstore.add(object);\n\t\tLOG.info(\"Added product\" + store.size());\n\t\tnotify();\n\t}", "public void addObject(final PhysicalObject obj) {\n \t\tmyScene.addChild(obj.getGroup());\n \t\tmyObjects.add(obj);\n \t}", "public void addElement(Object obj);", "public void add(Coord obj) {\n\t\tif (index > itemcount)\n\t\t\tthrow new RuntimeException(\"Liste ist voll\");\n\t\tarray[index++] = obj;\n\t}", "protected void addObject(AbstractGameObject object) {\n\t\t// add object to rendering list\n\t\tobjects.add(object);\n\t\tif (object instanceof UIi18nReload) {\n\t\t\tuis.add((UIi18nReload) object);\n\t\t}\n\t\tobjects.sort(new Comparator<GameObject>() {\n\t\t\tpublic int compare(GameObject o1, GameObject o2) {\n\t\t\t\tAbstractGameObject ago1 = (AbstractGameObject) o1;\n\t\t\t\tAbstractGameObject ago2 = (AbstractGameObject) o2;\n\t\t\t\treturn (ago1.layer > ago2.layer ? -1 : (ago1.priority > ago2.priority ? -1 : 1));\n\t\t\t};\n\t\t});\n\t\t// add object to a specific Layer.\n\t\taddObjectToLayer(object);\n\n\t\tstatistics.put(\"objectCount\", objects.size());\n\t\tlogger.debug(\"Add {} to the objects list\", object.name);\n\t}", "public void addGraphicObject(GraphicObject obj)\n {\n graphicObjects.addLast(obj);\n }", "private void addObjectTo(Obstacle obj, int l) {\r\n\t\tassert inBounds(obj) : \"Object is not in bounds\";\r\n\t\tif (l == LevelCreator.allTag) {\r\n\t\t\tsharedObjects.add(obj);\r\n\t\t\t//obj.activatePhysics(world);\r\n\t\t}\r\n\t\telse if (l == LevelCreator.lightTag) {\r\n\t\t\tlightObjects.add(obj);\r\n\t\t\t//obj.activatePhysics(world);\r\n\t\t}else if (l == LevelCreator.darkTag) {\r\n\t\t\tdarkObjects.add(obj);\r\n\t\t\t//obj.activatePhysics(world);\r\n\t\t}\r\n\t}", "void addCollisionObject(CollisionObjectWrapper co) {\n\tpendingObjects.put(co.getId(), co);\n }", "private void addGraphicObject(GraphicObject g_obj, int x, int y) {\n\t\tg_obj.setFillColor(this.currentFillColor);\n g_obj.setStroke(this.currentStrokeColor, this.currentStrokeSize.getValue());\n\n\t\tthis.canvas.add(g_obj, x, y);\n\t}", "public void add(Character object) {\n characterList.add(object);\n super.add(object);\n }", "public void add(Object object) {\n\t\tif (nextItem == null) {\n\t\t\tnextItem = new Item(object, index + 1);\n\t\t} else {\n\t\t\tnextItem.add(object);\n\t\t}\n\t}", "public void addObject(DcObject dco);", "public void add(final E obj)\n {\n final Queue<E> level = getTailLevel();\n level.add(obj);\n size++;\n }", "public void addObject(Objects object)\n {\n items.put(object.getItemName(), object);\n }", "public void add(GameObject newObject) {\n\t\tgameObjects.addElement(newObject);\n\t}", "public void add(E obj) {\r\n throw new UnsupportedOperationException();\r\n }", "@Override\r\n public void add(IMObject object) {\r\n cache.add(object);\r\n }", "public void addObj(Object obj) {\n\t\t\tobjects.add(obj);\n\t\t}", "public void addTo(Vector3 addition) {\n\t\tthis.x += addition.x;\n\t\tthis.y += addition.y;\n\t\tthis.z += addition.z;\n\t}", "public void addObject(GameObject gameObject) {\n\t\tobjects.add(gameObject);\n\t\t\n\t}", "void Add(Object obj );", "public void add(Object o);", "@Override\n public void add(Object o) {\n gameCollection.addElement(o);\n }", "public void addObjectRef(ObjectRef ref){\n \t\tthis.objectRefs[objectPointer++] = ref;\n \t}", "@Override\n <T> void add(T object);", "public void add( Object obj ) throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"add(Object obj) Not implemented.\" );\n\t\t}", "boolean add(Object object) ;", "public void add(Object obj) {\n\t\tif (obj instanceof Entity) {\n\t\t\tentities.add((Entity) obj);\n\t\t}\n\t\t\n\t\tif (obj instanceof ICollidable) {\n\t\t\tcollidables.add((ICollidable) obj);\n\t\t}\n\t\t\n\t\tif (obj instanceof IDrawable) {\n\t\t\tdrawables.addFirst((IDrawable) obj);\n\t\t}\n\t}", "public void addItem(Object obj) {\n items.add(obj);\n }", "public void add(Object o) {\n\t\tadd(size, o);\n\t}", "public void addElement(Replicated obj)\r\n\t{\n\t\tinsert(obj, seq.size());\r\n\t}", "public void add(Object obj) { \n\t\tcollection.addElement(obj);\n\t}", "public void add (T obj);", "public void insert(\n ContentObject object\n )\n {\n if(index == -1)\n {index = 0;}\n\n objects.add(index,object);\n refresh();\n }", "public void addObject(T object)\r\n\t{\r\n\t\tif(cache.size() == maxStorage) //if full\r\n\t\t{\r\n\t\t\tif(cache.contains(object)) //if full and already in cache\r\n\t\t\t{\r\n\t\t\t\tcache.remove(object);\r\n\t\t\t\tcache.addFirst(object);\r\n\t\t\t\thits++;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse //if full but not in cache\r\n\t\t\t{\r\n\t\t\t\tcache.removeLast();\r\n\t\t\t\tcache.addFirst(object);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\telse if(cache.size() < maxStorage) //if there is still room in the cache\r\n\t\t{\r\n\t\t\tif(cache.contains(object)) //if object is already in cache\r\n\t\t\t{\r\n\t\t\t\tcache.remove(object);\r\n\t\t\t\tcache.addFirst(object);\r\n\t\t\t\thits++;\r\n\t\t\t}\r\n\t\t\telse //if object is not already in cache\r\n\t\t\t{\r\n\t\t\t\tcache.addFirst(object);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void add(GObject object);", "public void addObj(Obj3d obj) {\n\t\tthis.panes.add(new ObjPane(obj, this));\n\t\tthis.add(getObjPane(obj));\n\t\tthis.revalidate();\n\t\tthis.repaint();\n\t}", "void add(Object element);", "public synchronized void addElement(WModelObject object)\n\t{\n\t\tm_elements.addElement(object);\n\t}", "public void insert(T object) {\n\t createInternalStorage(object.getIndexes().length);\n\t for(int i=0;i<object.getIndexes().length;i++) {\n\t\tLinkedList<T> value = internalStorage.get(i).get(object.getIndexes()[i]);\n\t\tif (value == null) {\n\t\t value = new LinkedList<T>();\n\t\t internalStorage.get(i).put(object.getIndexes()[i], value);\n\t\t}\n\t\tvalue.add(object);\n\t }\n\t\t\n\t}", "private static Vector2 calculateAcceleration(PhysicsGameObject obj){\n Vector2 gravity = gravityForce(obj);\n Vector2 friction = frictionForce(obj);\n return new Vector2(friction.x + gravity.x,friction.y + gravity.y);\n }", "@Override\n public void addObject() throws Exception {\n Object obj = _factory.makeObject();\n synchronized(this) {\n _numActive++; // A little slimy - must do this because returnObject decrements it.\n this.returnObject(obj);\n }\n }", "void addMotion(IMotion motion);", "public void add(AudioFile object) {\n if (mOriginalValues != null) {\n synchronized (mLock) {\n mOriginalValues.add(object);\n if (mNotifyOnChange) notifyDataSetChanged();\n }\n } else {\n mObjects.add(object);\n if (mNotifyOnChange) notifyDataSetChanged();\n }\n }", "public void addFieldObject(final FieldObject object, final Point position) {\n object.setPosition(position);\n _fieldObjects.add(object);\n\n if (object instanceof RedBird) {\n _mainPlayer.add(object.getFieldObjectView());\n _birdsGroup.add(object.getFieldObjectView());\n } else if (object instanceof Bird) {\n _birdsGroup.add(object.getFieldObjectView());\n } else if (object instanceof Pig) {\n _pigsGroup.add(object.getFieldObjectView());\n ++_pigsCounter;\n } else if (object instanceof WoodenObstacle) {\n _woodenObstacles.add(object.getFieldObjectView());\n }\n\n fireObjectAdded(object);\n }", "public abstract void addArrowObject(ShortPoint2D attackedPos, ShortPoint2D shooterPos, byte shooterPlayerId, float hitStrength);", "public void addObj(ArrayList<Obj3d> obj) {\n\t\tfor (Obj3d o : obj)\n\t\t\taddObj(o);\n\t}", "@Override\n\tpublic void add(Object o) {\n\t}", "public void add(Object o){\n list.add(o);\n }", "public void addShape(Shapes obj) {\n \tthis.listShapes.add(obj);\n W.repaint();\n }", "public void add (Object t)\r\n {\r\n }", "public synchronized void add(Object object) {\n\n if (_queue.size() == 0) {\n // no elements then simply add it here\n _queue.addElement(object);\n } else {\n int start = 0;\n int end = _queue.size() - 1;\n\n if (_comparator.compare(object,\n _queue.firstElement()) < 0) {\n // it need to go before the first element\n _queue.insertElementAt(object, 0);\n } else if (_comparator.compare(object,\n _queue.lastElement()) > 0) {\n // add to the end of the queue\n _queue.addElement(object);\n } else {\n // somewhere in the middle\n while (true) {\n int midpoint = start + (end - start) / 2;\n if (((end - start) % 2) != 0) {\n midpoint++;\n }\n\n int result = _comparator.compare(\n object, _queue.elementAt(midpoint));\n\n if (result == 0) {\n _queue.insertElementAt(object, midpoint);\n break;\n } else if ((start + 1) == end) {\n // if the start and end are next to each other then\n // insert after at the end\n _queue.insertElementAt(object, end);\n break;\n } else {\n if (result > 0) {\n // musty be in the upper half\n start = midpoint;\n } else {\n // must be in the lower half\n end = midpoint;\n }\n }\n }\n }\n }\n }", "public void addQueuedObject(Obstacle obj) {\n\t\tassert inBounds(obj) : \"Object is not in bounds\";\n\t\taddQueue.add(obj);\n\t}", "public Position insertVertex(Object o);", "public void add(Object o) {\n\t\tTrain train = (Train)o;\n\t\ttrainlist.add(train);\n\t\tSystem.out.println(\"Train \"+train.toString()+\" has been added.\");\n\t\tSystem.out.println(\"Index in list is \"+trainlist.indexOf(train));\n\t}", "public void add(Comparable object) {\r\n\r\n // Implement Insertion Sort\r\n for (int i = 0; i < size(); i++) {\r\n if (object.compareTo(get(i)) <= 0) {\r\n add(i, object);\r\n return;\r\n }\r\n }\r\n addLast(object);\r\n }", "public void add(int index, Object object) {\n\t\tif (nextItem.getIndex() == index) {\n\t\t\tItem newItem = new Item(object, index);\n\t\t\tnewItem.setNext(nextItem);\n\t\t\tnextItem = newItem;\n\t\t\tnextItem.getNext().incrementIndex();\n\t\t} else {\n\t\t\tnextItem.add(index, object);\n\t\t}\n\t}", "public void add(WorldObject obj) {\n\troomList.add(obj);\n}", "public void addLeft(T obj) {\r\n if (offset == 0) {\r\n set(uc.getMem().ensureCapacity(objects, count + 2, increment));\r\n //shift them all up by 2 and\r\n ArrayUtils.shiftUp(objects, 2, offset, offset + count - 1, false);\r\n offset += 2;\r\n }\r\n objects[offset - 1] = obj;\r\n count++;\r\n }", "public void addListener(AlgorithmInterface obj) {\r\n objectList.addElement(obj);\r\n }", "public void add(Object value) {\n\n\t}", "private static void updateComponents(PhysicsGameObject obj, Vector3 position, Velocity velocity, Vector2 acceleration,double dt){\n\n integral(obj, dt);\n\n }", "public void addAppear(Object3d o){\r\n appear.addElement(o);\r\n }", "@Override\r\n\tpublic void addElement(VOI o) {\r\n add(o); // add the voi to the vector\r\n }", "void addBallObject() {\n\t\tint ballObjectHeight = ScreenManager.getSizeFromPercentageOfWindowY((float) 10.0);\n\t\tint ballObjectWidth = ballObjectHeight;\n\t\t\n\t\t// Spawning BallObject on the racket\n\t\tint ballObjectX = (int) (racketObject.getX() + (racketObject.width/4.0));\n\t\tint ballObjectY = (int) racketObject.getY() - ballObjectHeight;\n\t\t\n\t\t// BallObject's mass\n\t\tfloat ballObjectMass = (float) 1.075;\n\t\t\n\t\t// Ball velocity X\n\t\tint ballObjectDistanceFromRacketX = -35*(racketObject.getCenterOfWidth() - mouseX);\n\t\tint ballObjectVelocityX = (int) ballObjectDistanceFromRacketX/ScreenManager.getWindowWidth();\n\t\t\n\t\t// Ball velocity Y\n\t\tint ballObjectDistanceFromRacketY = (int) (-35*((racketObject.getY() + racketObject.getHeight()) - mouseY));\n\t\tint ballObjectVelocityY = (int) ballObjectDistanceFromRacketY/ScreenManager.getWindowHeight();\n\t\t\n\t\tballObjects.add(new BallObject(ballObjectX, ballObjectY, ballObjectWidth, ballObjectHeight, ballObjectGravity, ballObjectMass, ballObjectVelocityX, ballObjectVelocityY));\n\t\t\n\t\t// Reduces the amount of time left by 5 seconds\n\t\tMainPanel.gameDuration -= 5;\n\t}", "public abstract void objectUpdate(int x,int y, int delta);", "public void add(vec3 b) {\r\n\t\tadd(this, b);\r\n\t}", "public void addToTable(Attribute object) {\n\t\tlist.add(object);\n\t\toracle.add(object.getFriendlyName());\n\t\tdataProvider.flush();\n\t\tdataProvider.refresh();\n\t}", "void addDependencies(Object object) {\n objects.add(object);\n }", "@Override\r\n public void add(T value) {\r\n Vertex<T> vertex = new Vertex<>(value);\r\n vertices.put(value, vertex);\r\n }", "public void add(Generics o)\n {\n\t // add new object to end of Queue\n\t // set opaqueObject\n\t // build previous link of tail (as current)\n\t AL.add(o);\n\t lastObject = AL.get(AL.size()-1);\n\t \n\t // build next link of current (as tail)\n\t if (currentObject != null) {\n\t\t int currentIndex = AL.indexOf(currentObject);\n\t\t AL.set(currentIndex+1,lastObject);\n\t }\n\t \n\t // after links are established current eq tail\n\t currentObject = lastObject;\n\n\t // head eq tail on 1st element only\n\t if (firstObject == null) {\n\t\t firstObject = lastObject;\n\t }\n }", "@SuppressWarnings(\"unchecked\")\n public void put(final T object) {\n data.add(object);\n }", "public synchronized void add (E object) {\n Node<E> node = new Node<>(object);\n if (first == null) {\n first = node;\n } else if (last == null) {\n last = node;\n last.prev = first;\n first.next = last;\n } else {\n Node<E> temp = last;\n temp.prev.next = temp;\n temp.next = node;\n last = node;\n node.prev = temp;\n }\n }", "public GameObject addObject(String imageName, int x, int y, boolean updateID) {\n\t\tMovementParameters myMove = new MovementParameters(\n\t\t\t\tmyObjectStatsPanel.getMovementName(),\n\t\t\t\tmyObjectStatsPanel.getMovementDuration()\n\t\t\t\t\t\t* MOVEMENT_DURATION_SCALING_CONSTANT,\n\t\t\t\tmyObjectStatsPanel.getMovementSpeed());\n\t\tUninstantiatedGameObject newObject = new UninstantiatedGameObject(\n\t\t\t\tmyObjectStatsPanel.getObjectName(), new JGPoint(x, y),\n\t\t\t\tmyObjectStatsPanel.getCollisionID(), imageName, myMove,\n\t\t\t\tmyObjectStatsPanel.getFloating(),\n\t\t\t\tmyObjectStatsPanel.getScreenFollow(), objectID,\n\t\t\t\tmyObjectStatsPanel.getHitPoints());\n\t\tnewObject.setMovementName(myObjectStatsPanel.getMovementName());\n\t\tobjectID++;\n\t\taddObjectsToLevel(newObject);\n\t\treturn newObject.instantiate(updateID);\n\t}", "void add(int index, Object element);", "public void add() {\n\t\tcart.add(item.createCopy());\n\t}", "public org.python.Object __add__(org.python.Object other);", "private static void updateComponents(PhysicsGameObject obj, Vector3 position, Velocity velocity, Vector3 acceleration,double dt){\n float newX = (float) (position.x +(dt * velocity.Vx) + (dt*acceleration.x * dt / 2));\n float newY = (float) (position.y + (dt * velocity.Vy) + ( dt*acceleration.y * dt / 2));\n\n //v(t+h) = v(t) + h*a\n float newVelX = (float) (velocity.Vx + dt * acceleration.x );\n float newVelY = (float) (velocity.Vy + dt * acceleration.y );\n\n obj.setPositionX(newX);\n obj.setPositionY(newY);\n\n obj.setVelocityComponents(newVelX, newVelY);\n\n\n }", "@Override\n\tpublic void addToCache(T obj) {\n\t\tcache.add(obj);\n\t}", "BasicObject(){\n posX = -1;\n posY = -1;\n velX = 0;\n velY = 0;\n accX = 0;\n accY = 0;\n classOfObejct = 0;\n }", "@Override\n public boolean add(T object) {\n T[] newArray;\n if (array[array.length - 1] != null) {\n newArray = (T[]) new Object[array.length * 2];\n } else {\n newArray = (T[]) new Object[array.length];\n }\n for (int i = 0; i < array.length; i++) {\n newArray[i] = array[i];\n }\n newArray[size] = object;\n this.size++;\n this.array = newArray;\n return true;\n }", "public void c(byte[] object) {\n synchronized (this) {\n Object object2 = this.A;\n if (object2 != null) {\n long l10;\n object2 = new b$b(this, null);\n ((b$b)object2).a = l10 = TXCTimeUtil.generatePtsMS();\n object = this.e((byte[])object);\n ((b$b)object2).b = object;\n object = this.A;\n ((ArrayList)object).add(object2);\n }\n return;\n }\n }", "public static void add_damping_acceleration( Body body ) {\r\n body.currentState.ax = body.currentState.ax - body.currentState.vx * body.damping / body.m;\r\n body.currentState.ay = body.currentState.ay - body.currentState.vy * body.damping / body.m;\r\n body.currentState.az = body.currentState.az - body.currentState.vz * body.damping / body.m;\r\n }", "BasicObject(int posX,int posY,int velX,int velY, int accX, int accY, int classOfObejct){\n this.posX = posX;\n this.posY = posY;\n this.velX = velX;\n this.velY = velY;\n this.accX = accX;\n this.accY = accY;\n this.classOfObejct = classOfObejct;\n }", "@Override\r\n\tpublic boolean add(T obj, int index) {\n\t\tif (index < 0 || index > size) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (size >= array.length)\r\n\t\t\tallocate();\r\n\t\tSystem.arraycopy(array, index, array, index + 1, size - index);\r\n\t\tarray[index] = obj;\r\n\t\tsize++;\r\n\t\treturn true;\r\n\t}", "public synchronized void addObject(E obj) {\n\t\twrappedSet.add((E) obj);\n\t}", "@Override\r\n protected SimpleBody addObject(Entity e) {\n PhysicsShape ps = e.get(PhysicsShape.class);\r\n PhysicsMassType pmt = e.get(PhysicsMassType.class);\r\n Position pos = e.get(Position.class);\r\n\r\n // Right now only works for CoG-centered shapes \r\n SimpleBody newBody = createBody(e.getId(), pmt.getTypeName(ed), ps.getFixture(), true);\r\n\r\n newBody.setPosition(pos); //ES position: Not used anymore, since Dyn4j controls movement\r\n\r\n newBody.getTransform().setTranslation(pos.getLocation().x, pos.getLocation().y); //Dyn4j position\r\n newBody.getTransform().setRotation(pos.getRotation());\r\n\r\n newBody.setUserData(e.getId());\r\n\r\n newBody.setLinearDamping(0.3);\r\n\r\n return newBody;\r\n }", "void addObjectFlowState(ObjectFlowState objectFlowState);", "@Override\n public void add(T car) {\n carsInGarage.add(car);\n }", "public void add(vec3 a, float b) {\r\n\t\tx = a.x + b;\r\n\t\ty = a.y + b;\r\n\t\tz = a.z + b;\r\n\t}", "public ArithmaticExpression add(Object object) {\n this.getChildren().add(new ConstantExpression(object));\n return this;\n }", "@Override\n public void add(T obj) {\n generateObjIdIfRequired(obj);\n \n //Try to copy when adding so we can prevent unwanted changes\n obj = getCopyOfT(obj);\n \n if (objects.contains(obj)) throw new DBEntityAlreadyExistsException(obj.toString());\n\n objects.add(obj);\n }", "public void add(RealObject o) throws NullPointerException;", "public void add( Object value )\n\t{\n\t\tint n = size();\n\t\tif (addIndex >= n)\n\t\t{\n\t\t\tif (n == 0)\n\t\t\t\tn = 8;\n\t\t\telse\n\t\t\t\tn *= 2;\n\t\t\tObject narray = Array.newInstance( array.getClass().getComponentType(), n );\n\t\t\tSystem.arraycopy( array, 0, narray, 0, addIndex );\n\t\t\tarray = narray;\n\t\t}\n\t\tArray.set( array, addIndex++, value );\n\t}", "@Override\n public void add(Object e) {\n if (currentSize == this.container.length - 1) {\n Object[] newArray = new Object[capacity * 2];\n capacity *= 2;\n System.arraycopy(this.container, 0, newArray, 0, currentSize);\n this.container = newArray;\n }\n container[currentSize++] = e;\n }" ]
[ "0.68484247", "0.6745795", "0.66284287", "0.6478809", "0.64650726", "0.6396738", "0.6369204", "0.6342584", "0.6310046", "0.6308635", "0.6255324", "0.6215571", "0.6181333", "0.61708367", "0.61389947", "0.6130289", "0.6115199", "0.60766715", "0.6069265", "0.60648125", "0.6061333", "0.6038846", "0.6010442", "0.6008262", "0.60069406", "0.60015607", "0.6001446", "0.59760535", "0.5967308", "0.59588826", "0.5949008", "0.5943527", "0.59317535", "0.5930949", "0.59247977", "0.5921434", "0.5898449", "0.5882433", "0.5875704", "0.58694994", "0.58531624", "0.5842054", "0.5837667", "0.5835464", "0.5812081", "0.58026844", "0.578998", "0.57868963", "0.57800347", "0.5777501", "0.57766366", "0.5768901", "0.57642895", "0.5741816", "0.5737968", "0.57184035", "0.5716902", "0.57007986", "0.5688798", "0.5685795", "0.56856275", "0.56725883", "0.56660086", "0.56593513", "0.56575453", "0.56551945", "0.56495965", "0.5642757", "0.56345266", "0.56257147", "0.56247526", "0.5606466", "0.5604437", "0.5595809", "0.55914265", "0.55857384", "0.55729717", "0.55654484", "0.55625767", "0.55568844", "0.5547758", "0.5545045", "0.5539175", "0.5532031", "0.5524715", "0.5522765", "0.55159456", "0.55091286", "0.5507238", "0.5501087", "0.5499934", "0.54972655", "0.5495516", "0.5487613", "0.5487351", "0.54847896", "0.548437", "0.548118", "0.54740065", "0.547333", "0.54697686" ]
0.0
-1
Builds the actual bounding volume hierarchy
@Override public void buildBVH() { if(this.bvhObjList.size()<=4) { }else { BVH nebt1 = new BVH(this.bvHi); BVH nebt2 = new BVH(this.bvHi); int tmp = this.calculateSplitDimension(this.bvhBox.getMax().sub(this.bvhBox.getMin())); float splitpos; if(tmp==0) { splitpos = this.calculateMinMax().b.avg(this.calculateMinMax().a).x(); }else if(tmp==1) { splitpos = this.calculateMinMax().b.avg(this.calculateMinMax().a).y(); }else { splitpos = this.calculateMinMax().b.avg(this.calculateMinMax().a).z(); } this.distributeObjects(nebt1, nebt2, tmp, splitpos); this.bvHi.add(nebt1); this.neb1 = bvHi.indexOf(nebt1); this.bvHi.add(nebt2); this.neb2 = bvHi.indexOf(nebt2); nebt2.buildBVH(); nebt1.buildBVH(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void calculateBoundsAABB() {\n\t\tsuper.minY = 0;\n\t\tradius = 0;\n\t\tmaxY = 0;\n\t\tminX = 999999;\n\t\tmaxX = -999999;\n\t\tmaxZ = -99999;\n\t\tminZ = 99999;\n\t\tfor (int j = 0; j < vertexCount; j++) {\n\t\t\tint x = vertexX[j];\n\t\t\tint y = vertexY[j];\n\t\t\tint z = vertexZ[j];\n\t\t\tif (x < minX) {\n\t\t\t\tminX = x;\n\t\t\t}\n\t\t\tif (x > maxX) {\n\t\t\t\tmaxX = x;\n\t\t\t}\n\t\t\tif (z < minZ) {\n\t\t\t\tminZ = z;\n\t\t\t}\n\t\t\tif (z > maxZ) {\n\t\t\t\tmaxZ = z;\n\t\t\t}\n\t\t\tif (-y > super.minY) {\n\t\t\t\tsuper.minY = -y;\n\t\t\t}\n\t\t\tif (y > maxY) {\n\t\t\t\tmaxY = y;\n\t\t\t}\n\t\t\tint radiusSqr = (x * x) + (z * z);\n\t\t\tif (radiusSqr > radius) {\n\t\t\t\tradius = radiusSqr;\n\t\t\t}\n\t\t}\n\t\tradius = (int) Math.sqrt(radius);\n\t\tminDepth = (int) Math.sqrt((radius * radius) + (super.minY * super.minY));\n\t\tmaxDepth = minDepth + (int) Math.sqrt((radius * radius) + (maxY * maxY));\n\t}", "public void constructBoundingBox()\r\n\t{\n\t\tdouble a = m_Qmin.x;\r\n\t\tdouble b = m_Qmin.y;\r\n\t\tdouble c = m_Qmin.z;\r\n\r\n\t\tdouble d = m_Qmax.x;\r\n\t\tdouble e = m_Qmax.y;\r\n\t\tdouble f = m_Qmax.z;\r\n\r\n\t\t//constructing the vertexes of the bounding box\r\n\t\tSceneVertex A = new SceneVertex( new Vector3d(a, b, c));\r\n\t\tSceneVertex B = new SceneVertex( new Vector3d(d, b, c));\r\n\t\tSceneVertex C = new SceneVertex( new Vector3d(d, b, f));\r\n\t\tSceneVertex D = new SceneVertex( new Vector3d(d, e, f));\r\n\t\tSceneVertex E = new SceneVertex( new Vector3d(a, e, f));\r\n\t\tSceneVertex F = new SceneVertex( new Vector3d(a, e, c));\r\n\t\tSceneVertex G = new SceneVertex( new Vector3d(d, e, c));\r\n\t\tSceneVertex H = new SceneVertex( new Vector3d(a, b, f));\r\n\r\n\r\n\t\t// building the vertices arrays for the faces\r\n\t\tArrayList<SceneVertex> verArrP0front = new ArrayList<SceneVertex>(4);\r\n\t\tverArrP0front.add(A);\r\n\t\tverArrP0front.add(B);\r\n\t\tverArrP0front.add(G);\r\n\t\tverArrP0front.add(F);\r\n\t\t\r\n\t\tArrayList<SceneVertex> verArrP1left = new ArrayList<SceneVertex>(4);\r\n\t\tverArrP1left.add(A);\r\n\t\tverArrP1left.add(F);\r\n\t\tverArrP1left.add(E);\r\n\t\tverArrP1left.add(H);\r\n\t\t\r\n\t\tArrayList<SceneVertex> verArrP2back = new ArrayList<SceneVertex>(4);\r\n\t\tverArrP2back.add(H);\r\n\t\tverArrP2back.add(C);\r\n\t\tverArrP2back.add(D);\r\n\t\tverArrP2back.add(E);\r\n\t\t\r\n\t\tArrayList<SceneVertex> verArrP3right = new ArrayList<SceneVertex>(4);\r\n\t\tverArrP3right.add(G);\r\n\t\tverArrP3right.add(D);\r\n\t\tverArrP3right.add(C);\r\n\t\tverArrP3right.add(B);\r\n\t\t\r\n\t\tArrayList<SceneVertex> verArrP4bottom = new ArrayList<SceneVertex>(4);\r\n\t\tverArrP4bottom.add(A);\r\n\t\tverArrP4bottom.add(H);\r\n\t\tverArrP4bottom.add(C);\r\n\t\tverArrP4bottom.add(B);\r\n\r\n\t\tArrayList<SceneVertex> verArrP5top = new ArrayList<SceneVertex>(4);\r\n\t\tverArrP5top.add(F);\r\n\t\tverArrP5top.add(G);\r\n\t\tverArrP5top.add(D);\r\n\t\tverArrP5top.add(E);\r\n\t\t\r\n\t\t// creating BoundingBox\r\n\t\tm_BoundingBox = new SceneNode(DrawingMode.GL_LINE, \"BoundingBox\", null);\r\n\t\tm_BoundingBox.addChild( new ScenePolygon(verArrP0front, \"FRONT\"));\r\n\t\tm_BoundingBox.addChild( new ScenePolygon(verArrP1left, \"LEFT\"));\r\n\t\tm_BoundingBox.addChild( new ScenePolygon(verArrP2back, \"BACK\"));\r\n\t\tm_BoundingBox.addChild( new ScenePolygon(verArrP3right, \"RIGHT\"));\r\n\t\tm_BoundingBox.addChild( new ScenePolygon(verArrP4bottom, \"BOTTOM\"));\r\n\t\tm_BoundingBox.addChild( new ScenePolygon(verArrP5top, \"TOP\"));\r\n\r\n\t\t\r\n\t}", "public void computeBoundingBox() {\n\taveragePosition = new Point3(center);\n tMat.rightMultiply(averagePosition);\n \n minBound = new Point3(Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY);\n maxBound = new Point3(Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY);\n // Initialize\n Point3[] v = new Point3[8];\n for (int i = 0; i < 8; i++)\n \tv[i] = new Point3(center);\n // Vertices of the box\n v[0].add(new Vector3(-radius, -radius, -height/2.0));\n v[1].add(new Vector3(-radius, radius, -height/2.0));\n v[2].add(new Vector3(radius, -radius, -height/2.0));\n v[3].add(new Vector3(radius, radius, -height/2.0));\n v[4].add(new Vector3(-radius, -radius, height/2.0));\n v[5].add(new Vector3(-radius, radius, height/2.0));\n v[6].add(new Vector3(radius, -radius, height/2.0));\n v[7].add(new Vector3(radius, radius, height/2.0));\n // Update minBound and maxBound\n for (int i = 0; i < 8; i++)\n {\n \ttMat.rightMultiply(v[i]);\n \tif (v[i].x < minBound.x)\n \t\tminBound.x = v[i].x;\n \tif (v[i].x > maxBound.x)\n \t\tmaxBound.x = v[i].x;\n \tif (v[i].y < minBound.y)\n \t\tminBound.y = v[i].y;\n \tif (v[i].y > maxBound.y)\n \t\tmaxBound.y = v[i].y;\n \tif (v[i].z < minBound.z)\n \t\tminBound.z = v[i].z;\n \tif (v[i].z > maxBound.z)\n \t\tmaxBound.z = v[i].z;\n }\n \n }", "private void updateBoundingBox() {\n // TODO(sonpham): Optimize this. There is an amazing amount of repetition in this code.\n double downUnitX = MathUtils.quickCos((float) (anchorAngle + Math.PI));\n double downUnitY = MathUtils.quickSin((float) (anchorAngle + Math.PI));\n double sideUnitX = MathUtils.quickCos((float) (anchorAngle + Math.PI / 2));\n double sideUnitY = MathUtils.quickSin((float) (anchorAngle + Math.PI / 2));\n\n double aliveHeight = aliveTroopsMap.size() * 1.0 / width * unitStats.spacing;\n double fullToAliveRatio = 1.0 * troops.size() / aliveTroopsMap.size() ;\n\n double topLeftX = averageX - downUnitX * aliveHeight / 2 - sideUnitX * unitStats.spacing * width / 2;\n double topLeftY = averageY - downUnitY * aliveHeight / 2 - sideUnitY * unitStats.spacing * width / 2;\n\n double topRightX = averageX - downUnitX * aliveHeight / 2 + sideUnitX * unitStats.spacing * width / 2;\n double topRightY = averageY - downUnitY * aliveHeight / 2 + sideUnitY * unitStats.spacing * width / 2;\n\n double healthBotLeftX = averageX + downUnitX * aliveHeight / 2 - sideUnitX * unitStats.spacing * width / 2;\n double healthBotLeftY = averageY + downUnitY * aliveHeight / 2 - sideUnitY * unitStats.spacing * width / 2;\n\n double healthBotRightX = averageX + downUnitX * aliveHeight / 2 + sideUnitX * unitStats.spacing * width / 2;\n double healthBotRightY = averageY + downUnitY * aliveHeight / 2 + sideUnitY * unitStats.spacing * width / 2;\n\n double botLeftX = (healthBotLeftX - topLeftX) * fullToAliveRatio + topLeftX;\n double botLeftY = (healthBotLeftY - topLeftY) * fullToAliveRatio + topLeftY;\n\n double botRightX = (healthBotRightX - topRightX) * fullToAliveRatio + topRightX;\n double botRightY = (healthBotRightY - topRightY) * fullToAliveRatio + topRightY;\n\n aliveBoundingBox[0][0] = topLeftX; aliveBoundingBox[0][1] = topLeftY;\n aliveBoundingBox[1][0] = topRightX; aliveBoundingBox[1][1] = topRightY;\n aliveBoundingBox[2][0] = healthBotRightX; aliveBoundingBox[2][1] = healthBotRightY;\n aliveBoundingBox[3][0] = healthBotLeftX; aliveBoundingBox[3][1] = healthBotLeftY;\n\n boundingBox[0][0] = topLeftX; boundingBox[0][1] = topLeftY;\n boundingBox[1][0] = topRightX; boundingBox[1][1] = topRightY;\n boundingBox[2][0] = botRightX; boundingBox[2][1] = botRightY;\n boundingBox[3][0] = botLeftX; boundingBox[3][1] = botLeftY;\n }", "private BioMightBoundBox setupDefaultBoundBox(String parentID) \r\n\t{\r\n\t\t// Initialize the position of the bounding box vars\r\n\t\tBigDecimal xPos = new BigDecimal(0.0);\r\n\t\tBigDecimal yPos = new BigDecimal(0.0);\r\n\t\tBigDecimal zPos= new BigDecimal(0.0);\r\n\t\t\r\n\t\t// Set to base 1x1x1 cube\r\n\t\tBigDecimal xVector= new BigDecimal(1.0);\r\n\t\tBigDecimal yVector= new BigDecimal(1.0); \r\n\t\tBigDecimal zVector= new BigDecimal(1.0);\r\n\t\r\n\t\t// Initialize the BoundBox\r\n\t\tBioMightBoundBox bioBoundBox = null;\r\n\t\r\n\t\t// Initialize the Connectors \r\n\t\tBioMightConnectors bioMightConnectors = null; \r\n\r\n\t\t// Initialize the Connector \r\n\t\tBioMightConnector bioMightConnector= null;\r\n\t\r\n\t\tdouble circumference = 0.0;\r\n\t\tdouble[] startPos = {0.0, 0.0, 0.0};\r\n\t\tdouble[][] startPoints = BioGraphics.octogonYPlane(startPos, circumference);\r\n\t\t\r\n\t\t\r\n\t\t//**********************************************************************\r\n\t\t// ARMS BOUND BOX\t\t\r\n\t\t//\r\n\t\t// Set up the Bounding Box for the Arms\r\n\t\t// For default model, length of arms is 4.5\r\n\t\t//**********************************************************************\r\n\t\txPos = new BigDecimal(0.0);\r\n\t\tyPos = new BigDecimal(-15.0);\r\n\t\tzPos= new BigDecimal(-5.0);\r\n\t\r\n\t\txVector= new BigDecimal(11.5);\r\n\t\tyVector= new BigDecimal(6.0); \r\n\t\tzVector= new BigDecimal(5.0);\r\n\t\t\r\n\t\t// Setup the boundbox\r\n\t\tbioBoundBox = new BioMightBoundBox(xPos, yPos, zPos, xVector, yVector, zVector);\r\n\t\t// Set up its connectors\r\n\t\tbioMightConnectors = new BioMightConnectors();\r\n\t\t\r\n\t\t//********************************************\r\n\t\t// ARM - ORGAN CONNECTORS\r\n\t\t//********************************************\r\n\t\r\n\t\t// EpitheliumTissue Connector\r\n\t\tcircumference = 0.3;\r\n\t\tstartPos = getStartPoints(0.0, -5.0, -1.0);\r\n\t\tstartPoints = BioGraphics.octogonYPlane(startPos, circumference);\r\n\t\tbioMightConnector = new BioMightConnector(startPoints, Constants.ArmEpitheliumRef,\"connType\");\r\n\t\tbioMightConnectors.setBioMightConnector(Constants.ArmEpitheliumRef, bioMightConnector);\r\n\t\r\n\t\t//********************************************\t\r\n\t\t// ARMS - VASCULAR CONNECTORS \r\n\t\t//********************************************\r\n\t\r\n\t\t// InternalCarotidArteryEpithelium\r\n\t\tcircumference = 0.3;\r\n\t\tstartPos = getStartPoints(0.0, -5.0, -1.0);\r\n\t\tstartPoints = BioGraphics.octogonYPlane(startPos, circumference);\r\n\t\tbioMightConnector = new BioMightConnector(startPoints, \"InternalCarotidArteryEpithelium\",\"connType\");\r\n\t\tbioMightConnectors.setBioMightConnector(\"InternalCarotidArteryEpithelium\", bioMightConnector);\r\n\t\r\n\t\t// ExternalCarotidArteryEpithelium \r\n\t\tcircumference = 0.3;\r\n\t\tstartPos = getStartPoints(0.0, -5.0, -1.0);\r\n\t\tstartPoints = BioGraphics.octogonYPlane(startPos, circumference);\r\n\t\tbioMightConnector = new BioMightConnector(startPoints, \"ExternalCarotidArteryEpithelium\",\"connType\");\r\n\t\tbioMightConnectors.setBioMightConnector(\"ExternalCarotidArteryEpithelium\", bioMightConnector);\r\n\t\r\n\t\t//********************************************\r\n\t\t// ARMS - MUSCULAR CONNECTORS\r\n\t\t//********************************************\r\n\r\n\t\r\n\t\t//********************************************\r\n\t\t// ARMS - SKELETAL CONNECTORS\r\n\t\t//********************************************\r\n\r\n\t\t// ThoracicVertebrae T6 \r\n\t\tcircumference = 0.3;\r\n\t\tstartPos = getStartPoints(0.0, -5.0, -1.0);\r\n\t\tstartPoints = BioGraphics.octogonYPlane(startPos, circumference);\r\n\t\tbioMightConnector = new BioMightConnector(startPoints, \"CervicalVertebrae\",\"connType\");\r\n\t\tbioMightConnectors.setBioMightConnector(\"CervicalVertebrae\", bioMightConnector);\r\n\t\t\r\n\t\t\r\n\t\t// Stuff the Connectors into the Bounding Box \r\n\t\tbioBoundBox.setBioMightConnectors(bioMightConnectors);\r\n\t\t\r\n\t\treturn (bioBoundBox);\t\r\n\t}", "public void buildInitialBand()\r\n\t{\n\t\r\n\tint bl = boundary.size();\r\n\tfor(int i=0; i<bl; i++) \r\n\t\t{\r\n\t\tInt2d bCur = boundary.get(i);\r\n\t\t//System.out.println(bCur.x + \", \" + bCur.y + \": size = \" + heap.size());\r\n\t\t\r\n\t\ttestPointsAround(bCur.x,bCur.y);\r\n\t\t}\r\n\t\r\n\t}", "private void updateBoundingBox()\n\t{\n\t\tif (this.facingDirection != null)\n\t\t{\n\t\t\tdouble d0 = (double) this.hangingPosition.getX() + 0.5D;\n\t\t\tdouble d1 = (double) this.hangingPosition.getY() + 0.5D;\n\t\t\tdouble d2 = (double) this.hangingPosition.getZ() + 0.5D;\n\t\t\tdouble d3 = 0.46875D;\n\t\t\tdouble d4 = this.someFunc(this.getWidthPixels());\n\t\t\tdouble d5 = this.someFunc(this.getHeightPixels());\n\t\t\td0 = d0 - (double) this.facingDirection.getFrontOffsetX() * 0.46875D;\n\t\t\td2 = d2 - (double) this.facingDirection.getFrontOffsetZ() * 0.46875D;\n\t\t\td1 = d1 + d5;\n\t\t\tEnumFacing enumfacing = this.facingDirection.rotateYCCW();\n\t\t\td0 = d0 + d4 * (double) enumfacing.getFrontOffsetX();\n\t\t\td2 = d2 + d4 * (double) enumfacing.getFrontOffsetZ();\n\t\t\tthis.posX = d0;\n\t\t\tthis.posY = d1;\n\t\t\tthis.posZ = d2;\n\t\t\tdouble d6 = (double) this.getWidthPixels();\n\t\t\tdouble d7 = (double) this.getHeightPixels();\n\t\t\tdouble d8 = (double) this.getWidthPixels();\n\n\t\t\tif (this.facingDirection.getAxis() == EnumFacing.Axis.Z)\n\t\t\t{\n\t\t\t\td8 = 1.0D;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\td6 = 1.0D;\n\t\t\t}\n\n\t\t\t// ???\n\n\t\t\td6 = d6 / (this.getWidthPixels() / this.blocksToTakeUp() * 2D);\n\t\t\td7 = d7 / (this.getHeightPixels() / this.blocksToTakeUp() * 2D);\n\t\t\td8 = d8 / (this.getWidthPixels() / this.blocksToTakeUp() * 2D);\n\t\t\tthis.setEntityBoundingBox(new AxisAlignedBB(d0 - d6, d1 - d7, d2 - d8, d0 + d6, d1 + d7, d2 + d8));\n\t\t}\n\t}", "private void calculateChunkBounds()\n\t{\n\t\tchunkBounds[BOUND_LEFT] = ChunkUtils.convertXCoord((int) (cameraX - (viewportWidth / zoom) / ChunkUtils.LOADING_DISTANCE_FACTOR));\n\t\tchunkBounds[BOUND_RIGHT] = ChunkUtils.convertXCoord((int) (cameraX + (viewportWidth/zoom)/ChunkUtils.LOADING_DISTANCE_FACTOR));\n\t\tchunkBounds[BOUND_BOTTOM] = ChunkUtils.convertYCoord((int) (cameraY - (viewportHeight/zoom)/ChunkUtils.LOADING_DISTANCE_FACTOR));\n\t\tchunkBounds[BOUND_TOP] = ChunkUtils.convertYCoord((int) (cameraY + (viewportHeight/zoom)/ChunkUtils.LOADING_DISTANCE_FACTOR));\n\t}", "public void computeStoredBounds()\n {\n computeSRectangleBound();\n computeCircleBound();\n }", "@Override\n\tpublic BoundingSphereTree getBoundingSpheres() {\n\t\tthis.boundingSphere.setSphereColore3d(1,0,0);\n\t\tboundingSphereTree.setBoundingSphere(this.boundingSphere);\n\t\tboundingSphereTree.getList().add(wheels.getlWheel().getBoundingSphereTree());\n\t\tboundingSphereTree.getList().add(wheels.getrWheel().getBoundingSphereTree());\n\t\treturn boundingSphereTree;\n\t}", "protected void computeBounds() {\r\n bounds = new Rectangle(layout.location.x - icon.getIconWidth() / 2,\r\n layout.location.y - icon.getIconHeight() / 2, icon.getIconWidth(), icon.getIconHeight()).union(labelBox)\r\n .union(ports[0].getBounds()).union(ports[1].getBounds()).union(ports[2].getBounds())\r\n .union(component.getType() == TemplateComponent.TYPE_CHANNEL\r\n ? ports[3].getBounds().union(supHalo.getBounds())\r\n : ports[3].getBounds());\r\n }", "private void createBuildVolume() {\n\n addVolume(shellScriptInfo.getBuild().getBuildDir());\n }", "private void calculateVolume() {\n\n\t\t/*\n\n\t\t */\n\t\tfor(int i=0; i<this._prismoidsLength.size(); i++) \n\t\t\tthis._prismoidsVolumes.add(\n\t\t\t\t\tAmount.valueOf(\n\t\t\t\t\t\t\tthis._prismoidsLength.get(i).divide(3)\n\t\t\t\t\t\t\t.times(\n\t\t\t\t\t\t\t\t\tthis._prismoidsSectionsAreas.get(i).getEstimatedValue()\n\t\t\t\t\t\t\t\t\t+ this._prismoidsSectionsAreas.get(i+1).getEstimatedValue()\n\t\t\t\t\t\t\t\t\t+ Math.sqrt(\n\t\t\t\t\t\t\t\t\t\t\tthis._prismoidsSectionsAreas.get(i)\n\t\t\t\t\t\t\t\t\t\t\t.times(this._prismoidsSectionsAreas.get(i+1))\n\t\t\t\t\t\t\t\t\t\t\t.getEstimatedValue()\n\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t).getEstimatedValue(),\n\t\t\t\t\t\t\tSI.CUBIC_METRE\n\t\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\n\t\tfor(int i=0; i<this._prismoidsVolumes.size(); i++)\n\t\t\tthis._fuelVolume = this._fuelVolume\n\t\t\t\t\t\t\t\t\t\t.plus(this._prismoidsVolumes.get(i));\n\t\tthis._fuelVolume = this._fuelVolume.times(2);\n\t\t\n\t}", "private BioMightBoundBoxes setupDefaultBoundBoxes() \r\n\t{\r\n\t\t// Set up the collection to hold the Bounding Boxes\r\n\t\tBioMightBoundBoxes bioBoundBoxes = null;\r\n\t\r\n\t\t// Initialize the position of the bounding box vars\r\n\t\tBigDecimal xPos = new BigDecimal(0.0);\r\n\t\tBigDecimal yPos = new BigDecimal(0.0);\r\n\t\tBigDecimal zPos= new BigDecimal(0.0);\r\n\t\t\r\n\t\t// Set to base 1x1x1 cube\r\n\t\tBigDecimal xVector= new BigDecimal(1.0);\r\n\t\tBigDecimal yVector= new BigDecimal(1.0); \r\n\t\tBigDecimal zVector= new BigDecimal(1.0);\r\n\t\r\n\t\t// Initialize a BoundBox\r\n\t\tBioMightBoundBox bioBoundBox = null;\r\n\t\r\n\t\t// Initialize Connectors \r\n\t\tBioMightConnectors bioMightConnectors = null; \r\n\r\n\t\t// Initialize a Connector \r\n\t\tBioMightConnector bioMightConnector= null;\r\n\t\r\n\t\tdouble circumference = 0.0;\r\n\t\tdouble[] startPos = {0.0, 0.0, 0.0};\r\n\t\tdouble[][] startPoints = null;\r\n\t\r\n\t\t//********************************************************************* \r\n\t\t// LEFT FOOT BOUNDBOX\r\n\t\t// Set up the Bounding Box for the Feet\r\n\t\t// The connector for this will come from the incoming Bound Box\r\n\t\t// Both are defined like and bolt and they lock into position at the\r\n\t\t// interestion of both connectors\r\n\t\t//**********************************************************************\r\n\t\txPos = new BigDecimal(0.0);\r\n\t\tyPos = new BigDecimal(-65.0);\r\n\t\tzPos= new BigDecimal(3.0);\r\n\t\r\n\t\txVector= new BigDecimal(1.0);\r\n\t\tyVector= new BigDecimal(4.0); \r\n\t\tzVector= new BigDecimal(1.0);\r\n\r\n\t\tbioBoundBox = new BioMightBoundBox(xPos, yPos, zPos, xVector, yVector, zVector);\r\n\t\tbioMightConnectors = new BioMightConnectors();\r\n\t\r\n\t\t// Feet Epithelium Connector\r\n\t\tcircumference = 0.3;\r\n\t\tstartPos = getStartPoints(-2.0, -65.0, -1.0);\r\n\t\tstartPoints = BioGraphics.octogonYPlane(startPos, circumference);\r\n\t\tbioMightConnector = new BioMightConnector(startPoints, Constants.FootEpitheliumRef,\"connType\");\r\n\t\tbioMightConnectors.setBioMightConnector(Constants.FootEpitheliumRef, bioMightConnector);\r\n\t\t\r\n\t\t// Associate the connector on the Box\r\n\t\tbioBoundBox.setBioMightConnectors(bioMightConnectors);\r\n\t\t\r\n\t\t// Put the Bounding Box in the collection\r\n\t\tbioBoundBoxes.setBoundingBox(Constants.LeftFootRef, bioBoundBox);\r\n\t\r\n\t\r\n\t\t//********************************************************************* er\r\n\t\t// RIGHT CNEMES BOUNDBOX\r\n\t\t// Set up the Bounding Box for the Foot\r\n\t\t// On a porportioned human, the \r\n\t\t//**********************************************************************\r\n\t\txPos = new BigDecimal(0.0);\r\n\t\tyPos = new BigDecimal(-14.0);\r\n\t\tzPos= new BigDecimal(-3.0);\r\n\t\r\n\t\txVector= new BigDecimal(1.0);\r\n\t\tyVector= new BigDecimal(4.0); \r\n\t\tzVector= new BigDecimal(1.0);\r\n\r\n\t\tbioBoundBox = new BioMightBoundBox(xPos, yPos, zPos, xVector, yVector, zVector);\r\n\t\tbioMightConnectors = new BioMightConnectors();\r\n\t\t\r\n\t\t// Foot Epithelium Connector\r\n\t\tcircumference = 0.3;\r\n\t\tstartPos = getStartPoints(2.0, -65.0, -1.0);\r\n\t\tstartPoints = BioGraphics.octogonYPlane(startPos, circumference);\r\n\t\tbioMightConnector = new BioMightConnector(startPoints, Constants.FootEpitheliumRef,\"connType\");\r\n\t\tbioMightConnectors.setBioMightConnector(Constants.FootEpitheliumRef, bioMightConnector);\r\n\t\r\n\t\t// Associate the connector on the Box\r\n\t\tbioBoundBox.setBioMightConnectors(bioMightConnectors);\r\n\t\t\r\n\t\t// Put the Bounding Box in the collection\r\n\t\tbioBoundBoxes.setBoundingBox(Constants.RightFootRef, bioBoundBox);\r\n\t\r\n\t\t// return the collection that holds both foot bound boxes\r\n\t\treturn (bioBoundBoxes);\r\n\t}", "protected Rectangle determineBounds() {\n return getNetTransform().createTransformedShape( _bounds ).getBounds();\n }", "private void split(){\n // Slice horizontaly to get sub nodes width\n float subWidth = this.getBounds().width / 2;\n // Slice vertically to get sub nodes height\n float subHeight = this.getBounds().height / 2;\n float x = this.getBounds().x;\n float y = this.getBounds().y;\n int newLevel = this.level + 1;\n\n // Create the 4 nodes\n this.getNodes().add(0, new QuadTree(newLevel, new Rectangle(x + subWidth, y, subWidth, subHeight)));\n this.getNodes().add(1, new QuadTree(newLevel, new Rectangle(x, y, subWidth, subHeight)));\n this.getNodes().add(2, new QuadTree(newLevel, new Rectangle(x, y + subHeight, subWidth, subHeight)));\n this.getNodes().add(3, new QuadTree(newLevel, new Rectangle(x + subWidth, y + subHeight, subWidth, subHeight)));\n\n }", "@Override\n\tpublic Rectangle getBoundingBox() {\n\t\tRectangle rectangle = new Rectangle(this.image.getWidth(), this.image.getWidth());\n\t\trectangle.setLocation(this.position);\n\t\treturn rectangle;\n\t}", "private HashMap setupBoundBoxes(BioMightBoundBoxes bioMightBoundBoxesIn) \r\n\t{\r\n\t\t// Set up the bounding boxes for the various components\r\n\t\t// The various components locations will be driven by the\r\n\t\t// bounding boxes\r\n\t\tHashMap boundingBoxesMap = new HashMap();\r\n\t\r\n\t\t// Initialize the position of the bounding box vars\r\n\t\tBigDecimal xPos = new BigDecimal(0.0);\r\n\t\tBigDecimal yPos = new BigDecimal(0.0);\r\n\t\tBigDecimal zPos= new BigDecimal(0.0);\r\n\t\t\r\n\t\t// Set to base 1x1x1 cube\r\n\t\tBigDecimal xVector= new BigDecimal(1.0);\r\n\t\tBigDecimal yVector= new BigDecimal(1.0); \r\n\t\tBigDecimal zVector= new BigDecimal(1.0);\r\n\t\r\n\t\t// Initialize the BoundBoxes. These will have a bound\r\n\t\t// box for each foot by default\r\n\t\tBioMightBoundBoxes bioBoundBoxes = null;\r\n\t\r\n\t\t// Initialize the BoundBox\r\n\t\tBioMightBoundBox bioBoundBox = null;\r\n\t\r\n\t\t// Initialize the Connectors \r\n\t\tBioMightConnectors bioMightConnectors = null; \r\n\r\n\t\t// Initialize the Connector \r\n\t\tBioMightConnector bioMightConnector= null;\r\n\t\r\n\t\tdouble circumference = 0.0;\r\n\t\tdouble[] startPos = {0.0, 0.0, 0.0};\r\n\t\tdouble[][] startPoints = null;\r\n\t\tdouble[] endPos = {0.0, 0.0, 0.0};\r\n\t\tdouble[][] endPoints = null;\r\n\t\r\n\t\t// Use the information in the incoming Bound Box\r\n\t\t// to orientate the inner bound boxes\r\n\t\tif (bioMightBoundBoxesIn != null)\r\n\t\t{\r\n\t\t\t// In the default instance,there will be two bound boxes\r\n\t\t\tBioMightBoundBox bioMightBoundBoxTemp = bioMightBoundBoxesIn.getBoundingBox(Constants.LeftFootRef);\r\n\t\t\tSystem.out.println(\"LeftFoot - SetupBoundBoxes - Incoming BoundBox: \" + \r\n\t\t\t\t\tbioMightBoundBoxTemp.getXPos() + \" \" +\r\n\t\t\t\t\tbioMightBoundBoxTemp.getYPos() + \" \" +\r\n\t\t\t\t\tbioMightBoundBoxTemp.getZPos());\r\n\r\n\t\t\t// In the default instance,there will be two bound boxes\r\n\t\t\tbioMightBoundBoxTemp = bioMightBoundBoxesIn.getBoundingBox(Constants.RightFootRef);\r\n\t\t\tSystem.out.println(\"RightFoot - SetupBoundBoxes - Incoming BoundBox: \" + \r\n\t\t\t\t\tbioMightBoundBoxTemp.getXPos() + \" \" +\r\n\t\t\t\t\tbioMightBoundBoxTemp.getYPos() + \" \" +\r\n\t\t\t\t\tbioMightBoundBoxTemp.getZPos());\t\t\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Feet SetupBoundBoxes - Incoming BoundBoxes are Null\");\r\n\t\t}\r\n\t\r\n\t\r\n\t\tbioBoundBoxes = new BioMightBoundBoxes();\r\n\t\t\t\r\n\t\t//********************************************************************* \r\n\t\t// LEFT FOOT EPITHELIUM BOUNDBOX\r\n\t\t// Set up the Bounding Box for the Feet\r\n\t\t// The connector for this will come from the incoming Bound Box\r\n\t\t// Both are defined like and bolt and they lock into position at the\r\n\t\t// interestion of both connectors\r\n\t\t//**********************************************************************\r\n\t\txPos = new BigDecimal(1.0);\r\n\t\tyPos = new BigDecimal(-48.0);\r\n\t\tzPos= new BigDecimal(0.0);\r\n\t\r\n\t\txVector= new BigDecimal(1.0);\r\n\t\tyVector= new BigDecimal(4.0); \r\n\t\tzVector= new BigDecimal(1.0);\r\n\r\n\t\tbioBoundBox = new BioMightBoundBox(xPos, yPos, zPos, xVector, yVector, zVector);\r\n\t\tbioMightConnectors = new BioMightConnectors();\r\n\t\r\n\t\t// Feet Epithelium Connector\r\n\t\tcircumference = 0.3;\r\n\t\tstartPos = getStartPoints(1.0, -65.0, -1.0);\r\n\t\tstartPoints = BioGraphics.octogonYPlane(startPos, circumference);\r\n\t\tendPos = getEndPoints(1.0, -67.50, -1.0);\r\n\t\tendPoints = BioGraphics.octogonYPlane(endPos, circumference);\r\n\t\r\n\t\tbioMightConnector = new BioMightConnector(startPoints, endPoints, Constants.FootEpitheliumRef,\"connType\");\r\n\t\tbioMightConnectors.setBioMightConnector(Constants.FootEpitheliumRef, bioMightConnector);\r\n\t\t\r\n\t\tbioBoundBox.setBioMightConnectors(bioMightConnectors);\r\n\t\t\r\n\t\t// Put the Bounding Box into the Collection of Bounding Boxes \r\n\t\tSystem.out.println(\"Adding - LeftBoundBox to bioBoundBoxes\"); \r\n\t\tbioBoundBoxes.setBoundingBox(Constants.FootEpitheliumRef, bioBoundBox);\r\n\t\t\r\n\t\t// Put the BioMight BoundBoxes for the Left Foot into the BoundingBoxMap \r\n\t\tboundingBoxesMap.put(Constants.LeftFootRef, bioBoundBoxes);\r\n\t\tSystem.out.println(\"Adding - Left Foot bioBoundBoxes into BoxesMap\"); \r\n\r\n\t\r\n\t\tbioBoundBoxes = new BioMightBoundBoxes();\r\n\t\t\t\r\n\t\t//********************************************************************* \r\n\t\t// RIGHT FOOT EPITHELIUM BOUNDBOX\r\n\t\t// Set up the Bounding Box for the Feet\r\n\t\t// The connector for this will come from the incoming Bound Box\r\n\t\t// Both are defined like and bolt and they lock into position at the\r\n\t\t// interestion of both connectors\r\n\t\t//**********************************************************************\r\n\t\txPos = new BigDecimal(-8.0);\r\n\t\tyPos = new BigDecimal(-65.0);\r\n\t\tzPos= new BigDecimal(-1.0);\r\n\t\r\n\t\txVector= new BigDecimal(1.0);\r\n\t\tyVector= new BigDecimal(4.0); \r\n\t\tzVector= new BigDecimal(1.0);\r\n\r\n\t\tbioBoundBox = new BioMightBoundBox(xPos, yPos, zPos, xVector, yVector, zVector);\r\n\t\tbioMightConnectors = new BioMightConnectors();\r\n\t\r\n\t\t// Feet Epithelium Connector\r\n\t\tcircumference = 0.3;\r\n\t\tstartPos = getStartPoints(-1.0, -65.0, -1.0);\r\n\t\tstartPoints = BioGraphics.octogonYPlane(startPos, circumference);\r\n\t\tendPos = getEndPoints(-1.0, -67.50, -1.0);\r\n\t\tendPoints = BioGraphics.octogonYPlane(endPos, circumference);\r\n\t\t\r\n\t\tbioMightConnector = new BioMightConnector(startPoints, endPoints, Constants.FootEpitheliumRef,\"connType\");\r\n\t\tbioMightConnectors.setBioMightConnector(Constants.FootEpitheliumRef, bioMightConnector);\r\n\t\t\r\n\t\tbioBoundBox.setBioMightConnectors(bioMightConnectors);\t\t\r\n\t\t\r\n\t\t// Put the Bounding Box into the Collection of Bounding Boxes \r\n\t\tSystem.out.println(\"Adding - RightBoundBox to bioBoundBoxes\"); \r\n\t\tbioBoundBoxes.setBoundingBox(Constants.FootEpitheliumRef, bioBoundBox);\t\t\r\n\r\n\t\t// Put the BioMight BoundBoxes for the Left Shoulder into the BoundingBoxMap \r\n\t\tboundingBoxesMap.put(Constants.RightFootRef, bioBoundBoxes);\r\n\t\tSystem.out.println(\"Adding - Right Foot bioBoundBoxes into BoxesMap\"); \r\n\r\n\t\treturn (boundingBoxesMap);\r\n\t}", "public PBounds getBoundsReference() {\n\t\tPBounds bds = super.getBoundsReference();\n\t\tgetUnionOfChildrenBounds(bds);\n\n\t\tcachedChildBounds.setRect(bds);\n\t\tdouble scaledIndent = INDENT/renderCamera.getViewScale();\t\t\n\t\tbds.setRect(bds.getX()-scaledIndent,bds.getY()-scaledIndent,bds.getWidth()+2*scaledIndent,bds.getHeight()+2*scaledIndent);\n\t\t\n\t\treturn bds;\n\t}", "public abstract void recalculateSnapshotBounds();", "public StructureVillagePieces.Village buildComponent(StructureVillagePieces.PieceWeight parPieceWeight, StructureVillagePieces.Start parStart, List<StructureComponent> parPiecesList, Random parRand, int parMinX, int parMinY, int parMinZ, EnumFacing parFacing, int parType) {\n/* 50 */ System.out.println(\"TekHouse6 buildComponent() at \" + parMinX + \", \" + parMinY + \", \" + parMinZ);\n/* */ \n/* 52 */ StructureBoundingBox structureboundingbox = StructureBoundingBox.getComponentToAddBoundingBox(parMinX, parMinY, parMinZ, 0, 0, 0, 9, 7, 12, parFacing);\n/* 53 */ return (canVillageGoDeeper(structureboundingbox) && StructureComponent.findIntersecting(parPiecesList, structureboundingbox) == null) ? (StructureVillagePieces.Village)new TekHouse6(parStart, parType, parRand, structureboundingbox, parFacing) : null;\n/* */ }", "public BoundingBox()\n\t{\n\t\tcenter = new Vector2(0.0, 0.0);\n\t\twidth = 1.0;\n\t\theight = 1.0;\n\t}", "public static String bboxVertices(){\n \treturn \"0.5 0.5 0.5 0.5 0.5 -0.5 0.5 -0.5 0.5 0.5 -0.5 -0.5 -0.5 0.5 0.5 -0.5 0.5 -0.5 -0.5 -0.5 0.5 -0.5 -0.5 -0.5\";\n }", "private void buildTree(int nodeNum, AABB nodeBounds,\n ArrayList<AABB> allPrimBounds,\n IntArray primNums, int nPrims, int depth,\n int badRefines) {\n if (nPrims <= maxPrims || depth == 0) {\n if ((nPrims > 16) && (depth == 0)) {\n System.out.println(\"reached max. KdTree depth with \" + nPrims + \n \" primitives\");\n }\n \n nodesW.add(makeLeaf(primNums, nPrims, primitives));\n totalPrims += nPrims;\n totalDepth += (maxDepth - depth);\n totalLeafs += 1;\n return;\n }\n \n /* Split - Position bestimmen */\n \n int bestAxis = -1, bestOffset = -1;\n float bestCost = Float.POSITIVE_INFINITY;\n float oldCost = isectCost * (float)nPrims;\n Vector d = nodeBounds.max.sub(nodeBounds.min);\n float totalSA = (2.f * (d.x*d.y + d.x*d.z + d.y*d.z));\n float invTotalSA = 1.f / totalSA;\n \n /* Achse wählen */\n int axis = d.dominantAxis();\n int retries = 0;\n boolean retry = false;\n ArrayList<BoundEdge> edges = null;\n \n// final int splitCount = edges[axis].length;\n \n do {\n edges = mkEdges(allPrimBounds, primNums, axis);\n Collections.sort(edges);\n final int splitCount = edges.size();\n \n// java.util.Arrays.sort(edges[axis], 0, splitCount);\n \n /* beste Split - Position für diese Achse finden */\n int nBelow = 0, nAbove = nPrims;\n \n for (int i = 0; i < splitCount; ++i) {\n if (edges.get(i).type == EdgeType.END) --nAbove;\n float edget = edges.get(i).t;\n \n if (edget > nodeBounds.min.get(axis) &&\n edget < nodeBounds.max.get(axis)) {\n // Compute cost for split at _i_th edge\n int otherAxis[][] = { {1,2}, {0,2}, {0,1} };\n int otherAxis0 = otherAxis[axis][0];\n int otherAxis1 = otherAxis[axis][1];\n \n float belowSA = 2 * (d.get(otherAxis0) * d.get(otherAxis1) +\n (edget - nodeBounds.min.get(axis)) *\n (d.get(otherAxis0) + d.get(otherAxis1)));\n \n float aboveSA = 2 * (d.get(otherAxis0) * d.get(otherAxis1) +\n (nodeBounds.max.get(axis) - edget) *\n (d.get(otherAxis0) + d.get(otherAxis1)));\n \n float pBelow = belowSA * invTotalSA;\n float pAbove = aboveSA * invTotalSA;\n \n float eb = (nAbove == 0 || nBelow == 0) ? emptyBonus : 0.f;\n float cost = traversalCost + isectCost * (1.f - eb) *\n (pBelow * nBelow + pAbove * nAbove);\n \n if (cost < bestCost) {\n /* neuer bester gefunden */\n bestCost = cost;\n bestAxis = axis;\n bestOffset = i;\n }\n }\n \n if (edges.get(i).type == EdgeType.START) ++nBelow;\n }\n \n if (!(nBelow == nPrims && nAbove == 0))\n throw new IllegalStateException(\"hmm\");\n \n retry = ((bestAxis == -1) && (retries < 2));\n \n if (retry) {\n ++retries;\n axis = (axis+1) % 3;\n }\n \n } while (retry);\n \n if (bestCost > oldCost) ++badRefines;\n if ((bestCost > 4.f * oldCost && nPrims < 16) ||\n bestAxis == -1 || badRefines == 3) {\n nodesW.add(makeLeaf(primNums, nPrims, primitives));\n if (nPrims > 16)\n System.out.println(\"aborting KdTree build recursion (bc=\" +\n bestCost + \", oc=\" + oldCost + \", #prims=\" + \n nPrims + \", br=\" + badRefines + \")\");\n totalPrims += nPrims;\n totalDepth += (maxDepth - depth);\n totalLeafs += 1;\n return;\n }\n \n /* Primitive nach oben / unten sortieren */\n int n0 = 0, n1 = 0;\n \n final ArrayList<Integer> prims0Tmp = new ArrayList<Integer>();\n final ArrayList<Integer> prims1Tmp = new ArrayList<Integer>();\n \n for (int i = 0; i < bestOffset; ++i) {\n if (edges.get(i).type == EdgeType.START) {\n prims0Tmp.add(edges.get(n0++).primNum);\n// prims0.set(n0++, edges[bestAxis][i].primNum);\n }\n }\n \n for (int i = bestOffset + 1; i < edges.size(); ++i) {\n if (edges.get(i).type == EdgeType.END) {\n prims1Tmp.add(edges.get(n1++).primNum);\n// prims1.set(n1++, edges[bestAxis][i].primNum);\n }\n }\n \n /* rekursiver Abstieg */\n float tsplit = edges.get(bestOffset).t;\n \n nodesW.add(makeInterior(bestAxis, tsplit));\n \n AABB bounds[] = nodeBounds.split(tsplit, bestAxis);\n \n final IntArray prims0 = new IntArray(prims0Tmp.size());\n for (int i=0; i < prims0Tmp.size(); i++) {\n prims0.set(i, prims0Tmp.get(i));\n }\n \n final IntArray prims1 = new IntArray(prims1Tmp.size());\n for (int i=0; i < prims1Tmp.size(); i++) {\n prims1.set(i, prims1Tmp.get(i));\n }\n \n buildTree(nodeNum+1, bounds[0], allPrimBounds,\n prims0, n0, depth-1, badRefines);\n \n nodesW.get(nodeNum).setAboveChild(nodesW.size());\n \n buildTree(nodesW.size(), bounds[1], allPrimBounds,\n prims1, n1, depth-1, badRefines);\n }", "private HashMap setupBoundBoxes(BioMightBoundBox bioMightBoundBoxIn) \r\n\t{\r\n\t\t// Set up the bounding boxes for the various components\r\n\t\t// The various components locations will be driven by the\r\n\t\t// bounding boxes\r\n\t\tHashMap boundingBoxMap = new HashMap();\r\n\t\t\r\n\t\t// Initialize the position of the bounding box vars\r\n\t\tBigDecimal xPos = new BigDecimal(0.0);\r\n\t\tBigDecimal yPos = new BigDecimal(0.0);\r\n\t\tBigDecimal zPos= new BigDecimal(0.0);\r\n\t\t\t\r\n\t\t// Set to base 1x1x1 cube\r\n\t\tBigDecimal xVector= new BigDecimal(1.0);\r\n\t\tBigDecimal yVector= new BigDecimal(1.0); \r\n\t\tBigDecimal zVector= new BigDecimal(1.0);\r\n\r\n\t\t// Initialize the BoundBoxes. This is used for\r\n\t\t// collections such as arms, legs,lungs,etc\r\n\t\tBioMightBoundBoxes bioBoundBoxes = null;\r\n\t\r\n\t\t// Initialize the BoundBox\r\n\t\tBioMightBoundBox bioBoundBox = null;\r\n\r\n\t\t// Initialize the Connectors \r\n\t\tBioMightConnectors bioMightConnectors = null; \r\n\r\n\t\t// Initialize the Connector \r\n\t\tBioMightConnector bioMightConnector= null;\r\n\t\t\r\n\t\tdouble circumference = 0.0;\r\n\t\tdouble[] startPos = {0.0, 0.0, 0.0};\r\n\t\tdouble[][] startPoints = BioGraphics.octogonYPlane(startPos, circumference);\r\n\t\t\r\n\t\t// Use the information in the incomiing Bound Box\r\n\t\t// to orientate the inner bound boxes\r\n\t\tif (bioMightBoundBoxIn != null)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Arm - SetupBoundBoxes - Incoming BoundBox: \" + \r\n\t\t\t\t\tbioMightBoundBoxIn.getXPos() + \" \" +\r\n\t\t\t\t\tbioMightBoundBoxIn.getYPos() + \" \" +\r\n\t\t\t\t\tbioMightBoundBoxIn.getZPos());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//********************************************************************* \r\n\t\t// EPITHELIUM BOUNDBOX\r\n\t\t// Set up the Bounding Box for the Arm\r\n\t\t// The connector for this will come from the incoming Bound Box\r\n\t\t// Both are defined like and bolt and they lock into position at the\r\n\t\t// interestion of both connectors\r\n\t\t//**********************************************************************\r\n\t\txPos = new BigDecimal(0.0);\r\n\t\tyPos = new BigDecimal(-12.0);\r\n\t\tzPos= new BigDecimal(-1.0);\r\n\t\t\r\n\t\txVector= new BigDecimal(9.0);\r\n\t\tyVector= new BigDecimal(8.0); \r\n\t\tzVector= new BigDecimal(4.0);\r\n\r\n\t\tbioBoundBox = new BioMightBoundBox(xPos, yPos, zPos, xVector, yVector, zVector);\r\n\t\tbioMightConnectors = new BioMightConnectors();\r\n\t\t\r\n\t\t// Arm Epithelium Connector\r\n\t\tcircumference = 0.3;\r\n\t\tstartPos = getStartPoints(0.0, -9.0, -1.0);\r\n\t\tstartPoints = BioGraphics.octogonYPlane(startPos, circumference);\r\n\t\tbioMightConnector = new BioMightConnector(startPoints, \"ArmEpithelialCell\",\"connType\");\r\n\t\tbioMightConnectors.setBioMightConnector(\"ArmEpithelialCell\", bioMightConnector);\r\n\t\t\t\r\n\t\tbioBoundBox.setBioMightConnectors(bioMightConnectors);\r\n\t\t\r\n\t\tboundingBoxMap.put(Constants.ArmEpitheliumRef, bioBoundBox);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t\t//********************************************************************* \r\n\t\t// ARMS BOUND BOXES\r\n\t\t// Set up the Bounding Box for the Bronchi\r\n\t\t// On a porportioned human, the Bronchi are located in the --- \r\n\t\t//**********************************************************************\r\n\t\t\r\n\t\t//********************************************************************* \r\n\t\t// LEFT ARMS BOUNDBOX\r\n\t\t// Set up the Bounding Box for the Left Arm\r\n\t\t// On a porportioned human, the Bronchi are located in the --- \r\n\t\t//**********************************************************************\r\n\t\txPos = new BigDecimal(1.0);\r\n\t\tyPos = new BigDecimal(-11.0);\r\n\t\tzPos= new BigDecimal(-3.5);\r\n\t\t\r\n\t\txVector= new BigDecimal(2.0);\r\n\t\tyVector= new BigDecimal(2.0); \r\n\t\tzVector= new BigDecimal(2.0);\r\n\r\n\t\tbioBoundBoxes = new BioMightBoundBoxes();\r\n\t\t\r\n\t\tbioBoundBox = new BioMightBoundBox(xPos, yPos, zPos, xVector, yVector, zVector);\r\n\t\tbioMightConnectors = new BioMightConnectors();\r\n\t\t\t\r\n\t\t// ArmEpithelium Connector\r\n\t\tcircumference = 0.3;\r\n\t\tstartPos = getStartPoints(0.0, -8.0, -1.0);\r\n\t\tstartPoints = BioGraphics.octogonYPlane(startPos, circumference);\r\n\t\tbioMightConnector = new BioMightConnector(startPoints, Constants.ArmEpitheliumRef,\"connType\");\r\n\t\tbioMightConnectors.setBioMightConnector(Constants.ArmEpitheliumRef, bioMightConnector);\r\n\t\t\t\r\n\t\tbioBoundBox.setBioMightConnectors(bioMightConnectors);\r\n\t\t\t\r\n\t\t// Put the Bounding Box into the Collection of Bounding Boxes \r\n\t\tbioBoundBoxes.setBoundingBox(Constants.LeftArmRef, bioBoundBox);\t\r\n\r\n\t\t//********************************************************************* \r\n\t\t// RIGHT ARMS BOUNDBOX\r\n\t\t// Set up the Bounding Box for the Bronchi\r\n\t\t// On a porportioned human, the Bronchi are located in the --- \r\n\t\t//**********************************************************************\r\n\t\txPos = new BigDecimal(-1.0);\r\n\t\tyPos = new BigDecimal(-11.0);\r\n\t\tzPos= new BigDecimal(-3.5);\r\n\t\t\r\n\t\txVector= new BigDecimal(2.0);\r\n\t\tyVector= new BigDecimal(2.0); \r\n\t\tzVector= new BigDecimal(2.0);\r\n\r\n\t\tbioBoundBox = new BioMightBoundBox(xPos, yPos, zPos, xVector, yVector, zVector);\r\n\t\tbioMightConnectors = new BioMightConnectors();\r\n\t\t\t\r\n\t\t// ArmEpithelium Connector\r\n\t\tcircumference = 0.3;\r\n\t\tstartPos = getStartPoints(0.0, -8.0, -1.0);\r\n\t\tstartPoints = BioGraphics.octogonYPlane(startPos, circumference);\r\n\t\tbioMightConnector = new BioMightConnector(startPoints, Constants.ArmEpitheliumRef,\"connType\");\r\n\t\tbioMightConnectors.setBioMightConnector(Constants.ArmEpitheliumRef, bioMightConnector);\r\n\t\t\t\r\n\t\tbioBoundBox.setBioMightConnectors(bioMightConnectors);\r\n\t\t\r\n\t\t// Put the Bounding Box into the Collection of Bounding Boxes \r\n\t\tbioBoundBoxes.setBoundingBox(Constants.RightArmRef, bioBoundBox);\t\t\r\n\r\n\t\t// Put the BioMight BoundBoxes for the Bronchi \r\n\t\t// into the BoundingBoxMap \r\n\t\tboundingBoxMap.put(Constants.BronchiRef, bioBoundBoxes);\t\t\r\n\t\t\r\n\t\t\r\n\t\treturn (boundingBoxMap);\r\n\t}", "@Override\n public Object build() {\n Map<String, org.opensearch.index.query.QueryBuilder> filterMap = new HashMap<>();\n for (FilterComposite filter : this.getChildren().stream()\n .filter(child -> FilterComposite.class.isAssignableFrom(child.getClass()))\n .map(child -> (FilterComposite) child).collect(Collectors.toList())) {\n\n org.opensearch.index.query.QueryBuilder filterBuilder = (org.opensearch.index.query.QueryBuilder)filter.queryBuilder.seekRoot().query().filtered().filter().getCurrent().build();\n filterMap.put(filter.getName(), filterBuilder);\n }\n\n FiltersAggregationBuilder filtersAggsBuilder = AggregationBuilders.filters(this.getName(),\n Stream.ofAll(filterMap.entrySet())\n .map(entry -> new FiltersAggregator.KeyedFilter(entry.getKey(), entry.getValue()))\n .toJavaArray(FiltersAggregator.KeyedFilter.class));\n\n for (Composite childComposite : this.getChildren().stream()\n .filter(child -> !FilterComposite.class.isAssignableFrom(child.getClass()) &&\n !ParamComposite.class.isAssignableFrom(child.getClass()) &&\n !HavingComposite.class.isAssignableFrom(child.getClass())).collect(Collectors.toList())) {\n\n applySubAggregationFromChild(filtersAggsBuilder, childComposite);\n }\n\n return filtersAggsBuilder;\n }", "private BranchGroup createSceneGraph() {\n\n\t\t// create the main BranchGroup\n\t\tBranchGroup objRoot = new BranchGroup();\n\n\t\tobjRoot.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\n\t\tobjRoot.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);\n\n\t\t// reckon the size of the graph\n\t\tint nbRules = rules.length;\n\n\t\tfloat[] maxC = new float[criteres.length];\n\t\tfloat[] minC = new float[criteres.length];\n\n\t\tint nRule, nCrit;\n\t\tAttribute attr;\n\t\tfloat val;\n\t\tHashtable htAttrs = new Hashtable();\n\n\t\tfor (nRule = 0; nRule < nbRules; nRule++) {\n\t\t\t//make a list of all attributes\n\t\t\tIterator it = (rules[nRule].getCondition()).listIterator();\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tattr = (Attribute) it.next();\n\t\t\t\thtAttrs.put(attr.toString(), attr);\n\t\t\t}\n\n\t\t\tattr = rules[nRule].getConclusion();\n\t\t\thtAttrs.put(attr.toString(), attr);\n\n\t\t\t//find min & max of each criteres\n\t\t\tfor (nCrit = 0; nCrit < criteres.length; nCrit++) {\n\t\t\t\tval = (rules[nRule].getCritere(criteres[nCrit]).getValue());\n\n\t\t\t\tif (nRule == 0) {\n\t\t\t\t\tmaxC[nCrit] = val;\n\t\t\t\t\tminC[nCrit] = val;\n\t\t\t\t} else {\n\t\t\t\t\tif (maxC[nCrit] < val)\n\t\t\t\t\t\tmaxC[nCrit] = val;\n\t\t\t\t\tif (minC[nCrit] > val)\n\t\t\t\t\t\tminC[nCrit] = val;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tLinkedList lAttrs = new LinkedList(htAttrs.values());\n\t\tint nbAttrs = lAttrs.size();\n\n\t\tfloat size = .040f;\t\t\n//\t\tfloat size = 0.85f/(nbAttrs+10);\n//\t\tfloat size = 0.05f - (0.0006f * nbRules);\n\n\t\t// create a new BranchGroup to turn the scene\n\t\tTransform3D tRotateX = new Transform3D();\n\t\ttRotateX.rotX(Math.PI / 6.0d);\n\t\tTransform3D tRotateY = new Transform3D();\n\t\ttRotateY.rotY(-Math.PI / 6.0d);\n\t\ttRotateX.mul(tRotateY);\n\t\tfloat minSize = Math.min(0.75f/(nbAttrs+10), 0.05f - (0.0006f * nbRules));\n\n\n\n\t\tTransform3D tScale = new Transform3D();\n\t\ttScale.setScale(minSize/size);\n\t\ttRotateX.mul(tScale);\n\t\tTransformGroup tgRotate = new TransformGroup(tRotateX);\n\n\t\tobjRoot.addChild(tgRotate);\n\n\t\t// create a new BranchGroup \n\t\tBranchGroup bgObjGraph = new BranchGroup();\n\n\t\ttgRotate.addChild(bgObjGraph);\n\n\t\t// Draw the graph\n\t\tint nAtt;\n\t\tboolean drawn;\n\t\tRule currentRule;\n\t\tLinkedList ruleLHS;\n\t\tIterator idxRulesLHS;\n\t\tfor (nRule = 0; nRule < nbRules; nRule++) {\n\t\t\tcurrentRule = rules[nRule];\n\t\t\tfor (nAtt = 0; nAtt < nbAttrs; nAtt++) {\n\t\t\t\tidxRulesLHS = (currentRule.getCondition()).listIterator();\n\t\t\t\tdrawn = false;\n\t\t\t\tif (currentRule\n\t\t\t\t\t.getConclusion()\n\t\t\t\t\t.equals(((Attribute) lAttrs.get(nAtt)))) {\n\t\t\t\t\t//draw as a conclusion\t\n\t\t\t\t\tbgObjGraph.addChild(\n\t\t\t\t\t\tcreateBox(\n\t\t\t\t\t\t\t(nRule * size) - (nbRules / 2 * size),\n\t\t\t\t\t\t\tnAtt * size,\n\t\t\t\t\t\t\tsize,\n\t\t\t\t\t\t\tsize,\n\t\t\t\t\t\t\tnew Color3f(Color.RED)));\n\t\t\t\t\tdrawn = true;\n\t\t\t\t}\n\t\t\t\tif (!drawn) {\n\t\t\t\t\twhile (idxRulesLHS.hasNext()) {\n\t\t\t\t\t\tif (((Attribute) idxRulesLHS.next())\n\t\t\t\t\t\t\t.equals((Attribute) lAttrs.get(nAtt))) {\n\t\t\t\t\t\t\t//draw as an attribute\t\n\t\t\t\t\t\t\tbgObjGraph.addChild(\n\t\t\t\t\t\t\t\tcreateBox(\n\t\t\t\t\t\t\t\t\t(nRule * size) - (nbRules / 2 * size),\n\t\t\t\t\t\t\t\t\tnAtt * size,\n\t\t\t\t\t\t\t\t\tsize,\n\t\t\t\t\t\t\t\t\tsize,\n\t\t\t\t\t\t\t\t\tnew Color3f(Color.green)));\n\t\t\t\t\t\t\tdrawn = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!drawn) {\n\t\t\t\t\t//draw as nothing\t\n\t\t\t\t\tbgObjGraph.addChild(\n\t\t\t\t\t\tcreateBox(\n\t\t\t\t\t\t\t(nRule * size) - (nbRules / 2 * size),\n\t\t\t\t\t\t\tnAtt * size,\n\t\t\t\t\t\t\tsize,\n\t\t\t\t\t\t\tsize / 10,\n\t\t\t\t\t\t\tnew Color3f(Color.BLACK)));\n\t\t\t\t}\n\n\t\t\t\t// draw criteres values\n\t\t\t\tfor (nCrit = 0; nCrit < criteres.length; nCrit++) {\n\t\t\t\t\tval = (rules[nRule].getCritere(criteres[nCrit]).getValue());\n\t\t\t\t\tbgObjGraph.addChild(\n\t\t\t\t\t\tcreateBox((nRule*size)-(nbRules/2*size),\n\t\t\t\t\t\t\t-(nCrit+1)*size,\n\t\t\t\t\t\t\tsize,\n\t\t\t\t\t\t\t5*size*nCrit+(val-minC[nCrit])*4*size/(maxC[nCrit]-minC[nCrit]),\n\t\t\t\t\t\t\tnew Color3f(ColorArray.colorArray[nCrit + 3])));\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t//draw rule ID\t\n\t\t\tbgObjGraph.addChild(\n\t\t\t\tcreateTextY(\n\t\t\t\t\t(nRule * size) - (nbRules / 2 * size),\n\t\t\t\t\tnAtt * size,\n\t\t\t\t\tsize,\n\t\t\t\t\tcurrentRule.getId(),\n\t\t\t\t\tnew Color3f(Color.WHITE)));\n\n\t\t}\n\n\t\t// draw ladder\n\t\tint i;\n\t\tLineArray axis;\n\t\tfor (i = 0; i < 10; i++) {\n\t\t\taxis = new LineArray(2, LineArray.COORDINATES | LineArray.COLOR_3);\n\t\t\taxis.setCoordinate(\n\t\t\t\t0,\n\t\t\t\tnew Point3f(- (nbRules + 4) * size / 2, i * size, -size));\n\t\t\taxis.setCoordinate(\n\t\t\t\t1,\n\t\t\t\tnew Point3f((nbRules + 4) * size / 2, i * size, -size));\n\t\t\taxis.setColor(0, new Color3f(1f, 0f, 1f));\n\t\t\taxis.setColor(1, new Color3f(1f, 0f, 1f));\n\n\t\t\tbgObjGraph.addChild(new Shape3D(axis));\n\t\t}\n\n\t\t//draw min/max\n\t\tfor (nCrit = 0; nCrit < criteres.length; nCrit++) {\n\t\t\tbgObjGraph.addChild(\n\t\t\t\tcreateTextScale(\n\t\t\t\t\t(nbRules + 5) * size / 2,\n\t\t\t\t\tnCrit * 5 * size - size / 2,\n\t\t\t\t\tsize,\n\t\t\t\t\t(new Float(minC[nCrit])).toString(),\n\t\t\t\t\tnew Color3f(ColorArray.colorArray[nCrit + 3])));\n\t\t\tbgObjGraph.addChild(\n\t\t\t\tcreateTextScale(\n\t\t\t\t\t(nbRules + 5) * size / 2,\n\t\t\t\t\tnCrit * 5 * size + 4 * size - size / 2,\n\t\t\t\t\tsize,\n\t\t\t\t\t(new Float(maxC[nCrit])).toString(),\n\t\t\t\t\tnew Color3f(ColorArray.colorArray[nCrit + 3])));\n\t\t\tbgObjGraph.addChild(\n\t\t\t\tcreateTextScale(\n\t\t\t\t\t(nbRules + 8) * size / 2,\n\t\t\t\t\tnCrit * 5 * size + 2 * size - size / 2,\n\t\t\t\t\tsize,\n\t\t\t\t\tcriteres[nCrit],\n\t\t\t\t\tnew Color3f(ColorArray.colorArray[nCrit + 3])));\n\n\t\t}\n\n\t\t// write attributes\n\t\tfor (nAtt = 0; nAtt < nbAttrs; nAtt++) {\n\t\t\tbgObjGraph.addChild(\n\t\t\t\tcreateTextX(\n\t\t\t\t\t(nRule * size) + size - (nbRules / 2 * size),\n\t\t\t\t\tnAtt * size + size / 3,\n\t\t\t\t\tsize,\n\t\t\t\t\t((Attribute) lAttrs.get(nAtt)).toString(),\n\t\t\t\t\tnew Color3f(Color.WHITE)));\n\t\t}\n\n\n\t\t// draw legend\n\t\tbgObjGraph.addChild(createBox(- (nbRules / 2 * size),(nbAttrs+5) * size,size,size,new Color3f(Color.green)));\n\t\tbgObjGraph.addChild(createTextX( size - (nbRules / 2 * size),(nbAttrs+5) * size + size / 3,size,\"ANTECEDENT\",new Color3f(Color.WHITE)));\n\t\tbgObjGraph.addChild(createBox(- (nbRules / 2 * size),(nbAttrs+7) * size,size,size,new Color3f(Color.red)));\n\t\tbgObjGraph.addChild(createTextX( size - (nbRules / 2 * size),(nbAttrs+7) * size + size / 3,size,\"CONSEQUENT\",new Color3f(Color.WHITE)));\n\t\t\t\n\n\t\treturn objRoot;\n\t}", "public void constructHierarchy(){\n\t\t// populate parents for the globally defined param specs\n\t\tfor (ListIterator<ParamSpec> iterator = m_paramSpecs.listIterator(m_paramSpecs.size()); iterator.hasPrevious();) {\n\t\t\tParamSpec ps = iterator.previous();\n\t\t\tpopulateParent(ps);\n\t\t}\n\t\t// populate values for the globally defined param specs\n\t\tfor (ListIterator<ParamSpec> iterator = m_paramSpecs.listIterator(m_paramSpecs.size()); iterator.hasPrevious();) {\n\t\t\tParamSpec ps = iterator.previous();\n\t\t\tps.lookupValues();\n\t\t}\n\t\t\n\t\t// populate parents for the command specs and their contained param specs\n\t\tfor (CommandSpec cs : m_commandSpecs){\n\t\t\tpopulateParent(cs);\n\t\t\tif (cs.getParamSpecs() != null){\n\t\t\t\tfor (ParamSpec ps : cs.getParamSpecs()){\n\t\t\t\t\tpopulateParent(ps);\n\t\t\t\t}\n\t\t\t\tfor (ParamSpec ps : cs.getParamSpecs()){\n\t\t\t\t\tps.lookupValues();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public GJBox2D boundingBox() {\n\t\tdouble xmin = Double.MAX_VALUE;\n\t\tdouble ymin = Double.MAX_VALUE;\n\t\tdouble xmax = Double.MIN_VALUE;\n\t\tdouble ymax = Double.MIN_VALUE;\n\n\t\t// coordinates of current point\n\t\tdouble x, y;\n\t\t\n\t\t// Iterate on each control point of each segment\n\t\tfor (Segment seg : this.segments) {\n\t\t\tfor (GJPoint2D p : seg.controlPoints()) {\n\t\t\t\t// get current coordinates\n\t\t\t\tx = p.x();\n\t\t\t\ty = p.y();\n\t\t\t\t\n\t\t\t\t// update bounds\n\t\t\t\txmin = Math.min(xmin, x);\n\t\t\t\tymin = Math.min(ymin, y);\n\t\t\t\txmax = Math.max(xmax, x);\n\t\t\t\tymax = Math.max(ymax, y);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// createFromCollection a new GJBox2D with the bounds\n\t\treturn new GJBox2D(xmin, xmax, ymin, ymax);\n\t}", "public Shape getBgetBoundingBox() {\r\n\t\t\r\n\t\tEllipse2D elilipse = new Ellipse2D.Double(0, 0, imageWidth, imageHeight);\r\n\t\tAffineTransform at = new AffineTransform(); \r\n\t\tat.translate(locationX, locationY);\r\n\t\tat.rotate(Math.toRadians(angle*sizeAngles));\r\n\t\t at.scale(0.5, 0.5);\r\n\t\tat.translate(-imageWidth/2, -imageHeight/2);\r\n\t\t\r\n\t\tShape rotatedRect = at.createTransformedShape(elilipse);\r\n\t\treturn rotatedRect;\r\n\t}", "public MeshObject(String path, Vector3d initialPosition, Group root, int objectFlags, Vector3d collisionCenter, double boundingSphereRadius) throws FileNotFoundException {\r\n currentPosition = new Vector3d();\r\n objectFile = new ObjectFile();\r\n transformGroup = new TransformGroup();\r\n transform3D = new Transform3D();\r\n this.collisionCenter = collisionCenter;\r\n this.boundingSphereRadius = boundingSphereRadius;\r\n \r\n currentParent = root;\r\n \r\n baseBrancGroup.addChild(transformGroup);\r\n \r\n baseBrancGroup.setCapability(BranchGroup.ALLOW_DETACH);\r\n baseBrancGroup.setCapability(TransformGroup.ALLOW_CHILDREN_READ);\r\n baseBrancGroup.setCapability(TransformGroup.ALLOW_CHILDREN_WRITE);\r\n baseBrancGroup.setCapability(TransformGroup.ALLOW_CHILDREN_EXTEND);\r\n baseBrancGroup.setCapability(TransformGroup.ALLOW_BOUNDS_READ);\r\n baseBrancGroup.setCapability(TransformGroup.ALLOW_BOUNDS_WRITE);\r\n\r\n transformGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\r\n transformGroup.setCapability(BranchGroup.ALLOW_DETACH);\r\n transformGroup.setCapability(TransformGroup.ALLOW_CHILDREN_READ);\r\n transformGroup.setCapability(TransformGroup.ALLOW_CHILDREN_WRITE);\r\n transformGroup.setCapability(TransformGroup.ALLOW_CHILDREN_EXTEND);\r\n transformGroup.setCapability(TransformGroup.ALLOW_BOUNDS_READ);\r\n transformGroup.setCapability(TransformGroup.ALLOW_BOUNDS_WRITE);\r\n\r\n objectFile.setFlags(objectFlags);\r\n scene = objectFile.load(assetsFolderPath + path);\r\n transformGroup.addChild(scene.getSceneGroup());\r\n\r\n root.addChild(baseBrancGroup);\r\n\r\n moveTo(initialPosition);\r\n }", "private Node createVirtualWorldBoundsShape() {\n \t\tPoint3d lower = new Point3d();\n \t\tPoint3d upper = new Point3d();\n \t\tmyVirtualWorldBounds.getLower(lower);\n \t\tmyVirtualWorldBounds.getUpper(upper);\n \t\t\n \t\tdouble[] coordinates = { lower.x, lower.y, lower.z, upper.x, lower.y,\n \t\t\t\tlower.z, upper.x, lower.y, upper.z, lower.x, lower.y, upper.z,\n \t\t\t\tlower.x, upper.y, lower.z, upper.x, upper.y, lower.z, upper.x,\n \t\t\t\tupper.y, upper.z, lower.x, upper.y, upper.z };\n \t\t\n \t\tint[] coordinateIndices = { 0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7,\n \t\t\t\t7, 4, 0, 4, 1, 5, 2, 6, 3, 7 };\n \t\t\n \t\tIndexedLineArray geometry = new IndexedLineArray(\n \t\t\t\tcoordinates.length / 3, IndexedLineArray.COORDINATES,\n \t\t\t\tcoordinateIndices.length);\n \t\t\n \t\tgeometry.setCoordinates(0, coordinates);\n \t\tgeometry.setCoordinateIndices(0, coordinateIndices);\n \t\t\n \t\treturn new Shape3D(geometry);\n \t}", "@Override\n\tpublic BoundaryRectangle getBoundingBox() {\n\t\treturn new BoundaryRectangle(0, 0, drawView.getWidth(), drawView.getHeight());\n\t}", "public abstract Rectangle getSnapshotBounds();", "public interface BoundedObject {\n public BoundedCube getBounds();\n\n public static class BoundedCube implements Comparable<BoundedCube> {\n public long lx, ty, iz = 0;\n public long rx, by, oz = 0;\n\n public BoundedCube() {\n super();\n }\n\n public BoundedCube(long lx, long rx, long ty, long by, long iz, long oz) {\n super();\n this.lx = lx;\n this.rx = rx;\n this.ty = ty;\n this.by = by;\n this.iz = iz;\n this.oz = oz;\n }\n\n public BoundedCube(long[] coords, long radius) {\n super();\n this.lx = coords[0] - radius;\n this.rx = coords[0] + radius;\n this.ty = coords[1] - radius;\n this.by = coords[1] + radius;\n this.iz = coords[2] - radius;\n this.oz = coords[2] + radius;\n }\n\n public BoundedCube(BoundedCube l) {\n super();\n set(l);\n }\n\n public void set(BoundedCube l) {\n this.lx = l.lx;\n this.rx = l.rx;\n this.ty = l.ty;\n this.by = l.by;\n this.iz = l.iz;\n this.oz = l.oz;\n }\n\n public void union(BoundedCube l) {\n if (l.lx < lx)\n lx = l.lx;\n if (l.rx > rx)\n rx = l.rx;\n if (l.ty < ty)\n ty = l.ty;\n if (l.by > by)\n by = l.by;\n if (l.iz < iz)\n iz = l.iz;\n if (l.oz > oz)\n oz = l.oz;\n }\n\n public long radius() {\n return Math.round(Math.sqrt(((rx - lx) * (rx - lx))\n + ((by - ty) * (by - ty))\n + ((oz - iz) * (oz - iz))));\n }\n\n public BoundedCube expand(double[] direction, long distance) {\n final BoundedCube cube = new BoundedCube(this);\n final double x1 = Math.cos(direction[0]) * Math.sin(direction[1]);\n final double y1 = Math.sin(direction[0]) * Math.sin(direction[1]);\n final double z1 = Math.cos(direction[1]);\n final long[] oldCenter = new long[]{((lx + rx) / 2), ((ty + rx) / 2), ((iz + oz) / 2)};\n final long[] newCenter = new long[]{\n oldCenter[0] + Math.round(CMath.mul(distance, x1)),\n oldCenter[1] + Math.round(CMath.mul(distance, y1)),\n oldCenter[2] + Math.round(CMath.mul(distance, z1))};\n if (newCenter[0] > oldCenter[0])\n cube.rx += newCenter[0] - oldCenter[0];\n else\n cube.lx += newCenter[0] - oldCenter[0];\n if (newCenter[1] > oldCenter[1])\n cube.ty += newCenter[1] - oldCenter[1];\n else\n cube.by += newCenter[1] - oldCenter[1];\n if (newCenter[2] > oldCenter[2])\n cube.iz += newCenter[2] - oldCenter[2];\n else\n cube.oz += newCenter[2] - oldCenter[2];\n return cube;\n }\n\n public boolean intersects(BoundedCube two) {\n if (two == null)\n return false;\n return (\n ((lx <= two.lx && two.lx <= rx) || (two.lx <= lx && lx <= two.rx))\n && ((ty <= two.ty && two.ty <= by) || (two.ty <= ty && ty <= two.by))\n && ((iz <= two.iz && two.iz <= oz) || (two.iz <= iz && iz <= two.oz))\n );\n }\n\n public boolean contains(long x, long y, long z) {\n return ((x >= lx)\n && (x <= rx)\n && (y >= ty)\n && (y <= by)\n && (z >= iz)\n && (z <= oz));\n }\n\n public long width() {\n return rx - lx;\n }\n\n public long height() {\n return by - ty;\n }\n\n public long depth() {\n return oz - iz;\n }\n\n @Override\n public int compareTo(BoundedCube o) {\n if (lx < o.lx)\n return -1;\n if (lx > o.lx)\n return 1;\n if (rx < o.rx)\n return -1;\n if (rx > o.rx)\n return 1;\n if (ty < o.ty)\n return -1;\n if (ty > o.ty)\n return 1;\n if (by < o.by)\n return -1;\n if (by > o.by)\n return 1;\n if (iz < o.iz)\n return -1;\n if (iz > o.iz)\n return 1;\n if (oz < o.oz)\n return -1;\n if (oz > o.oz)\n return 1;\n return 0;\n }\n }\n}", "public Rectangle getBoundingBox() {\n return new Rectangle(this);\r\n }", "private void split () {\n\n if (firstClassList != null && firstClassList.size() > MAX_OBJECTS && depth < MAX_DEPTH) {\n\n // Set new bounds along each axis\n double[] xBounds = new double[] {bounds.getMinX(), bounds.getCenterX(), bounds.getMaxX()};\n double[] yBounds = new double[] {bounds.getMinY(), bounds.getCenterY(), bounds.getMaxY()};\n double[] zBounds = new double[] {bounds.getMinZ(), bounds.getCenterZ(), bounds.getMaxZ()};\n\n // Create each child\n children = new SceneOctTree[8];\n for (int x = 0; x <= 1; x++) {\n for (int y = 0; y <= 1; y++) {\n for (int z = 0; z <= 1; z++) {\n Bounds childBounds = new BoundingBox (\n xBounds[x], yBounds[y], zBounds[z],\n xBounds[x+1] - xBounds[x], yBounds[y+1] - yBounds[y], zBounds[z+1] - zBounds[z]\n );\n int index = x + y*2 + z*4;\n children[index] = new SceneOctTree (childBounds, this.depth+1);\n } // for\n } // for\n } // for\n\n // Insert first class objects into children. Note that we don't know\n // if the object will be first or second class in the child so we have\n // to perform a full insert.\n for (Node object : firstClassList) {\n Bounds objectBounds = object.getBoundsInLocal();\n for (SceneOctTree child : children) {\n if (objectBounds.intersects (child.bounds))\n child.insert (object);\n } // for\n } // for\n firstClassList = null;\n\n // Insert second class objects into children (if any exist). We know\n // that the object will be second class in the child, so we just\n // perform a second class insert.\n if (secondClassList != null) {\n for (Node object : secondClassList) {\n Bounds objectBounds = object.getBoundsInLocal();\n for (SceneOctTree child : children) {\n if (objectBounds.intersects (child.bounds))\n child.insertSecondClass (object, objectBounds);\n } // for\n } // for\n } // if\n secondClassList = null;\n\n // Perform a split on the children, just in case all the first class\n // objects that we just inserted all went into one child.\n for (SceneOctTree child : children) child.split();\n\n } // if\n\n }", "public void testGetBoundingBox(){\r\n\t\tdouble xc = 0;\r\n\t\tdouble yc = 0;\r\n\t\tdouble r = 10;\r\n\t\tdouble r2 = r*Math.sqrt(2)/2;\r\n\t\tdouble t0 = PI/4;\r\n\t\tdouble t1 = 3*PI/4;\r\n\t\tdouble t2 = 5*PI/4;\r\n\t\tdouble t3 = 7*PI/4;\r\n\t\tdouble dt = PI/2;\r\n\t\t\r\n\t\t// declare variables\r\n\t\tCircleArc2D arc0, arc1, arc2, arc3;\r\n\t\tBox2D box0, box1, box2, box3;\r\n\t\tBox2D bounds0, bounds1, bounds2, bounds3;\r\n\t\t\r\n\t\t// top\r\n\t\tarc0 \t= new CircleArc2D(xc, yc, r, t0, dt);\r\n\t\tbox0 \t= new Box2D(xc-r2, xc+r2, r2, r);\r\n\t\tbounds0 = arc0.boundingBox();\r\n\t\tassertTrue(box0.almostEquals(bounds0, Shape2D.ACCURACY));\r\n\r\n\t\t// left\r\n\t\tarc1 \t= new CircleArc2D(xc, yc, r, t1, dt);\r\n\t\tbox1 \t= new Box2D(xc-r, xc-r2, -r2, r2);\r\n\t\tbounds1 = arc1.boundingBox();\r\n\t\tassertTrue(box1.almostEquals(bounds1, Shape2D.ACCURACY));\r\n\r\n\t\t// bottom\r\n\t\tarc2 \t= new CircleArc2D(xc, yc, r, t2, dt);\r\n\t\tbox2 \t= new Box2D(xc-r2, xc+r2, -r, -r2);\r\n\t\tbounds2 = arc2.boundingBox();\r\n\t\tassertTrue(box2.almostEquals(bounds2, Shape2D.ACCURACY));\r\n\r\n\t\t// right\r\n\t\tarc3 \t= new CircleArc2D(xc, yc, r, t3, dt);\r\n\t\tbox3 \t= new Box2D(r2, r, -r2, r2);\r\n\t\tbounds3 = arc3.boundingBox();\r\n\t\tassertTrue(box3.almostEquals(bounds3, Shape2D.ACCURACY));\r\n\r\n\t\t/// circle arcs with extent 3*pi/2\r\n\t\tdt = 3*PI/2;\r\n\t\t\r\n\t\t// top\r\n\t\tarc0 \t= new CircleArc2D(xc, yc, r, t3, dt);\r\n\t\tbox0 \t= new Box2D(xc-r, xc+r, -r2, r);\r\n\t\tbounds0 = arc0.boundingBox();\r\n\t\tassertTrue(box0.almostEquals(bounds0, Shape2D.ACCURACY));\r\n\r\n\t\t// left\r\n\t\tarc1 \t= new CircleArc2D(xc, yc, r, t0, dt);\r\n\t\tbox1 \t= new Box2D(xc-r, xc+r2, -r, r);\r\n\t\tbounds1 = arc1.boundingBox();\r\n\t\tassertTrue(box1.almostEquals(bounds1, Shape2D.ACCURACY));\r\n\r\n\t\t// bottom\r\n\t\tarc2 \t= new CircleArc2D(xc, yc, r, t1, dt);\r\n\t\tbox2 \t= new Box2D(xc-r, xc+r, -r, r2);\r\n\t\tbounds2 = arc2.boundingBox();\r\n\t\tassertTrue(box2.almostEquals(bounds2, Shape2D.ACCURACY));\r\n\r\n\t\t// right\r\n\t\tarc3 \t= new CircleArc2D(xc, yc, r, t2, dt);\r\n\t\tbox3 \t= new Box2D(-r2, r, -r, r);\r\n\t\tbounds3 = arc3.boundingBox();\r\n\t\tassertTrue(box3.almostEquals(bounds3, Shape2D.ACCURACY));\r\n\t\r\n\t}", "public void subdivide() {\n\t\tif (!divided) {\n\t\t\tdivided = true;\n\t\t\t\n\t\t\t// Calculate the width and height of the sub nodes\n\t\t\tint width = (int) Math.ceil(boundary.width/2.0) + 1;\n\t\t\tint height = (int) Math.ceil(boundary.height/2.0) + 1;\n\t\t\t\n\t\t\t// Create ArrayList for the nodes and insert them\n\t\t\tnodes = new ArrayList<QuadTreeNode<E>>();\n\t\t\t\n\t\t\tnodes.add(new QuadTreeNode<E>(boundary.x, boundary.y, height, width));\n\t\t\tnodes.add(new QuadTreeNode<E>(boundary.x + width, boundary.y, height, width));\n\t\t\tnodes.add(new QuadTreeNode<E>(boundary.x, boundary.y + height, height, width));\n\t\t\tnodes.add(new QuadTreeNode<E>(boundary.x + width, boundary.y + height, height, width));\n\t\t\t\n\t\t\t// Take all the points and insert them into the best sub node\n\t\t\tfor (Point p : points.keySet()) {\n\t\t\t\tQuadTreeNode<E> q = this.getBestQuad(p);\n\t\t\t\tq.add(p, points.get(p));\n\t\t\t}\n\t\t\t\n\t\t\tpoints = null;\n\t\t}\n\t}", "public void buildBridges() {\n\t\tList<MagneticComponent> firstTier = getValidLinks(0);\r\n\t\t\r\n\t\tbuildNextBridge(firstTier, 0);\r\n\t}", "Rectangle getBoundingBox(Rectangle rect);", "public Rectangle getBound(){\n \tint x = (int)location.getX();\n \tint y = (int)location.getY();\n \t\n \tif(isExploded == false)\n \t\treturn new Rectangle(x, y, image.getWidth(null), image.getHeight(null));\n \telse\n \t\treturn new Rectangle(x,y, 1,1);\n }", "private RectHV rectLb() {\n\n if (!horizontal) {\n return new RectHV(\n rect.xmin(),\n rect.ymin(),\n p.x(),\n rect.ymax()\n );\n\n\n } else {\n return new RectHV(\n rect.xmin(),\n rect.ymin(),\n rect.xmax(),\n p.y()\n );\n }\n }", "public void initializeBoundary() {\n\n\t\tthis.subNetGenes = getSubNetGenes(species, xmlFile);\n\t\tthis.subNetwork = getSubNetwork(subNetGenes, oriGraphFile);\n\t\t\n\t\tSet<String> comSubNetGenes = Sets.newHashSet();\n\t\tcomSubNetGenes.addAll(this.subNetwork.keySet());\n\t\tcomSubNetGenes.addAll(this.subNetwork.values());\n\t\t\n\t\ttotalSubGeneCount = comSubNetGenes.size();\n\t\t\n\t\tcountBoundaryEdges(comSubNetGenes, oriGraphFile);\n\t\t\n\t\t\n\n\t}", "public void updateBounds() {\n\t\tswitch (this.species){\n\t\tcase HOGCHOKER:\n\t\tcase SILVERSIDE:\n\t\tcase FLOUNDER:\n\t\t\tthis.topYBound = frameHeight / 3 * 2;\n\t\t\tthis.bottomYBound = frameHeight - imageHeight - frameBarSize;\n\t\t\tbreak;\n\t\tcase PERCH: \n\t\tcase MINNOW: \n\t\tcase WEAKFISH:\n\t\t\tthis.topYBound = frameHeight / 3;\n\t\t\tthis.bottomYBound = frameHeight / 3 * 2 - imageHeight;\n\t\t\tbreak;\n\n\t\tcase MENHADEN:\n\t\tcase MUMMICHOG:\n\t\t\tthis.topYBound = 0;\n\t\t\tthis.bottomYBound = frameHeight / 3 - imageHeight;\n\t\t\tbreak;\n\t\tcase GOLD:\n\t\tdefault:\n\t\t\ttopYBound = 0;\n\t\t\tbottomYBound = frameHeight;\n\t\t}\n\t}", "private VerticalExtent.Builder getBaseBuilder() {\r\n\t\tDDMSVersion version = DDMSVersion.getCurrentVersion();\r\n\t\tVerticalExtent component = getInstance(getValidElement(version.getVersion()), SUCCESS);\r\n\t\treturn (new VerticalExtent.Builder(component));\r\n\t}", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n List<Shape> shapes = new ArrayList<>();\n //System.out.println(\"Please enter the bin capacity\");\n Shape container = new Shape();\n container.containerPrompt();\n container.containerVolume();\n int binCapacity = container.containerVolume();\n //insert three items here\n System.out.println(\"How many cubes do want to store: 1, 2 or 3 \");\n int choice = scanner.nextInt();\n while (choice-- >0){\n Shape object = new Shape();\n object.objectPrompt();\n shapes.add(object);\n\n /*\n object.objectVolume();\n int one = object.containerVolume();*/\n }\n\n /*switch (choice){\n case 1:\n Shape shape1 = new Shape();\n shape1.objectPrompt();\n shape1.objectVolume();\n int one = shape1.containerVolume();\n break;\n case 2:\n Shape shape2 = new Shape();\n shape2.objectPrompt();\n shape2.objectVolume();\n int two = shape2.containerVolume();\n\n Shape shape3 = new Shape();\n shape3.objectPrompt();\n shape3.objectVolume();\n int one = shape1.containerVolume();\n break;\n\n case 3:\n Shape shape1 = new Shape();\n shape1.objectPrompt();\n shape1.objectVolume();\n int one = shape1.containerVolume();\n break;\n default:\n }*/\n List<Integer> items=new ArrayList<>();\n\n for (Shape shape: shapes){\n items.add(shape.containerVolume());\n System.out.println(shape.containerVolume());\n }\n\n\n\n //List<Integer> items = Arrays.asList(shapes.get(0).containerVolume());\n //insert the bin capacity\n // int binCapacity = 5;\n CheckBin algorithm = new CheckBin(items, binCapacity);\n algorithm.solvingBinPackingProblem();\n algorithm.showResults();\n // System.out.println(\"This is after committing\");\n\n\n }", "public void createLots(double lotWidth, double lotHeight, double deviance)\n\t{\n\t\tdouble LOT_WIDTH = lotWidth;\n\t\tdouble LOT_DEPTH = lotHeight;\n\n\t\tdouble LOT_DEVIANCE = deviance;\n\t\tif (deviance < 0 || deviance > 1) {\n\t\t\tthrow new IllegalArgumentException(\"deviance must be between 0.0 and 1.0.\");\n\t\t}\n\n\t\tSubRegion region; /* Current region. */\n\t\t/*\n\t\t * Elements to be subdivided.\n\t\t */\n\t\tList<SubRegion> regionQueue = new ArrayList<SubRegion>();\n\t\t/*\n\t\t * Newly added regions by splitRegion.\n\t\t */\n\t\tList<SubRegion> newRegions = new ArrayList<SubRegion>();\n\t\t/*\n\t\t * Regions that need no further subdivision .\n\t\t */\n\t\tList<SubRegion> outputRegions = new ArrayList<SubRegion>();\n\n\t\tSubRegion.Edge longestEdge; /* Longest edge of current region. */\n\t\tLineSegment edgeLine = new LineSegment();\n\t\tdouble splitSize;\n\t\tPoint sp1, sp2; /* Split line. */\n\n\t\t/* A valid region must have at least 3 vertices. */\n\t\tif (constraints.numberOfVertices() < 3) {\n\t\t\tthrow new IllegalArgumentException(\"Number of vertices in constraints must be >= 3.\");\n\t\t}\n\n\t\t/*\n\t\t * Convert areaConstraints of this block to polygonGraph that is used in\n\t\t * subdivision algorithm.\n\t\t */\n\t\tregion = new SubRegion(constraints);\n\n\t\tSubRegion.Edge blockFirst = region.getFirstEdge();\n\t\tSubRegion.Edge current = blockFirst;\n\t\tdo /* All edges of Block has road access */\n\t\t{\n\t\t\tcurrent.hasRoadAccess = true;\n\t\t\tcurrent = current.next;\n\t\t} while (current != blockFirst);\n\n\t\t/* Add the region to queue for splitting */\n\t\tregionQueue.add(region);\n\n\t\t/* While there are some more regions to subdivide. */\n\t\twhile (!regionQueue.isEmpty())\n\t\t{\n\t\t\t/* Get first region. */\n\t\t\tregion = regionQueue.get(regionQueue.size() - 1);\n\n\t\t\t/* Calc the longest road edge and split size. */\n\t\t\tlongestEdge = region.getLongestEdgeWithRoadAccess();\n\t\t\tif (longestEdge != null)\n\t\t\t{\n\t\t\t\tedgeLine.set(new Point(longestEdge.beginning), new Point(longestEdge.next.beginning));\n\t\t\t\tlogger.debug(\"Longest Road edge: \" + edgeLine.length());\n\t\t\t\tif (edgeLine.length() <= LOT_WIDTH) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t * No road edge requires\n\t\t\t\t\t\t\t\t\t\t\t\t\t * further splitting.\n\t\t\t\t\t\t\t\t\t\t\t\t\t */\n\t\t\t\t{\n\t\t\t\t\t/* Calc the longest non-road edge and split size. */\n\t\t\t\t\tlongestEdge = region.getLongestEdgeWithoutRoadAccess();\n\t\t\t\t\tif (longestEdge != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tedgeLine.set(longestEdge.beginning, longestEdge.next.beginning);\n\t\t\t\t\t\tlogger.debug(\"Longest NONRoad edge: \" + edgeLine.length());\n\t\t\t\t\t\tif (edgeLine.length() <= LOT_DEPTH) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * No non-road edge\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * requires further\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * splitting.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlogger.debug(\"Region is small enough, moving to output.\");\n\t\t\t\t\t\t\tlogger.debug(\" area = \" + region.toPolygon().area());\n\t\t\t\t\t\t\tlogger.debug(region.toString());\n\t\t\t\t\t\t\t/* Region is complete. */\n\t\t\t\t\t\t\toutputRegions.add(region);\n\t\t\t\t\t\t\tregionQueue.remove(regionQueue.get(regionQueue.size() - 1));\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsplitSize = LOT_DEPTH;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t/* All edges are small enough */\n\t\t\t\t\t\toutputRegions.add(region);\n\t\t\t\t\t\tregionQueue.remove(regionQueue.get(regionQueue.size() - 1));\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsplitSize = LOT_WIDTH;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// if lot is small enough, add completed region\n\t\t\t\tlogger.debug(\"THIS REGION HAS NO Edge with RoadAccess.\");\n\t\t\t\tlogger.debug(\" \" + region.toPolygon().toString());\n\t\t\t\toutputRegions.add(region);\n\t\t\t\tregionQueue.remove(regionQueue.get(regionQueue.size() - 1));\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// calculate the split points\n\t\t\tsp1 = calcSplitPoint(edgeLine, splitSize, LOT_DEVIANCE);\n\t\t\tsp2 = new Point(sp1);\n\t\t\tsp2.add(edgeLine.normal());// *longestEdge.length();\n\t\t\t// split and process the new regions\n\t\t\tnewRegions = splitRegion(region, sp1, sp2); // BUG: <-- not working?\n\t\t\tregionQueue.remove(regionQueue.get(regionQueue.size() - 1));\n\t\t\tfor (SubRegion newRegion : newRegions)\n\t\t\t{\n\t\t\t\tlogger.debug(\"New region:\");\n\t\t\t\tlogger.debug(newRegion.toString());\n\t\t\t\tif (newRegion.hasRoadAccess())\n\t\t\t\t{\n\t\t\t\t\tlogger.debug(\" Adding to processing queue: \" + newRegion.toPolygon().toString());\n\t\t\t\t\tregionQueue.add(newRegion); // add to processing queue\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlogger.debug(\" Discarded.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tPolygon newRegionPolygon;\n\t\tlogger.debug(\"Block::createLots() numberOfRegions \" + outputRegions.size());\n\t\tfor (SubRegion newRegion : outputRegions)\n\t\t{\n\t\t\tnewRegionPolygon = newRegion.toPolygon();\n\t\t\tif (newRegionPolygon.isNonSelfIntersecting())\n\t\t\t{\n\t\t\t\tlots.add(new Lot(this, newRegionPolygon));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new IllegalStateException(\"Self-intersecting polygon encountered: \" + newRegionPolygon.toString());\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic Rectangle getBound() {\n\t\trectBound.setX(posX+20);\n\t\trectBound.setY(Y_LAND - image.getHeight() +10);\n\t\trectBound.setWidth(image.getWidth()-10);\n\t\trectBound.setHeight(image.getHeight());\n\t\treturn rectBound;\n\t}", "private void createRenderables()\n {\n this.gridElements = new ArrayList<GridElement>();\n\n ArrayList<Position> positions = new ArrayList<Position>();\n double step = sector.getDeltaLatDegrees() / this.divisions;\n\n // Generate meridians with labels\n double lon = sector.getMinLongitude().degrees + (this.level == 0 ? 0 : step);\n while (lon < sector.getMaxLongitude().degrees - step / 2)\n {\n Angle longitude = Angle.fromDegrees(lon);\n // Meridian\n positions.clear();\n positions.add(new Position(this.sector.getMinLatitude(), longitude, 0));\n positions.add(new Position(this.sector.getMaxLatitude(), longitude, 0));\n\n Object polyline = createLineRenderable(positions, Polyline.LINEAR);\n Sector sector = Sector.fromDegrees(\n this.sector.getMinLatitude().degrees, this.sector.getMaxLatitude().degrees, lon, lon);\n String lineType = lon == this.sector.getMinLongitude().degrees ?\n GridElement.TYPE_LINE_WEST : GridElement.TYPE_LINE;\n GridElement ge = new GridElement(sector, polyline, lineType);\n ge.value = lon;\n this.gridElements.add(ge);\n\n // Increase longitude\n lon += step;\n }\n\n // Generate parallels\n double lat = this.sector.getMinLatitude().degrees + (this.level == 0 ? 0 : step);\n while (lat < this.sector.getMaxLatitude().degrees - step / 2)\n {\n Angle latitude = Angle.fromDegrees(lat);\n positions.clear();\n positions.add(new Position(latitude, this.sector.getMinLongitude(), 0));\n positions.add(new Position(latitude, this.sector.getMaxLongitude(), 0));\n \n Object polyline = createLineRenderable(positions, Polyline.LINEAR);\n Sector sector = Sector.fromDegrees(\n lat, lat, this.sector.getMinLongitude().degrees, this.sector.getMaxLongitude().degrees);\n String lineType = lat == this.sector.getMinLatitude().degrees ?\n GridElement.TYPE_LINE_SOUTH : GridElement.TYPE_LINE;\n GridElement ge = new GridElement(sector, polyline, lineType);\n ge.value = lat;\n this.gridElements.add(ge);\n\n // Increase latitude\n lat += step;\n }\n }", "BranchGroup createSceneGraph() {\n BranchGroup objRoot = new BranchGroup();\n\n // Add the primitives to the scene\n setupSpheres();\n objRoot.addChild(spheresSwitch);\n setupGrid();\n objRoot.addChild(gridSwitch);\n objRoot.addChild(lightGroup);\n objRoot.addChild(bgSwitch);\n objRoot.addChild(fogSwitch);\n objRoot.addChild(soundSwitch);\n\n KeyPrintBehavior key = new KeyPrintBehavior();\n key.setSchedulingBounds(infiniteBounds);\n objRoot.addChild(key);\n return objRoot;\n }", "private void splitIntoRoots() {\n\t\tArrayList<ArrayList<Coord>> circ = findCircles();\n\t\tcombinePastRoots(circ);\n\t}", "@Override\n\tpublic AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) {\n\t {\n\t boolean flag = ((Boolean)state.getValue(POWERED)).booleanValue();\n\t switch ((BlockLever.EnumOrientation)state.getValue(FACING))\n\t {\n\t case EAST:\n\t default:\n\t return flag ? AABB_EAST_ON : AABB_EAST_OFF;\n\t case WEST:\n\t return flag ? AABB_WEST_ON : AABB_WEST_OFF;\n\t case SOUTH:\n\t return flag ? AABB_SOUTH_ON : AABB_SOUTH_OFF;\n\t case NORTH:\n\t return flag ? AABB_NORTH_ON : AABB_NORTH_OFF;\n\t case UP_Z:\n\t return flag ? AABB_UPZ_ON : AABB_UPZ_OFF;\n\t case UP_X:\n\t return flag ? AABB_UPX_ON : AABB_UPX_OFF;\n\t case DOWN_X:\n\t \treturn flag ? AABB_DOWNX_ON : AABB_DOWNX_OFF;\n\t case DOWN_Z:\n\t return flag ? AABB_DOWNZ_ON : AABB_DOWNZ_OFF;\n\t }\n\t }\n\t}", "private Boundaries buildBoundaries(Graph graph, Graph clusterPlacement) {\n Boundaries boundaries = new Boundaries();\n NodeAttribute<Coordinates> clusterPositions = clusterPlacement.nodeAttribute(StdAttribute.nodePosition);\n NodeAttribute<Coordinates> clusterSizes = clusterPlacement.nodeAttribute(StdAttribute.nodeSize);\n NodeAttribute<Coordinates> positions = graph.nodeAttribute(StdAttribute.nodePosition);\n EdgeAttribute<ControlPoints> edgePoints = graph.edgeAttribute(StdAttribute.edgePoints);\n\n for (Graph cluster : graph.subGraphs()) {\n String clusterLabel = cluster.<String>graphAttribute(StdAttribute.label).get();\n Node clusterPlaceholder = clusterPlacement.getNode(clusterLabel);\n Coordinates clusterCenter = clusterPositions.get(clusterPlaceholder);\n Coordinates clusterSize = clusterSizes.get(clusterPlaceholder);\n Coordinates clusterBottomLeft = clusterCenter.minus(clusterSize.divide(2));\n\n Node boundaryNode = graph.newNode();\n Edge boundaryEdge = graph.newEdge(boundaryNode, boundaryNode);\n positions.set(boundaryNode, clusterBottomLeft);\n ControlPoints edgeBends = new ControlPoints();\n edgeBends.add(clusterBottomLeft.plus(new Coordinates(clusterSize.x(), 0)));\n edgeBends.add(clusterBottomLeft.plus(clusterSize));\n edgeBends.add(clusterBottomLeft.plus(new Coordinates(0, clusterSize.y())));\n edgePoints.set(boundaryEdge, edgeBends);\n\n boundaries.nodes.add(boundaryNode);\n boundaries.edges.add(boundaryEdge);\n Collection<Edge> surroundingEdge = new HashSet<>();\n surroundingEdge.add(boundaryEdge);\n for (Node node : cluster.nodes()) {\n boundaries.surroundingEdges.set(node, surroundingEdge);\n }\n }\n boundaries.surroundingEdges.setDefault(boundaries.edges);\n return boundaries;\n }", "private Pane createSubTree(int level, File directory) {\n\t\tVBox dirNameBox = new VBox();\n\t\t\n\t\tdouble maxPaneHeight = 0;\n\t\tdouble totalArea = 0;\n\t\tdouble totalPanesHeight = 0;\n\t\tdouble totalPanesWidth = 0;\n\n\t\tArrayList<Pane> panes = new ArrayList<Pane>();\n\t\t\n\t\t// Add label\n\t\tLabel newLabel = new Label(directory.getName());\n\t\tnewLabel.setFont(Font.font(\"System\", FontWeight.BOLD, 8.0f));\n\t\t//newLabel.setBackground(new Background(new BackgroundFill(Color.CORNFLOWERBLUE, CornerRadii.EMPTY, Insets.EMPTY)));\n\n\t\t//nodes.add(newLabel);\t\t\n\t\tdirNameBox.getChildren().add(newLabel);\n\t\t\n\t\t\n\t\tPane dirPane;\n\t\tif (level % 2 == 0) {\n\t\t\tdirPane = new VBox();\n\t\t\t// Setting the spacing between the nodes\n\t\t\t((VBox)dirPane).setSpacing(gap);\n\t\t\t((VBox)dirPane).setAlignment(Pos.TOP_LEFT); \t\t\n\t\t} else {\n\t\t\tdirPane = new HBox();\n\t\t\t// Setting the spacing between the nodes\n\t\t\t((HBox)dirPane).setSpacing(gap);\n\t\t\t((HBox)dirPane).setAlignment(Pos.TOP_LEFT); \t\t\n\t\t}\n\t\tdirNameBox.getChildren().add(dirPane);\n\t\t\n\t\t\t\t\n\t\tint numSubDirs = 0;\n\t\tString[] subFilesAndDirectories = directory.list(new FilenameFilter() {\n\t\t public boolean accept(File dir, String name) {\n\t\t \tif (fileExtensionFilter == null || fileExtensionFilter.length == 0 ) {\n\t\t \t\t// No Filter defined\n\t\t \t\treturn true;\n\t\t \t} else {\n\t\t\t \t// check if file extension is in the list of allowed extensions\n\t\t\t return Arrays.stream(fileExtensionFilter).anyMatch(FilenameUtils.getExtension(name.toLowerCase())::equals);\n\t\t \t}\n\t\t };\n\t\t});\t\n\n\t\tfor (String fileOrDirectoryName : subFilesAndDirectories) {\n\t\t\t\n\t\t\tFile fileOrDirectory = new File(directory, fileOrDirectoryName);\n\t\t\t\n\t\t\tif (fileOrDirectory.isDirectory()) {\n\t\t\t\tpanes.add(createSubTree(level++, fileOrDirectory));\n\t\t\t\tnumSubDirs++;\n\t\t\t} else {\n\t\t\t\tif (showFiles) {\n\t\t\t\t\tpanes.add(createFilePane(fileOrDirectory));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\n\t\tdirNameBox.setSpacing(0);\n\t\t\n\t\tif (usePadding) {dirPane.setPadding(new Insets(gap,gap,gap,gap));}\n\t\t\n\t\tdirNameBox.setPadding(new Insets(1,1,1,1));\n\n\t\t//flowPane.autosize();\n\t\t\n\t\t// Alignments\n\t\tdirNameBox.setAlignment(Pos.TOP_LEFT); \n\n\t\tif (showRandomDirectoryBackgroundColor) {\n\t\t\tdirNameBox.setStyle(\"-fx-background-color: rgba(\" + (randomizer.nextInt(155) + 100) +\n\t\t\t\t\t\", \" + (randomizer.nextInt(155) + 100) + \", \" + (randomizer.nextInt(155) + 100) + \", \" +\n\t\t\t\t\t1 + \"); -fx-background-radius: 10;\");\n\t\t} else {\n//\t\t\tvBox.setStyle(\"-fx-background-color: rgba(\" + 255 + \", \" + 255 + \", \" + 255 + \", \" + 0\n//\t\t\t\t\t+ \"); -fx-background-radius: 10; \" + (showBorder ? \"-fx-border-color: gray\" : \"\")\n//\t\t\t);\n\t\t\tdirNameBox.setStyle(\"-fx-background-color: rgba(\" + 240 + \", \" + 240 + \", \" + 240 + \", \" + 1\n\t\t\t\t\t+ \"); -fx-background-radius: 10; \" + (showBorder ? \"-fx-border-color: gray\" : \"\")\n\t\t\t);\n\n\t\t}\n\n\t\tdirPane.setStyle(\"-fx-background-color: rgba(\" + 255 + \", \" + 255 + \", \" + 255 + \", \" + 0.5f\n\t\t\t\t+ \"); -fx-background-radius: 10; \" // + (showBorder ? \"-fx-border-color: blue; -fx-border-style: dotted;\" : \"\")\n\t\t);\n\n\t\t\n\t\t// Retrieving the childrens list of the parent pane\n\t\tObservableList<Node> list = dirPane.getChildren();\n\t\t\n\t\t// Adding all the nodes to the parent pane\n\t\tfor (Pane pane : panes) {\n\n\t\t\tlist.add(pane);\n\t\t\t\n\t\t\tdouble currentHeight = \n\t\t\t\t\t(pane instanceof VBox ? ((VBox)pane).getPrefHeight() + \n\t\t\t\t\t\t\t\t\t\t\t\t(showBorder ? 2 : 0) /*top + bottom border*/ + \n\t\t\t\t\t\t\t\t\t\t\t\t(usePadding ? 2 * gap : 0) /*padding*/ \n\t\t\t\t\t: (pane instanceof Pane ? ((Pane)pane).getPrefHeight() : 12 /*label*/)\n\t\t\t);\n\t\t\tdouble currentWidth = \n\t\t\t\t\t(pane instanceof HBox ? ((HBox)pane).getPrefHeight() + \n\t\t\t\t\t\t\t\t\t\t\t\t(showBorder ? 2 : 0) /*top + bottom border*/ + \n\t\t\t\t\t\t\t\t\t\t\t\t(usePadding ? 2 * gap : 0) /*padding*/ \n\t\t\t\t\t: (pane instanceof Pane ? ((Pane)pane).getPrefWidth() : 12 /*label*/)\n\t\t\t);\n\t\t\tmaxPaneHeight = Math.max(maxPaneHeight, currentHeight);\n\t\t\ttotalPanesHeight += currentHeight;\n\t\t\ttotalPanesWidth += currentWidth;\n\t\t\ttotalArea += pane.getPrefHeight() * pane.getPrefWidth();\n//\t\t\tSystem.out.println((p instanceof FlowPane ? \"Folder\" : \"File\") + \": \" + ((Label)p.getChildren().get(0)).getText() + \n//\t\t\t\t\t\" p.PrefHeight: \" + p.getPrefHeight() + \" p.PrefWidth: \" + p.getPrefWidth() + \n//\t\t\t\t\t\" p.Height: \" + p.getHeight() + \" p.Width: \" + p.getWidth() +\n//\t\t\t\t\t(p instanceof FlowPane ? \" p.PrefWrap: \" + ((FlowPane)p).getPrefWrapLength() : \"\") +\n//\t\t\t\t\t\" totalHeight: \" + totalPanesHeight);\n\t\t}\n\t\t\t\n\t\t// height of squared total area\n\t\tdouble areaHeight = Math.sqrt(totalArea) * transformFactor;\n\t\tdouble prefHeight = Math.max(areaHeight, maxPaneHeight);\n\t\t\n\t\tprefHeight = Math.min(totalPanesHeight, areaHeight);\n\t\t\n//\t\t// Setting preferred heights\n//\t\t((VBox)dirPane).setPrefHeight(\n//\t\t\t\ttotalPanesHeight\n//\t\t\t\t+ (panes.size() - 1) * gap /*gaps*/\n//\t\t\t\t// + 2 /*border*/\n//\t\t); \t\n\t\t\n//\t\tvBox.setPrefWrapLength(flowPane.getPrefWrapLength() + \n//\t\t\t\t12 /*label height*/ + \n//\t\t\t\t(showBorder ? 2 : 0) /*border around childFlowPane*/ +\n//\t\t\t\t(usePadding ? 2 * gap : 0) /*padding*/\n//\t\t\t\t);\n\n\t\t\t\n\t\tbindTooltip(dirNameBox, tooltip);\n\t\tbindTooltip(dirPane,tooltip);\n\t\tbindTooltip(newLabel, tooltip);\n\n\t\treturn dirNameBox;\n\t}", "@Override\n protected void addBounds ()\n {\n ParticleSystemConfig.Layer psconfig = (ParticleSystemConfig.Layer)_config;\n GroupPriority priorityMode = psconfig.priorityMode;\n if (priorityMode == null) {\n _bounds.getCenter(_center);\n }\n super.addBounds();\n\n // add layer bounds to group bounds, if applicable\n if (priorityMode != null) {\n ((ParticleSystem)_parentScope).getGroupBounds(\n priorityMode.group).addLocal(_bounds);\n }\n }", "private void setDimensions() {\n IPhysicalVolume physVol_parent = getModule().getGeometry().getPhysicalVolume();\n ILogicalVolume logVol_parent = physVol_parent.getLogicalVolume();\n ISolid solid_parent = logVol_parent.getSolid();\n Box box_parent;\n if (Box.class.isInstance(solid_parent)) {\n box_parent = (Box) solid_parent;\n } else {\n throw new RuntimeException(\"Couldn't cast the module volume to a box!?\");\n }\n _length = box_parent.getXHalfLength() * 2.0;\n _width = box_parent.getYHalfLength() * 2.0;\n\n }", "private KDTree<BinaryClassificationTarget> buildKDTree() {\n\t\tswitch (kdType) {\n\t\tcase EUCLIDIAN:\n\t\t\treturn new SqrEuclid<BinaryClassificationTarget>(dimension,\n\t\t\t\t\tsizeLimit);\n\t\tcase WEIGHTEDEUCLIDIAN:\n\t\t\treturn new WeightedSqrEuclid<BinaryClassificationTarget>(dimension,\n\t\t\t\t\tsizeLimit);\n\t\tcase MANHATTAN:\n\t\t\treturn new Manhattan<BinaryClassificationTarget>(dimension,\n\t\t\t\t\tsizeLimit);\n\t\tcase WEIGHTEDMANHATTAN:\n\t\t\treturn new WeightedManhattan<BinaryClassificationTarget>(dimension,\n\t\t\t\t\tsizeLimit);\n\t\tdefault:\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"entered an unrecognized kdType: \" + kdType);\n\t\t}\n\t}", "private QuadTree[] findChild(QuadTree parent) {\n double point1_lon = parent.ullon;\n double point1_lat = parent.ullat;\n double point2_lon = (parent.lrlon + parent.ullon) / 2;\n double point2_lat = parent.ullat;\n double point3_lon = parent.ullon;\n double point3_lat = (parent.ullat + parent.lrlat) / 2;\n double point4_lon = (parent.lrlon + parent.ullon) / 2;\n double point4_lat = (parent.ullat + parent.lrlat) / 2;\n double point5_lon = (parent.lrlon + parent.ullon) / 2;\n double point5_lat = parent.lrlat;\n double point6_lon = parent.lrlon;\n double point6_lat = parent.lrlat;\n double point7_lon = parent.lrlon;\n double point7_lat = (parent.ullat + parent.lrlat) / 2;\n QuadTree ul, ur, ll, lr;\n if (parent.name.equals(\"root\")) {\n ul = new QuadTree(\"1\", point1_lon, point1_lat, point4_lon, point4_lat, parent.depth + 1);\n ur = new QuadTree(\"2\", point2_lon, point2_lat, point7_lon, point7_lat, parent.depth + 1);\n ll = new QuadTree(\"3\", point3_lon, point3_lat, point5_lon, point5_lat, parent.depth + 1);\n lr = new QuadTree(\"4\", point4_lon, point4_lat, point6_lon, point6_lat, parent.depth + 1);\n } else {\n ul = new QuadTree(parent.name + \"1\", point1_lon, point1_lat, point4_lon, point4_lat, parent.depth + 1);\n ur = new QuadTree(parent.name + \"2\", point2_lon, point2_lat, point7_lon, point7_lat, parent.depth + 1);\n ll = new QuadTree(parent.name + \"3\", point3_lon, point3_lat, point5_lon, point5_lat, parent.depth + 1);\n lr = new QuadTree(parent.name + \"4\", point4_lon, point4_lat, point6_lon, point6_lat, parent.depth + 1);\n }\n QuadTree[] child = new QuadTree[4];\n child[0] = ul;\n child[1] = ur;\n child[2] = ll;\n child[3] = lr;\n return child;\n }", "private Bounds getBounds(final Value value, final DebugContext context)\r\n throws ViewerException {\r\n Bounds b = new Bounds();\r\n Method getBoundsMethod = value.getMethod(context,\r\n \"getBounds\", \"java.awt.Rectangle\", null);\r\n Value bounds = value.invokeMethod(context, getBoundsMethod,\r\n null);\r\n String type = value.getType(context).getName(context);\r\n int dot = type.lastIndexOf('.');\r\n if (dot >= 0) {\r\n type = type.substring(dot + 1);\r\n }\r\n b.type = type;\r\n \r\n try {\r\n Method getTextMethod = value.getMethod(context, \"getText\",\r\n \"java.lang.String\", null);\r\n Value result = value.invokeMethod(context, getTextMethod,\r\n null);\r\n if (!result.isNull()) {\r\n String str = result.toString(context);\r\n if (str.length() > 10) {\r\n str = str.substring(0, 7) + \"...\";\r\n }\r\n b.type += \" \\\"\" + str + \"\\\"\";\r\n }\r\n }\r\n catch (ViewerException e) {\r\n }\r\n \r\n b.bounds.x = bounds.getFieldValue(context, \"x\").toInt(context);\r\n b.bounds.y = bounds.getFieldValue(context, \"y\").toInt(context);\r\n b.bounds.width = bounds.getFieldValue(context, \"width\").\r\n toInt(context);\r\n b.bounds.height = bounds.getFieldValue(context, \"height\").\r\n toInt(context);\r\n if (value.isInstanceOf(context, \"java.awt.Container\")) {\r\n Method getComponentsMethod = value.getMethod(context,\r\n \"getComponents\", \"java.awt.Component[]\", null);\r\n Value children;\r\n try {\r\n children = value.invokeMethod(context,\r\n getComponentsMethod, null);\r\n }\r\n catch (ViewerException e) {\r\n b.children = new Bounds[0];\r\n return b;\r\n }\r\n b.children = new Bounds[children.getArrayLength(context)];\r\n for (int c = 0; c < b.children.length; c++) {\r\n b.children[c] = getBounds(children.getArrayElement(context,\r\n c), context);\r\n }\r\n }\r\n return b; \r\n }", "public static void buildSubTropical(Vegetation.VegetationBuilder builder){\r\n // not yet implemented\r\n }", "@Override\n \tpublic Rectangle2D GetBoundingBox() {\n\t\treturn null;\n \t}", "private AABB(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "protected void buildHirarchyTree() {\r\n\t\tfor(SupplyZone s : supplyZoneLines){\r\n\t\t\tZoneNode currentZone = zoneNodeMap.get(s.getZoneName());\r\n\t\t\tZoneNode parentZone = zoneNodeMap.get(s.getParentZoneName());\r\n\t\t\tif(parentZone == null){\r\n\t\t\t\tzonesTreeRoot = currentZone;\r\n\t\t\t}\r\n\t\t\tcurrentZone.setParent(parentZone);\r\n\t\t\tif (parentZone != null) parentZone.addChild(currentZone); \r\n\t\t}\r\n\r\n\t}", "private G4Box buildMAPMT(String mapmtName) {\n\n \t\n G4Box MAPMTVolume = new G4Box(mapmtName, MAPMT_dx, MAPMT_dy, MAPMT_dz);\n\n //Aluminum walls of MAPMT\n G4Box AluminumLeft = new G4Box(\"AlLeft_\" + mapmtName, MAPMTWall_thickness / 2, MAPMT_dy - MAPMTWall_thickness, MAPMT_dz);\n AluminumLeft.translate(MAPMT_dx - MAPMTWall_thickness / 2, 0, 0);\n AluminumLeft.setMother(MAPMTVolume);\n\n G4Box AluminumRight = new G4Box(\"AlRight_\" + mapmtName, MAPMTWall_thickness / 2, MAPMT_dy - MAPMTWall_thickness, MAPMT_dz);\n AluminumRight.translate(-MAPMT_dx + MAPMTWall_thickness / 2, 0, 0);\n AluminumRight.setMother(MAPMTVolume);\n\n G4Box AluminumTop = new G4Box(\"AlTop_\" + mapmtName, MAPMT_dx, MAPMTWall_thickness / 2, MAPMT_dz);\n AluminumTop.translate(0, MAPMT_dy - MAPMTWall_thickness / 2, 0);\n AluminumTop.setMother(MAPMTVolume);\n\n G4Box AluminumBottom = new G4Box(\"AlBottom_\" + mapmtName, MAPMT_dx, MAPMTWall_thickness / 2, MAPMT_dz);\n AluminumBottom.translate(0, -MAPMT_dy + MAPMTWall_thickness / 2, 0);\n AluminumBottom.setMother(MAPMTVolume);\n\n //window\n G4Box Window = new G4Box(\"Window_\" + mapmtName, MAPMT_dx - MAPMTWall_thickness, MAPMT_dy - MAPMTWall_thickness, MAPMTWindow_thickness / 2);\n Window.translate(0, 0, -MAPMT_dz + MAPMTWindow_thickness / 2);\n Window.setMother(MAPMTVolume);\n\n //photocathode\n G4Box Photocathode = new G4Box(\"Photocathode_\" + mapmtName, MAPMTPhotocathode_side / 2, MAPMTPhotocathode_side / 2, MAPMTPhotocathode_thickness / 2);\n Photocathode.translate(0, 0, -MAPMT_dz + MAPMTWindow_thickness + MAPMTPhotocathode_thickness / 2);\n Photocathode.setMother(MAPMTVolume);\n // add the photocatodes to the list\n photocatodes.add(Photocathode);\n \n //socket\n G4Box Socket = new G4Box(\"Socket_\" + mapmtName, MAPMT_dx - MAPMTWall_thickness, MAPMT_dy - MAPMTWall_thickness, MAPMTSocket_thickness / 2);\n Socket.translate(0, 0, MAPMT_dz - MAPMTSocket_thickness / 2);\n Socket.setMother(MAPMTVolume);\n\n return MAPMTVolume;\n }", "@Override\r\n protected void computeBox ()\r\n {\r\n // Stem or similar info\r\n Rectangle newBox = new Rectangle(getTailLocation());\r\n newBox.add(getHeadLocation());\r\n\r\n // Each and every note\r\n for (TreeNode n : getNotes()) {\r\n Note note = (Note) n;\r\n\r\n newBox.add(note.getBox());\r\n }\r\n\r\n setBox(newBox);\r\n }", "public abstract void constructHull();", "private void populateLevel() {\n\t\t// Make the ragdoll\n\t\tragdoll = new RagdollModel(DOLL_POS.x, DOLL_POS.y);\n\t\tragdoll.setDrawScale(scale.x,scale.y);\n\t\tragdoll.setPartTextures(bodyTextures);\n\t\tragdoll.getBubbleGenerator().setTexture(bubbleTexture);\n\t\taddObject(ragdoll);\n\n\t\t// Create ground pieces\n\t\tPolygonObstacle obj;\n\t\tobj = new PolygonObstacle(WALL1, 0, 0);\n\t\tobj.setBodyType(BodyDef.BodyType.StaticBody);\n\t\tobj.setDensity(BASIC_DENSITY);\n\t\tobj.setFriction(BASIC_FRICTION);\n\t\tobj.setRestitution(BASIC_RESTITUTION);\n\t\tobj.setDrawScale(scale);\n\t\tobj.setTexture(earthTile);\n\t\tobj.setName(\"wall1\");\n\t\taddObject(obj);\n\n\t\tobj = new PolygonObstacle(WALL2, 0, 0);\n\t\tobj.setBodyType(BodyDef.BodyType.StaticBody);\n\t\tobj.setDensity(BASIC_DENSITY);\n\t\tobj.setFriction(BASIC_FRICTION);\n\t\tobj.setRestitution(BASIC_RESTITUTION);\n\t\tobj.setDrawScale(scale);\n\t\tobj.setTexture(earthTile);\n\t\tobj.setName(\"wall2\");\n\t\taddObject(obj);\n\n\t\tselector = new ObstacleSelector(world);\n\t\tselector.setTexture(crosshairTexture);\n\t\tselector.setDrawScale(scale);\n\t\t\n\t\t/*\n\t\tBodyDef groundDef = new BodyDef();\n\t\tgroundDef.type = BodyDef.BodyType.StaticBody;\n\t\tEdgeShape groundShape = new EdgeShape();\n\t\tgroundShape.set(-500.0f, 0.0f, 500.0f, 0.0f);\n\t\tground = world.createBody(groundDef);\n\t\tground.createFixture(groundShape,0);\n\t\t*/\n\t}", "private void calculateMinMaxPositions() {\n boundingVolume = null;\n if ( minMax == null ) {\n minMax = new double[6];\n\n double minX = Double.MAX_VALUE;\n double minY = Double.MAX_VALUE;\n double minZ = Double.MAX_VALUE;\n double maxX = -Double.MAX_VALUE;\n double maxY = -Double.MAX_VALUE;\n double maxZ = -Double.MAX_VALUE;\n int i;\n\n for ( i = 0; i < getNumVertices(); i++ ) {\n double x = vertexPositions[3*i+0];\n double y = vertexPositions[3*i+1];\n double z = vertexPositions[3*i+2];\n\n if ( x < minX ) minX = x;\n if ( y < minY ) minY = y;\n if ( z < minZ ) minZ = z;\n if ( x > maxX ) maxX = x;\n if ( y > maxY ) maxY = y;\n if ( z > maxZ ) maxZ = z;\n }\n minMax[0] = minX;\n minMax[1] = minY;\n minMax[2] = minZ;\n minMax[3] = maxX;\n minMax[4] = maxY;\n minMax[5] = maxZ;\n }\n }", "private DocumentFileArrayAdapter buildFolderRootsAdapter() {\n Map<String, DocumentFile> roots = null;\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n roots = buildDocFilesRootsMap();\n } else {\n roots = buildDocFilesRootsMapPreKitKat();\n }\n\n DocumentFileArrayAdapter adapter = new DocumentFileArrayAdapter(requireContext(), android.R.layout.simple_spinner_item, roots);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n return adapter;\n }", "private void buildTree() {\n if (treeBuilt) {\n return;\n }\n\n Vector gItems = protocol.getGroupItems();\n int gCount = gItems.size();\n for (int i = 0; i < gCount; ++i) {\n Group gItem = (Group)gItems.elementAt(i);\n gItem.updateContacts();\n gItem.updateGroupData();\n }\n\n TreeNode currentNode = getCurrentNode();\n TreeBranch root = getRoot();\n clear();\n root.setExpandFlag(false);\n boolean showOffline = !Options.getBoolean(Options.OPTION_CL_HIDE_OFFLINE);\n for (int groupIndex = 0; groupIndex < gCount; ++groupIndex) {\n Group group = (Group)gItems.elementAt(groupIndex);\n boolean isExpanded = group.isExpanded();\n group.setExpandFlag(false);\n cleanNode(group);\n Vector contacts = group.getContacts();\n int contactCount = contacts.size();\n for (int contactIndex = 0; contactIndex < contactCount; ++contactIndex) {\n Contact cItem = (Contact)contacts.elementAt(contactIndex);\n if (cItem.isVisibleInContactList()) {\n addNode(group, cItem);\n }\n }\n group.setExpandFlag(isExpanded);\n if (showOffline || (0 < group.getSubnodesCount())) {\n addNode(root, group);\n }\n }\n Vector cItems = getContactItems();\n int cCount = cItems.size();\n for (int contactIndex = 0; contactIndex < cCount; ++contactIndex) {\n Contact cItem = (Contact)cItems.elementAt(contactIndex);\n if ((Group.NOT_IN_GROUP == cItem.getGroupId()) && cItem.isVisibleInContactList()) {\n addNode(root, cItem);\n }\n }\n\n setCurrentNode(currentNode);\n root.setExpandFlag(true);\n updateMetrics();\n treeBuilt = true;\n }", "private void calcBoxVerts() {\n\t\tif (verts != null) {\n\t\t\tdouble minX = verts[0].getElement(0);\n\t\t\tdouble maxX = minX;\n\t\t\tdouble minY = verts[0].getElement(1);\n\t\t\tdouble maxY = minY;\n\t\t\tdouble minZ = verts[0].getElement(2);\n\t\t\tdouble maxZ = minZ;\n\t\t\tfor (int i = 1; i < verts.length; i++) {\n\t\t\t\tif (verts[i].getElement(0) < minX) {\n\t\t\t\t\tminX = verts[i].getElement(0);\n\t\t\t\t} else if (verts[i].getElement(0) > maxX) {\n\t\t\t\t\tmaxX = verts[i].getElement(0);\n\t\t\t\t}\n\t\t\t\tif (verts[i].getElement(1) < minY) {\n\t\t\t\t\tminY = verts[i].getElement(1);\n\t\t\t\t} else if (verts[i].getElement(1) > maxY) {\n\t\t\t\t\tmaxY = verts[i].getElement(1);\n\t\t\t\t}\n\t\t\t\tif (verts[i].getElement(2) < minZ) {\n\t\t\t\t\tminZ = verts[i].getElement(2);\n\t\t\t\t} else if (verts[i].getElement(2) > maxZ) {\n\t\t\t\t\tmaxZ = verts[i].getElement(2);\n\t\t\t\t}\n\t\t\t}\n\t\t\tVector[] boxVerts = new Vector[8];\n\t\t\tboxVerts[0] = new Vector(3);\n\t\t\tboxVerts[0].setElements(new double[] {minX, minY, minZ});\n\t\t\tboxVerts[1] = new Vector(3);\n\t\t\tboxVerts[1].setElements(new double[] {maxX, minY, minZ});\n\t\t\tboxVerts[2] = new Vector(3);\n\t\t\tboxVerts[2].setElements(new double[] {minX, minY, maxZ});\n\t\t\tboxVerts[3] = new Vector(3);\n\t\t\tboxVerts[3].setElements(new double[] {maxX, minY, maxZ});\n\t\t\tboxVerts[4] = new Vector(3);\n\t\t\tboxVerts[4].setElements(new double[] {minX, maxY, minZ});\n\t\t\tboxVerts[5] = new Vector(3);\n\t\t\tboxVerts[5].setElements(new double[] {maxX, maxY, minZ});\n\t\t\tboxVerts[6] = new Vector(3);\n\t\t\tboxVerts[6].setElements(new double[] {minX, maxY, maxZ});\n\t\t\tboxVerts[7] = new Vector(3);\n\t\t\tboxVerts[7].setElements(new double[] {maxX, maxY, maxZ});\n\t\t\tthis.boxVerts = boxVerts;\n\t\t} else {\n\t\t\tthis.boxVerts = null;\n\t\t}\n\t}", "public java.util.List<org.landxml.schema.landXML11.VolumeDocument.Volume> getVolumeList()\r\n {\r\n final class VolumeList extends java.util.AbstractList<org.landxml.schema.landXML11.VolumeDocument.Volume>\r\n {\r\n public org.landxml.schema.landXML11.VolumeDocument.Volume get(int i)\r\n { return IntersectionImpl.this.getVolumeArray(i); }\r\n \r\n public org.landxml.schema.landXML11.VolumeDocument.Volume set(int i, org.landxml.schema.landXML11.VolumeDocument.Volume o)\r\n {\r\n org.landxml.schema.landXML11.VolumeDocument.Volume old = IntersectionImpl.this.getVolumeArray(i);\r\n IntersectionImpl.this.setVolumeArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.VolumeDocument.Volume o)\r\n { IntersectionImpl.this.insertNewVolume(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.VolumeDocument.Volume remove(int i)\r\n {\r\n org.landxml.schema.landXML11.VolumeDocument.Volume old = IntersectionImpl.this.getVolumeArray(i);\r\n IntersectionImpl.this.removeVolume(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return IntersectionImpl.this.sizeOfVolumeArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new VolumeList();\r\n }\r\n }", "private void CreatingBeautyContentTopK() {\n\t\t\tConstraintsPlacement objConstraints= new ConstraintsPlacement(this);\r\n\t\t\t//Creating array with states\r\n\t\t\tArrayList<BlockNode> states = new ArrayList<BlockNode>();\r\n\t\t\t//Building the graph in a deph way\r\n\t \tGraphBuilder objGrapB= new GraphBuilder(1);\r\n\t \tint numElements=objElem.getNumberObjects();\r\n\t \tint numEnemies=objElem.getNumberObjectsEnemies();\r\n\t \tint globalControlSearch=0;\r\n\t \t//Beststates=objGrapB.basicDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem);\r\n\t \tbestBranches=objGrapB.relativePositionDepthSearchTopK(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+1,mediumStraight-1,floorTileHeight,0,0,maxScreens,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.relativeTransPositionDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+1,mediumStraight-1,floorTileHeight,0,0,currentState,hTable);\r\n\t \r\n\t \tBranch objBranch=new Branch();\r\n\t \t//bestBranches=objBranch.sortBranches(bestBranches);\r\n\t \t\r\n\t \t//System.out.print( \"CounterStates\"+objGrapB.getCounterIDs() );\r\n\t \r\n\t //imprimiendo los estados visitados\r\n\t /*\r\n\t Iterator<BlockNode> nombreIterator = states.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \tSystem.out.print(elemento.getID()+\" / \");\r\n\t }*/\r\n\t \r\n\t //here we are painting as the best branches foundeded\r\n\t \r\n\t Iterator<Branch> nombreIterator = bestBranches.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBranch elemento = nombreIterator.next();\r\n\t \t//System.out.print(elemento.getHeuristicValue()+ \" / \");\r\n\t }\r\n\t \r\n\t \r\n\t //Here we will put the elements on the tile\r\n\t \t//Just here to implement the n screens!\r\n\t for(int i=0;i<maxScreens;i++)\r\n\t {//block from Lelis and Reis (>class GeradorDeFasses)\r\n/*\t \ttry {\r\n\t \t\tLevel levelScreen=PaintElements(((Branch)bestBranches.get(i)).getStates(),this.clone());\t\t\t\t\t\r\n\t\t\t\t\tScreen objScreen=new Screen();\r\n\t\t\t\t\tobjScreen.SaveScreen(levelScreen,odds,objElem);\r\n\t \t\tInformacoesTelas info = new InformacoesTelas();\r\n\t\t\t CopiaArquivos copiador = new CopiaArquivos();\r\n\t\t\t \r\n\t\t\t info = info.carregaInfoTela(\"infoTela\");\r\n\t\t\t\t\tinfo.setOutrasVariaveis(0, 0); // Salva outras informacoes da Tela\r\n\t\t\t\t\tinfo.salvaInfoTela(\"infoTela\", info);\t\t\t\t\t\r\n\t\t\t\t\tcopiador.copy(\"\" + i, \"Screens/\");\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (CloneNotSupportedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}*/\r\n\t }\r\n\t \r\n\t\t\t\r\n\t\t}", "private Tree<NodeView> generateRectangleTree(final float centerX, final float topY, final Tree<?> tree, int level, final Paint paint, final ExportOptions options) {\n\n //Calculate text bounds\n final String text = tree.getValue().toString();\n paint.setStyle(Paint.Style.FILL);\n paint.setTextSize(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, options.itemTextSize, getResources().getDisplayMetrics()));\n final Rect bounds = getStringBounds(text, paint);\n\n final float left = bounds.left;\n final float bottom = bounds.bottom;\n\n bounds.offset(((int) centerX - (bounds.width() / 2)), ((int) (topY - bounds.top + 1 + paddingTop)));\n\n final int height = bounds.height();\n final float stringHeight = getStringHeight(paint);\n\n final float textX = bounds.left - left;\n final float textY = bounds.bottom - bottom + 1 + ((stringHeight - height) / 2);\n\n final Tree<NodeView> itemTree = new Tree<>(new NodeView(text, bounds, textX, textY));\n\n //Apply padding\n bounds.left -= paddingLeft;\n bounds.top -= paddingTop;\n bounds.right += paddingRight;\n bounds.bottom += paddingBottom + (stringHeight - height);\n\n if (tree.getChildren().size() > 0) {\n float totalWidth = 0;\n float[] sizes = new float[tree.getChildren().size()];\n for (int i = 0; i < tree.getChildren().size(); i++) {\n sizes[i] = getStringWidth(tree.getChildren().get(i).getValue().toString(), paint);\n totalWidth += sizes[i];\n }\n final float totalSpacing = tree.getChildren().size() > 0 ? (tree.getChildren().size() - 1) * horizontalSpacing[level + 1] : 0;\n\n float previousOffset = 0;\n for (int i = 0; i < tree.getChildren().size(); i++) {\n final float offset = previousOffset + (sizes[i] / 2);\n itemTree.addNode(generateRectangleTree(centerX - ((totalWidth + totalSpacing) / 2) + offset, topY + bounds.height()/*+ getStringHeight(paint)*/ /*+ paddingTop + paddingBottom*/ + options.verticalSpacing, tree.getChildren().get(i), level + 1, paint, options));\n previousOffset = offset + (sizes[i] / 2) + horizontalSpacing[level + 1];\n }\n }\n\n return itemTree;\n }", "private void buildComboBox() {\r\n\r\n comboBoxKernelOpen = new JComboBox();\r\n comboBoxKernelOpen.setFont(serif12);\r\n comboBoxKernelOpen.setBackground(Color.white);\r\n\r\n if (image.getNDims() == 2) {\r\n comboBoxKernelOpen.addItem(\"3x3 - 4 connected\");\r\n comboBoxKernelOpen.addItem(\"5x5 - 12 connected\");\r\n comboBoxKernelOpen.addItem(\"User sized circle.\");\r\n comboBoxKernelOpen.setSelectedIndex(2);\r\n } else if (image.getNDims() == 3) {\r\n comboBoxKernelOpen.addItem(\"3x3x3 - 6 connected (2.5D: 4)\");\r\n comboBoxKernelOpen.addItem(\"5x5x5 - 24 connected (2.5D: 12)\");\r\n comboBoxKernelOpen.addItem(\"User sized sphere.\");\r\n }\r\n }", "private void createGWBuildings()\n\t{\n\t\t//Generate block 0 (50x50)\n\t\t//(7,7)-(57,57)\n\t\tmakeBlocker0();\n\n\t\t//Generate block 1 (50x50)\n\t\t//(64,7)-(114,57)\n\t\tmakeSEH();\n\t\tmakeFullBright();\n\t\tmakeKennedy();\n\t\tmakeMunson();\n\n\t\t//Generate block 2 (80x50)\n\t\t//(121,7)-(201,57)\n\t\tmakeAcademicCenter();\n\t\tmakeRomePhilips();\n\t\tmakeDistrict();\n\t\tmakeMarvin();\n\t\tmakeLafayette();\n\n\t\t//Generate block 3 (65x50)\n\t\t//(208,7)-(273,57)\n\t\tmake2000Penn();\n\t\tmakeSMPA();\n\t\tmakeBlocker3();\n\n\t\t//Generate block 4 (63x50)\n\t\t//(280,7)-(343,57)\n\t\tmakeBlocker4();\n\n\t\t//Generate block 5 (50x60)\n\t\t//(7,64)-(57,124)\n\t\tmakeAmsterdam();\n\t\tmakeHealWell();\n\t\tmakeBlocker5();\n\n\t\t//Generate block 6 (50x60)\n\t\t//(64,64)-(114,124)\n\t\tmakeTompkins();\n\t\tmakeMadison();\n\t\tmakeDuquesAndFunger();\n\n\t\t//Generate block 7 (80x60)\n\t\t//(121,64)-(201,124)\n\t\tmakeGelman();\n\t\tmakeLisner();\n\t\tmakeStaughton();\n\t\tmakeMonroe();\n\n\t\t//Generate block 8 (65x60)\n\t\t//(208,64)-(273,124)\n\t\tmakeCorcoran();\n\t\tmakeLawSchool();\n\t\tmakeLisnerHall();\n\t\tmakeTextileMuseum();\n\n\t\t//Generate block 9 (63x60)\n\t\t//(280,64)-(343,124)\n\t\tmakeBlocker9();\n\n\t\t//Generate block 10 (50x50)\n\t\t//(7,131)-(57,181)\n\t\tmakeShenkman();\n\t\tmakeBlocker10();\n\n\t\t//Generate block 11 (50x50)\n\t\t//(64,131)-(114,181)\n\t\tmakeTownHouses();\n\t\tmakeSmithCenter();\n\n\t\t//Generate block 12 (80x50)\n\t\t//(121,131)-(201,181)\n\t\tmakeSouthHall();\n\t\tmakeGuthridge();\n\t\tmakeBlocker12();\n\n\t\t//Generate block 13 (65x50)\n\t\t//(208,131)-(273,181)\n\t\tmakeBlocker13();\n\t\tmakeFSK();\n\t\tmakePatomac();\n\n\t\t//Generate block 14 (63x50)\n\t\t//(280,131)-(343,181)\n\t\tmakeBlocker14();\n\n\t\t//Generate block 15 (50x57)\n\t\t//(7,188)-(57,245)\n\t\tmakeBlocker15();\n\n\t\t//Generate block 16 (50x57)\n\t\t//(64,188)-(114,245)\n\t\tmakeIHouse();\n\t\tmakeBlocker16();\n\n\t\t//Generate block 17 (80x57)\n\t\t//(121,188)-(201,245)\n\t\tmakeBlocker17();\n\t\tmakeDakota();\n\n\t\t//Generate block 18 (65x57)\n\t\t//(208,188)-(273,245)\n\t\tmakeBlocker18();\n\n\t\t//Generate block 19 (63x57)\n\t\t//(280,188)-(343,245)\n\t\tmakeBlocker19();\n\t\tmakeElliot();\n\t\tmakeThurston();\n\t}", "@Override\n public Object build() {\n return this.getChildren().stream()\n .map(child -> (org.opensearch.search.aggregations.AbstractAggregationBuilder) child.build()).collect(Collectors.toList());\n }", "private BranchGroup getScene(){\n BranchGroup scene = new BranchGroup();\r\n\r\n // transformgroup zawierający robota oraz podłoże\r\n world = new TransformGroup();\r\n world.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\r\n world.setCapability(TransformGroup.ALLOW_CHILDREN_EXTEND);\r\n world.setCapability(TransformGroup.ALLOW_CHILDREN_READ);\r\n world.setCapability(TransformGroup.ALLOW_CHILDREN_WRITE);\r\n TransformGroup robotTg;\r\n\r\n // nasz robot pobrany z klasy Robot\r\n robotTg = robot.getGroup();\r\n robotTg.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\r\n world.addChild(robotTg);\r\n\r\n // tworzenie scian\r\n float szerokoscScian = 10f;\r\n makeWalls(szerokoscScian);\r\n\r\n // tworzenie podłoża\r\n TransformGroup ground = new TransformGroup();\r\n Shape3D gr = new MyShapes().makeGround(new Point3f(szerokoscScian, 0f, szerokoscScian),\r\n new Point3f(szerokoscScian, 0f, -szerokoscScian), new Point3f(-szerokoscScian, 0f, -szerokoscScian),\r\n new Point3f(-szerokoscScian, 0f, szerokoscScian));\r\n gr.setUserData(new String(\"ground\"));\r\n Appearance appGround = new Appearance();\r\n appGround.setTexture(createTexture(\"grafika/floor.jpg\"));\r\n gr.setAppearance(appGround);\r\n\r\n // detekcja kolizji dla ziemi\r\n CollisionDetector collisionGround = new CollisionDetector(gr, new BoundingSphere(), this, robot);\r\n ground.addChild(gr);\r\n world.addChild(collisionGround);\r\n world.addChild(ground);\r\n\r\n // światła\r\n Color3f light1Color = new Color3f(1.0f, 1.0f, 1.0f);\r\n Vector3f light1Direction = new Vector3f(4.0f, -7.0f, -12.0f);\r\n BoundingSphere bounds = new BoundingSphere(new Point3d(0.0, 0.0, 0.0), 100.0);\r\n\r\n DirectionalLight light1 = new DirectionalLight(light1Color, light1Direction);\r\n light1.setInfluencingBounds(bounds);\r\n scene.addChild(light1);\r\n\r\n // obiekt do podnoszenia\r\n object = new Sphere(0.15f, robot.createAppearance(new Color3f(Color.ORANGE)));\r\n object.getShape().setUserData(new String(\"object\"));\r\n objectTransform = new Transform3D();\r\n objectTransform.setTranslation(objPos);\r\n objectTg = new TransformGroup(objectTransform);\r\n objectTg.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\r\n objectTg.addChild(object);\r\n objectGroup = new BranchGroup();\r\n objectGroup.setCapability(BranchGroup.ALLOW_DETACH);\r\n objectGroup.addChild(objectTg);\r\n world.addChild(objectGroup);\r\n\r\n // klasa behavior która służy do obsługiwania klawiatury\r\n Moving moving = new Moving(robot);\r\n moving.setSchedulingBounds(bounds);\r\n world.addChild(moving);\r\n\r\n // klasa behavior która odświeża się 60 razy na sekundę i odpowiada ona np. za nagrywanie, odtworzenie nagrania\r\n // symulowanie grawitacji\r\n loop = new GameLoop(this, robot);\r\n loop.setSchedulingBounds(bounds);\r\n world.addChild(loop);\r\n\r\n // detekcja kolizji dla obiektu\r\n CollisionDetector collisionObject = new CollisionDetector(object.getShape(), new BoundingSphere(new Point3d(), 0.15), this, robot);\r\n world.addChild(collisionObject);\r\n\r\n scene.addChild(world);\r\n\r\n scene.compile();\r\n return scene;\r\n }", "@Override\n\tpublic AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) \n\t{\n\t\treturn BOUNDING_BOX;\n\t}", "public static ContainerBoundary prepare() {\n return new ContainerBoundary();\n }", "public abstract Node getBoundingNode();", "static void createCubes(double width, double height) {\n \t\r\n \tmaxY=f(startingBound);\r\n \tmaxX=startingBound;\r\n \t\r\n \t//need a function to find the max\r\n \tfor(double i=startingBound; i<=endingBound; i=i+dx) {\r\n \t\tif(f(i)>maxY)\r\n \t\t\tmaxY=f(i);\r\n \t\t\r\n \t\tif(i>maxX)\r\n \t\t\tmaxX=i;\r\n \t}\r\n \tdouble size=height/2-100;\r\n \tSystem.out.println(size);\r\n \tscaleY=maxY/(size);\r\n \tscaleX=(width-100)/maxX;\r\n \t\r\n \tfor(double x=startingBound; x<=endingBound; x=x+dx) {\r\n \t\t//System.out.println(x+\", \"+f(x));\r\n \t\tcubes.add(new Cube(x*scaleX, -f(x)/scaleY, 0, f(x)/scaleY, dx*scaleX));\r\n \t\t//cubes.add(new Cube(x, 100, 0, 100, 100));\r\n \t}\r\n \t\r\n \t\r\n }", "public void createMinimap() {\n if (gameField.getFields().size() == 1024) {\n rootSize = 32;\n blockSize = 8;\n } else { //if size == 64^2 == 4096\n rootSize = 64;\n blockSize = 4;\n }\n int magnification = gameFieldController.getMagnification();\n if (AdvancedWarsApplication.getInstance().getGameScreenCon().base.getScene() != null) {\n positionBoxSizeX = blockSize *\n (AdvancedWarsApplication.getInstance().getGameScreenCon().base.getScene().getWidth() / (rootSize * magnification));\n\n positionBoxSizeY = blockSize *\n (AdvancedWarsApplication.getInstance().getGameScreenCon().base.getScene().getHeight() / (rootSize * magnification));\n } else {\n //for offline test\n positionBoxSizeX = (blockSize * 1920) / (rootSize * magnification);\n positionBoxSizeY = (blockSize * 1080) / (rootSize * magnification);\n }\n\n for (int i = 0; i < rootSize; ++i) {\n for (int j = 0; j < rootSize; ++j) {\n Field currentField = gameField.getFields().get(i * rootSize + j);\n Rectangle rectangle = new Rectangle(blockSize, blockSize);\n if (!currentField.getType().equals(\"Grass\")) {\n if (currentField.getType().equals(\"Water\")) {\n rectangle.setFill(Color.rgb(11, 89, 139));\n } else if (currentField.getType().equals(\"Forest\")) {\n rectangle.setFill(Color.rgb(38, 106, 0));\n } else { //if currentField equals Mountain\n rectangle.setFill(Color.rgb(95, 111, 54));\n }\n rectangle.relocate((i * blockSize) + 1, (j * blockSize) + 1);\n drawPane.getChildren().add(rectangle);\n }\n }\n }\n Rectangle rect = new Rectangle(positionBoxSizeX, positionBoxSizeY);\n Rectangle clip = new Rectangle(1, 1, positionBoxSizeX - 2, positionBoxSizeY - 2);\n positionBox = Shape.subtract(rect, clip);\n positionBox.setFill(Color.WHITE);\n drawPane.getChildren().add(positionBox);\n isCreated = true;\n }", "private List<BaseLocation> getExpectedBaseLocations() {\r\n final List<BaseLocation> baseLocations = new ArrayList<>();\r\n\r\n final Position position1 = new Position(3104, 3856, PIXEL);\r\n final Position center1 = new Position(3040, 3808, PIXEL);\r\n baseLocations.add(new BaseLocation(position1, center1, 13500, 5000, true, false, true));\r\n\r\n final Position position2 = new Position(2208, 3632, PIXEL);\r\n final Position center2 = new Position(2144, 3584, PIXEL);\r\n baseLocations.add(new BaseLocation(position2, center2, 9000, 5000, true, false, false));\r\n\r\n final Position position3 = new Position(640, 3280, PIXEL);\r\n final Position center3 = new Position(576, 3232, PIXEL);\r\n baseLocations.add(new BaseLocation(position3, center3, 13500, 5000, true, false, true));\r\n\r\n final Position position4 = new Position(2688, 2992, PIXEL);\r\n final Position center4 = new Position(2624, 2944, PIXEL);\r\n baseLocations.add(new BaseLocation(position4, center4, 9000, 5000, true, false, false));\r\n\r\n final Position position5 = new Position(1792, 2480, PIXEL);\r\n final Position center5 = new Position(1728, 2432, PIXEL);\r\n baseLocations.add(new BaseLocation(position5, center5, 12000, 0, true, true, false));\r\n\r\n final Position position6 = new Position(3200, 1776, PIXEL);\r\n final Position center6 = new Position(3136, 1728, PIXEL);\r\n baseLocations.add(new BaseLocation(position6, center6, 13500, 5000, true, false, true));\r\n\r\n final Position position7 = new Position(640, 1968, PIXEL);\r\n final Position center7 = new Position(576, 1920, PIXEL);\r\n baseLocations.add(new BaseLocation(position7, center7, 9000, 5000, true, false, false));\r\n\r\n final Position position8 = new Position(1792, 1808, PIXEL);\r\n final Position center8 = new Position(1728, 1760, PIXEL);\r\n baseLocations.add(new BaseLocation(position8, center8, 12000, 0, true, true, false));\r\n\r\n final Position position9 = new Position(2336, 560, PIXEL);\r\n final Position center9 = new Position(2272, 512, PIXEL);\r\n baseLocations.add(new BaseLocation(position9, center9, 13500, 5000, true, false, true));\r\n\r\n final Position position10 = new Position(3584, 720, PIXEL);\r\n final Position center10 = new Position(3520, 672, PIXEL);\r\n baseLocations.add(new BaseLocation(position10, center10, 9000, 5000, true, false, false));\r\n\r\n final Position position11 = new Position(544, 432, PIXEL);\r\n final Position center11 = new Position(480, 384, PIXEL);\r\n baseLocations.add(new BaseLocation(position11, center11, 13500, 5000, true, false, true));\r\n\r\n return baseLocations;\r\n }", "private void getTreeShape() {\n int treeSizeInBytes = (int) (Math.ceil(treeSize / (double) Byte.SIZE));\n // converting tree shape in bytes to the bitset;\n BitSet bs = BitSet.valueOf(Arrays.copyOfRange(buffer.array(), bufferPosition, bufferPosition + treeSizeInBytes));\n bufferPosition += treeSizeInBytes;\n\n int treeLeavesAmount = 0;\n for (int i = 0; i < treeSize; i++) {\n boolean bit = bs.get(i);\n if (!bit) {\n treeLeavesAmount += 1;\n }\n treeShape.add(bit);\n }\n\n // adding tree leaves to the linked list;\n for (int i = bufferPosition; i < bufferPosition + treeLeavesAmount; i++) {\n treeLeaves.add(buffer.get(i));\n }\n // increasing buffer position for the amount of leaves(unique bytes);\n bufferPosition = bufferPosition + treeLeavesAmount;\n }", "private void buildRack() {\n char[] alphabet = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\n for (char c : alphabet) {\n rack.add(new LetterTile(c,\n IMAGE_DIRECTORY,\n IMAGE_TYPE));\n }\n }", "public double calcFrustumVolume(final double downBaseRadius,\n final double upBaseRadius,\n final double frustumHeight) {\n\n return ((1.0 / 3.0) * Math.PI * frustumHeight * (Math.pow(downBaseRadius, 2)\n + downBaseRadius * upBaseRadius + Math.pow(upBaseRadius, 2)));\n }", "private CategoryView buildComplicatedExpectedTree() {\n\n CategoryView root = new CategoryView(\"ROOT\");\n CategoryView a = new CategoryView(\"a\");\n CategoryView b = new CategoryView(\"b\");\n CategoryView c = new CategoryView(\"c\");\n CategoryView d = new CategoryView(\"d\");\n CategoryView e = new CategoryView(\"e\");\n\n root.addChild(a);\n root.addChild(e);\n root.addChild(new CategoryView(\"f\"));\n root.addChild(new CategoryView(\"g\"));\n root.addChild(new CategoryView(\"z\"));\n a.addChild(b);\n b.addChild(c);\n a.addChild(c);\n c.addChild(d);\n d.addChild(e);\n c.addChild(e);\n\n root.addChild(new CategoryView(\"1\") {{\n addChild(new CategoryView(\"2\") {{\n addChild(new CategoryView(\"3\"));\n }});\n }});\n root.addChild(new CategoryView(\"x\") {{\n addChild(new CategoryView(\"y\"));\n }});\n\n return root;\n }", "public Position.PositionList buildSegment() {\n List<Position> positions = new ArrayList<>(3);\n\n // determine the middle point of the descending segment\n Position middlePos;\n if (startPoint.getElevation() > endPoint.getElevation()) {\n middlePos = new Position(\n Position.interpolateGreatCircle(1 - PATH_INTERPOLATE_AMOUNT, startPoint, endPoint), startPoint.getElevation());\n } else {\n middlePos = new Position(\n Position.interpolateGreatCircle(PATH_INTERPOLATE_AMOUNT, startPoint, endPoint), endPoint.getElevation());\n }\n\n // add the last points\n positions.add(middlePos);\n positions.add(endPoint);\n\n return new Position.PositionList(positions);\n }", "@Override\n public void updateConvexHull() {\n BuildingModel buildingModel;\n convexHull = new CompositeConvexHull();\n convexObject.setConvexPolygon(convexHull.getConvexPolygon());\n if (convexObject != null && convexObject.getConvexPolygon() != null && convexObject.getConvexPolygon().npoints != 0) {\n for (int i = 0; i < convexObject.getConvexPolygon().npoints; i++) {\n convexHull.addPoint(convexObject.getConvexPolygon().xpoints[i],\n convexObject.getConvexPolygon().ypoints[i]);\n }\n }\n\n for (StandardEntity entity : entities) {\n if (entity instanceof Building) {\n buildingModel = world.getBuildingModel(entity.getID());\n\n /*if (isDying && building.getEstimatedFieryness() > 0 && building.getEstimatedFieryness() < 3) {\n setDying(false);\n }*/\n\n if (isEdge && !world.getMapSideBuildings().contains(buildingModel.getID())) {\n setEdge(false);\n }\n\n //try {\n// if (membershipChecker.checkMembership(building)) {\n// convexHull.addPoint(building.getSelfBuilding().getX(),\n// building.getSelfBuilding().getY());\n for (int i = 0; i < buildingModel.getSelfBuilding().getApexList().length; i += 2) {\n convexHull.addPoint(buildingModel.getSelfBuilding().getApexList()[i], buildingModel.getSelfBuilding().getApexList()[i + 1]);\n }\n\n// }\n /*} catch (Exception e) {\n e.printStackTrace();\n }*/\n }\n }\n\n\n// sizeOfBuildings(); mostafas commented this\n //if (world.getTime() % 5 == 0) {\n List<BuildingModel> dangerBuildings = new ArrayList<BuildingModel>();\n double clusterEnergy = 0;\n for (StandardEntity entity : getEntities()) {\n BuildingModel burningBuilding = world.getBuildingModel(entity.getID());\n if (burningBuilding.getEstimatedFieryness() == 1) {\n dangerBuildings.add(burningBuilding);\n clusterEnergy += burningBuilding.getEnergy();\n }\n if (burningBuilding.getEstimatedFieryness() == 2) {\n dangerBuildings.add(burningBuilding);\n clusterEnergy += burningBuilding.getEnergy();\n }\n if (burningBuilding.getEstimatedFieryness() == 3 && burningBuilding.getEstimatedTemperature() > 150) {\n dangerBuildings.add(burningBuilding);\n }\n }\n\n setDying(dangerBuildings.isEmpty());\n setControllable(clusterEnergy);\n buildings = dangerBuildings;\n //}\n convexObject.setConvexPolygon(convexHull.getConvexPolygon());\n setBorderEntities();\n setCentre();\n// sizeOfBuildings();\n// setTotalDistance();\n\n setOuterDangerBuildings(); //XXX test\n setOuterBuildings();\n }", "public ReferencedEnvelope getBounds(){\n if(bounds==null){\n // Create Null envelope\n this.bounds = new ReferencedEnvelope(getCRS());\n // First try to find the BBOX definition in the gisNode directly\n try{\n if(gisNode.hasProperty(INeoConstants.PROPERTY_BBOX_NAME)){\n double[] bbox = (double[])gisNode.getProperty(INeoConstants.PROPERTY_BBOX_NAME);\n this.bounds = new ReferencedEnvelope(bbox[0],bbox[1],bbox[2],bbox[3],crs);\n }else{\n System.err.println(\"No BBox defined in the GeoNeo object\");\n }\n }catch(Exception bbox_e){\n System.err.println(\"Failed to interpret BBOX: \"+bbox_e.getMessage());\n bbox_e.printStackTrace(System.err);\n }\n // Secondly, if bounds is still empty, try find all feature geometries and calculate bounds\n try{\n if(this.bounds.isNull()){\n // Try to create envelope from any data referenced by the gisNode\n for(GeoNode node:getGeoNodes()){\n //TODO: support high dimensions\n this.bounds.expandToInclude(node.getCoords()[0], node.getCoords()[1]);\n }\n }\n }catch(Exception bbox_e){\n System.err.println(\"Failed to interpret BBOX: \"+bbox_e.getMessage());\n bbox_e.printStackTrace(System.err);\n }\n }\n return bounds;\n }", "Subdivision create(Subdivision subdivision);", "public com.google.protobuf.UInt64Value.Builder getBoundingBoxesCountBuilder() {\n \n onChanged();\n return getBoundingBoxesCountFieldBuilder().getBuilder();\n }", "private void addBoundingWalls() {\n\t\taddWall(new Line(new Vector2(0,0),new Vector2(getWidth(),0)));\n\t\taddWall(new Line(new Vector2(getWidth(),0), new Vector2(getWidth(),getHeight())));\n\t\taddWall(new Line(new Vector2(getWidth(),getHeight()),new Vector2(0,getHeight())));\n\t\taddWall(new Line(new Vector2(0,getHeight()),new Vector2(0,0)));\n\t}", "public BranchGroup cubo1(){\n\t\t\tBranchGroup objRoot = new BranchGroup();\n\n\t TransformGroup objScale = new TransformGroup();\n\t Transform3D t3d = new Transform3D();\n\t Transform3D rotate = new Transform3D();\n Transform3D tempRotate = new Transform3D();\n\t \t rotate.rotX(Math.PI/1.0d);\n tempRotate.rotY(Math.PI/1.80d);\n Matrix3d n = new Matrix3d();\n Vector3d op = new Vector3d(.5,.05,.5);\n tempRotate.setScale(op);\n Vector3d op2 = new Vector3d(-.5,.6,1);\n tempRotate.setTranslation(op2);\n rotate.mul(tempRotate);\n TransformGroup objRotate = new TransformGroup(rotate);\n\n objRoot.addChild(objRotate);\n\t \n t3d.mul(rotate);\n\t objScale.setTransform(t3d);\n\t \n\t objRoot.addChild(objScale);\n\n\tTransformGroup objTrans = new TransformGroup();\n\t\tobjTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\n\t\tobjTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);\n\t\t\t\t\t\n\t\t\n\t\tobjScale.addChild(objTrans);\n\n\t\tint flags = ObjectFile.RESIZE;\n\t\tif (!noTriangulate) flags |= ObjectFile.TRIANGULATE;\n\t\tif (!noStripify) flags |= ObjectFile.STRIPIFY;\n\t\tObjectFile f = new ObjectFile(flags, \n\t\t (float)(creaseAngle * Math.PI / 180.0));\n\t\tScene s = null;\n\t\ttry {\n\t\t s = f.load(filename);\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\tcatch (ParsingErrorException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\tcatch (IncorrectFormatException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\t \n\t\tobjTrans.addChild(s.getSceneGroup());\n\t\t\n \n \n\t\tBoundingSphere bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);\n\n\t Color3f bgColor = new Color3f(0.05f, 0.05f, 0.5f);\n\t Background bgNode = new Background(bgColor);\n\t bgNode.setApplicationBounds(bounds);\n\t objRoot.addChild(bgNode);\n\n\t\treturn objRoot;\n\t\t \n\t }", "public void calculateWindow()\n {\n Vector2 windowBottomLeftBounds = new Vector2(1000000, 1000000);\n Vector2 windowTopRightBounds = new Vector2(-1000000, -1000000);\n for (Element<?> e : children())\n {\n if (e.id() != null && (e.id().startsWith(id() + \"hBar\") || e.id().startsWith(id() + \"vBar\")))\n {\n continue;\n }\n for (Element<?> child : e)\n {\n Vector2 alignmentVector = child.alignment().alignmentVector();\n Vector2 bottomLeftBounds = new Vector2(child.x() - (alignmentVector.x * child.width()), child.y()\n - (alignmentVector.y * child.height()));\n Vector2 topRightBounds = new Vector2(bottomLeftBounds.x + child.width(), bottomLeftBounds.y + child.height());\n // left\n if (windowBottomLeftBounds.x > bottomLeftBounds.x)\n {\n windowBottomLeftBounds.x = bottomLeftBounds.x;\n }\n // bottom\n if (windowBottomLeftBounds.y > bottomLeftBounds.y)\n {\n windowBottomLeftBounds.y = bottomLeftBounds.y;\n }\n // right\n if (windowTopRightBounds.x < topRightBounds.x)\n {\n windowTopRightBounds.x = topRightBounds.x;\n }\n // top\n if (windowTopRightBounds.y < topRightBounds.y)\n {\n windowTopRightBounds.y = topRightBounds.y;\n }\n }\n }\n \n content = new CRectangle(windowBottomLeftBounds.x, windowBottomLeftBounds.y, windowTopRightBounds.x - windowBottomLeftBounds.x,\n windowTopRightBounds.y - windowBottomLeftBounds.y);\n content.origin = new Vector2(0, 0);\n \n calculateScrollSize();\n }", "public static BsonDocument createPartitionBounds(final BsonValue lower, final BsonValue upper) {\n BsonDocument partitionBoundary = new BsonDocument();\n if (lower.getBsonType() != BsonType.MIN_KEY) {\n partitionBoundary.append(\"$gte\", lower);\n }\n if (upper.getBsonType() != BsonType.MAX_KEY) {\n partitionBoundary.append(\"$lt\", upper);\n }\n return partitionBoundary;\n }", "private void init() {\r\n setForeground(Color.black);\r\n setTitle(\"Evolve Boundary\");\r\n\r\n JPanel scalePanel = new JPanel(new GridLayout(4, 2));\r\n scalePanel.setForeground(Color.black);\r\n scalePanel.setBorder(buildTitledBorder(\"Contour Change\"));\r\n\r\n int[] aiUnits = image.getUnitsOfMeasure();\r\n JLabel labelChangeX = new JLabel(\"Enter size change in \" + FileInfoBase.getUnitsOfMeasureAbbrevStr(aiUnits[0]) + \" units \");\r\n labelChangeX.setForeground(Color.black);\r\n labelChangeX.setFont(serif12);\r\n scalePanel.add(labelChangeX);\r\n\r\n textChangeX = new JTextField();\r\n textChangeX.setText(\"2.0\");\r\n textChangeX.setFont(serif12);\r\n scalePanel.add(textChangeX);\r\n \r\n JLabel labelBoundaryDir = new JLabel(\"Move boundary \"); // make & set a label\r\n labelBoundaryDir.setForeground(Color.black);\r\n labelBoundaryDir.setFont(serif12);\r\n scalePanel.add(labelBoundaryDir); // add kernel label\r\n\r\n boundaryDirBox = new JComboBox();\r\n boundaryDirBox.setFont(serif12);\r\n boundaryDirBox.setBackground(Color.white);\r\n boundaryDirBox.addItem(\"Outward\");\r\n boundaryDirBox.addItem(\"Inward\");\r\n scalePanel.add(boundaryDirBox);\r\n\r\n //JPanel imageVOIPanel = new JPanel(new GridLayout(1, 1));\r\n //imageVOIPanel.setForeground(Color.black);\r\n //imageVOIPanel.setBorder(buildTitledBorder(\"Evolve Boundary\"));\r\n\r\n //ButtonGroup imageVOIGroup = new ButtonGroup();\r\n //singleSlice = new JRadioButton(\"Single slice\", true);\r\n //singleSlice.setFont(serif12);\r\n //imageVOIGroup.add(singleSlice);\r\n //imageVOIPanel.add(singleSlice);\r\n\r\n removeOriginalCheckBox = new JCheckBox(\"Replace Original Contour\");\r\n removeOriginalCheckBox.setFont(serif12);\r\n removeOriginalCheckBox.setForeground(Color.black);\r\n removeOriginalCheckBox.setSelected(false);\r\n scalePanel.add(removeOriginalCheckBox);\r\n\r\n\r\n JPanel mainPanel = new JPanel(new GridBagLayout());\r\n mainPanel.setBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3));\r\n\r\n GridBagConstraints gbc = new GridBagConstraints();\r\n gbc.gridwidth = 1;\r\n gbc.gridheight = 1;\r\n gbc.anchor = GridBagConstraints.WEST;\r\n gbc.weightx = 1;\r\n gbc.insets = new Insets(3, 3, 3, 3);\r\n gbc.gridx = 0;\r\n gbc.gridy = 0;\r\n gbc.fill = GridBagConstraints.HORIZONTAL;\r\n mainPanel.add(scalePanel, gbc);\r\n //gbc.gridy++;\r\n //mainPanel.add(imageVOIPanel, gbc);\r\n\r\n JPanel buttonPanel = new JPanel();\r\n buildOKButton();\r\n buttonPanel.add(OKButton);\r\n buildCancelButton();\r\n buttonPanel.add(cancelButton);\r\n buildHelpButton();\r\n buttonPanel.add(helpButton);\r\n\r\n getContentPane().add(mainPanel, BorderLayout.CENTER);\r\n getContentPane().add(buttonPanel, BorderLayout.SOUTH);\r\n pack();\r\n setVisible(true);\r\n }", "@Override\n\tpublic void calcularVolume() {\n\t\t\n\t}" ]
[ "0.5906211", "0.5777728", "0.55024046", "0.5419506", "0.5309491", "0.5269361", "0.5182404", "0.51485944", "0.5146543", "0.51367384", "0.51203626", "0.51047164", "0.5079746", "0.507704", "0.50628036", "0.5017881", "0.5012251", "0.49580014", "0.494851", "0.4933143", "0.49312788", "0.49147516", "0.49086574", "0.49076292", "0.4872546", "0.48703513", "0.48642197", "0.4855248", "0.48537952", "0.48489594", "0.483905", "0.48355561", "0.48105946", "0.4797785", "0.47951376", "0.47767267", "0.4764795", "0.47590202", "0.47550523", "0.47512677", "0.474518", "0.47276238", "0.47237772", "0.46978483", "0.46970412", "0.4690389", "0.46883386", "0.46678555", "0.4664609", "0.4658139", "0.46474028", "0.4633174", "0.46324393", "0.46269545", "0.4621831", "0.4611689", "0.4609777", "0.46037236", "0.46014404", "0.45994008", "0.45955282", "0.45839453", "0.45702487", "0.45570454", "0.45513782", "0.4545464", "0.45420122", "0.4540154", "0.45387515", "0.45381054", "0.45306814", "0.45227578", "0.45204088", "0.45125926", "0.45107067", "0.45078772", "0.45037678", "0.4503374", "0.4500638", "0.44939417", "0.4493106", "0.44871926", "0.44854054", "0.44762045", "0.44761434", "0.44714972", "0.44695222", "0.44658676", "0.44525737", "0.44503322", "0.44451794", "0.44436207", "0.44415006", "0.443226", "0.44318745", "0.44306245", "0.44267052", "0.44237202", "0.44204792", "0.4420026" ]
0.55778295
2
Created by Hubert on 28.06.2017.
public interface CategoryRestService { @GET("/category") Call<List<SimpleCategoryDto>> listAllCategory(); }
{ "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\n public int describeContents() { return 0; }", "@Override\n public void init() {\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 bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void init() {\n }", "@Override\n void init() {\n }", "public final void mo51373a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "private void init() {\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\tprotected void interr() {\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n public void init() {}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void initialize() { \n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "private Rekenhulp()\n\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}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\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() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override public int describeContents() { return 0; }", "@Override\n protected void getExras() {\n }", "private void strin() {\n\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "public void mo38117a() {\n }", "@Override\n public void initialize() {\n \n }", "protected boolean func_70814_o() { return true; }", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n public void memoria() {\n \n }", "public void gored() {\n\t\t\n\t}", "private void init() {\n }", "private void m50366E() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void init() {\n }", "private void init() {\n\n\n\n }" ]
[ "0.576469", "0.57521963", "0.55956924", "0.5491097", "0.5463718", "0.5438003", "0.5436638", "0.5436638", "0.5436638", "0.5436638", "0.5436638", "0.5436638", "0.54122907", "0.54122907", "0.5395286", "0.538752", "0.5375195", "0.53711236", "0.5359462", "0.53546536", "0.53464496", "0.53402567", "0.53402567", "0.53402567", "0.53402567", "0.53402567", "0.533883", "0.5336572", "0.5334995", "0.5334995", "0.532566", "0.53239095", "0.5316479", "0.5315403", "0.5312788", "0.53108454", "0.5301554", "0.52965206", "0.5280439", "0.52721846", "0.5266946", "0.5265273", "0.52494556", "0.52431273", "0.52407104", "0.52407104", "0.52359366", "0.52359366", "0.52359366", "0.5230564", "0.5227816", "0.5226588", "0.5221039", "0.5216211", "0.5216211", "0.5216211", "0.5216098", "0.52117217", "0.52117217", "0.52117217", "0.52094233", "0.52092737", "0.5201019", "0.51925075", "0.51883024", "0.51883024", "0.51883024", "0.5181022", "0.5171892", "0.5171892", "0.5168882", "0.51675785", "0.5167172", "0.5167172", "0.51575935", "0.5148602", "0.5145592", "0.51363516", "0.5131702", "0.5131496", "0.51253414", "0.51127505", "0.5111258", "0.51076055", "0.5104662", "0.51034313", "0.50905305", "0.5087806", "0.50836486", "0.5076165", "0.5076165", "0.5076165", "0.5076165", "0.5076165", "0.5076165", "0.5076165", "0.5076165", "0.5076165", "0.5076165", "0.5073512", "0.50661397" ]
0.0
-1
TODO: Currently modifies the state of the underlying graph, avoid it
public List<V> getTopologicalOrdering() { var result = new ArrayList<V>(); var noIncomingEdgeVertices = getVerticesWithoutIncomingEdge(); while (!noIncomingEdgeVertices.isEmpty()) { V next = noIncomingEdgeVertices.iterator().next(); noIncomingEdgeVertices.remove(next); result.add(next); for (V neighbourVertex : new HashSet<>(getOutgoingAdjacentVertices(next))) { removeEdge(next, neighbourVertex); if (getIncomingAdjacentVertices(neighbourVertex).isEmpty()) { noIncomingEdgeVertices.add(neighbourVertex); } } } if (edges.values().stream().mapToLong(Collection::size).sum() != 0L) { throw new IllegalStateException("Cyclic dependency!"); // TODO: Error message to state what is causing cyclic dependency } else { return result; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buildGraph(){\n\t}", "@Override\n public Graph getGraph() {\n return graph;\n }", "public void buildGraph() {\n //System.err.println(\"Build Graph \"+this);\n if (node instanceof eu.mihosoft.ext.j3d.com.sun.j3d.scenegraph.io.SceneGraphIO)\n ((eu.mihosoft.ext.j3d.com.sun.j3d.scenegraph.io.SceneGraphIO)node).restoreSceneGraphObjectReferences( control.getSymbolTable() );\n }", "public void updateGraph(){\n\t\tgraph.update(updatePopulations(), iteration);\n\t\titeration++;\n\t}", "public Graph getGraph();", "public void updateGraph(){\n int cont=contador;\n eliminar(0);\n construir(cont);\n }", "public interface Graph extends Container {\n\n /**\n * returns how many elements are in the container.\n *\n * @return int = number of elements in the container.\n */\n public int size();\n\n /**\n * returns true if the container is empty, false otherwise.\n *\n * @return boolean true if container is empty\n */\n public boolean isEmpty();\n\n /**\n * return the number of vertices in the graph\n * \n * @return number of vertices in the graph\n */\n public int numVertices();\n\n /**\n * returns the number for edges in the graph\n * \n * @return number of edges in the graph\n */\n public int numEdges();\n\n /**\n * returns an Enumeration of the vertices in the graph\n * \n * @return vertices in the graph\n */\n public Enumeration vertices();\n\n \n /**\n * returns an Enumeration of the edges in the graph\n * \n * @return edges in the graph\n */\n public Enumeration edges();\n\n\n /**\n * Returns an enumeration of the directed edges in the Graph\n * \n * @return an enumeration of the directed edges in the Graph\n */\n public Enumeration directedEdges();\n\n /**\n * Returns an enumeration of the directed edges in the Graph\n * \n * @return an enumeration of the directed edges in the Graph\n */\n public Enumeration undirectedEdges();\n\n /**\n * returns the degree of the passed in Vertex vp\n * \n * @param vp Vertex to return the degree of\n * @return degree of Vertex vp\n * @exception InvalidPositionException\n * thrown when vp is invalid for Vertex container V\n */\n public int degree(Position vp) throws InvalidPositionException;\n\n /**\n * returns the in degree of the passed in Vertex vp\n * \n * @param vp Vertex to return the in degree of\n * @return in degree of Vertex vp\n * @exception InvalidPositionException\n * thrown when vp is invalid for Vertex container V\n */\n public int inDegree(Position vp) throws InvalidPositionException;\n\n /**\n * returns the out degree of the passed in Vertex vp\n * \n * @param vp Vertex to return the out degree of\n * @return out degree of Vertex vp\n * @exception InvalidPositionException\n * thrown when vp is invalid for Vertex container V\n */\n public int outDegree(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an enumeration of vertices adjacent to Vertex vp\n * \n * @param vp Position of Vertex to return the adjacent vertices of\n * @return enumeration of vertices adjacent to Vertex vp\n * @exception InvalidPositionException\n * thrown if vp is not a valid Vertex for this Graph\n */\n public Enumeration adjacentVertices(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an enumeration of vertices in adjacent to Vertex vp\n * \n * @param vp Position of Vertex to return the in adjacent vertices of\n * @return enumeration of vertices in adjacent to Vertex vp\n * @exception InvalidPositionException\n * thrown if vp is not a valid Vertex for this Graph\n */\n public Enumeration inAdjacentVertice(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an enumeration of vertices out adjacent to Vertex vp\n * \n * @param vp Position of Vertex to return the out adjacent vertices of\n * @return enumeration of vertices out adjacent to Vertex vp\n * @exception InvalidPositionException\n * thrown if vp is not a valid Vertex for this Graph\n */\n public Enumeration outAdjacentVertices(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an Enumeration of the edges incident upon the\n * Vertex in Position vp\n * \n * @param vp the Position to holding the Vertex to return the\n * Enumeration of\n * @return the Enumeration of edges incident upon vp\n * @exception InvalidPositionException\n */\n public Enumeration incidentEdges(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an Enumeration of the edges in incident upon the\n * Vertex in Position vp\n * \n * @param vp the Position to holding the Vertex to return the\n * Enumeration of\n * @return the Enumeration of edges in incident upon vp\n * @exception InvalidPositionException\n */\n public Enumeration inIncidentEdges(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an Enumeration of the edges out incident upon the\n * Vertex in Position vp\n * \n * @param vp the Position to holding the Vertex to return the\n * Enumeration of\n * @return the Enumeration of edges out incident upon vp\n * @exception InvalidPositionException\n */\n public Enumeration outIncidentEdges(Position vp) throws InvalidPositionException;\n\n public Position[] endVertices(Position ep) throws InvalidPositionException;\n\n /**\n * Returns the Vertex on Edge ep opposite from Vertex vp\n * \n * @param vp Vertex to find opposite of\n * @param ep Edge containing the vertices\n * @return \n * @exception InvalidPositionException\n */\n public Position opposite(Position vp, Position ep) throws InvalidPositionException;\n\n /**\n * Determine whether or not two vertices are adjacent\n * \n * @param vp Position of one Vertex to check\n * @param wp Position of other Vertex to check\n * @return true if they are adjacent, false otherwise\n * @exception InvalidPositionException\n * thrown if either Position is invalid for this container\n */\n public boolean areAdjacent(Position vp, Position wp) throws InvalidPositionException;\n\n /**\n * Returns the destination Vertex of the given Edge Position\n * \n * @param ep Edge Position to return the destination Vertex of\n * @return the destination Vertex of the given Edge Position\n * @exception InvalidPositionException\n * thrown if the Edge Position is invalid\n */\n public Position destination(Position ep) throws InvalidPositionException;\n\n /**\n * Returns the origin Vertex of the given Edge Position\n * \n * @param ep Edge Position to return the origin Vertex of\n * @return the origin Vertex of the given Edge Position\n * @exception InvalidPositionException\n * thrown if the Edge Position is invalid\n */\n public Position origin(Position ep) throws InvalidPositionException;\n\n /**\n * Returns true if the given Edge Position is directed,\n * otherwise false\n * \n * @param ep Edge Position to check directed on\n * @return true if directed, otherwise false\n * @exception InvalidPositionException\n */\n public boolean isDirected(Position ep) throws InvalidPositionException;\n\n /**\n * Inserts a new undirected Edge into the graph with end\n * Vertices given by Positions vp and wp storing Object o,\n * returns a Position object for the new Edge\n * \n * @param vp Position holding one Vertex endpoint\n * @param wp Position holding the other Vertex endpoint\n * @param o Object to store at the new Edge\n * @return Position containing the new Edge object\n * @exception InvalidPositionException\n * thrown if either of the given vertices are invalid for\n * this container\n */\n public Position insertEdge(Position vp,Position wp, Object o) throws InvalidPositionException;\n\n /**\n * Inserts a new directed Edge into the graph with end\n * Vertices given by Positions vp, the origin, and wp,\n * the destination, storing Object o,\n * returns a Position object for the new Edge\n * \n * @param vp Position holding the origin Vertex\n * @param wp Position holding the destination Vertex\n * @param o Object to store at the new Edge\n * @return Position containing the new Edge object\n * @exception InvalidPositionException\n * thrown if either of the given vertices are invalid for\n * this container\n */\n public Position insertDirectedEdge(Position vp, Position wp, Object o) throws InvalidPositionException;\n\n /**\n * Inserts a new Vertex into the graph holding Object o\n * and returns a Position holding the new Vertex\n * \n * @param o the Object to hold in this Vertex\n * @return the Position holding the Vertex\n */\n public Position insertVertex(Object o);\n\n /**\n * This method removes the Vertex held in the passed in\n * Position from the Graph\n * \n * @param vp the Position holding the Vertex to remove\n * @exception InvalidPositionException\n * thrown if the given Position is invalid for this container\n */\n public void removeVertex(Position vp) throws InvalidPositionException;\n\n /**\n * Used to remove the Edge held in Position ep from the Graph\n * \n * @param ep the Position holding the Edge to remove\n * @exception InvalidPositionException\n * thrown if Position ep is invalid for this container\n */\n public void removeEdge(Position ep) throws InvalidPositionException;\n\n /**\n * This routine is used to change a directed Edge into an\n * undirected Edge\n * \n * @param ep a Position holding the Edge to change from directed to\n * undirected\n * @exception InvalidPositionException\n */\n public void makeUndirected(Position ep) throws InvalidPositionException;\n\n /**\n * This routine can be used to reverse the diretion of a \n * directed Edge\n * \n * @param ep a Position holding the Edge to reverse\n * @exception InvalidPositionException\n * thrown if the given Position is invalid for this container\n */\n public void reverseDirection(Position ep) throws InvalidPositionException;\n\n /**\n * Changes the direction of the given Edge to be out incident\n * upone the Vertex held in the given Position\n * \n * @param ep the Edge to change the direction of\n * @param vp the Position holding the Vertex that the Edge is going\n * to be out incident upon\n * @exception InvalidPositionException\n * thrown if either of the given positions are invalid for this container\n */\n public void setDirectionFrom(Position ep, Position vp) throws InvalidPositionException;\n\n\n /**\n * Changes the direction of the given Edge to be in incident\n * upone the Vertex held in the given Position\n * \n * @param ep the Edge to change the direction of\n * @param vp the Position holding the Vertex that the Edge is going\n * to be in incident upon\n * @exception InvalidPositionException\n * thrown if either of the given positions are invalid for this container\n */\n public void setDirectionTo(Position ep, Position vp) throws InvalidPositionException;\n\n}", "public void graphRepaint() {\r\n \t\tgraph.repaint();\r\n \t}", "protected void resetGraph() {\n for (List<Edge> path : graph) {\r\n for (Edge e : path) {\r\n e.flow = 0;\r\n }\r\n }\r\n }", "protected synchronized void initGraph() throws Throwable {\r\n\t\tif (!initialized) {\r\n\t\t\tinitialized = true;\r\n\t\t\tif (rootGenerator instanceof MultipleRootGenerator) {\r\n\t\t\t\tCollection<Node<T, V>> roots = ((MultipleRootGenerator<T>) rootGenerator).getRoots().stream().map(n -> newNode(null, n)).collect(Collectors.toList());\r\n\t\t\t\tfor (Node<T, V> root : roots) {\r\n\t\t\t\t\tlabelNode(root);\r\n\t\t\t\t\topen.add(root);\r\n\t\t\t\t\tlogger.info(\"Labeled root with {}\", root.getInternalLabel());\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tNode<T, V> root = newNode(null, ((SingleRootGenerator<T>) rootGenerator).getRoot());\r\n\t\t\t\tlabelNode(root);\r\n\t\t\t\topen.add(root);\r\n\t\t\t}\r\n\r\n\t\t\t// check if the equals method is explicitly implemented.\r\n\t\t\t// Method [] methods = open.peek().getPoint().getClass().getDeclaredMethods();\r\n\t\t\t// boolean containsEquals = false;\r\n\t\t\t// for(Method m : methods)\r\n\t\t\t// if(m.getName() == \"equals\") {\r\n\t\t\t// containsEquals = true;\r\n\t\t\t// break;\r\n\t\t\t// }\r\n\t\t\t//\r\n\t\t\t// if(!containsEquals)\r\n\t\t\t// this.parentDiscarding = ParentDiscarding.NONE;\r\n\t\t}\r\n\t}", "@Override\n public Graph getGraphModel() {\n return this.graph;\n }", "public interface DirectedGraph {\n\n /**\n * Set a graph label\n * @param label a graph label\n */\n void setGraphLabel(String label);\n\n /**\n * @return the graph label\n */\n String getGraphLabel();\n\n /**\n * Add a node in graph\n * @param node\n * @throws IllegalArgumentException if node is negative\n */\n void addNode(int node);\n\n /**\n * Associating metadata to node\n * @param node the node id\n * @param key the metadata key\n * @param value the metadata value\n */\n void addNodeMetadata(int node, String key, String value);\n\n /**\n * Get the value of the metadata associated with the given node\n * @param node the node to get metadata for\n * @param key the metadata key\n * @return the value or null if not found\n */\n String getNodeMetadataValue(int node, String key);\n\n /**\n * @return the node given the label or -1 if not found\n */\n int getNodeFromMetadata(String metadata);\n\n /**\n * Add an edge in graph from tail to head and return its index\n * @param tail predecessor node\n * @param head successor node\n * @return the edge id or -1 if already exists\n */\n int addEdge(int tail, int head);\n\n /**\n * Set an edge label\n * @param edge a edge id\n * @param label a node label\n */\n void setEdgeLabel(int edge, String label);\n\n /**\n * @return the edge label\n */\n String getEdgeLabel(int edge);\n\n /**\n * @return an array of graph nodes\n */\n int[] getNodes();\n\n /**\n * @return an array of graph edges\n */\n int[] getEdges();\n\n /**\n * @return the edge id from end points or -1 if not found\n */\n int getEdge(int tail, int head);\n\n /**\n * Get the incoming and outcoming edges for the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getEdgesIncidentTo(int... nodes);\n\n /**\n * Get the incoming edges to the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getInEdges(int... nodes);\n\n /**\n * Get the outcoming edges from the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getOutEdges(int... nodes);\n\n /**\n * @return the tail node of the given edge or -1 if not found\n */\n int getTailNode(int edge);\n\n /**\n * @return the head node of the given edge or -1 if not found\n */\n int getHeadNode(int edge);\n\n /**\n * @return true if node belongs to graph else false\n */\n boolean containsNode(int node);\n\n /**\n * @return true if edge belongs to graph else false\n */\n boolean containsEdge(int edge);\n\n /**\n * @return true if tail -> head edge belongs to graph else false\n */\n boolean containsEdge(int tail, int head);\n\n /**\n * @return ancestors of the given node\n */\n int[] getAncestors(int node);\n\n /**\n * @return descendants of the given node\n */\n int[] getDescendants(int node);\n\n /**\n * @return descendants of the given node\n */\n int[] getDescendants(int node, int maxDepth);\n\n /**\n * @return true if queryDescendant is a descendant of queryAncestor\n */\n boolean isAncestorOf(int queryAncestor, int queryDescendant);\n\n /**\n * @return the predecessors of the given node\n */\n int[] getPredecessors(int node);\n\n /**\n * @return the successors of the given node\n */\n int[] getSuccessors(int node);\n\n /**\n * @return the number of head ends adjacent to the given node\n */\n int getInDegree(int node);\n\n /**\n * @return the number of tail ends adjacent to the given node\n */\n int getOutDegree(int node);\n\n /**\n * @return the sources (indegree = 0) of the graph\n */\n int[] getSources();\n\n /**\n * @return the sinks (outdegree = 0) of the graph\n */\n int[] getSinks();\n\n /**\n * @return the subgraph of this graph composed of given nodes\n */\n DirectedGraph calcSubgraph(int... nodes);\n\n /**\n * @return the total number of graph nodes\n */\n default int countNodes() {\n\n return getNodes().length;\n }\n\n /**\n * @return the total number of graph edges\n */\n default int countEdges() {\n\n return getEdges().length;\n }\n\n /**\n * @return true if queryDescendant is a descendant of queryAncestor\n */\n default boolean isDescendantOf(int queryDescendant, int queryAncestor) {\n\n return isAncestorOf(queryAncestor, queryDescendant);\n }\n\n default boolean isSource(int node) {\n return getInDegree(node) == 0 && getOutDegree(node) > 0;\n }\n\n default boolean isSink(int node) {\n return getInDegree(node) > 0 && getOutDegree(node) == 0;\n }\n\n /**\n * The height of a rooted tree is the length of the longest downward path to a leaf from the root.\n *\n * @return the longest path from the root or -1 if it is not a tree\n */\n default int calcHeight() throws NotATreeException {\n\n int[] roots = getSources();\n\n if (roots.length == 0) {\n throw new NotATreeException();\n }\n\n class WrappedCalcLongestPath {\n private int calcLongestPath(int node, TIntList path) throws CycleDetectedException {\n\n if (!containsNode(node)) {\n throw new IllegalArgumentException(\"node \"+ node + \" was not found\");\n }\n\n if (isSink(node)) {\n return path.size()-1;\n }\n\n TIntList lengths = new TIntArrayList();\n for (int edge : getOutEdges(node)) {\n\n int nextNode = getHeadNode(edge);\n\n TIntList newPath = new TIntArrayList(path);\n newPath.add(nextNode);\n\n if (path.contains(nextNode)) {\n throw new CycleDetectedException(newPath);\n }\n\n lengths.add(calcLongestPath(nextNode, newPath));\n }\n\n return lengths.max();\n }\n }\n\n // it is ok if there are multiple roots (see example of enzyme-classification-cv where it misses the root that\n // connect children EC 1.-.-.-, EC 2.-.-.-, ..., EC 6.-.-.-)\n /*if (roots.length > 1) {\n throw new NotATreeMultipleRootsException(roots);\n }*/\n\n return new WrappedCalcLongestPath().calcLongestPath(roots[0], new TIntArrayList(new int[] {roots[0]}));\n }\n\n class NotATreeException extends Exception {\n\n public NotATreeException() {\n\n super(\"not a tree\");\n }\n }\n\n class NotATreeMultipleRootsException extends NotATreeException {\n\n private final int[] roots;\n\n public NotATreeMultipleRootsException(int[] roots) {\n\n super();\n this.roots = roots;\n }\n\n @Override\n public String getMessage() {\n\n return super.getMessage() + \", roots=\" + Arrays.toString(this.roots);\n }\n }\n\n class CycleDetectedException extends NotATreeException {\n\n private final TIntList path;\n\n public CycleDetectedException(TIntList path) {\n\n super();\n\n this.path = path;\n }\n\n @Override\n public String getMessage() {\n\n return super.getMessage() + \", path=\" + this.path;\n }\n }\n}", "public interface Graph {\n\n /** @return The number of vertices in the graph. */\n int getNumVertices();\n\n /** @return The number of edges in the graph. */\n int getNumEdges();\n\n /** @return A read-only set of all the vertices in the graph. */\n Set<Vertex> getVertices();\n\n /** @return A read-only set of all edges (directed or undirected) in the graph. */\n Set<Edge> getEdges();\n\n /** Removes all vertices and edges from the graph. */\n void clear();\n\n /** Adds a vertex to this graph. */\n void add(Vertex vertex);\n\n /** Adds an edge to the graph. */\n void add(Edge edge);\n\n /** Adds all the vertices and edges in another graph to this graph. */\n void addAll(Graph graph);\n\n /** Removes vertex from the graph and any edges attached to it. */\n void remove(Vertex vertex);\n\n /** Removes an existing edge from the graph. */\n void remove(Edge edge);\n\n /** Checks if the graph contains a given vertex. */\n boolean contains(Vertex vertex);\n\n /** Checks if the graph contains a given edge. */\n boolean contains(Edge edge);\n\n /** @return An unmodifiable set of all directed edges entering vertex. */\n Set<Edge> getInEdges(Vertex vertex);\n\n /** @return An unmodifiable set of all directed edges coming out of vertex. */\n Set<Edge> getOutEdges(Vertex vertex);\n\n /** @return An unmodifiable set of all undirected edges connected to vertex. */\n Set<Edge> getUndirectedEdges(Vertex vertex);\n\n /** @return An unmodifiable set of all edges (directed and undirected) connected to vertex. */\n Set<Edge> getMixedEdges(Vertex vertex);\n\n /** @return The number of undirected edges connected to vertex. */\n int getUndirectedDegree(Vertex vertex);\n\n /** @return The number of directed edges coming into vertex. */\n int getInDegree(Vertex vertex);\n\n /** @return The number of directed edges coming out of vertex. */\n int getOutDegree(Vertex vertex);\n\n /**\n * @return The number of directed and undirected edges connected to this vertex. Equivalent to\n * inDegree + outDegree + undirectedDegree.\n */\n int getMixedDegree(Vertex vertex);\n\n /** Registers a listener for changes in the graph model. */\n void addListener(GraphListener listener);\n\n /** Unregisters a listener for changes in the graph model. */\n void removeListener(GraphListener listener);\n\n /** @return Attributes that apply to the entire graph. */\n Attributes getAttributes();\n\n /** Creates a new vertex, adds it to the graph, and returns a reference to it. */\n Vertex createVertex();\n\n /** Creates a new edge, adds it to the graph, and returns a reference to it. */\n Edge createEdge(Vertex src, Vertex tgt, boolean directed);\n}", "String targetGraph();", "public void structureChanged(GraphEvent e);", "Graph(){\n\t\taddNode();\n\t\tcurrNode=myNodes.get(0);\n\t}", "private void buildGraph()\n\t{\n\t\taddVerticesToGraph();\n\t\taddLinkesToGraph();\n\t}", "Graph testGraph();", "protected Graph<VLabel, ELabel> theGraph() {\n return _graph;\n }", "void graph2() {\n\t\tconnect(\"1\", \"7\");\n\t\tconnect(\"1\", \"8\");\n\t\tconnect(\"1\", \"9\");\n\t\tconnect(\"9\", \"1\");\n\t\tconnect(\"9\", \"0\");\n\t\tconnect(\"9\", \"4\");\n\t\tconnect(\"4\", \"8\");\n\t\tconnect(\"4\", \"3\");\n\t\tconnect(\"3\", \"4\");\n\t}", "protected final AbstractDGraph getGraph() {\n return this.graph;\n }", "private void setAllUnvisited(){\n\t\tfor(int i = 0; i < this.getDimension(); i++)\n\t\t\tthis.getGraph().setUnvisited(i);\n\t\tthis.visited = 0;\n\t}", "public Population(Graph graph)\r\n/* 13: */ {\r\n/* 14:36 */ g = graph.cloneGraph();\r\n/* 15: */ }", "private DirectedGraph<State, UniqueEdge> getGraph() {\r\n \t\tDirectedGraph<State, UniqueEdge> graph = new DirectedMultigraph<State, UniqueEdge>(\r\n \t\t\t\tUniqueEdge.class);\r\n \t\tfor (State source : states.values()) {\r\n \t\t\tgraph.addVertex(source);\r\n \t\t\tint index = source.getIndex();\r\n \t\t\tTransition transition = transitions.get(index);\r\n \t\t\tList<NextStateInfo> nextState = transition.getNextStateInfo();\r\n \t\t\tfor (NextStateInfo info : nextState) {\r\n \t\t\t\tState target = info.getTargetState();\r\n \t\t\t\tgraph.addVertex(target);\r\n \t\t\t\tgraph.addEdge(source, target, new UniqueEdge(info.getAction()));\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\treturn graph;\r\n \t}", "@Override\n\tpublic boolean isConnected() {\n\t\tif(this.GA.nodeSize() ==1 || this.GA.nodeSize()==0) return true;\n\t\tgraph copied = this.copy();\n\t\ttagZero(copied);\n\t\tCollection<node_data> s = copied.getV();\n\t\tIterator it = s.iterator();\n\t\tnode_data temp = (node_data) it.next();\n\t\tDFSUtil(copied,temp);\n\t\tfor (node_data node : s) {\n\t\t\tif (node.getTag() == 0) return false;\n\t\t}\n\t\ttransPose(copied);\n\t\ttagZero(copied);\n\t Collection<node_data> s1 = copied.getV();\n\t\tIterator it1 = s1.iterator();\n\t\tnode_data temp1 = (node_data) it1.next();\n\t\tDFSUtil(copied,temp1);\n\t\tfor (node_data node1 : s1) {\n\t\t\tif (node1.getTag() == 0) return false;\n\t\t}\n\n\t\treturn true;\n\t}", "private void transPose(graph g) {\n\t\tIterator it = g.getV().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tnode_data temp = (node_data) it.next();\n\t\t\tif(g.getE(temp.getKey())!=null) {\n\t\t\t\tIterator it1 = g.getE(temp.getKey()).iterator();\n\t\t\t\twhile (it1.hasNext()) {\n\t\t\t\t\tedge_data temp1 = (edge_data) it1.next();\n\t\t\t\t\tif (temp1 != null && temp1.getTag() == 0) {\n\t\t\t\t\t\tif (g.getEdge(temp1.getDest(), temp1.getSrc()) != null) {\n\t\t\t\t\t\t\tEdge temps = new Edge((Edge)g.getEdge(temp1.getSrc(),temp1.getDest()));\n\t\t\t\t\t\t\tdouble weight1 = g.getEdge(temp1.getSrc(),temp1.getDest()).getWeight();\n\t\t\t\t\t\t\tdouble weight2 = g.getEdge(temp1.getDest(),temp1.getSrc()).getWeight();\n\t\t\t\t\t\t\tg.connect(temp1.getSrc(),temp1.getDest(),weight2);\n\t\t\t\t\t\t\tg.connect(temps.getDest(),temps.getSrc(),weight1);\n\t\t\t\t\t\t\tg.getEdge(temps.getDest(), temps.getSrc()).setTag(1);\n\t\t\t\t\t\t\tg.getEdge(temps.getSrc(),temps.getDest()).setTag(1);\n\t\t\t\t\t\t\tit1 = g.getE(temp.getKey()).iterator();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tg.connect(temp1.getDest(), temp1.getSrc(), temp1.getWeight());\n\t\t\t\t\t\t\tg.getEdge(temp1.getDest(), temp1.getSrc()).setTag(1);\n\t\t\t\t\t\t\tg.removeEdge(temp1.getSrc(), temp1.getDest());\n\t\t\t\t\t\t\tit1 = g.getE(temp.getKey()).iterator();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected abstract Graph filterGraph();", "@Override protected void onPreExecute() { g = new UndirectedGraph(10); }", "protected abstract Graph fetchGraph() throws IdNotFoundException;", "void createGraphForSingleLoad();", "public Graph getGraph()\n\t{\n\t\treturn graph;\n\t}", "private void updateOriginalNodesInMirror() {\n for (Node node : originalGraph.nodes()) {\n if (!mirrorGraph.has(node)) {\n mirrorGraph.add(node);\n }\n originalAttributesToMirror(node);\n }\n }", "@Override\r\n public weighted_graph getGraph() {\r\n return this.Graph;\r\n }", "public interface Graph<V> {\n /**\n * F??gt neuen Knoten zum Graph dazu.\n * @param v Knoten\n * @return true, falls Knoten noch nicht vorhanden war.\n */\n boolean addVertex(V v);\n\n /**\n * F??gt neue Kante (mit Gewicht 1) zum Graph dazu.\n * @param v Startknoten\n * @param w Zielknoten\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist oder Knoten identisch sind.\n * @return true, falls Kante noch nicht vorhanden war.\n */\n boolean addEdge(V v, V w);\n\n /**\n * F??gt neue Kante mit Gewicht weight zum Graph dazu.\n * @param v Startknoten\n * @param w Zielknoten\n * @param weight Gewicht\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist oder Knoten identisch sind.\n * @return true, falls Kante noch nicht vorhanden war.\n */\n boolean addEdge(V v, V w, double weight);\n\n /**\n * Pr??ft ob Knoten v im Graph vorhanden ist.\n * @param v Knoten\n * @return true, falls Knoten vorhanden ist.\n */\n boolean containsVertex(V v);\n\n /**\n * Pr??ft ob Kante im Graph vorhanden ist.\n * @param v Startknoten\n * @param w Endknoten\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist.\n * @return true, falls Kante vorhanden ist.\n */\n boolean containsEdge(V v, V w);\n \n /**\n * Liefert Gewicht der Kante zur??ck.\n * @param v Startknoten\n * @param w Endknoten\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist.\n * @return Gewicht, falls Kante existiert, sonst 0.\n */\n double getWeight(V v, V w);\n\n /**\n * Liefert Anzahl der Knoten im Graph zur??ck.\n * @return Knotenzahl.\n */\n int getNumberOfVertexes();\n\n /**\n * Liefert Anzahl der Kanten im Graph zur??ck.\n * @return Kantenzahl.\n */\n int getNumberOfEdges();\n\n /**\n * Liefert Liste aller Knoten im Graph zur??ck.\n * @return Knotenliste\n */\n List<V> getVertexList();\n \n /**\n * Liefert Liste aller Kanten im Graph zur??ck.\n * @return Kantenliste.\n */\n List<Edge<V>> getEdgeList();\n\n /**\n * Liefert eine Liste aller adjazenter Knoten zu v.\n * Genauer: g.getAdjacentVertexList(v) liefert eine Liste aller Knoten w,\n * wobei (v, w) eine Kante des Graphen g ist.\n * @param v Knoten\n * @throws IllegalArgumentException falls Knoten v\n * nicht im Graph vorhanden ist.\n * @return Knotenliste\n */\n List<V> getAdjacentVertexList(V v);\n\n /**\n * Liefert eine Liste aller inzidenten Kanten.\n * Genauer: g.getIncidentEdgeList(v) liefert\n * eine Liste aller Kanten im Graphen g mit v als Startknoten.\n * @param v Knoten\n * @throws IllegalArgumentException falls Knoten v\n * nicht im Graph vorhanden ist.\n * @return Kantenliste\n */\n List<Edge<V>> getIncidentEdgeList(V v);\n}", "public interface IUndirectedGraph extends IGraph{\n\n /**\n * Check the presence of an edge between two nodes.\n *\n * @param x the source node\n * @param y the destination node\n * @return true if there is an edge between x and y\n */\n default boolean isEdge(int x, int y) {\n return getNeighbors(x).contains(y);\n }\n\n /**\n * Remove the edge between two nodes if exist.\n * @param x the source node\n * @param y the destination node\n */\n void removeEdge(int x, int y);\n\n /**\n * Add an edge between two nodes, if not already present.\n * The two nodes must be distincts.\n * @param x the source node\n * @param y the destination node\n */\n void addEdge(int x, int y);\n\n /**\n * Get the neighboors of a node\n * @param x the node\n * @return a new int array representing the neighbors\n */\n List<Integer> getNeighbors(int x);\n\n @Override\n default int[][] getGraph() {\n int order = getOrder();\n int[][] adjencyMatrix = new int[order][order];\n for (int i = 0; i < order; i++) {\n List<Integer> succ = getNeighbors(i);\n for (Integer s : succ) {\n adjencyMatrix[i][s] = 1;\n }\n }\n return adjencyMatrix;\n }\n\n @Override\n default boolean isDirected(){\n return false;\n }\n}", "@Test\n public void shouldUpdateDependentWhileAddingDownstreamIfNodeAlreadyPresent(){\n String p1 = \"p1\";\n String p2 = \"p2\";\n String p3 = \"p3\";\n ValueStreamMap graph = new ValueStreamMap(p1, null);\n graph.addDownstreamNode(new PipelineDependencyNode(p2, p2), p1);\n graph.addDownstreamNode(new PipelineDependencyNode(p3, p3), p2);\n graph.addDownstreamNode(new PipelineDependencyNode(p3, p3), p1);\n\n VSMTestHelper.assertNodeHasChildren(graph, p1, p2, p3);\n VSMTestHelper.assertNodeHasChildren(graph, p2, p3);\n assertThat(graph.findNode(p3).getChildren().isEmpty(), is(true));\n assertThat(graph.findNode(p1).getParents().isEmpty(), is(true));\n VSMTestHelper.assertNodeHasParents(graph, p2, p1);\n VSMTestHelper.assertNodeHasParents(graph, p3, p1, p2);\n\n List<List<Node>> nodesAtEachLevel = graph.presentationModel().getNodesAtEachLevel();\n assertThat(nodesAtEachLevel.size(), is(3));\n VSMTestHelper.assertThatLevelHasNodes(nodesAtEachLevel.get(0), 0, p1);\n VSMTestHelper.assertThatLevelHasNodes(nodesAtEachLevel.get(1), 1, p2);\n VSMTestHelper.assertThatLevelHasNodes(nodesAtEachLevel.get(2), 0, p3);\n }", "private void initGraph() {\n nodeMap = Maps.newIdentityHashMap();\n stream.forEach(t -> {\n Object sourceKey = sourceId.extractValue(t.get(sourceId.getTableId()));\n Object targetKey = targetId.extractValue(t.get(targetId.getTableId()));\n ClosureNode sourceNode = nodeMap.get(sourceKey);\n ClosureNode targetNode = nodeMap.get(targetKey);\n if (sourceNode == null) {\n sourceNode = new ClosureNode(sourceKey);\n nodeMap.put(sourceKey, sourceNode);\n }\n if (targetNode == null) {\n targetNode = new ClosureNode(targetKey);\n nodeMap.put(targetKey, targetNode);\n }\n sourceNode.next.add(targetNode);\n });\n\n }", "private ProjectedVertex() {\n this.valid = false;\n this.edge = null;\n }", "@Override\n \t\t\t\tpublic void deleteGraph() throws TransformedGraphException {\n \n \t\t\t\t}", "public void drawGraph()\n\t{\n\t\tMatrixStack transformStack = new MatrixStack();\n\t\ttransformStack.getTop().mul(getWorldTransform());\n\t\tdrawSelfAndChildren(transformStack);\n\t}", "public abstract void map(Edge queryEdge, Edge graphEdge);", "public ReilGraph getGraph() {\n return m_graph;\n }", "@Override\n\tpublic void updateGraphicalContent(Engine en) {\n\t\t\n\t}", "public void updateOriginal() {\n for (Node node : originalGraph.nodes()) {\n mirrorAttributesToOriginal(node);\n }\n for (Edge edge : originalGraph.edges()) {\n mirrorAttributesToOriginal(directEdgeMap.get(edge));\n }\n }", "public interface GraphListener extends java.util.EventListener {\n /**\n * An edge's head has been changed in a registered\n * graph or one of its subgraphs. The added edge\n * is the \"source\" of the event. The previous head\n * is accessible via e.getOldValue().\n */\n public void edgeHeadChanged(GraphEvent e);\n\n /**\n * An edge's tail has been changed in a registered\n * graph or one of its subgraphs. The added edge\n * is the \"source\" of the event. The previous tail\n * is accessible via e.getOldValue().\n */\n public void edgeTailChanged(GraphEvent e);\n\n /**\n * A node has been been added to the registered\n * graph or one of its subgraphs. The added node\n * is the \"source\" of the event.\n */\n public void nodeAdded(GraphEvent e);\n\n /**\n * A node has been been deleted from the registered\n * graphs or one of its subgraphs. The deleted node\n * is the \"source\" of the event. The previous parent\n * graph is accessible via e.getOldValue().\n */\n public void nodeRemoved(GraphEvent e);\n\n /**\n * The structure of the event's \"source\" graph has\n * been drastically changed in some way, and this\n * event signals the listener to refresh its view\n * of that graph from model.\n */\n public void structureChanged(GraphEvent e);\n}", "public Graph() {\n\t\ttowns = new HashSet<Town>();\n\t\troads = new HashSet<Road>();\n\t\tprevVertex = new HashMap<String, Town>();\n\t}", "public static void runTest() {\n Graph mnfld = new Graph();\n float destTank = 7f;\n\n // Adding Tanks\n mnfld.addPipe( new Node( 0f, 5.0f ) );\n mnfld.addPipe( new Node( 1f, 5.0f ) );\n mnfld.addPipe( new Node( 7f, 5.0f ) );\n\n // Adding Pipes\n mnfld.addPipe( new Node( 2f, 22f, 100f ) );\n mnfld.addPipe( new Node( 3f, 33f, 150f ) );\n mnfld.addPipe( new Node( 4f, 44f, 200f ) );\n mnfld.addPipe( new Node( 5f, 55f, 250f ) );\n mnfld.addPipe( new Node( 6f, 66f, 300f ) );\n mnfld.addPipe( new Node( 8f, 88f, 200f ) );\n mnfld.addPipe( new Node( 9f, 99f, 150f ) );\n mnfld.addPipe( new Node( 10f, 1010f, 150f ) );\n mnfld.addPipe( new Node( 20f, 2020f, 150f ) );\n\n // Inserting Edges to the graph\n mnfld.insertConnection( new Edge( mnfld.getPipe( 0f ), mnfld.getPipe( 2f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 0f ), mnfld.getPipe( 3f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 1f ), mnfld.getPipe( 2f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 22f ), mnfld.getPipe( 4f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 33f ), mnfld.getPipe( 5f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 44f ), mnfld.getPipe( 5f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 44f ), mnfld.getPipe( 7f ), 500f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 55f ), mnfld.getPipe( 6f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 66f ), mnfld.getPipe( 7f ), 100f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 66f ), mnfld.getPipe( 8f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 88f ), mnfld.getPipe( 7f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 33f ), mnfld.getPipe( 9f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 99f ), mnfld.getPipe( 5f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 33f ), mnfld.getPipe( 1010f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 1010f ), mnfld.getPipe( 7f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 1f ), mnfld.getPipe( 20f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 2020f ), mnfld.getPipe( 3f ), 1f ) );\n\n // -- Running Dijkstra & Finding shortest Paths -- //\n// Dijkstra.findPaths( mnfld, 10, \"0.0\", destTank );\n//\n// mnfld.restoreDroppedConnections();\n//\n// System.out.println( \"\\n\\n\" );\n Dijkstra.findMinPaths( mnfld, mnfld.getPipe( 0f ) );\n Dijkstra.mergePaths( mnfld, 1f, mnfld.getPipe( destTank ).getPath(), mnfld.getPipe( destTank ) );\n\n }", "@Override\n @SuppressWarnings(\"try\")\n protected void run(StructuredGraph graph, C context) {\n EconomicSetNodeEventListener listener = new EconomicSetNodeEventListener().exclude(NodeEvent.NODE_ADDED);\n StructuredGraph graphCopy = (StructuredGraph) graph.copy(graph.getDebug());\n DebugContext debug = graph.getDebug();\n try (NodeEventScope s = graphCopy.trackNodeEvents(listener)) {\n try (DebugContext.Scope s2 = debug.sandbox(\"WithoutMonitoring\", null)) {\n super.run(graphCopy, context);\n } catch (Throwable t) {\n debug.handle(t);\n }\n }\n\n EconomicSet<Node> filteredNodes = EconomicSet.create(Equivalence.IDENTITY);\n for (Node n : listener.getNodes()) {\n if (n instanceof LogicConstantNode) {\n // Ignore LogicConstantNode since those are sometimes created and deleted as part of\n // running a phase.\n } else {\n filteredNodes.add(n);\n }\n }\n if (!filteredNodes.isEmpty()) {\n /* rerun it on the real graph in a new Debug scope so Dump and Log can find it. */\n listener = new EconomicSetNodeEventListener();\n try (NodeEventScope s = graph.trackNodeEvents(listener)) {\n try (DebugContext.Scope s2 = debug.scope(\"WithGraphChangeMonitoring\")) {\n if (debug.isDumpEnabled(DebugContext.DETAILED_LEVEL)) {\n debug.dump(DebugContext.DETAILED_LEVEL, graph, \"*** Before phase %s\", getName());\n }\n super.run(graph, context);\n if (debug.isDumpEnabled(DebugContext.DETAILED_LEVEL)) {\n debug.dump(DebugContext.DETAILED_LEVEL, graph, \"*** After phase %s %s\", getName(), filteredNodes);\n }\n debug.log(\"*** %s %s %s\\n\", message, graph, filteredNodes);\n }\n }\n } else {\n // Go ahead and run it normally even though it should have no effect\n super.run(graph, context);\n }\n }", "@Override\n public boolean isConnected() { //i got help from the site https://www.geeksforgeeks.org/shortest-path-unweighted-graph/\n if(this.ga.edgeSize()<this.ga.nodeSize()-1) return false;\n initializeInfo();//initialize all the info fields to be null for the algorithm to work\n if(this.ga.nodeSize()==0||this.ga.nodeSize()==1) return true;//if there is not node or one its connected\n WGraph_DS copy = (WGraph_DS) (copy());//create a copy graph that the algorithm will on it\n LinkedList<node_info> qValues = new LinkedList<>();//create linked list that will storage all nodes that we didn't visit yet\n int firstNodeKey = copy.getV().iterator().next().getKey();//first key for get the first node(its doesnt matter which node\n node_info first = copy.getNode(firstNodeKey);//get the node\n qValues.add(first);//without limiting generality taking the last node added to graph\n int counterVisitedNodes = 0;//counter the times we change info of node to \"visited\"\n while (qValues.size() != 0) {\n node_info current = qValues.removeFirst();\n if (current.getInfo() != null) continue;//if we visit we can skip to the next loop because we have already marked\n current.setInfo(\"visited\");//remark the info\n counterVisitedNodes++;\n\n Collection<node_info> listNeighbors = copy.getV(current.getKey());//create a collection for the neighbors list\n LinkedList<node_info> Neighbors = new LinkedList<>(listNeighbors);//create the neighbors list\n if (Neighbors == null) continue;\n for (node_info n : Neighbors) {\n if (n.getInfo() == null) {//if there is a node we didn't visited it yet, we will insert it to the linkedList\n qValues.add(n);\n }\n }\n }\n if (this.ga.nodeSize() != counterVisitedNodes) return false;//check that we visited all of the nodes\n\n return true;\n }", "@Override\r\n\tpublic Node visitComposition(CompositionContext ctx) {\n\t\treturn super.visitComposition(ctx);\r\n\t}", "private static void simplify (GraphDirected<NodeCppOSMDirected, EdgeCppOSMDirected> osmGraph) {\n \t\tfinal Iterator<NodeCppOSMDirected> iteratorNodes = osmGraph.getNodes().iterator();\n \t\twhile (iteratorNodes.hasNext()) {\n \t\t\tfinal NodeCppOSMDirected node = iteratorNodes.next();\n \t\t\t// one in one out\n \t\t\tif (node.getInDegree() == 1 && node.getOutDegree() == 1) {\n \t\t\t\t// get the ids of the two connected nodes\n \t\t\t\tfinal Long currentNodeId = node.getId();\n \t\t\t\tfinal List<EdgeCppOSMDirected> edges = node.getEdges();\n \t\t\t\tfinal EdgeCppOSMDirected edge1 = edges.get(0);\n \t\t\t\tfinal EdgeCppOSMDirected edge2 = edges.get(1);\n \t\t\t\tfinal Long node1id = edge1.getNode1().getId() == (currentNodeId) ? edge2.getNode1().getId() : edge1.getNode1().getId();\n \t\t\t\tfinal Long node2id = edge1.getNode1().getId() == (currentNodeId) ? edge1.getNode2().getId() : edge2.getNode2().getId();\n \t\t\t\tif (node2id == node1id){\n \t\t\t\t\t// we are in a deadend and do not erase ourself\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \t\t\t\t// concat the list in the right way\n \t\t\t\tList<WayNodeOSM> newMetaNodes = concatMetanodes(edge1.getMetadata().getNodes(), edge2.getMetadata().getNodes(), currentNodeId);\n \t\t\t\t// add a new edge\n \t\t\t\t// TODO: Handle way properly - what would name be in this context?\n \t\t\t\tosmGraph.getNode(node1id).connectWithNodeWeigthAndMeta(osmGraph.getNode(node2id), edge1.getWeight() + edge2.getWeight(),\n \t\t\t\t\t\tnew WayOSM(0, WayOSM.WayType.UNSPECIFIED, \"unknown\", newMetaNodes));\n \t\t\t\t// remove the old node\n \t\t\t\t// do this manually because we otherwise corrupt the iterator\n \t\t\t\tnode.removeAllEdges();\n \t\t\t\titeratorNodes.remove();\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t// two in two out\n \t\t\tif (node.getInDegree() == 2 && node.getOutDegree() == 2) {\n \t\t\t\tfinal long currentNodeId = node.getId();\n \t\t\t\t//check the connections\n \t\t\t\tArrayList<EdgeCppOSMDirected> incomingEdges = new ArrayList<>();\n \t\t\t\tArrayList<EdgeCppOSMDirected> outgoingEdges = new ArrayList<>();\n \t\t\t\tfor(EdgeCppOSMDirected edge : node.getEdges()) {\n \t\t\t\t\tif(edge.getNode1().getId() == currentNodeId){\n \t\t\t\t\t\toutgoingEdges.add(edge);\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\tincomingEdges.add(edge);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\t//TODO make this condition better\n \t\t\t\tif(outgoingEdges.get(0).getNode2().equals(incomingEdges.get(0).getNode1())){\n \t\t\t\t\t//out0 = in0\n \t\t\t\t\tif(!outgoingEdges.get(1).getNode2().equals(incomingEdges.get(1).getNode1())){\n \t\t\t\t\t\tcontinue;\n \t\t\t\t\t}\n \t\t\t\t\tif(outgoingEdges.get(0).getWeight() != incomingEdges.get(0).getWeight()){\n \t\t\t\t\t\tcontinue;\n \t\t\t\t\t}\n \t\t\t\t\tif(outgoingEdges.get(1).getWeight() != incomingEdges.get(1).getWeight()){\n \t\t\t\t\t\tcontinue;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\t//out0 should be in1\n \t\t\t\t\t//therefore out1 = in0\n \t\t\t\t\tif(!outgoingEdges.get(0).getNode2().equals(incomingEdges.get(1).getNode1())){\n \t\t\t\t\t\tcontinue;\n \t\t\t\t\t}\n \t\t\t\t\tif(!outgoingEdges.get(1).getNode2().equals(incomingEdges.get(0).getNode1())){\n \t\t\t\t\t\tcontinue;\n \t\t\t\t\t}\n \t\t\t\t\tif(outgoingEdges.get(0).getWeight() != incomingEdges.get(1).getWeight()){\n \t\t\t\t\t\tcontinue;\n \t\t\t\t\t}\n \t\t\t\t\tif(outgoingEdges.get(1).getWeight() != incomingEdges.get(0).getWeight()){\n \t\t\t\t\t\tcontinue;\n \t\t\t\t\t}\n \t\t\t\t}\n \n \t\t\t\t// get the ids of the two connected nodes\n \t\t\t\tfinal NodeCppOSMDirected node1 = incomingEdges.get(0).getNode1();\n \t\t\t\tfinal NodeCppOSMDirected node2 = incomingEdges.get(1).getNode1();\n \t\t\t\t// \t\t\tif (node1.equals(node2)){\n \t\t\t\t// \t\t\t\t// we are in a loop and do not erase ourself\n \t\t\t\t// \t\t\t\tcontinue;\n \t\t\t\t// \t\t\t}\n \t\t\t\t// concat the list in the right way\n \t\t\t\tList<WayNodeOSM> metaNodes1 = incomingEdges.get(0).getMetadata().getNodes();\n \t\t\t\tList<WayNodeOSM> metaNodes2 = incomingEdges.get(1).getMetadata().getNodes();\n \t\t\t\tdouble weight = incomingEdges.get(0).getWeight() +incomingEdges.get(1).getWeight();\n \t\t\t\tList<WayNodeOSM> newMetaNodes = concatMetanodes(metaNodes1, metaNodes2, currentNodeId);\n \t\t\t\t// add a new edge\n \t\t\t\t// TODO: Handle way properly - what would name be in this context?\n \t\t\t\tnode1.connectWithNodeWeigthAndMeta(node2, weight,\n \t\t\t\t\t\tnew WayOSM(0, WayOSM.WayType.UNSPECIFIED, \"unknown\", newMetaNodes));\n \t\t\t\tnode2.connectWithNodeWeigthAndMeta(node1, weight,\n \t\t\t\t\t\tnew WayOSM(0, WayOSM.WayType.UNSPECIFIED, \"unknown\", newMetaNodes));\n \t\t\t\t// remove the old node\n \t\t\t\t// do this manually because we otherwise corrupt the iterator\n \t\t\t\tnode.removeAllEdges();\n \t\t\t\titeratorNodes.remove();\n \t\t\t}\n \t\t}\n \t}", "public void setGraph(){\r\n setDisplay(currentGraph);\r\n }", "public SubGraph(){\r\n\t\tsuper();\r\n\t}", "void createGraphForDistributedSingleLoad();", "public void repaintGraph() {\r\n this.repaint();\r\n ((GraphBuilder) getFrameParent()).getMiniMap().repaint();\r\n }", "private static void simpleGraphDemo() throws CALExecutorException {\r\n \r\n // Construct a graph by starting with an empty graph and adding edges and vertices to it.\r\n final ImmutableDirectedGraph<String> graph1 = ImmutableDirectedGraph\r\n .<String>emptyGraph(executionContext)\r\n .addEdge(Pair.make(\"one\", \"two\"))\r\n .addVertex(\"three\");\r\n \r\n // graph2 is graph1 with one more edge - this does not modify graph1\r\n final ImmutableDirectedGraph<String> graph2 = graph1.addEdge(Pair.make(\"two\", \"three\"));\r\n \r\n // Let's look at graph2, both via its toString() implementation\r\n System.out.println(graph2);\r\n // ...and via the support to show the structure of a CalValue\r\n System.out.println(DebugSupport.showInternal(graph2.getCalValue()));\r\n \r\n // removeEdge does not modify graph1\r\n System.out.println(graph1.removeEdge(Pair.make(\"one\", \"two\")));\r\n // ...as can be witnessed by displaying graph1\r\n System.out.println(graph1);\r\n }", "private void setGraphParameters()\r\n\t{\r\n\r\n\t\tlogger.info(\"Setting graph parameters.\");\r\n\t\tlogger.info(\"Treating the graph as undirected.\");\r\n\r\n\t\t// Diameter is the maximum of all shortest path lengths\r\n\t\t// Average shortest path length is (as the name says) the average of the\r\n\t\t// shortest path length between all node pairs\r\n\r\n\t\tdouble maxPathLength = 0.0;\r\n\t\tdouble shortestPathLengthSum = 0.0;\r\n\t\tdouble degreeSum = 0.0;\r\n\t\tdouble clusterCoefficientSum = 0.0;\r\n\r\n\t\t// iterate over all node pairs\r\n\t\tCollection<Entity> nodes = undirectedGraph.getVertices();\r\n\r\n\t\t// a hashset of the nodes which have been the start node of the\r\n\t\t// computation process\r\n\t\t// for such nodes all path lengths have been already computed\r\n\t\tSet<Entity> wasSource = new HashSet<Entity>();\r\n\r\n\t\tint progress = 0;\r\n\t\tfor (Entity node : nodes) {\r\n\r\n\t\t\tprogress++;\r\n\t\t\tLoggingUtils.printProgressInfo(progress, nodes.size(), 100,\r\n\t\t\t\t\tLoggingUtils.ProgressInfoMode.TEXT,\r\n\t\t\t\t\t\"Getting graph parameters\");\r\n\r\n\t\t\tint nodeDegree = getDegree(node);\r\n\t\t\t// degreeSum += nodeDegree;\r\n\r\n\t\t\t// logger.info(\"Updating degree distribution.\");\r\n\t\t\t// updateDegreeDistribution(nodeDegree);\r\n\r\n\t\t\t// cluster coefficient C_v of a node v is the fraction of the\r\n\t\t\t// connections that exist between the\r\n\t\t\t// neighbor nodes (k_v) of this node and all allowable connections\r\n\t\t\t// between the neighbors (k_v(k_v -1)/2)\r\n\t\t\t// for degrees 0 or 1 there is no cluster coefficient, as there can\r\n\t\t\t// be no connections between neighbors\r\n\t\t\tif (nodeDegree > 1) {\r\n\t\t\t\tdouble numberOfNeighborConnections = getNumberOfNeighborConnections(node);\r\n\t\t\t\tclusterCoefficientSum += (numberOfNeighborConnections / (nodeDegree * (nodeDegree - 1)));\r\n\t\t\t}\r\n\r\n\t\t\t// Returns the new shortestPathLengthSum and the new maxPathLength.\r\n\t\t\t// They are returned as an double array for performance reasons.\r\n\t\t\t// I do not want to create an object, as this function is called\r\n\t\t\t// *very* often\r\n\t\t\t// logger.info(\"Computing shortest path lengths.\");\r\n\t\t\tdouble[] returnValues = computeShortestPathLengths(node,\r\n\t\t\t\t\tshortestPathLengthSum, maxPathLength, wasSource);\r\n\t\t\tshortestPathLengthSum = returnValues[0];\r\n\t\t\tmaxPathLength = returnValues[1];\r\n\r\n\t\t\t// save the info that the node was already used as the source of\r\n\t\t\t// path computation\r\n\t\t\twasSource.add(node);\r\n\t\t}\r\n\r\n\t\tif (nodes.size() > 1) {\r\n\t\t\tthis.averageShortestPathLength = shortestPathLengthSum\r\n\t\t\t\t\t/ (nodes.size() * (nodes.size() - 1) / 2);\r\n\t\t\t// sum of path lengths / (number of node pairs)\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.averageShortestPathLength = 0; // there is only one node\r\n\t\t}\r\n\t\tthis.diameter = maxPathLength;\r\n\t\tthis.averageDegree = degreeSum / nodes.size();\r\n\t\tthis.clusterCoefficient = clusterCoefficientSum / nodes.size();\r\n\t}", "public interface Graph {\n\n\t/**\n\t * Method to add the edge from start to end to the graph.\n\t * Adding self-loops is not allowed.\n\t * @param start start vertex\n\t * @param end end vertex\n\t */\n\tpublic void addEdge(int start, int end);\n\n\t/**\n\t * Method to add the edge with the given weight to the graph from start to end.\n\t * Adding self-loops is not allowed.\n\t * @param start number of start vertex\n\t * @param end number of end vertex\n\t * @param weight weight of edge\n\t */\n\tpublic void addEdge(int start, int end, double weight);\n\n\t/**\n\t * Method to add a vertex to the graph.\n\t */\n\tpublic void addVertex();\n\t\n\t/**\n\t * Method to add multiple vertices to the graph.\n\t * @param n number of vertices to add\n\t */\n\tpublic void addVertices(int n);\n\n\t/**\n\t * Returns all neighbors of the given vertex v (all vertices i with {i,v} in E or (i,v) or (v,i) in E).\n\t * @param v vertex whose neighbors shall be returned\n\t * @return List of vertices adjacent to v\n\t */\n\tpublic List<Integer> getNeighbors(int v);\n\n\t/**\n\t * Returns a list containing all predecessors of v. In an undirected graph all neighbors are returned.\n\t * @param v vertex id\n\t * @return list containing all predecessors of v\n\t */\n\tpublic List<Integer> getPredecessors(int v);\n\n\t/**\n\t * Returns a list containing all successors v. In an undirected graph all neighbors are returned.\n\t * @param v vertex id\n\t * @return list containing all edges starting in v\n\t */\n\tpublic List<Integer> getSuccessors(int v);\n\n\t/**\n\t * Method to get the number of vertices.\n\t * @return number of vertices\n\t */\n\tpublic int getVertexCount();\n\n\t/**\n\t * Method to get the weight of the edge {start, end} / the arc (start, end).\n\t * @param start start vertex of edge / arc\n\t * @param end end vertex of edge / arc\n\t * @return Double.POSITIVE_INFINITY, if the edge does not exist, c_{start, end} otherwise\n\t */\n\tpublic double getEdgeWeight(int start, int end);\n\n\t/**\n\t * Method to test whether the graph contains the edge {start, end} / the arc (start, end).\n\t * @param start start vertex of the edge\n\t * @param end end vertex of the edge\n\t */\n\tpublic boolean hasEdge(int start, int end);\n\n\t/**\n\t * Method to remove an edge from the graph, defined by the vertices start and end.\n\t * @param start start vertex of the edge\n\t * @param end end vertex of the edge\n\t */\n\tpublic void removeEdge(int start, int end);\n\n\t/**\n\t * Method to remove the last vertex from the graph.\n\t */\n\tpublic void removeVertex();\n\n\t/**\n\t * Returns whether the graph is weighted.\n\t * A graph is weighted if an edge with weight different from 1.0 has been added to the graph.\n\t * @return true if the graph is weighted\n\t */\n\tpublic boolean isWeighted();\n\n\t/**\n\t * Returns whether the graph is directed.\n\t * @return true if the graph is directed\n\t */\n\tpublic boolean isDirected();\n\n}", "public void update(HashMap um) {\n if (false) {\n if (TRACE_INTRA) out.println(\"Updating edges for node \"+this.toString_long());\n Map m = this.predecessors;\n if (m != null) {\n this.predecessors = new LinkedHashMap();\n updateMap_unknown(um, m.entrySet().iterator(), this.predecessors);\n }\n m = this.addedEdges;\n if (m != null) {\n this.addedEdges = new LinkedHashMap();\n updateMap_unknown(um, m.entrySet().iterator(), this.addedEdges);\n }\n m = this.accessPathEdges;\n if (m != null) {\n this.accessPathEdges = new LinkedHashMap();\n updateMap_unknown(um, m.entrySet().iterator(), this.accessPathEdges);\n }\n if (this.passedParameters != null) {\n Set pp = SortedArraySet.FACTORY.makeSet(HashCodeComparator.INSTANCE);\n pp.addAll(this.passedParameters); \n this.passedParameters = pp;\n }\n addGlobalEdges(this);\n }\n }", "public void update(HashMap um) {\n if (false) {\n if (TRACE_INTRA) out.println(\"Updating edges for node \"+this.toString_long());\n Map m = this.predecessors;\n if (m != null) {\n this.predecessors = new LinkedHashMap();\n updateMap_unknown(um, m.entrySet().iterator(), this.predecessors);\n }\n m = this.addedEdges;\n if (m != null) {\n this.addedEdges = new LinkedHashMap();\n updateMap_unknown(um, m.entrySet().iterator(), this.addedEdges);\n }\n m = this.accessPathEdges;\n if (m != null) {\n this.accessPathEdges = new LinkedHashMap();\n updateMap_unknown(um, m.entrySet().iterator(), this.accessPathEdges);\n }\n if (this.passedParameters != null) {\n Set pp = SortedArraySet.FACTORY.makeSet(HashCodeComparator.INSTANCE);\n pp.addAll(this.passedParameters); \n this.passedParameters = pp;\n }\n addGlobalEdges(this);\n }\n }", "@Override\n public final ObjectGraph getObjectGraph() {\n return mObjectGraph;\n }", "@Override\r\n\tpublic void update(Graphics g) {\r\n\t\t// S*ystem.out.println(\"Graph.update\");\r\n\t\t// paint(g);\r\n\t\t// super.update(g);\r\n\t}", "public void setGraph(Graph<V,E> graph);", "public abstract void reduce(PDG graph);", "public abstract String rawGraphToString();", "@Test\n void testDeepCopy(){\n weighted_graph g = new WGraph_DS();\n weighted_graph_algorithms ga = new WGraph_Algo();\n ga.init(g);\n assertTrue(ga.isConnected());\n g.addNode(1);\n g.addNode(2);\n g.addNode(3);\n g.addNode(4);\n g.connect(1,2,13);\n g.connect(1,3,14);\n g.connect(1,4,15);\n g.connect(2,3,23);\n weighted_graph g1 = ga.copy();\n g1.removeNode(3);\n assertNotNull(g.getNode(3));\n assertEquals(14,g.getEdge(1,3));\n assertNull(g1.getNode(3));\n assertEquals(-1,g1.getEdge(1,3));\n }", "@Override\n\tpublic graph copy() {\n\t\tgraph copy = new DGraph();\n\t\tCollection<node_data> nColl = this.GA.getV();\n\t\tfor (node_data node : nColl) {\n\t\t\tnode_data temp = new Node((Node) node );\n\t\t\tcopy.addNode(node);\n\t\t}\n\t\tCollection<node_data> nColl2 = this.GA.getV();\n\t\tfor (node_data node1 : nColl2) {\n\t\t\tCollection<edge_data> eColl = this.GA.getE(node1.getKey());\n\t\t\tif (eColl!=null) {\n\t\t\t\tfor (edge_data edge : eColl) {\n\t\t\t\t\tcopy.connect(edge.getSrc(), edge.getDest(), edge.getWeight());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn copy;\n\t}", "public interface Graph<V>\n{\n /**\n * Adds the specified vertex to this graph. The given vertex will not be\n * added to this graph if this graph contains the vertex. In other words\n * this graph does not allow duplicate vertices. The way this graph\n * concludes if the specified vertex is a duplicate is through the equals\n * convention. For example <code>element.equals(vertex)</code>.\n *\n * <p>This method will return false if the given vertex is <code>null\n * </code></p>.\n * \n * @param vertex the vertex to add to this graph.\n *\n * @return <tt>true</tt> of the specified vertex is added to this\n * graph; otherwise <tt>false</tt>.\n */\n public boolean addVertex(V vertex);\n\n /**\n * Removes the specified vertex from this graph if the vertex actually\n * exists in this graph. Any edges that are connected to the given\n * vertex will also be removed from this graph. If the specified vertex\n * is not contained within this graph then the graph is unchanged and this\n * operation return <tt>false</tt>; otherwise <tt>true</tt>.\n *\n * <p>This method will return false if the given vertex is <code>null\n * </code></p>.\n * \n * @param vertex the vertex to remove from this graph.\n * \n * @return <tt>true</tt> if the given vertex is removed; otherwise <tt>\n * false</false>\n */\n public boolean removeVertex(V vertex);\n\n /**\n * Gets the set of vertices contained within this graph. The set is\n * an unmodifiable view so modifications to the set do not affect this\n * graph's internal set of vertices. \n *\n * @return a read-only view of the vertices contained withing this graph.\n */\n public Set<V> getVertices();\n\n /**\n * Checks if this graph contains the specified vertex. If the given\n * vertex is present in this graph, this operation returns <tt>true</tt>\n * ;otherwise <tt>false</tt>. The way this graph concludes if the\n * specified vertex is a present is through the equals convention. For\n * example <code>element.equals(vertex)</code>.\n *\n * <p>This method will return false if the given vertex is <code>null\n * </code></p>.\n * \n * @param vertex the vertex to verify is present within this graph.\n * \n * @return <tt>true</tt> if the specified vertex is present in this graph;\n * otherwise <tt>false</tt>.\n */\n public boolean containsVertex(V vertex);\n\n /**\n * Adds an edge (based on the specified vertices) to this graph. The edge\n * will not be added to this graph if this graph already contains an edge\n * between the specified vertices. In other words this graph does not allow\n * duplicate edges.\n * \n * <p>This method will return false if any of the given vertices are\n * <code>null</code></p>.\n *\n * @param source the source vertex for the edge to add to this graph.\n * @param target the target vertex for the edge to add to this graph.\n *\n * @return <tt>true</tt> of the edge is added to this graph; otherwise\n * <tt>false</tt>.\n */\n public Edge<V> addEdge(V source, V target);\n\n /**\n * Removes the edge (based on the given vertices) from this graph if the\n * edge actually exists in this graph. If the specified vertices are not\n * contained within this graph then the graph is unchanged and this\n * operation returns <tt>false</tt>; otherwise <tt>true</tt>.\n *\n * <p>This method will return false if any of the given vertices are\n * <code>null</code></p>.\n *\n * @param source the source vertex for the edge to remove.\n * @param target the target vertex for the edge to remove.\n *\n * @return <tt>true</tt> if the edge that contains the specified vertices\n * is removed; otherwise <tt>\n * false</false>\n */\n public boolean removeEdge(V source, V target);\n\n /**\n * Gets the edge connected by the given source and target vertices. If\n * either of the specified vertices are not present in this graph, then\n * this operation returns null. If any of the specified vertices are\n * <code>null</code> then <code>null</code> is returned.\n *\n * <p>The order of vertices in the resulting edge is not guaranteed if this\n * graph is an undirected graph.</p> \n *\n * @param source the source vertex for the edge to lookup in this graph.\n * @param target the target vertex for the edge to lookup in this graph.\n *\n * @return an edge that connects the specified vertices.\n */\n public Edge<V> getEdge(V source, V target);\n\n /**\n * Gets a set of edges connected to the specified vertex that are contained\n * within this graph. The set is an unmodifiable view so modifications to\n * the set do not affect this graph's internal set of edges.\n *\n * @param vertex the vertex connected to the set of edges to lookup.\n * \n * @return a read-only view of the edges connected to the given vertex that\n * are withing this graph.\n */\n public Set<Edge<V>> getEdges(V vertex);\n\n /**\n * Gets the set of edges contained within this graph. The set is\n * an unmodifiable view so modifications to the set do not affect this\n * graph's internal set of edges.\n *\n * @return a read-only view of the edges contained withing this graph.\n */\n public Set<Edge<V>> edgeSet();\n\n /**\n * Checks if this graph contains an edge based on the specified vertices.\n * If either of the given vertices are not present in this graph, this\n * operation returns <tt>false</tt>. Both specified vertices have to exists\n * in this graph and have a defined edge in order for this method to return\n * <tt>true</tt>.\n *\n * <p>This method will return false if any of the given vertices are\n * <code>null</code></p>.\n *\n * @param source the source vertex for the edge to verify is present within\n * this graph.\n * @param target the target vertex for the edge to verify is present within \n * this graph.\n *\n * @return <tt>true</tt> if the edge is present in this graph; otherwise\n * <tt>false</tt>.\n */\n public boolean containsEdge(V source, V target);\n\n /**\n * Checks if this graph contains the specified edge. If the given edge is\n * not present in this graph, this operation returns <tt>false</tt>.\n *\n * <p>This method will return false if the given edge is <code>null</code>\n * </p>.\n *\n * @param edge the edge to verify is present within this graph.\n *\n * @return <tt>true</tt> if the specified edge is present in this graph;\n * otherwise <tt>false</tt>.\n */\n public boolean containsEdge(Edge<V> edge);\n\n /**\n *\n * @return\n */\n public Set<V> breadthFirstSearch();\n\n /**\n *\n * @return\n */\n public Set<V> depthFirstSearch();\n\n /**\n * \n * @return\n */\n public Set<Edge<V>> minSpanningTree();\n}", "GraphFactory getGraphFactory();", "public void setNodesToUnvisited(){\n for(GraphNode node: graphNode){\n if(node.visited){\n node.visited = false;\n }\n }\n }", "void processGraphData(Graph aNodes);", "protected void processVertex(Vertex w){\n\t}", "Graph getRecentGraph();", "public void graphCommiting(Graph _graph, Request _request) throws Exception {\n\t}", "public weighted_graph copy();", "public interface GraphInterface {\n\n\t/**\n\t * Finds the shortest path between the start and end vertices.\n\t * @param start -- The starting node\n\t * @param end -- The target node\n\t * @return A list representing the desired path, or NULL if the vertices are not connected.\n\t * @throws GraphException if start and end are not in the graph\n\t */\n\tIterable<Vertex> computePath(Vertex start, Vertex end) throws GraphException;\n\t\n\t/**\n\t * Finds the shortest path between the start and end vertices, given that start is not in the graph\n\t * @param start -- The starting node\n\t * @param end -- The target node\n\t * @return A list representing the desired path, or NULL if the vertices are not connected.\n\t * @throws GraphException if end is not in the graph\n\t */\n\tIterable<Vertex> computePathToGraph(Loc start, Vertex end) throws GraphException;\n\t\n\t/**\n\t * Finds the closest vertex to pos in the graph\n\t * @param pos -- The position not on the graph.\n\t * @return closest vertex to pos in the graph.\n\t */\n\tPair<Vertex, Double> closestVertexToPath(Loc pos);\n\t\n\t/**\n\t * adds a single unconnected vertex v \n\t * @param v -- The vertex to be added\n\t */\n\tvoid addVertex(Vertex v);\n\t\n\t/**\n\t * Adds a single vertex with edges (v, neighbor) for each neighbor\n\t * @param v -- The vertex to be added\n\t * @param neighbors -- The neighbors of v\n\t * @param weights -- The corresponding weights of each (v, neighbor)\n\t * @throws VertexNotInGraphException if neighbors are not in the graph\n\t */\n\tvoid addVertex(Vertex v, ArrayList<Vertex> neighbors, ArrayList<Double> weights) throws VertexNotInGraphException;\n\t\n\t/**\n\t * Removes v from the Graph\n\t * @param v -- The vertex to be removed\n\t * @throws VertexNotInGraphException if v is not in the graph\n\t */\n\tvoid removeVertex(Vertex v) throws GraphException;\n\t\n\t/**\n\t * Adds an edge between v1 and v2 in the graph\n\t * @param v1 -- The first vertex the edge is incident to\n\t * @param v2 -- The second vertex the edge is incident to\n\t * @param w -- The weight of the edge\n\t * @throws VertexNotInGraphException if v1 or v2 are not in the graph\n\t */\n\tvoid addEdge(Vertex v1, Vertex v2, Double w) throws VertexNotInGraphException;\n\t\n\t/**\n\t * Removes the edge (v1, v2) in the graph\n\t * @param v1 -- The first vertex the edge is incident to\n\t * @param v2 -- The second vertex the edge is incident to\n\t * @throws VertexNotInGraphException if v1 or v2 are not in the graph\n\t */\n\tvoid removeEdge(Vertex v1, Vertex v2) throws GraphException;\n}", "public ConcreteEdgesGraph() {\r\n vertices.clear();\r\n edges.clear();\r\n checkRep();\r\n }", "void graph3() {\n\t\tconnect(\"0\", \"0\");\n\t\tconnect(\"2\", \"2\");\n\t\tconnect(\"2\", \"3\");\n\t\tconnect(\"3\", \"0\");\n\t}", "public void clearGraph(){\n\t\tthis.tools.clearGraph(graph);\n\t}", "private void buildGraph() {\n\t\tfor (Map<String, Channel> map: this.channels.values()) {\n\t\t\t// Add all channels\n\t\t\t\n\t\t\t// TODO: deal with channels spread over multiple redis instances (replicated)\n\t\t\t\n\t\t\t// Add all but ignore if some channels should be ignored\n\t\t\tfor (Map.Entry<String, Channel> entry: map.entrySet()) {\n\t\t\t\tif (IGNORE_UNICAST_AND_SUBSCRIBE) {\n\t\t\t\t\tif (entry.getKey().startsWith(\"unicast\") == false && entry.getKey().startsWith(\"sub\") == false) {\n\t\t\t\t\t\tif (entry.getKey().startsWith(\"tile\")) {\n\t\t\t\t\t\t\tchannelList.add(entry.getValue());\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tchannelList.add(entry.getValue());\n\t\t\t\t}\n\t\t\t}\n\t\t\t//channelList.addAll(map.values());\n\t\t}\n\t\t\n\t\t// Double-iteration to build pairs\n\t\tfor (Channel channel1: channelList) {\n\t\t\tfor (Channel channel2: channelList) {\n\t\t\t\tif (channel1 != channel2) {\n\t\t\t\t\t// Put channels as nodes in the set\n\t\t\t\t\tthis.nodes.add(channel1.getChannelName());\n\t\t\t\t\tthis.nodes.add(channel2.getChannelName());\n\t\t\t\t\t\n\t\t\t\t\t// Build pair\n\t\t\t\t\tChannelPair pair = new ChannelPair(channel1.getChannelName(), channel2.getChannelName());\n\t\t\t\t\t\n\t\t\t\t\t// Check if it is contained in the map\n\t\t\t\t\tif (this.pairMultiplicity.containsKey(pair) == false) {\n\t\t\t\t\t\t// Count common subscribers\n\t\t\t\t\t\tint commonSubscribers = countCommonSubscribers(channel1, channel2);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (commonSubscribers > 0) {\n\t\t\t\t\t\t\t// Perform computation and add it\n\t\t\t\t\t\t\tthis.pairMultiplicity.put(pair, commonSubscribers);\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}\n\t}", "@Override\n public directed_weighted_graph copy() {\n try {\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n ObjectOutputStream oos = new ObjectOutputStream(bos);\n oos.writeObject(G);\n oos.flush();\n oos.close();\n bos.close();\n byte[] byteData = bos.toByteArray();\n\n ByteArrayInputStream bis = new ByteArrayInputStream(byteData);\n return (directed_weighted_graph) (new ObjectInputStream(bis).readObject());\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "public interface BdObjectGraph\r\n{\r\n // Object Graph is a tree representation of BD object.\r\n // From root node to sub child node to finally leaf object graph shows the location of object.\r\n // for example \r\n //root=station,\r\n //station has 3 clusters=Nodes\r\n // Clusters has many objects for example file objects,schedule objects \r\n // then sub-node=file object,schedule object \r\n //Each node has resource description allocator,for example if i want to get file object in clsuter1\r\n //in station1 then resource description allocator of Big Dinosaur gives me \r\n //stationname,clustername,filename as a query \r\n //the syntax for query has to be decided in what format\r\n // may be station:cluster:where:filename=\"big dinosaur u will rule \"\r\n //Challenges:On what interval of time the BdObjectGraph has to be persist or it is stored in file system or create object\r\n //in runtime \r\n//////////////////////////////////\r\n //May be representing tree in file system or in object \r\n \r\n //for Example Example 1\r\n // Bd has different types of object graph on the basis of object type\r\n // which tree as object graph to search is determined on the basis of query syntax\r\n // for example\r\n // Station:Abcbankclientstation(in sense it represent one machine virtually but is a collection of many physical clusters or virtual clusters)\r\n // this will search station tree object with key as Abcbankclientstation.It goes on traversing on tree until it gets Abcbankclientstation and gets space object allcoated for this client in sense of cluster \r\n\r\n //for Example Example 2\r\n //Now after transversing cluster object with allocated space is retirved then again i need to retirve file object from that cluster\r\n //then again the query is \r\n //Station:Abcbankclientstation:insurancestore:abishkar.txt\r\n //now again file object graph tree is traversed until i get abishkar.txt and goes on recusrsively\r\n //or \r\n //Station:Abcbankclientstation:insurancestore:insuranceObject\r\n //insurancestore has large no of insuranceObject kept as tree,so again insurancestore is traversed until\r\n //insuranceObject is retirved and goes on recusrsively \r\n \r\n \r\n //Object graph is continuously updated ot inserted by another program in continuous basis on the basis of tree type object\r\n \r\n}", "public interface GraphStorage {\r\n\r\n /**\r\n * All nodes in the graph. It can be used to iterate all at once,\r\n * too costly something like depth-first search or breadth first search.\r\n * Graph representations normally do not provide this functionality\r\n * directly, here this can be a beneficial feature because of storage\r\n * abstraction.\r\n *\r\n * @return List of {@link org.test.gserver.GraphNode}\r\n */\r\n List<GraphNode> nodes();\r\n\r\n /**\r\n * Only nodes with no incoming edges. It can be traversed\r\n * all graph through neighbors.\r\n *\r\n * @return List of {@link org.test.gserver.GraphNode}\r\n */\r\n List<GraphNode> roots();\r\n\r\n /**\r\n * Removes a node from storage.\r\n * Implementer must delete all incoming edges to this node too.\r\n */\r\n void removeNode(NodeKey key);\r\n\r\n /**\r\n * Creates a node for given id and type in storage.\r\n */\r\n void createNode(NodeKey key);\r\n\r\n /**\r\n * As default adds neighbors directed from given source to given\r\n * target.\r\n *\r\n * @param target target graph node\r\n */\r\n void addNeighbor(NodeKey key, GraphNode target, Map<String, String> attr);\r\n\r\n /**\r\n * Return list of outgoing nodes from given source node.\r\n *\r\n * @return\r\n */\r\n List<GraphEdge> getNeighbors(NodeKey key);\r\n\r\n /**\r\n * Adds attributes to given node.\r\n *\r\n * @param attr attribute list as key-value pairs {@link java.util.Map}\r\n */\r\n void putAttr(NodeKey key, Map<String, String> attr);\r\n\r\n /**\r\n * Returns attributes of given node.\r\n *\r\n * @return list of key-value pairs\r\n */\r\n Map<String, String> getAttr(NodeKey key);\r\n\r\n int nodesSize();\r\n\r\n boolean atomicLock(String owner, NodeKey key, long maxLockTime);\r\n\r\n void releaseLock(String owner, NodeKey key);\r\n\r\n List<GraphEdge> edges();\r\n\r\n List<GraphEdge> getEdges(NodeKey source, NodeKey target);\r\n\r\n void markCheckPoint();\r\n\r\n void undo();\r\n\r\n void redo();\r\n\r\n boolean nodeExist(NodeKey key);\r\n}", "private List<Node> compute() {\n\t\t\tgetGraphFromResolvedTree(root);\n\t\t\tdepthFirst(root);\n\t\t\treturn result;\n\t\t}", "public Graph getGraph() {\n\t\treturn this.Graph;\n\t}", "@Test\n public void dynamicLayerChangeTest() throws InterruptedException, PluginException {\n ReadableGraph readableGraph = graph.getReadableGraph();\n try {\n assertEquals(readableGraph.getIntValue(layerMaskV, vxId1), 1);\n assertEquals(readableGraph.getFloatValue(layerVisibilityV, vxId1), 1.0f);\n\n assertEquals(readableGraph.getIntValue(layerMaskV, vxId2), 1);\n assertEquals(readableGraph.getFloatValue(layerVisibilityV, vxId2), 1.0f);\n\n assertEquals(readableGraph.getIntValue(layerMaskV, vxId3), 1);\n assertEquals(readableGraph.getFloatValue(layerVisibilityV, vxId3), 1.0f);\n } finally {\n readableGraph.release();\n }\n\n WritableGraph writableGraph = graph.getWritableGraph(\"\", true);\n\n try {\n writableGraph.setLongValue(bitmaskAttributeId, 0, 0b10);\n writableGraph.setLongValue(layerMaskV, vxId1, 3);\n writableGraph.setFloatValue(layerVisibilityV, vxId1, 1.0f);\n writableGraph.setLongValue(layerMaskV, vxId2, 1);\n writableGraph.setFloatValue(layerVisibilityV, vxId2, 0.0f);\n writableGraph.setLongValue(layerMaskV, vxId3, 1);\n writableGraph.setFloatValue(layerVisibilityV, vxId3, 0.0f);\n } finally {\n writableGraph.commit();\n }\n\n readableGraph = graph.getReadableGraph();\n try {\n assertEquals(readableGraph.getLongValue(bitmaskAttributeId, 0), 0b10);\n assertEquals((long) readableGraph.getObjectValue(layerMaskV, vxId1), 3);\n assertEquals(readableGraph.getObjectValue(layerVisibilityV, vxId1), 1.0f);\n\n assertEquals((long) readableGraph.getObjectValue(layerMaskV, vxId2), 1);\n assertEquals(readableGraph.getObjectValue(layerVisibilityV, vxId2), 0.0f);\n\n assertEquals((long) readableGraph.getObjectValue(layerMaskV, vxId3), 1);\n assertEquals(readableGraph.getObjectValue(layerVisibilityV, vxId3), 0.0f);\n } finally {\n readableGraph.release();\n }\n\n // change an attribute to trigger switching of graph object within dual graph\n PluginExecution.withPlugin(new SimpleEditPlugin(\"Test: change attribute value\") {\n @Override\n public void edit(final GraphWriteMethods graph, final PluginInteraction interaction, final PluginParameters parameters) throws InterruptedException {\n final int maxTransactionsId = VisualConcept.GraphAttribute.MAX_TRANSACTIONS.ensure(graph);\n graph.setLongValue(maxTransactionsId, 0, 9);\n }\n }).executeNow(graph);\n\n // Check Vertex set correctly on second graph of dualgraph\n readableGraph = graph.getReadableGraph();\n try {\n assertEquals((long) readableGraph.getObjectValue(layerMaskV, vxId1), 3);\n assertEquals(readableGraph.getObjectValue(layerVisibilityV, vxId1), 1.0f);\n\n assertEquals((long) readableGraph.getObjectValue(layerMaskV, vxId2), 1);\n assertEquals(readableGraph.getObjectValue(layerVisibilityV, vxId2), 0.0f);\n\n assertEquals((long) readableGraph.getObjectValue(layerMaskV, vxId3), 1);\n assertEquals(readableGraph.getObjectValue(layerVisibilityV, vxId3), 0.0f);\n } finally {\n readableGraph.release();\n }\n\n writableGraph = graph.getWritableGraph(\"\", true);\n\n try {\n writableGraph.setLongValue(layerMaskV, vxId1, 3);\n writableGraph.setFloatValue(layerVisibilityV, vxId1, 1.0f);\n writableGraph.setLongValue(layerMaskV, vxId2, 1);\n writableGraph.setFloatValue(layerVisibilityV, vxId2, 1.0f);\n writableGraph.setLongValue(layerMaskV, vxId3, 1);\n writableGraph.setFloatValue(layerVisibilityV, vxId3, 1.0f);\n } finally {\n writableGraph.commit();\n }\n\n //PluginExecution.withPlugin(new UpdateLayerSelectionPlugin(queries, 1)).executeNow(graph);\n readableGraph = graph.getReadableGraph();\n try {\n assertEquals(readableGraph.getLongValue(layerMaskV, vxId1), 3);\n assertEquals(readableGraph.getFloatValue(layerVisibilityV, vxId1), 1.0f);\n\n assertEquals(readableGraph.getLongValue(layerMaskV, vxId2), 1);\n assertEquals(readableGraph.getFloatValue(layerVisibilityV, vxId2), 1.0f);\n\n assertEquals(readableGraph.getLongValue(layerMaskV, vxId3), 1);\n assertEquals(readableGraph.getFloatValue(layerVisibilityV, vxId3), 1.0f);\n } finally {\n readableGraph.release();\n }\n\n writableGraph = graph.getWritableGraph(\"\", true);\n\n try {\n writableGraph.setLongValue(layerMaskV, vxId1, 3);\n writableGraph.setFloatValue(layerVisibilityV, vxId1, 0.0f);\n writableGraph.setLongValue(layerMaskV, vxId2, 0b101);\n writableGraph.setFloatValue(layerVisibilityV, vxId2, 1.0f);\n writableGraph.setLongValue(layerMaskV, vxId3, 1);\n writableGraph.setFloatValue(layerVisibilityV, vxId3, 0.0f);\n } finally {\n writableGraph.commit();\n }\n\n readableGraph = graph.getReadableGraph();\n try {\n assertEquals(readableGraph.getLongValue(layerMaskV, vxId1), 3);\n assertEquals(readableGraph.getFloatValue(layerVisibilityV, vxId1), 0.0f);\n\n assertEquals(readableGraph.getLongValue(layerMaskV, vxId2), 0b101);\n assertEquals(readableGraph.getFloatValue(layerVisibilityV, vxId2), 1.0f);\n\n assertEquals(readableGraph.getLongValue(layerMaskV, vxId3), 1);\n assertEquals(readableGraph.getFloatValue(layerVisibilityV, vxId3), 0.0f);\n } finally {\n readableGraph.release();\n }\n\n writableGraph = graph.getWritableGraph(\"\", true);\n try {\n writableGraph.setLongValue(layerMaskV, vxId1, 3);\n writableGraph.setFloatValue(layerVisibilityV, vxId1, 1.0f);\n writableGraph.setLongValue(layerMaskV, vxId2, 0b101);\n writableGraph.setFloatValue(layerVisibilityV, vxId2, 1.0f);\n writableGraph.setLongValue(layerMaskV, vxId3, 1);\n writableGraph.setFloatValue(layerVisibilityV, vxId3, 1.0f);\n } finally {\n writableGraph.commit();\n }\n\n readableGraph = graph.getReadableGraph();\n try {\n assertEquals(readableGraph.getLongValue(layerMaskV, vxId1), 3);\n assertEquals(readableGraph.getFloatValue(layerVisibilityV, vxId1), 1.0f);\n\n assertEquals(readableGraph.getLongValue(layerMaskV, vxId2), 0b101);\n assertEquals(readableGraph.getFloatValue(layerVisibilityV, vxId2), 1.0f);\n\n assertEquals(readableGraph.getLongValue(layerMaskV, vxId3), 1);\n assertEquals(readableGraph.getFloatValue(layerVisibilityV, vxId3), 1.0f);\n } finally {\n readableGraph.release();\n }\n\n writableGraph = graph.getWritableGraph(\"\", true);\n try {\n writableGraph.setLongValue(layerMaskV, vxId1, 1);\n writableGraph.setFloatValue(layerVisibilityV, vxId1, 0.0f);\n writableGraph.setLongValue(layerMaskV, vxId2, 0b111);\n writableGraph.setFloatValue(layerVisibilityV, vxId2, 1.0f);\n writableGraph.setLongValue(layerMaskV, vxId3, 1);\n writableGraph.setFloatValue(layerVisibilityV, vxId3, 0.0f);\n } finally {\n writableGraph.commit();\n }\n\n readableGraph = graph.getReadableGraph();\n try {\n assertEquals(readableGraph.getLongValue(layerMaskV, vxId1), 1);\n assertEquals(readableGraph.getFloatValue(layerVisibilityV, vxId1), 0.0f);\n\n assertEquals(readableGraph.getLongValue(layerMaskV, vxId2), 0b111);\n assertEquals(readableGraph.getFloatValue(layerVisibilityV, vxId2), 1.0f);\n\n assertEquals(readableGraph.getLongValue(layerMaskV, vxId3), 1);\n assertEquals(readableGraph.getFloatValue(layerVisibilityV, vxId3), 0.0f);\n } finally {\n readableGraph.release();\n }\n\n PluginExecution.withPlugin(new SimpleEditPlugin(\"Test: change attribute value\") {\n @Override\n public void edit(final GraphWriteMethods graph, final PluginInteraction interaction, final PluginParameters parameters) throws InterruptedException {\n final int maxTransactionsId = VisualConcept.GraphAttribute.MAX_TRANSACTIONS.ensure(graph);\n graph.setIntValue(maxTransactionsId, 0, 9);\n }\n }).executeNow(graph);\n\n readableGraph = graph.getReadableGraph();\n try {\n assertEquals(readableGraph.getLongValue(layerMaskV, vxId1), 1);\n assertEquals(readableGraph.getFloatValue(layerVisibilityV, vxId1), 0.0f);\n\n assertEquals(readableGraph.getLongValue(layerMaskV, vxId2), 0b111);\n assertEquals(readableGraph.getFloatValue(layerVisibilityV, vxId2), 1.0f);\n\n assertEquals(readableGraph.getLongValue(layerMaskV, vxId3), 1);\n assertEquals(readableGraph.getFloatValue(layerVisibilityV, vxId3), 0.0f);\n } finally {\n readableGraph.release();\n }\n }", "public static Graph makeMeAGraph(Set<Operation> operations, State init){\n Graph graph = new implementGraph(operations , init) ;\n return graph;\n\n\t //\t throw new NotImplementedException();\n }", "public OrientGraph getGraph();", "public abstract DependencyGraph getDependencyGraph();", "private static void resetStatusVertex(Graph graph) {\r\n\t\tfor (int i = 0; i < graph.getVerticesGraph().size(); i++) {\r\n\t\t\tgraph.getVerticesGraph().get(i).alteraStatusVertice(false);\r\n\t\t}\r\n\t}", "private void getGraph (ActionEvent evt) {\n\t\t\t//TODO\n\t}", "public Graph(){\n\t\tthis.sizeE = 0;\n\t\tthis.sizeV = 0;\n\t}", "public OrientGraph getGraphTx();", "private void testBuildGraph() {\n\t\t// All test graphs have a node 8 with children [9, 10]\n\t\tSet<Node> expectedChildren = new HashSet<>();\n\t\texpectedChildren.add(new Node(9));\n\t\texpectedChildren.add(new Node(10));\n\n\t\tStudySetGraph disconnectedGraphWithoutCycle = new StudySetGraph(Edges.disconnectedGraphWithoutCycle);\n\t\tNode node = disconnectedGraphWithoutCycle.getNode(8);\n\t\tassert node != null;\n\t\tassert node.getChildren().equals(expectedChildren);\n\t\t\n\t\tStudySetGraph disconnectedGraphWithCycle = new StudySetGraph(Edges.disconnectedGraphWithCycle);\n\t\tnode = disconnectedGraphWithoutCycle.getNode(8);\n\t\tassert node != null;\n\t\tassert node.getChildren().equals(expectedChildren);\n\t\t\n\t\tStudySetGraph connectedGraphWithCycle = new StudySetGraph(Edges.connectedGraphWithCycle);\n\t\tnode = disconnectedGraphWithoutCycle.getNode(8);\n\t\tassert node != null;\n\t\tassert node.getChildren().equals(expectedChildren);\n\n\t\tStudySetGraph connectedGraphWithoutCycle = new StudySetGraph(Edges.connectedGraphWithoutCycle);\n\t\tnode = disconnectedGraphWithoutCycle.getNode(8);\n\t\tassert node != null;\n\t\tassert node.getChildren().equals(expectedChildren);\n\t}", "@Override\n\tpublic int graphOrder() {\n\t\treturn vertices.size();\n\t}", "private BendExplicitGraphSynchroniser(Graph graph, Set<NodeAttributeToPreserve> nodeAttributesToPreserve, Set<String> edgeAttributesToPreserve) {\n this.originalGraph = graph;\n this.originalPositions = graph.nodeAttribute(StdAttribute.nodePosition);\n this.originalBends = graph.edgeAttribute(StdAttribute.edgePoints);\n this.nodeAttributesToPreserve = nodeAttributesToPreserve;\n this.edgeAttributesToPreserve = edgeAttributesToPreserve;\n\n mirrorGraph = new Graph();\n mirrorPositions = mirrorGraph.nodeAttribute(StdAttribute.nodePosition);\n createMirrorAttributes();\n updateMirror();\n }", "@Override\n public void bfs() {\n\n }", "public void setNewGraph() {\n\tresetHints();\r\n Random random = new Random();\r\n if (graphMode == 1) {\r\n if (selectedSize == 1) {\r\n currentGraph = chromaticManager.calculate(random.nextInt(myInformation.smallGraph) + 1, -1);\r\n }\r\n if (selectedSize == 2) {\r\n currentGraph = chromaticManager.calculate(random.nextInt(myInformation.middleGraph - myInformation.smallGraph) + myInformation.smallGraph + 1, -1);\r\n }\r\n if (selectedSize == 3) {\r\n currentGraph = chromaticManager.calculate(random.nextInt(myInformation.bigGraph - myInformation.middleGraph) + myInformation.middleGraph + 1, -1);\r\n }\r\n }\r\n if (graphMode == 2) {\r\n currentGraph = chromaticManager.calculate(myGraph);\r\n }\r\n if (graphMode == 3) {\r\n try {\r\n stackPane.getChildren().removeAll(textFieldHBox, backPane);\r\n myVertices = Integer.parseInt(textFieldVertices.getText());\r\n myEdges = Integer.parseInt(textFieldEdges.getText());\r\n currentGraph = chromaticManager.calculate(myVertices, myEdges);\r\n setDisplay(currentGraph);\r\n } catch (NumberFormatException e) {\r\n\r\n }\r\n }\r\n threadPoolExecutor.execute(() -> {\r\n NewForce newForce = new NewForce();\r\n currentGraph.setCNumer(newForce.doNewForce(currentGraph,currentGraph.getUpperBound(),currentGraph.getLowerBound()));\r\n });\r\n }", "@Test\n public void testGraphElements(){\n Vertex v1 = new Vertex(1, \"A\");\n Vertex v2 = new Vertex(2, \"B\");\n Vertex v3 = new Vertex(3, \"C\");\n Vertex v4 = new Vertex(4, \"D\");\n Vertex v5 = new Vertex(5, \"E\");\n Vertex v6 = new Vertex(6, \"F\");\n Vertex v7 = new Vertex(7, \"G\");\n Vertex v8 = new Vertex(8, \"H\");\n\n Vertex fakeVertex = new Vertex(100, \"fake vertex\");\n\n Edge<Vertex> e1 = new Edge<>(v1, v2, 1);\n Edge<Vertex> e2 = new Edge<>(v2, v3, 1);\n Edge<Vertex> e3 = new Edge<>(v3, v4, 1);\n Edge<Vertex> e4 = new Edge<>(v2, v4, 1);\n Edge<Vertex> e5 = new Edge<>(v2, v6, 1);\n Edge<Vertex> e6 = new Edge<>(v2, v5, 10);\n Edge<Vertex> e7 = new Edge<>(v5, v6, 10);\n Edge<Vertex> e8 = new Edge<>(v4, v6, 10);\n Edge<Vertex> e9 = new Edge<>(v6, v7, 10);\n Edge<Vertex> e10 = new Edge<>(v7, v8, 10);\n\n Edge<Vertex> fakeEdge = new Edge<>(fakeVertex, v1);\n Edge<Vertex> edgeToRemove = new Edge<>(v2, v7, 200);\n\n Graph<Vertex, Edge<Vertex>> g = new Graph<>();\n g.addVertex(v1);\n g.addVertex(v2);\n g.addVertex(v3);\n g.addVertex(v4);\n g.addVertex(v5);\n g.addVertex(v6);\n g.addVertex(v7);\n g.addVertex(v8);\n g.addEdge(e1);\n g.addEdge(e2);\n g.addEdge(e3);\n g.addEdge(e4);\n g.addEdge(e5);\n g.addEdge(e6);\n g.addEdge(e7);\n g.addEdge(e8);\n g.addEdge(e9);\n g.addEdge(edgeToRemove);\n\n Assert.assertTrue(g.addEdge(e10));\n\n //adding null edge or vertex to graph returns false\n Assert.assertFalse(g.addEdge(null));\n Assert.assertFalse(g.addVertex(null));\n\n //adding edge with a vertex that does not exist in graph g returns false\n Assert.assertFalse(g.addEdge(fakeEdge));\n\n //get an edge that does not exit in graph returns false\n Assert.assertFalse(g.edge(v1, fakeVertex));\n\n //getting length of edge from vertex not in graph g returns false\n Assert.assertEquals(0, g.edgeLength(fakeVertex, v2));\n\n //Remove an edge in graph g returns true\n Assert.assertTrue(g.remove(edgeToRemove));\n\n //Removing edge not in graph g returns false\n Assert.assertFalse(g.remove(fakeEdge));\n\n //Removing vertex not in graph g returns false\n Assert.assertFalse(g.remove(fakeVertex));\n\n //Finding an edge with an endpoint not in graph g returns null\n assertNull(g.getEdge(v1, fakeVertex));\n }", "@Test\n public void shouldOptimizeVisualizationOfThePipelineDependencyGraph() {\n\n String acceptance = \"acceptance\";\n String plugins = \"plugins\";\n String gitPlugins = \"git-plugins\";\n String cruise = \"cruise\";\n String gitTrunk = \"git-trunk\";\n String hgTrunk = \"hg-trunk\";\n String deployGo03 = \"deploy-go03\";\n String deployGo02 = \"deploy-go02\";\n String deployGo01 = \"deploy-go01\";\n String publish = \"publish\";\n\n ValueStreamMap graph = new ValueStreamMap(acceptance, null);\n graph.addUpstreamNode(new PipelineDependencyNode(plugins, plugins), null, acceptance);\n graph.addUpstreamNode(new PipelineDependencyNode(gitPlugins, gitPlugins), null, plugins);\n graph.addUpstreamNode(new PipelineDependencyNode(cruise, cruise), null, plugins);\n graph.addUpstreamMaterialNode(new SCMDependencyNode(gitTrunk, gitTrunk, \"git\"), null, cruise, new MaterialRevision(null));\n graph.addUpstreamMaterialNode(new SCMDependencyNode(hgTrunk, hgTrunk, \"hg\"), null, cruise, new MaterialRevision(null));\n graph.addUpstreamNode(new PipelineDependencyNode(cruise, cruise), null, acceptance);\n graph.addUpstreamMaterialNode(new SCMDependencyNode(hgTrunk, hgTrunk, \"hg\"), null, acceptance, new MaterialRevision(null));\n\n graph.addDownstreamNode(new PipelineDependencyNode(deployGo03, deployGo03), acceptance);\n graph.addDownstreamNode(new PipelineDependencyNode(publish, publish), deployGo03);\n graph.addDownstreamNode(new PipelineDependencyNode(deployGo01, deployGo01), publish);\n graph.addDownstreamNode(new PipelineDependencyNode(deployGo02, deployGo02), acceptance);\n graph.addDownstreamNode(new PipelineDependencyNode(deployGo01, deployGo01), deployGo02);\n\n List<List<Node>> nodesAtEachLevel = graph.presentationModel().getNodesAtEachLevel();\n\n assertThat(nodesAtEachLevel.size(), is(7));\n VSMTestHelper.assertThatLevelHasNodes(nodesAtEachLevel.get(0), 0, gitTrunk, hgTrunk);\n VSMTestHelper.assertThatLevelHasNodes(nodesAtEachLevel.get(1), 1, gitPlugins, cruise);\n VSMTestHelper.assertThatLevelHasNodes(nodesAtEachLevel.get(2), 2, plugins);\n VSMTestHelper.assertThatLevelHasNodes(nodesAtEachLevel.get(3), 0, acceptance);\n VSMTestHelper.assertThatLevelHasNodes(nodesAtEachLevel.get(4), 0, deployGo03, deployGo02);\n VSMTestHelper.assertThatLevelHasNodes(nodesAtEachLevel.get(5), 1, publish);\n VSMTestHelper.assertThatLevelHasNodes(nodesAtEachLevel.get(6), 0, deployGo01);\n\n MatcherAssert.assertThat(graph.findNode(gitTrunk).getDepth(), is(2));\n MatcherAssert.assertThat(graph.findNode(hgTrunk).getDepth(), is(3));\n MatcherAssert.assertThat(graph.findNode(gitPlugins).getDepth(), is(1));\n MatcherAssert.assertThat(graph.findNode(cruise).getDepth(), is(2));\n MatcherAssert.assertThat(graph.findNode(deployGo03).getDepth(), is(1));\n MatcherAssert.assertThat(graph.findNode(deployGo02).getDepth(), is(2));\n MatcherAssert.assertThat(graph.findNode(publish).getDepth(), is(1));\n MatcherAssert.assertThat(graph.findNode(deployGo01).getDepth(), is(1));\n }", "public AbstractListMapGraph()\n\t{\n\t\tsuper();\n\t\tedgeList = new ArrayList<ET>();\n\t\tnodeList = new ArrayList<N>();\n\t\tgcs = new GraphChangeSupport<N, ET>(this);\n\t\tnodeEdgeMap = new HashMap<N, Set<ET>>();\n\t}" ]
[ "0.6808061", "0.65333396", "0.6401247", "0.62348604", "0.61572075", "0.61357653", "0.6047233", "0.6046169", "0.5939551", "0.5938503", "0.5937578", "0.5931796", "0.59267914", "0.5925473", "0.5924952", "0.59183747", "0.587764", "0.5857116", "0.58402103", "0.58374083", "0.58303845", "0.5782202", "0.5767642", "0.57512623", "0.574312", "0.5738787", "0.5735379", "0.5732444", "0.57269114", "0.5726263", "0.57255536", "0.57254106", "0.5713561", "0.5694657", "0.56906277", "0.5688448", "0.5684115", "0.5668554", "0.5656754", "0.56520844", "0.56468683", "0.5630621", "0.56253064", "0.56172293", "0.5613647", "0.56134963", "0.56131494", "0.561008", "0.5595574", "0.5585474", "0.5585249", "0.55840755", "0.55828756", "0.55826837", "0.5580765", "0.5576274", "0.5571819", "0.5571738", "0.5570183", "0.5570183", "0.55579484", "0.55517316", "0.55481714", "0.5546126", "0.5538615", "0.55340695", "0.5531437", "0.5518788", "0.55173653", "0.5508351", "0.54981995", "0.54961133", "0.5495203", "0.54947746", "0.54905266", "0.54894376", "0.54820204", "0.54736257", "0.5471861", "0.5464059", "0.5461455", "0.54603857", "0.54513735", "0.5450325", "0.54477143", "0.5446721", "0.54465693", "0.5436516", "0.5427334", "0.5423909", "0.54214674", "0.5419746", "0.5419522", "0.54190964", "0.54164094", "0.54107374", "0.54105675", "0.5406501", "0.53972375", "0.5397096", "0.53922606" ]
0.0
-1
This is Updated by usha
void delete() { System.out.println("This method is from subject class for abstract1"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "public void willbeUpdated() {\n\t\t\n\t}", "@Override\r\n\tpublic String update() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String update() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\r\n\r\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}", "@Override\n public void update() {\n \n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void update() {\n\r\n\t}", "@Override\r\n\tpublic void update() {\n\r\n\t}", "@Override\n\tpublic int update() {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic void update() {\r\n\t}", "@Override\n\tpublic void update() {}", "@Override\n\tpublic void update() {}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\r\n\tpublic void update() {\n\t}", "@Override\r\n\tpublic void update() {\n\t}", "@Override\n\tpublic void update() { }", "@Override\n public void update() {\n }", "@Override\n\tpublic void update() {\n\t}", "@Override\n\tpublic void update() {\n\t}", "@Override\n\tpublic void update() {\n\t}", "@Override\n public void update()\n {\n\n }", "@Override\n public void update() {\n\n }", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void uniqueUpdate() {\n\r\n\t}", "public void mo38117a() {\n }", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "@Override\n\tpublic void preUpdate() {\n\n\t}", "@Override\n public void update() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo6081a() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\n\t\tpublic void update() {\n\t\t\tSystem.out.println(\"새로운 수정\");\n\t\t}", "@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}", "protected void mo6255a() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public void mo4359a() {\n }", "public void updateInfo() {\n\t}", "@Override\r\n\tpublic void update() {\n\t\tsuper.update();\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void onUpdate() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void MemberUpdate() {\n\r\n\t}", "public int getVersion() { return 1; }", "@Override\n public int getVersion() {\n return 0;\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic boolean update() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean update() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean update() {\n\t\treturn false;\n\t}", "public void update() {\n\t\t\n\t}", "@Override\n public boolean isOutdated() {\n return false;\n }", "@Override\n\tpublic void uppdate() {\n\t\t\n\t}", "@Override\n\tpublic void uppdate() {\n\t\t\n\t}", "@Override\r\n\tpublic int update() throws Exception {\n\t\treturn 0;\r\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic int getVersion() {\n\t\treturn 0;\r\n\t}", "public void autoDetails() {\n\t\t\r\n\t}", "public void mo12930a() {\n }", "public void mo12628c() {\n }", "@Override\n public void func_104112_b() {\n \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 protected void updateProperties() {\n }", "@Override\n\tpublic void update(float deltaTime) {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }" ]
[ "0.6768212", "0.65802115", "0.65802115", "0.65802115", "0.6521794", "0.6521794", "0.64998156", "0.6370526", "0.6370526", "0.63580954", "0.63580954", "0.63580954", "0.63580954", "0.63580954", "0.6355681", "0.6334248", "0.6334248", "0.6334248", "0.6334248", "0.6334248", "0.6334248", "0.6305141", "0.63047624", "0.6272758", "0.6253089", "0.6253089", "0.6249319", "0.62378347", "0.62176776", "0.62176776", "0.6204156", "0.6204156", "0.6204156", "0.6204156", "0.6204156", "0.6204156", "0.6204156", "0.6204156", "0.6204156", "0.6204156", "0.61750704", "0.61750704", "0.61348414", "0.60935307", "0.60925007", "0.60925007", "0.60925007", "0.608892", "0.60825145", "0.6079332", "0.6058493", "0.60540897", "0.60473245", "0.60461986", "0.60451627", "0.6023695", "0.6023695", "0.6023695", "0.6023695", "0.6023695", "0.6023695", "0.6023695", "0.59934807", "0.5989226", "0.59778595", "0.59408087", "0.5940391", "0.5901388", "0.58836144", "0.5878025", "0.58725005", "0.5846233", "0.58315647", "0.582656", "0.58199334", "0.5813607", "0.581099", "0.57997906", "0.5792413", "0.57910544", "0.57792234", "0.57792234", "0.57792234", "0.5776144", "0.577507", "0.57657665", "0.57657665", "0.57419455", "0.57391334", "0.57190716", "0.5710163", "0.57057065", "0.5695314", "0.56910634", "0.56873786", "0.56873786", "0.568737", "0.5684935", "0.5680521", "0.5678598", "0.5676235" ]
0.0
-1
Overrides the default fallback margin of 1
public void setFallbackMargin(double fallbackMargin) { this.fallbackMargin = fallbackMargin; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Margin createMargin();", "default Integer getHorizontalMargin() {\n return null;\n }", "public void setMargin(int margin) {\n mMarginPx = margin;\n }", "private void setContainerMargins(int margin) {\n ((RelativeLayout.LayoutParams) mContainer.getLayoutParams()).setMargins(\n margin,\n margin + (mLegend.getMeasuredHeight() - mBackground.getBorder_width()) / 2,\n margin,\n margin + (mLegend.getMeasuredHeight() - mBackground.getBorder_width()) / 2);\n }", "private void initMargins() {\n // Margin Left\n JPanel marginLeft = new JPanel(new BorderLayout());\n marginLeft.setBackground(Resources.getLogoColor());\n marginLeft.setMinimumSize(new Dimension(10, 400));\n marginLeft.setPreferredSize(new Dimension(10, 400));\n getContentPane().add(marginLeft, BorderLayout.WEST);\n // Margin Right\n JPanel marginRight = new JPanel(new BorderLayout());\n marginRight.setBackground(Resources.getLogoColor());\n marginRight.setMinimumSize(new Dimension(10, 400));\n marginRight.setPreferredSize(new Dimension(10, 400));\n getContentPane().add(marginRight, BorderLayout.EAST);\n }", "protected int[] getDefaultCmargins() {\n\t\treturn new int[] { 3, 3, 3, 3 };\n\t}", "default Integer getVerticalMargin() {\n return null;\n }", "public ViewGroup.LayoutParams generateDefaultLayoutParams() {\r\n return new ViewGroup.MarginLayoutParams(-1, -2);\r\n }", "private int maxTopMargin() {\n return 0;\n }", "public boolean hasMargins() {\n return true;\n }", "double getHeaderMargin();", "public ScreenPt getWcsMargins() { return new ScreenPt(wcsMarginX,wcsMarginY); }", "double getFooterMargin();", "private double getMargin(List<Integer> range) {\n if (range.size() < 2) return fallbackMargin;\n return getMarginFromBounds(range.get(0), range.get(1));\n }", "private int minTopMargin() {\n return -(mHeaderHeight + mFooterHeight);\n }", "void setHeaderMargin(double headermargin);", "void setFooterMargin(double footermargin);", "protected void calculateStickerMargin () {\r\n \t\tif (mNextSectionChild != INVALID_POSITION) {\r\n \t\t\tfinal int top = getChildAt(mNextSectionChild).getTop();\r\n \t\t\tfinal int height = mStickerSection.getHeight();\r\n \r\n \t\t\tif (top < 0 || top > height) {\r\n \t\t\t\tmStickerMargin = 0;\r\n \t\t\t} else {\r\n \t\t\t\tmStickerMargin = top - height;\r\n \t\t\t}\r\n \t\t} else {\r\n \t\t\tmStickerMargin = 0;\r\n \t\t}\r\n \t}", "public void setItemMargin(int margin) {\n mLayoutManager.setItemMargin(margin);\n requestLayout();\n }", "private void setMarginLayout(View view, int x, int y) {\n MarginLayoutParams margin = new MarginLayoutParams(view.getLayoutParams());\n margin.setMargins(x, y, 0, 0);\n LayoutParams layoutParams = new LayoutParams(margin);\n view.setLayoutParams(layoutParams);\n }", "Insets calculateInsets ()\n {\n\treturn new Insets (topBorder + menuBarHeight, leftBorder, bottomBorder, rightBorder);\n }", "public @NonNull Margins getMinMargins() {\n return mMinMargins;\n }", "private void setupPadding()\n\t{\n\t\tContext context = getContext();\n\t\tResources res = context.getResources();\n\t\tint main = (int) res.getDimension(R.dimen.sp_main);\n\t\tthis.mPadding[0] = main;\n\t\tthis.mPadding[1] = main;\n\t\tthis.mPadding[2] = 0;\n\t\tthis.mPadding[3] = main;\n\t}", "public void setMarginTop( int marginTop )\n {\n this.marginTop = marginTop;\n }", "public static Insets getMargin(Node child) {\n return FlowPane.getMargin(child);\n }", "public int getPictureMargin() {\n return pictureMargin;\n }", "public void setMargin(float margin) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 28, margin);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 28, margin);\n\t\t}\n\t}", "public void setMarginBottom( int marginBottom )\n {\n this.marginBottom = marginBottom;\n }", "public int getMarginBottom()\n {\n return marginBottom;\n }", "private void initializeNoxItemMargin(TypedArray attributes) {\n float noxItemMarginDefaultValue = getResources().getDimension(R.dimen.default_nox_item_margin);\n float noxItemMargin =\n attributes.getDimension(R.styleable.nox_item_margin, noxItemMarginDefaultValue);\n noxConfig.setNoxItemMargin(noxItemMargin);\n }", "public long getMarginAmount() {\n\t\treturn marginAmount;\n\t}", "public static void setMargin(Node child, Insets value) {\n FlowPane.setMargin(child, value);\n }", "private void m76776a(LayoutParams layoutParams, int i) {\n if (VERSION.SDK_INT >= 17) {\n layoutParams.setMarginEnd(i);\n } else if (C43127fh.m136806a(getContext())) {\n layoutParams.leftMargin = i;\n } else {\n layoutParams.rightMargin = i;\n }\n }", "protected void resetInsetsDeltas() {\n super.resetInsetsDeltas();\n menuBarHeightDelta = 0;\n }", "@Override\r\n public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) {\n final boolean round = insets.isRound();\r\n int rowMargin = res.getDimensionPixelOffset(R.dimen.page_row_margin);\r\n int colMargin = res.getDimensionPixelOffset(round ?\r\n R.dimen.page_column_margin_round : R.dimen.page_column_margin);\r\n pager.setPageMargins(rowMargin, colMargin);\r\n\r\n // GridViewPager relies on insets to properly handle\r\n // layout for round displays. They must be explicitly\r\n // applied since this listener has taken them over.\r\n pager.onApplyWindowInsets(insets);\r\n return insets;\r\n }", "public float getMargin() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 28);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 28);\n\t\t}\n\t}", "public int getHorizontalMargin() {\n return mLayoutManager.getHorizontalMargin();\n }", "public void setItemMargin(final int marginPixels) {\n final boolean needsPopulate = marginPixels != mItemMargin;\n mItemMargin = marginPixels;\n if (needsPopulate) {\n populate();\n }\n }", "void setMargin(float horizontalMargin, float verticalMargin) {\n mTn.mHorizontalMargin = horizontalMargin;\n mTn.mVerticalMargin = verticalMargin;\n }", "@Test\n\tpublic void testTOutOfBoundsLeftMargin1() {\n\t\ttank.setX(100);\n\t\tassertEquals(false, tank.isWithinMarginsLeft());\n\t}", "public void setMarginLeft( int marginLeft )\n {\n this.marginLeft = marginLeft;\n }", "public LayoutParams generateDefaultLayoutParams() {\n return new LayoutParams(-1, -2);\n }", "public void setHorizontalMargin(int margin) {\n mLayoutManager.setHorizontalMargin(margin);\n requestLayout();\n }", "float getHorizontalMargin() {\n return mTn.mHorizontalMargin;\n }", "public void setPictureMargin(int pictureMargin) {\n this.pictureMargin = pictureMargin;\n }", "@Test\n\tpublic void testTOutOfBoundsLeftMargin2() {\n\t\ttank.setX(180);\n\t\tassertEquals(false, tank.isWithinMarginsLeft());\n\t}", "@Test\n\tpublic void testTOutOfBoundsRightMargin1() {\n\t\ttank.setX(550);\n\t\tassertEquals(false, tank.isWithinMarginsRight());\n\t}", "public Insets getInsets();", "public Insets getInsets() {\n \n // adjust predicted view size to account for scrollbars\n \n // This accounts for the 2 pixels from the edge of the viewport\n // to the edge of the scrollview on qt-emb-2.3.2.\n\tInsets insets = new Insets(2, 2, 2, 2);\n\n // 6347067.\n // TCK: ScrollPane test failed when waiting time is added after the validate().\n // Fixed 6228838: Resizing the panel cause wrong scroll bar range\n // on zaurus, which, in turn, fixed the viewport size problem in\n // CDC 1.1 linux-x86. But zaurus still has a problem which is shown when\n // running the PP-TCK interactive ComponetTests where two tests will have\n // both scroll bars on and in these two tests, you can see that the\n // bottom of the \"Yes\" \"No\" buttons are chopped off.\n //\n // The getInsets() call is modified to calculate whether scrollbars are on\n // in order to return the correct insets. In particular,\n //\n // Given that the hScrollbarHeight and vScrollbarWidth are known, which\n // is true in the Qt port case:\n //\n // hScrollbarOn is a function of scrollpane dim, child dim, as well as\n // vScrollbarOn in the boundary case where the horizontal scrollbar could\n // be needed if the vertical scrollbar needs to be present and the extra\n // width due to the vertical scrollbar just makes the horizontal\n // scrollbar necessary!\n\n ScrollPane sp = (ScrollPane)target;\n Dimension d = sp.size();\n Component c = getScrollChild();\n Dimension cd;\n if (c != null) {\n cd = c.size();\n } else {\n cd = new Dimension(0, 0);\n }\n\n if (scrollbarDisplayPolicy == ScrollPane.SCROLLBARS_ALWAYS) {\n insets.right += vScrollbarWidth;\n insets.bottom += hScrollbarHeight;\n } else if (scrollbarDisplayPolicy == ScrollPane.SCROLLBARS_AS_NEEDED) {\n if (d.width - insets.left*2 < cd.width) {\n // Hbar is necessary.\n insets.bottom += hScrollbarHeight;\n if (d.height - insets.top - insets.bottom < cd.height) {\n insets.right += vScrollbarWidth;\n }\n } else if (d.width - insets.left*2 - cd.width >= vScrollbarWidth) {\n // We're very sure that hbar will not be on.\n if (d.height - insets.top*2 < cd.height) {\n insets.right += vScrollbarWidth;\n }\n } else {\n // Borderline case so we need to check vbar first.\n if (d.height - insets.top*2 < cd.height) {\n insets.right += vScrollbarWidth;\n if (d.width - insets.left - insets.right < cd.width) {\n // Hbar is needed after all!\n insets.bottom += hScrollbarHeight;\n }\n }\n }\n } \n // 6347067.\n\n\treturn insets;\n }", "private void resetConentViewsTopMargin(int topMargin){\n\n View child = null;\n LayoutParams fllp = null;\n for(int i=0; i<getChildCount(); i++){\n\n child = getChildAt(i);\n if(child != mFlTitleView){\n\n fllp = (LayoutParams) child.getLayoutParams();\n if(fllp.gravity != Gravity.CENTER){\n\n fllp.topMargin = topMargin;\n child.setLayoutParams(fllp);\n }\n }\n }\n }", "@Override\n public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) {\n final boolean round = insets.isRound();\n int rowMargin = res.getDimensionPixelOffset(R.dimen.page_row_margin);\n int colMargin = res.getDimensionPixelOffset(round ?\n R.dimen.page_column_margin_round : R.dimen.page_column_margin);\n pager.setPageMargins(rowMargin, colMargin);\n\n // GridViewPager relies on insets to properly handle\n // layout for round displays. They must be explicitly\n // applied since this listener has taken them over.\n pager.onApplyWindowInsets(insets);\n return insets;\n }", "@Test\n\tpublic void testTOutOfBoundsLeftMargin3() {\n\t\ttank.setX(182);\n\t\tassertEquals(true, tank.isWithinMarginsLeft());\n\t}", "public ViewInsets getInsets() {\n return null;\n }", "@Override\r\n public Insets getInsets() {\r\n // forward\r\n return isExpanded() || collapsedInsets==null ? super.getInsets() : collapsedInsets;\r\n }", "public float getLayoutAlignmentX(Container parent)\n\t{\n\t\treturn 0.5f;\n\t}", "@Override\n public Configurable hasMargins(boolean hasMargins) {\n if (!hasMargins) {\n setListMargins(0, 0, 0, 0);\n }\n return this;\n }", "@Test\n\tpublic void testTOutOfBoundsRightMargin2() {\n\t\ttank.setX(460);\n\t\tassertEquals(false, tank.isWithinMarginsRight());\n\t}", "public float getLayoutAlignmentX(Container target) {\n return 0.5f;\n }", "public BoundingBox3d margin(float margin) {\n BoundingBox3d b = new BoundingBox3d();\n b.xmax = xmax + margin;\n b.xmin = xmin - margin;\n b.ymax = ymax + margin;\n b.ymin = ymin - margin;\n b.zmax = zmax + margin;\n b.zmin = zmin - margin;\n return b;\n }", "@Override\n\tpublic int getMinSizeX()\n\t{\n\t\treturn 50;\n\t}", "private void appearance()\r\n\t\t{\n\t\tgridLayout.setHgap(5);\r\n\t\tgridLayout.setVgap(5);\r\n\r\n\t\t//set the padding + external border with title inside the box\r\n\t\tBorder lineBorder = BorderFactory.createLineBorder(Color.BLACK);\r\n\t\tBorder outsideBorder = BorderFactory.createTitledBorder(lineBorder, title, TitledBorder.CENTER, TitledBorder.TOP);\r\n\t\tBorder marginBorder = BorderFactory.createEmptyBorder(5, 5, 5, 5);\r\n\t\tthis.setBorder(BorderFactory.createCompoundBorder(outsideBorder, marginBorder));\r\n\r\n\t\t//set initial value to builder\r\n\t\tdiceBuilder.setInterval(min, max);\r\n\t\t}", "public Insets getInsets() {\n\t\t\tint k = ringOpacities.length;\n\t\t\treturn new Insets(k, k, k, k);\n\t\t}", "@Test\n\tpublic void testTOutOfBoundsRightMargin3() {\n\t\ttank.setX(300);\n\t\tassertEquals(true, tank.isWithinMarginsRight());\n\t}", "public void setMarginAmount(long marginAmount) {\n\t\tthis.marginAmount = marginAmount;\n\t}", "public LayoutParams generateDefaultLayoutParams() {\n return new LayoutParams();\n }", "public final void mo68345a() {\n MarginLayoutParams marginLayoutParams = (MarginLayoutParams) this.f70292i.getLayoutParams();\n marginLayoutParams.leftMargin = (int) C9738o.m28708b(this.f70272a, 0.0f);\n this.f70292i.setLayoutParams(marginLayoutParams);\n m87592f(false);\n }", "private int getChildMargin(final View child) {\n return (int)(child.getMeasuredHeight() * (ITEM_VERTICAL_SPACE - 1) / 2);\n }", "public android.view.ViewGroup.LayoutParams generateDefaultLayoutParams() {\n return new LayoutParams(super.generateDefaultLayoutParams());\n }", "public static void setDefaultGap(int x) {\n gap = x;\n }", "public ViewGroup.LayoutParams generateDefaultLayoutParams() {\n return new LayoutParams(-1, -1);\n }", "int[] getRootLayoutPadding() {\n\t\tint LEFT=0, RIGHT=1, TOP=2, BOTTOM=3;\n\t\tint[] padding = new int[4];\n\t\tpadding[LEFT] = (int) getResources().getDimension(R.dimen.activity_horizontal_margin);\n\t\tpadding[RIGHT] = (int) getResources().getDimension(R.dimen.activity_horizontal_margin);\n\t\tpadding[TOP] = (int) getResources().getDimension(R.dimen.activity_vertical_margin);\n\t\tpadding[BOTTOM] = (int) getResources().getDimension(R.dimen.activity_vertical_margin);\n\t\treturn padding;\n\t}", "public void createMarginGraph()\n\t{\n\t\tASPManager mgr = getASPManager();\n\n\t\tint woGraphPoints;\n\t\tString sGraphTitle;\n\t\tString sLeftTitle; \n\n\t\tint noOfRows = itemset0.countRows(); \n\t\tmarginGraphInNewWind = false;\n\t\tint wono = sWorkOrderNoTree;\n\n\t\tString[] woCostType = new String[noOfRows]; \n\t\tdouble[] woMargin = new double[noOfRows];\n\t\tdouble[] structureMargin = new double[noOfRows];\n\n\t\titemset0.first();\n\n\t\tfor (int i = 0; i < noOfRows; i++)\n\t\t{\n\t\t\twoMargin[i] = itemset0.getRow().getNumberValue(\"NACCUMULATEDRESULTSINGLE\");\n\t\t\twoCostType[i] = itemset0.getRow().getValue(\"SWOCOSTTYPE\");\n\t\t\tstructureMargin[i] = itemset0.getRow().getNumberValue(\"NACCUMULATEDRESULT\");\n\n\t\t\titemset0.forward(1);\n\t\t}\n\n\t\twoGraphPoints = 6;\n\n\t\tfor (int i = 0 ; i < noOfRows; i++)\n\t\t{\n\t\t\tif (woMargin[i]>0 || structureMargin[i]>0)\n\t\t\t\tgraphflagWo = 1;\n\t\t}\n\n\t\tsGraphTitle = mgr.translate(\"PCMWWORKORDERCOSTTABLESMWOMARTITLE: Work Order Profit Margin\");\n\t\tsLeftTitle = mgr.translate(\"PCMWWORKORDERCOSTTABLESMAMOUNTTR: Amount\");\n\n\t\tmarginGraphInNewWind = true;\n\n\t\tdrawGraphPic(wono,sGraphTitle,sLeftTitle,noOfRows,woCostType,woMargin,structureMargin);\n\n\t}", "@Override\npublic int defaultWidth() {\n\treturn 0;\n}", "public int getVerticalMargin() {\n return mLayoutManager.getVerticalMargin();\n }", "public void setSpacing ( int spacing ) {\n\t\tthis.treeNodeLayout.setSpacing ( spacing );\n\t}", "public int getComponentLabelMargin() {\n\t\treturn componentLabelMargin;\n\t}", "@Override\n\tpublic float getLayoutAlignmentX(Container target) {\n\t\treturn 0;\n\t}", "public void setVerticalMargin(int margin) {\n mLayoutManager.setVerticalMargin(margin);\n requestLayout();\n }", "@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }", "private float getPadding() {\n return (getFont().size() - getPreferredWidth()) / 2f;\n }", "Integer getDefaultWidth();", "public android.view.ViewGroup.LayoutParams generateDefaultLayoutParams() {\n return new LayoutParams();\n }", "@Override\n\tpublic int getMinSizeZ()\n\t{\n\t\treturn 50;\n\t}", "public void preThemeChange() {\n setPadding(getPaddingLeft(), 0, getPaddingRight(), 0);\n }", "@CheckReturnValue\n public R1Interval expanded(double margin) {\n if (isEmpty()) {\n return this;\n }\n return new R1Interval(lo - margin, hi + margin);\n }", "public ViewGroup.LayoutParams generateDefaultLayoutParams() {\n return new C17366a(-1, -2);\n }", "public void setMarginFraction(double marginFraction) {\n if(marginFraction >= 0.5d) {\n throw new IllegalArgumentException(\"The margin fraction must be less than 0.5\");\n }\n this.marginFraction = marginFraction;\n }", "public void setMargins(View v, double l, double t, double r, double b) {\n if (v.getLayoutParams() instanceof ViewGroup.MarginLayoutParams) {\n ViewGroup.MarginLayoutParams p = (ViewGroup.MarginLayoutParams) v\n .getLayoutParams();\n final float scale = this.getResources().getDisplayMetrics().density;\n int lpx = (int) ((appsingleton.devicewidth) * l);\n int tpx = (int) ((appsingleton.deviceheight) * t);\n int rpx = (int) ((appsingleton.devicewidth) * r);\n int bpx = (int) ((appsingleton.deviceheight) * b);\n p.setMargins(lpx, tpx, rpx, bpx);\n v.requestLayout();\n }\n }", "public void setComponentLabelMargin(int componentLabelMargin) {\n\t\tthis.componentLabelMargin = componentLabelMargin;\n\t\tfirePropertyChange(\"componentLabelMargin\", null, componentLabelMargin);\n\t}", "private float changingHeaderViewTopMargin(float deltaY) {\n float newTopMargin = mHeaderParams.topMargin + deltaY / DELTA_RATIO;\n\n if (mPullState == STATE_PULL_UP_TO_LOAD) {\n if (deltaY > 0 && Math.abs(mHeaderParams.topMargin) <= mHeaderHeight)\n // when push the FooterView to absolutely hidden,\n // then return the current topMargin\n return mHeaderParams.topMargin;\n\n if (newTopMargin > -mHeaderHeight)\n newTopMargin = -mHeaderHeight;\n }\n\n\n if (mPullState == STATE_PULL_DOWN_TO_REFRESH) {\n if (deltaY < 0 && mHeaderParams.topMargin < 0 && Math.abs(mHeaderParams.topMargin) >= mHeaderHeight)\n // when HeaderView is absolutely hidden,\n // return the current topMargin\n return mHeaderParams.topMargin;\n if (newTopMargin < -mHeaderHeight)\n newTopMargin = -mHeaderHeight;\n }\n\n\n {\n // this block is to controll the maximum topMargin\n // if there is no need to controll the maximum topMargin,\n // forbid this block\n if (deltaY > 0 && newTopMargin > maxTopMargin() && mPullState == STATE_PULL_DOWN_TO_REFRESH)\n newTopMargin = maxTopMargin();\n if (deltaY < 0 && newTopMargin < minTopMargin() && mPullState == STATE_PULL_UP_TO_LOAD)\n newTopMargin = minTopMargin();\n }\n\n mHeaderParams.topMargin = (int) newTopMargin;\n mHeaderView.setLayoutParams(mHeaderParams);\n invalidate();\n\n return mHeaderParams.topMargin;\n }", "@BeforeClass\n public static void setUpOnce() {\n sPreviousNewInsetsMode = ViewRootImpl.sNewInsetsMode;\n // To let the insets provider control the insets visibility, the insets mode has to be\n // NEW_INSETS_MODE_FULL.\n ViewRootImpl.sNewInsetsMode = NEW_INSETS_MODE_FULL;\n }", "public Insets getBorderInsets(Component c) {\n return new Insets(m_h, m_w, m_h, m_w);\n }", "public TreePrinter<T> setLabelGap(int labelSpace) { this.labelGap = labelSpace; return this; }", "@BindingAdapter({\"layout_marginTop\"})\n public static void setmarginTop(View view, int marginTop) {\n\n ViewGroup.MarginLayoutParams marginParams = (ViewGroup.MarginLayoutParams) view.getLayoutParams();\n\n marginParams.setMargins(marginParams.leftMargin,\n Math.round(marginTop * view.getContext().getResources().getDisplayMetrics().density),\n marginParams.rightMargin,\n marginParams.bottomMargin);\n }", "@Override\n\tprotected float getDrawRatioX(){\n\t\treturn getWidth() / (float)getDefaultTODA() * getRatioOnScreen();\n\t}", "public final void mo68349b() {\n MarginLayoutParams marginLayoutParams = (MarginLayoutParams) this.f70292i.getLayoutParams();\n if ((!this.f70293j || this.f70294k) && (!this.f70295l || this.f70296m)) {\n marginLayoutParams.leftMargin = (int) C9738o.m28708b(this.f70272a, 16.0f);\n } else {\n marginLayoutParams.leftMargin = 0;\n }\n m87592f(true);\n }", "public void setLblSpacing(double value) {\n lblSpacing = value;\n }", "public void measureChildWithMargins(View view, int i, int i2, int i3, int i4) {\n int indexOfChild = indexOfChild(view);\n int orientation = getOrientation();\n LayoutParams layoutParams = (LayoutParams) view.getLayoutParams();\n if (hasDividerBeforeChildAt(indexOfChild)) {\n if (orientation == 1) {\n layoutParams.topMargin = this.d;\n } else {\n layoutParams.leftMargin = this.c;\n }\n }\n int childCount = getChildCount();\n if (indexOfChild == childCount - 1 && hasDividerBeforeChildAt(childCount)) {\n if (orientation == 1) {\n layoutParams.bottomMargin = this.d;\n } else {\n layoutParams.rightMargin = this.c;\n }\n }\n super.measureChildWithMargins(view, i, i2, i3, i4);\n }", "public int getThickness() {\r\n return Thickness;\r\n }", "protected void indentLess() \r\n\t{\r\n\tindent -= 3;\r\n\t}" ]
[ "0.71510243", "0.7029044", "0.68051744", "0.67825484", "0.67804", "0.66695243", "0.6594088", "0.6585634", "0.63809675", "0.6374821", "0.63311034", "0.6293726", "0.6226659", "0.6204162", "0.61412054", "0.6138815", "0.6122582", "0.6110125", "0.60278195", "0.60017693", "0.5981571", "0.595325", "0.5944312", "0.5892361", "0.58810174", "0.586819", "0.58506495", "0.5844967", "0.5809745", "0.5773688", "0.57508665", "0.5742399", "0.57294697", "0.5716264", "0.570847", "0.57043767", "0.569951", "0.56230116", "0.56139827", "0.5603073", "0.5585183", "0.55835855", "0.55831045", "0.5574826", "0.5547011", "0.5542687", "0.5542624", "0.55286866", "0.5519775", "0.5511623", "0.55019003", "0.5450323", "0.5442932", "0.5432873", "0.5414632", "0.5383861", "0.5370717", "0.53479856", "0.53448075", "0.53448045", "0.5343057", "0.533019", "0.5305177", "0.5292883", "0.52923036", "0.52853227", "0.52831864", "0.5270653", "0.5269273", "0.52637523", "0.52618206", "0.5261249", "0.5254053", "0.5243681", "0.5236738", "0.52108824", "0.5202283", "0.52017957", "0.5197876", "0.518862", "0.51812565", "0.5179382", "0.5145619", "0.51259774", "0.5123253", "0.51182824", "0.51068115", "0.50898904", "0.50865644", "0.50806206", "0.5077991", "0.5077888", "0.50741935", "0.5070518", "0.50565493", "0.50544554", "0.5051558", "0.50382257", "0.5032741", "0.5026147" ]
0.646386
8
Gets a text range given the confidence level of the alert and provided prediction amount Possible formats: 3 to 6 inches up to 3 inches up to 1 inch 1 to 3 feet up to 1 foot little to none
public String getRange() { if (predictionAmount < 0.1) return "little to none"; String description = convertFeetToInches(alert.getDescription()); // Get the bounds List<Integer> range = getClosestRange(getRanges(description), predictionAmount); double margin = getMargin(range); int lowerBound = (int) Math.round(predictionAmount - margin); int upperBound = (int) Math.round(predictionAmount + margin); // Determine the unit Unit units = Unit.INCHES; if (shouldUseFeet(lowerBound, upperBound)) { // Convert inches to feet lowerBound = toFeet(lowerBound); upperBound = toFeet(upperBound); units = Unit.FEET; } return getFinalText(units, lowerBound, upperBound); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getFinalText(Unit units, int lowerBound, int upperBound) {\n if (shouldUseUpToFormat(lowerBound)) return useUpToFormat(units, upperBound);\n return useRangeFormat(units, lowerBound, upperBound);\n }", "private void getTextBounds(CharSequence text, Paint paint, float[] p) {\n if (p == null || p.length < 3) {\n return;\n }\n float textWidth = paint.measureText(text.toString());\n Paint.FontMetrics fontM = paint.getFontMetrics();\n //baseLine:一行文字的底线。\n //Ascent: 字符顶部到baseLine的距离。\n //Descent: 字符底部到baseLine的距离。\n //Leading: 字符行间距。\n float bottom = fontM.bottom;\n float top = fontM.top;\n p[0] = textWidth;// text width\n p[1] = bottom - top;// text height\n p[2] = top;\n Log.i(TAG, \"fontM.ascent=\"+fontM.ascent + \" fontM.bottom=\"+fontM.bottom+\" fontM.descent=\"+fontM.descent+\" fontM.top=\"+fontM.top);\n }", "public String formatText(String resultString) {\n String outputString = \"\";\n\n resultString = resultString.substring(1); // removes first [\n String[] percents = resultString.split(\",\");\n\n for(int i = 0; i < percents.length && i < 3; i++) { // at most top 3 predictions\n String prediction = percents[i];\n Log.d(\"displayPredictionResult\", \"prediction @\" + i + \" \" + prediction);\n\n String digit = prediction.substring(prediction.indexOf('[') + 1, prediction.indexOf(']'));\n String percent = prediction.substring(prediction.indexOf('(') + 1, prediction.indexOf(')'));\n // outputString += \"There is a \" + percent + \" chance the number is \" + digit + '\\n';\n outputString += percent + \" chance the number is \" + digit + '\\n';\n }\n\n return outputString.substring(0, outputString.length() - 1); // removes last new line character\n }", "VocNoun getRange();", "String getConfidence();", "public double getEmphasis();", "private void parse_text()\n {\n float temporary_min = min; // used to hold the values entered, before\n float temporary_max = max; // validating them\n\n String str = getText();\n Float Float_NaN = new Float(Float.NaN);\n // get the first number\n float val = findNumber( START, str, SEPARATOR );\n Float Float_val = new Float(val);\n if ( !Float_val.equals(Float_NaN) )\n temporary_min = val;\n // get the second number\n val = findNumber( SEPARATOR, str, END );\n Float_val = new Float(val);\n if ( !Float_val.equals(Float_NaN) )\n temporary_max = val;\n\n if ( temporary_min < temporary_max ) // make sure the values\n { // define a non-degenerate\n min = temporary_min; // interval, before we \n max = temporary_max; // accept them\n }\n\n show_text();\n }", "@Override\n\tpublic Rectangle getBounds(String text) {\n\t\tint height = 0;\n\t\tint width = 0;\n\t\t//Initialize y to the maximum int\n\t\tint y = Integer.MAX_VALUE;\n\t\t\n\t\tchar[] chars = text.toCharArray();\n\t\t//First, find the lowest yoffset\n\t\tfor (char c : chars) {\n\t\t\tGlyph g = getGlyph(c);\n\t\t\tif (g != null) y = Math.min(g.getYOff(), y);\n\t\t}\n\t\tfor (char c : chars) {\n\t\t\tGlyph g = getGlyph(c);\n\t\t\tif (g != null) {\n\t\t\t\theight = Math.max(g.getHeight() + (g.getYOff() - y), height);\n\t\t\t\twidth += g.getXAdvance();\n\t\t\t}\n\t\t}\n\t\treturn new Rectangle(0, y, width, height);\n\t}", "public String bmiRange(String rangeLabel){\n if(BMI < 18.5){\n rangeLabel = (\"BMI < 18.5 is considered 'Underweight'\");\n }else if(BMI > 18.5 && BMI < 24.9){\n rangeLabel = (\"BMI > 18.6 and < 25 is considered 'Normal'\");\n }else if(BMI > 25 && BMI < 29.9){\n rangeLabel = (\"BMI > 25 and < 30 is considered 'Overweight'\");\n }else if(BMI > 30){\n rangeLabel = (\"BMI > 30 is considered 'Obese'\");\n }//end if else statements\n return rangeLabel;\n }", "public abstract String format(double lowerBound, double upperBound);", "public String getConfidenceString() {\n final DecimalFormat format = new DecimalFormat(\"0.000\");\n return !Double.isNaN(confidence) ? format.format(MathUtil.coerce(0, 1, getConfidence()) * 100.0f) + \"%\" : \"N/A\";\n }", "private String getDiabetesRange(int befMealValue, int aftMealValue) {\n String range=\"\";\n\n if(befMealValue<=69 && aftMealValue <= 100){\n range=\"low\";\n }\n else if((befMealValue>=70 && befMealValue<=130) && (aftMealValue <=180))\n {\n range=\"normal\";\n }\n else if(befMealValue>=131 && aftMealValue>=181){\n range=\"high\";\n }\n return range;\n }", "private String useRangeFormat(Unit units, int lowerBound, int upperBound) {\n return lowerBound + \" to \" + upperBound + getUnits(units, upperBound);\n }", "@Nullable\n private String getTextByRange(@NotNull final RangeInfo rangeInfo) {\n\n if (rangeInfo.isTerminationRange()) {\n return null;\n }\n else {\n final String viewText = myView.getText();\n return viewText.substring(rangeInfo.getFrom(), rangeInfo.getTo());\n }\n }", "@Override\n public String[] getResults()\n {\n String[] guidelines = new String[RESULTS_ARRAY_SIZE];\n\n for (int i = 0; i < guidelines.length; i++)\n {\n guidelines[i] = \"\";\n }\n\n // tab position\n Tab currentTab = Tab.values()[mViewPager.getCurrentItem()];\n\n switch(currentTab)\n {\n case CT:\n\n String ct_legend4 = \"Follow up CT or MRI in 6 months. May need more frequent follow-up in some situations, such as a cirrhotic patient who is a liver transplant candidate.\";\n String ct_legend6 = \"Differential diagnosis for a benign-appearing low attenuation mass includes: cyst, hemangioma, hamartoma, bile duct hamartomas\";\n String nofollowup = \"No follow up required.\";\n\n String lowaveragerisk_nofollowup = \"In a patient with low to average risk, this is most likely benign.\";\n String highrisk_followup = \"In a patient with high risk, follow up is recommended.\";\n\n guidelines[0] = \"VALID\";\n\n if(size == 0)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n }\n else if(size == 1)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \" + ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(attenuation == 2)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + \"8,9. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \". \" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4 + \"\\n\" + ct_legend7 + \" To evaluate, prefer multiphasic MRI\";\n }\n }\n\n\n }\n else if(size == 2)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion larger than 1.5 cm.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n if(risk_level == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a low risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in an average risk patient.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend7;\n guidelines[RESULTS_FOLLOWUP] = \"Recommend multiphasic MRI for further evaluation.\";\n }\n else if(risk_level == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a high risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = \"Recommend core biopsy.\";\n }\n }\n else if(attenuation == 2)\n {\n if(features == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm with benign diagnostic features.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \"\\n\" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = \"Differentiation of FNH from adenoma may be important especially if larger than 4 cm and subcapsular.\";\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm without benign diagnostic features.\";\n guidelines[RESULTS_IMPRESSION] = \"Differential diagnosis includes hepatocellular or metastatic enhancing malignancy: islet cell, neuroendocrine, carcinoid, renal cell carcinoma, melanoma, choriocarcinoma, sarcoma, breast, some pancreatic lesions.\";\n guidelines[RESULTS_FOLLOWUP] = \"Consider further evaluation with multiphasic MRI or core biopsy. Otherwise \" + ct_legend4.substring(0,1).toLowerCase() + ct_legend4.substring(1);\n }\n }\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"Managing Incidental Findings on Abdominal CT: White Paper of the ACR Incidental Findings Committee\";\n guidelines[RESULTS_REFERENCE_LINK] = \"http://www.jacr.org/article/S1546-1440(10)00330-3/fulltext#sec12\";\n guidelines[RESULTS_REFERENCE_IMAGE] = \"drawable/liver_ct_mass_guidelines\";\n\n\n\n break;\n\n // LI-RADS\n case LIRADS:\n final String LR3 = \"LR-3: Intermediate probability for hepatocellular carcinoma\\n\\nObservation that does not meet criteria for other LI-RADS categories.\";\n final String LR4 = \"LR-4: Probably hepatocellular carcinoma\\n\\nObservation with imaging features suggestive but not diagnostic of HCC.\";\n final String LR5 = \"LR-5: Definitely hepatocellular carcinoma.\\n\\nObservation with imaging features diagnostic of HCC or proven to be HCC at histology.\";\n\n guidelines[0] = \"VALID\";\n\n if(initial_observation == 5)\n {\n\n String findings;\n String criteria_description = \"\";\n int score = washout + capsule;\n if(growth != 0)\n {\n score += 1;\n }\n\n if (washout == 0)\n {\n criteria_description += \", without washout\";\n }\n else\n {\n criteria_description += \", with washout\";\n }\n\n if (capsule == 0)\n {\n criteria_description += \", without capsule\";\n }\n else\n {\n criteria_description += \", with capsule\";\n }\n\n if (growth == 0)\n {\n criteria_description += \", without threshold growth\";\n }\n else\n {\n criteria_description += \", with threshold growth\";\n }\n\n if (arterial == 0)\n {\n // arterial hypo or iso-enhancement\n findings = \"There is an arterial hypoenhancing or isoenhancing lesion\";\n\n if (size == 0 || size == 1)\n {\n // size less than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 2.0 cm\" + criteria_description + \".\";\n\n if (score == 0 || score == 1)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n if (size == 2)\n {\n // size more than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n }\n else\n {\n // arterial hyperenhancement\n findings = \"There is an arterial hyperenhancing lesion\";\n\n if (size == 0)\n {\n // less than 1.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 1.0 cm\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n else if (size == 1)\n {\n // size between 1.0 and 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" measuring between 1.0 to 2.0 cm\" + criteria_description;\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else if (score == 1)\n {\n // LR4/LR5\n // depending on 50% growth in less than 6 months (LR-5g), or washout and visibility on US (LR-5us)\n\n if(growth == 1 && growth_5g == 1)\n {\n\n guidelines[RESULTS_IMPRESSION] += \" of at least 50% increase in diameter within 6 months.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"g\" + LR5.substring(4);\n }\n else if(washout == 1 && ultrasound_5us == 1)\n {\n guidelines[RESULTS_IMPRESSION] += \". Antecedent surveillance ultrasound demonstrates a corresponding visible discrete nodule.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"us\" + LR5.substring(4);\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n\n }\n else\n {\n // LR5\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n }\n }\n else\n {\n // size larger than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n //LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n else\n {\n //LR5\n guidelines[0] = \"VALID\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n guidelines[RESULTS_FOLLOWUP] = \"\";\n }\n }\n\n }\n }\n else if(initial_observation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a treated liver observation.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-Treated: Treated Observation\\n\\nObservation of any category that has undergone loco-regional treatment.\";\n }\n else if(initial_observation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is definitely benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-1: Definitely Benign\\n\\nObersvation with imaging features diagnostic of a benign entity, or definite disappearance at follow up in absence of treatment.\";\n }\n else if(initial_observation == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is probably benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-2: Probably Benign\\n\\nObservation with imaging features suggestive but not diagnostic of a benign entity.\";\n }\n else if(initial_observation == 3)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion of probable malignancy, but not specific for HCC.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-M:Probably Malignant, not specific for hepatocellular carcinoma\\n\\nObservation with imaging features suggestive of non-HCC malignancy.\";\n }\n else if(initial_observation == 4)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion with tumor in vein.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-5V: Definitely hepatocellular carcinoma with Tumor in Vein\\n\\nObservation with imaging features diagnostic of HCC invading vein.\";\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"ACR LI-RADS v2014 for CT and MRI\";\n guidelines[RESULTS_REFERENCE_LINK] = \"https://www.acr.org/Quality-Safety/Resources/LIRADS\";\n\n break;\n\n default:\n break;\n }\n\n return guidelines;\n\n }", "public String getAssessRange() {\r\n return assessRange;\r\n }", "public java.lang.String getCompletionThreshold();", "float getConfidence();", "private String formatText(List<EntityAnnotation> entityAnnotation) {\n String message = \"\";\n\n if (entityAnnotation != null) {\n int count = 0;\n for (EntityAnnotation entity : entityAnnotation) {\n count++;\n if (count <= 8) {\n int num = (int) (entity.getScore() * 100);\n message = message + \" \" + num + \"% - \" + entity.getDescription().substring(0, 1).toUpperCase() + entity.getDescription().substring(1);\n message += \"\\n\";\n }\n }\n } else {\n message = \"Nothing Found\";\n }\n\n return message;\n }", "protected static String expectedRangeString(Object minValue, boolean minInclusive, Object maxValue, boolean maxInclusive) {\n // A means for a return value\n String retVal;\n\n // Start with the proper symbol for the lower bound\n if (minInclusive) {\n retVal = \"[\";\n } else {\n retVal = \"(\";\n }\n\n // Add in the minimum and maximum values\n retVal += minValue + \" .. \" + maxValue;\n\n // End with the proper symbol for the upper bound\n if (maxInclusive) {\n retVal += \"]\";\n } else {\n retVal += \")\";\n }\n\n // Return the formatted string\n return retVal;\n }", "public static float findThePerfectFontSize(float lowerThreshold) {\n float fontSize = 1;\n Paint p = new Paint();\n p.setTextSize(fontSize);\n while (true) {\n float asc = -p.getFontMetrics().ascent;\n if (asc > lowerThreshold) {\n break;\n }\n fontSize++;\n p.setTextSize(fontSize);\n }\n return fontSize;\n }", "public abstract int getEmphasis();", "public void setEmphasis(double emphasisLevel);", "public TextRangeUI( String label, float min, float max )\n { \n if ( Float.isNaN(min) || Float.isInfinite(min) ||\n Float.isNaN(max) || Float.isInfinite(max) ||\n min > max )\n {\n System.out.println(\"Error: min, max invalid in TextRangeUI\");\n System.out.println(\"min = \" + min + \", max = \" + max);\n System.out.println(\"using default interval [0,1]\");\n min = 0;\n max = 1;\n }\n\n this.min = min;\n this.max = max;\n this.label = label;\n\n setFont( FontUtil.LABEL_FONT );\n show_text();\n }", "public String getPressureRange(int systolValue,int diastolValue) {\n String range=\"\";\n if ((systolValue >= 60 && systolValue <= 109) && (diastolValue >= 40 && diastolValue <= 74)) {\n // blood pressure Low level\n range = \"low\";\n }\n else if ((systolValue >= 110 && systolValue <= 135) && (diastolValue >= 75 && diastolValue <= 85)) {\n // blood pressure Normal level\n range = \"normal\";\n } else if ((systolValue >= 136 && systolValue <= 210) && (diastolValue >= 86 && diastolValue <= 120)) {\n // blood pressure High level\n range = \"high\";\n }\n return range;\n }", "public Rectangle2D.Double getTextBounds() {\n\t\t\n\t\tdouble txtPinX = _parent.getTxtPinX();\n\t\tdouble txtPinY = _parent.getTxtPinY();\n\t\t\n\t\tdouble txtLocPinX = _parent.getTxtLocPinX();\n\t\tdouble txtLocPinY = _parent.getTxtLocPinY();\n\t\t\n\t\tdouble txtWidth = _parent.getTxtWidth();\n\t\tdouble txtHeight = _parent.getTxtHeight();\n\t\t\n\t\tdouble x = txtPinX - txtLocPinX;\n\t\tdouble y = txtPinY - txtLocPinY;\n\t\t\n\t\treturn new Rectangle2D.Double(x, y, txtWidth, txtHeight);\n\t}", "public Range getRangeY(double lowerPercent, double upperPercent, \n PlotRenderingInfo info, Point2D source) {\n \tdouble start = super.getRangeAxis().getRange().getLowerBound();\n double length = super.getRangeAxis().getRange().getLength();\n Range adjusted = null;\n if (super.getRangeAxis().isInverted()) {\n adjusted = new Range(start + (length * (1 - upperPercent)), \n start + (length * (1 - lowerPercent))); \n }\n else {\n adjusted = new Range(start + length * lowerPercent, \n start + length * upperPercent);\n }\n return adjusted;\n }", "public static void main(String[] args)\n {\n JFrame f = new JFrame(\"Test for TextRangeUI\");\n f.setBounds(0,0,200,150);\n final TextRangeUI range_ui = new TextRangeUI( \"TOF\", 0, 1000);\n\n f.getContentPane().setLayout( new GridLayout(2,1) );\n f.getContentPane().add(range_ui);\n\n range_ui.addActionListener( new ActionListener()\n {\n public void actionPerformed(ActionEvent e)\n {\n System.out.println(\"Entered: \" + range_ui.getText() );\n System.out.println(\"Min = \" + range_ui.getMin() );\n System.out.println(\"Max = \" + range_ui.getMax() );\n }\n });\n\n final TextRangeUI range_ui_2 = new TextRangeUI( \"TOF\", 0, 1000);\n f.getContentPane().add(range_ui_2);\n range_ui_2.setLabel( \"NEW LABEL\" );\n range_ui_2.setMin( 1.0f );\n range_ui_2.setMax( 2.0f );\n\n range_ui_2.addActionListener( new ActionListener()\n {\n public void actionPerformed(ActionEvent e)\n {\n System.out.println(\"Entered: \" + range_ui_2.getText() );\n System.out.println(\"Min = \" + range_ui_2.getMin() );\n System.out.println(\"Max = \" + range_ui_2.getMax() );\n }\n });\n\n f.setVisible(true);\n }", "public LabelRequestWATMLabelRange(int m, int minVPI, int minVCI, int maxVPI, int maxVCI, int l3PID){\r\n\t\t\r\n\t\tclassNum = 19;\r\n\t\tcType = 2;\r\n\r\n\t\tthis.m = m;\r\n\t\tthis.minVPI = minVPI;\r\n\t\tthis.minVCI = minVCI;\r\n\t\tthis.maxVPI = maxVPI;\r\n\t\tthis.maxVCI = maxVCI;\r\n\t\tthis.l3PID = l3PID;\r\n\t\t\r\n\t\tlength = RSVPObjectParameters.RSVP_OBJECT_COMMON_HEADER_SIZE + 12;\r\n\t\t\r\n\t\tlog.debug(\"Label Request With ATM Label Range Object Created\");\r\n\t\t\r\n\t\t\r\n\t}", "public static String scale(String content, String rangDir)\n\t\t\tthrows NumberFormatException, IOException {\n\n\t\tString line = content;\n\t\tdouble lower = -1.0;\n\t\tdouble upper = 1.0;\n\t\tdouble[] feature_max = null;\n\t\tdouble[] feature_min = null;\n\t\tint max_index = 2000;\n\n\t\tint i, index;\n\t\tBufferedReader fp_restore = null;\n\t\tString restore_filename = rangDir;\n\t\tfp_restore = new BufferedReader(new FileReader(restore_filename));\n\n\t\ttry {\n\t\t\tfeature_max = new double[(max_index + 1)];\n\t\t\tfeature_min = new double[(max_index + 1)];\n\t\t} catch (OutOfMemoryError e) {\n\t\t\tSystem.err.println(\"can't allocate enough memory\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tfor (i = 0; i <= max_index; i++) {\n\t\t\tfeature_max[i] = -Double.MAX_VALUE;\n\t\t\tfeature_min[i] = Double.MAX_VALUE;\n\t\t}\n\n\t\t/* pass 2: find out min/max value */\n\n\t\tint next_index = 1;\n\t\tdouble target;\n\t\tdouble value;\n\n\t\tStringTokenizer st = new StringTokenizer(line, \" \\t\\n\\r\\f:\");\n\t\ttarget = Double.parseDouble(st.nextToken());\n\n\t\twhile (st.hasMoreTokens()) {\n\t\t\tindex = Integer.parseInt(st.nextToken());\n\t\t\tvalue = Double.parseDouble(st.nextToken());\n\n\t\t\tfor (i = next_index; i < index; i++) {\n\t\t\t\tfeature_max[i] = Math.max(feature_max[i], 0);\n\t\t\t\tfeature_min[i] = Math.min(feature_min[i], 0);\n\t\t\t}\n\n\t\t\tfeature_max[index] = Math.max(feature_max[index], value);\n\t\t\tfeature_min[index] = Math.min(feature_min[index], value);\n\t\t\tnext_index = index + 1;\n\t\t}\n\n\t\tfor (i = next_index; i <= max_index; i++) {\n\t\t\tfeature_max[i] = Math.max(feature_max[i], 0);\n\t\t\tfeature_min[i] = Math.min(feature_min[i], 0);\n\t\t}\n\n\t\t/* pass 2.5: save/restore feature_min/feature_max */\n\t\tif (restore_filename != null) {\n\t\t\t// fp_restore rewinded in finding max_index\n\t\t\tint idx;\n\t\t\tdouble fmin, fmax;\n\n\t\t\tif (fp_restore.read() == 'x') {\n\t\t\t\tfp_restore.readLine(); // pass the '\\n' after 'x'\n\t\t\t\tst = new StringTokenizer(fp_restore.readLine());\n\t\t\t\tlower = Double.parseDouble(st.nextToken());\n\t\t\t\tupper = Double.parseDouble(st.nextToken());\n\t\t\t\tString restore_line = null;\n\t\t\t\twhile ((restore_line = fp_restore.readLine()) != null) {\n\t\t\t\t\tStringTokenizer st2 = new StringTokenizer(restore_line);\n\t\t\t\t\tidx = Integer.parseInt(st2.nextToken());\n\t\t\t\t\tfmin = Double.parseDouble(st2.nextToken());\n\t\t\t\t\tfmax = Double.parseDouble(st2.nextToken());\n\t\t\t\t\tif (idx <= max_index) {\n\t\t\t\t\t\tfeature_min[idx] = fmin;\n\t\t\t\t\t\tfeature_max[idx] = fmax;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfp_restore.close();\n\t\t}\n\n\t\t/* pass 3: scale */\n\t\tStringBuffer newContent = new StringBuffer();\n\t\tif (content != null) {\n\n\t\t\tnext_index = 1;\n\t\t\tst = new StringTokenizer(line, \" \\t\\n\\r\\f:\");\n\t\t\ttarget = Double.parseDouble(st.nextToken());\n\t\t\tnewContent.append((int) target + \" \");\n\n\t\t\twhile (st.hasMoreElements()) {\n\t\t\t\tindex = Integer.parseInt(st.nextToken());\n\t\t\t\tvalue = Double.parseDouble(st.nextToken());\n\n\t\t\t\tif (value == feature_min[index])\n\t\t\t\t\tvalue = lower;\n\t\t\t\telse if (value == feature_max[index])\n\t\t\t\t\tvalue = upper;\n\t\t\t\telse\n\t\t\t\t\tvalue = lower + (upper - lower)\n\t\t\t\t\t\t\t* (value - feature_min[index])\n\t\t\t\t\t\t\t/ (feature_max[index] - feature_min[index]);\n\n\t\t\t\tif (value != 0) {\n\t\t\t\t\tnewContent.append(index + \":\" + (float) value + \" \");\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\treturn newContent.toString();\n\n\t}", "private String E19Gages() {\n StringBuilder buffer = new StringBuilder();\n int numCols = 60;\n int leftMargin = 68;\n String[] crit1 = null;\n String[] crit2 = null;\n\n TextReportData data = TextReportDataManager.getInstance()\n .getDataForReports(lid, 2);\n buffer.append(\"\\f\");\n buffer.append(TextReportConstants.E19_HDR_GAGES + \"\\n\\n\");\n buffer.append(\n \" DCP TELEM\\n\\n\");\n\n buffer.append(String.format(\n \" NESS ID: %-9s %12s TYPE OF TELEMETRY: %s\\n\",\n data.getDcp().getGoes(), \" \", data.getTelem().getType()));\n buffer.append(String.format(\n \" OWNER: %-11s %12s OWNER: %s\\n\",\n data.getDcp().getOwner(), \" \", data.getTelem().getOwner()));\n buffer.append(String.format(\n \" REPORT TIME: %-9s %12s PHONE NUMBER: %s\\n\",\n data.getDcp().getRptime(), \" \", data.getTelem().getPhone()));\n buffer.append(String.format(\n \" INTERVAL: %-5s %12s INTERVAL: %s\\n\",\n data.getDcp().getRptfreq(), \" \", data.getTelem().getRptFreq()));\n\n // Create the first criteria\n int dcpNumCols = 20;\n int dcpLeftMargin = 0;\n\n if (data.getDcp().getCriteria() != null) {\n crit1 = TextUtil.wordWrap(data.getDcp().getCriteria(), dcpNumCols,\n dcpLeftMargin);\n }\n\n // Create the second criteria\n int telmNumCols = 15;\n int telmLeftMargin = 0;\n\n if (data.getTelem().getCriteria() != null) {\n crit2 = TextUtil.wordWrap(data.getTelem().getCriteria(),\n telmNumCols, telmLeftMargin);\n }\n\n int crit1Size = 0;\n int crit2Size = 0;\n\n // formatting for line 1\n if (crit1 != null) {\n buffer.append(String.format(\" CRITERIA: %-20s %12s\", crit1[0],\n \" \"));\n crit1Size = crit1.length - 1;\n }\n\n if (crit2 != null) {\n buffer.append(String.format(\"CRITERIA: %-20s\\n\", crit2[0]));\n crit2Size = crit2.length - 1;\n }\n\n int index = 1;\n\n // formatting for all additional lines\n while ((crit1Size > 0) || (crit2Size < 0)) {\n if (crit1Size > 0) {\n buffer.append(String.format(\" %-20s %12s\",\n crit1[index], \" \"));\n crit1Size--;\n }\n\n if (crit2Size > 0) {\n buffer.append(String.format(\" %-20s\", crit2[index]));\n crit2Size--;\n buffer.append(\"\\n\");\n }\n index++;\n }\n\n String cost = \" \";\n if (data.getTelem().getCost() > 0) {\n cost = String.format(\"%-7.2f\", data.getTelem().getCost());\n }\n\n buffer.append(String.format(\n \" %18s PAYOR/COST OF LINE: %s / $ %s\\n\\n\",\n \" \", data.getTelem().getPayor(), cost));\n\n int count1 = countNewlines(buffer.toString());\n\n // Do column header.\n buffer.append(\n \" GAGE TYPE OWNER MAINTENANCE BEGAN ENDED GAGE LOCATION/REMARKS\\n\");\n buffer.append(\n \" ----------- ----------- ----------- ---------- ---------- ------------------------------------------------------------\\n\");\n\n int count2 = countNewlines(buffer.toString()) - count1;\n int loop = 0;\n int available = getLinesPerPage() - count1 - count2 - 5;\n int avail = available;\n int needed = 0;\n TextReportData dataGage = TextReportDataManager.getInstance()\n .getGageQueryData(lid);\n\n ArrayList<Gage> gageList = dataGage.getGageList();\n\n String indent = \"\";\n for (int i = 0; i < leftMargin; i++) {\n indent = indent.concat(\" \");\n }\n\n for (Gage gage : gageList) {\n // Get the remark field\n // Compute the number of lines needed for this record\n String[] lines = TextUtil.wordWrap(gage.getRemark(), numCols, 0);\n needed = (countNewlines(gage.getRemark()) + 1) + 1;\n\n if (needed <= avail) {\n // Formatting for line 1\n String remarkLine = \"\";\n\n if (lines != null) {\n remarkLine = lines[0];\n }\n String beginDate = \" \";\n String endDate = \" \";\n\n if (gage.getBegin() != null) {\n\n beginDate = sdf.format(gage.getBegin());\n }\n if (gage.getEnd() != null) {\n endDate = sdf.format(gage.getEnd());\n\n }\n\n buffer.append(String.format(\n \" %-11s %-11s %-11s %10s %10s %-23s\\n\",\n gage.getType(), gage.getOwner(), gage.getMaint(),\n beginDate, endDate, remarkLine));\n\n // Formatting for all additional lines\n if ((lines != null) && (lines.length > 0)) {\n for (int i = 1; i < lines.length; i++) {\n if (lines[i].length() > 1) {\n buffer.append(indent + lines[i] + \"\\n\");\n }\n }\n }\n\n avail = avail - needed;\n } else if (needed > avail) {\n // try to place FOOTER at the bottom\n for (int i = 0; i < (((getLinesPerPage() * loop)\n + getFooterPosition())\n - countNewlines(buffer.toString())); i++) {\n buffer.append(\"\\n\");\n }\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"))\n .getTime();\n String footer = createFooter(dataGage, E19_RREVISE_TYPE,\n sdf.format(d), \"NWS FORM E-19\", E19_GAGES, \"GAGES\",\n null, E19_STANDARD_LEFT_MARGIN);\n buffer.append(footer);\n\n // Do column header.\n buffer.append(\n \" GAGE TYPE OWNER MAINTENANCE BEGAN ENDED GAGE LOCATION/REMARKS\\n\");\n buffer.append(\n \" ----------- ----------- ----------- ---------- ---------- ------------------------------------------------------------\\n\");\n\n // Reset available value & continue from top of loop.\n avail = available + count1;\n loop++;\n }\n }\n\n buffer.append(\"\\n\");\n\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\")).getTime();\n String footer = createFooter(dataGage, E19_RREVISE_TYPE, sdf.format(d),\n \"NWS FORM E-19\", E19_GAGES, \"GAGES\", null,\n E19_STANDARD_LEFT_MARGIN);\n\n buffer.append(footer);\n\n return buffer.toString();\n }", "Builder addTypicalAgeRange(Text value);", "public String decodePredictions(INDArray predictions) {\n Preconditions.checkState(predictions.size(1) == predictionLabels.size(), \"Invalid input array:\" +\n \" expected array with size(1) equal to numLabels (%s), got array with shape %s\", predictionLabels.size(), predictions.shape());\n\n String predictionDescription = \"\";\n int[] top5 = new int[5];\n float[] top5Prob = new float[5];\n\n //brute force collect top 5\n int i = 0;\n for (int batch = 0; batch < predictions.size(0); batch++) {\n predictionDescription += \"Predictions for batch \";\n if (predictions.size(0) > 1) {\n predictionDescription += String.valueOf(batch);\n }\n predictionDescription += \" :\";\n INDArray currentBatch = predictions.getRow(batch).dup();\n while (i < 5) {\n top5[i] = Nd4j.argMax(currentBatch, 1).getInt(0);\n top5Prob[i] = currentBatch.getFloat(batch, top5[i]);\n currentBatch.putScalar(0, top5[i], 0);\n predictionDescription += \"\\n\\t\" + String.format(\"%3f\", top5Prob[i] * 100) + \"%, \"\n + predictionLabels.get(top5[i]);\n i++;\n }\n }\n return predictionDescription;\n }", "java.lang.String getExperienceText();", "speech_formatting.SegmentedTextOuterClass.TokenSegment.BreakLevel getBreakLevel();", "private ArrayList<TextBoundingBox> getMatchingBounds(Text text) {\n Bounds textBounds = parent.sceneToLocal(text.localToScene(text.getBoundsInLocal()));\n\n ArrayList<TextBoundingBox> rectBounds = new ArrayList<>();\n\n TextLayout textLayout = null;\n try {\n textLayout = (TextLayout) textLayoutMethod.invoke(text);\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n }\n\n TextLine[] lines = textLayout.getLines();\n // handle matches in all lines\n for (int i = 0; i < lines.length; i++) {\n TextLine line = lines[i];\n String lineText = text.getText().substring(line.getStart(), line.getStart() + line.getLength());\n\n var matcher = tagPattern.matcher(lineText);\n RectBounds lineBounds = (line.getBounds());\n\n // compute Y layout\n double height = Math.round(lineBounds.getMaxY()) - Math.round(lineBounds.getMinY());\n double startY = height * i;\n\n // handle multiple matches in one line\n while (matcher.find()) {\n // compute X layout\n var matchedText = lineText.substring(matcher.start(), matcher.end());\n Text temp = new Text(matchedText);\n temp.setFont(text.getFont());\n temp.applyCss();\n double width = temp.getLayoutBounds().getWidth();\n temp.setText(lineText.substring(0, matcher.end()));\n temp.applyCss();\n double maxX = temp.getLayoutBounds().getMaxX();\n double startX = maxX - width;\n\n rectBounds.add(new TextBoundingBox(matcher.group(1),\n textBounds.getMinX() + startX,\n textBounds.getMinY() + startY,\n width, temp.getLayoutBounds().getHeight()));\n }\n }\n\n return rectBounds;\n }", "@Override\n public void getShortTitleBounds(@NonNull Rect outRect) {\n if (!hasShortTitle() || !hasShortText()) {\n outRect.setEmpty();\n } else {\n getBounds(outRect);\n if (isWideRectangle(outRect)) {\n getRightPart(outRect, outRect);\n getBottomHalf(outRect, outRect);\n } else {\n // Draw a short text complication inside ranged value bounds\n mShortTextLayoutHelper.getShortTitleBounds(outRect);\n outRect.offset(mRangedValueInnerSquare.left, mRangedValueInnerSquare.top);\n }\n }\n }", "public List<Integer> getRanges(String description) {\n String rangeRegex = \"(\\\\d+) (to|and) (\\\\d+) inches\";\n String upToRegex = \"up to (\\\\d+) inch\";\n Pattern rangePattern = Pattern.compile(rangeRegex);\n Pattern upToPattern = Pattern.compile(upToRegex);\n Matcher rangeMatcher = rangePattern.matcher(description);\n Matcher upToMatcher = upToPattern.matcher(description);\n List<Integer> ranges = new ArrayList<>();\n while (rangeMatcher.find()) {\n int lowerBound = Integer.parseInt(rangeMatcher.group(1));\n int upperBound = Integer.parseInt(rangeMatcher.group(3));\n ranges.add(lowerBound);\n ranges.add(upperBound);\n }\n if (ranges.size() == 0) {\n while (upToMatcher.find()) {\n int upperBound = Integer.parseInt(upToMatcher.group(1));\n ranges.add(0);\n ranges.add(upperBound);\n }\n }\n return ranges;\n }", "public static String calculateScore(String textToScore) {\r\n\r\n\t\tdouble nbSentences = 0.0;\r\n\t\tdouble nbWords = 0.0;\r\n\t\tdouble nbSyllables = 0.0;\r\n\t\tString result = \"\";\r\n\r\n\t\tif (textToScore != null) {\r\n\t\t\tString[] sentences = textToScore.split(\"\\\\.\");\r\n\t\t\tString[] words;\r\n\r\n\t\t\tfor (int i = 0; i < sentences.length; i++) {\r\n\t\t\t\twords = sentences[i].split(\"\\\\s+\");\r\n\t\t\t\tnbSentences++;\r\n\t\t\t\tfor (int j = 0; j < words.length; j++) {\r\n\t\t\t\t\tnbWords++;\r\n\t\t\t\t\tnbSyllables += countSyllables(words[j]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (nbSentences > 0 && nbWords > 0 && nbSyllables > 0) {\r\n\t\t\t\tdouble fkra = (0.39 * (nbWords / nbSentences)) + (11.8 * (nbSyllables / nbWords)) - 15.59;\r\n\t\t\t\tlong round = Math.round(fkra);\r\n\t\t\t\tif(round<1) {\r\n\t\t\t\t\tround = 1;\r\n\t\t\t\t}\r\n\t\t\t\telse if (round>10) {\r\n\t\t\t\t\tround = 10;\r\n\t\t\t\t} \r\n\t\t\t\tresult = String.valueOf(round);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}", "public static float getCoincidenceIndex(String text){\r\n\r\n\t\tfloat index = 0;\r\n\t\tint length = text.length();\r\n\t\t// Pour chaque lettre i, on calcul (ni(ni-1))/(n*(n-1))\r\n\t\t// On ajoute le résultat à l'index total pour obtenir la somme globale\r\n\t\tfor (int i = 0; i <= 25; i++) {\r\n\t\t\tchar c = (char) (65 + (i/26)*6 + i);\r\n\t\t\tfloat occur = (float)countOccurrency(text, c);\r\n\t\t\tindex = index + (occur * (occur - 1))/(length * (length - 1)); \r\n\t\t}\r\n\t\treturn index;\r\n\t}", "int getRange();", "public Range getTextPortsRange();", "public String marginal_probability_and_peak_as_string (int n, int max_els) {\n\t\treturn marginal_probability_and_peak_as_string (n, max_els, \"\", \"\\n\", \"\\n\");\n\t}", "public Range getRangeX(double lowerPercent, double upperPercent, \n PlotRenderingInfo info, Point2D source) {\n \t\t\n \t double start = super.getDomainAxis().getRange().getLowerBound();\n double length = super.getDomainAxis().getRange().getLength();\n Range adjusted = null;\n if (super.getDomainAxis().isInverted()) {\n adjusted = new Range(start + (length * (1 - upperPercent)), \n start + (length * (1 - lowerPercent))); \n }\n else {\n adjusted = new Range(start + length * lowerPercent, \n start + length * upperPercent);\n }\n return adjusted;\n }", "public abstract SpannableString getText(long presentationTimeUs);", "private String getExpectedHTMLTextOutput(OutputFormat format) throws InvalidDDMSException {\r\n\t\tUtil.requireHTMLText(format);\r\n\t\tStringBuffer text = new StringBuffer();\r\n\t\ttext.append(buildHTMLTextOutput(format, \"verticalExtent.unitOfMeasure\", String.valueOf(TEST_UOM)));\r\n\t\ttext.append(buildHTMLTextOutput(format, \"verticalExtent.datum\", String.valueOf(TEST_DATUM)));\r\n\t\ttext.append(buildHTMLTextOutput(format, \"verticalExtent.minimum\", String.valueOf(TEST_MIN)));\r\n\t\ttext.append(buildHTMLTextOutput(format, \"verticalExtent.maximum\", String.valueOf(TEST_MAX)));\r\n\t\treturn (text.toString());\r\n\t}", "public float getConfidence();", "public int getRangeHeight();", "@Test\n public void testSignificance() {\n assertMetrics(\"significance:1\", \"a\",\"a\");\n assertMetrics(\"significance:0\", \"a\",\"x\");\n assertMetrics(\"significance:0.3333\",\"a a a\",\"a\");\n assertMetrics(\"significance:1\", \"a\",\"a a a\");\n assertMetrics(\"significance:1\", \"a b c\",\"a b c\");\n assertMetrics(\"significance:1\", \"a b c\",\"x x a b x a x c x x a b x c c x\");\n\n assertMetrics(\"significance:0.3333\",\"a b c\",\"a\");\n assertMetrics(\"significance:0.6667\",\"a b c\",\"a b\");\n\n assertMetrics(\"significance:1\", \"a b c%0.2\",\"a b c\"); // Best\n assertMetrics(\"significance:0.75\",\"a b c%0.2\",\"b c\"); // Middle\n assertMetrics(\"significance:0.5\", \"a b c%0.2\",\"a b\"); // Worst\n\n assertMetrics(\"significance:1\",\"a%0.3 b c%0.2\",\"a b c\"); // Best too\n\n assertMetrics(\"significance:1\", \"a b c%0.05\",\"a b c\"); // Best\n assertMetrics(\"significance:0.6\",\"a b c%0.05\",\"b c\"); // Worse\n assertMetrics(\"significance:0.4\",\"a b c%0.05\",\"b\"); // Worse\n assertMetrics(\"significance:0.2\",\"a b c%0.05\",\"c\"); // Worst\n assertMetrics(\"significance:0.8\",\"a b c%0.05\",\"a b\"); // Middle\n\n assertMetrics(\"significance:1\", \"a b c%0\",\"a b c\"); // Best\n assertMetrics(\"significance:0.5\",\"a b c%0\",\"b c\"); // Worst\n assertMetrics(\"significance:1\", \"a b c%0\",\"a b\"); // As good as best\n assertMetrics(\"significance:0\", \"a b c%0\",\"c\"); // No contribution\n\n assertMetrics(\"significance:0\",\"a%0 b%0\",\"a b\");\n assertMetrics(\"significance:0\",\"a%0 b%0\",\"\");\n\n // The query also has other terms having a total significance of 0.3\n // so we add a significance parameter which is the sum of the significances of this query terms + 0.3\n assertMetrics(\"significance:0.25\", \"a\",\"a\",0.4f);\n assertMetrics(\"significance:0\", \"y\",\"a\",0.4f);\n assertMetrics(\"significance:0.1667\",\"a a a\",\"a\",0.6f);\n assertMetrics(\"significance:0.25\", \"a\",\"a a a\",0.4f);\n assertMetrics(\"significance:0.5\", \"a b c\",\"a b c\",0.6f);\n assertMetrics(\"significance:0.5\", \"a b c\",\"x x a b x a x c x x a b x c c x\",0.6f);\n\n assertMetrics(\"significance:0.1667\",\"a b c\",\"a\",0.6f);\n assertMetrics(\"significance:0.3333\",\"a b c\",\"a b\",0.6f);\n\n assertMetrics(\"significance:0.5714\",\"a b c%0.2\",\"a b c\",0.7f); // Best\n assertMetrics(\"significance:0.4286\",\"a b c%0.2\",\"b c\",0.7f); // Middle\n assertMetrics(\"significance:0.2857\",\"a b c%0.2\",\"a b\",0.7f); // Worst\n\n assertMetrics(\"significance:0.6667\",\"a%0.3 b c%0.2\",\"a b c\",0.9f); // Better than best\n\n assertMetrics(\"significance:0.4545\",\"a b c%0.05\",\"a b c\",0.55f); // Best\n assertMetrics(\"significance:0.2727\",\"a b c%0.05\",\"b c\",0.55f); // Worse\n assertMetrics(\"significance:0.1818\",\"a b c%0.05\",\"b\",0.55f); // Worse\n assertMetrics(\"significance:0.0909\",\"a b c%0.05\",\"c\",0.55f); // Worst\n assertMetrics(\"significance:0.3636\",\"a b c%0.05\",\"a b\",0.55f); // Middle\n\n assertMetrics(\"significance:0.4\",\"a b c%0\",\"a b c\",0.5f); // Best\n assertMetrics(\"significance:0.2\",\"a b c%0\",\"b c\",0.5f); // Worst\n assertMetrics(\"significance:0.4\",\"a b c%0\",\"a b\",0.5f); // As good as best\n assertMetrics(\"significance:0\", \"a b c%0\",\"c\",0.5f); // No contribution\n\n assertMetrics(\"significance:0\",\"a%0 b%0\",\"a b\",0.3f);\n assertMetrics(\"significance:0\",\"a%0 b%0\",\"\",0.3f);\n }", "double getUpperThreshold();", "public default double getTargetRange(Entity casterIn){ return RangeType.getRange(casterIn, this); }", "int getAttackRange();", "int getAnnotationSentimentValue();", "PredictionResourceFormat get(String resourceGroupName, String hubName, String predictionName);", "void calculateRange() {\n //TODO: See Rules\n }", "public String getSpeechResult(String hypothesis){\n\n\n String[] arrayOfStrings = hypothesis.split(\"text\\\" :\");\n String textPredicted = arrayOfStrings[1];\n\n arrayOfStrings = textPredicted.split(\"\\\"\");\n textPredicted = arrayOfStrings[1];\n\n return textPredicted;\n }", "private double getMargin(List<Integer> range) {\n if (range.size() < 2) return fallbackMargin;\n return getMarginFromBounds(range.get(0), range.get(1));\n }", "float getThreshold();", "public void damageRange(JTextComponent tc, int p0, int p1) {\n damageRange(tc, p0, p1, Position.Bias.Forward, Position.Bias.Backward);\n }", "private List<Integer> getClosestRange(List<Integer> ranges, double predictionAmount) {\n List<Integer> bestRange = new ArrayList<>();\n double bestRangeDistance = Double.MAX_VALUE;\n for (int i = 0; i < ranges.size(); i += 2) {\n double rangeDistance = Math.abs(predictionAmount - getRangeCenter(ranges.get(i), ranges.get(i + 1)));\n if (rangeDistance < bestRangeDistance) {\n bestRangeDistance = rangeDistance;\n bestRange.clear();\n bestRange.add(ranges.get(i));\n bestRange.add(ranges.get(i + 1));\n }\n }\n return bestRange;\n }", "@Override\r\n\tpublic float getRange() {\r\n\t\tsp.fetchSample(sample, 0);\r\n\r\n\t\treturn sample[0];\r\n\t}", "private Bounds textWidth(double size, SensorValue sensorValue)\r\n\t{\n\t\t\r\n\t\tString showValue = sensorValue.getCurrentValue() + \" \" + sensorValue.getMeasurementUnit();\r\n\t\t\r\n\t\tif(fontBase == null)\r\n\t\t\tfontBase = new Font(\"Verdana\", 12);\r\n\t\tText text = new Text(showValue);\r\n\t\tFont font = Font.font(fontBase.getFamily(), size);\r\n text.setFont(font);\r\n return text.getBoundsInLocal();\r\n\t}", "String getEndRange();", "private static String getStringFrom(int percentageOfB[]) {\n\t\tString personality = \"\";\n\t\tString profile[] = { \"EXI\", \"SXN\", \"TXF\", \"JXP\" };\n\t\tfor ( int i = 0; i < percentageOfB.length; i++ )\n\t personality += profile[i].charAt(choose_index(percentageOfB[i]));\n\t return personality;\n\t}", "protected Range getApplicableRange( String text, String word, Token token )\r\n\t{\r\n\t\tRange r = new Range();\r\n\t\tswitch(token.getType())\r\n\t\t{\r\n\t\tcase Token.STRING:\r\n\t\tcase Token.UNKNOWN:\r\n\t\tcase Token.SPECIAL_SEQUENCE:\r\n\t\tcase Token.NORMAL:\r\n\t\tcase Token.KEYWORD:\r\n\t\t\tr.start = token.getStartPosition();\r\n\t\t\tr.end = r.start + word.length();\r\n\t\t\tbreak;\r\n\t\tcase Token.SEPARATOR:\r\n\t\t\t// Separators shall be processed this way\r\n\t\t\tr.start = token.getStartPosition();\r\n\t\t\tr.end = r.start + 1;\r\n\t\t\tbreak;\r\n\t\tcase Token.LINE_COMMENT:\r\n\t\tdefault:\r\n\t\t\t// For comments, and by default apply the style to the whole line\n\t\t\tr.start = token.getStartPosition();\r\n\t\t\tr.end = text.length();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn r;\r\n\t}", "public void setTextBaseline(TEXT_BASELINE baseline);", "java.lang.String getPercentage();", "private double getRangeToTarget(TargetReport target)\n\t{\n\t\tif (target != null)\n\t\t{\n\t\t\t// chose to use height because most consistent across view angles\n\t\t\t// d = TargetHeightFeet*FOVHeightPixel / (2*TargetHeightPixel*tan(FOV/2) ) (HYPOTENUSE)\n\t\t\treturn TARGET_HEIGHT*IMAGE_HEIGHT / (2*target.height*Math.tan(Math.toRadians(CAMERA_FOV/2)))\n\t\t\t\t\t*Math.cos(Math.toRadians(CAMERA_ELEVATION)); // convert to horizontal\n\t\t}\n\t\telse\n\t\t\treturn 0;\n\t}", "private double getMarginFromBounds(int lowerBound, int upperBound) {\n return (upperBound - lowerBound) / 2.0;\n }", "private ArrayList<String> getProfile (float minS, float maxS, float minR, float maxR) {\n ArrayList<String> vals = new ArrayList<>();\n for (float x : values.subMap(minS, maxS).keySet()) {\n for (ArrayList<String> y : values.get(x).subMap(minR, maxR).values()) {\n // y here, represents the values of points in range...\n vals.addAll(y);\n }\n }\n return vals;\n }", "@Nonnull\n public static String[] getClassParametersText(@Nonnull String referenceText) {\n if (referenceText.indexOf('<') < 0) {\n return ArrayUtil.EMPTY_STRING_ARRAY;\n }\n referenceText = removeWhitespace(referenceText);\n final char[] chars = referenceText.toCharArray();\n int afterLastDotIndex = 0;\n\n int level = 0;\n for (int i = 0; i < chars.length; i++) {\n char aChar = chars[i];\n switch (aChar) {\n case '<':\n level++;\n break;\n case '.':\n if (level == 0) {\n afterLastDotIndex = i + 1;\n }\n break;\n case '>':\n level--;\n break;\n }\n }\n\n if (level != 0) {\n return ArrayUtil.EMPTY_STRING_ARRAY;\n }\n\n int dim = 0;\n for (int i = afterLastDotIndex; i < chars.length; i++) {\n char aChar = chars[i];\n switch (aChar) {\n case '<':\n level++;\n if (level == 1) {\n dim++;\n }\n break;\n case ',':\n if (level == 1) {\n dim++;\n }\n break;\n case '>':\n level--;\n break;\n }\n }\n if (level != 0 || dim == 0) {\n return ArrayUtil.EMPTY_STRING_ARRAY;\n }\n\n final String[] result = new String[dim];\n dim = 0;\n int ltPos = 0;\n for (int i = afterLastDotIndex; i < chars.length; i++) {\n final char aChar = chars[i];\n switch (aChar) {\n case '<':\n level++;\n if (level == 1) {\n ltPos = i;\n }\n break;\n case ',':\n if (level == 1) {\n result[dim++] = new String(chars, ltPos + 1, i - ltPos - 1);\n ltPos = i;\n }\n break;\n case '>':\n level--;\n if (level == 0) {\n result[dim++] = new String(chars, ltPos + 1, i - ltPos - 1);\n }\n break;\n }\n }\n\n return result;\n }", "private double getRangeCenter(int lowerBound, int upperBound) {\n return (lowerBound + upperBound) / 2.0;\n }", "public Prediction apply( double[] confidence );", "double getLowerThreshold();", "speech.multilang.Params.DecisionPointParams getDecisionPointParams();", "String tomar_decisiones(String decision);", "public double getRange(){\r\n\t\t uSensor.ping();\r\n\t\t return uSensor.getRangeInches();\r\n\t\t}", "private double parseTemperatureFromSpan(String document, int indexOfStart, int indexOfEnd) {\n StringBuilder temperatureBuilder = new StringBuilder();\n for (int i = indexOfStart; i < indexOfEnd; i++) {\n temperatureBuilder.append(document.charAt(i));\n }\n return Double.parseDouble(temperatureBuilder.toString());\n }", "private String getFitText(String text, float width, Paint paint) {\r\n String newText = text;\r\n int length = text.length();\r\n int diff = 0;\r\n while (paint.measureText(newText) > width && diff < length) {\r\n diff++;\r\n newText = text.substring(0, length - diff) + \"...\";\r\n }\r\n if (diff == length) {\r\n newText = \"...\";\r\n }\r\n return newText;\r\n }", "private String convertFeetToInches(String description) {\n String regex = \"(\\\\d+) to (\\\\d+) feet|up to (\\\\d+) (feet|foot)\";\n Pattern pattern = Pattern.compile(regex);\n Matcher matcher = pattern.matcher(description);\n if (matcher.find()) {\n if (matcher.group(1) != null) {\n int lower = Integer.parseInt(matcher.group(1)) * 12;\n int upper = Integer.parseInt(matcher.group(2)) * 12;\n return description.replace(matcher.group(0), lower + \" to \" + upper + \" inches\");\n }\n int upper = Integer.parseInt(matcher.group(3)) * 12;\n return description.replace(matcher.group(0), \"up to \" + upper + \" inches\");\n }\n return description;\n }", "public String getRange() {\n return this.range;\n }", "public abstract long[] GetApproximateSizes(Range[] range, int n) throws IOException, DecodeFailedException, BadFormatException;", "public Map<String, Object> getIE(String text, FallBackListBased pd) {\n\t\ttext = text.replaceAll(\" � \", \", \");\n\t\ttext = text.replaceAll(\"'s \", \" \");\n\t\ttext = text.replaceAll(\"'s\", \"\");\n\t\ttext = text.replaceAll(\"�s \", \" \");\n\t\ttext = text.replaceAll(\"�s \", \" \");\n\t\ttext = text.replaceAll(\"\\\\?\", \"\");\n\t\ttext = text.replaceAll(\":\", \"\");\n\t\tMap<String, Object> entities_map = new TreeMap<String, Object>();\n\t\tMap<String, Object> extractedEntities = new TreeMap<String, Object>();\n\t\tList<TreeMap<String, String>> entities = new ArrayList<TreeMap<String, String>>();\n\t\tList<TreeMap<String, String>> intents= new ArrayList<TreeMap<String, String>>();\n\t\tSet<String> intentsList=new HashSet<String>();\n\t\tSet<String> entitiesList=new HashSet<String>();\n\t\t\n\t\tString input = text;\n\t\t// text=text.replaceAll(\" \", \" \");\n\t\tSpan spanSentences[] = pd.sentenceDetector.sentPosDetect(input);\n\t\tint sentenceId = 1;\n\t\tTreeMap<String, String> intents_map = new TreeMap<String, String>();\n\t\tDouble entites_highest_cofidence = 0.0;\n\t\tDouble intents_highest_cofidence = 0.0;\n\t\tfor (Span sentence : spanSentences) {\n\t\t\tArrayList<PhraseTemplate> phrases = pd.GetPhrases(sentence\n\t\t\t\t\t.getCoveredText(input).toString(), sentenceId++);\n\t\t\t\n\t\t\tfor (PhraseTemplate svo : phrases) {\n\t\t\t\tString key = svo.phrase;\n\t\t\t\tkey = key.replaceAll(\" is \", \"\");\n\t\t\t\tkey = key.replaceAll(\"What \", \"\");\n\t\t\t\tkey = key.replaceAll(\"what \", \"\");\n\t\t\t\tkey = key.replaceAll(\" the \", \"\");\n\n\t\t\t\tif (key.length() > 1) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tString resolvedEntity = lss.resolveEntity(key\n\t\t\t\t\t\t\t\t.toLowerCase().trim().toString(),\n\t\t\t\t\t\t\t\t\"entitesIndex\");\n\t\t\t\t\t\tString tokens[] = resolvedEntity.split(\"__\");\n//\t\t\t\t\t\tSystem.out.println(resolvedEntity+\" :: \"+key);\n\t\t\t\t\t\tif (tokens.length < 2)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\tif (tokens[1].trim().startsWith(\"entity\")\n\t\t\t\t\t\t\t\t&& Double.parseDouble(tokens[5].trim())>0.9)\n\t\t\t\t\t\t\tentitiesList.add(tokens[5].trim());\n\t\t\t\t\t\tif (tokens[1].trim().startsWith(\"entity\")\n\t\t\t\t\t\t\t\t&& Double.parseDouble(tokens[5].trim()) > entites_highest_cofidence) {\n\t\t\t\t\t\t\tentities_map.clear();\n\t\t\t\t\t\t\tentities_map.put(\"Entity\", key.trim());\n\t\t\t\t\t\t\tentities_map.put(\"MappedEntity\", tokens[4].trim());\n\t\t\t\t\t\t\tentities_map.put(\"EntityConfidenceScore\", tokens[5].trim());\n\t\t\t\t\t\t\tentities_map.put(\"MappedEntityType\", tokens[2].trim());\n\t\t\t\t\t\t\tentites_highest_cofidence = Double\n\t\t\t\t\t\t\t\t\t.parseDouble(tokens[5].trim());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (tokens[1].trim().startsWith(\"intent\")\n\t\t\t\t\t\t\t\t&& Double.parseDouble(tokens[5].trim())>0.9)\n\t\t\t\t\t\t\tintentsList.add(tokens[5].trim());\n\t\t\t\t\t\tif (tokens[1].trim().startsWith(\"intent\")\n\t\t\t\t\t\t\t\t&& Double.parseDouble(tokens[5].trim()) > intents_highest_cofidence) {\n\t\t\t\t\t\t\tintents_map.clear();\n\t\t\t\t\t\t\tintents_map.put(\"Id\", tokens[0].trim());\n\t\t\t\t\t\t\tintents_map.put(\"Extracted Entity\", key.trim());\n\t\t\t\t\t\t\tintents_map.put(\"Mapped Entity\", tokens[4].trim());\n\t\t\t\t\t\t\tintents_map.put(\"Confidence\", tokens[5].trim());\n\t\t\t\t\t\t\tintents_map.put(\"Class\", tokens[1].trim());\n\t\t\t\t\t\t\tintents_highest_cofidence = Double\n\t\t\t\t\t\t\t\t\t.parseDouble(tokens[5].trim());\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tentities_map.put(\"Intent\", intents_map.get(\"Extracted Entity\"));\n\t\tentities_map.put(\"MappedIntent\", intents_map.get(\"Mapped Entity\"));\n\t\tentities_map.put(\"IntentConfidenceScore\", intents_map.get(\"Confidence\"));\n\n\t\treturn entities_map;\n\t}", "private String E19Damage() {\n StringBuilder buffer = new StringBuilder();\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\")).getTime();\n int numCols = 100;\n int leftMargin = 23;\n String tmp1 = \" \";\n String tmp2 = \" \";\n String indent = \"\";\n for (int i = 0; i < leftMargin; i++) {\n indent = indent.concat(\" \");\n }\n buffer.append(\"\\f\");\n buffer.append(TextReportConstants.E19_HDR_DAMAGE + \"\\n\\n\");\n\n TextReportData data = TextReportDataManager.getInstance()\n .getCrestData(lid);\n\n int count1 = countNewlines(buffer.toString());\n\n buffer.append(\" STAGE AREAS AFFECTED\\n\");\n buffer.append(\n \" ------- ---------------------------------------------\");\n buffer.append(\n \"-------------------------------------------------------\\n\");\n\n int count2 = countNewlines(buffer.toString()) - count1;\n\n int available = getLinesPerPage() - count1 - count2 - 5;\n int avail = available;\n int loop = 0;\n int needed = 0;\n\n for (Flood f : data.getFloodList()) {\n tmp1 = \"\";\n if (f.getStage() != HydroConstants.MISSING_VALUE) {\n tmp2 = String.format(\"%7.2f\", f.getStage());\n }\n String[] lines = null;\n String s = \" \";\n if (f.getDamage() != null) {\n lines = TextUtil.wordWrap(f.getDamage(), numCols, 0);\n s = lines[0];\n }\n\n tmp1 = tmp1\n .concat(String.format(\" %s %s\\n\", tmp2, s));\n if (lines != null) {\n for (int i = 1; i < lines.length; i++) {\n if (lines[i].length() > 1) {\n tmp1 = tmp1.concat(indent + lines[i] + \"\\n\");\n }\n }\n }\n needed = countNewlines(tmp1);\n\n if (needed <= avail) {\n buffer.append(tmp1 + \"\\n\");\n avail = avail - needed;\n } else if (needed > avail) {\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n\n String footer = createFooter(data, E19_RREVISE_TYPE,\n sdf.format(d), \"NWS FORM E-19\", E19_DAMAGE, \"DAMAGE\",\n null, E19_STANDARD_LEFT_MARGIN);\n buffer.append(footer + \"\\n\\n\");\n\n // Do column header.\n buffer.append(\" STAGE AREAS AFFECTED\\n\");\n buffer.append(\n \" ------- ---------------------------------------------\");\n buffer.append(\n \"-------------------------------------------------------\\n\");\n\n avail = available + count1;\n loop++;\n }\n }\n\n buffer.append(\"\\n\\n\");\n\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n\n String footer = createFooter(data, E19_RREVISE_TYPE, sdf.format(d),\n \"NWS FORM E-19\", E19_DAMAGE, \"DAMAGE\", null,\n E19_STANDARD_LEFT_MARGIN);\n buffer.append(footer + \"\\n\\n\");\n\n return buffer.toString();\n }", "public abstract HalfOpenIntRange approximateSpan();", "private static String addCIExtremes(String theLine){\n\n\t\t//System.out.println(\"1: \" + theLine);\n\n\t\tString[] splitLine = theLine.split(\";\");\n\n\t\tif(splitLine.length <= 8){\n\n\t\t\ttry{\n\t\t\t\tdouble avg = Double.parseDouble(splitLine[6]);\n\t\t\t\tdouble ci = Double.parseDouble(splitLine[7]);\n\n\t\t\t\ttheLine += ((avg-ci) + \";\" + (avg+ci) + \";\");\n\n\t\t\t\t//System.out.println(\"2: \" + theLine);\n\t\t\t}catch(NumberFormatException e){\n\t\t\t\tSystem.out.println(\"Impossible to add CI extremes. Skipping.\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\t//System.out.println(\"3: \" + theLine);\n\n\t\treturn theLine;\n\n\t}", "public Rectangle2D getMaxCharBounds(FontRenderContext frc) {\n float [] metrics = new float[4]; \n\n\tgetFont2D().getFontMetrics(this, frc, metrics);\n\n return new Rectangle2D.Float(0, -metrics[0],\n metrics[3],\n metrics[0] + metrics[1] + metrics[2]);\n }", "public static String cutToSize(String textIn, float targetWidth, BitmapFont fontIn){\n String out=textIn;\n for(int i = textIn.length();i>0;i--) {\n String cutText = out.substring(0, i);\n if (textWidth(fontIn, cutText) <= targetWidth) {\n return cutText;\n }\n }\n return \"\";\n }", "public static String getRestrictionAgeFromSting(String response) {\n String restrictionAgeRegex = \"(?<=\\\"restriction_age\\\\\\\\\\\":)([\\\\s\\\\S]+?)(?=,)\";\n return getFirstMatchByRegex(response, restrictionAgeRegex);\n }", "public abstract float getProbability(String[] tokens);", "private int calculateTextHeight(String[] lines, FontMetrics fm)\r\n {\r\n int totalLineHeight = fm.getHeight();\r\n int totalLines = 1; // account for one line of spacing between Welcome and explanation\r\n // in the introduction string\r\n for (String lineNo : lines)\r\n {\r\n if (!lineNo.equals(\"\") || !lineNo.equals(\"\\n\"))\r\n {\r\n totalLines++;\r\n }\r\n }\r\n\r\n // max height we want is the total lines * height metrics\r\n return totalLines * totalLineHeight;\r\n }", "public Bounds getProbabilityBounds();", "private String initFullText(Standard std) {\n\t\treturn \"[\" + this.getGradeRange() + \"] \" + std.getDisplayText();\n\t}", "@Test\n public void assertTaxBracketBoundariesWithPrecisions() {\n String minimumSalaryString = \"60000.555555555555555555555555555555555555555555555555555555555555\";\n String maximumSalaryString = \"130000.555555555555555555555555555555555555555555555555555555555555\";\n\n BigDecimal minimumSalary = new BigDecimal(minimumSalaryString).setScale(DEFAULT_DECIMAL_SCALE, DEFAULT_ROUNDING);\n BigDecimal maximumSalary = new BigDecimal(maximumSalaryString).setScale(DEFAULT_DECIMAL_SCALE, DEFAULT_ROUNDING);\n TaxBracket sixtyTo130k = createTaxBracket(minimumSalary, maximumSalary);\n validateSalaryFitsWithinBracket(sixtyTo130k, minimumSalary);\n validateSalaryFitsWithinBracket(sixtyTo130k, maximumSalary);\n // Since we expect the rounding to make the last digit of the decimal a \"6\", we can change scales directly\n // Increase the minimum salary scale\n validateSalaryFitsWithinBracket(sixtyTo130k, new BigDecimal(StringUtils.removeEnd(minimumSalary.toString(), \"6\") + \"61\"));\n // Same for the max salary\n validateSalaryFitsWithinBracket(sixtyTo130k, new BigDecimal(StringUtils.removeEnd(maximumSalary.toString(), \"6\" + \"59\")));\n // Now do the reverse, reduce the scale so that it falls outside the range\n validateSalaryDoesNotFitWithinBracket(sixtyTo130k, new BigDecimal(StringUtils.removeEnd(minimumSalary.toString(), \"6\") + \"59\"));\n validateSalaryDoesNotFitWithinBracket(sixtyTo130k, new BigDecimal(StringUtils.removeEnd(maximumSalary.toString(), \"6\") + \"61\"));\n }", "protected ArrayList<Attraction> TryParseRange(String i, ArrayList<Attraction> toRunOn) throws Exception {\n ArrayList<Attraction> toReturn = new ArrayList<>();\n try {\n String[] range = i.split(\"-\");\n if (range.length > 2)\n throw new Exception(\"Error parsing\");\n final int low = Integer.parseInt(range[0]);\n final int high = Integer.parseInt(range[1]);\n for (Attraction item : toRunOn) {\n float price = item.getPrice();\n if (price >= low && price <= high)\n toReturn.add(item);\n }\n } catch (Exception ex) {\n return toReturn;\n }\n return toReturn;\n }", "public double getRange(){\n\n double range = fuelRemaining * fuelEconomy;\n return range;\n }", "private void utteranceListenerStarter(){\n mTts.setOnUtteranceProgressListener(new UtteranceProgressListener() {\n\n @Override\n public void onStart(String utteranceId) {\n if (utteranceId.equals(FRAGMENT_GENERAL_UTTERANCE_ID)){\n requireActivity().runOnUiThread(()->{\n mHighlightedTextView.setVisibility(View.VISIBLE);\n mFragmentWallpaperTextView.setVisibility(View.INVISIBLE);\n });\n\n }\n }\n\n @Override\n public void onDone(String utteranceId) {\n if (utteranceId.equals(FRAGMENT_GENERAL_UTTERANCE_ID)){\n requireActivity().runOnUiThread(()->{\n mHighlightedTextView.setVisibility(View.INVISIBLE);\n mHighlightedTextView.setText(\"\");\n mFragmentWallpaperTextView.setVisibility(View.VISIBLE);\n\n });\n }\n\n\n }\n\n @Override\n public void onError(String utteranceId) {\n\n if (utteranceId.equals(FRAGMENT_GENERAL_UTTERANCE_ID)){\n requireActivity().runOnUiThread(()->{\n Log.e(\"UTTERANCE_ERROR\", \"An Error occurred while synthesizing the given text...\");\n Activity activity = requireActivity();\n Toast toast = Toast.makeText(activity,\n \"An Error occurred while synthesizing the given text...\",\n Toast.LENGTH_SHORT);\n toast.show();\n mHighlightedTextView.setVisibility(View.INVISIBLE);\n mHighlightedTextView.setText(\"\");\n mFragmentWallpaperTextView.setVisibility(View.VISIBLE);\n\n });\n }\n\n }\n\n @RequiresApi(Build.VERSION_CODES.O)\n @Override\n public void onRangeStart(String utteranceId, int start, int end, int frame) {\n super.onRangeStart(utteranceId, start, end, frame);\n if (utteranceId.equals(FRAGMENT_GENERAL_UTTERANCE_ID)){\n Log.i(\"Current_Synth_Progress\", \"onRangeStart > utteranceId: \" + utteranceId + \", start: \" + start\n + \", end: \" + end + \", frame: \" + frame);\n\n requireActivity().runOnUiThread(()->{\n Spannable textWithHighlights = new SpannableString(fileTextContent);\n\n textWithHighlights.setSpan(new ForegroundColorSpan(Color.BLACK),\n start, end, Spanned.SPAN_INCLUSIVE_INCLUSIVE);\n textWithHighlights.setSpan(new BackgroundColorSpan(Color.YELLOW),\n start, end, Spanned.SPAN_INCLUSIVE_INCLUSIVE);\n\n mHighlightedTextView.setText(textWithHighlights);\n });\n }\n }\n });\n }", "public static int PagesFitler(String text) {\n\t\tString name = text.replaceAll(\"[^0-9]+\",\"\");\n\t\tSystem.out.println(\" -->\" +name);\n\t\tint n = (int)Math.round(Double.parseDouble(name)/20.00);\n\t\treturn n;\n\t}", "com.google.ads.googleads.v14.common.IncomeRangeInfo getIncomeRange();", "protected String createText() {\r\n\t\t// Default text is 1 based.\r\n\t\tNumberFormat formatter = NumberFormat.getFormat(\"#,###\");\r\n\t\tHasRows display = getDisplay();\r\n\t\tRange range = display.getVisibleRange();\r\n\t\tint pageStart = range.getStart() /*+ 1*/;\r\n\t\tint pageSize = range.getLength();\r\n\t\tint dataSize = display.getRowCount();\r\n\t\tint endIndex = Math.min(dataSize, pageStart + pageSize /*- 1*/);\r\n\t\tendIndex = Math.max(pageStart, endIndex);\r\n\t\tif(endIndex==0)\r\n\t\t\tpageStart = 0;\r\n\t\telse\r\n\t\t\tpageStart = pageStart + 1;\r\n\t\tString text = formatter.format(pageStart) + \"-\"\r\n\t\t\t\t+ formatter.format(endIndex);\r\n\t\treturn text;\r\n\t}" ]
[ "0.57035273", "0.5584302", "0.55310845", "0.54938287", "0.53549993", "0.51407874", "0.51240975", "0.50551134", "0.49570093", "0.49167794", "0.49037635", "0.4835558", "0.48087952", "0.4807818", "0.47918314", "0.4790097", "0.4785666", "0.47325495", "0.47051972", "0.47044834", "0.4685761", "0.46811688", "0.46696782", "0.46684307", "0.46681085", "0.46216717", "0.46206957", "0.46151623", "0.46147168", "0.4610709", "0.45986575", "0.45923072", "0.45796877", "0.45614833", "0.45613232", "0.45522857", "0.45403832", "0.45262966", "0.45259854", "0.45164588", "0.4499819", "0.4488456", "0.4482888", "0.44803846", "0.4473258", "0.44690374", "0.44595546", "0.4457546", "0.44570023", "0.44568688", "0.44515014", "0.4451402", "0.44460315", "0.4444765", "0.44343948", "0.4418", "0.4414249", "0.44064543", "0.44058746", "0.4400736", "0.43996575", "0.43937722", "0.43851155", "0.43751517", "0.43715337", "0.4359947", "0.43558556", "0.4346545", "0.4345708", "0.43362126", "0.43336263", "0.43331537", "0.4330137", "0.43285626", "0.4326118", "0.43248662", "0.43240878", "0.43240386", "0.4318067", "0.43175524", "0.43118745", "0.43080953", "0.43043733", "0.4304239", "0.43025684", "0.43023342", "0.42947078", "0.4290877", "0.4281858", "0.4281355", "0.42739066", "0.42718488", "0.4268041", "0.42652398", "0.42611855", "0.42604122", "0.4257375", "0.42548904", "0.42533347", "0.42508844" ]
0.7583505
0
Criteria for using feet: 1. Up to a value greater than a foot 2. Lower bound greater than a foot
private boolean shouldUseFeet(int lowerBound, int upperBound) { return (shouldUseUpToFormat(lowerBound) && upperBound >= 12) || (lowerBound >= 12 && upperBound >= 24); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double applyLimitBounds(double value) {\n if(value > 1.0) {\n value = 1.0;\n }\n if(value < -1.0) {\n value = -1.0;\n }\n\n // Absolute limits:\n if(lifter.getBottomLimit() && lifter.getUpperLimit()) {\n if(value < 0) {\n value = 0; // Can't go down from the bottom;\n }\n }\n\n if((lifter.getUpperLimit() && lifter.getUpperWarning()) && lifter.getUpperSmallPieceDetector()) {\n if(value > 0) {\n value = 0; // Can't go up from the top\n }\n }\n\n // Slow speed zones\n if(lifter.getBottomWarning()) {\n if(value < -0.3) {\n value = -0.3;\n }\n }\n\n if(lifter.getUpperWarning()) {\n if(value > 0.7) {\n value = 0.7;\n }\n }\n\n printLimits();\n\n return value;\n }", "protected void mapValueToWithinBounds() {\n if (getAllele() != null) {\n \tFloat d_value = ( (Float) getAllele());\n if (d_value.isInfinite()) {\n // Here we have to break to avoid a stack overflow.\n // ------------------------------------------------\n return;\n }\n // If the value exceeds either the upper or lower bounds, then\n // map the value to within the legal range. To do this, we basically\n // calculate the distance between the value and the float min,\n // then multiply it with a random number and then care that the lower\n // boundary is added.\n // ------------------------------------------------------------------\n if (d_value.floatValue() > m_upperBound ||\n d_value.floatValue() < m_lowerBound) {\n RandomGenerator rn;\n if (getConfiguration() != null) {\n rn = getConfiguration().getRandomGenerator();\n }\n else {\n rn = new StockRandomGenerator();\n }\n setAllele(new Float((rn.nextFloat()\n * ((m_upperBound - m_lowerBound))) + m_lowerBound));\n }\n }\n }", "@Test\n public void testFloatInRange() {\n int lowEnd = -10;\n int highEnd = 10;\n Optional<NumberValue> optRslt = floatService.floatInRange(lowEnd, highEnd);\n assertTrue(optRslt.isPresent());\n NumberValue numberValue = optRslt.get();\n assertTrue(lowEnd * 1.0 <= numberValue.getNumber().doubleValue());\n assertTrue(highEnd * 1.0 >= numberValue.getNumber().doubleValue());\n System.out.println(\"Number Value = \" + numberValue.toString());\n }", "@Test\n public void testIsInLimitLower() {\n Assertions.assertTrue(saab.isInLimit(.3, .9, .6));\n }", "double getUpperThreshold();", "@Test\n public void testIsInLimitUpper() {\n Assertions.assertFalse(saab.isInLimit(.5, 1.5, 2.0));\n }", "@Test\r\n\tpublic void calculLostPointsByOneRuleBetweenMaxMinTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(1f, 0.5f, 4f), new Integer(3)),\r\n\t\t\t\tnew Float(1.5));\r\n\t}", "double getLowerThreshold();", "@Test\n public void testFloatInRangeLowOverHigh() {\n int lowEnd = -10;\n int highEnd = 10;\n Optional<NumberValue> optRslt = floatService.floatInRange(highEnd, lowEnd);\n assertFalse(optRslt.isPresent());\n }", "public abstract DoublePredicate upperPredicate(double upperBound);", "private String getDiabetesRange(int befMealValue, int aftMealValue) {\n String range=\"\";\n\n if(befMealValue<=69 && aftMealValue <= 100){\n range=\"low\";\n }\n else if((befMealValue>=70 && befMealValue<=130) && (aftMealValue <=180))\n {\n range=\"normal\";\n }\n else if(befMealValue>=131 && aftMealValue>=181){\n range=\"high\";\n }\n return range;\n }", "private static final float enforceBounds( float f ) {\n if ( f >= 0f ) {\n if ( f <= 1f ) {\n return f;\n }\n else {\n return 1f;\n }\n }\n else {\n return 0f;\n }\n }", "@Override\n\t\t\tpublic boolean satisfies(State s) {\n\t\t\t\tif ((Double)s.get(\"x\") >= 0.5) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}", "float getThreshold();", "private double fishEyeFormula(double s) {\n double minValue = 0.0D;\n double maxValue = 0.0D;\n if (s < minValue) {\n return minValue;\n }\n if (s > maxValue) {\n return s;\n } else {\n return -0.75D * s * s * s + 1.5D * s * s + 0.25D * s;\n }\n }", "public void tensionRangeCheck(){\n if(motor.get() < 0){\n if(Bottom_Limit_Switch.get() | tenPot.pidGet()> tenPotMAX ){\n motor.set(0.0);\n }\n }else if(motor.get() > 0){\n if(Top_Limit_Switch.get() | tenPot.pidGet()< tenPotMIN){\n motor.set(0.0);\n }\n }\n }", "public void boundsCheck(BigDecimal d) throws InvalidDatatypeValueException {\n boolean minOk = false;\n boolean maxOk = false;\n String upperBound = (fMaxExclusive != null )? ( fMaxExclusive.toString() ):\n ( ( fMaxInclusive != null )?fMaxInclusive.toString():\"\");\n \n String lowerBound = (fMinExclusive != null )? ( fMinExclusive.toString() ):\n (( fMinInclusive != null )?fMinInclusive.toString():\"\"); \n String lowerBoundIndicator = \"\";\n String upperBoundIndicator = \"\";\n \n \n if ( isMaxInclusiveDefined){\n maxOk = (d.compareTo(fMaxInclusive) <= 0);\n upperBound = fMaxInclusive.toString();\n if ( upperBound != null ){\n upperBoundIndicator = \"<=\"; \n } else {\n upperBound=\"\";\n }\n } else if ( isMaxExclusiveDefined){\n maxOk = (d.compareTo(fMaxExclusive) < 0);\n upperBound = fMaxExclusive.toString();\n if ( upperBound != null ){\n upperBoundIndicator = \"<\";\n } else {\n upperBound = \"\";\n }\n } else{\n maxOk = (!isMaxInclusiveDefined && ! isMaxExclusiveDefined);\n }\n \n \n if ( isMinInclusiveDefined){\n minOk = (d.compareTo(fMinInclusive) >= 0);\n lowerBound = fMinInclusive.toString();\n if( lowerBound != null ){\n lowerBoundIndicator = \"<=\";\n }else {\n lowerBound = \"\";\n }\n } else if ( isMinExclusiveDefined){\n minOk = (d.compareTo(fMinExclusive) > 0);\n lowerBound = fMinExclusive.toString();\n if( lowerBound != null ){\n lowerBoundIndicator = \"<\";\n } else {\n lowerBound = \"\";\n }\n } else{\n minOk = (!isMinInclusiveDefined && !isMinExclusiveDefined);\n }\n \n if (!(minOk && maxOk))\n throw new InvalidDatatypeValueException (\n getErrorString(DatatypeMessageProvider.OutOfBounds,\n DatatypeMessageProvider.MSG_NONE,\n new Object [] { d.toString() , lowerBound ,\n upperBound, lowerBoundIndicator, upperBoundIndicator}));\n \n }", "private boolean checkGreedyEnergy() {\r\n return myTotal.get(2) < 10 || (myTotal.get(2) < 13 && myTotal.get(2) <= enTotal.get(2));\r\n }", "@Override\r\n\t\t\tpublic boolean accept(double t) {\n\t\t\t\treturn t>0.5;\r\n\t\t\t}", "public void adjust_FineFuelMoisture(){\r\n\t// If FFM is one or less we set it to one\t\t\r\n\tif ((FFM-1)<=0){\r\n\t\tFFM=1;\r\n\t}else{\r\n\t\t//add 5 percent FFM for each Herb stage greater than one\r\n\t\tFFM=FFM+(iherb-1)*5;\r\n\t}\r\n}", "float limit(float powerValue, double currentPos, double lowerLimit, double upperLimit)\n {\n if (currentPos > upperLimit)\n {\n if (powerValue > 0)\n {\n powerValue = 0;\n }\n }\n\n if (currentPos < lowerLimit)\n {\n if (powerValue < 0)\n {\n powerValue = 0;\n }\n }\n\n return powerValue;\n }", "protected double limit(double value) {\n\t\tif (value > 1.0) {\n\t\t\treturn 1.0;\n\t\t}\n\t\tif (value < -1.0) {\n\t\t\treturn -1.0;\n\t\t}\n\t\treturn value;\n\t}", "public boolean valueLargerThan(Money other);", "float getLt();", "private double getMarginFromBounds(int lowerBound, int upperBound) {\n return (upperBound - lowerBound) / 2.0;\n }", "public double getRange(){\n\n double range = fuelRemaining * fuelEconomy;\n return range;\n }", "void setThreshold(float value);", "public int getLowerBound ();", "@Test\r\n\tpublic void calculLostPointsByOneRuleAboveMaxTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(1f, 0.5f, 3f), new Integer(5)),\r\n\t\t\t\tnew Float(1.5));\r\n\t}", "public void setLowerBound (int lowerBound) throws ModelException;", "@Test\r\n\tpublic void calculLostPointsByOneRuleBelowMinTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(2f, 0.5f, 3f), new Integer(1)),\r\n\t\t\t\tnew Float(0));\r\n\t}", "protected static void adaptivaeThresholdCalc() {\n\t\tif (triggerCount > 3) {\n\t\t\tthreshold /= 0.9;\n\t\t\t// Log.d(\"visualizer\", \"threshold up to \" + threshold);\n\t\t}\n\t\tif (triggerCount < 2) {\n\t\t\tthreshold *= 0.9;\n\t\t\t// Log.d(\"visualizer\", \"threshold down to \" + threshold);\n\t\t}\n\n\t\tif (threshold < 1.5f)\n\t\t\tthreshold = 1.5f;\n\t}", "private boolean holds(int attrIndex, double value) {\n\t\n if (numAttributes() == 0)\n\treturn false;\n\t\n if(attribute(attrIndex).isNumeric())\n\treturn(m_MinBorder[attrIndex] <= value && value <= m_MaxBorder[attrIndex]);\n else\n\treturn m_Range[attrIndex][(int) value];\n }", "public abstract DoublePredicate lowerPredicate(double lowerBound);", "public static double limitRange( double val )\n {\n if( val > 1.0 )//If number is greater than 1.0, it becomes 1.0.\n {\n val = 1.0; \n }\n else if( val < -1.0 )//Else if number is less than -1.0, it becomes -1.0.\n {\n val = -1.0;\n }\n \n //Returns the limited number\n return val;\n }", "protected float clampWeight(float weigth) {\n\t\t float ret = weigth;\n\t\t if (ret < -10) ret = -10;\n\t\t if (ret > 10) ret = 10;\n\t\t return ret;\n\t\t }", "private void setMinThreshold() {\n minThreshold = value + value * postBoundChange / 100;\n }", "int main()\n{\n int p;\n float t;\n cin>>p>>t;\n if(t>13.30)\n if( p <= 13)\n cout<<\"$\"<<2<<\".00\";\n \telse\n cout<<\"$\"<<5<<\".00\";\n else\n if( p <= 13)\n cout<<\"$\"<<4<<\".00\";\n else\n cout<<\"$\"<<8<<\".00\";\n \n}", "@SuppressWarnings(\"unused\")\n public static boolean withinRange(float value, float startValue, float endValue) {\n return value == ScWidget.valueRangeLimit(value, startValue, endValue);\n }", "int range() {\n\t\treturn mpg * fuelcap;\n\t}", "@Override\n\tprotected double getLowerBound() {\n\t\treturn 0;\n\t}", "public boolean nearHundred(int n) {\n return (Math.abs(n - 100) <= 10 || Math.abs(n - 200) <= 10);\n}", "int range(){\n return fuelcap*mpg;\n }", "@Override\r\n\tpublic boolean familiarValueCheck(FamilyMember f) {\r\n\t\treturn f.getDiceValue()+this.actionArea.getBonusOfArea(f.getPlayer())>=this.getMinDiceValue();\r\n\t}", "void calculateRange() {\n //TODO: See Rules\n }", "@Override\r\n public double getEntryFare() {\r\n return 2.0;\r\n }", "private double checkBounds(double param, int i) {\n if (param < low[i]) {\n return low[i];\n } else if (param > high[i]) {\n return high[i];\n } else {\n return param;\n }\n }", "private boolean outOfRange(double i, double e, int threshold) {\n\n\t\tdouble lowerBound = e / (double) threshold;\n\t\tdouble upperBound = e * (double) threshold;\n\n\t\treturn ((i < lowerBound) || (i > upperBound));\n\t}", "public double calculatedConsuption(){\nint tressToSow=0;\n\nif (getKiloWatts() >=1 && getKiloWatts() <= 1000){\n\ttressToSow = 8;\n}\nelse if (getKiloWatts() >=1001 && getKiloWatts ()<=3000){\n\ttressToSow = 35;\n}\nelse if (getKiloWatts() > 3000){\n\ttressToSow=500;\n}\nreturn tressToSow;\n}", "public String getRange() {\n if (predictionAmount < 0.1)\n return \"little to none\";\n\n String description = convertFeetToInches(alert.getDescription());\n\n // Get the bounds\n List<Integer> range = getClosestRange(getRanges(description), predictionAmount);\n double margin = getMargin(range);\n int lowerBound = (int) Math.round(predictionAmount - margin);\n int upperBound = (int) Math.round(predictionAmount + margin);\n\n // Determine the unit\n Unit units = Unit.INCHES;\n if (shouldUseFeet(lowerBound, upperBound)) {\n // Convert inches to feet\n lowerBound = toFeet(lowerBound);\n upperBound = toFeet(upperBound);\n units = Unit.FEET;\n }\n\n return getFinalText(units, lowerBound, upperBound);\n }", "public static double inInterval(double lowerBound, double value, double upperBound) {\n/* 67 */ if (value < lowerBound)\n/* 68 */ return lowerBound; \n/* 69 */ if (upperBound < value)\n/* 70 */ return upperBound; \n/* 71 */ return value;\n/* */ }", "public BetweenCriteria(String attributeName, Object lowerBound, Object upperBound) {\n super(attributeName, lowerBound);\n this.upperBound = upperBound;\n }", "int main()\n{\n int units,r;\n cin>>units;\n if (units<=200) {\n r=units*0.5;\n cout<<\"Rs.\"<<r;\n }\n else if (units>=200 && units<=400){\n r=0.65*units+100;\n cout<<\"Rs.\"<<r;\n }\n else if (units>=400 && units<=600){\n r=0.8*units+200;\n cout<<\"Rs.\"<<r;\n }\n else{\n r=1.25*units+425;\n cout<<\"Rs.\"<<r;\n }\n}", "private void setMaxThreshold() {\n maxThreshold = value - value * postBoundChange / 100;\n }", "@Test\n public void testGetLimite() {\n \n assertEquals(50.0, soin1.getLimite(),0.01);\n assertEquals(80.0, soin2.getLimite(),0.01);\n }", "private String GetTolerance(int Value)\n {\n if (Value == 0)\n return \"+5% de tolerancia\";\n else\n return \"+10% de tolerancia\";\n }", "boolean hasGt();", "public boolean nearHundred(int n) {\n return ((Math.abs(100 - n) <= 10) || (Math.abs(200 - n) <= 10));\n}", "int getAttackRange();", "public boolean isInsideLimits(int value) {\n return value > lowerLimit && value < upperLimit;\n }", "@Test\r\n\tpublic void calculMetricSuperiorWithLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculMetricSuperior(new ModelValue(10f, 1f), 12f, 9f), new Float(1));\r\n\t}", "@Override\n\tprotected void setLowerBound() {\n\t\t\n\t}", "static Predicate<Beer> priceRangeQuery(Float priceLowest, Float priceHighest) {\n return b -> b.getPrice() >= priceLowest && b.getPrice() <= priceHighest;\n }", "@Override\n public boolean test(User user) {\n return user.getPoints() > 160;\n }", "private float applyThreshold(float input) {\n return abs(input) > THRESHOLD_MOTION ? input : 0;\n }", "public double boundValueToAttributeLimits(double value, Attribute a) {\r\n\r\n\t\tif (value < a.getMinAttribute())\r\n\t\t\tvalue = a.getMinAttribute();\r\n\t\telse if (value > a.getMaxAttribute())\r\n\t\t\tvalue = a.getMaxAttribute();\r\n\r\n\t\treturn value;\r\n\t}", "public int getCustomerMaxTargetFloor();", "public void setReputation(double reputation) {\n if(reputation >= 0.0 && reputation <= 100.0){\n this.reputation = reputation;\n }\n else if(reputation > 100.0){\n this.reputation = 100.0;\n }\n else{\n this.reputation = 0.0;\n }\n}", "float getGt();", "@Test\n\tpublic void nearestSmallerEqFibTest() {\n\t\tAssert.assertTrue(ifn.nearestSmallerEqFib(30) == 21);\n\t}", "private float calculateAbsorption() {\n int i = getWeightedBucket();\n \n//System.out.println(\" bucket: \" + i);\n\n // the max modification is +/-5 % , broken into 0.5 % chunks\n float modifier = -0.05f;\n modifier += (float)(i * 0.005);\n \n return(modifier);\n }", "private boolean isInsideBounderies(double value, Double min, Double max) {\r\n \tif (min == null && max == null) {\r\n \t\treturn true;\r\n \t}\r\n \telse if (min != null && max == null) {\r\n \t\treturn min <= value;\r\n \t}\r\n \telse if (min == null && max != null) {\r\n \t\treturn value <= max;\r\n \t}\r\n \treturn min <= value && value <= max;\r\n }", "Range controlLimits();", "@Override\n public boolean isValid(BigDecimal value, ConstraintValidatorContext context) {\n if (value == null) {\n return true;\n }\n\n // check if it greater than or equal $1\n if (value.compareTo(BigDecimal.valueOf(1.00)) < 0) {\n return false;\n }\n\n // if pass all of them,\n return true;\n }", "@SuppressWarnings(\"unused\")\n public static float valueRangeLimit(float value, float startValue, float endValue) {\n // If is over the limit return the normalized value\n if (value < Math.min(startValue, endValue)) return Math.min(startValue, endValue);\n if (value > Math.max(startValue, endValue)) return Math.max(startValue, endValue);\n // Else return the original value\n return value;\n }", "public int getBound();", "@Override\n\tpublic boolean checkBoundary(float x) {\n\t\tif (!(x >= MINRANGE && x <= MAXRANGE)) {\n\t\t\treturn false;\n\t\t}\n\t\t// if in the range [-512.03, 511.97]\n\t\treturn true;\n\t}", "@Override\n\tpublic int getScore(int target) {\n\t\tdouble d = toBound(target);\n\t\tif (d < 0 && d + height > 0){\n\t\t\treturn -50;\n\t\t} else {\n\t\t\treturn 5;\n\t\t}\n\t}", "public V getLowerBound();", "public boolean isOutsideLimits(int value) {\n return value < lowerLimit || value > upperLimit;\n }", "@Override\n\tprotected double getUpperBound() {\n\t\treturn 0;\n\t}", "private boolean checkGreedyDefense() {\r\n return enTotal.get(2)+1 < myTotal.get(2) && enTotal.get(0)+1 < myTotal.get(0);\r\n }", "private double bound(int iter, Solution next) {\n return Math.exp((-1.0 * (next.getValue() - bestSol.getValue())) / denominator(iter));\n }", "public void setExhaustionLevel(float f) {\n this.c = Math.min(f, 40f);\n }", "private double clamp(double v, double min, double max) { return (v < min ? min : (v > max ? max : v)); }", "public Bounds getProbabilityBounds();", "public void setPricePerSquareFoot(double newPricePerSquareFoot){\nif(newPricePerSquareFoot > 0){\npricePerSquareFoot = newPricePerSquareFoot;\n}\n}", "public Units whereGreatherOrEqual(UnitSelector.RealSelector selector, double value)\n\t{\n\t\treturn where(new RealComparisonSelector(selector, value, Comparison.GREATER_OR_EQUAL));\n\t}", "public void testLevelPlannedWhenExceeded() throws Exception {\n checkLevelPlannedWhenExceed(new int[]{100},\n new double[]{300},\n new double[]{100},\n new double[]{300});\n\n // -- One account: no levelling possible\n checkLevelPlannedWhenExceed(new int[]{100},\n new double[]{300},\n new double[]{400},\n new double[]{300});\n\n // -- Two accounts: no levelling needed\n checkLevelPlannedWhenExceed(new int[]{100, 101},\n new double[]{300, 500},\n new double[]{100, 200},\n new double[]{300, 500});\n\n // -- Two accounts: extra pushed to second account\n checkLevelPlannedWhenExceed(new int[]{100, 101},\n new double[]{300, 500},\n new double[]{400, 200},\n new double[]{400, 400});\n\n // -- Two accounts: extra pushed to first account\n checkLevelPlannedWhenExceed(new int[]{100, 101},\n new double[]{300, 500},\n new double[]{100, 600},\n new double[]{200, 600});\n\n // -- Two accounts: part of extra pushed to second account\n checkLevelPlannedWhenExceed(new int[]{100, 101},\n new double[]{300, 500},\n new double[]{400, 450},\n new double[]{400, 450});\n\n // -- Two accounts: total actual exceeds the total planned\n checkLevelPlannedWhenExceed(new int[]{100, 101},\n new double[]{300, 500},\n new double[]{250, 600},\n new double[]{250, 600});\n\n // -- Three accounts: extra taken from first account available\n checkLevelPlannedWhenExceed(new int[]{100, 101, 102},\n new double[]{300, 500, 200},\n new double[]{200, 600, 100},\n new double[]{200, 600, 200});\n\n // -- Three accounts: no planned for first one\n checkLevelPlannedWhenExceed(new int[]{100, 101, 102},\n new double[]{0, 500, 300},\n new double[]{0, 600, 100},\n new double[]{0, 600, 200});\n }", "public int getMinFloor();", "public void testFindRangeBounds() {\n XYBlockRenderer renderer = new XYBlockRenderer();\n XYSeriesCollection dataset = new XYSeriesCollection();\n XYSeries series = new XYSeries(\"S1\");\n series.add(1.0, null);\n dataset.addSeries(series);\n Range r = renderer.findRangeBounds(dataset);\n }", "public double getMinHeight(double aValue) { Double h = (Double)get(\"MinHeight\"); return h!=null? h : 0; }", "private void validateParameter(){\n\t\tif(hrNum > upperBound){\n\t\t\thrNum = upperBound;\n\t\t}\n\t\telse if(hrNum < lowerBound){\n\t\t\thrNum = lowerBound;\n\t\t}\n\t}", "default DiscreteSet2D superLevelSet(double value) {\r\n\t\treturn pointsSatisfying(d -> d >= value);\r\n\t}", "public void testGreaterThanElement() {\n\t // fail(\"testGreaterThanElement\");\n \tCircuit circuit = new Circuit();\n \tDouble x1 = 0.5;\n \tAnd and = (And) circuit.getFactory().getGate(Gate.AND);\n\t\tNot not = (Not) circuit.getFactory().getGate(Gate.NOT);\n\t\tGte gte1 = (Gte) circuit.getFactory().getGate(Gate.GTE);\n \tand.setLeftInput(x1);\n \tnot.setInput(x1);\n \tnot.eval();\n \tand.setRightInput(not.getOutput());\n\t\tand.eval();\n \tgte1.setLeftInput(and.getOutput());\n\t\tgte1.setRightInput(x1);\n \tassertEquals( new Double(0.0), gte1.eval());\n }", "@Override\n\tpublic double getWeight(double x) {\n\t\tif (-0.5 <= x && x < 0.5)\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn 0;\n\t}", "public double withIn(double input, double upperBound, double lowerBound) {\n\t\tif (input > 0) {\n\t\t\treturn java.lang.Math.min(upperBound, input);\n\t\t} else if (input < 0) {\n\t\t\treturn java.lang.Math.max(lowerBound, input);\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "LengthGreater createLengthGreater();", "public BigDecimal getPriceLimitEntered();", "Limits limits();" ]
[ "0.63574034", "0.6127544", "0.5968377", "0.588236", "0.57488084", "0.57288206", "0.5707186", "0.56792665", "0.56626093", "0.55913717", "0.55736417", "0.55735", "0.5552525", "0.5545927", "0.55267197", "0.55264705", "0.549897", "0.54965335", "0.54940635", "0.54798234", "0.5443327", "0.54292357", "0.5422874", "0.54040027", "0.536122", "0.5360697", "0.53479147", "0.5347166", "0.53429466", "0.53382486", "0.5318294", "0.52889276", "0.5280753", "0.5273135", "0.5272481", "0.52436", "0.52336365", "0.5228162", "0.52143514", "0.521392", "0.5210731", "0.52073985", "0.5201658", "0.5155192", "0.5153214", "0.5138301", "0.51353604", "0.5131412", "0.51144034", "0.51124334", "0.5109806", "0.5104384", "0.5100202", "0.5096021", "0.50882757", "0.5087453", "0.5065786", "0.50464904", "0.50451344", "0.5039255", "0.50371957", "0.5032153", "0.5013431", "0.5005422", "0.50011957", "0.49996108", "0.49993074", "0.49918795", "0.4990165", "0.4987349", "0.49854583", "0.4970872", "0.49707127", "0.49681127", "0.49499032", "0.49464843", "0.4944739", "0.49440673", "0.49420372", "0.4938107", "0.4938068", "0.49346054", "0.49319747", "0.4915468", "0.49136922", "0.49134532", "0.48982224", "0.48951593", "0.48919174", "0.48911947", "0.48869792", "0.48825136", "0.4880685", "0.48745653", "0.48707274", "0.48699176", "0.48644412", "0.48630446", "0.48597986", "0.48572427" ]
0.6567044
0
Converts inches to feet
private int toFeet(int inches) { return (int) Math.round(inches / 12.0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getHeightInFeetAndInches() {\n int foot = getHeight() / INCHES_PER_FOOT;\n int inches = getHeight() % INCHES_PER_FOOT;\n String result;\n if (inches == 0)\n result = String.format(\"%d feet\", foot);\n else if (inches == 1)\n result = String.format(\"%d feet %d inch\", foot, inches);\n else\n result = String.format(\"%d feet %d inches\", foot, inches);\n return result;\n }", "public static int lengthInInches(int feet, int inches){\n return inches = (12*feet)+inches;\n }", "private String convertFeetToInches(String description) {\n String regex = \"(\\\\d+) to (\\\\d+) feet|up to (\\\\d+) (feet|foot)\";\n Pattern pattern = Pattern.compile(regex);\n Matcher matcher = pattern.matcher(description);\n if (matcher.find()) {\n if (matcher.group(1) != null) {\n int lower = Integer.parseInt(matcher.group(1)) * 12;\n int upper = Integer.parseInt(matcher.group(2)) * 12;\n return description.replace(matcher.group(0), lower + \" to \" + upper + \" inches\");\n }\n int upper = Integer.parseInt(matcher.group(3)) * 12;\n return description.replace(matcher.group(0), \"up to \" + upper + \" inches\");\n }\n return description;\n }", "public static double convertToFt(int in)\r\n {\n\r\n final int INCHES_PER_FOOT = 12;\r\n\r\n double feet = in / (double)INCHES_PER_FOOT;\r\n\r\n return feet;\r\n }", "public void setHeight(int feet, int inches) {\n setHeight((feet * INCHES_PER_FOOT) + inches);\n }", "public static final float pointsToInches(float value) {\n\t return value / 72f;\n\t}", "public static double MeterToFeet(double m){\n return m*10.76;\n }", "public static double feetToMeters(double foot){\r\n\t\t\r\n\t\tdouble meter = 0.305 * foot;\r\n\t\t\r\n\t\treturn meter;\r\n\t}", "protected static float toInches(int type, float value) {\n \t\tswitch (type) {\n \t\tcase CSSPrimitiveValue.CSS_CM:\n \t\t\treturn (value / 2.54f);\n \t\tcase CSSPrimitiveValue.CSS_MM:\n \t\t\treturn (value / 25.4f);\n \t\tcase CSSPrimitiveValue.CSS_IN:\n \t\t\treturn value;\n \t\tcase CSSPrimitiveValue.CSS_PT:\n \t\t\treturn (value / 72);\n \t\tcase CSSPrimitiveValue.CSS_PC:\n \t\t\treturn (value / 6);\n \t\tdefault:\n \t\t\tthrow new DOMException(DOMException.INVALID_ACCESS_ERR, \"\");\n \t\t}\n \t}", "public static double inchesToMillimeters(double inches) {\n return inches * 25.4;\n }", "public static final float inchesToPoints(float value) {\n\t return value * 72f;\n\t}", "public static final float millimetersToInches(float value) {\n\t return value / 25.4f;\n\t}", "public static double millimetersToInches(double millimeters) {\n return millimeters / 25.4;\n }", "public static double cmToInches(double cms)\n {\n return cms * CM_PER_INCH;\n }", "public static Double getFeet(Double distanceInFeet) {\n\t\treturn distanceInFeet/5280/ MILE_PER_DEGREE;\n\t}", "public static double inchesToCms(double inch)\n {\n return inch * INCH_PER_CM;\n }", "public static final float inchesToMillimeters(float value) {\n\t return value * 25.4f;\n\t}", "public static double inchToMeter(final double inch) {\n return inch * METERS_PER_INCH;\n }", "public void getSquareFeet(){\n System.out.println(\"Enter the number square feet to paint: \");\n this.squareFeet = INPUT.nextDouble();\n }", "Inch createInch();", "public static double metersToFeet(double meter){\r\n\t\t\r\n\t\tdouble foot = Math.round((meter / 0.305)*1000.0)/1000.0;\r\n\t\t\r\n\t\treturn foot;\r\n\t}", "public static double FeetToCentimeter(double f){\n return f*929;\n }", "public void setWidthInch(float inches){\n\t\tthis.setWidth(inches);\n\t}", "public void setHeight(int inches) {\n if (inches >= 24 && inches <= 84)\n this.height = inches;\n }", "private static double feetToTicks(double feet) {\n return feet / Config.DRIVE_ENCODER_DPP;\n }", "private static double celsiusToFahrenheit(double c){\n\n return ((c*9)/5)+52;\n\n }", "public static void main(String[] args) {\n System.out.print(\"Enter a degree in C to be converted to F: \");\n Scanner input = new Scanner(System.in);\n double celcius = input.nextDouble();\n double fahrenheit = (celcius * (9.0 / 5)) + 32;\n System.out.println(celcius + \" C is \" + fahrenheit + \" F\");\n }", "public static void main(String[] args) {\n\t\tfloat cm = 12.5f;\r\n\t\tfloat inch = 0.3937f * cm;\r\n\t\tSystem.out.printf(\"a. %.2f cm = %.2f inch\\n\", cm, inch);\r\n\r\n\t\t// b. inch to cm\r\n\t\tinch = 4.92f;\r\n\t\tcm = inch / 0.3937f;\r\n\t\tSystem.out.printf(\"b. %.2f inch = %.2f cm\\n\", inch, cm);\r\n\r\n\t\t// c. feet to meter\r\n\t\tfloat feet = 4.92f;\r\n\t\tfloat meter = feet / 3.2808f;\r\n\t\tSystem.out.printf(\"c. %.2f feet = %.2f meter\\n\", feet, meter);\r\n\r\n\t\t// d. meter to feet\r\n\t\tmeter = 1.50f;\r\n\t\tfeet = meter * 3.2808f;\r\n\t\tSystem.out.printf(\"d. %.2f meter = %.2f feet\\n\", meter, feet);\r\n\r\n\t\t// e. pound to kg\r\n\t\tfloat lb = 158.73f;\r\n\t\tfloat kg = lb / 2.2046f;\r\n\t\tSystem.out.printf(\"e. %.2f lb = %.2f kg\\n\", lb, kg);\r\n\r\n\t\t// f. kg to pound\r\n\t\tkg = 72.00f;\r\n\t\tlb = kg * 2.2046f;\r\n\t\tSystem.out.printf(\"f. %.2f kg = %.2f lb\\n\", kg, lb);\r\n\r\n\t\t// g. km to mile\r\n\t\tfloat km = 42.35f;\r\n\t\tfloat mile = km * 0.62137f;\r\n\t\tSystem.out.printf(\"g. %.2f km = %.2f mile\\n\", km, mile);\r\n\r\n\t\t// h. mile to km\r\n\t\tmile = 26.32f;\r\n\t\tkm = mile / 0.62137f;\r\n\t\tSystem.out.printf(\"h. %.2f mile = %.2f km\\n\", mile, km);\r\n\r\n\t\t// i. km/h to mile/h\r\n\t\tkm = 42.35f;\r\n\t\tmile = km * 0.62137f;\r\n\t\tSystem.out.printf(\"i. %.2f km/h = %.2f mile/h\\n\", km, mile);\r\n\r\n\t\t// j. mile/h to km/h\r\n\t\tmile = 26.32f;\r\n\t\tkm = mile / 0.62137f;\r\n\t\tSystem.out.printf(\"j. %.2f mile/h = %.2f km/h\\n\", mile, km);\r\n\t}", "public static double cToF(double celsius){\n return (celsius*1.8) + 32;\n }", "public void updateFarhenheight(){\n tempInF = ( (tempInC / 5.0 ) * 9.0 ) + 32;\n }", "void FahtoCel() {\n\t\tSystem.out.println(\"Your converted celcius degrees is: \" + fahrenheit + \" degrees celcius.\");\t// prints out converted degrees, with fahrenheit = conversion.fahrenheit\r\n\t}", "private static int inchesToTicks(double inches) {\r\n\r\n double neededRevolutions = (inches - 2) / 11.75;\r\n int ticks = (int) (neededRevolutions * 1120);\r\n return ticks;\r\n }", "public static void main(String[] args) {\n\n\n System.out.println(\"Please input a value for inch:\");\n Scanner scanner = new Scanner(System.in);\n int inchValue = scanner.nextInt();\n double meterValue = 0.0254 * inchValue;\n System.out.println((double)inchValue + \" inch is \" + meterValue + \" meters\");\n }", "public static double feetPerSecondToCentiMetresPerSecond(double num) { return (num*30.48); }", "public static double convertFahtoCel(double temp){\r\n return ((temp - 32) * 5) / 9;\r\n }", "public static double celsiusToFahrenheit(double c) {\n\t\tif (c < 0)\n\t\t\treturn c;\n\n\t\treturn ((c * 9) / 5 + 32);\n\t}", "private static int intFeetToTicks(double feet) {\n return (int) (feetToTicks(feet));\n }", "private String convertCelsiusToFahrenheit(double c) {\n double f = (c * (9.0 / 5.0)) + 32.0;\n DecimalFormat numberFormat = new DecimalFormat(\"#.0\");\n return numberFormat.format(f);\n }", "double kelvinToFahrenheit(double kelvin)\n\t{\n\t\treturn Math.round(((kelvin - 273.15) * (9.0 / 5.0) + 32) * 100.0) / 100.0;\n\t}", "@SuppressWarnings(\"resource\")\r\n\tpublic static void main(String[] args) {\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Please input an amount in Inches to convert to Meters: \");\r\n\t\tdouble inch = input.nextDouble();\r\n\t\tdouble meters = inch * 0.0254;\r\n\t\tSystem.out.println(inch+\" inch is \"+meters+\" in Meters.\");\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\n double meters = convertInchesToMeters(1000.0);\n DecimalFormat df = new DecimalFormat(\"#.##\");\n\n System.out.println(\"1000.0 inches is \"+df.format(meters));\n\n }", "public static double convertCeltoFah(double temp){\r\n return (temp * 9/5) + 32;\r\n }", "public double getHeightInInches()\n {\n return height;\n }", "private String convertFahrenheitToCelsius(double f) {\n double c = (f - 32.0) * (5.0 / 9.0);\n DecimalFormat numberFormat = new DecimalFormat(\"#.0\");\n return numberFormat.format(c);\n }", "public static void main(String[] args) {\n \n \n Scanner scan = new Scanner(System.in);\n \n System.out.println(\" Enter a number of inches pls!\");\n int num1 = scan.nextInt();\n \n System.out.println(num1 + \"in is \" + (num1 / 12) + \"ft converted!\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }", "public static double meterToInch(final double meter) {\n return meter / METERS_PER_INCH;\n }", "private static void displayConversion(double celsius, double fahrenheit) {\n String celsiusOutput = String.format(\"%.2f\", celsius);\n String fahrenheitOutput = String.format(\"%.2f\", fahrenheit);\n System.out.println(\"\\n\" + celsiusOutput + \" degrees Celsius is equal to \" + fahrenheitOutput + \" degrees Fahrenheit.\");\n }", "public double getRangeInches()\n {\n if (isRangeValid())\n {\n\n double currentInches = ((AnalogInput)m_echoChannel).getVoltage() * m_conversionToInches;\n\n m_oldDistance = currentInches;\n }\n\n return m_oldDistance;\n }", "void CeltoFah() {\n\t\tSystem.out.println(\"Your converted celcius degrees is: \" + celcius + \" degrees fahrenheit.\");\t// prints out converted degrees, with celcius = converioin.celcius\r\n\t}", "private static double calculateFahrenheit(double celsius) {\n double farenheit = (9.0 / 5.0) * celsius + 32.0;\n\n return farenheit;\n }", "include<stdio.h>\nint main()\n{\n int celcius;\n float faren;\n scanf(\"%d\",&celcius);\n faren=(celcius*1.8)+32;\n printf(\"%.2f\",faren);\n \n}", "public static double celsius2Fahrenheit(double celsius) {\n return 9/5.0 * celsius + 32;\n }", "public static double convertKeltoFah(double temp){\r\n return ((temp - 273) * 9/5) + 32;\r\n }", "public float convertUnitToEm(float ptSize, int units) {\n return (units * ptSize) / upem;\n }", "public static Vector2 getInchZero() {\n float zeroInInchesX = (REAL_ZERO.x * CALIBRATED_INCH_WIDTH) / Overlay.fieldManager.getPixelWidth();\n float zeroInInchesY = (REAL_ZERO.y * CALIBRATED_INCH_HEIGHT) / Overlay.fieldManager.getPixelHeight();\n\n return new Vector2(zeroInInchesX, zeroInInchesY);\n }", "public static void main(String[] args) {\r\n\t\t\r\n\t\t\r\n\t\t//I'm just declaring all the variables I need right now so I don't need to later.\r\n\t\tdouble miles;\r\n\t\t\r\n\t\tdouble feet;\r\n\t\t\r\n\t\tdouble inches;\r\n\t\t\r\n\t\tdouble meters; \r\n\t\t\r\n\t\t//Here I am printing the prompt for the user to input values I will need to convert to meters\r\n\t\tSystem.out.println(\"Enter miles:\");\r\n\t\t\t\t\r\n\t\t\tScanner userInput = new Scanner (System.in);\r\n\t\t\tmiles = userInput.nextDouble();\r\n\t\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"Enter feet:\");\r\n\t\t\r\n\t\t\tScanner userInput2 = new Scanner (System.in);\r\n\t\t\tfeet = userInput2.nextDouble();\r\n\t\t\t\r\n\t\t\t\r\n\t\tSystem.out.println(\"Enter inches:\");\r\n\t\t\r\n\t\t\tScanner userInput3 = new Scanner (System.in);\r\n\t\t\tinches = userInput3.nextDouble();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t/*this is where I am converting all my values to feet, which will then convert to\r\n\t\t\t\t * meters.\r\n\t\t\t\t * \r\n\t\t\t\t * I am declaring new variables to represent converted values and also\r\n\t\t\t\t */\r\n\t\t\t\tdouble convertedMiles;\r\n\t\t\t\tconvertedMiles = miles*5280;\r\n\t\t\t\r\n\t\t\t\tdouble convertedFeet;\r\n\t\t\t\tconvertedFeet = feet*1;\r\n\t\t\t\r\n\t\t\t\tdouble convertedInches;\r\n\t\t\t\tconvertedInches = inches/12;\r\n\t\t\t\t\r\n\t\t//this statement is where I add together all my converted values to reach my total in feet\r\n\t\t//and then I divide by 3.3 to get to my meters, as specified in the directions\r\n\t\tmeters = (convertedMiles + convertedFeet + convertedInches)/3.3;\r\n\t\t\r\n\t\t//This statement declares a new variable that will convert from meters to a rounded version\r\n\t\t//so that I can have a variable that is rounded to the nearest tenth.\r\n\t\tdouble metersRounded = (double)Math.round((meters)*10)/10;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(miles + \" mile(s), \" + feet + \" foot(or feet) \" + inches + \r\n\t\t\t\t\t\t \" inch(es) = \" + metersRounded + \" meter(s).\");\r\n\t\t\r\n\t\tuserInput.close();\r\n\t\tuserInput2.close();\r\n\t\tuserInput3.close();\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public static double celsiusToFahrenheit(double num) { return ((num*1.8)+32); }", "public static double convertKeltoCel(double temp){\r\n return temp - 273;\r\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n System.out.print(\"Insert Celsius: \");\n float celsius = scanner.nextFloat();\n\n System.out.println();\n System.out.print(\"Convert from celsius to fahrenheit: \");\n float fahrenheit = ((9*celsius)/5) + 32;\n System.out.print(fahrenheit);\n }", "public double getRangeInches(){\r\n\t\t return uSensor.getRangeInches();\r\n\t\t}", "public Temperature toFahrenheit() { \n\t\tif (scale==\"C\"){\n\t\t\tdegrees=degrees*1.8+32;\n\t\t\tscale=\"F\";}\n\t\t\treturn this;\n\t}", "public static double fahrenheitToCelsius(double f) {\n\t\tif (f < 0)\n\t\t\treturn f;\n\n\t\treturn ((f - 32) * 5 / 9);\n\t}", "public static double convertCelcToFahr(double tempC){\n double tempF = 1.8 * tempC + 32;\n return tempF;\n }", "public void getFootPrint(){\n\t\tcarbonFootPrint = ((milesDriven/FuelEfficency)*(19.36/(carbondioxide/gallons)))/2204.6;\n\t}", "public static double meterToFoot(final double meter) {\n return meter / METERS_PER_FOOT;\n }", "public static void temperatureConversion()\n\t{\n\t\tSystem.out.println(\"enter temperature in farenheit\");\n\t\tdouble mTemperatureFarenheit = scanner.nextDouble();\n\t\t\t\n\t\tdouble mToCelcius = ((mTemperatureFarenheit - 32) / 1.8);\n\t\tdouble mToFarenheit = ((mToCelcius * 1.8) + 32);\n\t\tSystem.out.println(\"temperature in celcius is \" + mToCelcius);\n\t\tSystem.out.println(\"temperature in farenheit is \" +mToFarenheit);\n\t\t\n\t}", "public static void f_kilometers_to_miles(){\n Scanner keyboard = new Scanner(System.in);\r\n\r\n System.out.println(\"Input the value in km: \");\r\n double km = keyboard.nextDouble();\r\n\r\n while (km < 1){\r\n System.err.println(\"Error: invalid value\");\r\n\r\n System.out.println(\"Input the value in km: \");\r\n km = keyboard.nextDouble();\r\n }\r\n\r\n double miles = km * 0.621371;\r\n\r\n System.out.println(\"The conversion is: \"+ miles+ \" miles\");\r\n\r\n\r\n }", "public final double encoderTicksToInches(double ticks) {\n return WHEEL_RADIUS * 2 * Math.PI * GEAR_RATIO * ticks / TICKS_PER_REV;\n }", "public static double inputHeight() {\n String inchesInput;\n Double heightDouble = 0.0;\n\n System.out.println(\"Please enter your height (in inches): \");\n do {\n try {\n inchesInput = input.nextLine();\n heightDouble = Double.parseDouble(inchesInput);\n\n } catch (Exception e) {\n\n }\n if (heightDouble <= 0) {\n System.out.println(INPUT_ERROR);\n }\n } while (heightDouble <= 0);\n\n\n return heightDouble;\n }", "@NonNull\n public Integer getSpacingInInches() {\n return spacingInInches;\n }", "public static double convertFahtoKel(double temp){\r\n return ((temp - 32) * 5) / 9 + 273;\r\n }", "public double getFlippedYInches()\r\n {\n return Constants.selectedField.getWidth() - getUnflippedYInches();\r\n }", "public static void f_miles_to_kilometers(){\n Scanner keyboard = new Scanner(System.in);\r\n\r\n System.out.println(\"Input the value in miles: \");\r\n double miles = keyboard.nextDouble();\r\n\r\n while (miles < 1){\r\n System.err.println(\"Error: invalid value\");\r\n\r\n System.out.println(\"Input the value in miles: \");\r\n miles = keyboard.nextDouble();\r\n }\r\n\r\n double km = miles * 1.60934;\r\n\r\n System.out.println(\"The conversion is: \"+ km+ \" km\");\r\n\r\n }", "public static double convertCeltoKel(double temp){\r\n return temp + 273;\r\n }", "private String getUnits(Unit units, int value) {\n if (units == Unit.FEET) {\n if (value == 1) return \" foot\";\n return \" feet\";\n }\n if (value == 1) return \" inch\";\n return \" inches\";\n }", "public static double cToF(double temp) {\n return (temp * (9/5)) + 32;\n }", "public int getElevationInFeet() {\n\t\treturn elevationInFeet;\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 double getWidthInInches()\n {\n return width;\n }", "public float centimetresToGridUnits(float cm);", "public void setJine(float f) {\n\n }", "public static void main(String [] args) {\n\t\t\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.println(\"Please enter degrees in Farenheit...\");\n\t\t\n\t\tdouble degreesInFarenheit = input.nextDouble();\n\t\tdouble degreesInCelcius;\n\t\t\n\t\tdegreesInCelcius = (5.0/9.0) * (degreesInFarenheit - 32);\n\t\t\n\t\tSystem.out.println(degreesInCelcius);\n\t\t\n\t\tinput.close();\n\t\n\t}", "public static double footToMeter(final double foot) {\n return foot * METERS_PER_FOOT;\n }", "public static int celsiusToFahrenheit(double degreesCelsius) {\r\n int fahrenheit = (int) (degreesCelsius * 9.0 / 5 + 32);\r\n return fahrenheit;\r\n }", "public static double celciusToFahrenheit(double c) {\n\t\tfinal double MININUM_CELCIUS = -273.16;\n\t\tif (c < MININUM_CELCIUS)\n\t\t\tthrow new IllegalArgumentException(\"Argument \" + c + \" is too small\");\n\t\treturn (1.8 * c) + 32;\n\t}", "private void convertInput(double input) {\n\n if (input != 0) {\n // Set standard value in meters based on selected unit\n switch (selectedUnit) {\n case \"km\":\n standard = input / 0.001;\n break;\n case \"m\":\n standard = input;\n break;\n case \"cm\":\n standard = input / 100;\n break;\n case \"mm\":\n standard = input / 1000;\n break;\n case \"μm\":\n standard = input / 1000000;\n break;\n case \"nm\":\n standard = input / 1000000000;\n break;\n case \"mi\":\n standard = input / 0.000621371;\n break;\n case \"yd\":\n standard = input / 1.09361;\n break;\n case \"ft\":\n standard = input / 3.28084;\n break;\n case \"in\":\n standard = input / 39.3701;\n break;\n default:\n standard = input;\n break;\n }\n //km\n kmTextView.setText(numberFormatter(standard * 0.001));\n //m\n mTextView.setText(numberFormatter(standard * 1));\n //cm\n cmTextView.setText(numberFormatter(standard * 100));\n //mm\n mmTextView.setText(numberFormatter(standard * 1000));\n //um\n umTextView.setText(numberFormatter(standard * 1000000));\n //nm\n nmTextView.setText(numberFormatter(standard * 1000000000));\n //mi\n miTextView.setText(numberFormatter(standard * 0.000621371));\n //yd\n ydTextView.setText(numberFormatter(standard * 1.09361));\n //ft\n ftTextView.setText(numberFormatter(standard * 3.28084));\n //in\n inTextView.setText(numberFormatter(standard * 39.3701));\n } else {\n //km\n kmTextView.setText(\"\");\n //m\n mTextView.setText(\"\");\n //cm\n cmTextView.setText(\"\");\n //mm\n mmTextView.setText(\"\");\n //um\n umTextView.setText(\"\");\n //nm\n nmTextView.setText(\"\");\n //mi\n miTextView.setText(\"\");\n //yd\n ydTextView.setText(\"\");\n //ft\n ftTextView.setText(\"\");\n //in\n inTextView.setText(\"\");\n }\n }", "public static double celsiusToFahrenheit(int degreesCelsius) {\r\n double fahrenheit = degreesCelsius * 9.0 / 5 + 32;\r\n return fahrenheit;\r\n }", "@Override\n public String getFormattedValue(float value, Entry entry, int dataSetIndex, ViewPortHandler viewPortHandler) {\n return ((int) value) + \"h\" + ((int) (value - (int) value) * 60) + \"m\";\n }", "public float getTemperatureInFahrenheit() {\n\t\tif(this.metric==Metric.CELSIUS) {\n\t\t\treturn(this.temperature*(9/5)+32);\n\t\t}else if(this.metric==Metric.KELVIN) {\n\t\t\treturn (9*(this.temperature - 273)/5 + 32);\n\t\t}\n\t\treturn this.temperature;\n\t\t\n\t}", "private void moveXFeet(int feet) {\n\t}", "public static double celsiusToFahrenheit(double celsius){\n \n //declare variable for converted temperature\n double convertedTemperature = ((9.0 / 5) * celsius + 32);\n \n //return value of converted temperature\n return convertedTemperature;\n \n }", "private void convert() {\n\t\t//first we have to get the input from textField to covert it\n\t\tString input = inputText.getText(); //caz getText() returns anything in String only.\n\t\tfloat enteredTemperature = 0.0f;\n\t\ttry {\n\t\t\tenteredTemperature = Float.parseFloat(input); //converting string in float type.\n\t\t}catch (Exception e){\n\t\t\twarnUser(); // here we warn, user to enter valid temperature but the info shows value for default\n\t\t\t// we have to add retrun; to end the code here only.\n\t\t\treturn;\n\t\t}\n\t\tfloat newConvertedTemperature = 0.0f;\n\t\tif(isC_to_F_selected) //IF user selected C_to_F_Text then do this\n\t\t{\n\t\t\tnewConvertedTemperature = (enteredTemperature * 9/5) + 32;\n\t\t}else{ //IF user selected F_to_C_Text then do this\n\t\t\tnewConvertedTemperature = (enteredTemperature - 32) * 5/9;\n\t\t}\n\t\tdisplay(newConvertedTemperature);\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"Bitte Lšnge in Inch eingeben:\");\r\n\t\t\r\n\t\t//wait for input (length)\r\n\t\tdouble length = sc.nextDouble();\r\n\t\t\r\n\t\t//calculate length from Inch to cm\r\n\t\tSystem.out.println(\"\\n enstpricht:\" + length*2.5 + \" cm\");\r\n\t\t\r\n\t}", "public static double fahrenheitToCelsius(double fahrenheit){\n \n //declare variable for converted temperature\n double convertedTemperature = ((5.0 / 9) * (fahrenheit - 32));\n \n //return value of converted temperature\n return convertedTemperature; \n }", "public static double centimeterToMeter(final double centimeter) {\n return centimeter * METERS_PER_CENTIMETER;\n }", "public void setElevationInFeet(int elevationInFeet) {\n\t\tthis.elevationInFeet = elevationInFeet;\n\t}", "public static double convertmTOft (double m) {\n\tdouble ft=m*3.2808;\n\treturn ft;\n}", "public double fuelneeded (int miles) {\n\t\treturn (double) miles / mpg;\n\t}", "public static float kmToMiles(long steps){\n float miles;\n float distance = (float) (steps * 78) / (float) 100000;\n miles = (float) (distance / 1.609344);\n return miles;\n }", "double fuelneeded(int miles) {\n\t\treturn (double) miles / mpg;\n\t}" ]
[ "0.7902943", "0.7811216", "0.7210928", "0.71588063", "0.6846525", "0.6767665", "0.6495495", "0.6452488", "0.643751", "0.63965815", "0.63598", "0.63218427", "0.627358", "0.6174921", "0.6144666", "0.6083419", "0.6031276", "0.6016758", "0.5995581", "0.5926573", "0.5922219", "0.590595", "0.58538735", "0.58333683", "0.5775075", "0.57609767", "0.57366276", "0.57082015", "0.57008153", "0.56309384", "0.56165737", "0.5563699", "0.55326474", "0.5510975", "0.55095506", "0.55049956", "0.5501398", "0.54992086", "0.54896367", "0.5464191", "0.54631233", "0.5450566", "0.5435668", "0.54326063", "0.54254365", "0.5412542", "0.5340066", "0.53285", "0.53259724", "0.5302047", "0.529108", "0.5290592", "0.5277145", "0.52659386", "0.5260839", "0.52527505", "0.52511144", "0.5246139", "0.52231276", "0.521606", "0.52160496", "0.5210325", "0.51794034", "0.51766074", "0.5165668", "0.51533896", "0.5127363", "0.50901127", "0.50056434", "0.5004043", "0.50030583", "0.49699336", "0.49553657", "0.49445692", "0.4924262", "0.49163032", "0.49094832", "0.49094373", "0.48946726", "0.4884147", "0.48799154", "0.48753375", "0.48694566", "0.48640963", "0.4848524", "0.48467866", "0.4846774", "0.4827809", "0.48224726", "0.48135218", "0.48069873", "0.47455996", "0.47421896", "0.47321817", "0.47235763", "0.47187352", "0.4715749", "0.4704053", "0.46985164", "0.4669883" ]
0.7992553
0
Determines the format to use for the final text
private String getFinalText(Unit units, int lowerBound, int upperBound) { if (shouldUseUpToFormat(lowerBound)) return useUpToFormat(units, upperBound); return useRangeFormat(units, lowerBound, upperBound); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract String format();", "String documentFormat();", "String getFormat();", "String getFormat();", "String getFormat();", "@VTID(8)\r\n java.lang.String format();", "private String inFormat() {\n File f = cfg.getReadFromFile();\n if (f != null) {\n return \" in format file \" + f.getPath();\n }\n return \" in format \" + StringUtils.defaultString(cfg.getName(), \"(unnamed)\");\n }", "String getContentFormat();", "String getFormatter();", "void format();", "public String getFormat() {\n/* 206 */ return getValue(\"format\");\n/* */ }", "Object getFormat();", "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 }", "public int getFormat ()\n {\n return this.format;\n }", "Format internalGetFormat()\n {\n return doGetFormat();\n }", "private FormatUtilities() {}", "public abstract String getFormattedContent();", "public String format () {\n\t\treturn format;\n\t}", "public String getFormat()\n {\n return format;\n }", "public int getFormat()\n {\n return format;\n }", "private static String determineOutputFormat(CommandLine optionLine)\n {\n String format = optionLine.getOptionValue(Environment.FORMAT);\n if (StringUtils.isEmpty(format)) {\n format = \"TTL\"; //$NON-NLS-1$ - by default\n }\n return format;\n }", "public String getFormat() {\r\n return _format;\r\n }", "protected Format doGetFormat()\n {\n return null;\n }", "public String getFormat() {\n return format;\n }", "public String getFormat() {\n return format;\n }", "public String getFormat() {\n return format;\n }", "public String getFormat() {\n\t\treturn formatString;\n\t}", "public String getFormat() {\n return this.format;\n }", "private void formatSystem() {}", "String getValueFormat();", "FileFormat getFormat();", "public String getFormat() {\n\t\treturn format;\n\t}", "String getOutputFormat();", "@Test\n public void fieldFormat() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Use a document builder to insert a field that displays a result with no format applied.\n Field field = builder.insertField(\"= 2 + 3\");\n\n Assert.assertEquals(\"= 2 + 3\", field.getFieldCode());\n Assert.assertEquals(\"5\", field.getResult());\n\n // We can apply a format to a field's result using the field's properties.\n // Below are three types of formats that we can apply to a field's result.\n // 1 - Numeric format:\n FieldFormat format = field.getFormat();\n format.setNumericFormat(\"$###.00\");\n field.update();\n\n Assert.assertEquals(\"= 2 + 3 \\\\# $###.00\", field.getFieldCode());\n Assert.assertEquals(\"$ 5.00\", field.getResult());\n\n // 2 - Date/time format:\n field = builder.insertField(\"DATE\");\n format = field.getFormat();\n format.setDateTimeFormat(\"dddd, MMMM dd, yyyy\");\n field.update();\n\n Assert.assertEquals(\"DATE \\\\@ \\\"dddd, MMMM dd, yyyy\\\"\", field.getFieldCode());\n System.out.println(\"Today's date, in {format.DateTimeFormat} format:\\n\\t{field.Result}\");\n\n // 3 - General format:\n field = builder.insertField(\"= 25 + 33\");\n format = field.getFormat();\n format.getGeneralFormats().add(GeneralFormat.LOWERCASE_ROMAN);\n format.getGeneralFormats().add(GeneralFormat.UPPER);\n field.update();\n\n int index = 0;\n Iterator<Integer> generalFormatEnumerator = format.getGeneralFormats().iterator();\n while (generalFormatEnumerator.hasNext()) {\n int value = generalFormatEnumerator.next();\n System.out.println(MessageFormat.format(\"General format index {0}: {1}\", index++, value));\n }\n\n\n Assert.assertEquals(\"= 25 + 33 \\\\* roman \\\\* Upper\", field.getFieldCode());\n Assert.assertEquals(\"LVIII\", field.getResult());\n Assert.assertEquals(2, format.getGeneralFormats().getCount());\n Assert.assertEquals(GeneralFormat.LOWERCASE_ROMAN, format.getGeneralFormats().get(0));\n\n // We can remove our formats to revert the field's result to its original form.\n format.getGeneralFormats().remove(GeneralFormat.LOWERCASE_ROMAN);\n format.getGeneralFormats().removeAt(0);\n Assert.assertEquals(0, format.getGeneralFormats().getCount());\n field.update();\n\n Assert.assertEquals(\"= 25 + 33 \", field.getFieldCode());\n Assert.assertEquals(\"58\", field.getResult());\n Assert.assertEquals(0, format.getGeneralFormats().getCount());\n //ExEnd\n }", "private String getFormatattedTxt(String inputTxt, int txtLength) {\n\t\tint fulllength = inputTxt.length(); // full length gives the length of IR number\n\t\tint rellength = txtLength + 4; //Inv Number + 'IRX' + '-'\n\t\tint temp = fulllength - rellength;\n\t\tString formattedTxt = \"\";\n\n\t\tLog.customer.debug(\"CATMFGDWInvoicePush_FlatFile: int temp \" + temp);\n\n\t\tinputTxt = inputTxt.substring(rellength, fulllength);\n\n\n\t\tformattedTxt = \"IRX-\" + inputTxt;\n\t\tLog.customer.debug(\"CATMFGDWInvoicePush_FlatFile: formattedTxt \" + formattedTxt);\n\t\treturn formattedTxt;\n\n\t\t}", "@Override\n\t\t\tprotected String formatValue(String text) {\n\t\t\t\treturn text.substring(0, text.lastIndexOf('.'));\n\t\t\t}", "public String getWriteFormatDescription(int formatIndex);", "@Override\r\n\tpublic String getFormat() {\r\n\t\treturn \"java\";\r\n\t}", "private Format()\n {\n super();\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}", "public String getChangeFileEndFormat() {\r\n \t\treturn properties.getProperty(KEY_CHANGE_FILE_END_FORMAT);\r\n \t}", "@Override\n\tprotected String formatted(Walue _) {\n\t\treturn \"\";\n\t}", "private String descFormat() {\n File f = cfg.getReadFromFile();\n if (f != null) {\n return f.getPath();\n }\n return StringUtils.defaultString(cfg.getName(), \"(unnamed)\");\n }", "public String getFormat() throws Exception {\n\t\treturn doc.selectSingleNode(\"/metadataFieldInfo/field/@metaFormat\").getText();\n\t}", "public abstract String getOutputFormat();", "abstract public String asText(boolean pretty);", "public Format(String s)\n {\n width = 0;\n precision = -1;\n pre = \"\";\n post = \"\";\n leading_zeroes = false;\n show_plus = false;\n alternate = false;\n show_space = false;\n left_align = false;\n fmt = ' ';\n\n int length = s.length();\n int parse_state = 0;\n\n // 0 = prefix, 1 = flags, 2 = width, 3 = precision,\n // 4 = format, 5 = end\n int i = 0;\n\n while (parse_state == 0)\n {\n if (i >= length)\n {\n parse_state = 5;\n }\n else if (s.charAt(i) == '%')\n {\n if (i < (length - 1))\n {\n if (s.charAt(i + 1) == '%')\n {\n pre = pre + '%';\n i++;\n }\n else\n {\n parse_state = 1;\n }\n }\n else\n {\n throw new java.lang.IllegalArgumentException();\n }\n }\n else\n {\n pre = pre + s.charAt(i);\n }\n\n i++;\n }\n\n while (parse_state == 1)\n {\n if (i >= length)\n {\n parse_state = 5;\n }\n else if (s.charAt(i) == ' ')\n {\n show_space = true;\n }\n else if (s.charAt(i) == '-')\n {\n left_align = true;\n }\n else if (s.charAt(i) == '+')\n {\n show_plus = true;\n }\n else if (s.charAt(i) == '0')\n {\n leading_zeroes = true;\n }\n else if (s.charAt(i) == '#')\n {\n alternate = true;\n }\n else\n {\n parse_state = 2;\n i--;\n }\n\n i++;\n }\n\n while (parse_state == 2)\n {\n if (i >= length)\n {\n parse_state = 5;\n }\n else if (('0' <= s.charAt(i)) && (s.charAt(i) <= '9'))\n {\n width = ((width * 10) + s.charAt(i)) - '0';\n i++;\n }\n else if (s.charAt(i) == '.')\n {\n parse_state = 3;\n precision = 0;\n i++;\n }\n else\n {\n parse_state = 4;\n }\n }\n\n while (parse_state == 3)\n {\n if (i >= length)\n {\n parse_state = 5;\n }\n else if (('0' <= s.charAt(i)) && (s.charAt(i) <= '9'))\n {\n precision = ((precision * 10) + s.charAt(i)) - '0';\n i++;\n }\n else\n {\n parse_state = 4;\n }\n }\n\n if (parse_state == 4)\n {\n if (i >= length)\n {\n parse_state = 5;\n }\n else\n {\n fmt = s.charAt(i);\n }\n\n i++;\n }\n\n if (i < length)\n {\n post = s.substring(i, length);\n }\n }", "public String getMtf() {\n StringBuffer sb = new StringBuffer();\n String nl = \"\\r\\n\"; // DOS friendly\n\n boolean standard = (getCockpitType() == Mech.COCKPIT_STANDARD) && (getGyroType() == Mech.GYRO_STANDARD);\n boolean fullHead = hasFullHeadEject();\n if (standard && !fullHead) {\n sb.append(\"Version:1.0\").append(nl);\n } else if (!fullHead){\n sb.append(\"Version:1.1\").append(nl);\n } else {\n sb.append(\"Version:1.2\").append(nl);\n }\n sb.append(chassis).append(nl);\n sb.append(model).append(nl);\n sb.append(nl);\n\n sb.append(\"Config:\");\n if (this instanceof BipedMech) {\n sb.append(\"Biped\");\n } else if (this instanceof QuadMech) {\n sb.append(\"Quad\");\n }\n\n if (isOmni()) {\n sb.append(\" Omnimech\");\n }\n\n sb.append(nl);\n sb.append(\"TechBase:\");\n if (isMixedTech()) {\n if (isClan()) {\n sb.append(\"Mixed (Clan Chassis)\");\n } else {\n sb.append(\"Mixed (IS Chassis)\");\n }\n } else {\n sb.append(TechConstants.getTechName(techLevel));\n }\n sb.append(nl);\n sb.append(\"Era:\").append(year).append(nl);\n if ((source != null) && (source.trim().length() > 0)) {\n sb.append(\"Source:\").append(source).append(nl);\n }\n sb.append(\"Rules Level:\").append(TechConstants.T_SIMPLE_LEVEL[techLevel]);\n sb.append(nl);\n sb.append(nl);\n\n Float tonnage = new Float(weight);\n sb.append(\"Mass:\").append(tonnage.intValue()).append(nl);\n sb.append(\"Engine:\").append(getEngine().getEngineName()).append(\" Engine\").append(!(getEngine().hasFlag(Engine.CLAN_ENGINE)&&isMixedTech())?(\"(IS)\"):\"\");\n sb.append(nl);\n sb.append(\"Structure:\");\n sb.append(EquipmentType.getStructureTypeName(getStructureType()));\n sb.append(nl);\n\n sb.append(\"Myomer:\");\n if (hasTSM()) {\n sb.append(\"Triple-Strength\");\n } else if (hasIndustrialTSM()) {\n sb.append(\"Industrial Triple-Strength\");\n } else {\n sb.append(\"Standard\");\n }\n sb.append(nl);\n\n if (!standard) {\n sb.append(\"Cockpit:\");\n sb.append(getCockpitTypeString());\n sb.append(nl);\n\n sb.append(\"Gyro:\");\n sb.append(getGyroTypeString());\n sb.append(nl);\n }\n if (hasFullHeadEject()) {\n sb.append(\"Ejection:\");\n sb.append(Mech.FULL_HEAD_EJECT_STRING);\n sb.append(nl);\n }\n sb.append(nl);\n\n sb.append(\"Heat Sinks:\").append(heatSinks()).append(\" \");\n if (hasLaserHeatSinks()) {\n sb.append(\"Laser\");\n } else if (hasDoubleHeatSinks()) {\n sb.append(\"Double\");\n } else {\n sb.append(\"Single\");\n }\n sb.append(nl);\n\n if (isOmni()) {\n sb.append(\"Base Chassis Heat Sinks:\");\n sb.append(getEngine().getBaseChassisHeatSinks());\n sb.append(nl);\n }\n\n sb.append(\"Walk MP:\").append(walkMP).append(nl);\n sb.append(\"Jump MP:\").append(jumpMP).append(nl);\n sb.append(nl);\n\n sb.append(\"Armor:\").append(EquipmentType.getArmorTypeName(getArmorType()));\n sb.append(\"(\" + TechConstants.getTechName(getArmorTechLevel()) + \")\");\n sb.append(nl);\n\n for (int element : MtfFile.locationOrder) {\n sb.append(getLocationAbbr(element)).append(\" Armor:\");\n sb.append(getOArmor(element, false)).append(nl);\n }\n for (int element : MtfFile.rearLocationOrder) {\n sb.append(\"RT\").append(getLocationAbbr(element).charAt(0)).append(\" Armor:\");\n sb.append(getOArmor(element, true)).append(nl);\n }\n sb.append(nl);\n\n sb.append(\"Weapons:\").append(weaponList.size()).append(nl);\n for (int i = 0; i < weaponList.size(); i++) {\n Mounted m = weaponList.get(i);\n sb.append(m.getName()).append(\", \").append(getLocationName(m.getLocation())).append(nl);\n }\n sb.append(nl);\n\n for (int l : MtfFile.locationOrder) {\n String locationName = getLocationName(l);\n sb.append(locationName + \":\");\n sb.append(nl);\n for (int y = 0; y < 12; y++) {\n if (y < getNumberOfCriticals(l)) {\n sb.append(decodeCritical(getCritical(l, y))).append(nl);\n } else {\n sb.append(MtfFile.EMPTY).append(nl);\n }\n }\n sb.append(nl);\n }\n\n if (getFluff().getHistory().trim().length() > 0) {\n sb.append(\"history:\");\n sb.append(getFluff().getHistory());\n }\n\n if (getFluff().getMMLImagePath().trim().length() > 0) {\n sb.append(\"imagefile:\");\n sb.append(getFluff().getMMLImagePath());\n }\n\n return sb.toString();\n }", "public String getFormatString() {\r\n if (format == null) { return \"\"; }\r\n if (format.equals(ImportQueueItem.FORMAT_TAB)) {\r\n return FORMAT_TAB_DISPLAY;\r\n } else if (format.equals(ImportQueueItem.FORMAT_XML)) {\r\n return FORMAT_XML_DISPLAY;\r\n } else if (format.equals(ImportQueueItem.FORMAT_DISCOURSE)) {\r\n return FORMAT_DISCOURSE_DISPLAY;\r\n } else {\r\n return format + \" format\";\r\n }\r\n }", "@Override\n\tpublic String toString()\n\t{\n\t\treturn toString(Locale.getDefault(Locale.Category.FORMAT));\n\t}", "@Test\n public void testFormatWithoutReformat() throws ParseException {\n String message = \"TAF LFPG 121700Z 1218/1324 13003KT CAVOK TX09/1315Z TN00/1306Z \\n\" + \"TEMPO 1303/1308 4000 BR\";\n // WHEN formating the message\n String result = sut.format(message);\n // THEN the message is not edited.\n assertEquals(message, result);\n }", "protected String formatField() {\n \tif(!updated) return \"No record set.\";\n \t\n \tif(firstFieldP.getText() != null && lastFieldP.getText() != null) {\n\t \tfirstNameString = firstFieldP.getText();\n\t \tlastNameString = lastFieldP.getText();\n \t} else\t{\n \tfirstNameString = firstFieldC.getText();\n \tlastNameString = lastFieldC.getText();\n \ttribeString = tribeField.getText();\t\n \t}\n\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"<html><p align=center>\");\n \tsb.append(firstNameString);\n \tsb.append(\" \");\n \tsb.append(lastNameString);\n \tsb.append(\"<br>\");\n \tsb.append(tribeString);\n \tsb.append(\"</p></html>\");\n \t\n \treturn sb.toString(); \t\n }", "public boolean isFormat() {\n\t\treturn isFormat;\n\t}", "@Override\n\tpublic String format() {\n\t\treturn \"Mood is: Sad...\";\n\t}", "@Field(0) \n\tpublic int format() {\n\t\treturn this.io.getIntField(this, 0);\n\t}", "public void setFormat(String fmt)\n {\n format = fmt;\n }", "public void testTextContentWithFormat() {\n TextContentWithFormatTestDTO obj = new TextContentWithFormatTestDTO();\n obj.textContent = getDateForFormat(\"28.02.2007:15:21:27\");\n assertTrue(JSefaTestUtil.serialize(XML, obj).indexOf(\"28.02.2007:15:21:27\") >= 0);\n }", "public String getFormatOfRecords() {\n\t\tString t = doc.get(\"formatofrecords\");\n\n\t\tif (t == null) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\treturn t;\n\t\t}\n\t}", "private Formats() {\n }", "private String format(String text) {\n if(text != null && !text.isEmpty())\n return text.substring(0, 1).toUpperCase(Locale.ENGLISH) + text.substring(1);\n else\n return \"\";\n }", "io.envoyproxy.envoy.config.core.v3.SubstitutionFormatString getBodyFormatOverride();", "@Override\n\tpublic boolean isFormatted() {\n\t\treturn false;\n\t}", "@Override\n\tpublic KRRFormat format() {\n\t\treturn null;\n\t}", "public String getCurrentValueFormatted()\r\n {\r\n \t/*\r\n \t * If you look at the OpenXML spec or\r\n \t * STNumberFormat.java, you'll see there are some 60 number formats.\r\n \t * \r\n \t * Of these, we currently aim to support:\r\n \t * \r\n\t\t * decimal\r\n\t\t * upperRoman\r\n\t\t * lowerRoman\r\n\t\t * upperLetter\r\n\t\t * lowerLetter\r\n\t\t * bullet\r\n\t\t * none\r\n\t\t * \r\n\t\t * What about?\r\n\t\t * \r\n\t\t * ordinal\r\n\t\t * cardinalText\r\n\t\t * ordinalText\r\n \t * \r\n \t */\r\n \t\r\n \tif (numFmt.equals( NumberFormat.DECIMAL ) ) {\r\n \t\treturn this.counter.getCurrentValue().toString();\r\n \t}\r\n \t\r\n \tif (numFmt.equals( NumberFormat.NONE ) ) {\r\n \t\treturn \"\"; \t\t\r\n \t}\r\n\r\n \tif (numFmt.equals( NumberFormat.BULLET ) ) {\r\n \t\t\r\n \t\t// TODO - revisit how this is handled.\r\n \t\t// The code elsewhere for handling bullets\r\n \t\t// overlaps with this numFmt stuff.\r\n \t\treturn \"*\"; \t\t\r\n \t}\r\n \t \t\r\n \tint current = this.counter.getCurrentValue().intValue();\r\n \t\r\n \tif (numFmt.equals( NumberFormat.UPPER_ROMAN ) ) { \t\t\r\n \t\tNumberFormatRomanUpper converter = new NumberFormatRomanUpper(); \r\n \t\treturn converter.format(current);\r\n \t}\r\n \tif (numFmt.equals( NumberFormat.LOWER_ROMAN ) ) { \t\t\r\n \t\tNumberFormatRomanLower converter = new NumberFormatRomanLower(); \r\n \t\treturn converter.format(current);\r\n \t}\r\n \tif (numFmt.equals( NumberFormat.LOWER_LETTER ) ) { \t\t\r\n \t\tNumberFormatLowerLetter converter = new NumberFormatLowerLetter(); \r\n \t\treturn converter.format(current);\r\n \t}\r\n \tif (numFmt.equals( NumberFormat.UPPER_LETTER ) ) { \t\t\r\n \t\tNumberFormatLowerLetter converter = new NumberFormatLowerLetter(); \r\n \t\treturn converter.format(current).toUpperCase();\r\n \t} \t\r\n \tif (numFmt.equals( NumberFormat.DECIMAL_ZERO ) ) { \t\t\r\n \t\tNumberFormatDecimalZero converter = new NumberFormatDecimalZero(); \r\n \t\treturn converter.format(current);\r\n \t}\r\n \t\r\n \tlog.error(\"Unhandled numFmt: \" + numFmt.name() );\r\n return this.counter.getCurrentValue().toString();\r\n }", "@Override\n public String formatComplete (String complete)\n {\n if (complete == null || complete.isEmpty() || fromString(complete) != null)\n {\n return null;\n }\n else if (complete.matches(\"[0-9]{2}/[0-9]{2}/[0-9]{2}\"))\n {\n String textYear19 = \"19\" + complete.substring(6);\n String textYear20 = \"20\" + complete.substring(6);\n if (Integer.valueOf(textYear20) >= LocalDate.now().getYear() + 5)\n {\n return complete.substring(0, 6) + textYear19;\n }\n else\n {\n return complete.substring(0, 6) + textYear20;\n }\n }\n else if (complete.replaceAll(\"[^0-9]\", \"\").length() == 8)\n {\n String onlyDigits = complete.replaceAll(\"[^0-9]\", \"\");\n return onlyDigits.substring(0, 2) + \"/\" + onlyDigits.substring(2, 4) + \"/\" + onlyDigits.substring(4);\n }\n else\n {\n return null;\n }\n }", "public int getDisplayFormat() {\r\n return insertMode ? 0 : intValue(CONTACTS_DISPLAY_FORMAT);\r\n }", "NumberFormat getFormat() {\n\t\t\treturn fmt_result;\n\t\t}", "@Test\n public void formatTest() {\n // TODO: test format\n }", "private String formatText(List<EntityAnnotation> entityAnnotation) {\n String message = \"\";\n\n if (entityAnnotation != null) {\n int count = 0;\n for (EntityAnnotation entity : entityAnnotation) {\n count++;\n if (count <= 8) {\n int num = (int) (entity.getScore() * 100);\n message = message + \" \" + num + \"% - \" + entity.getDescription().substring(0, 1).toUpperCase() + entity.getDescription().substring(1);\n message += \"\\n\";\n }\n }\n } else {\n message = \"Nothing Found\";\n }\n\n return message;\n }", "public String getSupportFormat() {\r\n\t\treturn supportFormat;\r\n\t}", "public String getFormatDesign() {\n return (String)getAttributeInternal(FORMATDESIGN);\n }", "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 }", "public void formatFields() {\r\n\t}", "public String getReadFormatDescription(int formatIndex);", "public abstract void format(Job job, Order order, Object formatConfig) throws Exception;", "public abstract String format(T t);", "protected String createText() {\r\n\t\t// Default text is 1 based.\r\n\t\tNumberFormat formatter = NumberFormat.getFormat(\"#,###\");\r\n\t\tHasRows display = getDisplay();\r\n\t\tRange range = display.getVisibleRange();\r\n\t\tint pageStart = range.getStart() /*+ 1*/;\r\n\t\tint pageSize = range.getLength();\r\n\t\tint dataSize = display.getRowCount();\r\n\t\tint endIndex = Math.min(dataSize, pageStart + pageSize /*- 1*/);\r\n\t\tendIndex = Math.max(pageStart, endIndex);\r\n\t\tif(endIndex==0)\r\n\t\t\tpageStart = 0;\r\n\t\telse\r\n\t\t\tpageStart = pageStart + 1;\r\n\t\tString text = formatter.format(pageStart) + \"-\"\r\n\t\t\t\t+ formatter.format(endIndex);\r\n\t\treturn text;\r\n\t}", "public String getFormatCode() {\n if (format == null) return \"MP4\";\n switch(format) {\n case \"Windows Media\": return \"WMV\";\n case \"Flash Video\": return \"FLV\";\n case \"MPEG-4\": return \"MP4\";\n case \"Matroska\": return \"MKV\";\n case \"AVI\": return \"AVI\";\n default: return \"MP4\";\n }\n }", "public void setOutputFormat(OutputFormat format);", "public void setFormat(String format) {\r\n _format = format;\r\n }", "private String getExpectedHTMLTextOutput(OutputFormat format) throws InvalidDDMSException {\r\n\t\tUtil.requireHTMLText(format);\r\n\t\tStringBuffer text = new StringBuffer();\r\n\t\ttext.append(buildHTMLTextOutput(format, \"verticalExtent.unitOfMeasure\", String.valueOf(TEST_UOM)));\r\n\t\ttext.append(buildHTMLTextOutput(format, \"verticalExtent.datum\", String.valueOf(TEST_DATUM)));\r\n\t\ttext.append(buildHTMLTextOutput(format, \"verticalExtent.minimum\", String.valueOf(TEST_MIN)));\r\n\t\ttext.append(buildHTMLTextOutput(format, \"verticalExtent.maximum\", String.valueOf(TEST_MAX)));\r\n\t\treturn (text.toString());\r\n\t}", "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 getFormat() {\n Object ref = format_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n format_ = s;\n return s;\n }\n }", "public DefaultFormat() {\n }", "public String getPrintableFormat() {\n String output = new String(\"Articoli del gruppo \" + groupName + \":\\n\");\n for (int i = 0; i < list.size(); i++) {\n Article article = list.get(i);\n output += String.format(\"%2d %s\\n\",i,article.getPrintableFormat());\n }\n return output;\n }", "public String getFormat() {\n Object ref = format_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n format_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "private String getLabelFormat(final Specimen objSpecimen, StringBuffer buffer)\r\n\t{\r\n\t\tString labelFormat = \"\";\r\n\t\tif(objSpecimen.getSpecimenRequirement() != null)\r\n\t\t{\r\n\t\t\tif(objSpecimen.getSpecimenRequirement().getLabelFormat().contains(\"%CP_DEFAULT%\"))\r\n\t\t\t{\r\n//\t\t\t\tlabelFormat=objSpecimen.getSpecimenCollectionGroup().getCollectionProtocolRegistration().getCollectionProtocol().getSpecimenLabelFormat();\r\n\t\t\t\tlabelFormat = getSpecimenLabelFormat(objSpecimen);\r\n\t\t\t}\r\n\t\t\telse if(!objSpecimen.getSpecimenRequirement().getLabelFormat().contains(\"%CP_DEFAULT%\"))\r\n\t\t\t{\r\n\t\t\t\tlabelFormat = objSpecimen.getSpecimenRequirement().getLabelFormat();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\telse if(objSpecimen.getSpecimenRequirement() == null)\r\n\t\t{\r\n\t\t\tlabelFormat = getSpecimenLabelFormat(objSpecimen);\r\n\t\t}\r\n\r\n\t\treturn labelFormat;\r\n\t}", "public String getFormat() {\n\t\treturn getAttribute(FORMAT_TAG);\n\t}", "public String getChangeFileBeginFormat() {\r\n \t\treturn properties.getProperty(KEY_CHANGE_FILE_BEGIN_FORMAT);\r\n \t}", "public String format() {\n return \"Mood is sad :[\";\n }", "@UML(identifier=\"fileFormat\", obligation=MANDATORY, specification=ISO_19139)\n Format getFileFormat();", "public String getFormatString() {\n\t\treturn formatString;\n\t}", "public void setFormat(String value) {\n/* 198 */ setValue(\"format\", value);\n/* */ }", "public String format(NumberFormatTestData tuple) {\n return null;\n }", "private String format(final String format, final Object arg1, final Object arg2)\n\t{\n\t\treturn MessageFormatter.format(format, arg1, arg2).getMessage();\n\t}", "public void setFormat(String format) {\n this.format = format;\n }", "public void setFormat(String format) {\n this.format = format;\n }", "public void setFormat(String format) {\n this.format = format;\n }", "@Test\n public void testFormatWithAMD() throws ParseException {\n String message =\n \"TAF \\n\" + \"AMD LFPG 100910Z 1009/1112 20015G25KT 9999 BKN035 \\n\" + \"TEMPO 1011/1019 26020G35KT 4000 SHRA BKN012TCU PROB30 \\n\" + \"TEMPO 1015/1019 27025G45KT 2500 TSRAGS SCT012CB \\n\"\n + \"BECMG 1021/1024 27010KT PROB30 \\n\" + \"TEMPO 1105/1107 BKN014 \\n\" + \"BECMG 1109/1111 34010KT\";\n\n String formatedString =\n \"TAF AMD LFPG 100910Z 1009/1112 20015G25KT 9999 BKN035 \\n\" + \"TEMPO 1011/1019 26020G35KT 4000 SHRA BKN012TCU PROB30 \\n\" + \"TEMPO 1015/1019 27025G45KT 2500 TSRAGS SCT012CB \\n\"\n + \"BECMG 1021/1024 27010KT PROB30 \\n\" + \"TEMPO 1105/1107 BKN014 \\n\" + \"BECMG 1109/1111 34010KT\\n\";\n\n // When formating the message\n String result = sut.format(message);\n // Then the 2 first lines are merged.\n assertNotNull(result);\n assertEquals(formatedString, result);\n }", "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}" ]
[ "0.742113", "0.7037865", "0.69713116", "0.69713116", "0.69713116", "0.6856025", "0.68232656", "0.67480636", "0.66617185", "0.6655792", "0.65427077", "0.6495722", "0.63797474", "0.63155776", "0.62717324", "0.62346256", "0.619729", "0.61689776", "0.6166169", "0.6163099", "0.61111015", "0.6105071", "0.6101072", "0.6093782", "0.6093782", "0.6093782", "0.60901874", "0.6072129", "0.604975", "0.6030166", "0.6028748", "0.60186535", "0.59945494", "0.5991045", "0.5979864", "0.59569746", "0.5943042", "0.5914958", "0.5910958", "0.5897571", "0.58893883", "0.58217716", "0.58126134", "0.58098006", "0.58040684", "0.5804014", "0.5793534", "0.5767931", "0.57308704", "0.57297343", "0.5718898", "0.5700581", "0.56815547", "0.567696", "0.56684625", "0.56395906", "0.5636779", "0.56321406", "0.5629042", "0.56267804", "0.56267667", "0.55995876", "0.55976427", "0.55976367", "0.55775136", "0.55497354", "0.5545739", "0.5539338", "0.55387866", "0.55262417", "0.55227816", "0.5521463", "0.5519354", "0.5515419", "0.5513338", "0.55068034", "0.5499739", "0.5480063", "0.5476845", "0.5471118", "0.5466471", "0.54614156", "0.545239", "0.54501754", "0.544449", "0.54382217", "0.5436861", "0.54337245", "0.54326725", "0.54325664", "0.54305905", "0.54301196", "0.54227257", "0.54207265", "0.54071784", "0.54014957", "0.54014957", "0.54014957", "0.53981835", "0.53846836" ]
0.57249486
50
Returns text in the range format Example: 3 to 6 inches
private String useRangeFormat(Unit units, int lowerBound, int upperBound) { return lowerBound + " to " + upperBound + getUnits(units, upperBound); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRange() {\n if (predictionAmount < 0.1)\n return \"little to none\";\n\n String description = convertFeetToInches(alert.getDescription());\n\n // Get the bounds\n List<Integer> range = getClosestRange(getRanges(description), predictionAmount);\n double margin = getMargin(range);\n int lowerBound = (int) Math.round(predictionAmount - margin);\n int upperBound = (int) Math.round(predictionAmount + margin);\n\n // Determine the unit\n Unit units = Unit.INCHES;\n if (shouldUseFeet(lowerBound, upperBound)) {\n // Convert inches to feet\n lowerBound = toFeet(lowerBound);\n upperBound = toFeet(upperBound);\n units = Unit.FEET;\n }\n\n return getFinalText(units, lowerBound, upperBound);\n }", "public Range getTextPortsRange();", "private String getFinalText(Unit units, int lowerBound, int upperBound) {\n if (shouldUseUpToFormat(lowerBound)) return useUpToFormat(units, upperBound);\n return useRangeFormat(units, lowerBound, upperBound);\n }", "VocNoun getRange();", "public abstract String format(double lowerBound, double upperBound);", "public String getRange() {\n return this.range;\n }", "public java.lang.String getRange() {\n\t\treturn _range;\n\t}", "public StringBuffer rangeToString(Key low, Key high)\n {\n \t\n \tStringBuffer str=new StringBuffer();\n \t\n \tint l=(int) low;\n \tint h=(int) high;\n \tfor(int ch=l;ch<=h;ch++)\n \tstr.append(ch);\n \treturn str;\n \t \t\n }", "java.lang.String getDestRange();", "protected static String expectedRangeString(Object minValue, boolean minInclusive, Object maxValue, boolean maxInclusive) {\n // A means for a return value\n String retVal;\n\n // Start with the proper symbol for the lower bound\n if (minInclusive) {\n retVal = \"[\";\n } else {\n retVal = \"(\";\n }\n\n // Add in the minimum and maximum values\n retVal += minValue + \" .. \" + maxValue;\n\n // End with the proper symbol for the upper bound\n if (maxInclusive) {\n retVal += \"]\";\n } else {\n retVal += \")\";\n }\n\n // Return the formatted string\n return retVal;\n }", "private String getRange(SimpleSetting simpleSetting) {\r\n\t\tString visibleRange = NOT_AVAILABLE;\r\n\t\tTYPE settingType = simpleSetting.getType();\r\n\r\n\t\tif (TYPE.INT.equals(settingType)) {\r\n\t\t\tMinInclusive minInclusive = simpleSetting.getMinInclusive();\r\n\t\t\tMaxInclusive maxInclusive = simpleSetting.getMaxInclusive();\r\n\t\t\tMinExclusive minExclusive = simpleSetting.getMinExclusive();\r\n\t\t\tMaxExclusive maxExclusive = simpleSetting.getMaxExclusive();\r\n\r\n\t\t\tBigDecimal min = new BigDecimal(Integer.MIN_VALUE);\r\n\t\t\tBigDecimal max = new BigDecimal(Integer.MAX_VALUE);\r\n\t\t\tString minMark = EMPTY;\r\n\t\t\tString maxMark = EMPTY;\r\n\r\n\t\t\tif (minExclusive != null) {\r\n\t\t\t\tmin = (BigDecimal) minExclusive.getValue();\r\n\t\t\t\tminMark = \"(\";\r\n\t\t\t}\r\n\r\n\t\t\tif (minInclusive != null) {\r\n\t\t\t\tmin = (BigDecimal) minInclusive.getValue();\r\n\t\t\t\tif (minMark.contains(\"(\"))\r\n\t\t\t\t\tminMark.replace(\"(\", \"[\");\r\n\t\t\t\telse\r\n\t\t\t\t\tminMark = \"[\";\r\n\t\t\t}\r\n\r\n\t\t\tif (maxExclusive != null) {\r\n\t\t\t\tmax = (BigDecimal) maxExclusive.getValue();\r\n\t\t\t\tmaxMark = \")\";\r\n\t\t\t}\r\n\r\n\t\t\tif (maxInclusive != null) {\r\n\t\t\t\tmax = (BigDecimal) maxInclusive.getValue();\r\n\t\t\t\tif (maxMark.contains(\")\"))\r\n\t\t\t\t\tmaxMark.replace(\")\", \"]\");\r\n\t\t\t\telse\r\n\t\t\t\t\tmaxMark = \"]\";\r\n\t\t\t}\r\n\r\n\t\t\tif (!EMPTY.equals(minMark) || !EMPTY.equals(maxMark)) {\r\n\t\t\t\tif (Integer.MIN_VALUE == min.intValue()\r\n\t\t\t\t\t\t&& Integer.MAX_VALUE != max.intValue())\r\n\t\t\t\t\tvisibleRange = \"(-\" + INFINITY + \"; \" + max + maxMark;\r\n\r\n\t\t\t\tif (Integer.MIN_VALUE != min.intValue()\r\n\t\t\t\t\t\t&& Integer.MAX_VALUE == max.intValue())\r\n\t\t\t\t\tvisibleRange = minMark + min + \"; \" + INFINITY + \")\";\r\n\r\n\t\t\t\tif (Integer.MIN_VALUE != min.intValue()\r\n\t\t\t\t\t\t&& Integer.MAX_VALUE != max.intValue())\r\n\t\t\t\t\tvisibleRange = minMark + min + \"; \" + max + maxMark;\r\n\t\t\t}\r\n\r\n\t\t\treturn visibleRange;\r\n\t\t}\r\n\r\n\t\tif (TYPE.REAL.equals(settingType)) {\r\n\t\t\tMinInclusive minInclusive = simpleSetting.getMinInclusive();\r\n\t\t\tMaxInclusive maxInclusive = simpleSetting.getMaxInclusive();\r\n\t\t\tMinExclusive minExclusive = simpleSetting.getMinExclusive();\r\n\t\t\tMaxExclusive maxExclusive = simpleSetting.getMaxExclusive();\r\n\r\n\t\t\tBigDecimal min = new BigDecimal(Long.MIN_VALUE);\r\n\t\t\tBigDecimal max = new BigDecimal(Long.MAX_VALUE);\r\n\t\t\tString minMark = EMPTY;\r\n\t\t\tString maxMark = EMPTY;\r\n\r\n\t\t\tif (minExclusive != null) {\r\n\t\t\t\tmin = (BigDecimal) minExclusive.getValue();\r\n\t\t\t\tminMark = \"(\";\r\n\t\t\t}\r\n\r\n\t\t\tif (minInclusive != null) {\r\n\t\t\t\tmin = (BigDecimal) minInclusive.getValue();\r\n\t\t\t\tif (minMark.contains(\"(\"))\r\n\t\t\t\t\tminMark.replace(\"(\", \"[\");\r\n\t\t\t\telse\r\n\t\t\t\t\tminMark = \"[\";\r\n\t\t\t}\r\n\r\n\t\t\tif (maxExclusive != null) {\r\n\t\t\t\tmax = (BigDecimal) maxExclusive.getValue();\r\n\t\t\t\tmaxMark = \")\";\r\n\t\t\t}\r\n\r\n\t\t\tif (maxInclusive != null) {\r\n\t\t\t\tmax = (BigDecimal) maxInclusive.getValue();\r\n\t\t\t\tif (maxMark.contains(\")\"))\r\n\t\t\t\t\tmaxMark.replace(\")\", \"]\");\r\n\t\t\t\telse\r\n\t\t\t\t\tmaxMark = \"]\";\r\n\t\t\t}\r\n\r\n\t\t\tif (!EMPTY.equals(minMark) || !EMPTY.equals(maxMark)) {\r\n\t\t\t\tif (Long.MIN_VALUE == min.longValue()\r\n\t\t\t\t\t\t&& Long.MAX_VALUE != max.longValue())\r\n\t\t\t\t\tvisibleRange = \"(-\" + INFINITY + \"; \" + max + maxMark;\r\n\r\n\t\t\t\tif (Long.MIN_VALUE != min.longValue()\r\n\t\t\t\t\t\t&& Long.MAX_VALUE == max.longValue())\r\n\t\t\t\t\tvisibleRange = minMark + min + \"; \" + INFINITY + \")\";\r\n\r\n\t\t\t\tif (Long.MIN_VALUE != min.longValue()\r\n\t\t\t\t\t\t&& Long.MAX_VALUE != max.longValue())\r\n\t\t\t\t\tvisibleRange = minMark + min + \"; \" + max + maxMark;\r\n\t\t\t}\r\n\r\n\t\t\treturn visibleRange;\r\n\t\t}\r\n\r\n\t\tif (TYPE.DATE.equals(settingType) || TYPE.DATE_TIME.equals(settingType)\r\n\t\t\t\t|| TYPE.TIME.equals(settingType)) {\r\n\t\t\tMinInclusive minInclusive = simpleSetting.getMinInclusive();\r\n\t\t\tMaxInclusive maxInclusive = simpleSetting.getMaxInclusive();\r\n\t\t\tMinExclusive minExclusive = simpleSetting.getMinExclusive();\r\n\t\t\tMaxExclusive maxExclusive = simpleSetting.getMaxExclusive();\r\n\t\t\tXMLCalendar min = null;\r\n\t\t\tXMLCalendar max = null;\r\n\r\n\t\t\tif (TYPE.DATE.equals(settingType)) {\r\n\t\t\t\tmin = new XMLCalendar(\"1970-01-01\", XMLCalendar.DATE);\r\n\t\t\t\tmax = new XMLCalendar(\"2099-12-31\", XMLCalendar.DATE);\r\n\t\t\t} else if (TYPE.DATE_TIME.equals(settingType)) {\r\n\t\t\t\tmin = new XMLCalendar(\"1970-01-01T00:00:00Z\",\r\n\t\t\t\t\t\tXMLCalendar.DATETIME);\r\n\t\t\t\tmax = new XMLCalendar(\"2099-12-31T23:59:59Z\",\r\n\t\t\t\t\t\tXMLCalendar.DATETIME);\r\n\t\t\t} else if (TYPE.TIME.equals(settingType)) {\r\n\t\t\t\tmin = new XMLCalendar(\"00:00:00+00:00\", XMLCalendar.TIME);\r\n\t\t\t\tmax = new XMLCalendar(\"23:59:59+00:00\", XMLCalendar.TIME);\r\n\t\t\t}\r\n\r\n\t\t\tXMLCalendar minValue = min;\r\n\t\t\tXMLCalendar maxValue = max;\r\n\r\n\t\t\tString minMark = EMPTY;\r\n\t\t\tString maxMark = EMPTY;\r\n\r\n\t\t\tif (minExclusive != null) {\r\n\t\t\t\tmin = (XMLCalendar) minExclusive.getValue();\r\n\t\t\t\tminMark = \"(\";\r\n\t\t\t}\r\n\r\n\t\t\tif (minInclusive != null) {\r\n\t\t\t\tmin = (XMLCalendar) minInclusive.getValue();\r\n\t\t\t\tif (minMark.contains(\"(\"))\r\n\t\t\t\t\tminMark.replace(\"(\", \"[\");\r\n\t\t\t\telse\r\n\t\t\t\t\tminMark = \"[\";\r\n\t\t\t}\r\n\r\n\t\t\tif (maxExclusive != null) {\r\n\t\t\t\tmax = (XMLCalendar) maxExclusive.getValue();\r\n\t\t\t\tmaxMark = \")\";\r\n\t\t\t}\r\n\r\n\t\t\tif (maxInclusive != null) {\r\n\t\t\t\tmax = (XMLCalendar) maxInclusive.getValue();\r\n\t\t\t\tif (maxMark.contains(\")\"))\r\n\t\t\t\t\tmaxMark.replace(\")\", \"]\");\r\n\t\t\t\telse\r\n\t\t\t\t\tmaxMark = \"]\";\r\n\t\t\t}\r\n\r\n\t\t\tif (!EMPTY.equals(minMark) || !EMPTY.equals(maxMark)) {\r\n\t\t\t\tif (minValue.equals(min) && !maxValue.equals(max))\r\n\t\t\t\t\tvisibleRange = \"(-\" + INFINITY + \"; \" + max + maxMark;\r\n\r\n\t\t\t\tif (!minValue.equals(min) && maxValue.equals(max))\r\n\t\t\t\t\tvisibleRange = minMark + min + \"; \" + INFINITY + \")\";\r\n\r\n\t\t\t\tif (!minValue.equals(min) && !maxValue.equals(max))\r\n\t\t\t\t\tvisibleRange = minMark + min + \"; \" + max + maxMark;\r\n\t\t\t}\r\n\r\n\t\t\treturn visibleRange;\r\n\t\t}\r\n\r\n\t\tif (TYPE.DURATION.equals(settingType)) {\r\n\t\t\tMinInclusive minInclusive = simpleSetting.getMinInclusive();\r\n\t\t\tMaxInclusive maxInclusive = simpleSetting.getMaxInclusive();\r\n\t\t\tMinExclusive minExclusive = simpleSetting.getMinExclusive();\r\n\t\t\tMaxExclusive maxExclusive = simpleSetting.getMaxExclusive();\r\n\t\t\tXMLDuration min = null;\r\n\t\t\tXMLDuration max = null;\r\n\r\n\t\t\tXMLDuration minValue = min;\r\n\t\t\tXMLDuration maxValue = max;\r\n\r\n\t\t\tString minMark = EMPTY;\r\n\t\t\tString maxMark = EMPTY;\r\n\r\n\t\t\tif (minExclusive != null) {\r\n\t\t\t\tmin = (XMLDuration) minExclusive.getValue();\r\n\t\t\t\tminMark = \"(\";\r\n\t\t\t}\r\n\r\n\t\t\tif (minInclusive != null) {\r\n\t\t\t\tmin = (XMLDuration) minInclusive.getValue();\r\n\t\t\t\tif (minMark.contains(\"(\"))\r\n\t\t\t\t\tminMark.replace(\"(\", \"[\");\r\n\t\t\t\telse\r\n\t\t\t\t\tminMark = \"[\";\r\n\t\t\t}\r\n\r\n\t\t\tif (maxExclusive != null) {\r\n\t\t\t\tmax = (XMLDuration) maxExclusive.getValue();\r\n\t\t\t\tmaxMark = \")\";\r\n\t\t\t}\r\n\r\n\t\t\tif (maxInclusive != null) {\r\n\t\t\t\tmax = (XMLDuration) maxInclusive.getValue();\r\n\t\t\t\tif (maxMark.contains(\")\"))\r\n\t\t\t\t\tmaxMark.replace(\")\", \"]\");\r\n\t\t\t\telse\r\n\t\t\t\t\tmaxMark = \"]\";\r\n\t\t\t}\r\n\r\n\t\t\tif (!EMPTY.equals(minMark) || !EMPTY.equals(maxMark)) {\r\n\t\t\t\tif (minValue == min && maxValue != max)\r\n\r\n\t\t\t\t\tvisibleRange = \"max \" + getParsedString(max);\r\n\t\t\t\t// visibleRange = \"(-\" + INFINITY + \"; \" + max + maxMark;\r\n\r\n\t\t\t\tif (minValue != min && maxValue == max)\r\n\t\t\t\t\tvisibleRange = \"min \" + getParsedString(min);\r\n\r\n\t\t\t\t// visibleRange = minMark + min + \"; \" + INFINITY + \")\";\r\n\r\n\t\t\t\tif (minValue != min && maxValue != max)\r\n\t\t\t\t\tvisibleRange = \"from \" + getParsedString(min) + \"\\nto \"\r\n\t\t\t\t\t\t\t+ getParsedString(max);\r\n\t\t\t\t// visibleRange = minMark + min + \"; \" + max + maxMark;\r\n\t\t\t}\r\n\r\n\t\t\treturn visibleRange;\r\n\t\t}\r\n\r\n\t\treturn visibleRange;\r\n\t}", "private String getChargeRangeAsString() {\r\n\r\n String charges = \"\";\r\n\r\n for (int i = minCharge; i <= maxCharge; i++) {\r\n\r\n if (!charges.isEmpty()) {\r\n charges += \",\";\r\n }\r\n\r\n charges += i + \"+\";\r\n\r\n }\r\n\r\n return charges;\r\n }", "@Override\r\n public String toString() {\r\n return \"Range [\" + \"min=\" + min + \", max=\" + max + \"]\";\r\n }", "String getEndRange();", "int getRange();", "String getBeginRange();", "public int getRangeWidth();", "@Override\n\tpublic int getRange() {\n\t\treturn range;\n\t}", "@Override\n public void visitRange( int start, int end )\n {\n if ( end <= Character.MAX_VALUE )\n {\n codePoint( output, start );\n output.append( '-' );\n codePoint( output, end );\n }\n else if ( start <= Character.MAX_VALUE )\n {\n codePoint( output, start );\n output.append( '-' );\n // truncate the range\n codePoint( output, Character.MAX_VALUE );\n }\n // just skip larger values\n }", "public String toString() {\n/* 387 */ if (this.toString == null) {\n/* 388 */ StrBuilder buf = new StrBuilder(32);\n/* 389 */ buf.append(\"Range[\");\n/* 390 */ buf.append(this.min);\n/* 391 */ buf.append(',');\n/* 392 */ buf.append(this.max);\n/* 393 */ buf.append(']');\n/* 394 */ this.toString = buf.toString();\n/* */ } \n/* 396 */ return this.toString;\n/* */ }", "@Nullable\n private String getTextByRange(@NotNull final RangeInfo rangeInfo) {\n\n if (rangeInfo.isTerminationRange()) {\n return null;\n }\n else {\n final String viewText = myView.getText();\n return viewText.substring(rangeInfo.getFrom(), rangeInfo.getTo());\n }\n }", "public double getRangeInches(){\r\n\t\t return uSensor.getRangeInches();\r\n\t\t}", "public TextRangeUI( String label, float min, float max )\n { \n if ( Float.isNaN(min) || Float.isInfinite(min) ||\n Float.isNaN(max) || Float.isInfinite(max) ||\n min > max )\n {\n System.out.println(\"Error: min, max invalid in TextRangeUI\");\n System.out.println(\"min = \" + min + \", max = \" + max);\n System.out.println(\"using default interval [0,1]\");\n min = 0;\n max = 1;\n }\n\n this.min = min;\n this.max = max;\n this.label = label;\n\n setFont( FontUtil.LABEL_FONT );\n show_text();\n }", "private String convertFeetToInches(String description) {\n String regex = \"(\\\\d+) to (\\\\d+) feet|up to (\\\\d+) (feet|foot)\";\n Pattern pattern = Pattern.compile(regex);\n Matcher matcher = pattern.matcher(description);\n if (matcher.find()) {\n if (matcher.group(1) != null) {\n int lower = Integer.parseInt(matcher.group(1)) * 12;\n int upper = Integer.parseInt(matcher.group(2)) * 12;\n return description.replace(matcher.group(0), lower + \" to \" + upper + \" inches\");\n }\n int upper = Integer.parseInt(matcher.group(3)) * 12;\n return description.replace(matcher.group(0), \"up to \" + upper + \" inches\");\n }\n return description;\n }", "private String getDiabetesRange(int befMealValue, int aftMealValue) {\n String range=\"\";\n\n if(befMealValue<=69 && aftMealValue <= 100){\n range=\"low\";\n }\n else if((befMealValue>=70 && befMealValue<=130) && (aftMealValue <=180))\n {\n range=\"normal\";\n }\n else if(befMealValue>=131 && aftMealValue>=181){\n range=\"high\";\n }\n return range;\n }", "public List<Integer> getRanges(String description) {\n String rangeRegex = \"(\\\\d+) (to|and) (\\\\d+) inches\";\n String upToRegex = \"up to (\\\\d+) inch\";\n Pattern rangePattern = Pattern.compile(rangeRegex);\n Pattern upToPattern = Pattern.compile(upToRegex);\n Matcher rangeMatcher = rangePattern.matcher(description);\n Matcher upToMatcher = upToPattern.matcher(description);\n List<Integer> ranges = new ArrayList<>();\n while (rangeMatcher.find()) {\n int lowerBound = Integer.parseInt(rangeMatcher.group(1));\n int upperBound = Integer.parseInt(rangeMatcher.group(3));\n ranges.add(lowerBound);\n ranges.add(upperBound);\n }\n if (ranges.size() == 0) {\n while (upToMatcher.find()) {\n int upperBound = Integer.parseInt(upToMatcher.group(1));\n ranges.add(0);\n ranges.add(upperBound);\n }\n }\n return ranges;\n }", "String getPortRange();", "public double getRange(){\r\n\t\t uSensor.ping();\r\n\t\t return uSensor.getRangeInches();\r\n\t\t}", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn this.getIndentation() + \"(in-subrange \" + this.getPosition1().getCoordX() + \", \" + this.getPosition1().getCoordY() + \", \"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t + this.getPosition2().getCoordX() + \", \" + this.getPosition2().getCoordY() + \")\";\r\n\t}", "private void show_text()\n {\n NumberFormat f = NumberFormat.getInstance();\n f.setGroupingUsed( false );\n setText( label + \" \" +\n START + \" \" + f.format(min) + \n SEPARATOR + f.format(max) + \n \" \" + END );\n }", "public static void main(String[] args)\n {\n JFrame f = new JFrame(\"Test for TextRangeUI\");\n f.setBounds(0,0,200,150);\n final TextRangeUI range_ui = new TextRangeUI( \"TOF\", 0, 1000);\n\n f.getContentPane().setLayout( new GridLayout(2,1) );\n f.getContentPane().add(range_ui);\n\n range_ui.addActionListener( new ActionListener()\n {\n public void actionPerformed(ActionEvent e)\n {\n System.out.println(\"Entered: \" + range_ui.getText() );\n System.out.println(\"Min = \" + range_ui.getMin() );\n System.out.println(\"Max = \" + range_ui.getMax() );\n }\n });\n\n final TextRangeUI range_ui_2 = new TextRangeUI( \"TOF\", 0, 1000);\n f.getContentPane().add(range_ui_2);\n range_ui_2.setLabel( \"NEW LABEL\" );\n range_ui_2.setMin( 1.0f );\n range_ui_2.setMax( 2.0f );\n\n range_ui_2.addActionListener( new ActionListener()\n {\n public void actionPerformed(ActionEvent e)\n {\n System.out.println(\"Entered: \" + range_ui_2.getText() );\n System.out.println(\"Min = \" + range_ui_2.getMin() );\n System.out.println(\"Max = \" + range_ui_2.getMax() );\n }\n });\n\n f.setVisible(true);\n }", "protected String createText() {\r\n\t\t// Default text is 1 based.\r\n\t\tNumberFormat formatter = NumberFormat.getFormat(\"#,###\");\r\n\t\tHasRows display = getDisplay();\r\n\t\tRange range = display.getVisibleRange();\r\n\t\tint pageStart = range.getStart() /*+ 1*/;\r\n\t\tint pageSize = range.getLength();\r\n\t\tint dataSize = display.getRowCount();\r\n\t\tint endIndex = Math.min(dataSize, pageStart + pageSize /*- 1*/);\r\n\t\tendIndex = Math.max(pageStart, endIndex);\r\n\t\tif(endIndex==0)\r\n\t\t\tpageStart = 0;\r\n\t\telse\r\n\t\t\tpageStart = pageStart + 1;\r\n\t\tString text = formatter.format(pageStart) + \"-\"\r\n\t\t\t\t+ formatter.format(endIndex);\r\n\t\treturn text;\r\n\t}", "public double getRange(){\n\t\treturn range;\n\t}", "public String getPressureRange(int systolValue,int diastolValue) {\n String range=\"\";\n if ((systolValue >= 60 && systolValue <= 109) && (diastolValue >= 40 && diastolValue <= 74)) {\n // blood pressure Low level\n range = \"low\";\n }\n else if ((systolValue >= 110 && systolValue <= 135) && (diastolValue >= 75 && diastolValue <= 85)) {\n // blood pressure Normal level\n range = \"normal\";\n } else if ((systolValue >= 136 && systolValue <= 210) && (diastolValue >= 86 && diastolValue <= 120)) {\n // blood pressure High level\n range = \"high\";\n }\n return range;\n }", "Builder addTypicalAgeRange(Text value);", "private String useUpToFormat(Unit units, int upperBound) {\n return \"up to \" + upperBound + getUnits(units, upperBound);\n }", "public void setTextPortRange(int minPort, int maxPort);", "private String getUnits(Unit units, int value) {\n if (units == Unit.FEET) {\n if (value == 1) return \" foot\";\n return \" feet\";\n }\n if (value == 1) return \" inch\";\n return \" inches\";\n }", "@Override\r\n\tpublic String getActivity_range() {\n\t\treturn super.getActivity_range();\r\n\t}", "public int getRange()\n\t{\n\t\treturn Range;\n\t}", "String getRoleRangeRaw();", "public Rectangle2D.Double getTextBounds() {\n\t\t\n\t\tdouble txtPinX = _parent.getTxtPinX();\n\t\tdouble txtPinY = _parent.getTxtPinY();\n\t\t\n\t\tdouble txtLocPinX = _parent.getTxtLocPinX();\n\t\tdouble txtLocPinY = _parent.getTxtLocPinY();\n\t\t\n\t\tdouble txtWidth = _parent.getTxtWidth();\n\t\tdouble txtHeight = _parent.getTxtHeight();\n\t\t\n\t\tdouble x = txtPinX - txtLocPinX;\n\t\tdouble y = txtPinY - txtLocPinY;\n\t\t\n\t\treturn new Rectangle2D.Double(x, y, txtWidth, txtHeight);\n\t}", "public String bmiRange(String rangeLabel){\n if(BMI < 18.5){\n rangeLabel = (\"BMI < 18.5 is considered 'Underweight'\");\n }else if(BMI > 18.5 && BMI < 24.9){\n rangeLabel = (\"BMI > 18.6 and < 25 is considered 'Normal'\");\n }else if(BMI > 25 && BMI < 29.9){\n rangeLabel = (\"BMI > 25 and < 30 is considered 'Overweight'\");\n }else if(BMI > 30){\n rangeLabel = (\"BMI > 30 is considered 'Obese'\");\n }//end if else statements\n return rangeLabel;\n }", "public int getRangeHeight();", "@Override\r\n\tpublic String toString() {\n\t\tString change = \"\";\r\n\t\tString min_change = \"\";\r\n\t\tString max_change = \"\";\r\n\r\n\t\tif (this.runaway_change != null) {\r\n\t\t\tchange += Unit.getDescriptionByCode(runaway_change);\r\n\t\t}\r\n\r\n\t\tif (this.containsV) {\r\n\t\t\tif (this.min_range_change != null) {\r\n\t\t\t\tmin_change += Unit.getDescriptionByCode(min_range_change);\r\n\t\t\t}\r\n\t\t\tif (this.max_range_change != null) {\r\n\t\t\t\tmax_change += Unit.getDescriptionByCode(max_range_change);\r\n\t\t\t}\r\n\t\t\treturn this.runaway_number + runaway_LCR==null?Unit.getDescriptionByCode(runaway_LCR):\"\" + \"跑道,最小跑道视程\" + this.min_range + \"米,\"\r\n\t\t\t\t\t+ min_change + \",最大跑道视程\" + this.max_range + \"米,\" + max_change + \",\";\r\n\r\n\t\t} else {\r\n\r\n\t\t\treturn this.runaway_number + Unit.getDescriptionByCode(runaway_LCR) + \"跑道,跑道视程\" + this.viusal_range + \"米,\"+change;\r\n\t\t}\r\n\t}", "public default double getTargetRange(Entity casterIn){ return RangeType.getRange(casterIn, this); }", "public int getRange() {\n return mRange;\n }", "public String getExtent() {\n return Formatter.formatDoubleStr(minX, 4) + \" \" + Formatter.formatDoubleStr(minY, 4)\n + \" \" + Formatter.formatDoubleStr(maxX, 4) + \" \" + Formatter.formatDoubleStr(maxY, 4);\n }", "public String fullCellText(){\n\t\tRealCell cell;\n\t\tif(userInput.equals(\"0\")){\n\t\t\treturn \"0\";\n\t\t}\n\t\tif(userInput.contains(\"%\")){\n\t\t\tcell = new PercentCell(userInput);\n\t\t}else{\n\t\t\tcell = new ValueCell(userInput);\n\t\t}\n\t\tString stringCell = cell.getDoubleValue() + \"\";\n\t\tif((stringCell.length() > 3) && (cell.getDoubleValue() > 0) && (stringCell.substring(stringCell.indexOf(\".\")).equals(\".0\"))){\n\t\t\treturn stringCell.substring(0, stringCell.indexOf(\".\"));\n\t\t}\n\t\treturn cell.getDoubleValue() + \"\";\n\t}", "public AddressInfo getRange() {\r\n return range;\r\n }", "void setLabelString() {\n int pad = 5; // fudge to make up for variable width fonts\n float maxVal = Math.max(Math.abs(min), Math.abs(max));\n intDigits = Math.round((float) (Math.log(maxVal) / Math.log(10))) + pad;\n if (min < 0) {\n intDigits++; // add one for the '-'\n }\n // fractDigits is num digits of resolution for fraction. Use base 10 log\n // of scale, rounded up, + 2.\n fractDigits = (int) Math.ceil((Math.log(scale) / Math.log(10)));\n nf.setMinimumFractionDigits(fractDigits);\n nf.setMaximumFractionDigits(fractDigits);\n String value = nf.format(current);\n while (value.length() < (intDigits + fractDigits)) {\n value = value + \" \";\n }\n valueLabel.setText(value);\n }", "public double getRangeInches()\n {\n if (isRangeValid())\n {\n\n double currentInches = ((AnalogInput)m_echoChannel).getVoltage() * m_conversionToInches;\n\n m_oldDistance = currentInches;\n }\n\n return m_oldDistance;\n }", "public void getRange()\n\t{\n\t\tint start = randInt(0, 9);\n\t\tint end = randInt(0, 9);\t\t\n\t\tint startNode = start<=end?start:end;\n\t\tint endNode = start>end?start:end;\n\t\tSystem.out.println(\"Start : \"+startNode+\" End : \"+endNode);\n\t}", "public String getHeightInFeetAndInches() {\n int foot = getHeight() / INCHES_PER_FOOT;\n int inches = getHeight() % INCHES_PER_FOOT;\n String result;\n if (inches == 0)\n result = String.format(\"%d feet\", foot);\n else if (inches == 1)\n result = String.format(\"%d feet %d inch\", foot, inches);\n else\n result = String.format(\"%d feet %d inches\", foot, inches);\n return result;\n }", "@Override\n public final String toString() {\n return text.subSequence(lower, upper).toString();\n }", "Range controlLimits();", "@Override\n public String toString() {\n return String.format(\"(%d->%d|%.6f)\", from, to, weight);\n }", "void calculateRange() {\n //TODO: See Rules\n }", "Range createRange();", "public String toShEx() {\n return String.format(\"<%s> .{%s, %s} ,\", properties.get(0), minBound, maxBound);\n }", "public String getGradeRange() {\n\t\treturn this.gradeRange;\n\t}", "public double getRange(){\n\n double range = fuelRemaining * fuelEconomy;\n return range;\n }", "public Range getRangeX(double lowerPercent, double upperPercent, \n PlotRenderingInfo info, Point2D source) {\n \t\t\n \t double start = super.getDomainAxis().getRange().getLowerBound();\n double length = super.getDomainAxis().getRange().getLength();\n Range adjusted = null;\n if (super.getDomainAxis().isInverted()) {\n adjusted = new Range(start + (length * (1 - upperPercent)), \n start + (length * (1 - lowerPercent))); \n }\n else {\n adjusted = new Range(start + length * lowerPercent, \n start + length * upperPercent);\n }\n return adjusted;\n }", "RangeValue createRangeValue();", "public void damageRange(JTextComponent tc, int p0, int p1) {\n damageRange(tc, p0, p1, Position.Bias.Forward, Position.Bias.Backward);\n }", "private void drawTxt(Canvas canvas, Rect gridRange){\n\n int length = points.size();\n int gridNumber = 5;\n int step = (gridRange.right - gridRange.left) / gridNumber;\n\n //draw digits\n float max = getMaxX();\n float min = getMinX();\n\n if(length == 1)\n min = 0;\n\n float dis = (max - min) / gridNumber;\n\n tetxPaint.setTextSize(textSize);\n\n\n //draw x digits\n for(int i = 0; i < gridNumber + 1; i++){\n\n String txt = Float.toString(round(min, 1));\n\n Rect bounds = getTxtBounds(tetxPaint, txt);\n canvas.drawText(txt, (gridRange.left + i*step) - (bounds.width()/2), gridRange.bottom + bounds.height(), tetxPaint);\n min += dis;\n }\n\n step = (gridRange.bottom - gridRange.top) / gridNumber;\n\n max = maxVal;\n min = minVal;\n\n if(length == 1)\n min = 0;\n\n dis = (max - min) / gridNumber;\n\n //draw y digits\n for(int i = 0; i < gridNumber + 1; i++){\n\n String txt = Float.toString(round(min, 1));\n\n Rect bounds = getTxtBounds(tetxPaint, txt);\n canvas.drawText(txt, gridRange.left - bounds.width(), gridRange.bottom - step*i, tetxPaint);\n min += dis;\n }\n }", "@Override\r\n\tpublic String getNotationExample()\r\n\t{\r\n\t\treturn \"(in-subrange 'X1-number', 'Y1-number', 'X2-number', 'Y2-number')\";\r\n\t}", "int range() {\n\t\treturn mpg * fuelcap;\n\t}", "protected abstract R toRange(D lower, D upper);", "private Bounds textWidth(double size, SensorValue sensorValue)\r\n\t{\n\t\t\r\n\t\tString showValue = sensorValue.getCurrentValue() + \" \" + sensorValue.getMeasurementUnit();\r\n\t\t\r\n\t\tif(fontBase == null)\r\n\t\t\tfontBase = new Font(\"Verdana\", 12);\r\n\t\tText text = new Text(showValue);\r\n\t\tFont font = Font.font(fontBase.getFamily(), size);\r\n text.setFont(font);\r\n return text.getBoundsInLocal();\r\n\t}", "public String getNumbers(){\n StringBuilder htmlNumbers = new StringBuilder(\"<h2>\");\n for (int i = 1; i<=10; i++){\n htmlNumbers.append(String.valueOf(i) + \".<br>\");\n }\n htmlNumbers.append(\"</h2>\");\n return htmlNumbers.toString();\n }", "public String listFurnitureInPriceRange(double min, double max) {\r\n\t\t StringBuilder sb = new StringBuilder();\r\n for (Iterator<Furniture> it = furniture.iterator(); it.hasNext();) {\r\n\t\t\t Furniture f = (Furniture) it.next();\r\n if ((f.price() >= min) && (f.price() <= max))\r\n\t\t\t\t sb.append(f.toString() + NL);\r\n }\r\n return sb.toString();\r\n }", "public String toString() {\n\t\tString result = \"\";\n\t\t\n\t\tif (_minimum == _maximum) {\n\t\t\tresult = Integer.toString(_maximum);\n\t\t} else {\n\t\t\tresult = \"(\" + Integer.toString(_minimum) + \"-\" + Integer.toString(_maximum) + \")\";\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "String getUnitsString();", "@Override\n\tpublic Rectangle getBounds(String text) {\n\t\tint height = 0;\n\t\tint width = 0;\n\t\t//Initialize y to the maximum int\n\t\tint y = Integer.MAX_VALUE;\n\t\t\n\t\tchar[] chars = text.toCharArray();\n\t\t//First, find the lowest yoffset\n\t\tfor (char c : chars) {\n\t\t\tGlyph g = getGlyph(c);\n\t\t\tif (g != null) y = Math.min(g.getYOff(), y);\n\t\t}\n\t\tfor (char c : chars) {\n\t\t\tGlyph g = getGlyph(c);\n\t\t\tif (g != null) {\n\t\t\t\theight = Math.max(g.getHeight() + (g.getYOff() - y), height);\n\t\t\t\twidth += g.getXAdvance();\n\t\t\t}\n\t\t}\n\t\treturn new Rectangle(0, y, width, height);\n\t}", "private void getTextBounds(CharSequence text, Paint paint, float[] p) {\n if (p == null || p.length < 3) {\n return;\n }\n float textWidth = paint.measureText(text.toString());\n Paint.FontMetrics fontM = paint.getFontMetrics();\n //baseLine:一行文字的底线。\n //Ascent: 字符顶部到baseLine的距离。\n //Descent: 字符底部到baseLine的距离。\n //Leading: 字符行间距。\n float bottom = fontM.bottom;\n float top = fontM.top;\n p[0] = textWidth;// text width\n p[1] = bottom - top;// text height\n p[2] = top;\n Log.i(TAG, \"fontM.ascent=\"+fontM.ascent + \" fontM.bottom=\"+fontM.bottom+\" fontM.descent=\"+fontM.descent+\" fontM.top=\"+fontM.top);\n }", "public final ANTLRv3Parser.range_return range() throws RecognitionException {\r\n ANTLRv3Parser.range_return retval = new ANTLRv3Parser.range_return();\r\n retval.start = input.LT(1);\r\n\r\n\r\n CommonTree root_0 = null;\r\n\r\n Token c1=null;\r\n Token c2=null;\r\n Token RANGE133=null;\r\n ANTLRv3Parser.elementOptions_return elementOptions134 =null;\r\n\r\n\r\n CommonTree c1_tree=null;\r\n CommonTree c2_tree=null;\r\n CommonTree RANGE133_tree=null;\r\n RewriteRuleTokenStream stream_RANGE=new RewriteRuleTokenStream(adaptor,\"token RANGE\");\r\n RewriteRuleTokenStream stream_CHAR_LITERAL=new RewriteRuleTokenStream(adaptor,\"token CHAR_LITERAL\");\r\n RewriteRuleSubtreeStream stream_elementOptions=new RewriteRuleSubtreeStream(adaptor,\"rule elementOptions\");\r\n try {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:297:2: (c1= CHAR_LITERAL RANGE c2= CHAR_LITERAL ( elementOptions )? -> ^( CHAR_RANGE[$c1,\\\"..\\\"] $c1 $c2 ( elementOptions )? ) )\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:297:4: c1= CHAR_LITERAL RANGE c2= CHAR_LITERAL ( elementOptions )?\r\n {\r\n c1=(Token)match(input,CHAR_LITERAL,FOLLOW_CHAR_LITERAL_in_range2159); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_CHAR_LITERAL.add(c1);\r\n\r\n\r\n RANGE133=(Token)match(input,RANGE,FOLLOW_RANGE_in_range2161); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_RANGE.add(RANGE133);\r\n\r\n\r\n c2=(Token)match(input,CHAR_LITERAL,FOLLOW_CHAR_LITERAL_in_range2165); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_CHAR_LITERAL.add(c2);\r\n\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:297:42: ( elementOptions )?\r\n int alt61=2;\r\n int LA61_0 = input.LA(1);\r\n\r\n if ( (LA61_0==77) ) {\r\n alt61=1;\r\n }\r\n switch (alt61) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:297:42: elementOptions\r\n {\r\n pushFollow(FOLLOW_elementOptions_in_range2167);\r\n elementOptions134=elementOptions();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_elementOptions.add(elementOptions134.getTree());\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // AST REWRITE\r\n // elements: c2, c1, elementOptions\r\n // token labels: c1, c2\r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleTokenStream stream_c1=new RewriteRuleTokenStream(adaptor,\"token c1\",c1);\r\n RewriteRuleTokenStream stream_c2=new RewriteRuleTokenStream(adaptor,\"token c2\",c2);\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (CommonTree)adaptor.nil();\r\n // 298:3: -> ^( CHAR_RANGE[$c1,\\\"..\\\"] $c1 $c2 ( elementOptions )? )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:298:6: ^( CHAR_RANGE[$c1,\\\"..\\\"] $c1 $c2 ( elementOptions )? )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(\r\n (CommonTree)adaptor.create(CHAR_RANGE, c1, \"..\")\r\n , root_1);\r\n\r\n adaptor.addChild(root_1, stream_c1.nextNode());\r\n\r\n adaptor.addChild(root_1, stream_c2.nextNode());\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:298:37: ( elementOptions )?\r\n if ( stream_elementOptions.hasNext() ) {\r\n adaptor.addChild(root_1, stream_elementOptions.nextTree());\r\n\r\n }\r\n stream_elementOptions.reset();\r\n\r\n adaptor.addChild(root_0, root_1);\r\n }\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n\r\n retval.stop = input.LT(-1);\r\n\r\n\r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\r\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\r\n\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return retval;\r\n }", "protected <T> String renderFieldRange(FormField<T> field) {\n\t\treturn renderTextFieldInternal(field);\n\t}", "public void selectRange(String currentRange);", "public HBox answerIntervalLine(String begin, String end)\n {\n HBox answerIntervalLine = new HBox(5);\n answerIntervalLine.getChildren().addAll(new Label(\"Esteve entre \"), new Text(begin), new Label(\" e \"), new Text(end));\n answerIntervalLine.setAlignment(Pos.BASELINE_LEFT);\n\n return answerIntervalLine; \n }", "public String getAssessRange() {\r\n return assessRange;\r\n }", "public RealRange getReferenceRange(RealRange referenceRange);", "public String abbreviatedCellText(){\n\t\tString abbreviatedText = \"\";\n\t\tif(userInput.length() < 10){\n\t\t\tif(userInput.contains(\"%\")){\n\t\t\t\tabbreviatedText = userInput.substring(0, userInput.indexOf(\".\")) + \"%\";\n\t\t\t\treturn (abbreviatedText + \" \").substring(0, 10);\n\t\t\t}\n\t\t\tif(userInput.equals(\"0.0\")){\n\t\t\t\treturn (userInput + \" \").substring(0, 10);\n\t\t\t}\n\t\t\tif(!userInput.contains(\".\") && !userInput.contains(\"(\") && !userInput.contains(\"%\")){\n\t\t\t\tabbreviatedText = userInput + \".0\";\n\t\t\t\treturn (abbreviatedText + \" \").substring(0, 10);\n\t\t\t}\n\t\t\tif(!userInput.contains(\"(\")){\n\t\t\t\tfor(int i = userInput.length() - 1; i > 0; i--){\n\t\t\t\t\tif(userInput.charAt(userInput.length() - 1) == '0'){\n\t\t\t\t\t\tif(userInput.charAt(userInput.length() - 2) == '0'){\n\t\t\t\t\t\t\tuserInput = userInput.substring(0, userInput.length() - 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tuserInput = userInput.substring(0, userInput.length() - 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(userInput.charAt(userInput.length() - 1) == '.'){\n\t\t\t\tuserInput += \"0\";\n\t\t\t}\n\t\t}else if(userInput.length() > 10){\n\t\t\treturn (userInput + \" \").substring(0, 10);\n\t\t}\n\t\treturn (userInput + \" \").substring(0, 10); \n\t}", "@Override\n public void getShortTitleBounds(@NonNull Rect outRect) {\n if (!hasShortTitle() || !hasShortText()) {\n outRect.setEmpty();\n } else {\n getBounds(outRect);\n if (isWideRectangle(outRect)) {\n getRightPart(outRect, outRect);\n getBottomHalf(outRect, outRect);\n } else {\n // Draw a short text complication inside ranged value bounds\n mShortTextLayoutHelper.getShortTitleBounds(outRect);\n outRect.offset(mRangedValueInnerSquare.left, mRangedValueInnerSquare.top);\n }\n }\n }", "String getUnits();", "String getUnits();", "String getUnits();", "String getValueFormatted();", "private void parseRange(Node node) {\r\n if (switchTest) return;\r\n int low = node.low();\r\n int high = node.high();\r\n ok = false;\r\n if (in < input.length()) {\r\n int ch = input.codePointAt(in);\r\n ok = (ch >= low) && (ch <= high);\r\n if (ok) {\r\n int n = Character.charCount(ch);\r\n in += n;\r\n if (tracing) traceInput();\r\n }\r\n }\r\n }", "public String toHtml(String text, int number) {\r\n StringBuilder sb = new StringBuilder(text);\r\n int loc = 0;\r\n String space = \" \";\r\n loc = loc + number;\r\n while (loc < sb.length()) {\r\n createLine(loc, sb);\r\n loc = loc + number; \r\n }\r\n text = sb.toString();\r\n return text;\r\n }", "int range(){\n return fuelcap*mpg;\n }", "@JSProperty(\"range\")\n double getRange();", "@Nullable public abstract String portRange();", "protected abstract R getRange(E entry);", "public String toString() {\n\t\tif(scale=='K'||scale=='k'){\r\n\t\t\treturn String.format(\"%.2f %s\"+\"ilograms\", wValue, scale);\r\n\t\t} else {\r\n\t\t\tscale=Character.toUpperCase(scale);\r\n\t\t\treturn String.format(\"%.2f %s\"+\"ounds\", wValue, scale);\r\n\t\t}\r\n\t}", "public String fullCellText() {\n\t\tString value = getDoubleValue() + \"\";\n\t\t\tif(getValue().equals(\"0\")) {\t// it equals to 0, we can just return \n\t\t\t\treturn getValue();\n\t\t\t}\n\t\t\telse if (!value.contains(\"%\") && value.contains(\".0\") \t//check if value contains no percent sign or \".0\"\n\t\t\t\t\t&& isDecimalEqualToZero(value)\t\t\t\t\t//make sure it is a whole number\n\t\t\t\t\t&& value.replace(\"-\", \"\").length() > 3) {\t\n\t\t\t\treturn value.substring(0, value.indexOf(\".\"));\n\t\t\t}\n\t\t\telse if (!value.contains(\"%\") && !value.contains(\".\")) {\t//if value contains percent sign and no contain dot\n\t\t\t\tvalue += \".0\";\t\t\t\t\t\t\t\t\t\t\t//just add \".0\" at the end\n\t\t\t}\n\t\treturn value;\n\t}", "public String getTextSubstring(int start, int end) {\r\n return text.subSequence(start, end).toString();\r\n }", "public String getItemRange() {\n\t\tint start = (currentPage - 1) * OrderHistoryActionForm.RESULTS_PER_PAGE\n\t\t\t\t+ 1;\n\t\tString startStr = String.valueOf(start);\n\t\tint end = start + OrderHistoryActionForm.RESULTS_PER_PAGE - 1;\n\t\tif (end > this.totalItems) {\n\t\t\tend = this.totalItems;\n\t\t}\n\t\tString endStr = String.valueOf(end);\n\t\treturn startStr + \"-\" + endStr;\n\t}", "@Override\n public String toString() {\n // Determine the width required for the maximum element,\n // and check for fractional display requirement.\n double maxval = 0;\n boolean fractional = false;\n for (int i = 0; i < getRowDimension(); i++) {\n for (int j = 0; j < getColumnDimension(); j++) {\n double current = get(i, j);\n if (current < 0)\n current *= -11;\n if (current > maxval)\n maxval = current;\n double fract = Math.abs(current - Math.rint(current));\n if (!fractional\n && ((Math.log(fract) / Math.log(10)) >= -2)) {\n fractional = true;\n }\n }\n }\n int width = (int)(Math.log(maxval) / Math.log(10)\n + (fractional ? 4 : 1));\n\n StringBuffer text = new StringBuffer();\n for (int i = 0; i < getRowDimension(); i++) {\n for (int j = 0; j < getColumnDimension(); j++)\n text.append(\" \").append(Functions.doubleToString(get(i, j),\n width, (fractional ? 2 : 0)));\n text.append(\"\\n\");\n }\n\n return text.toString();\n }", "int getAttackRange();" ]
[ "0.76633745", "0.6780924", "0.67301893", "0.6620722", "0.6540765", "0.6352846", "0.6121771", "0.6120247", "0.60728395", "0.60584384", "0.59828734", "0.59778565", "0.59734225", "0.59546334", "0.5953203", "0.59388936", "0.5906314", "0.5902506", "0.58998096", "0.5881159", "0.58587855", "0.57060444", "0.56927025", "0.56778425", "0.5663902", "0.56227773", "0.55936515", "0.5581793", "0.5572453", "0.5553225", "0.55482626", "0.55253756", "0.54929936", "0.548525", "0.54602575", "0.5450735", "0.5445382", "0.54450184", "0.5441093", "0.53931296", "0.5367807", "0.53671294", "0.5343198", "0.53392756", "0.533845", "0.5337573", "0.53204197", "0.5309906", "0.52538806", "0.5252552", "0.52508366", "0.5250294", "0.52337664", "0.5230761", "0.5230079", "0.5206224", "0.5198962", "0.51958454", "0.518948", "0.5189188", "0.5154095", "0.51526463", "0.5144177", "0.5138844", "0.5138273", "0.5110137", "0.51046205", "0.5103282", "0.5101688", "0.5100198", "0.50930405", "0.5085313", "0.5079595", "0.5071984", "0.50669205", "0.5062653", "0.50427043", "0.5039999", "0.50384426", "0.5015453", "0.5012481", "0.50038904", "0.49954182", "0.49900827", "0.49825516", "0.49825516", "0.49825516", "0.49817377", "0.4969572", "0.49681213", "0.49666676", "0.49655312", "0.4953232", "0.49451938", "0.49405342", "0.49298093", "0.49246374", "0.4913083", "0.49075305", "0.4905586" ]
0.68264234
1
Returns text in the up to format Example: up to 3 inches, up to 2 feet
private String useUpToFormat(Unit units, int upperBound) { return "up to " + upperBound + getUnits(units, upperBound); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getFinalText(Unit units, int lowerBound, int upperBound) {\n if (shouldUseUpToFormat(lowerBound)) return useUpToFormat(units, upperBound);\n return useRangeFormat(units, lowerBound, upperBound);\n }", "private String convertFeetToInches(String description) {\n String regex = \"(\\\\d+) to (\\\\d+) feet|up to (\\\\d+) (feet|foot)\";\n Pattern pattern = Pattern.compile(regex);\n Matcher matcher = pattern.matcher(description);\n if (matcher.find()) {\n if (matcher.group(1) != null) {\n int lower = Integer.parseInt(matcher.group(1)) * 12;\n int upper = Integer.parseInt(matcher.group(2)) * 12;\n return description.replace(matcher.group(0), lower + \" to \" + upper + \" inches\");\n }\n int upper = Integer.parseInt(matcher.group(3)) * 12;\n return description.replace(matcher.group(0), \"up to \" + upper + \" inches\");\n }\n return description;\n }", "public String getHeightInFeetAndInches() {\n int foot = getHeight() / INCHES_PER_FOOT;\n int inches = getHeight() % INCHES_PER_FOOT;\n String result;\n if (inches == 0)\n result = String.format(\"%d feet\", foot);\n else if (inches == 1)\n result = String.format(\"%d feet %d inch\", foot, inches);\n else\n result = String.format(\"%d feet %d inches\", foot, inches);\n return result;\n }", "public String getRange() {\n if (predictionAmount < 0.1)\n return \"little to none\";\n\n String description = convertFeetToInches(alert.getDescription());\n\n // Get the bounds\n List<Integer> range = getClosestRange(getRanges(description), predictionAmount);\n double margin = getMargin(range);\n int lowerBound = (int) Math.round(predictionAmount - margin);\n int upperBound = (int) Math.round(predictionAmount + margin);\n\n // Determine the unit\n Unit units = Unit.INCHES;\n if (shouldUseFeet(lowerBound, upperBound)) {\n // Convert inches to feet\n lowerBound = toFeet(lowerBound);\n upperBound = toFeet(upperBound);\n units = Unit.FEET;\n }\n\n return getFinalText(units, lowerBound, upperBound);\n }", "private String getUnits(Unit units, int value) {\n if (units == Unit.FEET) {\n if (value == 1) return \" foot\";\n return \" feet\";\n }\n if (value == 1) return \" inch\";\n return \" inches\";\n }", "private String calibrate(int count)\n {\n String str = \"\";\n if(count < 10)\n {\n str = \" \" + Integer.toString(count);\n }\n else if(count < 100)\n {\n str = \" \" + Integer.toString(count);\n }\n else if(count < 1000)\n {\n str = \" \" + Integer.toString(count);\n }\n else\n {\n str = Integer.toString(count);\n }\n\n return str;\n }", "protected String createText() {\r\n\t\t// Default text is 1 based.\r\n\t\tNumberFormat formatter = NumberFormat.getFormat(\"#,###\");\r\n\t\tHasRows display = getDisplay();\r\n\t\tRange range = display.getVisibleRange();\r\n\t\tint pageStart = range.getStart() /*+ 1*/;\r\n\t\tint pageSize = range.getLength();\r\n\t\tint dataSize = display.getRowCount();\r\n\t\tint endIndex = Math.min(dataSize, pageStart + pageSize /*- 1*/);\r\n\t\tendIndex = Math.max(pageStart, endIndex);\r\n\t\tif(endIndex==0)\r\n\t\t\tpageStart = 0;\r\n\t\telse\r\n\t\t\tpageStart = pageStart + 1;\r\n\t\tString text = formatter.format(pageStart) + \"-\"\r\n\t\t\t\t+ formatter.format(endIndex);\r\n\t\treturn text;\r\n\t}", "public static int lengthInInches(int feet, int inches){\n return inches = (12*feet)+inches;\n }", "public abstract String format(double lowerBound, double upperBound);", "public String getResult() {\n\t\tDecimalFormat df = new DecimalFormat(\"##.00\");\n\t\tswitch(currentUnit) {\n\t\t\tcase 0:\n\t\t\t\tresult = \"<html>\"+df.format(celsius)+\"\\u00B0C = \"+df.format(fahrenheit)+\"\\u00B0F<br />\"\n\t\t\t\t\t+df.format(celsius)+\"\\u00B0C = \"+df.format(kelvin)+\"\\u00B0K</html\";\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tresult = \"<html>\"+df.format(fahrenheit)+\"\\u00B0F = \"+df.format(celsius)+\"\\u00B0C<br />\"\n\t\t\t\t\t\t+df.format(fahrenheit)+\"\\u00B0F = \"+df.format(kelvin)+\"\\u00B0K</html\";\n\t\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tresult = \"<html>\"+df.format(kelvin)+\"\\u00B0K = \"+df.format(celsius)+\"\\u00B0C<br />\"\n\t\t\t\t\t\t+df.format(kelvin)+\"\\u00B0K = \"+df.format(fahrenheit)+\"\\u00B0F</html\";\n\t\t\t\t\tbreak;\t\n\t\t}\n\t\treturn result;\n\t}", "public String abbreviatedCellText(){\n\t\tString abbreviatedText = \"\";\n\t\tif(userInput.length() < 10){\n\t\t\tif(userInput.contains(\"%\")){\n\t\t\t\tabbreviatedText = userInput.substring(0, userInput.indexOf(\".\")) + \"%\";\n\t\t\t\treturn (abbreviatedText + \" \").substring(0, 10);\n\t\t\t}\n\t\t\tif(userInput.equals(\"0.0\")){\n\t\t\t\treturn (userInput + \" \").substring(0, 10);\n\t\t\t}\n\t\t\tif(!userInput.contains(\".\") && !userInput.contains(\"(\") && !userInput.contains(\"%\")){\n\t\t\t\tabbreviatedText = userInput + \".0\";\n\t\t\t\treturn (abbreviatedText + \" \").substring(0, 10);\n\t\t\t}\n\t\t\tif(!userInput.contains(\"(\")){\n\t\t\t\tfor(int i = userInput.length() - 1; i > 0; i--){\n\t\t\t\t\tif(userInput.charAt(userInput.length() - 1) == '0'){\n\t\t\t\t\t\tif(userInput.charAt(userInput.length() - 2) == '0'){\n\t\t\t\t\t\t\tuserInput = userInput.substring(0, userInput.length() - 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tuserInput = userInput.substring(0, userInput.length() - 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(userInput.charAt(userInput.length() - 1) == '.'){\n\t\t\t\tuserInput += \"0\";\n\t\t\t}\n\t\t}else if(userInput.length() > 10){\n\t\t\treturn (userInput + \" \").substring(0, 10);\n\t\t}\n\t\treturn (userInput + \" \").substring(0, 10); \n\t}", "public String fullCellText(){\n\t\tRealCell cell;\n\t\tif(userInput.equals(\"0\")){\n\t\t\treturn \"0\";\n\t\t}\n\t\tif(userInput.contains(\"%\")){\n\t\t\tcell = new PercentCell(userInput);\n\t\t}else{\n\t\t\tcell = new ValueCell(userInput);\n\t\t}\n\t\tString stringCell = cell.getDoubleValue() + \"\";\n\t\tif((stringCell.length() > 3) && (cell.getDoubleValue() > 0) && (stringCell.substring(stringCell.indexOf(\".\")).equals(\".0\"))){\n\t\t\treturn stringCell.substring(0, stringCell.indexOf(\".\"));\n\t\t}\n\t\treturn cell.getDoubleValue() + \"\";\n\t}", "private void createUpperStateEnergiesString() {\r\n\t\tDecimalFormat df1 = new DecimalFormat(\"0.00000000\");\r\n\t\tint firstJVal = upperEnergyValuesWithJ.entrySet().iterator().next().getKey();\r\n\t\tenergyVals = System.lineSeparator() + \"Upper State Energies\" + \" (First value has J=\" +\r\n\t\tfirstJVal + \")\" + System.lineSeparator();\r\n\t\t\r\n\t\tfor (Map.Entry<Integer, Double> linePrediction : upperEnergyValuesWithJ.entrySet()) {\r\n\t\t\t//rightPadding(String.valueOf(linePrediction.getKey()), 6)\r\n\t\t\tenergyVals += df1.format(linePrediction.getValue()) + \"\\n\";\r\n\t\t}\r\n\t}", "public String toString() {\n\t\tif(scale=='K'||scale=='k'){\r\n\t\t\treturn String.format(\"%.2f %s\"+\"ilograms\", wValue, scale);\r\n\t\t} else {\r\n\t\t\tscale=Character.toUpperCase(scale);\r\n\t\t\treturn String.format(\"%.2f %s\"+\"ounds\", wValue, scale);\r\n\t\t}\r\n\t}", "String getUnitsString();", "public String roundUp(){\n return \"Numero original: \" + this._X + \" numero redondeado hacia arriba \" + (int)Math.ceil(this._X);\n }", "@Override\n\tpublic String abbreviatedCellText(){\n\t\tString realText = text;\n\t\tif(text.charAt(0) == '\\\"'){\n\t\t\trealText = text.substring(1, text.length() - 1);\n\t\t}\n\t\tif(realText.length() > 10){\t\t//if it contains more than 10 characters\n\t\t\trealText = text.substring(1, 11);\t//using substring to take the first 10\n\t\t\treturn realText;\n\t\t}else{\n\t\t\t//fills in the spaces\n\t\t\twhile(realText.length()<10){\t//if it contains less than 10 characters\t\n\t\t\t\trealText += \" \";\t\t//pad to ten\n\n\t\t\t}\n\t\t\treturn realText;\n\t\t}\n\t}", "public double getEmphasis();", "public String toDisplay(){\n\t\treturn String.format(\"%s | %c | %.2f | %.2f\",name ,gender ,taxableIncome ,taxAmount);\n\t}", "public static String printConversion(double kilometersPerHour) {\n\t\t\t// TODO Write an implementation for this method declaration\n\t\t\tString result;\n\t\t\tdouble milesPerHour;\n\t\t\tlong iPart;\n\t\t\tdouble fPart;\n\t\t\tlong output = 0;\n\t\t\tif(kilometersPerHour < 0) {\n\t\t\t\tresult = \"Invalid Value\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\tmilesPerHour = 0.62137 * kilometersPerHour;\n\t\t\t\tiPart = (long) milesPerHour;\n\t\t\t\tfPart = milesPerHour - iPart;\n\t\t\t\tif(fPart > 0 && fPart < 0.5) {\n\t\t\t\t\toutput = iPart;\n\t\t\t\t}\n\t\t\t\telse if(fPart > 0.5 && fPart <=0.99d) {\n\t\t\t\t\toutput = iPart+1;\n\t\t\t\t}\n\t\t\t\tresult = Double.toString(kilometersPerHour) + \" km/h\" + \" = \" + Long.toString(output) + \" mi/h\";\t\t\t\t\n\t\t\t}\n\n\t\t\treturn result;\n\t\t}", "public void toonFiguur() {\n System.out.format(\"kleur: %-5s oppervlakte: %5.3f inhoud: %5.3f\\n\",\n kleur, oppervlakte(), inhoud());\n }", "public String breakUp(String m){\n int arrSize = (int)(m.length()/35 + 0.5);\n\n String[] bySpace = m.split(\" \",0);\n String realMessage = \"\";\n int size = 0;\n for(int i = 0; i < bySpace.length;i++){\n size += bySpace[i].length();\n if(size > 35){\n size = 0;\n realMessage += \"\\n\";\n }\n realMessage += bySpace[i];\n }\n return realMessage;\n }", "private Bounds textWidth(double size, SensorValue sensorValue)\r\n\t{\n\t\t\r\n\t\tString showValue = sensorValue.getCurrentValue() + \" \" + sensorValue.getMeasurementUnit();\r\n\t\t\r\n\t\tif(fontBase == null)\r\n\t\t\tfontBase = new Font(\"Verdana\", 12);\r\n\t\tText text = new Text(showValue);\r\n\t\tFont font = Font.font(fontBase.getFamily(), size);\r\n text.setFont(font);\r\n return text.getBoundsInLocal();\r\n\t}", "public String get(){\n\t\tString s = value%13+1+\"\"+suits[value/13]+\" \";\r\n\t\treturn s;\r\n\t}", "private static String m10f() {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"sh\");\n stringBuilder.append(\"el\");\n stringBuilder.append(\"la\");\n return stringBuilder.toString();\n }", "private int toFeet(int inches) {\n return (int) Math.round(inches / 12.0);\n }", "private static String numberToProse(int n) {\n if(n == 0)\n return \"zero\";\n\n if(n < 10)\n return intToWord(n);\n\n StringBuilder sb = new StringBuilder();\n\n // check the tens place\n if(n % 100 < 10)\n sb.insert(0, intToWord(n % 10));\n else if(n % 100 < 20)\n sb.insert(0, teenWord(n % 100));\n else\n sb.insert(0, tensPlaceWord((n % 100) / 10) + \" \" + intToWord(n % 10));\n\n n /= 100;\n\n // add the hundred place\n if(n > 0 && sb.length() != 0)\n sb.insert(0, intToWord(n % 10) + \" hundred and \");\n else if (n > 0)\n sb.insert(0, intToWord(n % 10) + \" hundred \");\n\n if(sb.toString().equals(\" hundred \"))\n sb = new StringBuilder(\"\");\n\n n /= 10;\n\n // the thousand spot\n if(n > 0)\n sb.insert(0, intToWord(n) + \" thousand \");\n\n return sb.toString();\n }", "public static void main(String[] args) {\n\t\tfloat cm = 12.5f;\r\n\t\tfloat inch = 0.3937f * cm;\r\n\t\tSystem.out.printf(\"a. %.2f cm = %.2f inch\\n\", cm, inch);\r\n\r\n\t\t// b. inch to cm\r\n\t\tinch = 4.92f;\r\n\t\tcm = inch / 0.3937f;\r\n\t\tSystem.out.printf(\"b. %.2f inch = %.2f cm\\n\", inch, cm);\r\n\r\n\t\t// c. feet to meter\r\n\t\tfloat feet = 4.92f;\r\n\t\tfloat meter = feet / 3.2808f;\r\n\t\tSystem.out.printf(\"c. %.2f feet = %.2f meter\\n\", feet, meter);\r\n\r\n\t\t// d. meter to feet\r\n\t\tmeter = 1.50f;\r\n\t\tfeet = meter * 3.2808f;\r\n\t\tSystem.out.printf(\"d. %.2f meter = %.2f feet\\n\", meter, feet);\r\n\r\n\t\t// e. pound to kg\r\n\t\tfloat lb = 158.73f;\r\n\t\tfloat kg = lb / 2.2046f;\r\n\t\tSystem.out.printf(\"e. %.2f lb = %.2f kg\\n\", lb, kg);\r\n\r\n\t\t// f. kg to pound\r\n\t\tkg = 72.00f;\r\n\t\tlb = kg * 2.2046f;\r\n\t\tSystem.out.printf(\"f. %.2f kg = %.2f lb\\n\", kg, lb);\r\n\r\n\t\t// g. km to mile\r\n\t\tfloat km = 42.35f;\r\n\t\tfloat mile = km * 0.62137f;\r\n\t\tSystem.out.printf(\"g. %.2f km = %.2f mile\\n\", km, mile);\r\n\r\n\t\t// h. mile to km\r\n\t\tmile = 26.32f;\r\n\t\tkm = mile / 0.62137f;\r\n\t\tSystem.out.printf(\"h. %.2f mile = %.2f km\\n\", mile, km);\r\n\r\n\t\t// i. km/h to mile/h\r\n\t\tkm = 42.35f;\r\n\t\tmile = km * 0.62137f;\r\n\t\tSystem.out.printf(\"i. %.2f km/h = %.2f mile/h\\n\", km, mile);\r\n\r\n\t\t// j. mile/h to km/h\r\n\t\tmile = 26.32f;\r\n\t\tkm = mile / 0.62137f;\r\n\t\tSystem.out.printf(\"j. %.2f mile/h = %.2f km/h\\n\", mile, km);\r\n\t}", "public static double inchesToMillimeters(double inches) {\n return inches * 25.4;\n }", "public String toString(){ \r\n\t\t// commented out XP line\r\n\t\t// is a different version of printing out the xp\r\n\t\t// that sets each interval to a [0 - bracket limit for that level].\r\n\t\t// for example, if creature levels up to 2 with exactly 200xp (0xp --> 200xp), \r\n\t\t// with the cumulative xp being 200xp\r\n\t\t// it would display 0/275\r\n\t\t// likewise, if that same creature got an additional 280xp (0-->280) added to its total\r\n\t\t// it would display 5xp/350xp\r\n\r\n\t\tif(this.getIsSpecial()){\r\n\t\t\treturn \"Level \" + this.getLevel() + \" \" + this.species +\r\n\t\t\t\t\t\"\\n+++++++++++++++\" + \r\n\t\t\t\t\t\"\\n!!! Special !!!\" +\r\n\t\t\t\t\t\"\\nNAME: \" + this.getName() +\r\n\t\t\t\t\t\"\\nHP: \" + this.getHitPoints() + \"/\" + this.getMaxHitPoints() +\r\n\t\t\t\t\t\"\\nATK: \" + this.getAttackRating() + \r\n\t\t\t\t\t\"\\nDEF: \" + this.getDefenseRating() + \r\n\t\t\t\t\t\"\\nXP: \" + this.getExperiencePoints() + \"/\" + calcLevel(1,0) + \r\n\t\t\t\t\t//\"\\nXP: \" + (this.getExperiencePoints() - calcPreviousLevel(1,0)) + \"/\" + (200 + ((this.getLevel()-1) * 75)) + \r\n\t\t\t\t\t\"\\nXP VAL: \" + this.getExperienceValue() + \"\\n\";\r\n\t\t\t\t\t//\"Attacks: \" + printAttacks() + \"\\n\";\r\n\t\t}\r\n\t\treturn \"Level \" + this.getLevel() + \" \" + this.species +\r\n\t\t\t\t\"\\n+++++++++++++++\" + \r\n\t\t\t\t\"\\nNAME: \" + this.getName() +\r\n\t\t\t\t\"\\nHP: \" + this.getHitPoints() + \"/\" + this.getMaxHitPoints() +\r\n\t\t\t\t\"\\nATK: \" + this.getAttackRating() + \r\n\t\t\t\t\"\\nDEF: \" + this.getDefenseRating() + \r\n\t\t\t\t\"\\nXP: \" + this.getExperiencePoints() + \"/\" + calcLevel(1,0) + \r\n\t\t\t\t//\"\\nXP: \" + (this.getExperiencePoints() - calcPreviousLevel(1,0)) + \"/\" + (200 + ((this.getLevel()-1) * 75)) +\r\n\t\t\t\t\"\\nXP VAL: \" + this.getExperienceValue() + \"\\n\";\r\n\t\t\t\t//\"Attacks: \" + printAttacks() + \"\\n\";\r\n\r\n\r\n\r\n\t}", "public static String formatNumberStyle(int n) {\n double result;\n if(n < 1000) {\n return \"\"+n;\n } else if(n >= 1000 && n < 1000000) {\n result = round(((double) n)/1000, 1);\n return (result + \"k\");\n } else if(n >= 1000000) {\n result = round(((double) n)/1000000, 1);\n return (result + \"m\");\n }\n return \"\"+n;\n }", "private String formatUsNumber(Editable text) {\n\t\tStringBuilder cashAmountBuilder = null;\n\t\tString USCurrencyFormat = text.toString();\n//\t\tif (!text.toString().matches(\"^\\\\$(\\\\d{1,3}(\\\\,\\\\d{3})*|(\\\\d+))(\\\\.\\\\d{2})?$\")) { \n\t\t\tString userInput = \"\" + text.toString().replaceAll(\"[^\\\\d]\", \"\");\n\t\t\tcashAmountBuilder = new StringBuilder(userInput);\n\n\t\t\twhile (cashAmountBuilder.length() > 3 && cashAmountBuilder.charAt(0) == '0') {\n\t\t\t\tcashAmountBuilder.deleteCharAt(0);\n\t\t\t}\n\t\t\twhile (cashAmountBuilder.length() < 3) {\n\t\t\t\tcashAmountBuilder.insert(0, '0');\n\t\t\t}\n\t\t\tcashAmountBuilder.insert(cashAmountBuilder.length() - 2, '.');\n\t\t\tUSCurrencyFormat = cashAmountBuilder.toString();\n\t\t\tUSCurrencyFormat = Util.getdoubleUSPriceFormat(Double.parseDouble(USCurrencyFormat));\n\n//\t\t}\n\t\tif(\"0.00\".equals(USCurrencyFormat)){\n\t\t\treturn \"\";\n\t\t}\n\t\tif(!USCurrencyFormat.contains(\"$\"))\n\t\t\treturn \"$\"+USCurrencyFormat;\n\t\treturn USCurrencyFormat;\n\t}", "public void display_round_start_text() {\n }", "private String convertFahrenheitToCelsius(double f) {\n double c = (f - 32.0) * (5.0 / 9.0);\n DecimalFormat numberFormat = new DecimalFormat(\"#.0\");\n return numberFormat.format(c);\n }", "@Override\r\n\tpublic String toString() {\n\t\tString change = \"\";\r\n\t\tString min_change = \"\";\r\n\t\tString max_change = \"\";\r\n\r\n\t\tif (this.runaway_change != null) {\r\n\t\t\tchange += Unit.getDescriptionByCode(runaway_change);\r\n\t\t}\r\n\r\n\t\tif (this.containsV) {\r\n\t\t\tif (this.min_range_change != null) {\r\n\t\t\t\tmin_change += Unit.getDescriptionByCode(min_range_change);\r\n\t\t\t}\r\n\t\t\tif (this.max_range_change != null) {\r\n\t\t\t\tmax_change += Unit.getDescriptionByCode(max_range_change);\r\n\t\t\t}\r\n\t\t\treturn this.runaway_number + runaway_LCR==null?Unit.getDescriptionByCode(runaway_LCR):\"\" + \"跑道,最小跑道视程\" + this.min_range + \"米,\"\r\n\t\t\t\t\t+ min_change + \",最大跑道视程\" + this.max_range + \"米,\" + max_change + \",\";\r\n\r\n\t\t} else {\r\n\r\n\t\t\treturn this.runaway_number + Unit.getDescriptionByCode(runaway_LCR) + \"跑道,跑道视程\" + this.viusal_range + \"米,\"+change;\r\n\t\t}\r\n\t}", "public static String humanize (long size)\n {\n\n long b = 1;\n long Kb = b * 1024;\n long Mb = Kb * 1024;\n long Gb = Mb * 1024;\n long Tb = Gb * 1024;\n long Pb = Tb * 1024;\n long Eb = Pb * 1024;\n\n if (size < Kb) return format2( size ) + \" byte\";\n if (size >= Kb && size < Mb) return format2((double)size / Kb) + \" Kb\";\n if (size >= Mb && size < Gb) return format2((double)size / Mb) + \" Mb\";\n if (size >= Gb && size < Tb) return format2((double)size / Gb) + \" Gb\";\n if (size >= Tb && size < Pb) return format2((double)size / Tb) + \" Tb\";\n if (size >= Pb && size < Eb) return format2((double)size / Pb) + \" Pb\";\n if (size >= Eb) return format2((double)size / Eb) + \" Eb\";\n\n return \"???\";\n }", "public static String getConvertUptoHundreds(int number) {\r\n\t String current;\r\n\t \r\n\t if (number % 100 < 20){\r\n\t current = NumberPrinterConstant.NUMBERS[number % 100];\r\n\t number /= 100;\r\n\t }\r\n\t else {\r\n\t current = NumberPrinterConstant.NUMBERS[number % 10];\r\n\t number /= 10;\r\n\t \r\n\t current = NumberPrinterConstant.TENS[number % 10] + current;\r\n\t number /= 10;\r\n\t }\r\n\t if (number == 0) return current;\r\n\t return NumberPrinterConstant.NUMBERS[number] + NumberPrinterConstant.HUNDRED + current;\r\n\t }", "private String changeUptoThousand(int number) {\n // output in words\n String inWords;\n // last 2 digits can be between 0 to 19 only\n if (number % 100 < 20){\n inWords = numNames[number % 100];\n number /= 100;\n }\n else {\n // right most digit into word\n inWords = numNames[number % 10];\n //remove the right digit and remain the next 2 numbers\n number /= 10;\n \n // now right most digit in the left out 2 digits\n inWords = tensdigitNames[number % 10] + inWords;\n // remove the right digit and now only one digit left\n number /= 10;\n }\n if (number == 0) return inWords;\n // the last digit left is hundreds and select the name from 0 to 20\n return numNames[number] + \" HUNDRED\" + inWords;\n }", "public String toString() {\n\t\t double Fahrehgeit = this.getFahrenheit();\n\t\t double celcius = this.getCelcius();\n\t\t return Math.round(celcius)+\" celcius = \"+ Math.round(Fahrehgeit)+\" Fahrenheit\";\n\t }", "private String ruptureString(ProbEqkRupture rupture) {\n\n String rupInfo = \"\";\n rupInfo += \"Probability = \" + (float)rupture.getProbability() +\"\\n\";\n rupInfo += \"Magnitude = \" + (float)rupture.getMag() +\"\\n\";\n\n RuptureSurface surface = rupture.getRuptureSurface();\n double gridSpacing = (float)this.getGridSpacing((EvenlyGriddedSurface)surface);\n rupInfo += \"GridSpacing = \" + gridSpacing +\"\\n\";\n ListIterator it = rupture.getAddedParametersIterator();\n if (it != null) {\n while (it.hasNext()) {\n Parameter param = (Parameter) it.next();\n rupInfo += param.getName() + \"=\" + param.getValue() + \"\\n\";\n }\n }\n\n double rake = rupture.getAveRake();\n double dip = surface.getAveDip();\n\n //Local Strike for each grid centered location on the rupture\n double[] localStrikeList = this.getLocalStrikeList((EvenlyGriddedSurface)surface);\n\n AbstractEvenlyGriddedSurface rupSurface = new EvenlyGridCenteredSurface((EvenlyGriddedSurface)surface);\n int numRows = rupSurface.getNumRows();\n int numCols = rupSurface.getNumCols();\n rupInfo += \"NumRows = \"+numRows+\"\\n\";\n rupInfo += \"NumCols = \"+numCols+\"\\n\";\n rupInfo +=\"# Lat Lon Depth Rake Dip Strike\\n\";\n for(int i=0;i<numRows;++i){\n for (int j = 0; j < numCols; ++j) {\n Location loc = rupSurface.getLocation(i,j);\n rupInfo += (float)loc.getLatitude() + \" \" + (float)loc.getLongitude() + \" \" +\n (float)loc.getDepth() +\" \"+(float)rake+\" \"+(float)dip+\" \"+(float)localStrikeList[j]+\"\\n\";\n }\n }\n return rupInfo;\n }", "public static double convertToFt(int in)\r\n {\n\r\n final int INCHES_PER_FOOT = 12;\r\n\r\n double feet = in / (double)INCHES_PER_FOOT;\r\n\r\n return feet;\r\n }", "private String getFitText(String text, float width, Paint paint) {\r\n String newText = text;\r\n int length = text.length();\r\n int diff = 0;\r\n while (paint.measureText(newText) > width && diff < length) {\r\n diff++;\r\n newText = text.substring(0, length - diff) + \"...\";\r\n }\r\n if (diff == length) {\r\n newText = \"...\";\r\n }\r\n return newText;\r\n }", "String getUnits();", "String getUnits();", "String getUnits();", "@Override\n public void print() {\n for (int i = 1; i <= itertion; i++) {\n if(n <0){\n this.result = String.format(\"%-3d %-3s (%-3d) %-3s %d \", i, \"*\", n, \"=\", (n * i));\n System.out.println(this.result);\n }else {\n this.result = String.format(\"%-3d %-3s %-3d %-3s %d \", i, \"*\", n, \"=\", (n * i));\n System.out.println(this.result);\n }\n }\n }", "public String asText() {\n String quantityStr;\n\n // we don't want to display decimal digits for int values (6.0 TBSP)\n // so check if quantity is int (check rounded-down value of quantity is the same as quantity)\n if (Math.floor(quantity) == quantity) {\n // quantity can be display as int\n quantityStr = String.valueOf(Math.round(quantity));\n } else {\n // quantity should be double\n quantityStr = String.valueOf(quantity);\n }\n\n return name + \" (\" + quantityStr + \" \" + measureUnit + \")\";\n }", "@Override\n public String toString() {\n\n //convert cents to dollars using cents2dollarsAndCents\n String output = DessertShoppe.cents2dollarsAndCents(this.getCost());\n //create string storing cost in a string \n String costLength = Integer.toString(this.getCost());\n //find spacing needed between name and cost in reciept by subtracting 30(total spaces) by \n //length of name and length of cost\n int spacing = 30 - super.getName().length() - costLength.length() - 1;\n //loop through an add a space each time up to \"spacing\" integer\n for (int i = 0; i < spacing; i++) {\n output = \" \" + output;\n }\n //return name of cookie along with cost along with the right format posting amount of pounds with cost per pound\n return this.weight + \" lbs. \" + \"@ $\" + DessertShoppe.cents2dollarsAndCents(this.pricePerLbs) + \" /lb.\\n\" + this.getName() + output;\n }", "public String fullCellText() {\n\t\tString value = getDoubleValue() + \"\";\n\t\t\tif(getValue().equals(\"0\")) {\t// it equals to 0, we can just return \n\t\t\t\treturn getValue();\n\t\t\t}\n\t\t\telse if (!value.contains(\"%\") && value.contains(\".0\") \t//check if value contains no percent sign or \".0\"\n\t\t\t\t\t&& isDecimalEqualToZero(value)\t\t\t\t\t//make sure it is a whole number\n\t\t\t\t\t&& value.replace(\"-\", \"\").length() > 3) {\t\n\t\t\t\treturn value.substring(0, value.indexOf(\".\"));\n\t\t\t}\n\t\t\telse if (!value.contains(\"%\") && !value.contains(\".\")) {\t//if value contains percent sign and no contain dot\n\t\t\t\tvalue += \".0\";\t\t\t\t\t\t\t\t\t\t\t//just add \".0\" at the end\n\t\t\t}\n\t\treturn value;\n\t}", "private static String convertToFormat(int number) {\n int cents = number%100;\n number /= 100;\n return \"$\" + String.valueOf(number) + \".\" + String.valueOf(cents);\n }", "public String convert(int input) {\n\t\tif (input < 1 || input > 3000)\n\t\t\treturn \"invalid numeral\" ;\n\t\tString n = \"\";\n\t\t\n\t\twhile (input >= 1000) {\n\t\t\tn += \"M\";\n\t\t\tinput -= 1000;\n\t\t}\n\t\t\n\t\twhile (input >= 900) {\n\t\t\tn += \"CM\";\n\t\t\tinput -= 900;\n\t\t}\n\t\t\n\t\twhile (input >= 500) {\n\t\t\tn += \"D\";\n\t\t\tinput -= 500;\n\t\t}\n\t\t\n\t\twhile (input >= 400) {\n\t\t\tn += \"CD\";\n\t\t\tinput -= 400;\n\t\t}\n\t\t\n\t\twhile (input >= 100) {\n\t\t\tn += \"C\";\n\t\t\tinput -= 100;\n\t\t}\n\t\t\n\t\twhile (input >= 90) {\n\t\t\tn += \"XC\";\n\t\t\tinput -= 90;\n\t\t}\n\t\t\n\t\twhile (input >= 50) {\n\t\t\tn += \"L\";\n\t\t\tinput -= 50;\n\t\t}\n\t\t\n\t\twhile (input >= 40) {\n\t\t\tn += \"XL\";\n\t\t\tinput -= 40;\n\t\t}\n\t\t\n\t\twhile (input >= 10) {\n\t\t\tn += \"X\";\n\t\t\tinput -= 10;\n\t\t}\n\t\t\n\t\twhile (input >= 9) {\n\t\t\tn += \"IX\";\n\t\t\tinput -= 9;\n\t\t}\n\t\t\n\t\twhile (input >= 5) {\n\t\t\tn += \"V\";\n\t\t\tinput -= 5;\n\t\t}\n\t\t\n\t\twhile (input >= 4) {\n\t\t\tn += \"IV\";\n\t\t\tinput -= 4;\n\t\t}\n\t\t\n\t\twhile (input >= 1) {\n\t\t\tn += \"I\";\n\t\t\tinput -= 1;\n\t\t}\n\t\t\n\t\treturn n; \n\t}", "public java.lang.String toString() {\n\t\tString s=\"\";\n\t\ts+=String.format(\"%.2f\", weight);\n\t\t//s+=Double.toString(weight);\n\t\ts+=\" lbs. @ \";\n\t\ts+=DessertShoppe.cents2dollarsAndCents(price_per_pound);\n\t\ts+=\" /lb.\\t \\n\";\n\t\ts+=String.format(\"%-25s%6s\\n\",name, DessertShoppe.cents2dollarsAndCents(this.getCost()));\n\t\treturn s;\n\t}", "public static final float pointsToInches(float value) {\n\t return value / 72f;\n\t}", "public String toHtml(String text, int number) {\r\n StringBuilder sb = new StringBuilder(text);\r\n int loc = 0;\r\n String space = \" \";\r\n loc = loc + number;\r\n while (loc < sb.length()) {\r\n createLine(loc, sb);\r\n loc = loc + number; \r\n }\r\n text = sb.toString();\r\n return text;\r\n }", "private static void displayConversion(double celsius, double fahrenheit) {\n String celsiusOutput = String.format(\"%.2f\", celsius);\n String fahrenheitOutput = String.format(\"%.2f\", fahrenheit);\n System.out.println(\"\\n\" + celsiusOutput + \" degrees Celsius is equal to \" + fahrenheitOutput + \" degrees Fahrenheit.\");\n }", "private String tenthsToFixedString(int x) {\n int tens = x / MAGIC_NUMBER_TEN;\n return new String(\"\" + tens + \".\" + (x - MAGIC_NUMBER_TEN * tens));\n }", "private void displaySatistics()\r\n {\r\n DecimalFormat df = new DecimalFormat(\"#.##\");\r\n df.setRoundingMode(RoundingMode.FLOOR);\r\n double goodVal = ((double)this.good / (double)this.attemps) * 100;\r\n double reachVal = ((double)this.reachable / (double)this.attemps) * 100;\r\n double unreachVal = ((double)this.unreachable / (double)this.attemps) * 100;\r\n \r\n this.goodLabel.setText(df.format(goodVal)+ \" %\");\r\n this.reachableLabel.setText(df.format(reachVal) + \" %\");\r\n this.unreachableLabel.setText(df.format(unreachVal) + \" %\");\r\n \r\n }", "public String getResult(){\n\t\tString result = String.format(\"%-10s%10d\", p1time,found);\n\t\treturn result;\n\t}", "public static String dtrmn(int number) {\n\t\t\n\t\tString letter = \"\";\n\t\t\n\t\tint cl = number / 100;\n\t\tif (cl != 9 && cl != 4) {\n\t\t\t\n\t\t\tif (cl < 4) {\n\t\t\t\t\n\t\t\t\tfor(int i = 1; i <= cl; i++) {\n\t\t\t\t\tletter = letter + \"C\";\n\t\t\t\t}\n\t\t\t} else if (cl < 9 && cl > 4) {\n\t\t\t\t\n\t\t\t\tletter = letter + \"D\";\n\t\t\t\tfor (int i = 1; i <= cl - 5; i++) {\n\t\t\t\t\tletter = letter + \"C\";\n\t\t\t\t}\n\t\t\t} else if(cl == 10) { \n\t\t\t\t\n\t\t\t\tletter = letter + \"M\";\n\t\t\t}\n\t\t} else if (cl == 4) {\n\t\t\t\n\t\t\tletter = letter + \"CD\";\n\t\t\t\n\t\t} else if (cl == 9) {\n\t\t\t\n\t\t\tletter = letter + \"CM\";\n\t\t}\n\t\t\n\t\tint cl1 = (number % 100)/10;\n\t\tif (cl1 != 9 && cl1 != 4) {\n\t\t\t\n\t\t\tif (cl1 < 4) {\n\t\t\t\t\n\t\t\t\tfor (int i = 1; i <= cl1; i++) {\n\t\t\t\t\tletter = letter + \"X\";\n\t\t\t\t}\n\t\t\t} else if (cl1 < 9 && cl1 > 4) {\n\t\t\t\tletter = letter + \"L\";\n\t\t\t\t\n\t\t\t\tfor (int i = 1; i <= cl1 -5; i++) {\n\t\t\t\t\tletter = letter + \"X\";\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t} else if (cl1 == 4) {\n\t\t\tletter = letter + \"XL\";\n\t\t} else if (cl1 == 9) {\n\t\t\tletter = letter + \"XC\";\n\t\t}\n\t\t\n\t\tint cl2 = (number % 100)%10;\n\t\t\n\t\tif (cl2 != 9 && cl2 != 4) {\n\t\t\t\n\t\t\tif (cl2 < 4) {\n\t\t\t\tfor (int i = 1; i <= cl2; i++) {\n\t\t\t\t\tletter = letter + \"I\";\n\t\t\t\t}\n\t\t\t} else if (cl2 < 9 && cl2 > 4) {\n\t\t\t\t\n\t\t\t\tletter = letter + \"V\";\n\t\t\t\tfor (int i = 1; i <= cl2-5; i++) {\n\t\t\t\t\tletter = letter + \"I\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} else if (cl2 == 4) {\n\t\t\tletter = letter +\"IV\";\n\t\t} else if (cl2 == 9) {\n\t\t\tletter = letter + \"IX\";\n\t\t}\n\t\treturn letter;\n\t}", "public String format()\n {\n return String.format(\"%/t%/t/\", grassPatches.length, walkers.size());\n }", "Inch createInch();", "public static String formatTextCount(int count) throws Exception {\n String formattedCount = \"\";\n if (count >= 10000) {\n if (count % 1000 == 0) {\n formattedCount = \"\" + count / 1000 + \"k\";\n } else {\n double temp = ((double) count) / 1000.0;\n formattedCount = \"\" + (Math.round(temp * 100.0) % 100 == 0 ? Math.round(temp) : Math.round(temp * 100.0) / 100.0) + \"k\";\n }\n } else\n formattedCount = \"\" + count;\n return formattedCount;\n }", "public static String getFormattedSize(long size) {\r\n float localSize = (float)(size / Math.pow(2, 30));\r\n Formatter formatter = new Formatter();\r\n if (localSize > 1) {\r\n return formatter.format(\"%.2fG\", Math.round(localSize * 100) / 100f).toString();\r\n } else if ((localSize = (float)(size / Math.pow(2, 20))) > 1) {\r\n return formatter.format(\"%.2fM\", Math.round(localSize * 100) / 100f).toString();\r\n } else if ((localSize = (float)(size / Math.pow(2, 10))) > 1) {\r\n return formatter.format(\"%.2fK\", Math.round(localSize * 100) / 100f).toString();\r\n } else {\r\n return formatter.format(\"%dB\", size).toString();\r\n }\r\n }", "public void calculateAndDisplay() {\n fromUnitString = fromUnitEditText.getText().toString();\r\n if (fromUnitString.equals(\"\")) {\r\n fromValue = 0;\r\n }\r\n else {\r\n fromValue = Float.parseFloat(fromUnitString);\r\n }\r\n\r\n // calculate the \"to\" value\r\n toValue = fromValue * ratio;\r\n\r\n // display the results with formatting\r\n NumberFormat number = NumberFormat.getNumberInstance();\r\n number.setMaximumFractionDigits(2);\r\n number.setMinimumFractionDigits(2);\r\n toUnitTextView.setText(number.format(toValue));\r\n }", "private static String StringifyBody(String[] line , double... args){\n\n String output = String.format(\"%-20s %-20s\" , line[0] , line[1]);\n\n for(int i = 0; i < line.length - 2 ;i++){\n output += String.format(\"%-10s\",line[2 + i]); // Skip the first two element City & Country\n\n }\n for (double element: args) { //args is again for the total\n output += String.format(\"%-10.1f\" ,element );\n }\n\n return output;\n }", "@Override\n public String toString()\n {\n return String.format(\"%-20s\\t\\t%-30s%-30s\",number, name, party);\n}", "public void formatoTiempo() {\n String segundos, minutos, hora;\n\n hora = hrs < 10 ? String.valueOf(\"0\" + hrs) : String.valueOf(hrs);\n\n minutos = min < 10 ? String.valueOf(\"0\" + min) : String.valueOf(min);\n\n jLabel3.setText(hora + \" : \" + minutos + \" \" + tarde);\n }", "void setLabelString() {\n int pad = 5; // fudge to make up for variable width fonts\n float maxVal = Math.max(Math.abs(min), Math.abs(max));\n intDigits = Math.round((float) (Math.log(maxVal) / Math.log(10))) + pad;\n if (min < 0) {\n intDigits++; // add one for the '-'\n }\n // fractDigits is num digits of resolution for fraction. Use base 10 log\n // of scale, rounded up, + 2.\n fractDigits = (int) Math.ceil((Math.log(scale) / Math.log(10)));\n nf.setMinimumFractionDigits(fractDigits);\n nf.setMaximumFractionDigits(fractDigits);\n String value = nf.format(current);\n while (value.length() < (intDigits + fractDigits)) {\n value = value + \" \";\n }\n valueLabel.setText(value);\n }", "java.lang.String getEmploymentDurationText();", "private String helper(int num) {\n if (num == 0) {\n // return empty string here so that we can append a white\n // space in the next if \n return \"\"; \n }\n \n if (num < 20) {\n return LESS_THAN_20[num] + \" \";\n }\n \n if (num < 100) {\n // use helper on num%10 instead of LESS_THAN_20[num%10] so that\n // white space is handled properly\n return TENS[num / 10] + \" \" + helper(num % 10);\n }\n \n return LESS_THAN_20[num / 100] + \" Hundred \" + helper(num % 100);\n }", "private String defaultFormat(double d) {\n\t\tString str = \"\" + d;\n\t\tint availableSpace = getSize().width - 2 * PIXEL_MARGIN;\n\t\tFontMetrics fm = getFontMetrics(getFont());\n\t\tif (fm.stringWidth(str) <= availableSpace) return str;\n\t\tint eIndex = str.indexOf(\"E\");\n\t\tString suffix = \"\";\n\t\tif (eIndex != -1) {\n\t\t\tsuffix = str.substring(eIndex);\n\t\t\tstr = str.substring(0, eIndex);\n\t\t\ttry {\n\t\t\t\td = parser.parse(str).doubleValue();\n\t\t\t} catch (ParseException ex) {\n\t\t\t\tthrow new ErrorException(ex);\n\t\t\t}\n\t\t}\n\t\tNumberFormat standard = NumberFormat.getNumberInstance(Locale.US);\n\t\tstandard.setGroupingUsed(false);\n\t\tString head = str.substring(0, str.indexOf('.') + 1);\n\t\tint fractionSpace = availableSpace - fm.stringWidth(head + suffix);\n\t\tif (fractionSpace > 0) {\n\t\t\tint fractionDigits = fractionSpace / fm.stringWidth(\"0\");\n\t\t\tstandard.setMaximumFractionDigits(fractionDigits);\n\t\t\treturn standard.format(d) + suffix;\n\t\t}\n\t\tstr = \"\";\n\t\twhile (fm.stringWidth(str + \"#\") <= availableSpace) {\n\t\t\tstr += \"#\";\n\t\t}\n\t\treturn str;\n\t}", "private String getFormatattedTxt(String inputTxt, int txtLength) {\n\t\tint fulllength = inputTxt.length(); // full length gives the length of IR number\n\t\tint rellength = txtLength + 4; //Inv Number + 'IRX' + '-'\n\t\tint temp = fulllength - rellength;\n\t\tString formattedTxt = \"\";\n\n\t\tLog.customer.debug(\"CATMFGDWInvoicePush_FlatFile: int temp \" + temp);\n\n\t\tinputTxt = inputTxt.substring(rellength, fulllength);\n\n\n\t\tformattedTxt = \"IRX-\" + inputTxt;\n\t\tLog.customer.debug(\"CATMFGDWInvoicePush_FlatFile: formattedTxt \" + formattedTxt);\n\t\treturn formattedTxt;\n\n\t\t}", "public String formatPosition(int s) {\n String result = \"\";\n if (s == 0) {\n result = \"A\";\n } else if (s == 1) {\n result = \"B\";\n } else if (s == 2) {\n result = \"C\";\n } else if (s == 3) {\n result = \"D\";\n } else if (s == 4) {\n result = \"E\";\n } else if (s == 5) {\n result = \"F\";\n } else if (s == 6) {\n result = \"G\";\n } else {\n result = \"H\";\n }\n return result;\n }", "protected Shape getTextShape(Graphics2D g2) {\n String txt = value > 999 ? \"1K\" : Objects.toString(value);\n AffineTransform at = txt.length() < 3 ? null : AffineTransform.getScaleInstance(.66, 1d);\n return new TextLayout(txt, g2.getFont(), g2.getFontRenderContext()).getOutline(at);\n }", "private String formatString(String s) {\n \t\tif (s.length() > 13) return s.substring(0,11) + \"...\"; \n \t\telse return s;\n \t}", "private String getPoints(){\n\t\tString pu = \" punts.\";\n\t\tif(points == 1){\n\t\t\tpu = \" punt.\";\n\t\t}\n\t\treturn \"Puntuació de \" + points + pu;\n\t}", "private String showText() {\n\t\tString text = \"\";\n\t\ttry {\n\t\t\tString line1 = \"\";\n\t\t\tString line2 = \"\";\n\t\t\tString line3 = \"\";\n\t\t\tfor (LakeTile lake_tile : removed_laketile) {\n\t\t\t\tint i = removed_laketile.indexOf(lake_tile);\n\t\t\t\tPosition pos = removed_position.get(i);\n\t\t\t\tQueue<Color> color_queue = lake_tile.getColorOfFourSides();\n\t\t\t\tArrayList<Color> color_list = new ArrayList<Color>(color_queue);\n\n\t\t\t\tline1 += String.format(\"%12s\", \"\");\n\t\t\t\tline1 += Color.getColorText(color_list.get(0), \" \");\n\n\t\t\t\tline1 += String.format(\"%4s\", \"\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tline2 += String.format(\"%2s\", lake_tile.getIndex());\n\t\t\t\tline2 += \":\";\n\t\t\t\tline2 += String.format(\"%-7s\",\"(\" + pos.getX() + \",\" + pos.getY() + \")\");\n\t\t\t\tline2 += Color.getColorText(color_list.get(3), \" \");\n\t\t\t\tline2 += \" \";\n\t\t\t\tif (lake_tile.isPlatform()) {\n\t\t\t\t\tline2 += \"O\";\n\t\t\t\t} else {\n\t\t\t\t\tline2 += \"X\";\n\t\t\t\t}\n\t\t\t\tline2 += \" \" + Color.getColorText(color_list.get(1), \" \") + \" \";\n\n\t\t\t\tline3 += String.format(\"%12s\", \"\");\n\t\t\t\tline3 += Color.getColorText(color_list.get(2), \" \");\n\t\t\t\tline3 += String.format(\"%4s\", \"\");\n\n\t\t\t}\n\t\t\ttext += line1 + \"\\n\";\n\t\t\ttext += line2 + \"\\n\";\n\t\t\ttext += line3 + \"\\n\";\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\ttext = \"No Data\";\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn text;\n\n\t}", "public static String toString( double number,\n double upLimit,\n double loLimit,\n int precision)\n {\n // If number less than decimalLimit, or equal to zero, use decimal style\n if( number == 0.0 ||\n (Math.abs(number) <= upLimit && Math.abs(number) > loLimit) )\n {\n switch (precision){\n case 1 : return dec1.format(number);\n case 2 : return dec2.format(number);\n default: return dec1.format(number);\n }\n\n } else{\n // Create the format for Scientific Notation with E\n switch (precision){\n case 1 : return sci1.format(number);\n case 2 : return sci2.format(number);\n default: return sci1.format(number);\n }\n }\n }", "void format();", "public static String cashInWords (Double cash) {\n String s = \"\";\n int cashInCents = (BigDecimal.valueOf(cash).movePointRight(2)).intValue();\n int hrivna = cash.intValue();\n int cop = cashInCents%100;\n if (hrivna/1000000>=1) s+=ch999(hrivna / 1000000, \"million \");\n if (hrivna%1000000/1000>=1) s+=ch999(hrivna % 1000000 / 1000, \"thousand \");\n if (hrivna%1000000%1000>=1) s+=ch999(hrivna % 1000000 % 1000, \"\");\n if (hrivna>0) s+=\"hryvnas \";\n if (hrivna>0&&cop>0) s+=\"and \";\n if (cop>0) s+=ch999(cop, \"cop.\");\n\n return s;\n }", "@Override\n\tpublic String printToScreen(){\n\t\n\t\tif(this.getyMaxLines() == 0){return \"\";}\n\t\tTextProfile textProfile= new TextProfile(this.getScreenScores(), this.getyMaxLines(), this.getYLimitMin(), this.getYLimitMax());\n\t\t\n\t\tArrayList<String> lineStrings= new ArrayList<String>();\n\t\tfor(int i= (textProfile.getProfile().size() - 1); i >= 0; i--){\n\t\t\tList<String> xl= textProfile.getProfile().get(i);\n\t\t\tlineStrings.add(StringUtils.join(xl, \"\"));\n\t\t}\t\t\n\t\treturn Joiner.on(\"\\n\").join(lineStrings);\n\t}", "public String getCurrentValueFormatted()\r\n {\r\n \t/*\r\n \t * If you look at the OpenXML spec or\r\n \t * STNumberFormat.java, you'll see there are some 60 number formats.\r\n \t * \r\n \t * Of these, we currently aim to support:\r\n \t * \r\n\t\t * decimal\r\n\t\t * upperRoman\r\n\t\t * lowerRoman\r\n\t\t * upperLetter\r\n\t\t * lowerLetter\r\n\t\t * bullet\r\n\t\t * none\r\n\t\t * \r\n\t\t * What about?\r\n\t\t * \r\n\t\t * ordinal\r\n\t\t * cardinalText\r\n\t\t * ordinalText\r\n \t * \r\n \t */\r\n \t\r\n \tif (numFmt.equals( NumberFormat.DECIMAL ) ) {\r\n \t\treturn this.counter.getCurrentValue().toString();\r\n \t}\r\n \t\r\n \tif (numFmt.equals( NumberFormat.NONE ) ) {\r\n \t\treturn \"\"; \t\t\r\n \t}\r\n\r\n \tif (numFmt.equals( NumberFormat.BULLET ) ) {\r\n \t\t\r\n \t\t// TODO - revisit how this is handled.\r\n \t\t// The code elsewhere for handling bullets\r\n \t\t// overlaps with this numFmt stuff.\r\n \t\treturn \"*\"; \t\t\r\n \t}\r\n \t \t\r\n \tint current = this.counter.getCurrentValue().intValue();\r\n \t\r\n \tif (numFmt.equals( NumberFormat.UPPER_ROMAN ) ) { \t\t\r\n \t\tNumberFormatRomanUpper converter = new NumberFormatRomanUpper(); \r\n \t\treturn converter.format(current);\r\n \t}\r\n \tif (numFmt.equals( NumberFormat.LOWER_ROMAN ) ) { \t\t\r\n \t\tNumberFormatRomanLower converter = new NumberFormatRomanLower(); \r\n \t\treturn converter.format(current);\r\n \t}\r\n \tif (numFmt.equals( NumberFormat.LOWER_LETTER ) ) { \t\t\r\n \t\tNumberFormatLowerLetter converter = new NumberFormatLowerLetter(); \r\n \t\treturn converter.format(current);\r\n \t}\r\n \tif (numFmt.equals( NumberFormat.UPPER_LETTER ) ) { \t\t\r\n \t\tNumberFormatLowerLetter converter = new NumberFormatLowerLetter(); \r\n \t\treturn converter.format(current).toUpperCase();\r\n \t} \t\r\n \tif (numFmt.equals( NumberFormat.DECIMAL_ZERO ) ) { \t\t\r\n \t\tNumberFormatDecimalZero converter = new NumberFormatDecimalZero(); \r\n \t\treturn converter.format(current);\r\n \t}\r\n \t\r\n \tlog.error(\"Unhandled numFmt: \" + numFmt.name() );\r\n return this.counter.getCurrentValue().toString();\r\n }", "@Override\n\t\t\tprotected String formatValue(String text) {\n\t\t\t\treturn text.substring(0, text.lastIndexOf('.'));\n\t\t\t}", "@Override\n public String toString()\n {\n return String.format(\"Bicycle:\\tMiles: %,.2f\\t\\temission factor: %,.2f\\tCarbon footprint: %,.2f pounds of carbon\", \n this.distance, this.emissionFactor, getCarbonFootprint());\n }", "private String calculateL100Km() {\n double distance = parser(getTextFromEditText(R.id.distanceEdit));\n double fuel = parser(getTextFromEditText(R.id.fuelEdit));\n double value = (fuel * 100) / distance;\n return rounder(value);\n }", "private static char parseOutScale(String s)\n {\n final int N = s.length();\n // If the last character of s is a digit, the whole of s is assumed to\n // be a numeral and a space is returned. Otherwise, the last character\n // of s is returned.\n char lastChar = s.charAt(N-1);\n if (Character.isDigit(lastChar)) \n { return ' '; }\n else\n { return lastChar; }\n }", "public String tri4(int h){\n\t\tString S = \"\";\n\t\tint H = h;\n\t\tint HH = H;\n\t\tint Counter = 0;\n\t\tint UsingCounter = Counter;\n\n\t\twhile (H > 0){\n\t\t\tHH = H;\n\t\t\twhile (UsingCounter > 0){\n\t\t\t\tS = S + \" \";\n\t\t\t\tUsingCounter = UsingCounter - 1;}\n\t\t\twhile (HH > 0) {\n\t\t\t\tS = S + \"*\";\n\t\t\t\tHH = HH - 1;}\n\t\t\tCounter = Counter + 1;\n\t\t\tUsingCounter = Counter;\n\t\t\tS = S + \"\\n\";\n\t\t\tH = H - 1;}\n\n\t\treturn S; }", "private String getLengthsFormatted() {\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor (int i = 0; i < paths.size(); i++) {\n\t\t\tsb.append((int) paths.get(i).getLength());\n\n\t\t\tif (i != paths.size() - 1) {\n\t\t\t\tsb.append(\", \");\n\t\t\t}\n\t\t}\n\n\t\treturn sb.toString();\n\t}", "public String render()\n {\n if(getHungerCountdown() <= 0 && getHungerCountdown() > -5){\n return \"s\";\n }\n else if (getHungerCountdown() > 0){\n return \"S\";\n }\n else{\n return null;\n }\n }", "String getToText();", "protected abstract String format();", "public String dimeTuTiempo()\n {\n String cadResultado=\"\";\n if (horas<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+horas;\n cadResultado=cadResultado+\":\";\n if(minutos<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+minutos;\n \n return cadResultado;\n }", "public String getFormattedPrice() {\n NumberFormat ukFormat = NumberFormat.getCurrencyInstance(Locale.UK);\n ukFormat.setMinimumFractionDigits(2);\n ukFormat.setMaximumFractionDigits(2);\n BigDecimal result = new BigDecimal(\"0.00\");\n if (baseSize != null) {\n result = baseSize.getPrice();\n Double multiplier = baseSize.getMultiplier();\n for (ToppingEntity topping : toppings) {\n topping.setMultiplier(multiplier);\n result = result.add(topping.getPrice());\n }\n }\n return ukFormat.format(result.doubleValue());\n }", "public static String getCssText(short unit, float value) {\n \t\tif (unit < 0 || unit >= UNITS.length) {\n \t\t\tthrow new DOMException(DOMException.SYNTAX_ERR, \"\");\n \t\t}\n \t\tString s = String.valueOf(value);\n \t\tif (s.endsWith(\".0\")) {\n \t\t\ts = s.substring(0, s.length() - 2);\n \t\t}\n \t\treturn s + UNITS[unit - CSSPrimitiveValue.CSS_NUMBER];\n \t}", "private String format(String text) {\n if(text != null && !text.isEmpty())\n return text.substring(0, 1).toUpperCase(Locale.ENGLISH) + text.substring(1);\n else\n return \"\";\n }", "private String capital() {\r\n\t\tString out=\"Companies Capital: \\n\\n\";\r\n\t\tint[] temp= tile.getCompanyCapital();\r\n\t\tint square=(int)Math.sqrt(temp.length);\r\n\t\tif(square*square<temp.length) {\r\n\t\t\tsquare++;\r\n\t\t}\r\n\t\tfor(int i=0; i<temp.length;) {\r\n\t\t\tfor(int j=0; j<square; j++) {\r\n\t\t\t\tif(i<temp.length) {\r\n\t\t\t\t\tout=out.concat(String.format(\"%4s\", temp[i]));\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tj=square;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tout=out.concat(\"\\n\");\r\n\t\t}\r\n\t\tout=out.concat(\"\\n\\nAgent Capital: \\n\\n\");\r\n\t\ttemp=tile.getAgentCapital();\r\n\t\tsquare=(int)Math.sqrt(temp.length);\r\n\t\tif(square*square<temp.length) {\r\n\t\t\tsquare++;\r\n\t\t}\r\n\t\tfor(int i=0; i<temp.length;i++) {\r\n\t\t\tfor(int j=0; j<square; j++) {\r\n\t\t\t\tif(i<temp.length) {\r\n\t\t\t\t\tout=out.concat(String.format(\"%4s\", temp[i]));\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tj=square;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tout=out.concat(\"\\n\");\r\n\t\t}\r\n\t\treturn out;\r\n\t}", "public abstract double fromBasicUnit(double valueJTextInsert);", "public static void main(String[] args) {\n\n double meters = convertInchesToMeters(1000.0);\n DecimalFormat df = new DecimalFormat(\"#.##\");\n\n System.out.println(\"1000.0 inches is \"+df.format(meters));\n\n }", "public static double inchesToCms(double inch)\n {\n return inch * INCH_PER_CM;\n }", "private void drawNumber(Font f,String s,int x,int y){\r\n // finds width of the string when drawn\r\n FontMetrics metrics=g.getFontMetrics(f);\r\n int n=(int)metrics.stringWidth(s); \r\n g.drawString(s,x-n/2,y); \r\n \r\n }" ]
[ "0.6465044", "0.63994867", "0.6266951", "0.6191092", "0.59903574", "0.59208363", "0.5731392", "0.5719154", "0.5598184", "0.55859894", "0.5548739", "0.5432244", "0.539786", "0.5367146", "0.53333265", "0.5285189", "0.52787477", "0.5260095", "0.5253602", "0.5228458", "0.52097136", "0.5198366", "0.51961464", "0.51819164", "0.5178189", "0.5176458", "0.5172809", "0.5161645", "0.51504874", "0.5148203", "0.51442313", "0.51441616", "0.51380616", "0.51088536", "0.5094807", "0.50729614", "0.50714", "0.5063202", "0.50605595", "0.50587547", "0.5057939", "0.505783", "0.50548524", "0.50548524", "0.50548524", "0.50478446", "0.5047397", "0.50431633", "0.5042514", "0.50406164", "0.50395954", "0.5031656", "0.5029844", "0.50195915", "0.50184417", "0.5017241", "0.5016952", "0.5012206", "0.5010701", "0.5008127", "0.5005242", "0.5001902", "0.500123", "0.49896118", "0.4988398", "0.49874154", "0.49828318", "0.49824807", "0.49821043", "0.49765325", "0.4971105", "0.49646434", "0.49554124", "0.49528447", "0.49495038", "0.494718", "0.4944375", "0.4942822", "0.4940189", "0.4930021", "0.4917464", "0.49166426", "0.49145213", "0.49126175", "0.49074954", "0.49049285", "0.4893097", "0.48924202", "0.48919946", "0.48897848", "0.48834008", "0.48788053", "0.48755983", "0.48562732", "0.4843659", "0.48402566", "0.48399535", "0.48362944", "0.48353094", "0.4831479" ]
0.6440553
1
Returns the units for a value. If the value is 1, returns the singular unit. Otherwise, returns the plural unit.
private String getUnits(Unit units, int value) { if (units == Unit.FEET) { if (value == 1) return " foot"; return " feet"; } if (value == 1) return " inch"; return " inches"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUnitsString() {\n String result = null;\n if (forVar != null) {\n Attribute att = forVar.findAttributeIgnoreCase(CDM.UNITS);\n if ((att != null) && att.isString())\n result = att.getStringValue();\n }\n return (result == null) ? units : result.trim();\n }", "String getUnits();", "String getUnits();", "String getUnits();", "public String getUnits() {\n return units;\n }", "public String getUnits() {\r\n\t\treturn units;\r\n\t}", "public String getUnits() {\n return units;\n }", "public String getUnits() {\n\t\treturn units;\n\t}", "public String getUnits() {\n return this.units;\n }", "public int getUnits() {\r\n return units;\r\n }", "public String getUnit() {\n String unit = (String) comboUnits.getSelectedItem();\n if (\"inch\".equals(unit)) {\n return \"in\";\n } else if (\"cm\".equals(unit)) {\n return \"cm\";\n } else if (\"mm\".equals(unit)) {\n return \"mm\";\n } else if (\"pixel\".equals(unit)) {\n return \"px\";\n }\n return \"\";\n }", "public int getUnits() {\n\t\treturn units;\n\t}", "public String getUnitsString() {\n return units;\n }", "public static String units(String unit) {\n\t\tswitch (unit) {\n\t\t\tcase \"feet\":\n\t\t\t\treturn \"ft\";\n\t\t\tcase \"miles\":\n\t\t\t\treturn \"mi\";\n\t\t\tcase \"meters\":\n\t\t\t\treturn \"m\";\n\t\t\tcase \"kilometers\":\n\t\t\t\treturn \"km\";\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t}\n\t}", "public static Object[] getUnits()\n\t{\n\t\treturn new Object[]\n\t\t{\n\t\t\t// SI units\n\t\t\t\"millimeters\",\n\t\t\t\"centimeters\",\n\t\t\t\"meters\",\n\t\t\t\"kilometers\",\n\t\t\t\n\t\t\t// English units\n\t\t\t\"inches\",\n\t\t\t\"feet\",\n\t\t\t\"yards\",\n\t\t\t\"miles\",\n\t\t\t\"knots\"\n\t\t};\n\t}", "String getUnitsString();", "public void setUnits(int value) {\r\n this.units = value;\r\n }", "protected String getUnits()\n {\n return units;\n }", "public int getUnits() {\r\n\r\n\t\treturn this.units;\r\n\t}", "Units getUnits();", "private String getResultUnit() {\n switch (mCalculationType) {\n case CONSUMPTION_L_100_KM:\n return \"l/100 km\";\n case CONSUMPTION_KM_L:\n return \"km/l\";\n case CONSUMPTION_MPG:\n return \"mpg\";\n default:\n return \"\";\n }\n }", "final Unit getUnits() {\n Unit units = null;\n for ( int i = getDimension(); --i >= 0; ) {\n final Unit check = getUnits( i );\n if ( units == null )\n units = check;\n else if ( !units.equals( check ) )\n return null;\n }\n return units;\n }", "public static String getKeyValueUnits(String key, String value, String units) {\n return getKeyValue(key, value) + \" \" + units;\n }", "protected static float toMillimeters(int unit, float value) {\n \t\tswitch (unit) {\n \t\tcase CSSPrimitiveValue.CSS_CM:\n \t\t\treturn (value * 10);\n \t\tcase CSSPrimitiveValue.CSS_MM:\n \t\t\treturn value;\n \t\tcase CSSPrimitiveValue.CSS_IN:\n \t\t\treturn (value * 25.4f);\n \t\tcase CSSPrimitiveValue.CSS_PT:\n \t\t\treturn (value * 25.4f / 72);\n \t\tcase CSSPrimitiveValue.CSS_PC:\n \t\t\treturn (value * 25.4f / 6);\n \t\tdefault:\n \t\t\tthrow new DOMException(DOMException.INVALID_ACCESS_ERR, \"\");\n \t\t}\n \t}", "public byte getUnits() { return units; }", "public String unit() {\n return this.unit;\n }", "public int getUnits()\n {\n return m_cUnits;\n }", "public java.lang.String getUnits() {\r\n return localUnits;\r\n }", "TimeUnit getUnit();", "public void setUnit (String value) {\n\tthis.unit = value;\n }", "public FioUnit getUnits() {\n\t\treturn this.units;\n\t}", "private int getUnitListValue() {\r\n\t\tint value = 0;\r\n\t\tfor (Unit unit : this.unitList) {\r\n\t\t\tvalue += unit.getValue();\r\n\t\t}\r\n\t\treturn value;\r\n\t}", "String getUnit();", "public String getUnits() {\n\t\tif (GridDialog.GRID_UNITS.containsKey(name)) {\n\t\t\treturn GridDialog.GRID_UNITS.get(name);\n\t\t}else {\n\t\t\t//for contributed grid, need to find the units from the ESRIShapefile object\n\t\t\tfor (LayerPanel layerPanel : ((MapApp)map.getApp()).layerManager.getLayerPanels()) {\n\t\t\t\tif (layerPanel.layer instanceof ESRIShapefile && ((ESRIShapefile)layerPanel.layer).equals(this)) {\n\t\t\t\t\tESRIShapefile esf = (ESRIShapefile)(layerPanel.layer);\n\t\t\t\t\treturn esf.getGridUnits();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}", "protected int calculateUnits(Object oValue)\n {\n OldOldCache map = OldOldCache.this;\n Object oKey = getKey();\n switch (map.getUnitCalculatorType())\n {\n case UNIT_CALCULATOR_BINARY:\n return BinaryMemoryCalculator.INSTANCE.calculateUnits(oKey, oValue);\n\n case UNIT_CALCULATOR_EXTERNAL:\n return map.getUnitCalculator().calculateUnits(oKey, oValue);\n\n case UNIT_CALCULATOR_FIXED:\n default:\n return 1;\n }\n }", "public String getUnit() {\n\t\tString unit;\n\t\ttry {\n\t\t\tunit = this.getString(\"unit\");\n\t\t} catch (Exception e) {\n\t\t\tunit = null;\n\t\t}\n\t\treturn unit;\n\t}", "DefinedUnitType getDefinedUnit();", "public String getUnit();", "public String getUnitOfMeasure() {\r\n\t\t\r\n\t\treturn McsElement.getElementByXpath(driver, \"//input[@name='unitOfMeasure']/following-sibling::input[@type='text']\").getAttribute(\"value\");\r\n\t}", "public String getUnit() {\n return unit;\n }", "public String getUnit() {\n return unit;\n }", "public String getUnit() {\n return unit;\n }", "public int getUnits()\n {\n return m_cCurUnits;\n }", "public void setUnitTable(Units value);", "public String getUnit()\n {\n return (this.unit);\n }", "@JSProperty(\"units\")\n @Nullable\n Array<Array<Unknown>> getUnits();", "@javax.persistence.Column(name = \"unit\", precision = 5)\n\tpublic java.lang.String getUnit() {\n\t\treturn getValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.UNIT);\n\t}", "public SystemOfUnits getSystemOfUnits(String name) {\n if (name.equals(\"SI\")) return SI.getInstance();\n if (name.equals(\"UCUM\")) return UCUM.getInstance();\n return null;\n }", "public SystemOfUnits getSystemOfUnits() {\n return SI.getInstance();\n }", "public int calculateUnits(Object oKey, Object oValue);", "public Units getUnitTable();", "public final ArrayList<Units> GetUnitsForCurrentType()\n {\n return MethodsUnitP.GetUnitsTypeCommon(UnitType);\n }", "public String getUnit() {\n\t\treturn unit;\n\t}", "public String getUnitOfMeasure() {\r\n return this.unitOfMeasure;\r\n }", "private String getAmountUnit(int unit) {\n switch (unit) {\n case UNIT_LITERS:\n return getResourceString(R.string.val_l);\n case UNIT_GALLONS:\n return getResourceString(R.string.val_g);\n }\n\n return \"\";\n }", "public UnitTypes GetCurrentUnitType()\n {\n return MethodsCommon.GetTypeFromUnit(Unit);\n }", "public void setUnit(Length units) {\n unit = units;\n }", "@Override\n\tpublic String getUnitsString() {\n\t\treturn null;\n\t}", "public String getUnitOfMeasurement() {\r\n\t\treturn unitOfMeasurement;\r\n\t}", "public List<InputTermUnit<V>> getUnits() {\n\t\treturn this.units;\n\t}", "@JSProperty(\"units\")\n void setUnits(Array<Array<Unknown>> value);", "public ArrayList getUnits();", "public static UnitTypes GetUnitType(Units unit)\n {\n return MethodsCommon.GetTypeFromUnit(unit);\n }", "public String getUnit () {\n\treturn this.unit;\n }", "DefiningUnitType getDefiningUnit();", "public String getDurationUnit() {\n\t\treturn (String) get_Value(\"DurationUnit\");\n\t}", "ChronoUnit getUnit();", "public gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType.Enum getUnit()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UNIT$6, 0);\n if (target == null)\n {\n return null;\n }\n return (gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType.Enum)target.getEnumValue();\n }\n }", "public final ArrayList<Units> GetUnitsForCurrentTypeAndSystem()\n {\n return MethodsUnitP.GetUnitsTypeAndSystemCommon(UnitType, UnitSystem);\n }", "ReadOnlyStringProperty unitsProperty();", "public void setUnits(String units) {\n this.units = units;\n }", "public void setUnits(String units) {\n this.units = units;\n }", "int getRadiusUnitsValue();", "public boolean getUnits() {\r\n return Units;\r\n }", "private String unitString(final double value, final String units, final Locale locale)\n\t{\n\t\treturn StringValue.valueOf(value, locale) + units;\n\t}", "public static final float inchesToMillimeters(float value) {\n\t return value * 25.4f;\n\t}", "public gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType xgetUnit()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType target = null;\n target = (gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType)get_store().find_element_user(UNIT$6, 0);\n return target;\n }\n }", "public abstract Unit getUnits( int dimension );", "public int getBonusUnits() {\r\n return bonusUnits;\r\n }", "public static String getCssText(short unit, float value) {\n \t\tif (unit < 0 || unit >= UNITS.length) {\n \t\t\tthrow new DOMException(DOMException.SYNTAX_ERR, \"\");\n \t\t}\n \t\tString s = String.valueOf(value);\n \t\tif (s.endsWith(\".0\")) {\n \t\t\ts = s.substring(0, s.length() - 2);\n \t\t}\n \t\treturn s + UNITS[unit - CSSPrimitiveValue.CSS_NUMBER];\n \t}", "public static NormalTridasUnit parseUnitString(String str) throws Exception\n\t{\n\t\tstr = str.trim();\n\t\tif ((str==null) || (str.equals(\"\"))) return null;\n\t\n\t\tstr =str.toLowerCase();\n\t\t\n\t\tInteger val;\n\t\tBoolean mmDetected = false;\n\t\t\n\t\t//Remove leading fraction\n\t\tif(str.startsWith(\"1/\")){ str = str.substring(2);}\n\t\t\n\t\t// Remove 'ths'\n\t\tif(str.contains(\"ths\")){ str = str.replace(\"ths\", \"\");}\n\t\t\n\t\t// Remove 'th'\n\t\tif(str.contains(\"th\")){ str = str.replace(\"th\", \"\");}\n\t\t\n\t\t// Remove 'mm'\n\t\tif(str.contains(\"mm\"))\n\t\t{ \n\t\t\tstr = str.replace(\"mm\", \"\");\n\t\t\tmmDetected = true;\n\t\t}\n\t\tif(str.contains(\"millimet\"))\n\t\t{ \n\t\t\tstr = str.replace(\"millimetres\", \"\");\n\t\t\tstr = str.replace(\"millimeters\", \"\");\n\t\t\tstr = str.replace(\"millimetre\", \"\");\n\t\t\tstr = str.replace(\"millimeter\", \"\");\n\t\t\tmmDetected = true;\n\t\t}\n\t\t\n\t\tif(str.length()==0 && mmDetected)\n\t\t{\n\t\t\treturn NormalTridasUnit.MILLIMETRES;\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tval = Integer.parseInt(str.trim());\n\t\t} catch (NumberFormatException e)\n\t\t{\n\t\t\tthrow new Exception(\"Unable to parse units from units string\");\n\t\t}\n\t\t\n\t\tswitch(val)\n\t\t{\t\n\t\t\tcase 10: return NormalTridasUnit.TENTH_MM; \n\t\t\tcase 20: return NormalTridasUnit.TWENTIETH_MM;\n\t\t\tcase 50: return NormalTridasUnit.FIFTIETH_MM;\n\t\t\tcase 100: return NormalTridasUnit.HUNDREDTH_MM; \n\t\t\tcase 1000: return NormalTridasUnit.MICROMETRES; \n\t\t}\n\t\t\n\t\tthrow new Exception(\"Unable to parse units from units string\");\n\t}", "public Unit<? extends Quantity> getUnit(int index) {\n return _elements[index].getUnit();\n }", "private String getVerticalLevelUnits(String gVCord) {\n\n String tmp = gVCord.toUpperCase();\n if (tmp.compareTo(\"PRES\") == 0) {\n return \"MB\";\n }\n if (tmp.compareTo(\"THTA\") == 0) {\n return \"K \";\n }\n if (tmp.compareTo(\"HGHT\") == 0) {\n return \"M \";\n }\n if (tmp.compareTo(\"SGMA\") == 0) {\n return \"SG\";\n }\n if (tmp.compareTo(\"DPTH\") == 0) {\n return \"M \";\n }\n return \"\";\n }", "private String getDistanceUnit(int distance) {\n switch (distance) {\n case DISTANCE_KM:\n return getResourceString(R.string.val_km);\n case DISTANCE_MILES:\n return getResourceString(R.string.val_m);\n }\n\n return \"\";\n }", "public String getWeightUnit() {\n return (String) get(\"weight_unit\");\n }", "public UIUnitType getUiUnitType() {\r\n\t\treturn uiUnitType;\r\n\t}", "public Length getUnit() {\n return unit;\n }", "public ArrayList<String> Mass(String from, float amount, String[] units) {\n\t\tfrom = findFrom(from);\n\t\tif (from.equals(\"gram\")) {\n\t\t\tArrayList<String> kaduvil = new ArrayList<String>();\n\t\t\tkaduvil.add(\"\" + amount + \" \" + units[0] );\n\t\t\tkaduvil.add(\"\" + amount / 1000 + \" \" + units[1] );\n\t\t\tkaduvil.add(\"\" + amount / 453.59237f + \" \" + units[2] );\n\t\t\treturn kaduvil;\n\t\t} else {\n\t\t\tif (from.equals(\"pounds\")) {\n\t\t\t\treturn Mass(\"gram\", amount * 453.59237f, units);\n\t\t\t} else {\n\t\t\t\treturn Mass(\"gram\", amount * 1000, units);\n\t\t\t}\n\t\t}\n\t}", "public UnitType getUnitType() {\n\t\treturn unitType;\n\t}", "public double getUnitsPerPercent()\n {\n return unitsPerPercent;\n }", "public double getTotalUnits() {\n double totalUnits = 0;\n for (int i = 0; i < quarters.size(); i++) {\n totalUnits += quarters.get(i).getTotalUnits();\n }\n return totalUnits;\n }", "public String getUnitnm() {\r\n return unitnm;\r\n }", "public static final float millimetersToInches(float value) {\n\t return value / 25.4f;\n\t}", "public String getToUnit() {\r\n return this.toUnit;\r\n }", "public jkt.hms.masters.business.MasUnitOfMeasurement getUnitOfMeasurement() {\n\t\treturn unitOfMeasurement;\n\t}", "public Unit<Length> footSurveyUS() {return footSurveyUS;}", "public Unit<Length> kilometre() {return kilometre;}", "@Override\n protected String formatValue(Object value) {\n String formatted = \"float\".equals(format) ? formatWithDigits(value, this.digits) : String.valueOf(value);\n return formatted + \" \" + this.unitText;\n }", "protected static float toMilliseconds(int unit, float value) {\n \t\tswitch (unit) {\n \t\tcase CSSPrimitiveValue.CSS_MS:\n \t\t\treturn value;\n \t\tcase CSSPrimitiveValue.CSS_S:\n \t\t\treturn (value * 1000);\n \t\tdefault:\n \t\t\tthrow new DOMException(DOMException.INVALID_ACCESS_ERR, \"\");\n \t\t}\n \t}", "@Override\n\tpublic IMetricDimension getMetricUnit() {\n\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}" ]
[ "0.64902693", "0.6430845", "0.6430845", "0.6430845", "0.63957655", "0.6383718", "0.63702565", "0.6318885", "0.6253778", "0.623666", "0.62119967", "0.6205268", "0.6194207", "0.61781406", "0.61409956", "0.6105153", "0.60957927", "0.60842365", "0.6056791", "0.6054661", "0.59577715", "0.5949449", "0.5885119", "0.5858401", "0.5816198", "0.581549", "0.57966346", "0.5767332", "0.57382417", "0.5733472", "0.57278067", "0.5726498", "0.5696411", "0.56962246", "0.56817406", "0.5661384", "0.5624124", "0.5620523", "0.56155896", "0.561157", "0.561157", "0.561157", "0.5563017", "0.5548325", "0.554771", "0.55239946", "0.5509349", "0.55030185", "0.55018085", "0.54845595", "0.5472303", "0.54705966", "0.54611975", "0.54596496", "0.54462016", "0.5437224", "0.54160804", "0.54157555", "0.53796136", "0.53664535", "0.5363951", "0.5357405", "0.53532165", "0.5351236", "0.53284955", "0.53209996", "0.53176606", "0.5284398", "0.5267227", "0.52620476", "0.5248955", "0.5248955", "0.5246873", "0.52454746", "0.52272266", "0.5225926", "0.52072614", "0.52066016", "0.5195701", "0.5183778", "0.51701194", "0.5138885", "0.51208925", "0.5113402", "0.5110215", "0.51037806", "0.50944215", "0.5083402", "0.508333", "0.50593966", "0.50536823", "0.5038471", "0.50201684", "0.50161344", "0.5002163", "0.49945745", "0.49831703", "0.49679625", "0.49643305", "0.49585983" ]
0.7311042
0
Gets margin from a range. Uses fallback margin if range is not found.
private double getMargin(List<Integer> range) { if (range.size() < 2) return fallbackMargin; return getMarginFromBounds(range.get(0), range.get(1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double getMarginFromBounds(int lowerBound, int upperBound) {\n return (upperBound - lowerBound) / 2.0;\n }", "protected abstract D getLower(R range);", "int getRange();", "private double getRangeCenter(int lowerBound, int upperBound) {\n return (lowerBound + upperBound) / 2.0;\n }", "public Range findRangeBounds(CategoryDataset dataset) { return findRangeBounds(dataset, true); }", "Margin createMargin();", "default Integer getHorizontalMargin() {\n return null;\n }", "public ScreenPt getWcsMargins() { return new ScreenPt(wcsMarginX,wcsMarginY); }", "public @NonNull Margins getMinMargins() {\n return mMinMargins;\n }", "public double getRange(){\n\t\treturn range;\n\t}", "protected abstract R toRange(D lower, D upper);", "private int getRange(double offset, double width)\n {\n if (width == 1.0)\n {\n return _totalPoints;\n }\n else\n {\n int begin = getIndex(offset);\n int end = getIndex((offset + width) % 1.0);\n\n if (begin == end)\n {\n // Wrap around the entire ring, so return all the points\n if (width > getUnitWidth(begin))\n {\n return _totalPoints;\n }\n // Only one index is included\n else\n {\n return 1;\n }\n }\n else\n {\n // If the slice at index end does not overlap with [offset, offset + width), it should not be included\n int adjustedEnd = isEqual(getWeight(end, offset, width), 0, Ring.DELTA) ? end : end + 1;\n int diff = adjustedEnd - begin;\n return diff <= 0 ? diff + _totalPoints : diff;\n }\n }\n }", "public BoundingBox3d margin(float margin) {\n BoundingBox3d b = new BoundingBox3d();\n b.xmax = xmax + margin;\n b.xmin = xmin - margin;\n b.ymax = ymax + margin;\n b.ymin = ymin - margin;\n b.zmax = zmax + margin;\n b.zmin = zmin - margin;\n return b;\n }", "public default double getTargetRange(Entity casterIn){ return RangeType.getRange(casterIn, this); }", "@Override\n\tpublic int getRange() {\n\t\treturn range;\n\t}", "protected Range getApplicableRange( String text, String word, Token token )\r\n\t{\r\n\t\tRange r = new Range();\r\n\t\tswitch(token.getType())\r\n\t\t{\r\n\t\tcase Token.STRING:\r\n\t\tcase Token.UNKNOWN:\r\n\t\tcase Token.SPECIAL_SEQUENCE:\r\n\t\tcase Token.NORMAL:\r\n\t\tcase Token.KEYWORD:\r\n\t\t\tr.start = token.getStartPosition();\r\n\t\t\tr.end = r.start + word.length();\r\n\t\t\tbreak;\r\n\t\tcase Token.SEPARATOR:\r\n\t\t\t// Separators shall be processed this way\r\n\t\t\tr.start = token.getStartPosition();\r\n\t\t\tr.end = r.start + 1;\r\n\t\t\tbreak;\r\n\t\tcase Token.LINE_COMMENT:\r\n\t\tdefault:\r\n\t\t\t// For comments, and by default apply the style to the whole line\n\t\t\tr.start = token.getStartPosition();\r\n\t\t\tr.end = text.length();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn r;\r\n\t}", "public int getRangeWidth();", "public int getRange() {\n return mRange;\n }", "public int getRange()\n\t{\n\t\treturn Range;\n\t}", "public Range getRangeX(double lowerPercent, double upperPercent, \n PlotRenderingInfo info, Point2D source) {\n \t\t\n \t double start = super.getDomainAxis().getRange().getLowerBound();\n double length = super.getDomainAxis().getRange().getLength();\n Range adjusted = null;\n if (super.getDomainAxis().isInverted()) {\n adjusted = new Range(start + (length * (1 - upperPercent)), \n start + (length * (1 - lowerPercent))); \n }\n else {\n adjusted = new Range(start + length * lowerPercent, \n start + length * upperPercent);\n }\n return adjusted;\n }", "@Override\n public int between(int min, int max) {\n return super.between(min, max);\n }", "<C> CollectionRange<C> createCollectionRange();", "double getFooterMargin();", "Range createRange();", "private IRegion getWidgetRange(IRegion p) {\n \t\tif (p == null || p.getOffset() == Integer.MAX_VALUE)\n \t\t\treturn null;\n \n \t\tif (fSourceViewer instanceof ITextViewerExtension5) {\n \t\t\tITextViewerExtension5 extension= (ITextViewerExtension5) fSourceViewer;\n \t\t\treturn extension.modelRange2WidgetRange(p);\n \t\t}\n \n \t\tIRegion region= fSourceViewer.getVisibleRegion();\n \t\tint offset= region.getOffset();\n \t\tint length= region.getLength();\n \n \t\tif (overlapsWith(p, region)) {\n \t\t\tint p1= Math.max(offset, p.getOffset());\n \t\t\tint p2= Math.min(offset + length, p.getOffset() + p.getLength());\n \t\t\treturn new Region(p1 - offset, p2 - p1);\n \t\t}\n \t\treturn null;\n \t}", "default Integer getVerticalMargin() {\n return null;\n }", "private IRegion getModelRange(int offset, int length) {\n \t\tif (offset == Integer.MAX_VALUE)\n \t\t\treturn null;\n \n \t\tif (fSourceViewer instanceof ITextViewerExtension5) {\n \t\t\tITextViewerExtension5 extension= (ITextViewerExtension5) fSourceViewer;\n \t\t\treturn extension.widgetRange2ModelRange(new Region(offset, length));\n \t\t}\n \t\t\n \t\tIRegion region= fSourceViewer.getVisibleRegion();\n \t\treturn new Region(region.getOffset() + offset, length);\n \t}", "abstract public Range createRange();", "public abstract Range get(int mediaID, Range range );", "@Override\n public double between(double min, double max) {\n return super.between(min, max);\n }", "VocNoun getRange();", "com.google.ads.googleads.v14.common.AgeRangeInfo getAgeRange();", "public float getMargin() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 28);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 28);\n\t\t}\n\t}", "RangeValue createRangeValue();", "public double getXRangeMin() {\n return xRangeMin;\n }", "@NotNull\n private RangeInfo findNearestRangeInfo() {\n final int caretPosition = myView.getCaretPosition();\n\n for (final RangeInfo range : myRangeInfos) {\n if (range.isWithin(caretPosition)) {\n return range;\n }\n if (range.getFrom() > caretPosition) {\n return range; // Ranges are sorted, so we are on the next range. Take it, if caret is not within range\n }\n }\n\n return myRangeInfos.last();\n }", "String getBeginRange();", "CollectionRange createCollectionRange();", "public void setMargin(int margin) {\n mMarginPx = margin;\n }", "public double getMinRange() {\n return minRange;\n }", "protected int[] getDefaultCmargins() {\n\t\treturn new int[] { 3, 3, 3, 3 };\n\t}", "public Range deceasedRange() {\n return getObject(Range.class, FhirPropertyNames.PROPERTY_DECEASED_RANGE);\n }", "public void testFindRangeBounds() {\n XYBlockRenderer renderer = new XYBlockRenderer();\n XYSeriesCollection dataset = new XYSeriesCollection();\n XYSeries series = new XYSeries(\"S1\");\n series.add(1.0, null);\n dataset.addSeries(series);\n Range r = renderer.findRangeBounds(dataset);\n }", "double getHeaderMargin();", "public Object getRangeValue(Map attrBundle, Integer rangeAttribute) {\n\t/* get the default value for this rangeAttribute */\n\tObject defaultVal = this.getDefaultValue(rangeAttribute);\n\tif ( useDefaultsOnly || (attrBundle == null)\n\t || rangeAttribute == null) {\n\t return defaultVal;\n\t}\n\n\t/* extract name of the domain attribute controlling this\n\t rangeAttribute */\n\tObject attrKey = rangeToDomainName.get(rangeAttribute);\n\tif (attrKey == null) {return defaultVal;}\n\n\t/* get the domain attribute value from the supplied Map */\n\tObject attr = attrBundle.get(attrKey);\n\tif (attr == null) {return defaultVal;}\n\n\t/* get the object that maps domain values to range values for this\n\t rangeAttribute */\n\tValueMapper mapper =\n\t (ValueMapper)rangeToValueMapper.get(rangeAttribute);\n\tif (mapper == null) {return defaultVal;}\n\n\t/* get the range value appropriate to this domain value */\n\tObject mVal = mapper.getRangeValue(attr);\n\tif (mVal == null) {return defaultVal;} else {return mVal;}\n }", "private static double distanceRange(Range r1, Range r2) {\n if (r1 == null || r2 == null) {\n return 0D;\n }\n int a =\n Math.max(\n Math.abs(r1.getStartLine() - r2.getStartLine()),\n Math.abs(r1.getEndLine() - r2.getEndLine()));\n int b = myMax(r1.getStartLine(), r1.getEndLine(), r2.getStartLine(), r2.getEndLine());\n return formatDouble(1.0 - (double) a / b);\n }", "public int getMinRange() {\r\n return fMinRange;\r\n }", "protected abstract R getRange(E entry);", "public String getRange() {\n return this.range;\n }", "private List<Integer> getClosestRange(List<Integer> ranges, double predictionAmount) {\n List<Integer> bestRange = new ArrayList<>();\n double bestRangeDistance = Double.MAX_VALUE;\n for (int i = 0; i < ranges.size(); i += 2) {\n double rangeDistance = Math.abs(predictionAmount - getRangeCenter(ranges.get(i), ranges.get(i + 1)));\n if (rangeDistance < bestRangeDistance) {\n bestRangeDistance = rangeDistance;\n bestRange.clear();\n bestRange.add(ranges.get(i));\n bestRange.add(ranges.get(i + 1));\n }\n }\n return bestRange;\n }", "void calculateRange() {\n //TODO: See Rules\n }", "public Range getXRange() {\r\n\t\treturn xRange;\r\n\t}", "private Query getIntRange(final String fieldName, String[] range) {\n int lower = Integer.parseInt(range[0]);\n int upper = Integer.parseInt(range[1]);\n return IntPoint.newRangeQuery(fieldName, lower, upper);\n }", "public double getRange(){\n\n double range = fuelRemaining * fuelEconomy;\n return range;\n }", "protected final float getInsetSpan(int axis) {\n// assert ViewUtilities.isAxisValid(axis);\n\n ViewInsets insets = getInsets();\n return (insets != null)\n ? ((axis == X_AXIS) ? insets.getLeftRight() : insets.getTopBottom())\n : 0;\n }", "public Long getPosition(long offset) {\n if (segmentSearchIndex >= getRangesAsList().size() || offset < accumulatedOffset) {\n resetOffsetCache();\n }\n offset -= accumulatedOffset;\n while (segmentSearchIndex < getRangesAsList().size() && offset >= getRangesAsList().get(segmentSearchIndex).size()) {\n offset -= getRangesAsList().get(segmentSearchIndex).size();\n accumulatedOffset += getRangesAsList().get(segmentSearchIndex).size();\n segmentSearchIndex++;\n }\n if (segmentSearchIndex < getRangesAsList().size()) {\n // range found at index\n return getRangesAsList().get(segmentSearchIndex).getMin() + offset;\n } else {\n return getRangesAsList().get(getRangesAsList().size() - 1).getMax();\n }\n }", "java.lang.String getDestRange();", "public abstract Pane getPane(PriceRange range);", "public static RangeInfo obtain(int type, float min, float max, float current) {\n/* 3057 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public float getMinimumSpan(int axis) {\n if (view != null) {\n return view.getMinimumSpan(axis);\n }\n return 10;\n }", "public double get(int min, int max) {\r\n\t\treturn chart[min][max];\r\n\t}", "public double getYRangeMin() {\n return yRangeMin;\n }", "public double[] getRange() \n{\n\treturn range;\n}", "protected static String expectedRangeString(Object minValue, boolean minInclusive, Object maxValue, boolean maxInclusive) {\n // A means for a return value\n String retVal;\n\n // Start with the proper symbol for the lower bound\n if (minInclusive) {\n retVal = \"[\";\n } else {\n retVal = \"(\";\n }\n\n // Add in the minimum and maximum values\n retVal += minValue + \" .. \" + maxValue;\n\n // End with the proper symbol for the upper bound\n if (maxInclusive) {\n retVal += \"]\";\n } else {\n retVal += \")\";\n }\n\n // Return the formatted string\n return retVal;\n }", "int range(){\n return fuelcap*mpg;\n }", "protected abstract D getUpper(R range);", "public Margin userGetMargin(String currency) throws ApiException {\n Object localVarPostBody = null;\n \n // create path and map variables\n String localVarPath = \"/user/margin\".replaceAll(\"\\\\{format\\\\}\",\"json\");\n\n // query params\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n localVarQueryParams.addAll(apiClient.parameterToPairs(\"\", \"currency\", currency));\n\n \n \n final String[] localVarAccepts = {\n \"application/json\", \"application/xml\", \"text/xml\", \"application/javascript\", \"text/javascript\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n\n final String[] localVarContentTypes = {\n \"application/json\", \"application/x-www-form-urlencoded\"\n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n\n String[] localVarAuthNames = new String[] { };\n\n GenericType<Margin> localVarReturnType = new GenericType<Margin>() {};\n return apiClient.invokeAPI(localVarPath, \"GET\", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);\n }", "@CheckReturnValue\n public R1Interval expanded(double margin) {\n if (isEmpty()) {\n return this;\n }\n return new R1Interval(lo - margin, hi + margin);\n }", "public float getMinimumSpan(int axis) {\n return getPreferredSpan(axis);\n }", "ValueRangeConstraint createValueRangeConstraint();", "public double[] getRange();", "Range controlLimits();", "public long getMarginAmount() {\n\t\treturn marginAmount;\n\t}", "public java.lang.String getRange() {\n\t\treturn _range;\n\t}", "public AreaDescriptor getBlockRange(String range)\n\t{\n\t\tif (modableRangeMap.containsKey(range))\n\t\t{\n\t\t\treturn modableRangeMap.get(range);\n\t\t}\n\n\t\treturn null;\n\t}", "public int getPictureMargin() {\n return pictureMargin;\n }", "int getBoundsX();", "private Range() {}", "public abstract double getRangeSize();", "DSpace getSpace();", "public Range ageRange() {\n return getObject(Range.class, FhirPropertyNames.PROPERTY_AGE_RANGE);\n }", "public AddressInfo getRange() {\r\n return range;\r\n }", "public void selectRange(String currentRange);", "int range() {\n\t\treturn mpg * fuelcap;\n\t}", "com.google.ads.googleads.v14.common.IncomeRangeInfo getIncomeRange();", "Get<K, C> withColumnRange(C startColumn, C endColumn);", "private Filter betweenFilter(String start, Object minValue, Object maxValue) {\n return FF.between(FF.property(start), FF.literal(minValue), FF.literal(maxValue));\n }", "public static ZlExRangeSpec zslParseLexRange(Object min, Object max) {\n\t\treturn new ZlExRangeSpec(min, max);\n\t}", "static public double lim(double x,double min,double max) {\r\n\t\t if(x<min) return min;\r\n\t\t if(x>max) return max;\r\n\t\t return x;\r\n\t}", "@Override\r\n public float getMinimumSpan( int axis ){\r\n if( axis == View.Y_AXIS ){\r\n return super.getMinimumSpan(axis);\r\n } else{\r\n return DEFAULT_MINIMUM_SPAN;\r\n }\r\n }", "public int getHorizontalMargin() {\n return mLayoutManager.getHorizontalMargin();\n }", "private Query getDoubleRange(final String fieldName, String[] range) {\n double lower = Double.parseDouble(range[0]);\n double upper = Double.parseDouble(range[1]);\n return DoublePoint.newRangeQuery(fieldName, lower, upper);\n }", "public int getRangeHeight();", "org.apache.xmlbeans.XmlDecimal xgetWagerMinimum();", "private void setContainerMargins(int margin) {\n ((RelativeLayout.LayoutParams) mContainer.getLayoutParams()).setMargins(\n margin,\n margin + (mLegend.getMeasuredHeight() - mBackground.getBorder_width()) / 2,\n margin,\n margin + (mLegend.getMeasuredHeight() - mBackground.getBorder_width()) / 2);\n }", "public int nextLessThan(int range) {\n return (0x7fffffff & this.nextInt()) % range;\n }", "public double[] getRange(){\n\treturn RANGE;\n }", "public int getRangeStart() {\n return currentViewableRange.getFrom();\n }", "public void getRange()\n\t{\n\t\tint start = randInt(0, 9);\n\t\tint end = randInt(0, 9);\t\t\n\t\tint startNode = start<=end?start:end;\n\t\tint endNode = start>end?start:end;\n\t\tSystem.out.println(\"Start : \"+startNode+\" End : \"+endNode);\n\t}", "public RealRange getReferenceRange(RealRange referenceRange);" ]
[ "0.6434329", "0.5594571", "0.55887", "0.5377157", "0.5272033", "0.52608055", "0.5250833", "0.5242821", "0.5154895", "0.51227874", "0.50769585", "0.50621253", "0.5042097", "0.50410706", "0.5008196", "0.4985506", "0.49770474", "0.49696925", "0.49312088", "0.4912274", "0.49083766", "0.48936233", "0.4870214", "0.48542717", "0.48241717", "0.48150983", "0.48020428", "0.47847208", "0.47800282", "0.4752816", "0.47494143", "0.47416136", "0.47349963", "0.47335422", "0.47218284", "0.4697503", "0.4697115", "0.46926832", "0.46898797", "0.46854302", "0.468099", "0.467362", "0.46557346", "0.46331823", "0.46237886", "0.46230274", "0.46005088", "0.4592816", "0.45849365", "0.45820904", "0.45776558", "0.45347884", "0.453009", "0.4526556", "0.45234197", "0.4516766", "0.45149276", "0.451436", "0.45029947", "0.44634396", "0.44435623", "0.4435807", "0.4435744", "0.44291377", "0.44269735", "0.44247085", "0.4415892", "0.44137383", "0.4410139", "0.4404452", "0.44043437", "0.43995643", "0.43969676", "0.43960482", "0.4390666", "0.43834057", "0.43828407", "0.43809998", "0.43780816", "0.43745717", "0.43721473", "0.4370066", "0.43688485", "0.43535015", "0.4350558", "0.43395376", "0.43302238", "0.43212104", "0.4320105", "0.4319633", "0.43115395", "0.43096933", "0.4306745", "0.4306262", "0.43047488", "0.42984208", "0.42838708", "0.42797878", "0.42786056", "0.42760926" ]
0.83669204
0
Replaces feet with inches in the description
private String convertFeetToInches(String description) { String regex = "(\\d+) to (\\d+) feet|up to (\\d+) (feet|foot)"; Pattern pattern = Pattern.compile(regex); Matcher matcher = pattern.matcher(description); if (matcher.find()) { if (matcher.group(1) != null) { int lower = Integer.parseInt(matcher.group(1)) * 12; int upper = Integer.parseInt(matcher.group(2)) * 12; return description.replace(matcher.group(0), lower + " to " + upper + " inches"); } int upper = Integer.parseInt(matcher.group(3)) * 12; return description.replace(matcher.group(0), "up to " + upper + " inches"); } return description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getHeightInFeetAndInches() {\n int foot = getHeight() / INCHES_PER_FOOT;\n int inches = getHeight() % INCHES_PER_FOOT;\n String result;\n if (inches == 0)\n result = String.format(\"%d feet\", foot);\n else if (inches == 1)\n result = String.format(\"%d feet %d inch\", foot, inches);\n else\n result = String.format(\"%d feet %d inches\", foot, inches);\n return result;\n }", "public static int lengthInInches(int feet, int inches){\n return inches = (12*feet)+inches;\n }", "public void setHeight(int feet, int inches) {\n setHeight((feet * INCHES_PER_FOOT) + inches);\n }", "private int toFeet(int inches) {\n return (int) Math.round(inches / 12.0);\n }", "public void setHeight(int inches) {\n if (inches >= 24 && inches <= 84)\n this.height = inches;\n }", "public void setWidthInch(float inches){\n\t\tthis.setWidth(inches);\n\t}", "Inch createInch();", "@Override\r\n\t\t\tprotected String makeEyeAltitudeDescription(double metersAltitude){\r\n\t\t\t\t//System.out.println(\"metersAltitude: \"+ metersAltitude);\r\n\t\t\t\tsetCurrentAltitude(metersAltitude);\r\n\t\t\t\treturn super.makeEyeAltitudeDescription(metersAltitude);\r\n\t\t\t}", "public static final float pointsToInches(float value) {\n\t return value / 72f;\n\t}", "public static double convertToFt(int in)\r\n {\n\r\n final int INCHES_PER_FOOT = 12;\r\n\r\n double feet = in / (double)INCHES_PER_FOOT;\r\n\r\n return feet;\r\n }", "@Override\n public void refreshContent(Entry e, Highlight highlight) {\n int wei_unit = Integer.valueOf(Prefs.getString(\"weight_unit\", \"0\"));\n int len_unit = Integer.valueOf(Prefs.getString(\"height_unit\", \"2\"));\n String und = \" Kg\";\n String und2 = \" Cm\";\n float w = highlight.getY();\n float h = highlight.getX();\n\n if(wei_unit == Units.POUND) {\n w = Units.kg_to_pnds(highlight.getY());\n und = \" Lb\";\n }\n if(len_unit == Units.INCH){\n h = Units.cm_to_inches(highlight.getX());\n und2 = \" In\";\n }\n tvContent.setText(getString(R.string.weight) +\n String.format(Locale.getDefault(), \"%.1f\", w) + und); // set the entry-value as the display text\n\n age.setText(getString(R.string.height) +\n String.format(Locale.getDefault(), \"%.1f\", h) + und2);\n\n }", "public void updateFarhenheight(){\n tempInF = ( (tempInC / 5.0 ) * 9.0 ) + 32;\n }", "private String getUnits(Unit units, int value) {\n if (units == Unit.FEET) {\n if (value == 1) return \" foot\";\n return \" feet\";\n }\n if (value == 1) return \" inch\";\n return \" inches\";\n }", "public void getSquareFeet(){\n System.out.println(\"Enter the number square feet to paint: \");\n this.squareFeet = INPUT.nextDouble();\n }", "@Override\n public void refreshContent(Entry e, Highlight highlight) {\n int len_unit = Integer.valueOf(Prefs.getString(\"height_unit\", \"2\"));\n String und2 = \" cm\";\n float h = highlight.getY();\n if(len_unit == Units.INCH){\n h = Units.cm_to_inches(highlight.getY());\n und2 = \" in\";\n }\n tvContent.setText(getString(R.string.perimeter) +\n String.format(Locale.getDefault(), \"%.1f\", h) +und2); // set the entry-value as the display text\n Calendar calendar = Calendar.getInstance();\n calendar.add(Calendar.DATE, (int) highlight.getX());\n Date now = new Date();\n Interval interval = new Interval(now.getTime(), calendar.getTime().getTime());\n Period p = interval.toPeriod(PeriodType.yearMonthDay());\n age.setText(getString(R.string.age) + p.getYears() + getString(R.string.years)\n + p.getMonths() + getString(R.string.months) + p.getDays() + getString(R.string.days));\n }", "public void setJine(float f) {\n\n }", "public static double feetToMeters(double foot){\r\n\t\t\r\n\t\tdouble meter = 0.305 * foot;\r\n\t\t\r\n\t\treturn meter;\r\n\t}", "public static final float millimetersToInches(float value) {\n\t return value / 25.4f;\n\t}", "public static double inchesToMillimeters(double inches) {\n return inches * 25.4;\n }", "public static final float inchesToPoints(float value) {\n\t return value * 72f;\n\t}", "protected static float toInches(int type, float value) {\n \t\tswitch (type) {\n \t\tcase CSSPrimitiveValue.CSS_CM:\n \t\t\treturn (value / 2.54f);\n \t\tcase CSSPrimitiveValue.CSS_MM:\n \t\t\treturn (value / 25.4f);\n \t\tcase CSSPrimitiveValue.CSS_IN:\n \t\t\treturn value;\n \t\tcase CSSPrimitiveValue.CSS_PT:\n \t\t\treturn (value / 72);\n \t\tcase CSSPrimitiveValue.CSS_PC:\n \t\t\treturn (value / 6);\n \t\tdefault:\n \t\t\tthrow new DOMException(DOMException.INVALID_ACCESS_ERR, \"\");\n \t\t}\n \t}", "public static void main(String[] args) {\n\t\tfloat cm = 12.5f;\r\n\t\tfloat inch = 0.3937f * cm;\r\n\t\tSystem.out.printf(\"a. %.2f cm = %.2f inch\\n\", cm, inch);\r\n\r\n\t\t// b. inch to cm\r\n\t\tinch = 4.92f;\r\n\t\tcm = inch / 0.3937f;\r\n\t\tSystem.out.printf(\"b. %.2f inch = %.2f cm\\n\", inch, cm);\r\n\r\n\t\t// c. feet to meter\r\n\t\tfloat feet = 4.92f;\r\n\t\tfloat meter = feet / 3.2808f;\r\n\t\tSystem.out.printf(\"c. %.2f feet = %.2f meter\\n\", feet, meter);\r\n\r\n\t\t// d. meter to feet\r\n\t\tmeter = 1.50f;\r\n\t\tfeet = meter * 3.2808f;\r\n\t\tSystem.out.printf(\"d. %.2f meter = %.2f feet\\n\", meter, feet);\r\n\r\n\t\t// e. pound to kg\r\n\t\tfloat lb = 158.73f;\r\n\t\tfloat kg = lb / 2.2046f;\r\n\t\tSystem.out.printf(\"e. %.2f lb = %.2f kg\\n\", lb, kg);\r\n\r\n\t\t// f. kg to pound\r\n\t\tkg = 72.00f;\r\n\t\tlb = kg * 2.2046f;\r\n\t\tSystem.out.printf(\"f. %.2f kg = %.2f lb\\n\", kg, lb);\r\n\r\n\t\t// g. km to mile\r\n\t\tfloat km = 42.35f;\r\n\t\tfloat mile = km * 0.62137f;\r\n\t\tSystem.out.printf(\"g. %.2f km = %.2f mile\\n\", km, mile);\r\n\r\n\t\t// h. mile to km\r\n\t\tmile = 26.32f;\r\n\t\tkm = mile / 0.62137f;\r\n\t\tSystem.out.printf(\"h. %.2f mile = %.2f km\\n\", mile, km);\r\n\r\n\t\t// i. km/h to mile/h\r\n\t\tkm = 42.35f;\r\n\t\tmile = km * 0.62137f;\r\n\t\tSystem.out.printf(\"i. %.2f km/h = %.2f mile/h\\n\", km, mile);\r\n\r\n\t\t// j. mile/h to km/h\r\n\t\tmile = 26.32f;\r\n\t\tkm = mile / 0.62137f;\r\n\t\tSystem.out.printf(\"j. %.2f mile/h = %.2f km/h\\n\", mile, km);\r\n\t}", "@NonNull\n public Integer getSpacingInInches() {\n return spacingInInches;\n }", "public static double millimetersToInches(double millimeters) {\n return millimeters / 25.4;\n }", "@Override\n public void refreshContent(Entry e, Highlight highlight) {\n int len_unit = Integer.valueOf(Prefs.getString(\"height_unit\", \"2\"));\n String und2 = \" cm\";\n float h = highlight.getY();\n\n if(len_unit == Units.INCH){\n h = Units.cm_to_inches(highlight.getY());\n und2 = \" in\";\n }\n tvContent.setText(getString(R.string.height) +\n String.format(Locale.getDefault(), \"%.1f\", h)+und2); // set the entry-value as the display text\n Calendar calendar = Calendar.getInstance();\n calendar.add(Calendar.DATE, (int) highlight.getX());\n Date now = new Date();\n Interval interval = new Interval(now.getTime(), calendar.getTime().getTime());\n Period p = interval.toPeriod(PeriodType.yearMonthDay());\n age.setText(getString(R.string.age) + p.getYears() + getString(R.string.years)\n + p.getMonths() + getString(R.string.months) + p.getDays() + getString(R.string.days));\n }", "public void getFootPrint(){\n\t\tcarbonFootPrint = ((milesDriven/FuelEfficency)*(19.36/(carbondioxide/gallons)))/2204.6;\n\t}", "public static double FeetToCentimeter(double f){\n return f*929;\n }", "public static void main(String[] args) {\n\n double meters = convertInchesToMeters(1000.0);\n DecimalFormat df = new DecimalFormat(\"#.##\");\n\n System.out.println(\"1000.0 inches is \"+df.format(meters));\n\n }", "String describe() {\n switch (this) {\n case NORTH_4M:\n return \"north\";\n case NORTH_16M:\n return \"north_16m\";\n case SOUTH_4M:\n return \"south\";\n case SOUTH_16M:\n return \"south_16m\";\n case WILTSHIRE_4M:\n return \"wiltshire\";\n case WILTSHIRE_16M:\n return \"wiltshire_16m\";\n }\n return \"?\";\n }", "@Override\n public String getFormattedValue(float value, Entry entry, int dataSetIndex, ViewPortHandler viewPortHandler) {\n return ((int) value) + \"h\" + ((int) (value - (int) value) * 60) + \"m\";\n }", "protected void updateAltitude() {\n Altitude droneAltitude = this.drone.getAttribute(AttributeType.ALTITUDE);\n\n\n\n alt.setText(String.format(\"%3.1f\", droneAltitude.getAltitude()) + \"m\");\n // altitudeTextView.setText(String.format(\"%3.1f\", droneAltitude.getAltitude()) + \"m\");\n }", "public static final float inchesToMillimeters(float value) {\n\t return value * 25.4f;\n\t}", "private void moveXFeet(int feet) {\n\t}", "public void updateFuelUsed(double fuel) {\r\n\t\tfuelUsed.setText(\"Fuel Used (L): \" + BigDecimal.valueOf(fuel).setScale(2, RoundingMode.HALF_UP));\r\n\t\t\r\n\t}", "public static Vector2 getInchZero() {\n float zeroInInchesX = (REAL_ZERO.x * CALIBRATED_INCH_WIDTH) / Overlay.fieldManager.getPixelWidth();\n float zeroInInchesY = (REAL_ZERO.y * CALIBRATED_INCH_HEIGHT) / Overlay.fieldManager.getPixelHeight();\n\n return new Vector2(zeroInInchesX, zeroInInchesY);\n }", "public double getEmphasis();", "private void displayEstimateAndMileage(double fare, double miles){\n DecimalFormat moneyFormat = new DecimalFormat(\"#.##\");\n\n Utils.debugLogging(getApplicationContext(), \"About to display fare estimate\");\n //Toast.makeText(getApplicationContext(),\n //passengers + \" passengers: $\" + fare, Toast.LENGTH_SHORT).show();\n\n //destinationMarker.setTitle(\"Estimated Fare: $\" + fare);\n Bitmap title = new IconGenerator(this).makeIcon(\"Estimated Fare: $\" + moneyFormat.format(fare)\n + \"\\n\" + moneyFormat.format(miles) + \" miles\");\n destinationMarker.setIcon(BitmapDescriptorFactory.fromBitmap(title));\n\n if (ride != null) {\n ride.setEstimateFare(fare);\n }\n }", "public static void main(String[] args) {\n\n\n System.out.println(\"Please input a value for inch:\");\n Scanner scanner = new Scanner(System.in);\n int inchValue = scanner.nextInt();\n double meterValue = 0.0254 * inchValue;\n System.out.println((double)inchValue + \" inch is \" + meterValue + \" meters\");\n }", "private static void displayConversion(double celsius, double fahrenheit) {\n String celsiusOutput = String.format(\"%.2f\", celsius);\n String fahrenheitOutput = String.format(\"%.2f\", fahrenheit);\n System.out.println(\"\\n\" + celsiusOutput + \" degrees Celsius is equal to \" + fahrenheitOutput + \" degrees Fahrenheit.\");\n }", "public static double feetPerSecondToCentiMetresPerSecond(double num) { return (num*30.48); }", "public String getRange() {\n if (predictionAmount < 0.1)\n return \"little to none\";\n\n String description = convertFeetToInches(alert.getDescription());\n\n // Get the bounds\n List<Integer> range = getClosestRange(getRanges(description), predictionAmount);\n double margin = getMargin(range);\n int lowerBound = (int) Math.round(predictionAmount - margin);\n int upperBound = (int) Math.round(predictionAmount + margin);\n\n // Determine the unit\n Unit units = Unit.INCHES;\n if (shouldUseFeet(lowerBound, upperBound)) {\n // Convert inches to feet\n lowerBound = toFeet(lowerBound);\n upperBound = toFeet(upperBound);\n units = Unit.FEET;\n }\n\n return getFinalText(units, lowerBound, upperBound);\n }", "@Override\n\tpublic String showPrice() {\n\t\treturn \"煎饼的价格是5元 \";\n\t}", "public static double inchesToCms(double inch)\n {\n return inch * INCH_PER_CM;\n }", "private static double feetToTicks(double feet) {\n return feet / Config.DRIVE_ENCODER_DPP;\n }", "private String convertFahrenheitToCelsius(double f) {\n double c = (f - 32.0) * (5.0 / 9.0);\n DecimalFormat numberFormat = new DecimalFormat(\"#.0\");\n return numberFormat.format(c);\n }", "public static Double getFeet(Double distanceInFeet) {\n\t\treturn distanceInFeet/5280/ MILE_PER_DEGREE;\n\t}", "public void setHeight(int newValue)\r\n {\r\n seatHeight = newValue;\r\n }", "@Override\n public void updateDescription() {\n if(this.amount == 1) {\n this.description = DESCRIPTIONS[0] + DESCRIPTIONS[1];\n }\n else {\n this.description = DESCRIPTIONS[0] + DiminishingStacks + DESCRIPTIONS[2];\n }\n\n }", "public static double cmToInches(double cms)\n {\n return cms * CM_PER_INCH;\n }", "public static double MeterToFeet(double m){\n return m*10.76;\n }", "public static double inchToMeter(final double inch) {\n return inch * METERS_PER_INCH;\n }", "public void setSpacingInInches(@NonNull Integer spacingInInches) {\n this.spacingInInches = spacingInInches;\n }", "public final StringBuffer editDimension(StringBuffer buf) {\n\t\tint i, dim;\n\t\tfor (i=1; i<MKSAdim.length; i++) {\n\t\t\tif (MKSAdim[i] == Character.MIN_VALUE) continue;\n\t\t\tdim = (int)((mksa>>((7-i)*8))&0xff) - _e0;\n\t\t\tif (dim == 0) continue;\n\t\t\tbuf.append(MKSAdim[i]);\n\t\t\tif (dim>0) buf.append('+');\n\t\t\tbuf.append(dim);\n\t\t}\n\t\treturn(buf);\n\t}", "public E16_OverloadJavaDoc(int i) {\n System.out.println(\"Creating new E16_OverloadJavaDoc that is \"\n + i + \" feet tall\");\n height = i;\n }", "@SuppressWarnings(\"resource\")\r\n\tpublic static void main(String[] args) {\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Please input an amount in Inches to convert to Meters: \");\r\n\t\tdouble inch = input.nextDouble();\r\n\t\tdouble meters = inch * 0.0254;\r\n\t\tSystem.out.println(inch+\" inch is \"+meters+\" in Meters.\");\r\n\t\t\r\n\t}", "@Override\r\n public String receita() {\n return \"Misturar os ingredientes; bater no liquidificador; colocar na máquina de waffle por 10m\";\r\n }", "void FahtoCel() {\n\t\tSystem.out.println(\"Your converted celcius degrees is: \" + fahrenheit + \" degrees celcius.\");\t// prints out converted degrees, with fahrenheit = conversion.fahrenheit\r\n\t}", "public void updateChange(View v){\n if(tempUnit=='F')\n changeToTemp.setText(Double.toString(\n (double)Math.round(totalChangeFarenheit*10)/10)\n );\n // Display temperature in Celsius\n else\n changeToTemp.setText(Double.toString(\n (double)Math.round((totalChangeFarenheit-32)*5/9*10)/10)\n );\n }", "public String toDisplay(){\n\t\treturn String.format(\"%s | %c | %.2f | %.2f\",name ,gender ,taxableIncome ,taxAmount);\n\t}", "public void scaleRecipe(double newSize, String newUnits) {\n \t\tdouble currentSize = getPostBoilVol(getVolUnits());\n \t\tcurrentSize = Quantity.convertUnit(getVolUnits(), newUnits, currentSize);\n \t\tdouble conversionFactor = newSize / currentSize;\n \n \t\tif (conversionFactor != 1) {\n \t\t\tsetPostBoil(newSize);\n \t\t\tsetVolUnits(newUnits);\n \n \t\t\t// TODO: figure out a way to make sure old IBU = new IBU\n \t\t\tfor (int i = 0; i < getHopsListSize(); i++) {\n \t\t\t\tHop h = getHop(i);\n \t\t\t\th.setAmount(h.getAmountAs(h.getUnits()) * conversionFactor);\n \t\t\t}\n \t\t\tfor (int i = 0; i < getMaltListSize(); i++) {\n \t\t\t\tFermentable f = getFermentable(i);\n \t\t\t\tf.setAmount(f.getAmountAs(f.getUnits()) * conversionFactor);\n \t\t\t}\n \t\t\tcalcHopsTotals();\n \t\t\tcalcMaltTotals();\n \n \t\t}\n \t}", "@Override\n public void edit(MethodCall m) throws CannotCompileException {\n if (\"draw\".equals(m.getMethodName())) {\n m.replace(\n \"x = x / ((Float)\" + basemod.patches.com.megacrit.cardcrawl.cards.AbstractCard.ShrinkLongDescription.Scale.class.getName() + \".descriptionScale.get(card)).floatValue();\" +\n \"y = (y / ((Float)\" + ShrinkLongDescription.Scale.class.getName() + \".descriptionScale.get(card)).floatValue()) - 28;\" +\n //Offset is added last as it just needs to have all the scales applied normally\n \"$proceed($1, \" +\n \"current_x + x + region.offsetX, \" +\n \"current_y + y + region.offsetY, \" +\n \"-x - region.offsetX, -y - region.offsetY, \" + //Use x and y as offset, meaning the scaling point is the center of the card\n \"$6, $7, \" + //region width and height\n \"$8 * ((Float)\" + ShrinkLongDescription.Scale.class.getName() + \".descriptionScale.get(card)).floatValue(), \" +\n \"$9 * ((Float)\" + ShrinkLongDescription.Scale.class.getName() + \".descriptionScale.get(card)).floatValue(), \" +\n \"$10, \" + //Angle is fixed at just 0\n \"$11, $12, $13, $14, $15, $16);\" //region info\n );\n }\n }", "public void displayAllInfo(){\nSystem.out.println(\"Dimensions of the room - length in feet : \" + room.getLengthInFeet() + \" width in feet :\" + room.getWidthInFeet());\nSystem.out.println(\"Price per square foot :\" + pricePerSquareFoot);\nSystem.out.println(\"Total Cost :\" + calculateTotalCost());\n}", "private String convertCelsiusToFahrenheit(double c) {\n double f = (c * (9.0 / 5.0)) + 32.0;\n DecimalFormat numberFormat = new DecimalFormat(\"#.0\");\n return numberFormat.format(f);\n }", "private String defaultFormat(double d) {\n\t\tString str = \"\" + d;\n\t\tint availableSpace = getSize().width - 2 * PIXEL_MARGIN;\n\t\tFontMetrics fm = getFontMetrics(getFont());\n\t\tif (fm.stringWidth(str) <= availableSpace) return str;\n\t\tint eIndex = str.indexOf(\"E\");\n\t\tString suffix = \"\";\n\t\tif (eIndex != -1) {\n\t\t\tsuffix = str.substring(eIndex);\n\t\t\tstr = str.substring(0, eIndex);\n\t\t\ttry {\n\t\t\t\td = parser.parse(str).doubleValue();\n\t\t\t} catch (ParseException ex) {\n\t\t\t\tthrow new ErrorException(ex);\n\t\t\t}\n\t\t}\n\t\tNumberFormat standard = NumberFormat.getNumberInstance(Locale.US);\n\t\tstandard.setGroupingUsed(false);\n\t\tString head = str.substring(0, str.indexOf('.') + 1);\n\t\tint fractionSpace = availableSpace - fm.stringWidth(head + suffix);\n\t\tif (fractionSpace > 0) {\n\t\t\tint fractionDigits = fractionSpace / fm.stringWidth(\"0\");\n\t\t\tstandard.setMaximumFractionDigits(fractionDigits);\n\t\t\treturn standard.format(d) + suffix;\n\t\t}\n\t\tstr = \"\";\n\t\twhile (fm.stringWidth(str + \"#\") <= availableSpace) {\n\t\t\tstr += \"#\";\n\t\t}\n\t\treturn str;\n\t}", "public void setWheelDiameterText() {\n ThunderBoardPreferences preferences = prefsManager.getPreferences();\n\n float wheelRadius = (preferences.wheelRadius == 0)\n ? ThunderBoardPreferences.DEFAULT_WHEEL_RADIUS : preferences.wheelRadius;\n\n String outString = \"\";\n if (preferences.measureUnitType == ThunderBoardPreferences.UNIT_METRIC) {\n outString = String.format(getString(R.string.motion_diameter_metric), wheelRadius * 200.0f);\n } else {\n outString = String.format(getString(R.string.motion_diameter_us), wheelRadius * 2.0f * 39.37f);\n }\n wheelDiameterText.setText(outString);\n }", "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 }", "@Override\n public String getFormattedValue(float value, Entry entry, int dataSetIndex, ViewPortHandler viewPortHandler) {\n return mFormat.format((int)value) + \" kcal\"; // e.g. append a dollar-sign\n }", "public double getHeightInInches()\n {\n return height;\n }", "void info() {\n System.out.println(\"E16_OverloadJavaDoc is \" + height + \" feet tall\");\n }", "@Override\n public String getPreviewString(Object value) {\n assert value instanceof Font;\n Font fontVal = (Font) value;\n if (isIndeterminate()) {\n return \"-\"; //NOI18N\n } else {\n String size = EditorUtils.valAsStr(fontVal.getSize());\n return fontVal.getFamily() + \" \" + size + \"px\" //NOI18N\n + (!fontVal.getName().equals(fontVal.getFamily()) && !\"Regular\".equals(fontVal.getStyle()) ? //NOI18N\n \" (\" + fontVal.getStyle() + \")\" : \"\"); //NOI18N\n }\n }", "public void setDisplayUnit(Unit newUnit) {\n super.setDisplayUnit(newUnit);\n if (distanceUnitLabels != null) {\n for (JLabel label : distanceUnitLabels) {\n label.setText(\" (\"+newUnit+\") \");\n }\n }\n }", "private void displaySatistics()\r\n {\r\n DecimalFormat df = new DecimalFormat(\"#.##\");\r\n df.setRoundingMode(RoundingMode.FLOOR);\r\n double goodVal = ((double)this.good / (double)this.attemps) * 100;\r\n double reachVal = ((double)this.reachable / (double)this.attemps) * 100;\r\n double unreachVal = ((double)this.unreachable / (double)this.attemps) * 100;\r\n \r\n this.goodLabel.setText(df.format(goodVal)+ \" %\");\r\n this.reachableLabel.setText(df.format(reachVal) + \" %\");\r\n this.unreachableLabel.setText(df.format(unreachVal) + \" %\");\r\n \r\n }", "@Override\n\tpublic void modifyView(TipCalcModel tipCalcModel) {\n\t\t\tDecimalFormat dFormat=new DecimalFormat(\"#.##\");\n\t\t\tTipCalcView.getInstance().totalTip.setText(String.valueOf(dFormat.format(tipCalcModel.getTotalTip())));\n\t\t\tTipCalcView.getInstance().totalBill.setText(String.valueOf(dFormat.format(tipCalcModel.getTotalBill())));\n\t\t\t\n\t\t\n\t\t\n\t}", "public void setHeight(int newValue) {\n seatHeight = newValue;\n }", "include<stdio.h>\nint main()\n{\n int celcius;\n float faren;\n scanf(\"%d\",&celcius);\n faren=(celcius*1.8)+32;\n printf(\"%.2f\",faren);\n \n}", "@Override\n public void updateDescription() {\n if (amount == 1) {\n description = DESCRIPTIONS[0] + amount + DESCRIPTIONS[1];\n } else {\n description = DESCRIPTIONS[0] + amount + DESCRIPTIONS[2];\n }\n }", "public static void main(String[] args) {\n \n \n Scanner scan = new Scanner(System.in);\n \n System.out.println(\" Enter a number of inches pls!\");\n int num1 = scan.nextInt();\n \n System.out.println(num1 + \"in is \" + (num1 / 12) + \"ft converted!\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }", "public static void main(String[] args) {\n System.out.print(\"Enter a degree in C to be converted to F: \");\n Scanner input = new Scanner(System.in);\n double celcius = input.nextDouble();\n double fahrenheit = (celcius * (9.0 / 5)) + 32;\n System.out.println(celcius + \" C is \" + fahrenheit + \" F\");\n }", "public float convertUnitToEm(float ptSize, int units) {\n return (units * ptSize) / upem;\n }", "public Quill copySize(float newSize) { Quill quill = new Quill(this); quill.fontMgr.size = newSize ; quill.setFont(); return quill ; }", "public void setFontHeightInPoints(short height)\n {\n font.setFontHeight(( short ) (height * 20));\n }", "public void adjust_FineFuelMoisture(){\r\n\t// If FFM is one or less we set it to one\t\t\r\n\tif ((FFM-1)<=0){\r\n\t\tFFM=1;\r\n\t}else{\r\n\t\t//add 5 percent FFM for each Herb stage greater than one\r\n\t\tFFM=FFM+(iherb-1)*5;\r\n\t}\r\n}", "@Override\n public String getDescription() {\n return \"Mint currency\";\n }", "@Override\n public void refreshContent(Entry e, Highlight highlight) {\n int wei_unit = Integer.valueOf(Prefs.getString(\"weight_unit\", \"0\"));\n String und = \" Kg\";\n float w = highlight.getY();\n if(wei_unit == Units.POUND) {\n w = Units.kg_to_pnds(highlight.getY());\n und = \" Lb\";\n }\n tvContent.setText(getString(R.string.weight) +\n String.format(Locale.getDefault(), \"%.1f\", w) + und); // set the entry-value as the display text\n\n Calendar calendar = Calendar.getInstance();\n calendar.add(Calendar.DATE, (int) highlight.getX());\n Date now = new Date();\n Interval interval = new Interval(now.getTime(), calendar.getTime().getTime());\n Period p = interval.toPeriod();\n age.setText(getString(R.string.age) + p.getYears() + getString(R.string.years)\n + p.getMonths() + getString(R.string.months) + p.getDays() + getString(R.string.days));\n }", "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}", "private void convertInput(double input) {\n\n if (input != 0) {\n // Set standard value in meters based on selected unit\n switch (selectedUnit) {\n case \"km\":\n standard = input / 0.001;\n break;\n case \"m\":\n standard = input;\n break;\n case \"cm\":\n standard = input / 100;\n break;\n case \"mm\":\n standard = input / 1000;\n break;\n case \"μm\":\n standard = input / 1000000;\n break;\n case \"nm\":\n standard = input / 1000000000;\n break;\n case \"mi\":\n standard = input / 0.000621371;\n break;\n case \"yd\":\n standard = input / 1.09361;\n break;\n case \"ft\":\n standard = input / 3.28084;\n break;\n case \"in\":\n standard = input / 39.3701;\n break;\n default:\n standard = input;\n break;\n }\n //km\n kmTextView.setText(numberFormatter(standard * 0.001));\n //m\n mTextView.setText(numberFormatter(standard * 1));\n //cm\n cmTextView.setText(numberFormatter(standard * 100));\n //mm\n mmTextView.setText(numberFormatter(standard * 1000));\n //um\n umTextView.setText(numberFormatter(standard * 1000000));\n //nm\n nmTextView.setText(numberFormatter(standard * 1000000000));\n //mi\n miTextView.setText(numberFormatter(standard * 0.000621371));\n //yd\n ydTextView.setText(numberFormatter(standard * 1.09361));\n //ft\n ftTextView.setText(numberFormatter(standard * 3.28084));\n //in\n inTextView.setText(numberFormatter(standard * 39.3701));\n } else {\n //km\n kmTextView.setText(\"\");\n //m\n mTextView.setText(\"\");\n //cm\n cmTextView.setText(\"\");\n //mm\n mmTextView.setText(\"\");\n //um\n umTextView.setText(\"\");\n //nm\n nmTextView.setText(\"\");\n //mi\n miTextView.setText(\"\");\n //yd\n ydTextView.setText(\"\");\n //ft\n ftTextView.setText(\"\");\n //in\n inTextView.setText(\"\");\n }\n }", "public void setHeight(int h){ heightRadius = h; }", "@Override\n public String toString()\n {\n return String.format(\"Bicycle:\\tMiles: %,.2f\\t\\temission factor: %,.2f\\tCarbon footprint: %,.2f pounds of carbon\", \n this.distance, this.emissionFactor, getCarbonFootprint());\n }", "@Override\n public void updateDescription() {\n if (amount == 1) {\n description = DESCRIPTIONS[0] + amount + DESCRIPTIONS[1];\n } else if (amount > 1) {\n description = DESCRIPTIONS[0] + amount + DESCRIPTIONS[2];\n }\n }", "@Override\n\tpublic void perimeter() {\n\t\tSystem.out.println(\"梯形的周长\"+getPerimeter());\n\t}", "@Override\n public void changeFontSize(int i) {\n lyricsTV.setTextSize((float) i);\n PreferencesManager pm = PreferencesManager.getInstance();\n pm.setFontSize(i);\n }", "private void drawDeckSize(Graphics2D g2)\n\t{\n\t\tFont fontyFont = new Font(\"IMPACT\", Font.BOLD, LARGE_FONT);\n\t\tg2.setFont(fontyFont);\n\t\tg2.setColor(Color.WHITE);\n\t\tString cardAmt = sizeOfDeck + \" card\";\n\t\tif (sizeOfDeck > 1)\n\t\t\tcardAmt += \"s in deck\";\n\t\telse\n\t\t\tcardAmt += \" in deck\";\n\t\tint curWidth = WIDTH_OF_SIZE_TEXT;\n\t\tif (sizeOfBurnDeck > 0)\n\t\t{\n\t\t\tcardAmt += \" ( \" + sizeOfBurnDeck + \" burned )\";\n\t\t\tcurWidth = WIDTH_OF_SIZE_TEXT_EXTENDED;\n\t\t}\n\t\tif (sizeOfDeck > 0)\n\t\t\tg2.drawString(cardAmt, frameWidth / 2 - curWidth / 2,\n\t\t\t\t\tDISTANCE_OF_SIZE_TEXT_FROM_TOP_OF_SCREEN);\n\t}", "private void createUpperStateEnergiesString() {\r\n\t\tDecimalFormat df1 = new DecimalFormat(\"0.00000000\");\r\n\t\tint firstJVal = upperEnergyValuesWithJ.entrySet().iterator().next().getKey();\r\n\t\tenergyVals = System.lineSeparator() + \"Upper State Energies\" + \" (First value has J=\" +\r\n\t\tfirstJVal + \")\" + System.lineSeparator();\r\n\t\t\r\n\t\tfor (Map.Entry<Integer, Double> linePrediction : upperEnergyValuesWithJ.entrySet()) {\r\n\t\t\t//rightPadding(String.valueOf(linePrediction.getKey()), 6)\r\n\t\t\tenergyVals += df1.format(linePrediction.getValue()) + \"\\n\";\r\n\t\t}\r\n\t}", "public int getFontSize();", "public void configureDigitalMeter()\n {\n\t\tsetFrameType(RectangularFrameType.RoundedSideThinRim);\n\t\tsetBackground(Color.black);\n\t\tsetCharacterType(DigitalCharacterType.Segment7Trapezoid);\n setCharacterCount(10);\n\t\tsetForeground(Color.WHITE);\n\t\tsetDimmedBrush(Color.black);\n\t\tsetCharacterOverflowAlignment(DigitalCharacterOverflowAlignment.Right);\n setCharacterPadding(1);\n setCharacterSpacing(1);\n\t\tsetItalic(false);\n }", "@Override\n public void updateDescription() {\n if(this.amount == 1) {\n this.description = DESCRIPTIONS[0];\n }\n else\n {\n this.description = DESCRIPTIONS[1] + this.amount + DESCRIPTIONS[2] + this.amount + DESCRIPTIONS[3];\n }\n\n }", "@Override\r\n\t\tpublic double getPrince()\r\n\t\t{\n\t\t\treturn 25.2;\r\n\t\t}", "public void setExampleDimension(float exampleDimension) {\n mTextSize = exampleDimension;\n invalidateTextPaintAndMeasurements();\n }", "public float getFontSize();", "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}" ]
[ "0.70003945", "0.6933727", "0.65881586", "0.6207089", "0.5660978", "0.5553302", "0.55185497", "0.55037874", "0.5497023", "0.548272", "0.54640883", "0.5358841", "0.5345225", "0.5338799", "0.53164876", "0.53034675", "0.5279399", "0.52404153", "0.5208439", "0.52023953", "0.5187817", "0.51577806", "0.5141077", "0.51233596", "0.51187265", "0.5110958", "0.5104304", "0.5090097", "0.5054379", "0.5033839", "0.5031676", "0.50173926", "0.5002995", "0.49943498", "0.4981826", "0.49645987", "0.4960173", "0.49506015", "0.4942584", "0.49287778", "0.49252534", "0.4917053", "0.49112326", "0.49008337", "0.4894052", "0.48755378", "0.48577994", "0.4854908", "0.48481375", "0.4845718", "0.48370785", "0.48167682", "0.4813612", "0.48123986", "0.48004675", "0.4799385", "0.4777353", "0.47701487", "0.4767809", "0.4753468", "0.4748757", "0.47419754", "0.47363085", "0.47342452", "0.47168753", "0.47142285", "0.47142074", "0.47125253", "0.47024134", "0.47004756", "0.47000378", "0.46965638", "0.4688264", "0.4687584", "0.4686898", "0.46857888", "0.46830988", "0.46763343", "0.46723837", "0.46584257", "0.46582735", "0.46579316", "0.46523023", "0.4645315", "0.46439216", "0.46316457", "0.46183217", "0.46158013", "0.4603799", "0.45990118", "0.4593695", "0.45894936", "0.4589262", "0.45785627", "0.45731947", "0.45725697", "0.45666787", "0.45656803", "0.45531243", "0.45473745" ]
0.77021074
0
Gets the closest range to the prediction amount
private List<Integer> getClosestRange(List<Integer> ranges, double predictionAmount) { List<Integer> bestRange = new ArrayList<>(); double bestRangeDistance = Double.MAX_VALUE; for (int i = 0; i < ranges.size(); i += 2) { double rangeDistance = Math.abs(predictionAmount - getRangeCenter(ranges.get(i), ranges.get(i + 1))); if (rangeDistance < bestRangeDistance) { bestRangeDistance = rangeDistance; bestRange.clear(); bestRange.add(ranges.get(i)); bestRange.add(ranges.get(i + 1)); } } return bestRange; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getRangeToBestTarget()\n\t{\n\t\treturn getRangeToTarget(currentBestTarget);\n\t}", "@NotNull\n private RangeInfo findNearestRangeInfo() {\n final int caretPosition = myView.getCaretPosition();\n\n for (final RangeInfo range : myRangeInfos) {\n if (range.isWithin(caretPosition)) {\n return range;\n }\n if (range.getFrom() > caretPosition) {\n return range; // Ranges are sorted, so we are on the next range. Take it, if caret is not within range\n }\n }\n\n return myRangeInfos.last();\n }", "public double getRange(){\n\n double range = fuelRemaining * fuelEconomy;\n return range;\n }", "double getLowerThreshold();", "protected abstract D getLower(R range);", "public int getLowerBound ();", "public double getMinRange() {\n return minRange;\n }", "public default double getTargetRange(Entity casterIn){ return RangeType.getRange(casterIn, this); }", "public String getRange() {\n if (predictionAmount < 0.1)\n return \"little to none\";\n\n String description = convertFeetToInches(alert.getDescription());\n\n // Get the bounds\n List<Integer> range = getClosestRange(getRanges(description), predictionAmount);\n double margin = getMargin(range);\n int lowerBound = (int) Math.round(predictionAmount - margin);\n int upperBound = (int) Math.round(predictionAmount + margin);\n\n // Determine the unit\n Unit units = Unit.INCHES;\n if (shouldUseFeet(lowerBound, upperBound)) {\n // Convert inches to feet\n lowerBound = toFeet(lowerBound);\n upperBound = toFeet(upperBound);\n units = Unit.FEET;\n }\n\n return getFinalText(units, lowerBound, upperBound);\n }", "public int getMinimumValue() {\n/* 276 */ return -this.s.getMaximumValue();\n/* */ }", "double getUpperThreshold();", "Double getMinimumValue();", "@Basic\n\t@Immutable\n\tpublic abstract double getRadiusLowerBound();", "java.math.BigDecimal getWagerMinimum();", "java.math.BigDecimal getSingleBetMinimum();", "public abstract HalfOpenIntRange approximateSpan();", "public abstract double[] getLowerBound();", "double getMin();", "double getMin();", "public static int closestNumber(int p, int high, int low) {\n\t\tif(p>Math.abs(high-p)) {\n\t\t\tp=high;\n\t\t}\n\t\telse {\n\t\t\tp=low;\n\t\t}\n\t\treturn p;\n\t}", "int range(){\n return fuelcap*mpg;\n }", "public int getOptimalNumNearest();", "@Override\n\tpublic double getTargetValueInCurrentBest() {\n\t\treturn 0;\n\t}", "private double findMinY() {\n\t\tif (pointList.size()==0) {\n\t\t\treturn 0;\n\t\t}\n\t\tdouble min = pointList.get(0).getY();\n\t\tfor(int i=0; i<pointList.size(); i++)\n\t\t\tif (min>pointList.get(i).getY())\n\t\t\t\tmin = pointList.get(i).getY();\n\t\treturn min;\n\t}", "java.math.BigDecimal getMultipleBetMinimum();", "private UnconstrainedBidElement getClosest(double demandWatt) {\n UnconstrainedBidElement best = null;\n double bestDistance = Double.MAX_VALUE;\n for (UnconstrainedBidElement e : elements) {\n double distance = Math.abs(demandWatt - e.demandWatt);\n if (best == null || distance < bestDistance) {\n best = e;\n bestDistance = distance;\n }\n }\n return best;\n }", "Execution getClosestDistance();", "public static double getTargetDistance(double value) {\n double distance;\n if (value < 0)\n distance = -1.0;\n\n if (value >= 0 && value < 150)\n distance = -1.0;\n else if (value >= 150 && value < 300)\n distance = 0.0;\n else\n distance = 1.0;\n\n return distance;\n }", "public double getXRangeMin() {\n return xRangeMin;\n }", "private Point findStartPoint(){\n Point min = points.get(0);\n for (int i = 1; i < points.size(); i++) {\n min = getMinValue(min, points.get(i));\n }\n return min;\n }", "org.apache.xmlbeans.XmlDecimal xgetSingleBetMinimum();", "public int getMinRange() {\r\n return fMinRange;\r\n }", "double getLeft(double min);", "private double bound(int iter, Solution next) {\n return Math.exp((-1.0 * (next.getValue() - bestSol.getValue())) / denominator(iter));\n }", "public Point getFurthermost(){\n\t\t\tdouble distance;\n\t\t\tdouble distanceMin = Double.MAX_VALUE;\n\t\t\tPoint centroid = centroid();\n\t\t\tPoint closest = new Point();\n\t\t\tfor(Point p : clusterPointsList){\n\t\t\t\tdistance = p.dist(centroid);\t\t\t\n\t\t\t\tif(distance < distanceMin){\n\t\t\t\t\tdistanceMin = distance;\n\t\t\t\t\tclosest = p;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn closest;\n\t\t}", "private double getLowerFitness(Individual[] individuals){\n double lower = Double.MAX_VALUE;\n for (int i = 0; i < individuals.length; ++i ){\n \tlower = Math.min(lower, individuals[i].getFitness());\n }\n return lower;\n }", "public Coordinates closestPointB() {\n return closestPointB;\n }", "float getLt();", "public double getYRangeMin() {\n return yRangeMin;\n }", "public int getLowerBound() {\r\n return lowerBound;\r\n }", "public float getTargetRange() {\n\t\treturn targetRange;\n\t}", "@Override\r\n\tpublic float getRange() {\r\n\t\tsp.fetchSample(sample, 0);\r\n\r\n\t\treturn sample[0];\r\n\t}", "public double getRange(){\n\t\treturn range;\n\t}", "public Coordinates closestPoint() {\n return closestPoint;\n }", "protected final double getMinDifference() {\r\n \r\n double difference = 0;\r\n \r\n for(int i = 0; i < this.D; i++) {\r\n difference += Math.pow(this.f.max(i)-this.f.min(i), 2)*0.001;\r\n }\r\n \r\n return difference;\r\n \r\n }", "private int getDistanceAsRange(double distance) {\n int div = (int) (distance * 1000 / slotDistanceRange);\n return (div * slotDistanceRange);\n }", "private int valueToPos( final double value )\n\t{\n\t\tfinal double dmin = range.getMinBound();\n\t\tfinal double dmax = range.getMaxBound();\n\t\treturn ( int ) Math.round( ( value - dmin ) * SLIDER_LENGTH / ( dmax - dmin ) );\n\t}", "public double minDifference()\n {\n double minD = 1000.0; // setting unreasonably high\n double testD = 0.0;\n \n for (int i=0; i < data.length -1; i++) // stopping 1 early because reading ahead\n {\n testD = Math.abs(data[i]-data[i+1]);\n if (testD < minD)\n {\n minD = testD;\n }\n }\n \n \n return minD;\n }", "public int best(){\n List<Integer> points = count();\n Integer max = 0;\n for (Integer p: points){\n if (p <= 21 && max < p){\n max = p;\n }\n }\n return max;\n }", "private static int predictDistance(Position source, Position target) {\n int x = source.getX() - target.getX();\n int y = source.getY() - target.getY();\n int c = (int)Math.ceil(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)));\n return c;\n }", "public Point getLowerPoint() {\n return lower;\n }", "private static double search(double min, double max, Function f) {\n\t\tdouble a = min;\n\t\tdouble c = max;\n\t\tdouble b = 0;\n\t\twhile (Math.abs(c - a) > MIN_DIFFERENCE) {\n\t\t\tb = (a + c) / 2;\n\t\t\tdouble fa = f.f(a);\n\t\t\tdouble fc = f.f(c);\n\t\t\t\n\t\t\tif (fa < fc) {\n\t\t\t\tc = b;\n\t\t\t} else {\n\t\t\t\ta = b;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn b;\n\t}", "public int lowerBound(final List<Integer> a, int target){\n int l = 0, h = a.size()-1;\n while(h - l > 3){\n int mid = (l+h)/2;\n if(a.get(mid) == target)\n h = mid;\n else if(a.get(mid) < target){\n l = mid + 1;\n }\n else if(a.get(mid) > target){\n h = mid - 1;\n }\n }\n for(int i=l; i<=h; ++i){\n if(a.get(i) == target)\n return i;\n }\n return -1;\n }", "public double getEstimate()\n {\n assert list.length > 0: \"The list cannot be empty\";\n int R = list[0];\n \n //count how many are smaller or equal to R\n double counter = 0;\n for (int i = 1; i < k; i++) {\n if (list[i]<R)\n counter++;\n }\n return -Math.pow(2, R - 1) * Math.log(counter / (k-1)); }", "double getRight(double max);", "public double getProfit() {\n\n\n double difference = maxRange * GAS_RATE;\n double sum = super.getProfit();\n\n return sum - difference;\n\n }", "abstract public RandomRange getPlunderRange(Unit attacker);", "@Override\n\tprotected double getLowerBound() {\n\t\treturn 0;\n\t}", "public Balloon acquireTarget() {\r\n\r\n\t\tBalloon closest = null;\r\n\t\tfloat closestDistance = 1000;\r\n\t\tif (balloons != null) {\r\n\t\t\tfor (Balloon balloons : balloons) {\r\n\t\t\t\tif (isInRange(balloons) && findDistance(balloons) < closestDistance && balloons.getHiddenHealth() > 0) {\r\n\t\t\t\t\tclosestDistance = findDistance(balloons);\r\n\t\t\t\t\tclosest = balloons;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (closest != null) {\r\n\t\t\t\ttargeted = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn closest;\r\n\r\n\t}", "public double getLow() {return low;}", "public static double closestPair(Point[] sortedX) {\n if (sortedX.length <= 1) {\n return Double.MAX_VALUE;\n }\n double mid = sortedX[(sortedX.length) / 2].getX();\n double firstHalf = closestPair(Arrays.copyOfRange(sortedX, 0, (sortedX.length) / 2));\n double secondHalf = closestPair(Arrays.copyOfRange(sortedX, (sortedX.length) / 2, sortedX.length));\n double min = Math.min(firstHalf, secondHalf);\n ArrayList<Point> close = new ArrayList<Point>();\n for (int i = 0; i < sortedX.length; i++) {\n double dis = Math.abs(sortedX[i].getX() - mid);\n if (dis < min) {\n close.add(sortedX[i]);\n }\n }\n // sort by Y coordinates\n Collections.sort(close, new Comparator<Point>() {\n public int compare(Point obj1, Point obj2) {\n return (int) (obj1.getY() - obj2.getY());\n }\n });\n Point[] near = close.toArray(new Point[close.size()]);\n\n for (int i = 0; i < near.length; i++) {\n int k = 1;\n while (i + k < near.length && near[i + k].getY() < near[i].getY() + min) {\n if (min > near[i].distance(near[i + k])) {\n min = near[i].distance(near[i + k]);\n System.out.println(\"near \" + near[i].distance(near[i + k]));\n System.out.println(\"best \" + best);\n\n if (near[i].distance(near[i + k]) < best) {\n best = near[i].distance(near[i + k]);\n arr[0] = near[i];\n arr[1] = near[i + k];\n // System.out.println(arr[0].getX());\n // System.out.println(arr[1].getX());\n\n }\n }\n k++;\n }\n }\n return min;\n }", "int range() {\n\t\treturn mpg * fuelcap;\n\t}", "private double getRangeCenter(int lowerBound, int upperBound) {\n return (lowerBound + upperBound) / 2.0;\n }", "private int getIndividual(double fitSum) {\n double sum = 0;\n\n // I need a double number between 0 and fitSum\n double goal = rand.nextDouble() * Math.abs(fitSum);\n\n \n\n\n for (int i = 0; i < fitScores.size(); i++) {\n sum += Math.abs(fitScores.get(i));\n\n if (sum >= goal) {\n return i;\n }\n }\n System.out.println(\"The goal fit \" + goal + \" The sum of fit \" + sum);\n\n // not working\n return -1;\n\n }", "private int findNearestValue(final int i, final double key) {\n\n\t\tint low = 0;\n\t\tint high = m_NumValues[i];\n\t\tint middle = 0;\n\t\twhile (low < high) {\n\t\t\tmiddle = (low + high) / 2;\n\t\t\tdouble current = m_seenNumbers[i][middle];\n\t\t\tif (current == key) {\n\t\t\t\treturn middle;\n\t\t\t}\n\t\t\tif (current > key) {\n\t\t\t\thigh = middle;\n\t\t\t} else if (current < key) {\n\t\t\t\tlow = middle + 1;\n\t\t\t}\n\t\t}\n\t\treturn low;\n\t}", "int getXMin();", "public double getMinDoubleValue();", "protected double asRelativeValue(final int generalization, final int max) {\n if (model != null && model.getResult() != null && model.getResult().getLattice() != null &&\n model.getResult().getLattice().getBottom() != null && model.getResult().getLattice().getTop() != null) {\n return ((double) generalization / (double) max) * 100d;\n } else {\n return 0;\n }\n }", "private static double distanceRange(Range r1, Range r2) {\n if (r1 == null || r2 == null) {\n return 0D;\n }\n int a =\n Math.max(\n Math.abs(r1.getStartLine() - r2.getStartLine()),\n Math.abs(r1.getEndLine() - r2.getEndLine()));\n int b = myMax(r1.getStartLine(), r1.getEndLine(), r2.getStartLine(), r2.getEndLine());\n return formatDouble(1.0 - (double) a / b);\n }", "public V getLowerBound();", "org.apache.xmlbeans.XmlDecimal xgetMultipleBetMinimum();", "public Region findLowestEarningRegion() {\n Region low = regionList[0];\n for (int i = 1; i < numRegions; i++) {\n if (low.calcEarnings() >= regionList[i].calcEarnings())\n low = regionList[i];\n }\n return low;\n }", "public double confidenceLo() {\n double lowBound = \n sampleMean - 1.96 * sampleStanDevi / Math.sqrt(times);\n return lowBound;\n }", "private long getAbsMax() {\n return Math.max(Math.abs(Visualizer.getLowerBound().get()),\n Visualizer.getUpperBound().get());\n }", "public double getDist(){\n double dist=0;\n double DA = 0;\n double minDist = this.getMotors()[0].getTargetPosition();\n for(int i =0;i<this.getMotors().length;i++) {\n double current = this.getMotors()[i].getCurrentPosition();\n double target = this.getMotors()[i].getTargetPosition();\n DA = Math.abs(target) - Math.abs(current);\n dist = target - current;\n if(Math.abs(DA)<Math.abs(minDist)){\n minDist = dist;\n }\n }\n return (minDist);\n }", "int getRange();", "@Override\n\tpublic double getBestTargetValue() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int getScore(int target) {\n\t\tdouble d = toBound(target);\n\t\tif (d < 0 && d + height > 0){\n\t\t\treturn -50;\n\t\t} else {\n\t\t\treturn 5;\n\t\t}\n\t}", "public abstract int getMinimumValue();", "private int closest(double [] v){\n \t\tdouble mindist = dist(v, nCentroids[0]);\n \t\tint label =0;\n \t\tfor (int i=1; i<nClusters; i++){\n \t\t\tdouble t = dist(v, nCentroids[i]);\n \t\t\tif (mindist>t){\n \t\t\t\tmindist = t;\n \t\t\t\tlabel = i;\n \t\t\t}\n \t\t}\n \t\treturn label;\n \t}", "public final double getRecommendedThreshold(double safetyFactor){\n\t\t\n\t\tdouble toReturn = 0;\n\t\t\n\t\t// if there is no value, then the recommended threshold calculation is meaningless\n\t\tif(values.length < 2)\n\t\t\treturn NO_RECOMMENDED_THRESHOLD;\n\n\t\t\n\t\t\n\t\t// get the minimum and the maximum value from last [priorityArray.length] data\n\t\tdouble min = values[0], max = values[0];\n\t\t\n\t\tfor(int i = 0; i < values.length; i++){\n\t\t\tif(values[i] < min)\n\t\t\t\tmin = values[i];\n\t\t\tif(values[i] > max)\n\t\t\t\tmax = values[i];\n\t\t}\n\t\t\n\t\tif( (Math.abs(lastResultValue - max)) > (Math.abs(lastResultValue - min)) )\n\t\t\ttoReturn = safetyFactor * (Math.abs((lastResultValue - max)));\n\t\telse\n\t\t\ttoReturn = safetyFactor * (Math.abs((lastResultValue - min)));\n\t\t\n\t\t\n\t\treturn toReturn;\n\t}", "protected void mapValueToWithinBounds() {\n if (getAllele() != null) {\n \tFloat d_value = ( (Float) getAllele());\n if (d_value.isInfinite()) {\n // Here we have to break to avoid a stack overflow.\n // ------------------------------------------------\n return;\n }\n // If the value exceeds either the upper or lower bounds, then\n // map the value to within the legal range. To do this, we basically\n // calculate the distance between the value and the float min,\n // then multiply it with a random number and then care that the lower\n // boundary is added.\n // ------------------------------------------------------------------\n if (d_value.floatValue() > m_upperBound ||\n d_value.floatValue() < m_lowerBound) {\n RandomGenerator rn;\n if (getConfiguration() != null) {\n rn = getConfiguration().getRandomGenerator();\n }\n else {\n rn = new StockRandomGenerator();\n }\n setAllele(new Float((rn.nextFloat()\n * ((m_upperBound - m_lowerBound))) + m_lowerBound));\n }\n }\n }", "private int getRange(double offset, double width)\n {\n if (width == 1.0)\n {\n return _totalPoints;\n }\n else\n {\n int begin = getIndex(offset);\n int end = getIndex((offset + width) % 1.0);\n\n if (begin == end)\n {\n // Wrap around the entire ring, so return all the points\n if (width > getUnitWidth(begin))\n {\n return _totalPoints;\n }\n // Only one index is included\n else\n {\n return 1;\n }\n }\n else\n {\n // If the slice at index end does not overlap with [offset, offset + width), it should not be included\n int adjustedEnd = isEqual(getWeight(end, offset, width), 0, Ring.DELTA) ? end : end + 1;\n int diff = adjustedEnd - begin;\n return diff <= 0 ? diff + _totalPoints : diff;\n }\n }\n }", "private double getRangeToTarget(TargetReport target)\n\t{\n\t\tif (target != null)\n\t\t{\n\t\t\t// chose to use height because most consistent across view angles\n\t\t\t// d = TargetHeightFeet*FOVHeightPixel / (2*TargetHeightPixel*tan(FOV/2) ) (HYPOTENUSE)\n\t\t\treturn TARGET_HEIGHT*IMAGE_HEIGHT / (2*target.height*Math.tan(Math.toRadians(CAMERA_FOV/2)))\n\t\t\t\t\t*Math.cos(Math.toRadians(CAMERA_ELEVATION)); // convert to horizontal\n\t\t}\n\t\telse\n\t\t\treturn 0;\n\t}", "private int mappingTOArduinoRange(double value) {\n int x = (int) (value * 10); // 0~10 will be 0~100\n double a = 0;\n double b = 100;\n\n double c = 0;\n double d = 200; // actually, is 80. But I want a more smooth throttle\n int mapped = (int) ((x-a)/(b-a) * (d-c) + c);\n\n if(mapped > ARDUINO_PWM_LIMIT){\n // TODO: trigger tilt alert\n mapped = ARDUINO_PWM_LIMIT;\n }\n\n return mapped;\n }", "public Point getClosest(){\n\t\t\tdouble distance;\n\t\t\tdouble distanceMax = 0.0;\n\t\t\tPoint centroid = centroid();\n\t\t\tPoint furthermost = new Point();\n\t\t\tfor(Point p : clusterPointsList){\n\t\t\t\tdistance = p.dist(centroid);\t\t\t\n\t\t\t\tif(distance > distanceMax){\n\t\t\t\t\tdistanceMax = distance;\n\t\t\t\t\tfurthermost = p;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn furthermost;\n\t\t}", "private double getMinThreshold() {\n return minThreshold;\n }", "public double getLowThreshold(){\n return lowThreshold;\n }", "public float getMinimumSpan(int axis) {\n return getPreferredSpan(axis);\n }", "public double getMinimumDistance() {\n double l = Double.POSITIVE_INFINITY;\n int stop = getDistanceEnd();\n\n calculateDistances();\n\n for (int i = 0; i < stop; i++) {\n l = Math.min(l, distances[i]);\n }\n\n return l;\n }", "public int getLowerBound ()\n\t{\n\t\treturn getRelationshipImpl().getLowerBound();\n\t}", "public int getNextIntRange(int[] range) {\n\t\tint low = Math.min(range[0], range[1]);\r\n\t\tint high = Math.max(range[0], range[1]);\r\n\t\tint val = (int)((high - low)*this.rand.nextDouble() + (double)low);\r\n\t\treturn val;\r\n\t}", "public Resource findNearestResource(){\n\t\tResource nearestResource = null;\n\t\tfloat distanceToCurrentResource = 0f;\n\t\tfor (Resource resource : MapData.getInstance().getResources()) {\n\t\t\tif(resource.isResourceMaxed()) continue;\n\t\t\tif (resource.getCenter().dst2(getCenter()) < 4000000) {\n\t\t\t\tif (nearestResource == null) {\n\t\t\t\t\tnearestResource = resource;\n\t\t\t\t\tdistanceToCurrentResource = nearestResource\n\t\t\t\t\t\t\t.getCenter().dst2(this.getCenter());\n\t\t\t\t} else {\n\t\t\t\t\tfloat distanceToNewResource = resource.getCenter()\n\t\t\t\t\t\t\t.dst2(this.getCenter());\n\t\t\t\t\tnearestResource = (distanceToNewResource < distanceToCurrentResource) ? resource\n\t\t\t\t\t\t\t: nearestResource;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn nearestResource;\n\t}", "float getXStepMin();", "private static double minMaxNormalization(final double value) {\n return (((value - Configuration.ACTUAL_MIN) / (Configuration.ACTUAL_MAX - Configuration.ACTUAL_MIN)) * (Configuration.NORMALIZED_MAX - Configuration.NORMALIZED_MIN)) + Configuration.NORMALIZED_MIN;\n }", "public double getClosestDistance(){\n\t\t\tdouble distance;\n\t\t\tdouble distanceMin = Double.MAX_VALUE;\n\t\t\tPoint centroid = centroid();\n\t\t\tfor(Point p : clusterPointsList){\n\t\t\t\tdistance = p.dist(centroid);\t\t\t\n\t\t\t\tif(distance < distanceMin){\n\t\t\t\t\tdistanceMin = distance;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn distanceMin;\n\t\t}", "private double getStartY() {\n\t\treturn Math.min(y1, y2);\n\t}", "private StreamEvent findIfActualMin(AttributeDetails latestEvent) {\n int indexCurrentMin = valueStack.indexOf(currentMin);\n int postBound = valueStack.indexOf(latestEvent) - indexCurrentMin;\n // If latest event is at a distance greater than maxPostBound from min, min is not eligible to be sent as output\n if (postBound > maxPostBound) {\n currentMin.notEligibleForRealMin();\n return null;\n }\n // If maxPreBound is 0, no need to check preBoundChange. Send output with postBound value\n if (maxPreBound == 0) {\n StreamEvent outputEvent = eventStack.get(indexCurrentMin);\n complexEventPopulater.populateComplexEvent(outputEvent, new Object[] { \"min\", 0, postBound });\n currentMin.sentOutputAsRealMin();\n return outputEvent;\n }\n int preBound = 1;\n double dThreshold = currentMin.getValue() + currentMin.getValue() * preBoundChange / 100;\n while (preBound <= maxPreBound && indexCurrentMin - preBound >= 0) {\n if (valueStack.get(indexCurrentMin - preBound).getValue() >= dThreshold) {\n StreamEvent outputEvent = eventStack.get(indexCurrentMin);\n complexEventPopulater.populateComplexEvent(outputEvent, new Object[] { \"min\", preBound, postBound });\n currentMin.sentOutputAsRealMin();\n return outputEvent;\n }\n ++preBound;\n }\n // Completed iterating through maxPreBound older events. No events which satisfy preBoundChange condition found.\n // Therefore min is not eligible to be sent as output.\n currentMin.notEligibleForRealMin();\n return null;\n }", "int getAttackRange();", "public int lowerBoundary(){\r\n\t\treturn this.ypoints[0];\r\n\t}" ]
[ "0.66199344", "0.6393172", "0.5967024", "0.5917399", "0.58298534", "0.5807554", "0.58034194", "0.5705437", "0.56804335", "0.56725687", "0.56289756", "0.56072545", "0.5576206", "0.55688906", "0.5561842", "0.55571955", "0.554526", "0.55440927", "0.55440927", "0.5538907", "0.5535748", "0.5535565", "0.55296427", "0.552268", "0.5519893", "0.55149966", "0.5507044", "0.54979753", "0.54857016", "0.5484171", "0.5483242", "0.5471821", "0.5450422", "0.544382", "0.5430073", "0.54298866", "0.54251164", "0.54237956", "0.540327", "0.5402096", "0.53966105", "0.5395465", "0.5384461", "0.538134", "0.53680426", "0.5344445", "0.5337691", "0.533723", "0.5328294", "0.532671", "0.532169", "0.5320103", "0.5312922", "0.530795", "0.5304864", "0.5303677", "0.5302902", "0.52977526", "0.52976096", "0.5294052", "0.52798384", "0.52797425", "0.5260528", "0.5249991", "0.52494526", "0.52454543", "0.52412206", "0.52376723", "0.5235741", "0.5234514", "0.5226845", "0.52254766", "0.52251774", "0.5219111", "0.52091724", "0.52081424", "0.5197224", "0.5196439", "0.51913667", "0.51850545", "0.5183342", "0.5174945", "0.5163693", "0.51591086", "0.51521677", "0.51519555", "0.5151013", "0.51469445", "0.51453644", "0.5137021", "0.51181406", "0.5118107", "0.51172495", "0.5115471", "0.51056427", "0.5105573", "0.51010484", "0.5094669", "0.50936997", "0.50829214" ]
0.75705224
0
Gets the center of a range
private double getRangeCenter(int lowerBound, int upperBound) { return (lowerBound + upperBound) / 2.0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getCenter() {\n return 0.5 * (lo + hi);\n }", "Point getCenter();", "Point getCenter();", "public Coords getCenter()\r\n {\r\n return new Coords(Math.round(x + width / 2), Math.round(y + height / 2));\r\n }", "public Point getCenter() {\n \treturn new Point(x+width/2,y+height/2);\n }", "public Coord3d getCenter() {\n return new Coord3d((xmin + xmax) / 2, (ymin + ymax) / 2, (zmin + zmax) / 2);\n }", "public final int centerX() {\n return (left + right) >> 1;\n }", "public Coordinate getCenter() {\n return center;\n }", "public Point getCenter() {\n return center;\n }", "public int getCenterX() {\n\t\t\treturn (int) origin.x + halfWidth;\n\t\t}", "public Point getCenter() {\r\n\t\treturn center;\r\n\t}", "public Point getCenter() {\r\n return this.center;\r\n }", "public Point getCenter() {\n return new Point((int) getCenterX(), (int) getCenterY());\n }", "public Vector2 getCenter() {\n return new Vector2(rectangle.centerX(), rectangle.centerY());\n }", "public final Vector getCenter() {\n\t\treturn (center == null) ? computeCenter() : center;\n\t}", "public PointF getCenter() {\n return center;\n }", "public int getCenter() {\n\t\t\treturn center;\n\t\t}", "public double getCenterX() { return centerX.get(); \t}", "public Vector3f getSphereCenter() {\n\t\tfloat[] arr = getMinMax();\n\t\t\n\t\treturn new Vector3f((arr[0]+arr[1])/2,(arr[2]+arr[3])/2,(arr[4]+arr[5])/2);\n\t}", "public Vect3d getCenter (){\r\n Vect3d v = new Vect3d();\r\n v.x = (min.x + max.x) / 2;\r\n v.y = (min.y + max.y) / 2;\r\n v.z = (min.z + max.z) / 2;\r\n return v;\r\n }", "public static int getCenter() {\n\t\treturn Center;\n\t}", "public GJPoint2D center();", "public Point middle() {\r\n Point middlePoint = new Point(((this.end.getX() + this.start.getX()) / 2),\r\n ((this.end.getY() + this.start.getY()) / 2));\r\n return middlePoint;\r\n }", "public Vector2 getCenter() {\n return center;\n }", "private double centerX() {\n return (piece.boundingBox().getWidth() % 2) / 2.0;\n }", "public Point2D.Float getCenter() {\r\n\t\treturn center;\r\n\t}", "public FPointType calculateCenter() {\n fRectBound = getBounds2D();\n FPointType fptCenter = new FPointType();\n fptCenter.x = fRectBound.x + fRectBound.width / 2.0f;\n fptCenter.y = fRectBound.y + fRectBound.height / 2.0f;\n calculate(fptCenter);\n \n rotateRadian = 0.0f;\n \n return fptCenter;\n }", "final public Vector2 getCenter()\n\t{\n\t\treturn center;\n\t}", "public int centerX() {\n return mRect.centerX();\n }", "public final float exactCenterX() {\n return (left + right) * 0.5f;\n }", "public Vector2 getCenter() {\n\t\treturn new Vector2(position.x + size / 4f, position.y + size / 4f);\n\t}", "public Location getCenter() {\n return new Location(location.getWorld(), (float) getRectangle().getCenterX(), (float) getRectangle().getCenterY());\n }", "private int getMidPoint(int cordinate)\n {\n int mid_point = ((cordinate + Player.getWidth_of_box()) / 2);\n return mid_point;\n }", "public Location3D getCenter() {\n\t\treturn new Location3D(world, lowPoint.getBlockX() + getXSize() / 2, lowPoint.getBlockY() + getYSize() / 2, lowPoint.getBlockZ() + getZSize() / 2);\n\t}", "public double[] getCenter() {\n return this.center;\n }", "private Point middleLeft() {\n return this.topLeft.add(0, this.height / 2).asPoint();\n }", "public Vector3f getCenter() {\r\n return center;\r\n }", "public Point getCenter() {\n return location.center();\n }", "public double getCenterX() {\n return this.getLayoutSlot().getX() + (int) (this.getLayoutSlot().getWidth() / 2);\n }", "public Point2D.Double getImageCenter();", "public int getCenterX(){\r\n return centerX;\r\n }", "public Point centeroid ()\r\n {\r\n return new Point ((v1.getX()+v2.getX()+v3.getX())/3,(v1.getY()+v2.getY()+v3.getY())/3);\r\n }", "public LatLng getCenter() {\n return center;\n }", "public static double getCenter(int index) {\n\t\tif (index==0) return -1.0;\n\t\telse return DEFAULT_CENTERS[index-1];\n\t}", "public Vector3D getCenter() {\n return center;\n }", "private Point getCentreCoordinate(Point t)\n {\n \treturn new Point (t.x + Constants.cell_length /2f, t.y, t.z+Constants.cell_length/2f );\n }", "public double getCenterX() {\n\t\treturn centerX;\n\t}", "int getRange();", "public Point2D getCentre() {\n return new Point2D.Float(centreX, centreY);\n }", "private static Point areaCentre() {\r\n\t\tvar centreLon = (lonLB + lonUB)/2;\r\n\t\tvar centreLat = (latLB + latUB)/2;\r\n\t\treturn Point.fromLngLat(centreLon, centreLat);\r\n\t}", "public Vec2 getCenter()\n {\n int numTriangles = numPoints - 2;\n\n // Calculate the average midpoint of each composite triangle\n Vec2 averageMidpoint = new Vec2(0, 0);\n float area = 0;\n for (int i=0; i<numTriangles; i++)\n {\n Triangle t = new Triangle(points[0], points[i+1], points[i+2]);\n Vec2 triangleMidpoint = t.getCenter();\n float triangleArea = t.getArea();\n\n averageMidpoint.addX(triangleMidpoint.getX() * triangleArea);\n averageMidpoint.addY(triangleMidpoint.getY() * triangleArea);\n\n area += triangleArea;\n\n// Color color;\n// if (i==0) color = Color.GREEN;\n// else color = Color.ORANGE;\n// SumoGame.ADD_DEBUG_DOT(points[0].getX(), points[0].getY(), 5, color);\n// SumoGame.ADD_DEBUG_DOT(points[i+1].getX(), points[i+1].getY(), 5, color);\n// SumoGame.ADD_DEBUG_DOT(points[i+2].getX(), points[i+2].getY(), 5, color);\n// SumoGame.ADD_DEBUG_DOT(triangleMidpoint.getX(), triangleMidpoint.getY(), triangleArea/2000, color);\n }\n\n averageMidpoint.div(area);\n\n// SumoGame.ADD_DEBUG_DOT(averageMidpoint.getX(), averageMidpoint.getY(), 20, Color.RED);\n\n return averageMidpoint;\n }", "private PointF getCenterOfCropRect() {\n return new PointF(\n cropRect.centerX(),\n cropRect.centerY());\n }", "public ImageWorkSpacePt findCurrentCenterPoint() {\n WebPlot plot= getPrimaryPlot();\n\n\n int screenW= plot.getScreenWidth();\n int screenH= plot.getScreenHeight();\n int sw= getScrollWidth();\n int sh= getScrollHeight();\n int cX;\n int cY;\n if (screenW<sw) {\n cX= screenW/2;\n }\n else {\n int scrollX = getScrollX();\n cX= scrollX+sw/2- wcsMarginX;\n }\n\n if (screenH<sh) {\n cY= screenH/2;\n }\n else {\n int scrollY = getScrollY();\n cY= scrollY+sh/2- wcsMarginY;\n }\n\n ScreenPt pt= new ScreenPt(cX,cY);\n\n return plot.getImageWorkSpaceCoords(pt);\n }", "public Vector2D getArithmeticCenter()\n\t{\n\t\tif (size() == 0)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\tVector2D center = Vector2D.ZERO;\n\n\t\tfor (Unit unit : this)\n\t\t{\n\t\t\tcenter = center.add(Vector2DMath.toVector(unit.getPosition()));\n\t\t}\n\t\tcenter = center.scale(1.0f / size());\n\n\t\treturn center;\n\t}", "public int getXCenter() {\n return getXOrigin() + panelWidth/2;\n }", "public double getXRangeMin() {\n return xRangeMin;\n }", "public Point getCenterPx(){\n\t\tint centerX = images[0].getWidth()/2;\n\t\tint centerY = images[0].getHeight()/2;\n\t\tPoint centerPx = new Point(centerX,centerY);\n\t\treturn centerPx;\n\t}", "int getBoundsX();", "public EastNorth getCenter() {\n\t\treturn null;\n\t}", "public int getX() {\r\n return (int) center.getX();\r\n }", "private Point2D getCenterLatLon(){\n Point2D.Double result = new Point2D.Double();\n Point2D.Double screenCenter = new Point2D.Double();\n screenCenter.x = getWidth()/2; //contentpane width/height\n screenCenter.y = getHeight()/2;\n try{\n transform.inverseTransform(screenCenter,result); //transform to lat/lon using the current transform\n } catch (NoninvertibleTransformException e) {\n throw new RuntimeException(e);\n }\n return result;\n }", "@NotNull\n public Location<World> getCenterBlock() {\n int centerX = getMinChunk().getX() + 16;\n int centerZ = getMinChunk().getZ() + 16;\n return Tungsten.INSTANCE.getIslandWorld().getLocation(centerX * 16, 86, centerZ * 16);\n }", "private int get_x() {\n return center_x;\n }", "public Line2D.Double\ncenterAtMidPt()\n{\n\tPoint2D midPt = this.getMidPt();\n\treturn new Line2D.Double(\n\t\tgetX1() - midPt.getX(),\n\t\tgetY1() - midPt.getY(),\n\t\tgetX2() - midPt.getX(),\n\t\tgetY2() - midPt.getY());\n}", "public Vec3d getCenter() {\n\t\treturn set;\n\t}", "public final Point getCenterPointOnScreen() {\n\t\treturn Calculations.tileToScreen(getLocalRegionX(), getLocalRegionY(),\n\t\t\t\t0.5D, 0.5D, 0);\n\t}", "public int getX() {\n return (int) center.getX();\n }", "public float getCentreX() {\n return centreX;\n }", "private double[] getMeanCenter(){\n double[] meanXY = new double[2];\n float[] trans = getTranslationVector(center.getX(),center.getY(),BITMAP_SIZE,BITMAP_SIZE,CONSTANT);\n // Plot points\n for (MeasurementService.DataPoint p: list) {\n meanXY[0] += (p.getX()*CONSTANT)+trans[0];\n meanXY[1] += (p.getY()*CONSTANT)+trans[1];\n }\n\n meanXY[0] = meanXY[0] / list.size();\n meanXY[1] = meanXY[1] / list.size();\n return meanXY;\n }", "public abstract Vector computeCenter();", "public int getRangeStart() {\n return currentViewableRange.getFrom();\n }", "public double getCenterX()\n {\n return mainVBox.getTranslateX() + (mainVBox.getWidth() / 2);\n }", "PVector _getCenter() {\n PVector cen = new PVector(_hitboxCenter.x, _hitboxCenter.y);\n cen.rotate(_rotVector.heading() - _front);\n cen.x += _x;\n cen.y += _y;\n return cen;\n }", "String getBeginRange();", "public int getStart ()\r\n {\r\n return glyph.getBounds().x;\r\n }", "protected Point getCenter(ArrayList<Unit> units) {\n\t\tint x = 0, y = 0;\n\t\t\n\t\tif(units.size() >= 1) {\n\t\t\tfor(Unit unit: units) {\n\t\t\t\tx += unit.getX();\n\t\t\t\ty += unit.getY();\n\t\t\t}\n\t\t\tx = x / units.size();\n\t\t\ty = y / units.size();\n\t\t}\n\t\treturn new Point(x,y);\n\t}", "public Ndimensional getStartPoint();", "public final native LatLng getCenter() /*-{\n return this.getCenter();\n }-*/;", "public float getCenterX() {\n return cPosition.getX() + (float) cFishSizeX / 2;\n }", "double[] circleCentre()\n\t{\n\t\tdouble toOriginLength = Math.sqrt(originX*originX + originY*originY);\n\t\tdouble toCentreLength = toOriginLength + radius;\n\t\t\n\t\tdouble[] centrePoint = new double[2];\n\t\t\n\t\tcentrePoint[0] = (toCentreLength * originX)/toOriginLength;\n\t\tcentrePoint[1] = (toCentreLength * originY)/toOriginLength;\n\t\t\n\t\treturn centrePoint;\n\t}", "public Point2D.Double GetCentrePoint() {\n \t\treturn new Point2D.Double(centrePoint.getX(), centrePoint.getY());\n \t}", "Cell Center(){\n double sum_x = 0;\r\n double sum_y = 0;\r\n \r\n for(int i = 0; i < this.edgeCells.size(); i++){\r\n sum_x = this.edgeCells.get(i).x;\r\n sum_y = this.edgeCells.get(i).y;\r\n }\r\n \r\n for(int i = 0; i < this.seedCells.size(); i++){\r\n sum_x = this.seedCells.get(i).x;\r\n sum_y = this.seedCells.get(i).y;\r\n }\r\n \r\n sum_x = sum_x/(this.edgeCells.size() + this.seedCells.size()); //center of weight\r\n sum_y = sum_y/(this.edgeCells.size() + this.seedCells.size()); //\r\n \r\n center = new Cell((int)sum_x, (int)sum_y, this.edgeCells.get(0).z, this.edgeCells.get(0).id);\r\n \r\n \r\n return center;\r\n }", "protected void calculateMinMaxCenterPoint() {\n\t\tfinal ImagePlus imp = c.getImage();\n\t\tfinal int w = imp.getWidth(), h = imp.getHeight();\n\t\tfinal int d = imp.getStackSize();\n\t\tfinal Calibration cal = imp.getCalibration();\n\t\tmin = new Point3d();\n\t\tmax = new Point3d();\n\t\tcenter = new Point3d();\n\t\tmin.x = w * (float) cal.pixelHeight;\n\t\tmin.y = h * (float) cal.pixelHeight;\n\t\tmin.z = d * (float) cal.pixelDepth;\n\t\tmax.x = 0;\n\t\tmax.y = 0;\n\t\tmax.z = 0;\n\n\t\tfloat vol = 0;\n\t\tfor (int zi = 0; zi < d; zi++) {\n\t\t\tfinal float z = zi * (float) cal.pixelDepth;\n\t\t\tfinal ImageProcessor ip = imp.getStack().getProcessor(zi + 1);\n\n\t\t\tfinal int wh = w * h;\n\t\t\tfor (int i = 0; i < wh; i++) {\n\t\t\t\tfinal float v = ip.getf(i);\n\t\t\t\tif (v == 0) continue;\n\t\t\t\tvol += v;\n\t\t\t\tfinal float x = (i % w) * (float) cal.pixelWidth;\n\t\t\t\tfinal float y = (i / w) * (float) cal.pixelHeight;\n\t\t\t\tif (x < min.x) min.x = x;\n\t\t\t\tif (y < min.y) min.y = y;\n\t\t\t\tif (z < min.z) min.z = z;\n\t\t\t\tif (x > max.x) max.x = x;\n\t\t\t\tif (y > max.y) max.y = y;\n\t\t\t\tif (z > max.z) max.z = z;\n\t\t\t\tcenter.x += v * x;\n\t\t\t\tcenter.y += v * y;\n\t\t\t\tcenter.z += v * z;\n\t\t\t}\n\t\t}\n\t\tcenter.x /= vol;\n\t\tcenter.y /= vol;\n\t\tcenter.z /= vol;\n\n\t\tvolume = (float) (vol * cal.pixelWidth * cal.pixelHeight * cal.pixelDepth);\n\n\t}", "public native vector kbAreaGetCenter(int areaID);", "private math_vector3d TwoPointGetCenterArcPoint(math_vector3d start, math_vector3d end)\n {\n\n\n ObjectPoint center2d = new ObjectPoint((start.X() + end.X()) / 2.0,(start.Y() + end.Y()) / 2.0);\n ObjectPoint orgin2d = new ObjectPoint(this.theOrigin.X(),this.theOrigin.Y());\n\n\n MathVector2D orginTocenter = new MathVector2D(orgin2d, center2d);\n\n orginTocenter = orginTocenter.GetUnit();\n orginTocenter = orginTocenter.multiply(this.theRadius);\n orgin2d.AddVector(orginTocenter);\n\n math_vector3d center = new math_vector3d(orgin2d.x,orgin2d.y,0);\n return center;\n }", "public Point getPointMiddle()\n {\n Point temp = new Point();\n temp.x = Math.round((float)(rettangoloX + larghezza/2));\n temp.y = Math.round((float)(rettangoloY + altezza/2)); \n return temp;\n }", "public int getStartRange() {\r\n\t\treturn lookupValue(Params.START_RANGE);\r\n\t}", "public int getMidPos ()\r\n {\r\n if (getLine()\r\n .isVertical()) {\r\n // Fall back value\r\n return (int) Math.rint((getFirstPos() + getLastPos()) / 2.0);\r\n } else {\r\n return (int) Math.rint(\r\n getLine().yAt((getStart() + getStop()) / 2.0));\r\n }\r\n }", "public double getRange(){\n\t\treturn range;\n\t}", "public Coordinate getCenteredCoordinate() {\n return coordinate.add(getHalfSize());\n }", "public Position getMidPoint() {\n return midPoint;\n }", "public final Point getCenterPointOnScreen() {\n return bot.getManagers().getCalculations().tileToScreen(localRegionX, localRegionY,\n 0.5D, 0.5D, 0);\n }", "@Basic\n\t@Immutable\n\tpublic abstract double getRadiusLowerBound();", "public Point getLocation() {\r\n\t\treturn this.center;\r\n\t}", "public int getX() {\n return (int) this.center.getX();\n }", "private Point findTopLeftCornerPoint() {\n return new Point(origin.getX(), origin.getY() + width);\n }", "private Vector3D convexCellBarycenter(final Vertex start) {\n\n int n = 0;\n Vector3D sumB = Vector3D.ZERO;\n\n // loop around the cell\n for (Edge e = start.getOutgoing(); n == 0 || e.getStart() != start; e = e.getEnd().getOutgoing()) {\n sumB = new Vector3D(1, sumB, e.getLength(), e.getCircle().getPole());\n n++;\n }\n\n return sumB.normalize();\n\n }", "public double getMinRange() {\n return minRange;\n }", "public LatLng getCentrePos() {\n double lat = 0;\n double lon = 0;\n for (int i=0; i<newHazards.size(); i++) {\n lat += frags.get(i).getHazard().getLatitude();\n lon += frags.get(i).getHazard().getLongitude();\n }\n return new LatLng(lat / newHazards.size(), lon / newHazards.size());\n }", "double getStartX();" ]
[ "0.73069376", "0.72439915", "0.72439915", "0.69140244", "0.6884788", "0.67085224", "0.66982985", "0.66660213", "0.66308826", "0.66242945", "0.66150355", "0.66111326", "0.6566182", "0.6551483", "0.65175", "0.65053594", "0.6489461", "0.6482674", "0.64703286", "0.6453838", "0.64441824", "0.64102376", "0.64086866", "0.63972276", "0.63938177", "0.63817763", "0.6375827", "0.6350971", "0.63205415", "0.62966293", "0.6291621", "0.62896186", "0.6268532", "0.6244164", "0.62372756", "0.62326795", "0.620553", "0.62005603", "0.6193362", "0.6187011", "0.61629796", "0.61519694", "0.61482114", "0.61427253", "0.6139757", "0.61396533", "0.6127299", "0.61202925", "0.6120073", "0.61101025", "0.61092633", "0.60535955", "0.60511863", "0.6045356", "0.6032856", "0.6020591", "0.60048497", "0.59992325", "0.5992771", "0.59882134", "0.59827477", "0.5980451", "0.5972059", "0.59671646", "0.5952399", "0.5952194", "0.5950488", "0.5941931", "0.5919651", "0.59114736", "0.5908204", "0.5892153", "0.5887852", "0.5887494", "0.5883618", "0.58655953", "0.5847264", "0.5835368", "0.5834382", "0.5830953", "0.58126324", "0.5802923", "0.58013177", "0.5799016", "0.579709", "0.5788244", "0.5786425", "0.5776848", "0.57724416", "0.57592577", "0.5755425", "0.5753841", "0.5752266", "0.5734961", "0.57292616", "0.5723494", "0.57232285", "0.5722147", "0.57193947", "0.5718476" ]
0.83185446
0
Gets the + margin given a lower and upper bound Example: 1 to 3 inches > 1 Example: 1 to 6 inches > 2.5
private double getMarginFromBounds(int lowerBound, int upperBound) { return (upperBound - lowerBound) / 2.0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double getMargin(List<Integer> range) {\n if (range.size() < 2) return fallbackMargin;\n return getMarginFromBounds(range.get(0), range.get(1));\n }", "private double getRangeCenter(int lowerBound, int upperBound) {\n return (lowerBound + upperBound) / 2.0;\n }", "public ScreenPt getWcsMargins() { return new ScreenPt(wcsMarginX,wcsMarginY); }", "public int getBound();", "double getHeaderMargin();", "private double applyLimitBounds(double value) {\n if(value > 1.0) {\n value = 1.0;\n }\n if(value < -1.0) {\n value = -1.0;\n }\n\n // Absolute limits:\n if(lifter.getBottomLimit() && lifter.getUpperLimit()) {\n if(value < 0) {\n value = 0; // Can't go down from the bottom;\n }\n }\n\n if((lifter.getUpperLimit() && lifter.getUpperWarning()) && lifter.getUpperSmallPieceDetector()) {\n if(value > 0) {\n value = 0; // Can't go up from the top\n }\n }\n\n // Slow speed zones\n if(lifter.getBottomWarning()) {\n if(value < -0.3) {\n value = -0.3;\n }\n }\n\n if(lifter.getUpperWarning()) {\n if(value > 0.7) {\n value = 0.7;\n }\n }\n\n printLimits();\n\n return value;\n }", "int getBoundsX();", "double getFooterMargin();", "default Integer getHorizontalMargin() {\n return null;\n }", "int getBoundsWidth();", "float getLgap();", "public double withIn(double input, double upperBound, double lowerBound) {\n\t\tif (input > 0) {\n\t\t\treturn java.lang.Math.min(upperBound, input);\n\t\t} else if (input < 0) {\n\t\t\treturn java.lang.Math.max(lowerBound, input);\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "public double getCenter() {\n return 0.5 * (lo + hi);\n }", "public int getRangeWidth();", "public double getRangeInches(){\r\n\t\t return uSensor.getRangeInches();\r\n\t\t}", "public int getLowerBound ();", "double getLeft(double min);", "double getLowerThreshold();", "private int minTopMargin() {\n return -(mHeaderHeight + mFooterHeight);\n }", "public int getLowerBound() {\r\n return lowerBound;\r\n }", "static public double lim(double x,double min,double max) {\r\n\t\t if(x<min) return min;\r\n\t\t if(x>max) return max;\r\n\t\t return x;\r\n\t}", "public float getMinimumSpan(int axis) {\n if (view != null) {\n return view.getMinimumSpan(axis);\n }\n return 10;\n }", "Margin createMargin();", "public int getAbsWidthViewport() {\n return Math.abs((int)(0.5 + widthViewport));\n }", "public static double inInterval(double lowerBound, double value, double upperBound) {\n/* 67 */ if (value < lowerBound)\n/* 68 */ return lowerBound; \n/* 69 */ if (upperBound < value)\n/* 70 */ return upperBound; \n/* 71 */ return value;\n/* */ }", "int getMinZoom();", "public abstract double getRangeSize();", "public BoundingBox3d margin(float margin) {\n BoundingBox3d b = new BoundingBox3d();\n b.xmax = xmax + margin;\n b.xmin = xmin - margin;\n b.ymax = ymax + margin;\n b.ymin = ymin - margin;\n b.zmax = zmax + margin;\n b.zmin = zmin - margin;\n return b;\n }", "public abstract String format(double lowerBound, double upperBound);", "public double getMinWidth(double aValue) { Double w = (Double)get(\"MinWidth\"); return w!=null? w : 0; }", "public @NonNull Margins getMinMargins() {\n return mMinMargins;\n }", "public double getLeft(double min) {\n return min - this.size; \n }", "public double getWyInc() { return extents.getHeight() /getMyHeight(); }", "public int getMinFloor();", "public int getPictureMargin() {\n return pictureMargin;\n }", "private double checkCabProfitMargin(BookingRequest bookingRequest, Cab cabDetail) {\n\t\tInteger distanceFromCabToPickUpPoint = Utils.calculateDistance(cabDetail.getInitialLocation(), bookingRequest.getPickUpArea());\n\t\tInteger distanceFromPickUpToDropPoint = Utils.calculateDistance(bookingRequest.getPickUpArea(), bookingRequest.getDropArea());\n\t\tint totalCostIncurredByCompany = (distanceFromCabToPickUpPoint + distanceFromPickUpToDropPoint) * Constants.COMPANY_COST_PER_KM;\n\t\tint tripCostCharged = distanceFromPickUpToDropPoint * Constants.CHARGED_COST_PER_KM;\n\t\tdouble profitMargin = (tripCostCharged - totalCostIncurredByCompany)*100 / tripCostCharged ;\n\t\tif (profitMargin >= 20) {\n\t\t\treturn profitMargin;\n\t\t}\n\t\treturn -1;\n\t}", "public float getMargin() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 28);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 28);\n\t\t}\n\t}", "org.apache.xmlbeans.XmlDecimal xgetWagerMinimum();", "double getUpperThreshold();", "private float getPadding() {\n return (getFont().size() - getPreferredWidth()) / 2f;\n }", "public static double limitVariableToBMI(int bmi, double minPerc, double maxPerc) {\n\t\tint maxBMI = 40;\n\t\tint minBMI = 15;\n\t\treturn Math.round((maxPerc - ((double)(maxBMI - bmi) / (maxBMI - minBMI)) * (maxPerc - minPerc)) * 100.0) / 100.0;\n\t}", "private int adjustInsetForScale(int inset, float dipScale) {\n return (int) Math.ceil(inset / dipScale);\n }", "private Point getLower() {\n int lowerX;\n int lowerY;\n lowerY = (int) (-gameCanvas.getHeight() + mapOffsetY * 2);\n lowerX = (int) (-gameCanvas.getWidth() + mapOffsetX * 2);\n return new Point(lowerX, lowerY);\n }", "public double getRangeInches()\n {\n if (isRangeValid())\n {\n\n double currentInches = ((AnalogInput)m_echoChannel).getVoltage() * m_conversionToInches;\n\n m_oldDistance = currentInches;\n }\n\n return m_oldDistance;\n }", "public Range getRangeX(double lowerPercent, double upperPercent, \n PlotRenderingInfo info, Point2D source) {\n \t\t\n \t double start = super.getDomainAxis().getRange().getLowerBound();\n double length = super.getDomainAxis().getRange().getLength();\n Range adjusted = null;\n if (super.getDomainAxis().isInverted()) {\n adjusted = new Range(start + (length * (1 - upperPercent)), \n start + (length * (1 - lowerPercent))); \n }\n else {\n adjusted = new Range(start + length * lowerPercent, \n start + length * upperPercent);\n }\n return adjusted;\n }", "public double getRange(){\r\n\t\t uSensor.ping();\r\n\t\t return uSensor.getRangeInches();\r\n\t\t}", "float getXStepMin();", "default Integer getVerticalMargin() {\n return null;\n }", "float getW();", "Rectangle getBounds();", "public String getExtent() {\n return Formatter.formatDoubleStr(minX, 4) + \" \" + Formatter.formatDoubleStr(minY, 4)\n + \" \" + Formatter.formatDoubleStr(maxX, 4) + \" \" + Formatter.formatDoubleStr(maxY, 4);\n }", "@Override\n\tprotected double getLowerBound() {\n\t\treturn 0;\n\t}", "private Bounds getDrawBounds() {\n\t\tfinal float boundsWidth = 2 * OFFSET_X;\n\t\tfinal float boundsHeight = 2 * OFFSET_Y;\n\t\t\n\t\t//Get the center point of the player, then subtract by offset\n\t\tfinal float x = (activePlayer.getX() + activePlayer.getWidth() / 2f) \n\t\t\t\t/ activePlayer.getScaleX() - OFFSET_X;\n\n\t\tfinal float y = (activePlayer.getY() + activePlayer.getHeight() / 2f) \n\t\t\t\t/ activePlayer.getScaleY() - OFFSET_Y + 1;\n\t\t\n\t\treturn new Bounds(x, y, boundsWidth, boundsHeight);\n\t}", "public int getVerticalSpaceBetweenTwoElements(WebDriver driver, String xpathUpper, String xpathLower) throws NumberFormatException, IOException {\n\t\tint Y = driver.findElement(By.xpath(xpathLower)).getLocation().getY();\n\t\tint y = driver.findElement(By.xpath(xpathUpper)).getLocation().getY();\n\t\tint h = driver.findElement(By.xpath(xpathUpper)).getSize().getHeight();\n\t\tint space = Y - y - h;\n\t\tfileWriterPrinter(\"\\n\" + \"VERTICAL SPACE = \" + space);\n\t\treturn space;\n\t}", "public RMRect getBoundsInside() { return new RMRect(0, 0, getWidth(), getHeight()); }", "public float getPreferredSpan(int axis) {\n if (view != null) {\n return view.getPreferredSpan(axis);\n }\n return 10;\n }", "public int getRangeHeight();", "@VTID(14)\n excel.XlPageBreakExtent getExtent();", "float getHorizontalMargin() {\n return mTn.mHorizontalMargin;\n }", "public int getCustomerMaxTargetFloor();", "@NonNull\n public Integer getSpacingInInches() {\n return spacingInInches;\n }", "public LatLngBounds setupBounds(){\n\t\t\n\t\t\n\t\tdouble deltaLat = 0.000015; // correction value\n\t\t\n\t\tLatLng northEast = new LatLng(60.1876397959336 + (2.4 * deltaLat), 24.8207008838576);\n\t\tLatLng southWest = new LatLng(60.1866756699501 + deltaLat, 24.8172971606177);\n\t\t\n\t\t\n\t\t// 60.1866756699501\n\t\treturn new LatLngBounds(southWest, northEast);\n\t}", "public double getWxInc() { return extents.getWidth() /getMyWidth(); }", "public java.awt.Rectangle getBounds(){\r\n return new java.awt.Rectangle((int)Math.round(x), (int)Math.round(y), (int)Math.round(getWidth()), (int)Math.round(getHeight()));\r\n }", "public int getUsedViewportWidth() {\n return Math.abs((int)(0.5 + widthViewport - xMargin));\n }", "public int getHorizontalMargin() {\n return mLayoutManager.getHorizontalMargin();\n }", "public double getMaxX() { return getX() + getWidth(); }", "public float getTheDistance(){\n\t\t\n\t\tdistance = sonic.getDistance();\n\t\tSystem.out.println(\"value:\"+ distance);\n\t\t//considering the test results we see after 23 cm we see the +1cm precision and below 23cm we see + 5cm range \n\t\tif (distance<=25){\n\t\treturn (distance-7);\n\t\t}\n\t\telse{return (distance-3);}\n\t}", "public static final float pointsToInches(float value) {\n\t return value / 72f;\n\t}", "int main()\n{\n int units,r;\n cin>>units;\n if (units<=200) {\n r=units*0.5;\n cout<<\"Rs.\"<<r;\n }\n else if (units>=200 && units<=400){\n r=0.65*units+100;\n cout<<\"Rs.\"<<r;\n }\n else if (units>=400 && units<=600){\n r=0.8*units+200;\n cout<<\"Rs.\"<<r;\n }\n else{\n r=1.25*units+425;\n cout<<\"Rs.\"<<r;\n }\n}", "@Override\n\tpublic int getW() {\n\t\treturn 100;\n\t}", "public String getRange() {\n if (predictionAmount < 0.1)\n return \"little to none\";\n\n String description = convertFeetToInches(alert.getDescription());\n\n // Get the bounds\n List<Integer> range = getClosestRange(getRanges(description), predictionAmount);\n double margin = getMargin(range);\n int lowerBound = (int) Math.round(predictionAmount - margin);\n int upperBound = (int) Math.round(predictionAmount + margin);\n\n // Determine the unit\n Unit units = Unit.INCHES;\n if (shouldUseFeet(lowerBound, upperBound)) {\n // Convert inches to feet\n lowerBound = toFeet(lowerBound);\n upperBound = toFeet(upperBound);\n units = Unit.FEET;\n }\n\n return getFinalText(units, lowerBound, upperBound);\n }", "@Override public Padding calcPadding(Dim outer, Dim inner) {\n if (outer.lte(inner)) { return null; }\n double dx = (outer.getWidth() - inner.getWidth()) / 2;\n// System.out.println(\"\\t\\t\\tcalcPadding() dx=\" + dx);\n // Like HTML it's top, right, bottom, left\n// System.out.println(\"\\t\\t\\tcalcPadding() outer.y() - inner.y()=\" + (outer.y() - inner.y()));\n return Padding.of(outer.getHeight() - inner.getHeight(), dx, 0, dx);\n }", "float yMin();", "public double getSpacerSize(Quill quill) throws IOException { \n\t\tif (fontMultiple!=null) { \n\t\t\tif (quill==null) throw new IllegalArgumentException(\"Argument 'quill' should not be null\"); \n\t\t\tif (quill!=this.spacerQuill) { \n\t\t\t\tthis.spacerSize = quill.getFontHeight() * fontMultiple ; \n\t\t\t\tthis.spacerQuill = quill ; \n\t\t\t}\n\t\t}\n\t\treturn spacerSize ; \n\t}", "@Override\n public double between(double min, double max) {\n return super.between(min, max);\n }", "private int computeMoveCameraPadding() {\n \t\tPoint dim = this.getScreenDim();\n \t\tint min = Math.min( dim.x, dim.y );\n \t\treturn (int) (CAMERA_MOVE_BOUNDS_PADDING * min);\n \t}", "protected int valueToMarkerPosition(double value) {\n\t\tint v;\n\t\tif (getOrientation() == HORIZONTAL) {\n\t\t\tv = getWidth();\n\t\t} else {\n\t\t\tv = getHeight();\n\t\t}\n\n\t\tint w = (int) ((v - getMarkerLength()) * (value - getScaleStart()) / (getScaleEnd() - getScaleStart()));\n\n\t\tif (w < 0) {\n\t\t\treturn 0;\n\t\t}\n\n\t\tif (w > v - getMarkerLength()) {\n\t\t\treturn v - getMarkerLength();\n\t\t}\n\n\t\treturn w;\n\t}", "private float getLineWidth(int zoomLevel) {\n if (zoomLevel > 14) {\n return 7.0f * BusesAreUs.dpiFactor();\n } else if (zoomLevel > 10) {\n return 5.0f * BusesAreUs.dpiFactor();\n } else {\n return 2.0f * BusesAreUs.dpiFactor();\n }\n }", "protected final float getInsetSpan(int axis) {\n// assert ViewUtilities.isAxisValid(axis);\n\n ViewInsets insets = getInsets();\n return (insets != null)\n ? ((axis == X_AXIS) ? insets.getLeftRight() : insets.getTopBottom())\n : 0;\n }", "public double getPosition(double value) {\n return getRelPosition(value) * (size - nanW - negW - posW) + (min < max ? negW : posW);\n }", "public float[] getBounds() {\r\n\t\tfloat[] bounds = {x_ - width_/ 2, x_ + width_ / 2, y_ - height_ / 2, y_ + height_ / 2};\r\n\t\treturn bounds;\r\n\t}", "float getLt();", "GridEnvelope getLimits();", "public static int getLowerRectStrip(double y) {\n return ((int) Math.floor((y + .5) / .5)) / 3;\n }", "public int getVSpacing() {\n return (((Integer) (data[GENERAL_VSPACING][PROP_VAL_VALUE])).intValue());\n }", "@Override\r\n public float getMinimumSpan( int axis ){\r\n if( axis == View.Y_AXIS ){\r\n return super.getMinimumSpan(axis);\r\n } else{\r\n return DEFAULT_MINIMUM_SPAN;\r\n }\r\n }", "int getBoundsY();", "abstract public int getMinWidth();", "protected double getMinWidthImpl()\n {\n Insets ins = getInsetsAll();\n double minW = _scroller.getMinWidth();\n return minW + ins.getWidth();\n }", "public float getWidth()\n {\n return getUpperRightX() - getLowerLeftX();\n }", "public RMRect getBounds() { return new RMRect(getX(), getY(), getWidth(), getHeight()); }", "public static float findThePerfectFontSize(float lowerThreshold) {\n float fontSize = 1;\n Paint p = new Paint();\n p.setTextSize(fontSize);\n while (true) {\n float asc = -p.getFontMetrics().ascent;\n if (asc > lowerThreshold) {\n break;\n }\n fontSize++;\n p.setTextSize(fontSize);\n }\n return fontSize;\n }", "private int maxTopMargin() {\n return 0;\n }", "public int upperBoundary(){\r\n\t\treturn yStart - Constants.FLOOR_HEIGHT;\r\n\t}", "public InfinitNumber getBound() {\n\t\treturn mBound;\n\t}", "int range(){\n return fuelcap*mpg;\n }", "@Basic\n\t@Immutable\n\tpublic abstract double getRadiusLowerBound();", "protected Rectangle getGraphBoundaries(int fromSample, int toSample) {\r\n\t\tif (fromSample < section.getStart()) fromSample = section.getStart();\r\n\t\tif (toSample > section.getEnd()) toSample = section.getEnd();\r\n\t\tif (fromSample > toSample || fromSample > section.getEnd()\r\n\t\t\t\t|| toSample < section.getStart())\r\n\t\t\treturn new Rectangle(0, 0, 0, 0);\r\n\t\tint x1 = toPixelX(fromSample);\r\n\t\tint x2 = toPixelEndX(toSample);\r\n\t\treturn new Rectangle(getGraphLeft() + x1, getGraphTop(0), x2 - x1 + 1,\r\n\t\t\t\tgetGraphHeight() * getChannelCount());\r\n\t}", "public Rectangle getBounds();" ]
[ "0.7153807", "0.6830906", "0.5707843", "0.5607727", "0.5552182", "0.5512461", "0.54836893", "0.54638726", "0.54522145", "0.54418033", "0.54009545", "0.5389006", "0.5377784", "0.53386897", "0.5320864", "0.5291318", "0.52754825", "0.52277786", "0.51875335", "0.5170421", "0.51700604", "0.51541114", "0.5139281", "0.51319456", "0.5110781", "0.51025015", "0.5098776", "0.509836", "0.5087945", "0.5081257", "0.5071264", "0.5071167", "0.50400114", "0.50224686", "0.5015844", "0.5001397", "0.49920046", "0.49875733", "0.498088", "0.4970462", "0.49604976", "0.4959541", "0.49518463", "0.4946438", "0.49358705", "0.49348614", "0.49297595", "0.49237564", "0.49186823", "0.49185172", "0.4908634", "0.49054435", "0.4901396", "0.49007213", "0.48994973", "0.48971832", "0.48934126", "0.48876175", "0.48869428", "0.4881389", "0.48716667", "0.48705837", "0.48649362", "0.48648453", "0.485989", "0.48552147", "0.48549917", "0.4852039", "0.48483488", "0.48439988", "0.4842726", "0.48426813", "0.48391834", "0.48384988", "0.48365945", "0.48360017", "0.48340827", "0.48339802", "0.48334652", "0.4829471", "0.48283732", "0.48250788", "0.48212624", "0.48165524", "0.48121864", "0.48103684", "0.48073667", "0.48068434", "0.48030302", "0.4800469", "0.48001572", "0.47997957", "0.4796892", "0.4794378", "0.47921363", "0.47824678", "0.47796357", "0.47789368", "0.47773272", "0.47730106" ]
0.822633
0
Returns a list of ranges in the format [lowerBound, upperBound, lowerBound, upperBound, ...]
public List<Integer> getRanges(String description) { String rangeRegex = "(\\d+) (to|and) (\\d+) inches"; String upToRegex = "up to (\\d+) inch"; Pattern rangePattern = Pattern.compile(rangeRegex); Pattern upToPattern = Pattern.compile(upToRegex); Matcher rangeMatcher = rangePattern.matcher(description); Matcher upToMatcher = upToPattern.matcher(description); List<Integer> ranges = new ArrayList<>(); while (rangeMatcher.find()) { int lowerBound = Integer.parseInt(rangeMatcher.group(1)); int upperBound = Integer.parseInt(rangeMatcher.group(3)); ranges.add(lowerBound); ranges.add(upperBound); } if (ranges.size() == 0) { while (upToMatcher.find()) { int upperBound = Integer.parseInt(upToMatcher.group(1)); ranges.add(0); ranges.add(upperBound); } } return ranges; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Range> getRanges() {\n // Lazy initialization with double-check.\n List<Range> r = this.ranges;\n if (r == null) {\n synchronized (this) {\n r = this.ranges;\n if (r == null) {\n this.ranges = r = new CopyOnWriteArrayList<Range>();\n }\n }\n }\n return r;\n }", "public Set<T> getRanges();", "public Range[] getRanges() {\n return (Range[]) ranges.toArray(new Range[ranges.size()]);\n }", "@java.lang.Deprecated\n public java.util.List<io.kubernetes.client.openapi.models.V1beta1IDRange> getRanges();", "public double[] getRange();", "protected abstract R toRange(D lower, D upper);", "List<Videogioco> doRetriveVideogiocoAllRange(int min, int max);", "private List<Integer> allIntegerInRange(int start, int end) {\n\t\tList<Integer> range = new ArrayList<Integer>();\n\n\t\tfor (int i = start; i <= end; i++) {\n\t\t\trange.add(i);\n\t\t}\n\n\t\treturn range;\n\t}", "@Override\n\tpublic List<IRange> getRangeList() {\n\t\treturn null;\n\t}", "public DateRange getDateRange();", "int getRange();", "static List<Range<Long>> getRanges(Collection<Long> fullPulses) {\n checkNotNull(fullPulses, \"fullPulses was null\");\n\n List<Long> sortedPulses = fullPulses.stream().sorted().collect(toList());\n\n Optional<Long> first = sortedPulses.stream().findFirst();\n if (!first.isPresent()) {\n return emptyList();\n }\n\n Long bottomOfRange = first.get();\n if (sortedPulses.size() == 1) {\n return singletonList(singleton(bottomOfRange));\n }\n\n List<Range<Long>> foundRanges = new ArrayList<>();\n\n Long lastPulse = bottomOfRange;\n\n for (Long pulse : sortedPulses) {\n if (isaSignificantGapBetweenPulses(lastPulse, pulse)) {\n // We have a range\n foundRanges.add(getRange(bottomOfRange, lastPulse));\n\n bottomOfRange = pulse;\n }\n lastPulse = pulse;\n }\n\n if (bottomOfRange.equals(lastPulse)) {\n foundRanges.add(singleton(bottomOfRange));\n } else {\n foundRanges.add(getRange(bottomOfRange, lastPulse));\n }\n\n return ImmutableList.copyOf(foundRanges);\n }", "public static List<Range> toRanges(List<Node> nodes)\n {\n List<Long> tokens = new ArrayList<>();\n for (Node node : nodes)\n {\n if (node.token != Long.MIN_VALUE)\n tokens.add(node.token);\n }\n tokens.add(Long.MIN_VALUE);\n tokens.sort(Long::compareTo);\n\n List<Range> ranges = new ArrayList<>(tokens.size() + 1);\n long prev = tokens.get(0);\n for (int i = 1; i < tokens.size(); i++)\n {\n long current = tokens.get(i);\n ranges.add(new Range(prev, current));\n prev = current;\n }\n ranges.add(new Range(prev, Long.MIN_VALUE));\n return Collections.unmodifiableList(ranges);\n }", "public static Automaton.List rangeOf(Automaton automaton,\n\t\t\tAutomaton.Int _start, Automaton.Int _end) {\n\t\t// FIXME: there is a bug here for big integer values.\n\t\tint start = _start.intValue();\n\t\tint end = _end.intValue();\n\t\tint[] children = new int[end - start];\n\t\tfor (int i = 0; i < children.length; ++i, ++start) {\n\t\t\tchildren[i] = automaton.add(new Automaton.Int(start));\n\t\t}\n\t\treturn new Automaton.List(children);\n\t}", "@Override\r\n public String toString() {\r\n return \"Range [\" + \"min=\" + min + \", max=\" + max + \"]\";\r\n }", "public void setRanges(List<Range> ranges) {\n this.ranges = ranges;\n }", "Collection<Generalization> getPowertypeRanges();", "public String[] getGradeRanges() {\n\t\tString t = doc.get(getFieldId(\"gradeRange\", metadataFormat)).trim();\n\t\tString[] vals;\n\t\tif (t == null || t.length() == 0) {\n\t\t\treturn null;\n\t\t}\n\t\treturn t.split(\"\\\\+\");\n\t}", "Range createRange();", "private static List<DateRange> transformeAdvancedCase(\n final ZonedDateTime startRange,\n final ZonedDateTime endRange,\n final List<DateRange> reservedRanges) {\n\n final List<DateRange> availabilityRanges = new ArrayList<>();\n final List<DateRange> reservedRangesExtended = new ArrayList<>(reservedRanges);\n\n // if first DateRange starts after startRange\n if (reservedRanges.get(0).getStartDate().isAfter(startRange)) {\n // add a synthetic range that ends at startRange. Its startDate is not important\n final DateRange firstSyntheticDateRange = new DateRange(startRange.minusDays(1), startRange);\n reservedRangesExtended.add(0, firstSyntheticDateRange);\n }\n\n // if last DateRange ends before endRange\n if (reservedRanges.get(reservedRanges.size() - 1).getEndDate().isBefore(endRange)) {\n // add a synthetic range that starts at endRange. Its endDate is not important\n final DateRange lastSyntheticDateRange = new DateRange(endRange, endRange.plusDays(1));\n reservedRangesExtended.add(lastSyntheticDateRange);\n }\n\n Iterator<DateRange> iterator = reservedRangesExtended.iterator();\n DateRange current = null;\n DateRange next = null;\n\n while (iterator.hasNext()) {\n\n // On the first run, take the value from iterator.next(), on consecutive runs,\n // take the value from 'next' variable\n current = (current == null) ? iterator.next() : next;\n\n final ZonedDateTime startDate = current.getEndDate();\n\n if (iterator.hasNext()) {\n next = iterator.next();\n final ZonedDateTime endDate = next.getStartDate();\n DateRange availabilityDate = new DateRange(startDate, endDate);\n availabilityRanges.add(availabilityDate);\n }\n }\n\n return availabilityRanges;\n }", "public static List<Range<Long>> subtract(Range<Long> a, Range<Long> b) {\n\t\tRangeSet<Long> set = TreeRangeSet.create();\n\t\tset.add(a);\n\t\tset.remove(b);\n\t\treturn set.asRanges()\n\t\t\t\t.stream()\n\t\t\t\t.map(r -> toRange(lowerEndpoint(r), upperEndpoint(r)))\n\t\t\t\t.collect(Collectors.toList());\n\t}", "public static int[] range(int start, int end) {\r\n int sz = end - start;\r\n int[] result = new int[sz];\r\n for (int i = 0; i < sz; i++)\r\n result[i] = start + i;\r\n return result;\r\n }", "public double[] getRange(){\n\treturn RANGE;\n }", "public static List<String> genIpRangeList(String ipRangeString){\n List<String> result = new ArrayList<String>();\n if (ipRangeString.equals(\"\")){return result;}\n if (ipRangeString == null){return result;}\n\n String [] splitedComma = ipRangeString.split(\",\");\n for (String i : splitedComma){\n String [] splitedBar = i.split(\"-\");\n if (splitedBar.length == 1){\n result.add(i);\n }else {\n List<String> tmpRange = IpNetUtils.getWholeIpAddresses(splitedBar[0], splitedBar[1]);\n if (tmpRange != null){result.addAll(tmpRange);}\n }\n }\n\n return result;\n }", "public JsonArray getRangeInfo() {\r\n\t\t\r\n\t\tif (restClient == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\t\r\n\t\tJsonArray arrayIPv4 = null;\r\n\t\tJsonArray arrayIPv6 = null;\r\n\t\t\r\n\t\t// IPv4 Range\r\n\t\t{\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\t\r\n\t\t\tsb.append(\"/wapi/v1.0/range\");\r\n\t\t\tsb.append(\"?_return_type=json\");\r\n\t\t\tsb.append(\"&_return_fields=network,network_view,start_addr,end_addr,comment,disable\");\r\n\t\t\t\r\n\t\t\tString value = restClient.Get(sb.toString(), null);\r\n\t\t\t\r\n\t\t\tif (value == null)\r\n\t\t\t\treturn null;\r\n\t\t\t\r\n\t\t\t// Change unescape-unicode\r\n\t\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\t\r\n\t\t\tif (value != null) {\r\n\t\t\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\t\tarrayIPv4 = JsonUtils.parseJsonArray(value);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// IPv6 Range\r\n\t\t{\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\t\r\n\t\t\tsb.append(\"/wapi/v1.0/ipv6range\");\r\n\t\t\tsb.append(\"?_return_type=json\");\r\n\t\t\tsb.append(\"&_return_fields=network,network_view,start_addr,end_addr,comment,disable\");\r\n\t\t\t\r\n\t\t\tString value = restClient.Get(sb.toString(), null);\r\n\t\t\t\r\n\t\t\tif (value == null)\r\n\t\t\t\treturn null;\r\n\t\t\t\r\n\t\t\t// Change unescape-unicode\r\n\t\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\t\r\n\t\t\tif (value != null) {\r\n\t\t\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\t\tarrayIPv6 = JsonUtils.parseJsonArray(value);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Merge\r\n\t\tJsonArray array = new JsonArray();\r\n\t\t\r\n\t\tif (arrayIPv4 != null)\r\n\t\t\tarray.addAll(arrayIPv4);\r\n\t\t\r\n\t\tif (arrayIPv6 != null)\r\n\t\t\tarray.addAll(arrayIPv6);\r\n\t\t\r\n\t\treturn array;\r\n\t}", "CollectionRange createCollectionRange();", "private void generateIntervalArray(){\n BigDecimal maximumValue = this.getTfMaximumInterval();\n BigDecimal minimumValue = this.getTfMinimumInterval();\n BigDecimal stepValue = this.getTfStepInterval();\n \n intervalArray = new ArrayList<BigDecimal>();\n BigDecimal step = maximumValue;\n \n //Adiciona os valores \"inteiros\"\n while(step.doubleValue() >= minimumValue.doubleValue()){\n intervalArray.add(step);\n step = step.subtract(stepValue);\n }\n }", "@Override\r\n\tpublic float[] getRanges() {\r\n\t\tsp.fetchSample(sample, 0);\r\n\r\n\t\treturn sample;\r\n\t}", "public List<moneytree.persist.db.generated.tables.pojos.Income> fetchRangeOfSource(String lowerInclusive, String upperInclusive) {\n return fetchRange(Income.INCOME.SOURCE, lowerInclusive, upperInclusive);\n }", "public Collection getGradeRanges() {\n\t\treturn gradeRangeMap.keySet();\n\t}", "public static int[] range(int start, int end) {\n int size = end - start;\n int[] result = new int[size];\n for (int i = 0; i < size; i++) {\n result[i] = start + i;\n }\n return result;\n }", "private String useRangeFormat(Unit units, int lowerBound, int upperBound) {\n return lowerBound + \" to \" + upperBound + getUnits(units, upperBound);\n }", "abstract public Range createRange();", "public static List <Index> rangeOf(int start, int end) {\r\n FastTable <Index> list = FastTable.newInstance();\r\n for (int i=start; i < end; i++) {\r\n list.add(Index.valueOf(i));\r\n }\r\n return list;\r\n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new IllegalArgumentException();\n if (root == null) return new ArrayList<>();\n\n return rangeSubMethod(rect, root);\n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) {\n throw new IllegalArgumentException();\n }\n List<Point2D> list = new LinkedList<>();\n range(rect, new RectHV(0.0, 0.0, 1.0, 1.0), list, this.root);\n return list;\n }", "public void getRange()\n\t{\n\t\tint start = randInt(0, 9);\n\t\tint end = randInt(0, 9);\t\t\n\t\tint startNode = start<=end?start:end;\n\t\tint endNode = start>end?start:end;\n\t\tSystem.out.println(\"Start : \"+startNode+\" End : \"+endNode);\n\t}", "protected static int[] range(int start, int end_incl) {\n int[] arr = new int[end_incl - start + 1];\n for(int num = start, id = 0; num <= end_incl; num++, id++)\n arr[id] = num;\n return arr;\n }", "public SetOfRanges() {\n RangeSet = new Vector();\n }", "@Override\n\tpublic int getRange() {\n\t\treturn range;\n\t}", "Range controlLimits();", "private Filter rangeFilter(String start, String end, Object minValue, Object maxValue) {\n Filter f1 = FF.lessOrEqual(FF.property(start), FF.literal(maxValue));\n Filter f2 = FF.greaterOrEqual(FF.property(end), FF.literal(minValue));\n return FF.and(Arrays.asList(f1, f2));\n\n// Filter f1 = FF.greaterOrEqual(FF.property(start), FF.literal(minValue));\n// Filter f2 = FF.lessOrEqual(FF.property(end), FF.literal(maxValue));\n// return FF.and(Arrays.asList(f1, f2));\n }", "public double[] getRange() \n{\n\treturn range;\n}", "public final CQLParser.rangeFunction_return rangeFunction() throws RecognitionException {\n CQLParser.rangeFunction_return retval = new CQLParser.rangeFunction_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n Token openType=null;\n Token closeType=null;\n Token RANGE148=null;\n Token char_literal149=null;\n CQLParser.expression_return e = null;\n\n CQLParser.expression_return rangeStart = null;\n\n CQLParser.expression_return rangeEnd = null;\n\n\n Object openType_tree=null;\n Object closeType_tree=null;\n Object RANGE148_tree=null;\n Object char_literal149_tree=null;\n RewriteRuleTokenStream stream_116=new RewriteRuleTokenStream(adaptor,\"token 116\");\n RewriteRuleTokenStream stream_117=new RewriteRuleTokenStream(adaptor,\"token 117\");\n RewriteRuleTokenStream stream_114=new RewriteRuleTokenStream(adaptor,\"token 114\");\n RewriteRuleTokenStream stream_RANGE=new RewriteRuleTokenStream(adaptor,\"token RANGE\");\n RewriteRuleTokenStream stream_115=new RewriteRuleTokenStream(adaptor,\"token 115\");\n RewriteRuleTokenStream stream_118=new RewriteRuleTokenStream(adaptor,\"token 118\");\n RewriteRuleSubtreeStream stream_expression=new RewriteRuleSubtreeStream(adaptor,\"rule expression\");\n errorMessageStack.push(\"RANGE definition\"); \n try {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:2: ( RANGE e= expression ( (openType= '[' ) | (openType= '(' ) ) rangeStart= expression ',' rangeEnd= expression (closeType= ')' | closeType= ']' ) -> ^( RANGE $e $openType $closeType $rangeStart $rangeEnd) )\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:4: RANGE e= expression ( (openType= '[' ) | (openType= '(' ) ) rangeStart= expression ',' rangeEnd= expression (closeType= ')' | closeType= ']' )\n {\n RANGE148=(Token)match(input,RANGE,FOLLOW_RANGE_in_rangeFunction2480); \n stream_RANGE.add(RANGE148);\n\n pushFollow(FOLLOW_expression_in_rangeFunction2484);\n e=expression();\n\n state._fsp--;\n\n stream_expression.add(e.getTree());\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:23: ( (openType= '[' ) | (openType= '(' ) )\n int alt41=2;\n int LA41_0 = input.LA(1);\n\n if ( (LA41_0==117) ) {\n alt41=1;\n }\n else if ( (LA41_0==114) ) {\n alt41=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 41, 0, input);\n\n throw nvae;\n }\n switch (alt41) {\n case 1 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:24: (openType= '[' )\n {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:24: (openType= '[' )\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:25: openType= '['\n {\n openType=(Token)match(input,117,FOLLOW_117_in_rangeFunction2490); \n stream_117.add(openType);\n\n\n }\n\n\n }\n break;\n case 2 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:41: (openType= '(' )\n {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:41: (openType= '(' )\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:42: openType= '('\n {\n openType=(Token)match(input,114,FOLLOW_114_in_rangeFunction2498); \n stream_114.add(openType);\n\n\n }\n\n\n }\n break;\n\n }\n\n pushFollow(FOLLOW_expression_in_rangeFunction2504);\n rangeStart=expression();\n\n state._fsp--;\n\n stream_expression.add(rangeStart.getTree());\n char_literal149=(Token)match(input,115,FOLLOW_115_in_rangeFunction2506); \n stream_115.add(char_literal149);\n\n pushFollow(FOLLOW_expression_in_rangeFunction2510);\n rangeEnd=expression();\n\n state._fsp--;\n\n stream_expression.add(rangeEnd.getTree());\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:103: (closeType= ')' | closeType= ']' )\n int alt42=2;\n int LA42_0 = input.LA(1);\n\n if ( (LA42_0==116) ) {\n alt42=1;\n }\n else if ( (LA42_0==118) ) {\n alt42=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 42, 0, input);\n\n throw nvae;\n }\n switch (alt42) {\n case 1 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:104: closeType= ')'\n {\n closeType=(Token)match(input,116,FOLLOW_116_in_rangeFunction2515); \n stream_116.add(closeType);\n\n\n }\n break;\n case 2 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:119: closeType= ']'\n {\n closeType=(Token)match(input,118,FOLLOW_118_in_rangeFunction2520); \n stream_118.add(closeType);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: openType, e, rangeEnd, rangeStart, closeType, RANGE\n // token labels: closeType, openType\n // rule labels: retval, e, rangeStart, rangeEnd\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleTokenStream stream_closeType=new RewriteRuleTokenStream(adaptor,\"token closeType\",closeType);\n RewriteRuleTokenStream stream_openType=new RewriteRuleTokenStream(adaptor,\"token openType\",openType);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_e=new RewriteRuleSubtreeStream(adaptor,\"rule e\",e!=null?e.tree:null);\n RewriteRuleSubtreeStream stream_rangeStart=new RewriteRuleSubtreeStream(adaptor,\"rule rangeStart\",rangeStart!=null?rangeStart.tree:null);\n RewriteRuleSubtreeStream stream_rangeEnd=new RewriteRuleSubtreeStream(adaptor,\"rule rangeEnd\",rangeEnd!=null?rangeEnd.tree:null);\n\n root_0 = (Object)adaptor.nil();\n // 505:3: -> ^( RANGE $e $openType $closeType $rangeStart $rangeEnd)\n {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:505:6: ^( RANGE $e $openType $closeType $rangeStart $rangeEnd)\n {\n Object root_1 = (Object)adaptor.nil();\n root_1 = (Object)adaptor.becomeRoot(stream_RANGE.nextNode(), root_1);\n\n adaptor.addChild(root_1, stream_e.nextTree());\n adaptor.addChild(root_1, stream_openType.nextNode());\n adaptor.addChild(root_1, stream_closeType.nextNode());\n adaptor.addChild(root_1, stream_rangeStart.nextTree());\n adaptor.addChild(root_1, stream_rangeEnd.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n errorMessageStack.pop(); \n }\n \t\n \tcatch(RecognitionException re)\n \t{\t\n \t\treportError(re);\n \t\tthrow re;\n \t}\n finally {\n }\n return retval;\n }", "public static ArrayList<String> getRangeValuesInList(String rangeSeparatedValue)\n\t{\n\t\tArrayList<String> rangeValuesList = new ArrayList<String>();\n\n\t\tif(StringUtil.isInvalidString(rangeSeparatedValue))\n\t\t{\n\t\t\treturn rangeValuesList;\n\t\t}\n\n\t\tint indexOfSeparator = rangeSeparatedValue.indexOf(\n\t\t\t\t\t\t\tGlobalUtil.VALUE_RANGE_SEPARATOR);\n\n\t\t/* if there is no separator, the value is not properly configured */\n\t\tif(indexOfSeparator==-1)\n\t\t{\n\t\t\treturn rangeValuesList;\n\t\t}\n\n\t\tString minVal = rangeSeparatedValue.substring(0, indexOfSeparator);\n\t\tString maxVal = rangeSeparatedValue.substring(indexOfSeparator+1);\n\n\t\trangeValuesList.add(minVal);\n\t\trangeValuesList.add(maxVal);\n\n\t\treturn rangeValuesList;\n\t}", "@Override\n public List<Bound> getBounds() {\n return Collections.unmodifiableList(bounds);\n }", "static List<Range<Long>> getRangesForSinglePulses(Collection<Long> pulses) {\n checkNotNull(pulses, \"pulses was null\");\n return pulses.stream().filter(Objects::nonNull).sorted().map(Range::singleton).collect(toList());\n }", "<C> CollectionRange<C> createCollectionRange();", "public ArrayList<Range> getCompRange()\r\n\t{\r\n\t\tArrayList<Panel> known = new ArrayList<Panel>();\r\n\t\tfor(int i = 0; i<newGame.getCompHandLength(); i++)\r\n\t\t{\r\n\t\t\tif(newGame.getCompHand().getPanel(i).isFlipped())\r\n\t\t\t{\r\n\t\t\t\tknown.add(newGame.getCompHand().getPanel(i));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i = 0; i<newGame.getUserHandLength(); i++)\r\n\t\t{\r\n\t\t\tif(newGame.getUserHand().getPanel(i).isFlipped())\r\n\t\t\t{\r\n\t\t\t\tknown.add(newGame.getUserHand().getPanel(i));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn(ranges(newGame.getCompHand(),known,false));\r\n\t}", "public List<com.hexarchbootdemo.adapter.output.persistence.h2.generated_sources.jooq.tables.pojos.Voter> fetchRangeOfId(UUID lowerInclusive, UUID upperInclusive) {\n return fetchRange(Voter.VOTER.ID, lowerInclusive, upperInclusive);\n }", "public static List<DateRange> transformReservedRangesIntoAvailableRanges(\n final @NonNull ZonedDateTime startRange,\n final @NonNull ZonedDateTime endRange,\n final @NonNull List<DateRange> reservedRanges) {\n\n List<DateRange> availabilityRanges = new ArrayList<>();\n\n if (reservedRanges.isEmpty()) { // if empty, then all days are available\n final DateRange dateRange = new DateRange(startRange, endRange);\n availabilityRanges.add(dateRange);\n } else if (reservedRanges.size() == 1 // one DateRange that occupies the whole search range, that is, no days available\n && (reservedRanges.get(0).getStartDate().isBefore(startRange)\n || reservedRanges.get(0).getStartDate().equals(startRange))\n && (reservedRanges.get(0).getEndDate().isAfter(endRange)\n || reservedRanges.get(0).getEndDate().equals(endRange))) {\n availabilityRanges = new ArrayList<>();\n } else {\n availabilityRanges = transformeAdvancedCase(startRange, endRange, reservedRanges);\n }\n\n return availabilityRanges;\n }", "public SummaryRanges() {\n this.intervals = new ArrayList<>();\n }", "public List<IdRange> calculateRangesForType(MigrationType migrationType, long minimumId, long maximumId, long optimalNumberOfRows);", "ImmutableList<SchemaOrgType> getTypicalAgeRangeList();", "Lista<V> valuesInRange(K init, K end);", "public static List <PhoneNumberRange> parseStringToPhoneNumberRangeList(String numberRanges) throws Exception {\n List <PhoneNumberRange> phoneNumberRangeList = new ArrayList();\n \n List<String> lstNumberRangeStrings = stringLinesToList(numberRanges);\n StringTokenizer phoneNumberRangeFields = null;\n \n log.debug(\"Size of number ranges to parse into routing information list - {}\", lstNumberRangeStrings.size());\n for (String strPhoneNumberRange : lstNumberRangeStrings) {\n phoneNumberRangeFields = new StringTokenizer(strPhoneNumberRange, \",\");\n \n if(phoneNumberRangeFields.countTokens() != 2) {\n throw new Exception(\"Invalid phone number range format, exactly two fields expected, got [\" + strPhoneNumberRange + \"].\");\n }\n \n PhoneNumberRange phoneRange = new PhoneNumberRange();\n phoneRange.setPhoneNumberStart(phoneNumberRangeFields.nextToken().trim());\n phoneRange.setPhoneNumberEnd(phoneNumberRangeFields.nextToken().trim());\n \n phoneNumberRangeList.add(phoneRange);\n } \n \n log.debug(\"Size of phoneNumberRangeList is: {}\", phoneNumberRangeList.size());\n \n return phoneNumberRangeList;\n }", "protected static int[] composeRange(int... pairs) {\n if(pairs.length % 2 != 0)\n throw new IllegalArgumentException(\"Pairs has to be a multiple of 2!\");\n\n List<Integer> nums = new ArrayList<>();\n\n for(int start = 0, end = 1; end < pairs.length; start+=2, end+=2) {\n int[] semiRange = range(pairs[start], pairs[end]);\n for(Integer i : semiRange)\n nums.add(i); //potencjalna optymalizacja: dodac caly array do listy\n }\n\n //potencjalna optymalizacja: zwrocic bezposrednio z listy\n int[] finalRange = new int[nums.size()];\n for(int id = 0; id < nums.size(); id++)\n finalRange[id] = nums.get(id);\n\n return finalRange;\n }", "public Range findRangeBounds(CategoryDataset dataset) { return findRangeBounds(dataset, true); }", "public Iterable<Point2D> range(RectHV rect) {\n ArrayList<Point2D> returnArray = new ArrayList<Point2D>();\n if (rect == null) {\n throw new IllegalArgumentException(\"rect input is null\");\n }\n for (Point2D i : pointsSet) {\n if (rect.contains(i))\n returnArray.add(i);\n }\n return returnArray;\n }", "public final ANTLRv3Parser.range_return range() throws RecognitionException {\r\n ANTLRv3Parser.range_return retval = new ANTLRv3Parser.range_return();\r\n retval.start = input.LT(1);\r\n\r\n\r\n CommonTree root_0 = null;\r\n\r\n Token c1=null;\r\n Token c2=null;\r\n Token RANGE133=null;\r\n ANTLRv3Parser.elementOptions_return elementOptions134 =null;\r\n\r\n\r\n CommonTree c1_tree=null;\r\n CommonTree c2_tree=null;\r\n CommonTree RANGE133_tree=null;\r\n RewriteRuleTokenStream stream_RANGE=new RewriteRuleTokenStream(adaptor,\"token RANGE\");\r\n RewriteRuleTokenStream stream_CHAR_LITERAL=new RewriteRuleTokenStream(adaptor,\"token CHAR_LITERAL\");\r\n RewriteRuleSubtreeStream stream_elementOptions=new RewriteRuleSubtreeStream(adaptor,\"rule elementOptions\");\r\n try {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:297:2: (c1= CHAR_LITERAL RANGE c2= CHAR_LITERAL ( elementOptions )? -> ^( CHAR_RANGE[$c1,\\\"..\\\"] $c1 $c2 ( elementOptions )? ) )\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:297:4: c1= CHAR_LITERAL RANGE c2= CHAR_LITERAL ( elementOptions )?\r\n {\r\n c1=(Token)match(input,CHAR_LITERAL,FOLLOW_CHAR_LITERAL_in_range2159); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_CHAR_LITERAL.add(c1);\r\n\r\n\r\n RANGE133=(Token)match(input,RANGE,FOLLOW_RANGE_in_range2161); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_RANGE.add(RANGE133);\r\n\r\n\r\n c2=(Token)match(input,CHAR_LITERAL,FOLLOW_CHAR_LITERAL_in_range2165); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_CHAR_LITERAL.add(c2);\r\n\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:297:42: ( elementOptions )?\r\n int alt61=2;\r\n int LA61_0 = input.LA(1);\r\n\r\n if ( (LA61_0==77) ) {\r\n alt61=1;\r\n }\r\n switch (alt61) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:297:42: elementOptions\r\n {\r\n pushFollow(FOLLOW_elementOptions_in_range2167);\r\n elementOptions134=elementOptions();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_elementOptions.add(elementOptions134.getTree());\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // AST REWRITE\r\n // elements: c2, c1, elementOptions\r\n // token labels: c1, c2\r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleTokenStream stream_c1=new RewriteRuleTokenStream(adaptor,\"token c1\",c1);\r\n RewriteRuleTokenStream stream_c2=new RewriteRuleTokenStream(adaptor,\"token c2\",c2);\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (CommonTree)adaptor.nil();\r\n // 298:3: -> ^( CHAR_RANGE[$c1,\\\"..\\\"] $c1 $c2 ( elementOptions )? )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:298:6: ^( CHAR_RANGE[$c1,\\\"..\\\"] $c1 $c2 ( elementOptions )? )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(\r\n (CommonTree)adaptor.create(CHAR_RANGE, c1, \"..\")\r\n , root_1);\r\n\r\n adaptor.addChild(root_1, stream_c1.nextNode());\r\n\r\n adaptor.addChild(root_1, stream_c2.nextNode());\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:298:37: ( elementOptions )?\r\n if ( stream_elementOptions.hasNext() ) {\r\n adaptor.addChild(root_1, stream_elementOptions.nextTree());\r\n\r\n }\r\n stream_elementOptions.reset();\r\n\r\n adaptor.addChild(root_0, root_1);\r\n }\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n\r\n retval.stop = input.LT(-1);\r\n\r\n\r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\r\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\r\n\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return retval;\r\n }", "private Query getIntRange(final String fieldName, String[] range) {\n int lower = Integer.parseInt(range[0]);\n int upper = Integer.parseInt(range[1]);\n return IntPoint.newRangeQuery(fieldName, lower, upper);\n }", "protected static Integer[] range(int from, int to) {\n if (from > to) {\n throw new IllegalArgumentException(\"from must be <= to (\" + from\n + \",\" + to + \")\");\n }\n int n = to - from + 1;\n Integer[] range = new Integer[n];\n for (int i = 0; i < n; i++) {\n range[i] = from + i;\n }\n return range;\n }", "public interface IntervalRange<V extends Comparable<V>> extends Range<V> {\n\n\t/**\n\t * This method returns the lower bound of the interval.\n\t * \n\t * @return the lower bound. <code>null</code> means there is no lower bound,\n\t * i.e., this is an open interval.\n\t */\n\tpublic V getLowerBound();\n\n\t/**\n\t * This method returns the upper bound of the interval.\n\t * \n\t * @return the upper bound. <code>null</code> means there is no upper bound,\n\t * i.e., this is an open interval.\n\t */\n\tpublic V getUpperBound();\n\n}", "String getPortRange();", "public Iterable<Point2D> range(RectHV rect) \r\n\t{\r\n\t\tStack<Point2D> insiders = new Stack<Point2D>();\r\n\t\trange(insiders, root, rect, new RectHV(0,0,1,1));\r\n\t\treturn insiders;\r\n\t}", "public Iterable<Point2D> range(RectHV rect)\n {\n Stack<Point2D> pointsInRect = new Stack<Point2D>();\n range(root, rect, pointsInRect);\n return pointsInRect;\n }", "public static List<PhoneNumberRange> reducePhoneNumberRanges(RoutingInfoList routingInfoList) {\n List<Long> numberList = expandPhoneNumberRanges(routingInfoList);\n \n List<PhoneNumberRange> retRanges = new ArrayList<PhoneNumberRange>();\n PhoneNumberRange curRange = null;\n if (numberList.isEmpty()) {\n return new ArrayList<PhoneNumberRange>();\n }\n // Only necessary if not already sorted\n Collections.sort(numberList);\n\n long start = numberList.get(0);\n long end = numberList.get(0);\n\n for (long rev : numberList) {\n if (rev - end > 1) {\n // break in range\n log.debug(\"Found PhoneNumberRange: [{}, {}]\", start, end);\n curRange = new PhoneNumberRange();\n curRange.setPhoneNumberStart(Utils.getFriendlyPhoneNumberKeepingCountryCode(Utils.makeNationalDirectDial(String.valueOf(start))));\n curRange.setPhoneNumberEnd(Utils.getFriendlyPhoneNumberKeepingCountryCode(Utils.makeNationalDirectDial(String.valueOf(end))));\n retRanges.add(curRange);\n start = rev;\n }\n end = rev;\n }\n \n // Add the last range here.\n log.debug(\"Last PhoneNumberRange: [{}, {}]\", start, end);\n curRange = new PhoneNumberRange();\n curRange.setPhoneNumberStart(Utils.getFriendlyPhoneNumberKeepingCountryCode(Utils.makeNationalDirectDial(String.valueOf(start))));\n curRange.setPhoneNumberEnd(Utils.getFriendlyPhoneNumberKeepingCountryCode(Utils.makeNationalDirectDial(String.valueOf(end))));\n retRanges.add(curRange);\n \n return retRanges; \n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new NullPointerException();\n TreeSet<Point2D> inRangeSet = new TreeSet<>();\n for (Point2D point : pointSet) {\n if (rect.contains(point)) {\n inRangeSet.add(point);\n }\n }\n return inRangeSet;\n }", "public int getRange()\n\t{\n\t\treturn Range;\n\t}", "public Iterable<Point2D> range(RectHV rect) {\n\n\t\tif (rect == null)\n\t\t\tthrow new NullPointerException(\"Rectangle can not be null\");\n\n\t\tQueue<Point2D> rangeQueue = new Queue<Point2D>();\n\t\trange(rect, rangeQueue, root);\n\t\treturn rangeQueue;\n\n\t}", "private int[] getBounds(Node node) {\n String[] boundsAttr = (((Element) node).getAttribute(\"bounds\")).replace(\"[\",\"\").split(\"[^0-9]\");\n int[] bounds = new int[boundsAttr.length];\n for (int i = 0; i < boundsAttr.length; i++) {\n bounds[i] = Integer.parseInt(boundsAttr[i]);\n }\n return bounds;\n }", "public MultipleGroups(List<Range> ranges) {\r\n\t\tgroupList = new ArrayList<NumberGroup>();\r\n\t\t\r\n\t\tfor (int i = 0; i < ranges.size(); i++)\r\n\t\t\tgroupList.add(ranges.get(i));\r\n\t\t\r\n\t}", "public double getRange(){\n\t\treturn range;\n\t}", "public Iterable<Point2D> range(RectHV rect) {\n checkNull(rect);\n LinkedList<Point2D> pointList = new LinkedList<Point2D>();\n\n range(rect, root, pointList);\n\n return pointList;\n }", "public abstract ucar.array.RangeIterator getRangeIterator();", "public List<Interval> getUnionWithList(Interval i){\n\t\t\n\t\tList<Interval> unionList = new ArrayList<Interval>();\n\t\t\n\t\tif (isAdjacentTo(i)){\n\t\t\tunionList.add(new Interval(\n\t\t\t\t\t\tmin(leftbound, i.getLeftBound()),\n\t\t\t\t\t\tmax(rightbound, i.getRightBound())\n\t\t\t\t\t));\n\t\t}\n\t\telse{\n\t\t\tunionList.add(this);\n\t\t\tunionList.add(i);\n\t\t}\n\t\t\t\n\t\treturn unionList;\n\t\t\n\t}", "public List<com.hexarchbootdemo.adapter.output.persistence.h2.generated_sources.jooq.tables.pojos.Voter> fetchRangeOfSocialSecurityNumber(String lowerInclusive, String upperInclusive) {\n return fetchRange(Voter.VOTER.SOCIAL_SECURITY_NUMBER, lowerInclusive, upperInclusive);\n }", "protected static String expectedRangeString(Object minValue, boolean minInclusive, Object maxValue, boolean maxInclusive) {\n // A means for a return value\n String retVal;\n\n // Start with the proper symbol for the lower bound\n if (minInclusive) {\n retVal = \"[\";\n } else {\n retVal = \"(\";\n }\n\n // Add in the minimum and maximum values\n retVal += minValue + \" .. \" + maxValue;\n\n // End with the proper symbol for the upper bound\n if (maxInclusive) {\n retVal += \"]\";\n } else {\n retVal += \")\";\n }\n\n // Return the formatted string\n return retVal;\n }", "public Iterable<Point2D> range(RectHV rect) {\n SET<Point2D> point_list = new SET<Point2D>();\n rangesearch(root, rect, point_list);\n return point_list;\n }", "private Collection<Range> splitByTabletBoundaries(String tableName, Collection<Range> ranges)\n throws TableNotFoundException, AccumuloException, AccumuloSecurityException\n {\n ImmutableSet.Builder<Range> rangeBuilder = ImmutableSet.builder();\n for (Range r : ranges) {\n // if start and end key are equivalent, no need to split the range\n if (r.getStartKey() != null && r.getEndKey() != null\n && r.getStartKey().equals(r.getEndKey())) {\n rangeBuilder.add(r);\n }\n else {\n // Call out to Accumulo to split the range on tablets\n rangeBuilder.addAll(conn.tableOperations().splitRangeByTablets(tableName, r,\n Integer.MAX_VALUE));\n }\n }\n return rangeBuilder.build();\n }", "public static AddressRange toRange(Address min, Address max) {\n\t\tif (min.compareTo(max) > 0) {\n\t\t\tthrow new IllegalArgumentException(\"min must precede max\");\n\t\t}\n\t\treturn new AddressRangeImpl(min, max);\n\t}", "public void testFindRangeBounds() {\n XYBlockRenderer renderer = new XYBlockRenderer();\n XYSeriesCollection dataset = new XYSeriesCollection();\n XYSeries series = new XYSeries(\"S1\");\n series.add(1.0, null);\n dataset.addSeries(series);\n Range r = renderer.findRangeBounds(dataset);\n }", "@Test\n\tpublic void seperateRangeTest() {\n\n\t\tsetup();\n\t\tSystem.out.println(\"seperate range test\");\n\t\tZipCodeRange z1 = new ZipCodeRange(new ZipCode(94133), new ZipCode(94133));\n\t\tZipCodeRange z2 = new ZipCodeRange(new ZipCode(94200), new ZipCode(94299));\n\t\tZipCodeRange z3 = new ZipCodeRange(new ZipCode(94600), new ZipCode(94699));\n\n\t\t// Testing\n\t\tZipRangeControl zrc = new ZipRangeControl();\n\t\tzrc.processNewRange(z1);\n\t\tzrc.processNewRange(z2);\n\t\tzrc.processNewRange(z3);\n\n\t\tZipCodeRange z4 = new ZipCodeRange(new ZipCode(94200), new ZipCode(94399));\n\t\trequiredList.add(z1);\n\t\trequiredList.add(z2);\n\t\trequiredList.add(z3);\n\n\t\tZipCodeRange[] ziparray = new ZipCodeRange[requiredList.size()];\n\t\tList<ZipCodeRange> zlist = zrc.getFinalZipRanges();\n\n\t\tfor (int i = 0; i < requiredList.size(); i++) {\n\t\t\tAssert.assertThat(\"Lower Limit match failed at entry\" + i, requiredList.get(i).lower.zipcode,\n\t\t\t\t\torg.hamcrest.CoreMatchers.equalTo(zlist.get(i).lower.zipcode));\n\t\t\tAssert.assertThat(\"Upper Limit match failed at entry\" + i, requiredList.get(i).upper.zipcode,\n\t\t\t\t\torg.hamcrest.CoreMatchers.equalTo(zlist.get(i).upper.zipcode));\n\t\t}\n\t\tclimax();\n\n\t}", "public Iterable<Point2D> range(RectHV rect) \n\t {\n\t\t if(rect==null)\n\t\t\t throw new java.lang.NullPointerException();\n\t\t LinkedQueue<Point2D> insidePoints = new LinkedQueue<Point2D>();\n\t\t range(root,rect.xmin(),rect.ymin(),rect.xmax(),rect.ymax(),insidePoints,true);\n\t\t return insidePoints;\n\t }", "org.hl7.fhir.ObservationReferenceRange[] getReferenceRangeArray();", "String getBeginRange();", "java.lang.String getDestRange();", "public Iterable<Point2D> range(RectHV rect) {\n Queue<Point2D> pointsInRect = new Queue<Point2D>();\n range(root, rect, pointsInRect);\n return pointsInRect;\n }", "public Iterable<Point2D> range(RectHV rect) {\n TreeSet<Point2D> ret = new TreeSet<Point2D>();\n for (Point2D p: mPoints) {\n if (rect.contains(p)) {\n ret.add(p);\n }\n }\n return ret;\n }", "public List<moneytree.persist.db.generated.tables.pojos.Income> fetchRangeOfId(UUID lowerInclusive, UUID upperInclusive) {\n return fetchRange(Income.INCOME.ID, lowerInclusive, upperInclusive);\n }", "public static int[] range(int start, int end, int step) {\r\n int sz = (end - start) / step;\r\n int[] result = new int[sz];\r\n for (int i = 0; i < sz; i++)\r\n result[i] = start + (i * step);\r\n return result;\r\n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) {\n throw new IllegalArgumentException();\n }\n SET<Point2D> result = new SET<Point2D>();\n for (Point2D point : points) {\n if (rect.contains(point))\n result.add(point);\n }\n return result;\n }", "void calculateRange() {\n //TODO: See Rules\n }", "public Iterable<Point2D> range(RectHV rect) {\n SET<Point2D> result = new SET<Point2D>();\n if (root == null) {\n return result;\n }\n\n range(root, rect, result);\n return result;\n }", "public List<String> findMissingRanges(int[] nums, int lower, int upper) {\n List<String> res = new ArrayList<>();\n if (nums == null || nums.length == 0) {\n if (lower == upper) {\n res.add(\"\" + lower);\n } else {\n res.add(lower + \"->\" + upper);\n }\n return res;\n }\n\n if (nums[0] > lower) {\n if (nums[0] - 1 == lower) {\n res.add(\"\" + lower);\n } else {\n res.add(lower + \"->\" + (nums[0] - 1));\n }\n }\n\n for (int i = 0; i < nums.length - 1; i++) {\n if ((nums[i + 1] == nums[i] + 1) || nums[i] == nums[i + 1]) {\n continue;\n }\n if (nums[i + 1] - nums[i] == 2) {\n res.add(\"\" + (nums[i] + 1));\n } else {\n res.add((nums[i] + 1) + \"->\" + (nums[i + 1] - 1));\n }\n }\n\n if (nums[nums.length - 1] < upper) {\n if (upper - 1 == nums[nums.length - 1]) {\n res.add(\"\" + upper);\n } else {\n res.add((nums[nums.length - 1] + 1) + \"->\" + upper);\n }\n }\n\n return res;\n\n }", "String getEndRange();", "public List<String> summaryRanges3(int[] nums) {\n if (nums.length == 0) return new ArrayList<>();\n\n List<String> ranges = new ArrayList<>();\n int from = nums[0], prev = nums[0];\n for (int i = 1; i < nums.length; i++) {\n if (prev < nums[i] - 1) {\n ranges.add(from == prev ? String.valueOf(from) : String.format(\"%d->%d\", from, prev));\n from = prev = nums[i];\n } else prev = nums[i];\n }\n ranges.add(from == prev ? String.valueOf(from) : String.format(\"%d->%d\", from, prev));\n return ranges;\n }", "public String getRange() {\n return this.range;\n }", "public List<moneytree.persist.db.generated.tables.pojos.Income> fetchRangeOfTransactionDate(LocalDate lowerInclusive, LocalDate upperInclusive) {\n return fetchRange(Income.INCOME.TRANSACTION_DATE, lowerInclusive, upperInclusive);\n }", "public List<com.ims.dataAccess.tables.pojos.User> fetchRangeOfAge(Integer lowerInclusive, Integer upperInclusive) {\n return fetchRange(User.USER.AGE, lowerInclusive, upperInclusive);\n }" ]
[ "0.7331981", "0.7293318", "0.7182297", "0.68948543", "0.6862824", "0.6787783", "0.6710061", "0.6666934", "0.66213506", "0.6602098", "0.6583486", "0.65504086", "0.6403683", "0.6390007", "0.6354934", "0.6342883", "0.6337031", "0.6322729", "0.631376", "0.62589055", "0.61926687", "0.61823535", "0.6162763", "0.614813", "0.6138555", "0.61318344", "0.61272454", "0.61218804", "0.61217237", "0.61161333", "0.6110995", "0.6110798", "0.60959166", "0.60748684", "0.60558933", "0.60309553", "0.60238147", "0.60179764", "0.6012934", "0.60119975", "0.60107446", "0.6009304", "0.6006515", "0.6001214", "0.59992397", "0.5992708", "0.59890723", "0.5984847", "0.5982202", "0.59512717", "0.5951045", "0.59439665", "0.59262276", "0.59210575", "0.5919667", "0.5914464", "0.5910256", "0.59032273", "0.5855639", "0.5850067", "0.58394116", "0.5838264", "0.58291686", "0.5826922", "0.5812336", "0.58094573", "0.57959306", "0.5782899", "0.5779499", "0.5775212", "0.5771754", "0.5768406", "0.5761772", "0.5757286", "0.57541746", "0.5752841", "0.5751212", "0.5744556", "0.5742922", "0.57374346", "0.5726266", "0.57238847", "0.5722504", "0.57166874", "0.5712357", "0.5701266", "0.5689812", "0.56828785", "0.5680853", "0.5678009", "0.5672901", "0.5671891", "0.566454", "0.5663976", "0.5660367", "0.56484854", "0.56470734", "0.5636723", "0.5633566", "0.56231695" ]
0.699689
3
Create the GUI and show it. For thread safety, this method should be invoked from the eventdispatching thread.
private static void createAndShowGUI() { //Create and set up the window. JFrame frame = new JFrame("FrameDemo"); frame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE); //main input TextArea JTextArea mainIn = new JTextArea("Type your Command here.", 3, 1); //main Output Display Displays htmlDocuments JTextPane mainOut = new JTextPane(new HTMLDocument()); mainOut.setPreferredSize(new Dimension(800, 600)); //add components to Pane frame.getContentPane().add(mainOut); frame.getContentPane().add(mainIn); //Display the window. frame.pack(); frame.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void createAndShowGUI() {\n\t\tJFrame window = MainWindow.newInstance();\n\t\t\n //Display the window.\n window.pack();\n window.setVisible(true);\n \n }", "public void createAndShowGUI() {\n\n setTitle(title);\n // Sets what to do when frame closes\n setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n setIconImage(new ImageIcon(ClassLoader.getSystemResource(ICON_PATH)).getImage());\n\n //shows the frame\n pack();\n setLocationRelativeTo(null); //centers frame\n setVisible(true);\n }", "private static void createAndShowGUI() {\n\t\tgui = new GUI();\n\t}", "public void createAndShowGUI() {\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n super.windowClosing(e);\n System.out.println(\"closing server...\");\n }\n });\n this.addComponentsToPane(this.getContentPane());\n this.pack();\n this.centreFrameInScreen();\n this.setVisible(true);\n }", "private static void createAndShowGUI() {\r\n\t\tlogger.info(\"Creating and showing the GUI\");\r\n\t\tJFrame frame = new JFrame(\"BowlingSwing\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.add(new BowlingSwing());\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t}", "private static void createAndShowGUI() {\n //\n // Use the normal window decorations as defined by the look-and-feel\n // schema\n //\n JFrame.setDefaultLookAndFeelDecorated(true);\n //\n // Create the main application window\n //\n mainWindow = new MainWindow();\n //\n // Show the application window\n //\n mainWindow.pack();\n mainWindow.setVisible(true);\n }", "public void createAndShowGUI() {\r\n // Make sure we have nice window decorations.\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n\r\n // Create and set up the window.\r\n JFrame frame = new JFrame(\"Graph GUI\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n // Add components\r\n createComponents(frame);\r\n\r\n // Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private void createAndShowGUI() {\n setSize(300, 200);\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n addContent(getContentPane());\n\n //pack();\n setVisible(true);\n }", "private static void createAndShowGUI() {\n\n frame = new JFrame(messages.getString(\"towers.of.hanoi\"));\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n addComponentsToPane(frame.getContentPane());\n frame.pack();\n frame.setSize(800, 600);\n frame.setVisible(true);\n }", "private static void createAndShowGUI() {\n\t\t/*\n //Create and set up the window.\n JFrame frame = new JFrame(\"HelloWorldSwing\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Add the ubiquitous \"Hello World\" label.\n JLabel label = new JLabel(\"Hello World\");\n frame.getContentPane().add(label);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n */\n\t\tfinal AC_GUI currentGUI = new AC_GUI();\n\t\t//currentGUI.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tcurrentGUI.setSize(900, 800);\n\t\t// make the frame full screen\n\t\t// currentGUI.setExtendedState(JFrame.MAXIMIZED_BOTH);\n }", "private static void createAndShowGUI() {\r\n\t\t// Create and set up the window.\r\n\t\tJFrame frame = new JFrame(\"MapReverse Data Collector\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t// Add content to the window.\r\n\t\tframe.add(new MapReverseDataCollector());\r\n\r\n\t\t// Display the window.\r\n\t\tframe.pack();\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setVisible(true);\r\n\t}", "private static void createAndShowGUI() {\r\n\t\t// Create and set up the window.\r\n\t\tframe = new JFrame(\"Captura 977R\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t// Set up the content pane.\r\n\t\taddComponentsToPane(frame.getContentPane());\r\n\r\n\t\t// Display the window.\r\n\t\tframe.pack();\r\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\tDimension windowSize = frame.getSize();\r\n\r\n\t\tint windowX = Math.max(0, (screenSize.width - windowSize.width) / 2);\r\n\t\tint windowY = Math.max(0, (screenSize.height - windowSize.height) / 2);\r\n\r\n\t\tframe.setLocation(windowX, windowY); // Don't use \"f.\" inside\r\n\t\t// constructor.\r\n\t\tframe.setVisible(true);\r\n\t}", "private static void createAndShowGUI() {\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\n\n\t\t//Create and set up the window.\n\t\tJFrame frame = new JFrame();\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setSize(500, 500);\n\t\tframe.setLocationRelativeTo(null);\n\n\t\tResultLeftView view = new ResultLeftView();\n\t\tframe.setContentPane(view);\n\t\t//Display the window.\n\t\tframe.setVisible(true);\n\t}", "public void createAndShowGUI() {\n\t\tcontroller = new ControllerClass(); \r\n\r\n\t\t// Create and set up the window\r\n\t\twindowLookAndFeel();\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetTitle(\"Media Works - Add Screen\");\r\n\t\tsetResizable(false);\r\n\t\tadd(componentSetup());\r\n\t\tpack();\r\n\t\tsetSize(720,540);\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tsetVisible(true);\r\n\t}", "private static void createAndShowGUI() {\r\n //Disable boldface controls.\r\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE); \r\n\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"Exertion Scripting\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Create and set up the content pane.\r\n NetletEditor newContentPane = new NetletEditor(null);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"FEEx v. \"+VERSION);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n //Create and set up the content pane.\n Main p = new Main();\n p.addComponentToPane(frame.getContentPane());\n\n frame.addWindowListener(new java.awt.event.WindowAdapter() {\n @Override\n public void windowClosing(java.awt.event.WindowEvent windowEvent) {\n \tstopPolling();\n \tstopMPP();\n p.port.close();\n Utils.storeSizeAndPosition(frame);\n }\n });\n \n //Display the window.\n frame.pack();\n Utils.restoreSizeAndPosition(frame);\n frame.setVisible(true);\n }", "private static void createAndShowGUI() {\n\t\tint width = 500, height = 300;\n\t\tJFrame frame = new JFrame(\"Text File Reader\");\n\t\tframe.setSize(new Dimension(width, height));\n\t\tframe.setContentPane(new MainExecutor(width, height)); /* Adds the panel to the frame */\n\n\t\t/* Centralizing the frame */\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tint upperLeftCornerX = (screenSize.width - frame.getWidth()) / 2;\n\t\tint upperLeftCornerY = (screenSize.height - frame.getHeight()) / 2;\n\t\tframe.setLocation(upperLeftCornerX, upperLeftCornerY);\n\t\tframe.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n\n\t\t/* Shows the GUI */\n\t\tframe.setVisible(true);\n\t}", "public static void createGui() {\r\n\t\tEventQueue.invokeLater( new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tGui window = new Gui();\r\n\t\t\t\t\twindow.frame.setVisible( true );\r\n\t\t\t\t\twindow.videoFrame.addKeyListener( window );\r\n\t\t\t\t} catch ( Exception e ) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} );\r\n\t}", "private static void createAndShowGUI() {\n //Make sure we have nice window decorations.\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n JFrame frame = new JFrame(\"TreeExpandEventDemo2\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane = new TreeExpandEventDemo2();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "public static void createAndShowGUI() {\r\n if (useSystemLookAndFeel) {\r\n try {\r\n UIManager.setLookAndFeel(\r\n UIManager.getSystemLookAndFeelClassName());\r\n } catch (Exception e) {\r\n System.err.println(\"Couldn't use system look and feel.\");\r\n }\r\n }\r\n \r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"TreeDemo\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n \r\n //Add content to the window.\r\n frame.add(new GUI());\r\n \r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private void createAndShowGUI(){\r\n initComponents();\r\n openMazefile.addActionListener(this);\r\n solveMaze.addActionListener(this);\r\n clearSolution.addActionListener(this);\r\n setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\r\n pack();\r\n setVisible(true);\r\n }", "public void init(){\r\n\t\t\r\n\t\ttry {\r\n\t\t\tSwingUtilities.invokeAndWait(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tbuildWindow();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.err.println(\"createGUI didn't complete successfully\");\r\n\t\t}\r\n\t}", "private static void initAndShowGUI() {\n }", "public static void createGUI() {\n\t\tSimpleGUI gui = new SimpleGUI();\n\t\tgui.setVisible(true);\n\t}", "private static void createAndShowGUI() {\r\n // Set the look-and-feel to match the current system\r\n try {\r\n UIManager.setLookAndFeel( UIManager.getSystemLookAndFeelClassName() );\r\n } catch (UnsupportedLookAndFeelException e) {\r\n } catch (ClassNotFoundException e) {\r\n } catch (InstantiationException e) {\r\n } catch (IllegalAccessException e) {\r\n }\r\n\r\n JFrame frame = new JFrame(\"Fractal Tree\");\t// create window\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n JPanel panel = new FractalTree();\t\t// content pane\r\n panel.setOpaque(true);\r\n\r\n frame.setContentPane(panel);\t\t// connect up and show\r\n frame.pack();\r\n frame.setSize( 300, 300 );\t\t\t// window width, height\r\n frame.setVisible(true);\r\n }", "public void initGui() {\r\n\t\tEventQueue.invokeLater(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tGuiWindow window = new GuiWindow(Controller.this);\r\n\t\t\t\t\tlinkedGuiWindow = window;\r\n\t\t\t\t\twindow.setVisible(true);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "private static void createAndShowGUI() {\n\t\t//creating the GUI\n\t\tPhotoViewer myViewer = new PhotoViewer();\n\n\t\t//setting the title\n\t\tmyViewer.setTitle(\"Cameron Chiaramonte (ccc7sej)\");\n\n\t\t//making sure it will close when the x is clicked\n\t\tmyViewer.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t//calling the method to add the components to the pane and then making it visible\n\t\tmyViewer.addComponentsToPane(myViewer.getContentPane());\n\t\tmyViewer.pack();\n\t\tmyViewer.setVisible(true);\n\t}", "public GUI() {\n initComponents();\n this.setVisible(true);\n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Firma digital\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLocationRelativeTo(null);\r\n\r\n //Create and set up the content pane.\r\n final FirmaDigital newContentPane = new FirmaDigital(frame);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Make sure the focus goes to the right component\r\n //whenever the frame is initially given the focus.\r\n frame.addWindowListener(new WindowAdapter() {\r\n public void windowActivated(WindowEvent e) {\r\n newContentPane.resetFocus();\r\n }\r\n });\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private static void createAndShowGUI() {\r\n //Make sure we have nice window decorations.\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n JDialog.setDefaultLookAndFeelDecorated(true);\r\n\r\n //Create and set up the window.\r\n JFrame frame = new SplitPaneDemo2();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private static void createAndShowGUI() {\n \n JFrame frame = new HandleActionEventsForJButton();\n \n //Display the window.\n \n frame.pack();\n \n frame.setVisible(true);\n \n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n }", "public void createAndShowGUI() {\n\t\tJFrame frame = new JFrame(\"Pong\");\n\t\tframe.setResizable(false);\n\t\tframe.setVisible(true);\n\n\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tframe.add(board, BorderLayout.CENTER);\n\t\tframe.add(topPanel, BorderLayout.NORTH);\n\n\t\tframe.pack();\n\t}", "private static void createAndShowGUI() {\n Font f = new Font(\"微软雅黑\", 0, 12);\n String names[] = {\"Label\", \"CheckBox\", \"PopupMenu\", \"MenuItem\", \"CheckBoxMenuItem\",\n \"JRadioButtonMenuItem\", \"ComboBox\", \"Button\", \"Tree\", \"ScrollPane\",\n \"TabbedPane\", \"EditorPane\", \"TitledBorder\", \"Menu\", \"TextArea\",\n \"OptionPane\", \"MenuBar\", \"ToolBar\", \"ToggleButton\", \"ToolTip\",\n \"ProgressBar\", \"TableHeader\", \"Panel\", \"List\", \"ColorChooser\",\n \"PasswordField\", \"TextField\", \"Table\", \"Label\", \"Viewport\",\n \"RadioButtonMenuItem\", \"RadioButton\", \"DesktopPane\", \"InternalFrame\"\n };\n for (String item : names) {\n UIManager.put(item + \".font\", f);\n }\n //Create and set up the window.\n JFrame frame = new JFrame(\"AutoCapturePackagesTool\");\n\n String src = \"/optimizationprogram/GUICode/u5.png\";\n Image image = null;\n try {\n image = ImageIO.read(new CaptureGUI().getClass().getResource(src));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n frame.setIconImage(image);\n //frame.setIconImage(Toolkit.getDefaultToolkit().getImage(src));\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setResizable(false);\n frame.setLocation(Toolkit.getDefaultToolkit().getScreenSize().width / 2 - 520 / 2,\n Toolkit.getDefaultToolkit().getScreenSize().height / 2 - 420 / 2);\n frame.getContentPane().add(new CaptureGUI());\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "private static void createAndShowGUI() {\n DragDropFiles test = new DragDropFiles();\n test.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n\n //Display the window.\n test.pack();\n test.setVisible(true);\n }", "private void buildAndShowWindow() {\n SwingUtilities.invokeLater(() -> {\n buildWindow().setVisible(true);\n });\n }", "public void createAndShowGUI() {\n JFrame frame = new JFrame();\n frame.setSize(500, 500);\n frame.setTitle(\"Face Viewer\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); \n FaceComponent component = new FaceComponent();\n frame.add(component);\n frame.setVisible(true);\n }", "public static void createAndShowGUI() {\n if (useSystemLookAndFeel) {\n try {\n UIManager.setLookAndFeel(\n UIManager.getSystemLookAndFeelClassName());\n } catch (Exception e) {\n System.err.println(\"Couldn't use system look and feel.\");\n }\n }\n \n //Create and set up the window.\n JFrame frame = new JFrame(\"TreeDemo\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n //Add content to the window.\n frame.add(new TreeDemo());\n \n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "private static void createAndShowGUI() {\n\t\tJFrame frame = new JFrame(\"ComboBox2\");\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);;\n\t\t\n\t\t//create and set up the content pane\n\t\tJComponent content = new ComboboxDemo2();\n\t\tcontent.setOpaque(true);\n\t\tframe.setContentPane(content);\n\t\t\n\t\t//display the window\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t}", "private GUI()\n {\n makeGUI();\n }", "private static void createAndShowGUI() {\n\n //Create and set up the window.\n JFrame frame = new JFrame(\"ButtonDemo\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n ButtonDemo newContentPane = new ButtonDemo();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "private void createAndShowGUI() {\n //Create and set up the window.\n frame = new JFrame();\n\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.getContentPane().add(this);\n frame.addKeyListener(this);\n frame.addMouseListener(this);\n\n //Display the window.\n this.setPreferredSize(new Dimension(288, 512));\n this.addMouseListener(this);\n\n frame.pack();\n frame.setVisible(true);\n }", "private static void createAndShowGUI() {\n //Make sure we have nice window decorations.\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n JFrame frame = new JFrame(\"MRALD Color Chooser\");\n\n //Create and set up the content pane.\n JComponent newContentPane = new MraldColorChooser(coloringItems);\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "private static void createAndShowGUI()\r\n {\r\n JFrame frame = new JFrame(\"ChangingTitleFrame Application\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.getContentPane().add(new FramePanel(frame).getPanel());\r\n frame.pack();\r\n frame.setLocationRelativeTo(null);\r\n frame.setVisible(true);\r\n }", "private void createAndShowGUI() {\n frame = new JFrame(\"WorkspaceDemo\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setBounds(100, 100, 800, 600);\n final SearchBar sb = new SearchBar(\"Search blocks\",\n \"Search for blocks in the drawers and workspace\", workspace);\n for (final SearchableContainer con : getAllSearchableContainers()) {\n sb.addSearchableContainer(con);\n }\n final JPanel topPane = new JPanel();\n sb.getComponent().setPreferredSize(new Dimension(130, 23));\n topPane.add(sb.getComponent());\n frame.add(topPane, BorderLayout.PAGE_START);\n frame.add(getWorkspacePanel(), BorderLayout.CENTER);\n frame.add(getButtonPanel(), BorderLayout.SOUTH);\n frame.setVisible(true);\n }", "private static void createGUI(){\r\n\t\tframe = new JFrame(\"Untitled\");\r\n\r\n\t\tBibtexImport bib = new BibtexImport();\r\n\t\tbib.setOpaque(true);\r\n\r\n\t\tframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tframe.setContentPane(bib);\r\n\t\tframe.setJMenuBar(bib.menu);\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t}", "private static void createAndShowGUI() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"WAR OF MINE\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane = new Gameframe();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.setSize(800,1000);\n frame.setVisible(true);\n }", "private static void initAndShowGUI() {\n JFrame frame = new JFrame(\"Swing and JavaFX\");\n final JFXPanel fxPanel = new JFXPanel();\n frame.add(fxPanel);\n frame.setSize(250, 350);\n frame.setVisible(true);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n initFX(fxPanel);\n }\n });\n }", "public void showGui()\n {\n // TODO\n }", "public void createAndShowGUI(){\r\n\t\t//You want the jframe to close everything when it is closed\r\n\t\tjframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\tif(maximized){\r\n\t\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\t\tsWidth = (int)screenSize.getWidth();\r\n\t\t\tsHeight = (int)screenSize.getHeight();\r\n\t\t\tjframe.setSize(sWidth, sHeight);\r\n\t\t\tjframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\t\tjframe.setUndecorated(true);\r\n\t\t\tjframe.setResizable(true);\r\n\t\t\tjframe.setVisible(true);\r\n\t\t\tcWidth = sWidth;\r\n\t\t\tcHeight = sHeight;\r\n\t\t}else{\r\n\t\t\tjframe.setResizable(false);\r\n\t\t\t//Makes the jframe visible\r\n\t\t\tjframe.setVisible(true);\r\n\t\t\t//Sets the size of the jframe\r\n\t\t\tjframe.setSize(sWidth, sHeight);\r\n\t\t\t\r\n\t\t\t//I have no fucking idea why it needs this but it does\r\n\t\t\ttry{\r\n\t\t\t\tThread.sleep(100);\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Set the content width\r\n\t\t\tcWidth = jframe.getContentPane().getWidth();\r\n\t\t\t//Set the content height\r\n\t\t\tcHeight = jframe.getContentPane().getHeight();\r\n\t\t}\r\n\r\n\t\t//Set up the game menu\r\n\t\tGameMenu gmenu = new GameMenu((Graphics2D)(jframe.getContentPane().getGraphics()),cWidth,cHeight, new Input(jframe));\r\n\t\t//Draw the main menu\r\n\t\tgmenu.drawMainMenu();\r\n\t}", "private static void createAndShowGUI() {\r\n //Make sure we have nice window decorations.\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n JDialog.setDefaultLookAndFeelDecorated(true);\r\n\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"SplitPaneDemo\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n SplitPaneDemo splitPaneDemo = new SplitPaneDemo();\r\n frame.getContentPane().add(splitPaneDemo.getSplitPane());\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private void createAndShowGUI()\r\n {\r\n //Create and set up the window.\r\n frame = new JFrame();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.getContentPane().add(this);\r\n frame.addKeyListener(this);\r\n\r\n //Display the window.\r\n this.setPreferredSize(new Dimension(\r\n BLOCKSIZE * ( board.getNumCols() + 3 + nextUp.getNumCols() ),\r\n BLOCKSIZE * ( board.getNumRows() + 2 )\r\n ));\r\n\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Gomaku - 5 In A Row\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setSize(600, 600);\n\n //Add the ubiquitous \"Hello World\" label.\n JPanel board = new JPanel();\n board.setSize(400, 400);\n board.set\n frame.getContentPane().add(board);\n\n //Display the window.\n frame.setVisible(true);\n }", "public static void main(String[] args) {\n \n javax.swing.SwingUtilities.invokeLater(new Runnable() {\n \npublic void run() {\n \n createAndShowGUI(); \n \n}\n \n });\n }", "public static void createAndShowGUI()\n\t{\n\t\tSystem.out.println(\"Starting encFS Manager\");\n\t\tEncFSModel mod = new EncFSModel();\n\t\tEncFSController controller = new EncFSController(mod);\n\t\tEncFSModelRefresher refresher = new EncFSModelRefresher(mod);\n\t\t\t\t\n\t\ttry{\n\t\t\tBufferedImage myPicture = null;\t\t\t\n\t\t\t\n\t\t\tmyPicture = ImageIO.read(mod.getClass().getClassLoader().getResource(\"Lock_tray.png\"));\n\t\t\t\n\t\t\tEncFSTray tray = new EncFSTray(myPicture, mod, controller);\n\t\t\tif(SystemTray.isSupported())\n\t\t\t{\n\t\t\t\tfinal SystemTray stray = SystemTray.getSystemTray();\n\t\t\t\tstray.add(tray);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Tray not supported\");\t\t\t\t\n\t\t\t}\n\t\t\tThread refresherThread = new Thread(refresher);\n\t\t\trefresherThread.start();\n\t\t}\n\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace(System.out);\n\t\t}\n\t}", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"CsvPickerPane\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n CsvPickerPane demopane = new CsvPickerPane(frame);\n frame.getContentPane().add(demopane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "private static void createAndShowGUI() {\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\n\n\t\tLevelEditor le = new LevelEditor();\n\t}", "private void buildGUI() {\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setBorder(LineBorder.createGrayLineBorder());\n\t\tadd(panel);\n\t\t\n\t\taddRootPaneListener();\n\t\taddLoginComp();\n\t\taddButtons();\n\t\taddTitle();\n\t}", "public void showGui()\n {\n\t this.pack();\n this.setVisible(true);\n }", "private static void createAndShowGUI() throws NetException {\r\n //Make sure we have nice window decorations.\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n\r\n //Create and set up the window.\r\n AnfisStockPrediction frame = new AnfisStockPrediction(\"Anfis Stock Prediction using GA learning algorithm\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private void buildWindow(){\r\n\t\tthis.setSize(new Dimension(600, 400));\r\n\t\tFunctions.setDebug(true);\r\n\t\tbackendConnector = new BackendConnector(this);\r\n\t\tguiManager = new GUIManager(this);\r\n\t\tmainCanvas = new MainCanvas(this);\r\n\t\tadd(mainCanvas);\r\n\t}", "public GUI(Display display) {\n\t\t/* Init fields */\n\t\tGUI.display = display;\n\t\tGUI.gui = this;\n\t\t// displayThread = Thread.currentThread();\n\t\t/* Startup process */\n\t}", "private static void createAndShowGUI() {\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLayout(new BorderLayout());\r\n\r\n JPanel parametersPanel = new JPanel();\r\n parametersPanel.setPreferredSize(new Dimension(preferredWidth, 50));\r\n \r\n addComponentsToPane(parametersPanel);\r\n \r\n frame.add(parametersPanel, BorderLayout.PAGE_START);\r\n \r\n schedulePanel.add(monLabel);\r\n schedulePanel.add(tueLabel);\r\n schedulePanel.add(wedLabel);\r\n schedulePanel.add(thuLabel);\r\n schedulePanel.add(friLabel);\r\n schedulePanel.setPreferredSize(new Dimension(preferredWidth, 500));\r\n JScrollPane scrollPane = new JScrollPane();\r\n scrollPane.setViewportView(schedulePanel);\r\n JPanel bigPanel = new JPanel(); \r\n bigPanel.setLayout(new BorderLayout());\r\n bigPanel.setPreferredSize(schedulePanel.getPreferredSize());\r\n bigPanel.add(scrollPane, BorderLayout.CENTER);\r\n frame.add(bigPanel, BorderLayout.CENTER);\r\n\r\n frame.setJMenuBar(createMenu());\r\n \r\n frame.pack();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n \r\n frame.setVisible(true);\r\n frame.setResizable(false);\r\n }", "public GuiController()\n {\n\n DefaultTerminalFactory terminalFactory = new DefaultTerminalFactory();\n PageStack = new ArrayDeque<>(); // Gives us a screen stack\n window = new BasicWindow(\"Just put anything, I don't even care\");\n try\n {\n screen = terminalFactory.createScreen(); //Populates screen\n screen.startScreen(); //Runs screen\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n textGUI = new MultiWindowTextGUI(screen);\n\n }", "private void initializateGUI() {\n\t\t\n\t\t\n\t\tthis.menuBar = buildMenuBar();\n\t\t\n\t\tthis.toolBar = buildToolBar();\n\t\t\n\t\tthis.container = (JComponent) ContainerViewFactory.getInstance().getContainerView(null);\n\t\t\n\t\tthis.status = buildStatusBar();\n\t\t\n\t\tscrollPane = new JScrollPane();\n\t\tscrollPane.getViewport().add(this.container);\n\t\t\n\t\ttextResources.getString(\"application.title\").ifPresent(super::setTitle);\n\n\t\tif (this.menuBar != null) {\n\t\t\tsuper.setJMenuBar(this.menuBar);\n\t\t}\n\t\tsuper.setPreferredSize(MINIMUM_SIZE);\n\t\tsuper.setMinimumSize(MINIMUM_SIZE);\n\t\tsuper.setMaximumSize(new Dimension(Short.MAX_VALUE, Short.MAX_VALUE));\n\n\t\tsuper.getRootPane().setPreferredSize(MINIMUM_SIZE);\n\t\tsuper.getRootPane().setMinimumSize(MINIMUM_SIZE);\t\t\n\t\tsuper.getRootPane().setMaximumSize(new Dimension(Short.MAX_VALUE, Short.MAX_VALUE));\n\t\t\n\t\tsuper.setLayout(new BorderLayout());\n\t\t\n\t\tsuper.add(toolBar, BorderLayout.NORTH);\n\t\tsuper.add(scrollPane, BorderLayout.CENTER);\n\t\tsuper.add(status, BorderLayout.SOUTH);\n\t\t\n\t\tsuper.addWindowListener(new WindowAdapter() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\tinitializationDialog = buildInitializationAction();\n\t\t\t\tinitializationDialog.setVisible(true);\n\t\t\t\tinitializationDialog.toFront();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tconfirmExitAction();\n\t\t\t}\n\t\t});\n\t\tthis.handlerInitializateGUI();\n\t}", "public static void showGUI() {\n Display display = Display.getDefault();\n Shell shell = new Shell(display);\n EntropyUIconfig inst = new EntropyUIconfig(shell, SWT.NULL);\n Point size = inst.getSize();\n shell.setLayout(new FillLayout());\n shell.layout();\n if (size.x == 0 && size.y == 0) {\n inst.pack();\n shell.pack();\n } else {\n Rectangle shellBounds = shell.computeTrim(0, 0, size.x, size.y);\n shell.setSize(shellBounds.width, shellBounds.height);\n }\n shell.open();\n while (!shell.isDisposed()) {\n if (!display.readAndDispatch())\n display.sleep();\n }\n }", "public GUI()\n {\n //Initializes the variables and UI aspects\n UI.initialise();\n UI.addTextField(\"Search Title/Director/Genre\", this::searchEither);\n UI.addButton(\"Add Movie\", this::newMovie);\n UI.addButton(\"Rate Movie\", this::rateMovie);\n UI.addButton(\"Show All Movies\", this::printAll);\n UI.addButton(\"Recommend Movies\", this::recommendMovie);\n UI.setMouseListener(r::manageMouse);\n UI.addButton(\"Quit\", UI::quit);\n \n // Sets the size of the whole window and the divider\n UI.setWindowSize(CANVASWIDTH, CANVASHEIGHT);\n UI.setDivider(0.4);\n this.drawMain();\n }", "public void createAndShowGUI() {\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n\tif(open==0)\n\t\tframe = new JFrame(\"Open a file\");\n\telse if(open ==1)\n\t\tframe = new JFrame(\"Save file as\");\n //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane =this ;\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n // frame.setSize(500,500);\n//\tvalidate();\n }", "private void createGUI() {\n ResizeGifPanel newContentPane = new ResizeGifPanel();\n newContentPane.setOpaque(true); \n setContentPane(newContentPane); \n }", "private void makeGUI()\n {\n mainFrame = new JFrame();\n mainFrame.setPreferredSize(new Dimension(750,400));\n aw = new AccountWindow();\n mainFrame.add(aw);\n mainFrame.setVisible(true);\n mainFrame.pack();\n }", "public void init()\n\t{\n\t\ttry\n\t\t{\n\t\t\tjavax.swing.SwingUtilities.invokeAndWait(new Runnable()\n\t\t\t{\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tcreateGUI();\n\t\t\t\t}\n\t\t\t});\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tSystem.err.println(\"createGUI didn't successfully complete: \"\n\t\t\t\t\t+ e.toString());\n\t\t}\n\t}", "public void run()\n {\n //Generate text, pack and show the frame\n generateTextArea();\n pack();\n setMinimumSize(getSize());\n setVisible(true);\n }", "public void run() {\n\t\t\t\tLayoutFrame frame = new LayoutFrame();\n\t\t\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\t\tframe.setVisible(true);\n\t\t\t}", "public void createAndShowGUI() {\n frame= new JFrame(\"TabAdmin\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setLocation(200,50);\n //Create and set up the content pane.\n \n addComponentToPane(frame.getContentPane());\n \n //Display the window.\n frame.pack();\n frame.setVisible(true);\n //create admin to operate \n \n }", "public static void createAndShowGUI() {\n windowContent.add(\"Center\",p1);\n\n //Create the frame and set its content pane\n JFrame frame = new JFrame(\"GridBagLayoutCalculator\");\n frame.setContentPane(windowContent);\n\n // Set the size of the window to be big enough to accommodate all controls\n frame.pack();\n\n // Display the window\n frame.setVisible(true);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }", "private static void createAndShowGUI() {\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"TableRenderDemo\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Create and set up the content pane.\r\n MatchersTablePanel alignTable = new MatchersTablePanel();\r\n \r\n \r\n frame.setContentPane(alignTable);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "public void createAndShowGUI() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"SimpleTableDemo\");\n frame.setTitle(titulo);\n frame.setLocationRelativeTo(null);\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n //Create and set up the content pane.\n SimpleTableDemo newContentPane = new SimpleTableDemo();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(this);\n \n //Display the window.\n frame.pack();\n frame.setVisible(true);\n \n }", "public GUI() {\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n this.setContentPane(new ZombiePanel());\n pack();\n }", "private void initGUI() {\n\t\tJPanel mainPanel = new JPanel(new BorderLayout());\n\t\t// This is the story we took from Wikipedia.\n\t\tString story = \"The Internet Foundation Classes (IFC) were a graphics \"\n\t\t\t\t+ \"library for Java originally developed by Netscape Communications \"\n\t\t\t\t+ \"Corporation and first released on December 16, 1996.\\n\\n\"\n\t\t\t\t+ \"On April 2, 1997, Sun Microsystems and Netscape Communications\"\n\t\t\t\t+ \" Corporation announced their intention to combine IFC with other\"\n\t\t\t\t+ \" technologies to form the Java Foundation Classes. In addition \"\n\t\t\t\t+ \"to the components originally provided by IFC, Swing introduced \"\n\t\t\t\t+ \"a mechanism that allowed the look and feel of every component \"\n\t\t\t\t+ \"in an application to be altered without making substantial \"\n\t\t\t\t+ \"changes to the application code. The introduction of support \"\n\t\t\t\t+ \"for a pluggable look and feel allowed Swing components to \"\n\t\t\t\t+ \"emulate the appearance of native components while still \"\n\t\t\t\t+ \"retaining the benefits of platform independence. This feature \"\n\t\t\t\t+ \"also makes it easy to have an individual application's appearance \"\n\t\t\t\t+ \"look very different from other native programs.\\n\\n\"\n\t\t\t\t+ \"Originally distributed as a separately downloadable library, \"\n\t\t\t\t+ \"Swing has been included as part of the Java Standard Edition \"\n\t\t\t\t+ \"since release 1.2. The Swing classes are contained in the \"\n\t\t\t\t+ \"javax.swing package hierarchy.\\n\\n\";\n\t\t// We create the TextArea and pass the story in as an argument.\n\t\tJTextArea storyArea = new JTextArea(story);\n\t\tstoryArea.setEditable(true);\n\t\tstoryArea.setWrapStyleWord(true);\n\t\t// We create the ScrollPane and instantiate it with the TextArea as an argument\n\t\tJScrollPane area = new JScrollPane(storyArea);\t\t\t\n\t\tmainPanel.add(area);\t\n\t\tthis.setContentPane(mainPanel);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setSize(350, 300);\n\t\tthis.setVisible(true);\n\t}", "public void run() {\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE);\n createAndShowGUI();\n }", "public void buildGui() {\n\t}", "public void run() {\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE);\n\n createAndShowGUI();\n }", "public Gui() {\n\t\tsuper();\n\t\tinitGUI();\n\t}", "public GUI() {\n\t\t// sets up file choosers\n\t\tsetFileChoosers();\n\t\t// initialises JFrame\n\t\tsetContent();\n\t\t// sets default window attributes\n\t\tthis.setDefaultAttributes();\n\t\t// instantiates controller object\n\t\tsetController();\n\t\t// sets toolbar to go over frame\n\t\tJPopupMenu.setDefaultLightWeightPopupEnabled(false);\n\t\tToolTipManager.sharedInstance().setLightWeightPopupEnabled(false);\n\t\t// sets antialiasing\n\t\t((Graphics2D) this.getGraphics()).setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\n\t\t\t\tRenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n\t}", "public GUI() {\n\t\tinitComponents();\n\t}", "private void createAndShowGUI (){\n\n JustawieniaPowitalne = new JUstawieniaPowitalne();\n }", "private static void createAndShowGUI() {\n //Create and set up the window.\n //JFrame frame = new JFrame(\"Basics of Color\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n //Add content to the window.\n frame.add(new ColorBasics(), BorderLayout.CENTER);\n Menu menu = new Menu();\n frame.setJMenuBar(menu.createMenuBar());\n \n //Display the window.\n frame.pack();\n frame.setVisible(true);\n frame.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n }", "public Gui() { \n preInitComponents(); \n initComponents();\n postInitComponents(); \n setVisible(true);\n appInitialization();\n }", "private static void createAndShowGUI() {\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n\r\n //Create and set up the window.\r\n frame = new JFrame(\"ATC simulator\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n atcscreen = new AtcScreen();\r\n atcscreen.setOpaque(true);\r\n frame.setContentPane(atcscreen);\r\n \r\n //Display the window.\r\n frame.setSize(1000,1000);\r\n //atcscreen.setSize(300,300);\r\n //frame.pack();\r\n frame.setVisible(true);\r\n }", "public static void createAndShowStartWindow() {\n\n\t\t// Create and set up the window.\n\n\t\tstartMenu.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t// panel will hold the buttons and text\n\t\tJPanel panel = new JPanel() {\n\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t// Fills the panel with a red/black gradient\n\t\t\tprotected void paintComponent(Graphics grphcs) {\n\t\t\t\tGraphics2D g2d = (Graphics2D) grphcs;\n\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\n\t\t\t\tColor color1 = new Color(119, 29, 29);\n\t\t\t\tColor color2 = Color.BLACK;\n\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, color1, 0, getHeight() - 100, color2);\n\t\t\t\tg2d.setPaint(gp);\n\t\t\t\tg2d.fillRect(0, 0, getWidth(), getHeight());\n\n\t\t\t\tsuper.paintComponent(grphcs);\n\t\t\t}\n\t\t};\n\n\t\tpanel.setOpaque(false);\n\n\t\tpanel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\n\n\t Font customFont = null;\n\t \n\n\t\ttry {\n\t\t customFont = Font.createFont(Font.TRUETYPE_FONT, ClassLoader.getSystemClassLoader().getResourceAsStream(\"data/AlegreyaSC-Medium.ttf\")).deriveFont(32f);\n\n\t\t GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\n\t\t ge.registerFont(Font.createFont(Font.TRUETYPE_FONT, ClassLoader.getSystemClassLoader().getResourceAsStream(\"data/AlegreyaSC-Medium.ttf\")));\n\t\t\n\n\t\t} catch (IOException|FontFormatException e) {\n\t\t //Handle exception\n\t\t}\n\t\t\n\n\t\t\n\t\t// Some info text at the top of the window\n\t\tJLabel welcome = new JLabel(\"<html><center><font color='white'> Welcome to <br> Ultimate Checkers! </font></html>\",\n\t\t\t\tSwingConstants.CENTER);\n\t\twelcome.setFont(customFont);\n\t\n\n\t\twelcome.setPreferredSize(new Dimension(200, 25));\n\t\twelcome.setAlignmentX(Component.CENTER_ALIGNMENT);\n\n\n\t\t// \"Rigid Area\" is used to align everything\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 40)));\n\t\tpanel.add(welcome);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 50)));\n\t\t//panel.add(choose);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 20)));\n\n\t\t// The start Window will have four buttons\n\t\t// Button1 will open a new window with a standard checkers board\n\t\tJButton button1 = new JButton(\"New Game (Standard Setup)\");\n\n\t\tbutton1.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\n\t\t\t\t\t\tNewGameSettings.createAndShowGameSettings();\n\t\t\t\t\t\tstartMenu.dispose();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\t\t// Setting up button1\n\t\tbutton1.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tbutton1.setMaximumSize(new Dimension(250, 40));\n\n\t\t// Button2 will open a new window where a custom setup can be created\n\t\tJButton button2 = new JButton(\"New Game (Custom Setup)\");\n\t\tbutton2.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// Begin creating custom game board setup for checkers\n\t\t\t\t\t\tNewCustomWindow.createAndShowCustomGame();\n\t\t\t\t\t\t// Close the start menu window and remove it from memory\n\t\t\t\t\t\tstartMenu.dispose();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\n\t\t// Setting up button2\n\t\tbutton2.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tbutton2.setMaximumSize(new Dimension(250, 40));\n\n\t\t// Button3 is not implemented yet, it will be used to load a saved game\n\t\tJButton button3 = new JButton(\"Load A Saved Game\");\n\t\tbutton3.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tbutton3.setMaximumSize(new Dimension(250, 40));\n\t\tbutton3.addActionListener(new ActionListener() {\n\n\t\t\tfinal JFrame popupWrongFormat = new PopupFrame(\n\t\t\t\t\t\"Wrong Format!\",\n\t\t\t\t\t\"<html><center>\"\n\t\t\t\t\t\t\t+ \"The save file is in the wrong format! <br><br>\"\n\t\t\t\t\t\t\t+ \"Please make sure the load file is in csv format with an 8x8 table, \"\n\t\t\t\t\t\t\t+ \"followed by whose turn it is, \"\n\t\t\t\t\t\t\t+ \"the white player type and the black player type.\"\n\t\t\t\t\t\t\t+ \"</center></html>\");\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// This will create the file chooser\n\t\t\t\t\t\tJFileChooser chooser = new JFileChooser();\n\n\t\t\t\t\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\"CSV Files\", \"csv\");\n\t\t\t\t\t\tchooser.setFileFilter(filter);\n\n\t\t\t\t\t\tint returnVal = chooser.showOpenDialog(startMenu);\n\t\t\t\t\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\t\t\t\t\tFile file = chooser.getSelectedFile();\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tcheckAndPlay(file);\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\tpopupWrongFormat.setVisible(true);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Do nothing. Load cancelled by user.\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\n\t\t// Button4 closes the game\n\t\tJButton button4 = new JButton(\"Exit Ultimate Checkers\");\n\t\tbutton4.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// Close the start menu window and remove it from memory\n\t\t\t\t\t\tstartMenu.dispose();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\n\t\t// Setting up button4\n\t\tbutton4.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tbutton4.setMaximumSize(new Dimension(250, 40));\n\n\t\t// The four buttons are added to the panel and aligned\n\t\tpanel.add(button1);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 20)));\n\t\tpanel.add(button2);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 20)));\n\t\tpanel.add(button3);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 80)));\n\t\tpanel.add(button4);\n\n\t\t// Setting up the start Menu\n\t\tstartMenu.setSize(400, 600);\n\t\tstartMenu.setResizable(false);\n\n\t\t// Centers the window with respect to the user's screen resolution\n\t\tDimension dimension = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tint x = (int) ((dimension.getWidth() - startMenu.getWidth()) / 2);\n\t\tint y = (int) ((dimension.getHeight() - startMenu.getHeight()) / 2);\n\t\tstartMenu.setLocation(x, y);\n\n\t\tstartMenu.add(panel, BorderLayout.CENTER);\n\t\tstartMenu.setVisible(true);\n\n\t}", "private void createUI() {\n\t\tthis.rootPane = new TetrisRootPane(true);\n\t\tthis.controller = new TetrisController(this, rootPane, getWorkingDirectory());\n\t\tthis.listener = new TetrisActionListener(controller, this, rootPane);\n\t\t\n\t\trootPane.setActionListener(listener);\n\t\trootPane.setGameComponents(controller.getGameComponent(), controller.getPreviewComponent());\n\t\trootPane.initialize();\n\t\t\n\t\tPanelBorder border = controller.getPlayer().getPanel().getPanelBorder(\"Tetris v\" + controller.getVersion());\n\t\tborder.setRoundedCorners(true);\n\t\tJPanel panel = new JPanel(new FlowLayout(FlowLayout.CENTER, 0, 0));\n\t\tpanel.setBackground(getBackgroundColor(border.getLineColor()));\n\t\tpanel.setBorder(border);\n\t\tpanel.setPreferredSize(new Dimension(564, 551));\n\t\tpanel.add(rootPane);\n\t\trootPane.addPanelBorder(border, panel);\n\t\t\n\t\tthis.setContentPane(panel);\n\t\tthis.setSize(564, 550);\n\t\t\n\t\tcontroller.initializeUI();\n\t}", "private void startGUI() {\r\n myFrame.setTitle(\"Media Library\");\r\n myFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n myFrame.setLocationByPlatform(true);\r\n myFrame.pack();\r\n\r\n myFrame.setVisible(true);\r\n }", "public static void showGUI() {\n\t\tDisplay display = Display.getDefault();\n\t\tShell shell = new Shell(display);\n\t\tPaletteComposite inst = new PaletteComposite(shell, SWT.NULL);\n\t\tPoint size = inst.getSize();\n\t\tshell.setLayout(new FillLayout());\n\t\tshell.layout();\n\t\tif(size.x == 0 && size.y == 0) {\n\t\t\tinst.pack();\n\t\t\tshell.pack();\n\t\t} else {\n\t\t\tRectangle shellBounds = shell.computeTrim(0, 0, size.x, size.y);\n\t\t\tshell.setSize(shellBounds.width, shellBounds.height);\n\t\t}\n\t\tshell.open();\n\t\twhile (!shell.isDisposed()) {\n\t\t\tif (!display.readAndDispatch())\n\t\t\t\tdisplay.sleep();\n\t\t}\n\t}", "private static void createAndShowGUI() {\n\t frame = new JFrame(\"SpringBagLayoutTextWindowDemo\");\n\t \n\t frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t \n\t //Set up the content pane.\n\t addComponentsToPane(frame.getContentPane());\n\t //frame.setSize();\n\t \n\t //Display the window.\n\t \n\t frame.pack();\n\t frame.setVisible(true);\n\t }", "public static void start() {\n\t\ttry {\n\t\t\tfor (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n\t\t\t\tif (\"Nimbus\".equals(info.getName())) {\n\t\t\t\t\tjavax.swing.UIManager.setLookAndFeel(info.getClassName());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (ClassNotFoundException ex) {\n\t\t\tjava.util.logging.Logger.getLogger(GUInterface.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n\t\t} catch (InstantiationException ex) {\n\t\t\tjava.util.logging.Logger.getLogger(GUInterface.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n\t\t} catch (IllegalAccessException ex) {\n\t\t\tjava.util.logging.Logger.getLogger(GUInterface.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n\t\t} catch (javax.swing.UnsupportedLookAndFeelException ex) {\n\t\t\tjava.util.logging.Logger.getLogger(GUInterface.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n\t\t}\n //</editor-fold>\n\n\t\t/* Create and display the form */\n\t\tjava.awt.EventQueue.invokeLater(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tnew GUInterface().setVisible(true);\n\t\t\t}\n\t\t});\n\t}", "public MediaLibraryGUI() {\r\n initializeFields();\r\n\r\n makeMenu();\r\n\r\n makeCenter();\r\n\r\n makeSouth();\r\n\r\n startGUI();\r\n }", "private static void createAndShowGUI() {\n //Make sure we have nice window decorations.\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n JFrame frame = new JFrame(\"TablePanel\");\n JPanel contentP = new JPanel();\n Box v = Box.createVerticalBox();\n Box h = Box.createHorizontalBox();\n Box h2 = Box.createHorizontalBox();\n TablePanel tablePanel = new TablePanel();\n tablePanel.setOpaque(true); //content panes must be opaque\n\n\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setContentPane(contentP);\n contentP.add(tablePanel);\n contentP.add(v);\n v.add(h);\n v.add(h2);\n\n h.add(tablePanel);\n h2.add(new JButton(\"Hello\"));\n //Display the window.\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n }", "public mainGUI() {\n initComponents();\n setSize(Toolkit.getDefaultToolkit().getScreenSize());\n }", "public void createAndShowGUI(JFrame frame) {\n providerSideBar(frame.getContentPane(), pat);\n topBarPatientInformation(frame.getContentPane(), pat);\n patientReferralPanel(frame.getContentPane());\n\n }", "public CreateGUI() throws IOException{\r\n\t\tthis.setFocusable(false);\r\n\t\tthis.setTitle(\"Dance Dance Revolution - 201B Edition\");\r\n\t\tthis.setSize(800, 600);\t\t \t\r\n\t\tthis.setLocation(100, 100); \t\r\n\t\tthis.setVisible(true);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tthis.setResizable(false);\r\n\t\tcp = getContentPane();\r\n\t\tcp.setBackground(Color.black);\r\n\t\tarrowlistener = new ArrowListener();\r\n\t\tscore = new Score();\r\n\t\tcombo = new ComboImage();\r\n\t}", "public void run() {\n\t\t\t\tUIManager.put(\"swing.boldMetal\", Boolean.FALSE);\r\n\t\t\t\tcreateAndShowGUI();\r\n\t\t\t}" ]
[ "0.8151357", "0.79473364", "0.7900575", "0.78785634", "0.7850453", "0.7841219", "0.78016686", "0.7704276", "0.7680393", "0.7611861", "0.7603306", "0.7572418", "0.7551455", "0.75477153", "0.75399524", "0.7538167", "0.74812967", "0.7445292", "0.7414176", "0.7411397", "0.74013996", "0.73771626", "0.73496276", "0.7332804", "0.7315793", "0.7302619", "0.73014754", "0.72778356", "0.72725165", "0.72714573", "0.7237712", "0.7228882", "0.72161305", "0.72045076", "0.72042066", "0.720304", "0.7190865", "0.71806014", "0.7178341", "0.71703184", "0.7164315", "0.7142542", "0.7128103", "0.7122134", "0.7111861", "0.7109271", "0.7095702", "0.70922494", "0.7081653", "0.70713305", "0.70697516", "0.70548105", "0.70495063", "0.7048496", "0.704295", "0.704014", "0.70386195", "0.7030334", "0.70203733", "0.70037943", "0.69646794", "0.69238454", "0.6911981", "0.6905367", "0.69035894", "0.6891463", "0.6890249", "0.6883828", "0.68808895", "0.6878986", "0.68781275", "0.6871815", "0.6870947", "0.686247", "0.68612325", "0.6852289", "0.6847426", "0.68466556", "0.68443924", "0.6839511", "0.68287516", "0.6826384", "0.68249005", "0.6817696", "0.68148017", "0.6814614", "0.6813966", "0.6809069", "0.67878467", "0.677738", "0.6773934", "0.6763912", "0.6759992", "0.67585987", "0.6727572", "0.6722583", "0.6715805", "0.6710559", "0.6709253", "0.670526" ]
0.7256232
30
Schedule a job for the eventdispatching thread: creating and showing this application's GUI.
public static void main(String[] args) { javax.swing.SwingUtilities.invokeLater(new Runnable() { public void run() { createAndShowGUI(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n \n javax.swing.SwingUtilities.invokeLater(new Runnable() {\n \npublic void run() {\n \n createAndShowGUI(); \n \n}\n \n });\n }", "private void createFrame() {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfinal JFrame frame = new JFrame(\"Create Event\");\n\t\t\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\t\t\ttry {\n\t\t\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tfinal JTextArea textArea = new JTextArea(15, 50);\n\t\t\t\ttextArea.setText(\"Untitled Event\");\n\t\t\t\ttextArea.setWrapStyleWord(true);\n\t\t\t\ttextArea.setEditable(true);\n\t\t\t\ttextArea.setFont(Font.getFont(Font.SANS_SERIF));\n\n\t\t\t\tJPanel panel = new JPanel();\n\t\t\t\tpanel.setLayout(new GridLayout(1, 4));\n\t\t\t\tfinal JTextField d = new JTextField(\"\" + year + \"/\" + month + \"/\" + day);\n\t\t\t\tfinal JTextField startTime = new JTextField(\"1:00am\");\n\t\t\t\tJTextField t = new JTextField(\"to\");\n\t\t\t\tt.setEditable(false);\n\t\t\t\tfinal JTextField endTime = new JTextField(\"2:00am\");\n\t\t\t\tJButton save = new JButton(\"Save\");\n\t\t\t\tpanel.add(d);\n\t\t\t\tpanel.add(startTime);\n\t\t\t\tpanel.add(t);\n\t\t\t\tpanel.add(endTime);\n\t\t\t\tpanel.add(save);\n\n\t\t\t\tsave.addActionListener(new ActionListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teventsData.addEvent(new Event(YYYYMMDD(d.getText().trim()), startTime.getText(),\n\t\t\t\t\t\t\t\t\tendTime.getText(), textArea.getText()));\n\t\t\t\t\t\t\tupdateEventsView(eventsRender);\n\t\t\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t\t\tif (ex instanceof IllegalArgumentException)\n\t\t\t\t\t\t\t\tpromptMsg(ex.getMessage(), \"Error\");\n\t\t\t\t\t\t\telse promptMsg(ex.getMessage(), \"Error\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tframe.dispatchEvent(new WindowEvent(frame, WindowEvent.WINDOW_CLOSING));\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tframe.setSize(500, 100);\n\t\t\t\tframe.setLayout(new GridLayout(2, 1));\n\t\t\t\tframe.add(textArea);\n\t\t\t\tframe.add(panel);\n\t\t\t\tframe.setLocationByPlatform(true);\n\t\t\t\tframe.setVisible(true);\n\t\t\t}\n\t\t});\n\t}", "public void run() {\n\t\t\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t\t\tframe.setJMenuBar((new MyJMenuBar(frame)).menuBar);\n\t\t\t\t\n\t\t\t\t//Display the window.\n\t\t\t\t//frame.pack();\n\n\t\t\t\t//Set up the content pane.\n\t\t\t\tframe.addLoadingMessage(frame.getContentPane());\n\t\t\t\tframe.pack();\n\t\t\t\tframe.setSize(new Dimension((int)(frame.getSize().getWidth()), 300));\n\t\t\t\tframe.setResizable(false);\n\t\t\t\tframe.setVisible(true);\n\t\t\t\tframe.update(frame.getGraphics());\n }", "public void start(){\n JmeFormatter formatter = new JmeFormatter();\n\n Handler consoleHandler = new ConsoleHandler();\n consoleHandler.setFormatter(formatter);\n\n Logger.getLogger(\"\").removeHandler(Logger.getLogger(\"\").getHandlers()[0]);\n Logger.getLogger(\"\").addHandler(consoleHandler);\n \n createCanvas(appClass);\n \n try {\n Thread.sleep(500);\n } catch (InterruptedException ex) {\n }\n \n SwingUtilities.invokeLater(new Runnable(){\n public void run(){\n JPopupMenu.setDefaultLightWeightPopupEnabled(false);\n\n createFrame();\n \n //currentPanel.add(canvas, BorderLayout.CENTER);\n mMainFrame.pack();\n startApp();\n mMainFrame.setLocationRelativeTo(null);\n mMainFrame.setVisible(true);\n }\n });\n \n \n }", "public static void main(String[] args) {\n \r\n Runnable doCreateAndShowGUI = new Runnable() {\r\n public void run() {\r\n createAndShowGUI();\r\n }\r\n };\r\n SwingUtilities.invokeLater(doCreateAndShowGUI);\r\n }", "public static void main (String[] args) {\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n MainMenu mainMenu = new MainMenu(\"Flight Crew Scheduler\");\n mainMenu.createUI();\n mainMenu.setVisible(true);\n mainMenu.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //FlightScheduled fs = new FlightScheduled();\n }\n });\n }", "public void run() {\n criaGUI();\n \n }", "public SysRunGUI() {\n initComponents();\n this.run();\n }", "private void agendaFrame() {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfinal JFrame frame = new JFrame(\"Please select a time period.\");\n\t\t\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\t\t\ttry {\n\t\t\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tJPanel panel = new JPanel();\n\t\t\t\tpanel.setLayout(new GridLayout(1, 4));\n\t\t\t\t//JTextField d = new JTextField(\"\" + year + \"/\" + month + \"/\" + day);\n\t\t\t\tfinal JTextField startDate = new JTextField(\"1\" + \"/1\" + \"/2016\");\n\t\t\t\tJTextField to = new JTextField(\"to\");\n\t\t\t\tto.setEditable(false);\n\t\t\t\tfinal JTextField endDate = new JTextField(\"1\" + \"/2\" + \"/2016\");\n\t\t\t\tJButton go = new JButton(\"Go\");\n\t\t\t\t\n\t\t\t\tgo.addActionListener(new ActionListener() {\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\teventsRender = new AgendaViewRender();\n\t\t\t\t\t\tAgendaViewRender.setStartDate(startDate.getText());\n\t\t\t\t\t\tAgendaViewRender.setEndDate(endDate.getText());\n\t\t\t\t\t\tupdateEventsView(eventsRender);\n\t\t\t\t\t\tframe.dispatchEvent(new WindowEvent(frame, WindowEvent.WINDOW_CLOSING));\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tpanel.add(startDate);\n\t\t\t\tpanel.add(to);\n\t\t\t\tpanel.add(endDate);\n\t\t\t\tpanel.add(go);\n\t\t\t\t\n\t\t\t\tframe.setSize(500, 100);\n\t\t\t\tframe.setLayout(new GridLayout(2, 1));\n\t\t\t\tframe.add(panel);\n\t\t\t\tframe.setLocationByPlatform(true);\n\t\t\t\tframe.setVisible(true);\n\n\t\t\t}\n\t\t});\n\t}", "public static void main(String[] args) {\n SwingUtilities.invokeLater(new Runnable() {\n\n @Override\n public void run() {\n createAndShowGui();\n }\n\n });\n \n }", "private static void createAndShowGUI() {\n \n JFrame frame = new HandleActionEventsForJButton();\n \n //Display the window.\n \n frame.pack();\n \n frame.setVisible(true);\n \n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n }", "public void run() {\n\n /**\n * let the user the know what is going to happen\n */\n showExecutionStart();\n\n /**\n * create an archetype for the new application\n */\n executeArchetypeCommand();\n\n /**\n * Provide some delay to allow thread to create the archetype\n */\n splash = new SplashScreen();\n\n for (int i = 0; i < 7; i++) {\n updateStatus(i);\n try {\n Thread.sleep(500);\n } catch (InterruptedException ie) {\n ie.printStackTrace();\n }\n }\n\n hideSplashScreen();\n splash = null;\n\n /**\n * let the user the know what is going to happen\n */\n showExecutionEnd();\n }", "private static void createAndShowGUI() {\n if (!SystemTray.isSupported()) {\n log.error(\"SystemTray is not supported\");\n return;\n }\n\n SystemTray tray = SystemTray.getSystemTray();\n\n Image icon = createImage(\"/images/b2b.gif\", \"tray icon\");\n trayIcon = new TrayIcon(icon);\n trayIcon.setImageAutoSize(true);\n trayIcon.setToolTip(\"back2back\");\n\n PopupMenu popupMenu = new PopupMenu();\n {\n openWebUIMenuItem = new MenuItem(\"Open back2back web interface\");\n openWebUIMenuItem.addActionListener(B2BTrayIcon::openWebUI);\n popupMenu.add(openWebUIMenuItem);\n }\n popupMenu.addSeparator();\n {\n startAutomaticallyMenuItem = new CheckboxMenuItem(\"Start automatically with system\");\n startAutomaticallyMenuItem.addItemListener(e -> {\n int newState = e.getStateChange();\n setAutoStart(newState == ItemEvent.SELECTED);\n });\n startAutomaticallyMenuItem.setEnabled(serviceController != null);\n popupMenu.add(startAutomaticallyMenuItem);\n }\n popupMenu.addSeparator();\n {\n startMenuItem = new MenuItem(\"Start back2back engine\");\n startMenuItem.setEnabled(false);\n startMenuItem.addActionListener(evt -> {\n try {\n startEngine();\n } catch (ControlException e) {\n log.error(\"Failed to start engine\", e);\n trayIcon.displayMessage(\"back2back\", \"Failed to start engine: \" + e.toString(), TrayIcon.MessageType.ERROR);\n }\n });\n popupMenu.add(startMenuItem);\n }\n {\n stopMenuItem = new MenuItem(\"Stop back2back engine\");\n stopMenuItem.setEnabled(false);\n stopMenuItem.addActionListener(evt -> {\n try {\n stopEngine();\n } catch (ControlException e) {\n trayIcon.displayMessage(\"back2back\", \"Failed to stop engine: \" + e.toString(), TrayIcon.MessageType.ERROR);\n }\n });\n popupMenu.add(stopMenuItem);\n }\n popupMenu.addSeparator();\n {\n MenuItem item = new MenuItem(\"About\");\n item.addActionListener(B2BTrayIcon::about);\n popupMenu.add(item);\n }\n {\n MenuItem item = new MenuItem(\"Check for update\");\n item.setEnabled(updateManager != null);\n item.addActionListener(B2BTrayIcon::checkForUpdate);\n popupMenu.add(item);\n }\n {\n MenuItem item = new MenuItem(\"Close tray icon\");\n item.addActionListener(e -> {\n tray.remove(trayIcon);\n System.exit(0);\n });\n popupMenu.add(item);\n }\n\n// popupMenu.addActionListener(e -> log.debug(\"POPUP ACTION\"));\n trayIcon.setPopupMenu(popupMenu);\n\n trayIcon.addActionListener(e -> log.debug(\"TRAY ACTION\"));\n\n try {\n tray.add(trayIcon);\n } catch (AWTException e) {\n log.error(\"TrayIcon could not be added.\", e);\n return;\n }\n\n //trayIcon.displayMessage(\"back2back\", \"Tray icon ready\", TrayIcon.MessageType.INFO);\n\n // start status update on background thread\n Thread thread = new Thread(B2BTrayIcon::pollStatus);\n thread.setDaemon(true);\n thread.start();\n\n log.info(\"Tray icon ready.\");\n }", "public void run() {\n\t\t\t\tLayoutFrame frame = new LayoutFrame();\n\t\t\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\t\tframe.setVisible(true);\n\t\t\t}", "public static void main(String[] args) {\n javax.swing.SwingUtilities.invokeLater(new Runnable() {\r\n public void run() {\r\n createAndShowGUI();\r\n }\r\n });\r\n }", "public static void main(String[] args) {\n javax.swing.SwingUtilities.invokeLater(new Runnable() {\r\n public void run() {\r\n createAndShowGUI();\r\n }\r\n });\r\n }", "public void run()\n {\n //Generate text, pack and show the frame\n generateTextArea();\n pack();\n setMinimumSize(getSize());\n setVisible(true);\n }", "public void run(){ \n \t//sets up the GUI and performs operations based on ActionListeners\n \tpackageGUI();\n \toperate();\n }", "public void launch() {\n m_frame.pack();\n m_frame.setVisible(true);\n }", "public static void run(){\n EventQueue.invokeLater(new Runnable() {\n public void run() {\n try {\n PlanHomeCoach frame = new PlanHomeCoach();\n frame.init();\n Dimension screenSize =Toolkit.getDefaultToolkit().getScreenSize();\n frame.setLocation(screenSize.width/2-400/2,screenSize.height/2-700/2);\n frame.setResizable(false);\n frame.setVisible(true);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n }", "public static void createGui() {\r\n\t\tEventQueue.invokeLater( new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tGui window = new Gui();\r\n\t\t\t\t\twindow.frame.setVisible( true );\r\n\t\t\t\t\twindow.videoFrame.addKeyListener( window );\r\n\t\t\t\t} catch ( Exception e ) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} );\r\n\t}", "public void run() {\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE);\n\n createAndShowGUI();\n }", "public void run() {\n\t\t\t\tui = new GUI();\n\t\t\t\tui.generateUI();\n\t\t\t\tui.showUI(true);\n\n\t\t\t\t// Start sim ticking - sim is initialized below *before* this is called\n\t\t\t\tsim.newSim();\n\t\t\t\tsim.start();\n\t\t\t}", "public void run(){\n\t\t\t\tsetIconImage(new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB));\n\t\t\t\tsetTitle(msg);\n\t\t\t\t\n\t\t\t\t//createGUI\n\t\t\t\tloadBar = new JProgressBar();\n\t\t\t\tadd(BorderLayout.CENTER, loadBar);\n\t\t\t\tmessageLabel.setText(msg + \"...\");\n\t\t\t\tadd(BorderLayout.NORTH, messageLabel);\n\t\t\t\tsetDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);\n\t\t\t\tsetSize(300, 75);\n\t\t\t\tsetPreferredSize(getSize());\n\t\t\t\tsetPercentage(0);\n\t\t\t\tsetResizable(false);\n\t\t\t\tsetLocationRelativeTo(null);\n\t\t\t\tsetVisible(true);\n\t\t\t}", "public static void main(String[] args) {\n javax.swing.SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n createAndShowGUI(); \n }\n });\n }", "public static void main(String[] args) {\n javax.swing.SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n createAndShowGUI();\n }\n });\n }", "public void run() {\n\t\tthis.setVisible(true);\n\t}", "public void run() {\n\t\tthis.setVisible(true);\n\t}", "private static void createAndShowGUI() {\n if (!SystemTray.isSupported()) {\r\n return;\r\n }\r\n final PopupMenu popup = new PopupMenu();\r\n final TrayIcon trayIcon =\r\n new TrayIcon(createImage(\"/config/mut3.png\", \"JFileImporter\"));\r\n final SystemTray tray = SystemTray.getSystemTray();\r\n Font itemFont = new Font(\"Ariel\",Font.BOLD,12);\r\n // Create a popup menu components\r\n MenuItem aboutItem = new MenuItem(\"About\");\r\n MenuItem maxItem = new MenuItem(\"Maximize\");\r\n MenuItem minItem = new MenuItem(\"Minimize\");\r\n MenuItem showSchedulerItem = new MenuItem(\"Show Scheduler\");\r\n MenuItem showImporterItem = new MenuItem(\"Show Importer\");\r\n MenuItem exitItem = new MenuItem(\"Exit\");\r\n\r\n aboutItem.setFont(itemFont);\r\n maxItem.setFont(itemFont);\r\n minItem.setFont(itemFont);\r\n showSchedulerItem.setFont(itemFont);\r\n showImporterItem.setFont(itemFont);\r\n exitItem.setFont(itemFont);\r\n //Add components to popup menu\r\n popup.add(aboutItem);\r\n popup.addSeparator();\r\n popup.add(maxItem);\r\n popup.add(minItem);\r\n popup.addSeparator();\r\n popup.add(showSchedulerItem);\r\n popup.add(showImporterItem); \r\n popup.addSeparator();\r\n popup.add(exitItem);\r\n \r\n trayIcon.setPopupMenu(popup);\r\n \r\n try {\r\n tray.add(trayIcon);\r\n } catch (AWTException e) {\r\n \tJOptionPane.showMessageDialog(null, \"Tray Icon could not be added \"+e, \"Error creating Tray Icon\", JOptionPane.ERROR_MESSAGE);\r\n return;\r\n }\r\n trayIcon.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n \tJImporterMain.maximize();\r\n }\r\n });\r\n \r\n maxItem.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n \tJImporterMain.maximize();\r\n }\r\n });\r\n minItem.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n \ttrayIcon.displayMessage(\"JFileImporter\", \"Importer Still Running! Right Click for more options\", TrayIcon.MessageType.INFO);\r\n \tJImporterMain.minimize();\r\n \t\r\n }\r\n });\r\n \r\n aboutItem.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n \ttrayIcon.displayMessage(\"About\", \"JFileImporter\\nVersion\\t1.00\\nDeveloped By:\\tAnil Sehgal\", TrayIcon.MessageType.INFO);\r\n }\r\n });\r\n \r\n showImporterItem.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n \tJImporterMain.showImporter();\r\n }\r\n });\r\n showSchedulerItem.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n \tString schedulerShown = LoadProfileUI.showScheduler();\r\n \tif(schedulerShown.equals(\"npe\")){\r\n \t\ttrayIcon.displayMessage(\"Scheduler\", \"Please initialize the Scheduler from Menu\", TrayIcon.MessageType.WARNING);\r\n \t}else if(schedulerShown.equals(\"ge\")){\r\n \t\ttrayIcon.displayMessage(\"Scheduler\", \"Error Launching Scheduler, Please contact technical support\", TrayIcon.MessageType.ERROR);\r\n \t}\r\n }\r\n });\r\n trayIcon.setImageAutoSize(true);\r\n trayIcon.setToolTip(\"JFileImporter\"); \r\n exitItem.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n \tint option = JOptionPane.showConfirmDialog(null, \"If You Quit the Application, the scheduled job will terminate!\", \"Exit Confirmation\", JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE);\r\n \tif(option == JOptionPane.OK_OPTION){\r\n\t tray.remove(trayIcon);\r\n\t System.exit(0);\r\n \t}\r\n }\r\n });\r\n }", "public static void main(String[] args) {\r\n\t\tmanager = new EventManager();\r\n\r\n\t\tEventQueue.invokeLater(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tCalenderGui window = new CalenderGui();\r\n\t\t\t\t\twindow.frame.setVisible(true);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public void run() {\n\t\t\t\tUIManager.put(\"swing.boldMetal\", Boolean.FALSE);\r\n\t\t\t\tcreateAndShowGUI();\r\n\t\t\t}", "public static void main(String[] args) {\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n createAndShowGUI();\n }\n });\n\n }", "public void init() {\n //Execute a job on the event-dispatching thread; creating this applet's GUI.\n setSize(500, 150);\n \ttry {\n SwingUtilities.invokeAndWait(new Runnable() {\n public void run() {\n createGUI();\n }\n });\n } catch (Exception e) { \n System.err.println(\"createGUI didn't complete successfully\");\n }\n \n }", "public static void createAndShowGUI()\n\t{\n\t\tSystem.out.println(\"Starting encFS Manager\");\n\t\tEncFSModel mod = new EncFSModel();\n\t\tEncFSController controller = new EncFSController(mod);\n\t\tEncFSModelRefresher refresher = new EncFSModelRefresher(mod);\n\t\t\t\t\n\t\ttry{\n\t\t\tBufferedImage myPicture = null;\t\t\t\n\t\t\t\n\t\t\tmyPicture = ImageIO.read(mod.getClass().getClassLoader().getResource(\"Lock_tray.png\"));\n\t\t\t\n\t\t\tEncFSTray tray = new EncFSTray(myPicture, mod, controller);\n\t\t\tif(SystemTray.isSupported())\n\t\t\t{\n\t\t\t\tfinal SystemTray stray = SystemTray.getSystemTray();\n\t\t\t\tstray.add(tray);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Tray not supported\");\t\t\t\t\n\t\t\t}\n\t\t\tThread refresherThread = new Thread(refresher);\n\t\t\trefresherThread.start();\n\t\t}\n\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace(System.out);\n\t\t}\n\t}", "public static void main(String[] args){\n\t\t// Initializing the Timing Framework (see http://java.net/projects/timingframework)\n\t\tTimingSource ts = new ScheduledExecutorTimingSource();\n\t\tAnimator.setDefaultTimingSource(ts);\n\t\tts.init();\n\t\t\n\t\t// Create and show the frame.\n\t\ttry {\n\t\t\tSwingUtilities.invokeAndWait(new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tJFrame theFrame = createFrame();\n\t\t\t\t\ttheFrame.setVisible(true);\n\t\t\t\t}\n\t\t\t});\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"The GUI creation didn't successfully complete\");\n\t\t}\n\t}", "public void createEvents(){\r\n\t\tbtnCurrent.addActionListener((ActionEvent e) -> JLabelDialog.run());\r\n\t}", "public static void main(String[] args) {\n javax.swing.SwingUtilities.invokeLater(new Runnable() {\r\n public void run() {\r\n createAndShowGUI();\r\n }\r\n });\r\n }", "public static void main(String[] args) {\n javax.swing.SwingUtilities.invokeLater(new Runnable() {\r\n public void run() {\r\n createAndShowGUI();\r\n }\r\n });\r\n }", "public static void main(String[] args) {\n javax.swing.SwingUtilities.invokeLater(new Runnable() {\r\n public void run() {\r\n createAndShowGUI();\r\n }\r\n });\r\n }", "private void createManagerWorkerEvents() {\n\t\t//\n\t\tbtnCreateTicket.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tif (pnlCreateTicket.isVisible()) {\n\t\t\t\t\tpnlCreateTicket.setVisible(false);\n\t\t\t\t} else {\n\t\t\t\t\tpnlCreateTicket.setVisible(true);\n\t\t\t\t\tpnlCreateJob.setVisible(false);\n\t\t\t\t\tpnlCreateTask.setVisible(false);\n\t\t\t\t\tpnlCreateProject.setVisible(false);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t//\n\t\tbtnSendTicket.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (jdbc.createTicket(txtNewTicketTitle.getText(), txtNewTicketDesc.getText(), currentSessionUserID)) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Ticket sent to Admin\");\n\t\t\t\t\tpnlCreateTicket.setVisible(false);\n\t\t\t\t} else {\n\t\t\t\t\ttxtNewTicketTitle.setText(\"\");\n\t\t\t\t\ttxtNewTicketDesc.setText(\"\");\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Ticket not sent to Admin\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t//assigns users to a project\t\t\n\t\tbtnAssign.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tObject x = listUsersAvailable.getSelectedValue();\n\t\t\t\tlistedUsersAddList.addElement(x);\n\t\t\t\tlistedUsersAvailList.removeElement(x);\n\t\t\t}\n\t\t});\n\t\t//removes users from a project\n\t\tbtnRemove.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tObject x = listUsersAdded.getSelectedValue();\n\t\t\t\tlistedUsersAvailList.addElement(x);\n\t\t\t\tlistedUsersAddList.removeElement(x);\n\t\t\t}\n\t\t});\n\t\t//creates a new project with the given inputs\n\t\tbtnCreateNewProject.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\n\t\t\t\tint Id= jdbc.getMaxJobID()+1;\n\t\t\t\tString s=\"\";\n\t\t\t\tString first;\n\t\t\t\tString last;\n\t\t\t\tString description = textAreaProjectDescription.getText();\n\t\t\t\tJob job =new Job(Id, txtProjectName.getText(), 1, description);\t//creates project\n\t\t\t\tjob.setJobdesc(description);\n\t\t\t\tjdbc.add_project(job);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //adds it to database\n\t\t\t\tSystem.out.println(Id);\n\t\t\t\tSystem.out.println(projectQual);\n\t\t\t\tjdbc.add_requiredQuals(Id,projectQual);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//assigns quals to it\n\t\t\t\tfor(int i=0; i<listUsersAdded.getModel().getSize();i++){\t\t\t\t\t\t\t\t\t\t//assigns users to it\n\t\t\t\t\ts=(String)listUsersAdded.getModel().getElementAt(i);\n\t\t\t\t\tlast=s.substring(0, s.indexOf(44));\n\t\t\t\t\tfirst=s.substring(s.indexOf(44)+2, s.length());\n\t\t\t\t\tSystem.out.println(s);\n\t\t\t\t\tjdbc.addUserstoJob(first, last, Id);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tlayeredPaneManagerWorker.setVisible(true);\t\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Project Created!\");\n\t\t\t\tlistUsersAdded.setModel(new DefaultListModel());\n\t\t\t\tpnlCreateProject.setVisible(false);\n\t\t\t\ttxtProjectName.setText(\"\");\n\t\t\t\ttextAreaProjectDescription.setText(\"\");\n\t\t\t}\n\t\t});\n\t\t//creates a new Task with given inputs\n\t\tbtnCreateNewTask.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tTask task = new Task(textTaskName.getText(), txtAreaDescription.getText(), txtAreaReason.getText(), jdbc.getTaskID(superJobString), jdbc.getMaxTaskID()+1);\n\t\t\t\tjdbc.add_task(task);\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Task Created!\");\n\t\t\t\ttextTaskName.setText(\"\");\n\t\t\t\ttxtAreaReason.setText(\"\");\n\t\t\t\ttxtAreaDescription.setText(\"\");\n\t\t\t\tpnlCreateTask.setVisible(false);\n\n\t\t\t}\n\t\t});\t\n\t\t//assign users to job\t\t\n\t\tbuttonAssignUsers.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\n\t\t\t\tObject x = listAvailableUsers.getSelectedValue();\n\t\t\t\tassignedUsersList.addElement(x);\n\t\t\t unassignedUsersList.removeElement(x);\t\t\t\n\t\t\t}\n\t\t});\n\t\t//removes users from job\n\t\tbuttonRemoveUsers.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\n\t\t\t\tObject x = listAssignedUsers.getSelectedValue();\n\t\t\t\tunassignedUsersList.addElement(x);\n\t\t\t assignedUsersList.removeElement(x);\n\t\t\t}\n\t\t});\n\t\t//Open create new project tab\n\t\tbtn_create_project.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpnlCreateJob.setVisible(false);\n\t\t\t\tpnlCreateTask.setVisible(false);\n\t\t\t\tpnlCreateProject.setVisible(true);\n\t\t\t\tlayeredPaneAdminComponents.setLayer(pnlUserEditInfo, 2);\t\n\t\t\t\tcreateQualificationsList();\n\t\t\t\tcreateAllUsersList();\n\t\t\t}\n\t\t});\n\t\t//closes create new project tab\n\t\tbtnCancelProject.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpnlCreateProject.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t//open create new task tab\n\t\tbtn_create_task.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpnlCreateJob.setVisible(false);\n\t\t\t\tpnlCreateProject.setVisible(false);\n\t\t\t\tpnlCreateTask.setVisible(true);\n\t\t\t\tlayeredPaneAdminComponents.setLayer(pnlUserEditInfo, 2);\n\t\t\t\tloadJobs();\n\t\t\t}\n\t\t});\n\t\t//closes create new task tab\n\t\tbtnCancelTask.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpnlCreateTask.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t//open create new job tab \n\t\tbtn_create_job.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tQualification q=null;\n\t\t\t\tpnlCreateProject.setVisible(false);\n\t\t\t\tpnlCreateTask.setVisible(false);\n\t\t\t\tpnlCreateJob.setVisible(true);\t\n\t\t\t\tcreateManagersList();\n\t\t\t\tcreateAllUsersList();\n\t\t\t\tcreateQualificationsList();\n\t\t\t\tloadJobs();\n\t\t\t}\n\t\t});\n\t\t//closes create job tab\n\t\tbtnCancelJob.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpnlCreateJob.setVisible(false);\n\t\t\t\ttxtJobName.setText(\"\");\n\t\t\t\ttxtAreaJobDescription.setText(\"\");\n\t\t\t}\n\t\t});\t\n\t\t//creates a new job w/ info, assigns a manager to it,\n\t\tbtnCreateJob.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint Id= jdbc.getMaxJobID()+1;\n\t\t\t\tString s=\"\";\n\t\t\t\tString first;\n\t\t\t\tString last;\n\t\t\t\tint superjobID= jdbc.getIdOfJob(superjobsString);\n\t\t\t\tString description = txtAreaJobDescription.getText();\n\t\t\t\tJob job =new Job(Id, txtJobName.getText(), 2, description, superjobID);\t//creates job\n\t\t\t\tjob.setJobdesc(description);\n\t\t\t\tjob.setparentID(superjobID);\n\t\t\t\tjdbc.add_job(job);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //adds it to database\n\t\t\t\tjdbc.add_Manager(manager, Id);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//assigns managers to it\n\t\t\t\tjdbc.add_requiredQuals(Id,selectedQual);\t\t\t\t\t\t\t\t\t\t\t\t\t//assigns quals to it\n\t\t\t\tfor(int i=0; i<listAssignedUsers.getModel().getSize();i++){\t\t\t\t\t\t\t\t\t//assigns users to it\n\t\t\t\t\ts=(String)listAssignedUsers.getModel().getElementAt(i);\n\t\t\t\t\tlast=s.substring(0, s.indexOf(44));\n\t\t\t\t\tfirst=s.substring(s.indexOf(44)+2, s.length());\n\t\t\t\t\tSystem.out.println(s);\n\t\t\t\t\tjdbc.addUserstoJob(first, last, Id);\n\t\t\t\t}\n\t\t\t\tlayeredPaneManagerWorker.setVisible(true);\t\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Job Created!\");\n\t\t\t\tlistAssignedUsers.setModel(new DefaultListModel());\n\t\t\t\tpnlCreateJob.setVisible(false);\n\t\t\t\ttxtJobName.setText(\"\");\n\t\t\t\ttxtAreaJobDescription.setText(\"\");\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t//gets selected qualification from job and sets up users w/ it\n\t\tlistRequiredQuals.addListSelectionListener(new ListSelectionListener() {\n @Override\n public void valueChanged(ListSelectionEvent arg0) {\n if (!arg0.getValueIsAdjusting()) {\n \t selectedQual = (String)listRequiredQuals.getSelectedValue();\n \t \n \t createAllUsersList(selectedQual);\n }\n }\n });\n\t\t//listens for selection of a singular manager and saves it\n\t\tlistAssignableManagers.addListSelectionListener(new ListSelectionListener() {\n @Override\n public void valueChanged(ListSelectionEvent arg0) {\n if (!arg0.getValueIsAdjusting()) {\n String s = (String) listAssignableManagers.getSelectedValue();\n int x= s.indexOf(44);\n String last = s.substring(0, x);\n String first = s.substring(x+2, s.length());\n manager =jdbc.get_user(first, last);\n }\n }\n\t\t});\n\t\t//listens for selection of a singular qualification in project and returns users\n\t\tlistQualifications.addListSelectionListener(new ListSelectionListener() {\n\t\t\t@Override\n\t\t\tpublic void valueChanged(ListSelectionEvent arg0) {\n\t\t\t\tif (!arg0.getValueIsAdjusting()) {\n\t\t\t\t\tprojectQual = (String) listQualifications.getSelectedValue();\n\t\t\t\t\tlistedUsersAvailList.clear();\n\t\t\t\t\tArrayList<User> users = jdbc.getUsersWithQual(projectQual);\n\t\t\t\t\tfor (int i = 0; i < users.size(); i++) {\n\t\t\t\t\t\tlistedUsersAvailList.addElement(String.format(\"%s, %s\", users.get(i).get_lastname(), users.get(i).get_firstname()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t//listens for selection of a singular job in tasks and saves it\t\n\t\tlistSuperJobs.addListSelectionListener(new ListSelectionListener() {\n\t\t\t@Override\n\t\t\tpublic void valueChanged(ListSelectionEvent arg0) {\n\t\t\t\tif (!arg0.getValueIsAdjusting()) {\n\t\t\t\t\tsuperJobString = (String) listSuperJobs.getSelectedValue();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t//listens for selection of a singular job in tasks and saves it for jobs\n\t\tlistofSuperJobsList.addListSelectionListener(new ListSelectionListener() {\n\t\t\t@Override\n\t\t\tpublic void valueChanged(ListSelectionEvent arg0) {\n\t\t\t\tif (!arg0.getValueIsAdjusting()) {\n\t\t\t\t\tsuperjobsString = (String) listofSuperJobsList.getSelectedValue();\n\t\t\t\t\tSystem.out.println(superjobsString);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public GuiMainFrame() {\n this(new ArrayBlockingQueue<String>(100), new OBORunnerConfiguration());\n }", "public void launch() {\r\n\t\tthis.setLocation(200, 200);\r\n\t\tthis.setSize(COLS * BLOCK_SIZE, ROWS * BLOCK_SIZE);\r\n\t\tthis.addKeyListener(new KeyMonitor());\r\n\t\tthis.addWindowListener(new WindowAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void windowClosing(WindowEvent e) {\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}\r\n\t\t});\r\n\t\tthis.setVisible(true);\r\n\t\t\r\n\t\tnew Thread(PaintThread).start();\r\n\t\t\r\n\t}", "public void run() {\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE);\n createAndShowGUI();\n }", "public void createAndShowGUI() {\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n super.windowClosing(e);\n System.out.println(\"closing server...\");\n }\n });\n this.addComponentsToPane(this.getContentPane());\n this.pack();\n this.centreFrameInScreen();\n this.setVisible(true);\n }", "public static void main(String[] args) \n {\n javax.swing.SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n createAndShowGUI();\n }\n });\n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"FEEx v. \"+VERSION);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n //Create and set up the content pane.\n Main p = new Main();\n p.addComponentToPane(frame.getContentPane());\n\n frame.addWindowListener(new java.awt.event.WindowAdapter() {\n @Override\n public void windowClosing(java.awt.event.WindowEvent windowEvent) {\n \tstopPolling();\n \tstopMPP();\n p.port.close();\n Utils.storeSizeAndPosition(frame);\n }\n });\n \n //Display the window.\n frame.pack();\n Utils.restoreSizeAndPosition(frame);\n frame.setVisible(true);\n }", "public void init(){\r\n\t\t\r\n\t\ttry {\r\n\t\t\tSwingUtilities.invokeAndWait(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tbuildWindow();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.err.println(\"createGUI didn't complete successfully\");\r\n\t\t}\r\n\t}", "protected void showNotify() {\n try {\n myJump.systemStartThreads();\n } catch (Exception oe) {\n myJump.errorMsg(oe);\n }\n }", "public static void main(String[] args) {\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n createAndShowGUI();\n }\n });\n }", "public static void main(String[] args) {\n javax.swing.SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n createAndShowGUI();\n }\n });\n }", "public void run()\r\n\t{\r\n\t\tthis.mainFrame.setVisible(true);\r\n\t}", "void run() {\n pack();\n setVisible(true);\n }", "public static void main( String args[] ) {\r\n // This is the thread-safe way to initialize the GUI\r\n Runnable doRun = new Runnable() {\r\n public void run() { createAndShowGUI(); }\r\n };\r\n javax.swing.SwingUtilities.invokeLater( doRun );\r\n }", "public static void startTrayIcon() {\r\n try {\r\n \tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel\");\r\n } catch (Exception ex) {\r\n \tJOptionPane.showMessageDialog(null, \"Error setting Look & Feel \"+ex, \"Error setting Look & Feel\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n /* Turn off metal's use of bold fonts */\r\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE);\r\n //Schedule a job for the event-dispatching thread:\r\n //adding TrayIcon.\r\n SwingUtilities.invokeLater(new Runnable() {\r\n public void run() {\r\n createAndShowGUI();\r\n }\r\n });\r\n }", "public static void main(String[] args){\n // Creates an instance of our program\n Main gui = new Main();\n // Lets the computer know to start it in the event thread\n SwingUtilities.invokeLater(gui);\n }", "public static void main(String[] args) {\n EventQueue.invokeLater(new Runnable() {\n public void run() {\n try {\n GUI window = new GUI();\n window.frame.setVisible(true);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n }", "@Override\r\n\tprotected Void doInBackground() throws Exception {\r\n\t\tSystem.out.println(\"IQM: Initializing application and constructing GUI elements...\");\r\n\r\n\t\t// check for configuration files and its contents\r\n\t\tthis.initConfiguration();\r\n\r\n\t\t// this.runWelcomeScreenThread();\r\n\t\tthis.runCleanerTaskThread();\r\n\r\n\t\t// initialize the application\r\n\t\tthis.initApplication();\r\n\r\n\t\t// ###################\r\n\t\t// CORE\r\n\t\t// initialize and show the main IQM frame\r\n\t\tthis.updateDynamicWelcomeText(\"Constructing and initializing user interface...\");\r\n\t\tMainFrame mainFrame = new MainFrame();\r\n\r\n\t\t// defaults = \"core\" version of IQM\r\n\t\tmainFrame.initializeDefaults();\r\n\t\t// END CORE\r\n\t\t// ###################\r\n\r\n\t\t// activate the initial menus: all items but the GENERATOR type are\r\n\t\t// deactivated at startup\r\n\t\tApplicationObserver.setInitialMenuActivation();\r\n\r\n\t\tthis.startMemoryMonitorThread();\r\n\r\n\t\tthis.updateDynamicWelcomeText(\"Done, application is launching...\");\r\n\r\n\t\tSystem.out.println(\"IQM: Done.\");\r\n\t\treturn null;\r\n\t}", "private static void createAndShowGUI() {\r\n\t\tlogger.info(\"Creating and showing the GUI\");\r\n\t\tJFrame frame = new JFrame(\"BowlingSwing\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.add(new BowlingSwing());\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\ttry {\r\n\t\t\tLookAndFeelInfo look[] = UIManager.getInstalledLookAndFeels();\r\n\t\t\tfor (LookAndFeelInfo lookAndFeelInfo : look) {\r\n\r\n\t\t\t\tSystem.out.println(lookAndFeelInfo.getClassName());\r\n\t\t\t}\r\n\t\t\tUIManager.setLookAndFeel(this.config.getLookAndFeel());\r\n\t\t} catch (ClassNotFoundException | InstantiationException\r\n\t\t\t\t| IllegalAccessException | UnsupportedLookAndFeelException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tsetVisible(true);\r\n\t}", "public static void main(String[] args) {\n\r\n EventQueue.invokeLater(new Runnable() { //Invokes as runnable that queues the events\r\n\r\n @Override\r\n public void run() {\r\n Example ex = new Example();//Creates a new object of this example type\r\n ex.setVisible(true);//Sets the visibility of the created ex object to true\r\n }\r\n });\r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSwingWorker<Void,Void> worker = new SwingWorker<Void,Void>()\n\t\t\t\t{\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected Void doInBackground() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t//frmIpfs.getContentPane().add(infomation,BorderLayout.CENTER);\n\t\t\t\t\t\t//new Thread(infomation).start();\n\t\t\t\t\t\tinfomation.drawStart();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tnew Thread(new Runnable() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\twait = new waittingDialog();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}}).start();\n\t\t\t\t\t\t\tcenter.start();\n\t\t\t\t\t\t\twait.startSucess();\n\t\t\t\t\t\t\tstartButton.setEnabled(false);\n\t\t\t\t\t\t\tcloseButton.setEnabled(true);\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t\t\t\tnew IODialog();\n\t\t\t\t\t\t} catch (CipherException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t\t\t\tnew BlockChainDialog();\n\t\t\t\t\t\t} catch (Exception 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\tnew ExceptionDialog();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t};\n\t\t\t\tworker.execute();\n\t\t\t}", "public void actionPerformed(ActionEvent ev)\r\n\t\t\t{\t\t\t\t\r\n\t\t\t\tviewJob();\t\t\t\t\r\n \t\t\t}", "public void init()\n\t{\n\t\ttry\n\t\t{\n\t\t\tjavax.swing.SwingUtilities.invokeAndWait(new Runnable()\n\t\t\t{\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tcreateGUI();\n\t\t\t\t}\n\t\t\t});\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tSystem.err.println(\"createGUI didn't successfully complete: \"\n\t\t\t\t\t+ e.toString());\n\t\t}\n\t}", "public static void main(String[] args)\r\n {\r\n SwingUtilities.invokeLater(() -> createAndShowGUI());\r\n }", "public Main() {\r\n\t\ttry {\r\n\t\t\tcreateFolders();\r\n\t\t\trestaurar();\r\n\t\t\tMaterialLookAndFeel materialTheme = new MaterialLookAndFeel(\r\n\t\t\t\t\t(MaterialTheme) Utils.getInstance().getCurrentTheme());\r\n\r\n\t\t\tUIManager.setLookAndFeel(materialTheme);\r\n\t\t\tUIManager.getLookAndFeelDefaults().put(\"TabbedPane[tab].height\", 5);\r\n\t\t\tUIManager.getLookAndFeelDefaults().put(\"OptionPane.minimumSize\",new Dimension(800,100));\r\n\t\t\tSplash screen = new Splash();\r\n\t\t\tEventQueue.invokeLater(new Runnable() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tscreen.setVisible(true);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tThread t1 = new Thread(new Runnable() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tcreateTables();\r\n\t\t\t\t\tTableModelMembro.getInstance().uploadDataBase();\r\n\t\t\t\t\tTableModelFuncionario.getInstance().uploadDataBase();\r\n\t\t\t\t\tTableModelFinancas.getInstance().uploadDataBase();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tt1.start();\r\n\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(500);\r\n\t\t\t\tfor (int i = 0; i <= 100; i++) {\r\n\t\t\t\t\tThread.sleep(35);\r\n\t\t\t\t\tEventQueue.invokeLater(new Incrementar(i, screen));\r\n\t\t\t\t}\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tString message = \"Ocorreu um erro ao abrir o programa. Tenta novamente!\\n\" + e.getMessage();\r\n\t\t\t\tJOptionPane.showMessageDialog(null, message, \"Erro\", JOptionPane.ERROR_MESSAGE,\r\n\t\t\t\t\t\tnew ImageIcon(getClass().getResource(\"/FC_SS.jpg\")));\r\n\t\t\t\tLog.getInstance().printLog(message);\r\n\t\t\t}\r\n\r\n\t\t\tt1.join();\r\n\r\n\t\t\tEventQueue.invokeLater(new Runnable() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tscreen.setVisible(false);\r\n\t\t\t\t\tLogin.getInstance().open();\r\n\t\t\t\t\tinicialTime = System.currentTimeMillis();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tLog.getInstance().printLog(\"O programa iniciou\");\r\n\r\n\t\t} catch (Exception e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t\tString message = \"Ocorreu um erro ao abrir o programa. Tenta novamente!\\n\" + e1.getMessage();\r\n\t\t\tJOptionPane.showMessageDialog(null, message, \"Erro\", JOptionPane.ERROR_MESSAGE,\r\n\t\t\t\t\tnew ImageIcon(getClass().getResource(\"/FC_SS.jpg\")));\r\n\t\t\tLog.getInstance().printLog(message);\r\n\t\t\tSystem.exit(1);\r\n\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t javax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t public void run() {\n\t createAndShowGUI();\n\t }\n\t });\n\t }", "public static void main(String[] args) \r\n {\r\n SwingUtilities.invokeLater(() -> new ITC_tuition_booking_system().Startup() );\r\n }", "public void run() {\n ui.showWelcomeMessage();\n runUntilExit();\n }", "public static void main(String[] args) {\n\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tdisplayGUI();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "@Override\n public void run() {\n Optional<Task> task = model.simplestTask();\n if (task.isPresent()) {\n JLabel preamble = new JLabel(\"Your next baby step:\");\n JLabel taskTitle = new JLabel(task.get().getTitle());\n JButton completeButton = new JButton(\"Complete\");\n completeButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n task.get().setCompleted();\n setVisible(false);\n (new SingleTaskFrame(model)).run();\n }\n });\n singleColumnLayout(preamble, taskTitle, completeButton);\n } else {\n JLabel alert = new JLabel(\"No tasks remaining!\");\n JLabel affirmation = new JLabel(\"Great work!\", SwingConstants.CENTER);\n singleColumnLayout(alert, affirmation);\n }\n\n pack();\n centerFrame();\n setVisible(true);\n }", "@Override\n public void run() {\n JFrame frame = new JFrame(\"Survey\");\n frame.setPreferredSize(new Dimension(300, 400));\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n createComponents(frame.getContentPane());\n frame.pack();\n frame.setVisible(true);\n }", "public void createAndShowGUI() {\n\n setTitle(title);\n // Sets what to do when frame closes\n setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n setIconImage(new ImageIcon(ClassLoader.getSystemResource(ICON_PATH)).getImage());\n\n //shows the frame\n pack();\n setLocationRelativeTo(null); //centers frame\n setVisible(true);\n }", "public void createAndShowGUI(){\r\n\t\t//You want the jframe to close everything when it is closed\r\n\t\tjframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\tif(maximized){\r\n\t\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\t\tsWidth = (int)screenSize.getWidth();\r\n\t\t\tsHeight = (int)screenSize.getHeight();\r\n\t\t\tjframe.setSize(sWidth, sHeight);\r\n\t\t\tjframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\t\tjframe.setUndecorated(true);\r\n\t\t\tjframe.setResizable(true);\r\n\t\t\tjframe.setVisible(true);\r\n\t\t\tcWidth = sWidth;\r\n\t\t\tcHeight = sHeight;\r\n\t\t}else{\r\n\t\t\tjframe.setResizable(false);\r\n\t\t\t//Makes the jframe visible\r\n\t\t\tjframe.setVisible(true);\r\n\t\t\t//Sets the size of the jframe\r\n\t\t\tjframe.setSize(sWidth, sHeight);\r\n\t\t\t\r\n\t\t\t//I have no fucking idea why it needs this but it does\r\n\t\t\ttry{\r\n\t\t\t\tThread.sleep(100);\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Set the content width\r\n\t\t\tcWidth = jframe.getContentPane().getWidth();\r\n\t\t\t//Set the content height\r\n\t\t\tcHeight = jframe.getContentPane().getHeight();\r\n\t\t}\r\n\r\n\t\t//Set up the game menu\r\n\t\tGameMenu gmenu = new GameMenu((Graphics2D)(jframe.getContentPane().getGraphics()),cWidth,cHeight, new Input(jframe));\r\n\t\t//Draw the main menu\r\n\t\tgmenu.drawMainMenu();\r\n\t}", "public static void main(String[] args) {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tLibraryGUI window = new LibraryGUI();\n\t\t\t\t\twindow.frmLibraryManagementSystem.setLocationRelativeTo(null);\n\t\t\t\t\twindow.frmLibraryManagementSystem.setVisible(true);\n\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void run() {\n\t\t//only makeFrame once\n\t\tif(!running){\n\t\t\tmakeFrame();\n\t\t}\n\t\tmenuFrame.setVisible(true);\n\t}", "public void start(BundleContext context)\n {\n m_context = context;\n if (SwingUtilities.isEventDispatchThread())\n {\n run();\n }\n else\n {\n try\n {\n javax.swing.SwingUtilities.invokeAndWait(this);\n }\n catch (Exception ex)\n {\n ex.printStackTrace();\n }\n }\n }", "public void startApplication() {\n\t\tgameView = new GameGUI(this);\n\t\t\n\t\t/*\n\t\t * Create bonus GUI now.\n\t\t * TODO: Use swing worker thread to create bonus GUI\n\t\t * \t\t that way if GUI had more bells and whistles to it\n\t\t * \t\t the bonus GUI creation wouldn't take up processing time\n\t\t * \t\t on the main thread.\n\t\t */\n\t\tcreateBonusGUI();\n\t\t\n\t\t//GUI created and ready to show to the user\n\t\tgameView.allowVisibility();\n\t\tGameSounds.startBackgroundMusic();\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tnew mainclass().setVisible(true);\n\t\t\t}", "private static void createAndShowGUI() {\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLayout(new BorderLayout());\r\n\r\n JPanel parametersPanel = new JPanel();\r\n parametersPanel.setPreferredSize(new Dimension(preferredWidth, 50));\r\n \r\n addComponentsToPane(parametersPanel);\r\n \r\n frame.add(parametersPanel, BorderLayout.PAGE_START);\r\n \r\n schedulePanel.add(monLabel);\r\n schedulePanel.add(tueLabel);\r\n schedulePanel.add(wedLabel);\r\n schedulePanel.add(thuLabel);\r\n schedulePanel.add(friLabel);\r\n schedulePanel.setPreferredSize(new Dimension(preferredWidth, 500));\r\n JScrollPane scrollPane = new JScrollPane();\r\n scrollPane.setViewportView(schedulePanel);\r\n JPanel bigPanel = new JPanel(); \r\n bigPanel.setLayout(new BorderLayout());\r\n bigPanel.setPreferredSize(schedulePanel.getPreferredSize());\r\n bigPanel.add(scrollPane, BorderLayout.CENTER);\r\n frame.add(bigPanel, BorderLayout.CENTER);\r\n\r\n frame.setJMenuBar(createMenu());\r\n \r\n frame.pack();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n \r\n frame.setVisible(true);\r\n frame.setResizable(false);\r\n }", "public static void main(String[] args){\n\n EventQueue.invokeLater(() -> {\n GUI gui = new GUI();\n gui.setVisible(true);\n });\n }", "public static void main(String[] args) {\n\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tcreateAndShowGUI();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public static void main(String[] args) {\n\t\tjavax.swing.SwingUtilities.invokeLater(\n\t\t\tnew Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tcreateAndShowGUI();\n\t\t\t\t}\n\t\t\t});\n\t}", "public static void main(String[] args) {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tABOXBuilder window = new ABOXBuilder();\n\t\t\t\t\twindow.frame.setVisible(true);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void start() {\n\t\tSystem.out.println(\"Starting new application\");\n\t\texec.init(this);\n\t\tthread = new Thread(this);\n\t\trunning = true;\n\t\tgd.setFullScreenWindow(screen.getFrame());\n\t\tscreen.getFrame().setVisible(true);\n\t\tthread.start();\n\t}", "public static void main(String[] args) {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tnew TaskPaneExample1();\n\t\t\t}\n\t\t});\n\t}", "public void run() {\n\t\tframe.setVisible(true);\n\t}", "public static void main(String[] args) {\n\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tcreateAndShowGUI();\n\t\t\t}\n\t\t});\n\t}", "public static void main(String[] args) {\n\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tcreateAndShowGUI();\n\t\t\t}\n\t\t});\n\t}", "public static void main(String[] args) {\n\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tcreateAndShowGUI();\n\t\t\t}\n\t\t});\n\t}", "public static void main(String[] args) {\n\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tcreateAndShowGUI();\n\t\t\t}\n\t\t});\n\t}", "protected void showDialog(final IJobChangeEvent event) {\r\n\t\tDisplay display = Display.getDefault();\r\n\t\tdisplay.asyncExec(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tShell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();\r\n\t\t\t\tswitch (event.getResult().getSeverity()) {\r\n\t\t\t\tcase IStatus.ERROR:\r\n\t\t\t\t\tErrorDialog.openError(shell, \"Code Generation Error\", null, event.getResult());\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase IStatus.CANCEL:\r\n\t\t\t\t\tMessageDialog.openInformation(shell, \"Code Generation Canceled\", event.getJob().getName() + \"Code generation canceled!\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tMessageDialog.openInformation(shell, \"Code generation finished!\", event.getJob().getName()+\" finished without errors!\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t}", "private static void createAndShowGUI() {\n\n frame = new JFrame(messages.getString(\"towers.of.hanoi\"));\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n addComponentsToPane(frame.getContentPane());\n frame.pack();\n frame.setSize(800, 600);\n frame.setVisible(true);\n }", "public JanelaThread() {\n initComponents();\n }", "@Override\n public void actionPerformed(final ActionEvent e)\n {\n new Thread(new Runnable()\n {\n @Override\n public void run()\n {\n\n SwingUtilities.invokeLater(new Runnable()\n {\n @Override\n public void run()\n {\n frame.blockGUI();\n navigate(e);\n frame.releaseGUI();\n }\n });\n }\n }).start();\n }", "public void run() {\n JOptionPane pane = new JOptionPane(\"<html>\"+\n \"<font color=black>\"+\n \"Waiting to load UI Components for \"+\n \"the </font><br>\"+\n \"<font color=blue>\"+svcName+\"</font>\"+\n \"<font color=black> service running \"+\n \"on<br>\"+\n \"machine: <font color=blue>\"+\n hostName+\n \"</font><font color=black> address: \"+\n \"</font><font color=blue>\"+\n hostAddress+\"</font><br>\"+\n \"<font color=black>\"+\n \"The timeframe is longer then \"+\n \"expected,<br>\"+\n \"verify network connections.\"+\n \"</font></html>\",\n JOptionPane.WARNING_MESSAGE);\n dialog = pane.createDialog(null, \"Network Delay\");\n dialog.setModal(false);\n dialog.setVisible(true);\n }", "public void uiBuilder(){\n fontLoader();\n\n jfFrame = new JFrame(String.format(\"Coronos - %s\", username));\n jfFrame.setLayout(new BorderLayout());\n //Instantiate JFrame, add Title, add LayoutManager GridLayout\n\n\n jmMenuBar = new JMenuBar();\n //Instantiate JMenuBar\n\n jmFile = new JMenu(\"File\");\n jmHelp = new JMenu(\"Help\");\n //Adding Menus to JMenuBar\n\n jmExit = new JMenuItem(\"Exit\");\n jmAbout = new JMenuItem(\"About\");\n //Instantiating Options for JMenus\n\n jmExit.addActionListener(this);\n jmAbout.addActionListener(this);\n\n jmFile.add(jmExit);\n jmHelp.add(jmAbout);\n //adding Options to JMenus\n\n jmMenuBar.add(jmFile);\n jmMenuBar.add(jmHelp);\n //adding JMenus to JMenuBar\n\n jfFrame.setJMenuBar(jmMenuBar);\n //adding JMenuBar to JFrame\n\n jpClockPanel = new JPanel(new FlowLayout());\n jpContainerPanel = new JPanel(new FlowLayout());\n Border blackLine = BorderFactory.createTitledBorder(\"Current Time\");\n jpClockPanel.setBorder(blackLine);\n //instantiate JPanel for clock\n\n clockLabelOne = new JLabel();\n clockLabelOne.setFont(customFont);\n clockLabelOne.setForeground(Color.BLACK);\n jpClockPanel.add(clockLabelOne);\n //instantiating JLabel, setting Font and Color, adding to clockPanel\n\n clockLabelTwo = new JLabel();\n clockLabelTwo.setFont(customFont);\n clockLabelTwo.setForeground(Color.BLACK);\n jpClockPanel.add(clockLabelTwo);\n clockLabelTwo.setVisible(false);\n //instantiating JLabel, setting Font and Color, adding to clockPanel\n\n jpGridPanel1 = new JPanel(new GridLayout(4, 1, 15, 15));\n jpGridPanel2 = new JPanel(new GridLayout(4, 1, 15, 15));\n\n jbPunchIn = new JButton(\"Punch In\");\n jbReport = new JButton(\"View Report\");\n jbProfile = new JButton(\"View Profile\");\n jbSave = new JButton(\"Save\");\n jbPunchOut = new JButton(\"Punch Out\");\n jbViewPunches = new JButton(\"View Punches\");\n jbFormatTime = new JButton(\"12/24HR Time\");\n jbHideChat = new JButton(\"Hide Chat\");\n\n jbHideChat.setToolTipText(\"Hate your co-workers? Want to hide from your boss? Just close chat!\");\n\n jbPunchIn.addActionListener(this);\n jbReport.addActionListener(this);\n jbProfile.addActionListener(this);\n jbSave.addActionListener(this);\n jbPunchOut.addActionListener(this);\n jbViewPunches.addActionListener(this);\n jbFormatTime.addActionListener(this);\n jbHideChat.addActionListener(this);\n\n jpGridPanel1.add(jbPunchIn);\n jpGridPanel1.add(jbReport);\n jpGridPanel1.add(jbProfile);\n jpGridPanel1.add(jbSave);\n\n jpGridPanel2.add(jbPunchOut);\n jpGridPanel2.add(jbViewPunches);\n jpGridPanel2.add(jbFormatTime);\n jpGridPanel2.add(jbHideChat);\n\n jpActionPanel = new JPanel(new FlowLayout());\n Border actionBorder = BorderFactory.createTitledBorder(\"Employee Actions\");\n jpActionPanel.setBorder(actionBorder);\n jpActionPanel.add(jpGridPanel1);\n jpActionPanel.add(jpGridPanel2);\n jpContainerPanel.add(jpActionPanel);\n\n jpChatPanel = new JPanel(new BorderLayout());\n jpAreaPanel = new JPanel(new FlowLayout());\n jtaChatArea = new JTextArea(10, 10);\n jtaChatArea.setLineWrap(true);\n jtaChatArea.setWrapStyleWord(true);\n jtaChatArea.setEditable(false);\n jspChatPane = new JScrollPane(jtaChatArea);\n jtfChatField = new JTextField(12);\n jtfChatField.addActionListener(this);\n jtfChatField.setActionCommand(\"Send\");\n chatButton = new JButton(\"Send\");\n chatButton.addActionListener(this);\n jpSendPanel = new JPanel(new FlowLayout());\n jpSendPanel.add(jtfChatField);\n jpSendPanel.add(chatButton);\n Border chatBorder = BorderFactory.createTitledBorder(\"Chat\");\n jpChatPanel.setBorder(chatBorder);\n jpChatPanel.add(jspChatPane, BorderLayout.NORTH);\n jpChatPanel.add(jpSendPanel, BorderLayout.SOUTH);\n jpContainerPanel.add(jpChatPanel);\n\n // jfFrame.add(clockPanelTwo, BorderLayout.NORTH);\n jfFrame.add(jpClockPanel, BorderLayout.NORTH);\n jfFrame.add(jpContainerPanel, BorderLayout.SOUTH);\n\n //adding JPanels to JFrame\n\n jfFrame.setLocationRelativeTo(null);\n jfFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n jfFrame.setVisible(false);\n jfFrame.pack();\n jfFrame.setSize(600, 375);\n jfFrame.setResizable(false);\n \n //settings for frame\n\n ActionListener clockUpdateOne = new ActionListener(){\n /**\n * actionPerformed: A method to handle Events from a Timer\n * @param ae an ActionEvent\n */\n public void actionPerformed(ActionEvent ae){\n Date date = new Date();\n //instantiate new Date object\n\n DateFormat format = new SimpleDateFormat(\"E, MMM d y HH:mm:ss\");\n //set format of clock\n\n DateFormat otherFormat = new SimpleDateFormat(\"E, MMM, d y KK:mm:ss a\");\n //12 hour time\n\n String dateTime = format.format(date);\n //formatting date object using format template\n\n String otherDateTime = otherFormat.format(date);\n\n clockLabelOne.setText(dateTime);\n //setting clock text to formatted String\n }\n };\n clockTimerOne = new javax.swing.Timer(0, clockUpdateOne);\n clockTimerOne.start();\n //timer to update clockLabel\n ActionListener clockUpdateTwo = new ActionListener(){\n /**\n * actionPerformed: A method to handle Events from a Timer\n * @param ae an ActionEvent\n */\n public void actionPerformed(ActionEvent ae){\n Date date = new Date();\n //instantiate new Date object\n\n DateFormat otherFormat = new SimpleDateFormat(\"E, MMM, d y K:mm:ss a\");\n //12 hour time\n\n String otherDateTime = otherFormat.format(date);\n\n clockLabelTwo.setText(otherDateTime);\n //setting clock text to formatted String\n }\n };\n clockTimerTwo = new javax.swing.Timer(0, clockUpdateTwo);\n clockTimerTwo.start();\n\n }", "public GUI(Display display) {\n\t\t/* Init fields */\n\t\tGUI.display = display;\n\t\tGUI.gui = this;\n\t\t// displayThread = Thread.currentThread();\n\t\t/* Startup process */\n\t}" ]
[ "0.64885265", "0.6397158", "0.6296545", "0.62747806", "0.62063926", "0.6205675", "0.61920106", "0.6188137", "0.61814064", "0.61651886", "0.6154597", "0.61081684", "0.6092861", "0.60917985", "0.6084003", "0.6084003", "0.60828483", "0.6069589", "0.60424024", "0.6037526", "0.6030122", "0.6014064", "0.601398", "0.60045284", "0.6002858", "0.5999261", "0.5979715", "0.5979715", "0.59792626", "0.59781146", "0.59759396", "0.59741", "0.59735954", "0.5970296", "0.59685075", "0.5968082", "0.5962233", "0.5962233", "0.5961448", "0.5956416", "0.5952598", "0.5946964", "0.5940873", "0.59357446", "0.59184015", "0.59172755", "0.59145814", "0.5906623", "0.5903259", "0.58701944", "0.5870111", "0.5867123", "0.5852439", "0.5832949", "0.5821251", "0.5818679", "0.5807776", "0.5804659", "0.5793961", "0.5793326", "0.5778685", "0.5777575", "0.5777183", "0.57683504", "0.5765188", "0.5764809", "0.5763865", "0.57629615", "0.5762604", "0.5754201", "0.57513916", "0.5750451", "0.5744246", "0.57273334", "0.5727032", "0.5714066", "0.57123804", "0.5711127", "0.57070744", "0.5702318", "0.56871116", "0.5684381", "0.5680054", "0.5679779", "0.5675947", "0.56758827", "0.56716985", "0.56716985", "0.56716985", "0.56716985", "0.56709564", "0.5657029", "0.5647893", "0.5645317", "0.564127", "0.5638248", "0.56377286" ]
0.58496153
56
Creates a new inventory
public Inventory(Integer size, ItemStack... items) { this.setSize((size == 0) ? 2147483647 : size); for (ItemStack stack : items) { ITEMS.add(stack); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createItemInInventory(Item newItem) {\n\t\tinventory.createItem(newItem);\n\t}", "@RequestMapping(method = RequestMethod.POST, produces = \"application/json\", headers = \"Accept=application/json\" )\n public ResponseEntity<?> createInventory(@Valid @RequestBody InventoryRequest inventoryRequest){\n Product product = productService.getProductById(inventoryRequest.getProductId());\n\n //Criando produto no estoque\n Inventory inventory = inventoryService.createInventoryItem(new Inventory(inventoryRequest.getAmount()));\n product.setInventory(inventory);\n inventory.setProduct(product);\n\n //Atualizando associações entre estoque e produto\n inventoryService.updateInventoryItem(inventory);\n\n return ResponseEntity.status(HttpStatus.CREATED).build();\n }", "private Inventory createInventory() {\n\n\t\tInventory inv;\n\n\t\tif (guiMetadata.getInvType() == InventoryType.CHEST) {\n\t\t\tinv = Bukkit.createInventory(null, guiMetadata.getSize(), guiMetadata.getGuiName());\n\t\t} else {\n\t\t\tinv = Bukkit.createInventory(null, guiMetadata.getInvType(), guiMetadata.getGuiName());\n\t\t}\n\n\t\treturn inv;\n\t}", "@Test\n\tpublic void testAddInventory() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"4\",\"7\",\"0\",\"9\");\n\t}", "public void createCardInventory() {\n try {\n if (cardInventoryDataBean != null) {\n String response = cardInventoryTransformerBean.createCardInventory(cardInventoryDataBean);\n if (SystemConstantUtil.SUCCESS.equals(response)) {\n System.out.println(\"Create CardInventory Successfully\");\n messageDataBean.setMessage(\"CardInventory added successfully.\");\n messageDataBean.setIsSuccess(Boolean.TRUE);\n cardInventoryDataBean.setNull();\n this.retrieveCardInventoryList();\n } else {\n System.out.println(\"CardInventory not created\");\n messageDataBean.setMessage(response);\n messageDataBean.setIsSuccess(Boolean.FALSE);\n }\n }\n } catch (Exception e) {\n messageDataBean.setMessage(e.toString());\n messageDataBean.setIsSuccess(Boolean.FALSE);\n System.out.println(e);\n }\n }", "public static void createItem(String inputCommand) {\r\n\t\tString[] value = inputCommand.split(\" \");\r\n\t\tif(value.length == 4 && \"create\".equalsIgnoreCase(value[0])) {\r\n\t\t\tInventory inventory = new Inventory();\r\n\t\t\tinventory.setItemName(value[1]);\r\n\t\t\tinventory.setItemCostPrice(Double.parseDouble(value[2]));\r\n\t\t\tinventory.setItemSellPrice(Double.parseDouble(value[3]));\r\n\t\t\tinventoryList.put(value[1], inventory);\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Entered wrong input command\");\r\n\t\t}\r\n\t}", "protected void addInventoryItemType() {\n\t\tProperties props = new Properties();\n\n\t\t/* DEBUG\n\t\t\n\t\tSystem.out.println(typeNameTF.getText());\n\t\tSystem.out.println(unitsTF.getText());\n\t\tSystem.out.println(unitMeasureTF.getText());\n\t\tSystem.out.println(validityDaysTF.getText());\n\t\tSystem.out.println(reorderPointTF.getText());\n\t\tSystem.out.println(notesTF.getText());\n\t\tSystem.out.println(statusCB.getValue());\n\t\n\t\t*/ \n\n\t\t// Set the values.\n\t\tprops.setProperty(\"ItemTypeName\", typeNameTF.getText());\n\t\tprops.setProperty(\"Units\", unitsTF.getText());\n\t\tprops.setProperty(\"UnitMeasure\", unitMeasureTF.getText());\n\t\tprops.setProperty(\"ValidityDays\", validityDaysTF.getText());\n\t\tprops.setProperty(\"ReorderPoint\", reorderPointTF.getText());\n\t\tprops.setProperty(\"Notes\", notesTF.getText());\n\t\tprops.setProperty(\"Status\", (String) statusCB.getValue());\n\n\t\t// Create the inventory item type.\n\t\tInventoryItemType iit = new InventoryItemType(props);\n\n\t\t// Save it into the database.\n\t\tiit.update();\n\n\t\tpopulateFields();\n\t\t\n\t\t// Display message on GUI.\n\t\t//submitBTN.setVisible(false);\n\t\tcancelBTN.setText(\"Back\");\n\t\tmessageLBL.setText(\"Inventory Item Type added.\");\n\t}", "public InventoryItem(String name) { \n\t\tthis(name, 1);\n\t}", "@Override\n\tpublic void addNewinventory(Inventory newinventory) {\n\t\tinventoryDao.save(newinventory);\n\t}", "public void createMainInventor() {\n String name = _plugin.getConfigManager().getGeneralSettingsMap().get(\"Name\");\r\n String colorizedName = _plugin.getUtilsManager().colorizeString(name);\r\n //Size of the Inventory;\r\n int inventorySize = Integer.valueOf(_plugin.getConfigManager().getGeneralSettingsMap().get(\"InventorySize\"));\r\n //Initialize Inventory;\r\n mainInventory = _plugin.getServer().createInventory(null, inventorySize, colorizedName);\r\n //Retrieve the HashMaps for the plugin;\r\n HashMap<Integer, CategoryItem> categoryInformationMap = _plugin.getConfigManager().getCategoryInformationMap();\r\n HashMap<String, String> languageInformation = _plugin.getConfigManager().getLanguageInformationMap();\r\n //Add items to Inventory;\r\n for (Integer i : categoryInformationMap.keySet()) {\r\n CategoryItem categoryItem = categoryInformationMap.get(i);\r\n ItemStack item = categoryItem.getItem();\r\n ItemMeta itemMeta = item.getItemMeta();\r\n itemMeta.setDisplayName(_plugin.getUtilsManager().colorizeString(languageInformation.get(\"CategoryName\").replace(\"%cat%\", categoryItem.getName())));\r\n List<String> lore = new ArrayList<>();\r\n lore.add(_plugin.getUtilsManager().colorizeString(categoryItem.getDescription()));\r\n item.setItemMeta(itemMeta);\r\n mainInventory.addItem(item);\r\n }\r\n }", "private static Inventory[] createInventoryList() {\n Inventory[] inventory = new Inventory[3];\r\n \r\n Inventory potion = new Inventory();\r\n potion.setDescription(\"potion\");\r\n potion.setQuantityInStock(0);\r\n inventory[Item.potion.ordinal()] = potion;\r\n \r\n Inventory powerup = new Inventory();\r\n powerup.setDescription(\"powerup\");\r\n powerup.setQuantityInStock(0);\r\n inventory[Item.powerup.ordinal()] = powerup;\r\n \r\n Inventory journalclue = new Inventory();\r\n journalclue.setDescription(\"journalclue\");\r\n journalclue.setQuantityInStock(0);\r\n inventory[Item.journalclue.ordinal()] = journalclue;\r\n \r\n return inventory;\r\n }", "public Inventory() {\n this.SIZE = DEFAULT_SIZE;\n this.ITEMS = new ArrayList<>();\n }", "private void addToInventory(Item item) {\n inventory.put(item.getName(), item);\n }", "@PreAuthorize(\"#oauth2.hasScope('pharmacy_inventory') and hasRole('USER')\")\n\t@PostMapping(\"/inventories\")\n\t@ResponseStatus(HttpStatus.CREATED)\n\tpublic void createPharmacyInventory(@RequestBody @Validated PharmacyInventory pharmacyInventory) {\n\t\tpharmacyInventoryService.createPharmacyInventory(pharmacyInventory);\n\t}", "void addElementToInventory(String elementName);", "void createItem (String name, String description, double price);", "public void addProduct(Product item){\n inventory.add(item);\n }", "public void save() {\r\n\t\tGame.getInstance().getInventory().add(id);\r\n\t}", "public void addItemToInventory(Item ... items){\n this.inventory.addItems(items);\n }", "public InventoryItem addInventoryItem(int charId, String name, String desc) {\n\t\tSQLiteDatabase database = getWritableDatabase();\n\n\t\tContentValues gamevals = new ContentValues();\n\t\tgamevals.put(\"name\", name);\n\t\tgamevals.put(\"description\", desc);\n\t\tgamevals.put(\"character_id\", charId);\n\n\t\tlong rowid = database.insert(\"inventory_item\", null, gamevals);\n\n\t\tString[] args = new String[] { \"\" + rowid };\n\t\tCursor c = database.rawQuery(\n\t\t\t\t\"SELECT * FROM inventory_item WHERE inventory_item.ROWID =?\",\n\t\t\t\targs);\n\t\tc.moveToFirst();\n\n\t\treturn new InventoryItem(\n\t\t\t\tc.getInt(c.getColumnIndex(\"_id\")), c.getString(c\n\t\t\t\t\t\t.getColumnIndex(\"name\")), c.getString(c\n\t\t\t\t\t\t.getColumnIndex(\"description\")));\n\t}", "@Test(expected = InventoryException.class)\n\tpublic void testAddSugarPositiveInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"0\", \"15\", \"0\");\n\t}", "void openInventory(Player player, SimpleInventory inventory);", "@Override\n\tpublic Item create() {\n\t\tLOGGER.info(\"Shoe Name\");\n\t\tString item_name = util.getString();\n\t\tLOGGER.info(\"Shoe Size\");\n\t\tdouble size = util.getDouble();\n\t\tLOGGER.info(\"Set Price\");\n\t\tdouble price = util.getDouble();\n\t\tLOGGER.info(\"Number in Stock\");\n\t\tlong stock = util.getLong();\n\t\tItem newItem = itemDAO.create(new Item(item_name, size, price, stock));\n\t\tLOGGER.info(\"\\n\");\n\t\treturn newItem;\n\t}", "public void addToInventory() {\r\n\t\tdo {\r\n\t\t\tint quantity = 0;\r\n\t\t\tString brand = getToken(\"Enter washer brand: \");\r\n\t\t\tString model = getToken(\"Enter washer model: \");\r\n\t\t\tWasher washer = store.searchWashers(brand + model);\r\n\t\t\tif (washer == null) {\r\n\t\t\t\tSystem.out.println(\"No such washer exists.\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tquantity = getInteger(\"Enter quantity to add: \");\r\n\t\t\tboolean result = store.addWasherToInventory(brand, model, quantity);\r\n\t\t\tif(result) {\r\n\t\t\t\tSystem.out.println(\"Added \" + quantity + \" of \" + washer);\r\n\t\t\t}else {\r\n\t\t\t\tSystem.out.println(\"Washer could not be added to inventory.\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} while (yesOrNo(\"Add more washers to the inventory?\"));\r\n\t}", "@Test(expected = InventoryException.class)\n\tpublic void testAddInventoryException() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"4\", \"-1\", \"asdf\", \"3\");\n\t}", "@Override\n\tpublic void openInventory() {\n\t\t\n\t}", "public void addItem(String i) {\n\t\tItem item = Item.getItem(ItemList, i);\n\t Inventory.add(item);\n\t inventoryList.getItems().add(i);\n\n\t}", "@Test(expected = InventoryException.class)\n\tpublic void testAddSugarNotPositiveInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"0\", \"-15\", \"0\");\n\t}", "public void addItem(Product p, int qty){\n //store info as an InventoryItem and add to items array\n this.items.add(new InventoryItem(p, qty));\n }", "public Inventory(int INVENTORY_SLOTS) {\n\t\tsuper();\n\t\tthis.inventoryItems = new Item[INVENTORY_SLOTS];\n\t\tthis.INVENTORY_SLOTS = INVENTORY_SLOTS;\n\t}", "public InventoryItem(){\r\n this.itemName = \"TBD\";\r\n this.sku = 0;\r\n this.price = 0.0;\r\n this.quantity = 0;\r\n nItems++;\r\n }", "public Inventory() {\r\n initialize();\r\n }", "public Inventory(){\n this.items = new ArrayList<InventoryItem>(); \n }", "@Test(expected = InventoryException.class)\n\tpublic void testAddSugarNotInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"0\", \"abcd\", \"0\");\n\t}", "@Override\n @LogMethod\n public T create(T entity) throws InventoryException {\n \tInventoryHelper.checkNull(entity, \"entity\");\n repository.persist(entity);\n return repository.getByKey(entity.getId());\n }", "ShipmentItem createShipmentItem();", "public com.google.longrunning.Operation setInventory(com.google.cloud.retail.v2beta.SetInventoryRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getSetInventoryMethod(), getCallOptions(), request);\n }", "ItemStack make();", "public static void addItem(Inventory inv, String itemName, Material materialName, Integer index) {\r\n ItemStack is = new ItemStack(materialName);\r\n ItemMeta meta = is.getItemMeta();\r\n meta.setDisplayName(itemName);\r\n is.setItemMeta(meta);\r\n inv.setItem(index, is);\r\n }", "public boolean addNewInventory() {\n if (characterVM.addNewInventory(inventoryEntityToRetrieve.peek())) {\n removeTopRewardAndContinue();\n return true;\n }\n return false;\n }", "@Test\r\n public void testAddInventory() throws InventoryException {\r\n coffeeMaker.addInventory(\"4\", \"7\", \"0\", \"9\");\r\n coffeeMaker.addInventory(\"0\", \"0\", \"0\", \"0\");\r\n coffeeMaker.addInventory(\"3\", \"6\", \"9\", \"12\"); // this should not fail\r\n coffeeMaker.addInventory(\"10\", \"10\", \"10\", \"10\");// this should not fail\r\n }", "public void addItemInventory(Item item){\r\n playerItem.add(item);\r\n System.out.println(item.getDescription() + \" was taken \");\r\n }", "public InventoryEntity(int id) {\n\t\tthis.id = id;\n\t}", "public void saveNew() {\r\n String name, compName;\r\n double price;\r\n int id, inv, max, min, machId;\r\n //Gets the ID of the last part in the inventory and adds 1 to it \r\n id = Inventory.getAllParts().get(Inventory.getAllParts().size() - 1).getId() + 1;\r\n name = nameField.getText();\r\n inv = Integer.parseInt(invField.getText());\r\n price = Double.parseDouble(priceField.getText());\r\n max = Integer.parseInt(maxField.getText());\r\n min = Integer.parseInt(minField.getText());\r\n\r\n if (inHouseSelected) {\r\n machId = Integer.parseInt(machineOrCompanyField.getText());\r\n Part newPart = new InHouse(id, name, price, inv, min, max, machId);\r\n Inventory.addPart(newPart);\r\n } else {\r\n compName = machineOrCompanyField.getText();\r\n Part newPart = new Outsourced(id, name, price, inv, min, max, compName);\r\n Inventory.addPart(newPart);\r\n }\r\n\r\n }", "public void createInventoryReward() {\n if (inventoryEntityToRetrieve == null) {\n try {\n inventoryEntityToRetrieve = RandomBenefitModel.getInventoryRewards(application, encounter, characterVM.getDistance());\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }", "public BaseInventory (long id) {\r\n\t\tsuper(id);\r\n\t}", "public ItemStack createItem(ItemType type, int damage,List<Text> lore);", "public void fillChest(Inventory inv);", "public InventoryItem(String name, int quantity) {\n\t\tthis.name = name;\n\t\tthis.quantity = quantity;\n\t}", "public void postInventory(String Name) throws SQLException {\r\n dataAccess = new Connection_SQL(\"jdbc:mysql://localhost:3306/items\", \"root\", \"P@ssword123\");\r\n dataAccess.archiveInventory(Name);\r\n try {\r\n new Inventory_Table();\r\n } catch (SQLException throwable) {\r\n throwable.printStackTrace();\r\n }\r\n }", "public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> setInventory(\n com.google.cloud.retail.v2beta.SetInventoryRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getSetInventoryMethod(), getCallOptions()), request);\n }", "public HistoryEntryInventory(String itemName, Integer amount) {\n timestamp = new Date(); //Current time\n this.itemName = itemName;\n this.amount = amount;\n }", "public suiluppo_equip_allocation create(long equip_allocat_id);", "public InventoryList() {\n super(\"Inventory List\");\n }", "@Test(expected = InventoryException.class)\n\tpublic void testAddCoffeeNotPositiveInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"-15\", \"0\", \"0\", \"0\");\n\t}", "public Inventory () {\n weaponsInventory = new ArrayList<>();\n pointInventory = 0;\n lenInventory = 0;\n }", "@Test(expected = InventoryException.class)\r\n public void testAddInventoryException() throws InventoryException {\r\n coffeeMaker.addInventory(\"4\", \"-1\", \"asdf\", \"3\");\r\n coffeeMaker.addInventory(\"coffee\", \"milk\", \"sugar\", \"choco\");\r\n\r\n }", "public void addItemInventory(Item item){\n playerItem.add(item);\n System.out.println(item.getDescription() + \" was taken \");\n System.out.println(item.getDescription() + \" was removed from the room\"); // add extra information to inform user that the item has been taken\n }", "ItemStack createItemStack(CompoundTag tag);", "public List<InventoryEntity> addInventory(Inventory inventory) {\n\t\treturn inventoryDao.addInventory(inventory);\n\t}", "public InventoryNew(String server, String username, String password, float itemCostFromSup, float itemCostToCust, String itemDesc, int itemInsCovg, int itemPrescription, int supNum){\n\t\tcreateConnection(server,username,password,pharmacyName);\n\t\tinsert(itemCostFromSup,itemCostToCust,itemDesc,itemInsCovg,itemPrescription, supNum,false);\n\t}", "public InventoryEntry() {\n super();\n }", "public Item createNew(int xpos, int ypos) {\r\n Item i = new Item(name, id);\r\n i.setPosition(xpos, ypos);\r\n return i;\r\n }", "@Test(expected = InventoryException.class)\n\tpublic void testAddCoffeeNotInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"abcd\", \"0\", \"0\", \"0\");\n\t}", "public Inventory() {\r\n invPower = 0;\r\n invDefense = 0;\r\n invSpeed = 0;\r\n invAwareness = 0;\r\n treasures = new ArrayList<>();\r\n }", "public void addItem(Item itemToAdd){\n\t\tif(!isFull()){\n\t\t\tint index = findFreeSlot();\n\t\t\tinventoryItems[index] = itemToAdd;\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Inventory full.\");\n\t\t}\n\t\t\n\t}", "public void add(Inventory toAdd) throws DuplicateInventoryException {\n requireNonNull(toAdd);\n if (contains(toAdd)) {\n throw new DuplicateInventoryException();\n }\n\n list.add(toAdd);\n }", "public void writeInventoryToNBT(CompoundNBT tag) {\n IInventory inventory = this;\n ListNBT nbttaglist = new ListNBT();\n\n for (int i = 0; i < inventory.getSizeInventory(); i++) {\n if (!inventory.getStackInSlot(i).isEmpty()) {\n CompoundNBT itemTag = new CompoundNBT();\n itemTag.putByte(TAG_SLOT, (byte) i);\n inventory.getStackInSlot(i).write(itemTag);\n nbttaglist.add(itemTag);\n }\n }\n\n tag.put(TAG_ITEMS, nbttaglist);\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n String SQL_CREATE_INVENTORY_TABLE = \"CREATE TABLE \" + InventoryEntry.TABLE_NAME + \" (\"\n + InventoryEntry._ID + \" INTEGER PRIMARY KEY AUTOINCREMENT, \"\n + InventoryEntry.COLUMN_INVENTORY_NAME + \" TEXT NOT NULL, \"\n + InventoryEntry.COLUMN_INVENTORY_PRICE + \" INTEGER DEFAULT 0, \"\n + InventoryEntry.COLUMN_INVENTORY_QUANTITY + \" INTEGER DEFAULT 0, \"\n + InventoryEntry.COLUMN_INVENTORY_SUPPLIER + \" TEXT, \"\n + InventoryEntry.COLUMN_INVENTORY_BLOB + \" BLOB );\";\n\n // Execute the SQL statement\n db.execSQL(SQL_CREATE_INVENTORY_TABLE);\n }", "public GroceryBSTNode inventoryAdd (TheGroceryStore g);", "@Test(expected = InventoryException.class)\n\tpublic void testAddChocolateNotInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"0\", \"0\", \"abcd\");\n\t}", "@Override\n public Item createItem(int itemNum, Item item) throws VendingMachinePersistenceException {\n loadItemFile();\n Item newItem = itemMap.put(itemNum, item);\n writeItemFile();\n return newItem;\n }", "@Test(expected = InventoryException.class)\n\tpublic void testAddMilkNotInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"abcd\", \"0\", \"0\");\n\t}", "@Test(expected = InventoryException.class)\n\tpublic void testAddMilkNotPositiveInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"-15\", \"0\", \"0\");\n\t}", "InventoryItem getInventoryItem();", "public Inventory(String kodeWh,String kodeProd,double hargaProd,int jumlahProd){\n this.kodeWh=kodeWh;\n this.kodeProd=kodeProd;\n this.hargaProd=hargaProd;\n this.jumlahProd=jumlahProd;\n }", "@Test(expected = InventoryException.class)\n\tpublic void testAddChocolateNotPositiveInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"0\", \"0\", \"-15\");\n\t}", "void loadInventory() {\n\n // make sure there isn't already an inventory record\n MrnInventory checkInv[] =\n new MrnInventory(survey.getSurveyId()).get();\n\n if (dbg3) System.out.println(\"<br>loadInventory: survey.getSurveyId() = \" +\n survey.getSurveyId());\n if (dbg3) System.out.println(\"<br>loadInventory: checkInv.length = \" +\n checkInv.length);\n\n if (checkInv.length == 0) {\n\n inventory.setSurveyId(survey.getSurveyId());\n\n // defaults\n inventory.setDataCentre(\"SADCO\");\n inventory.setTargetCountryCode(0); // unknown\n inventory.setStnidPrefix(survey.getInstitute());\n inventory.setDataRecorded(\"Y\");\n\n // from screen - done in LoadMRNData.getArgsFromFile()\n //inventory.setCountryCode(screenInv.getCountryCode());\n //inventory.setPlanamCode(screenInv.getPlanamCode());\n //inventory.setInstitCode(screenInv.getInstitCode());\n //inventory.setCruiseName(screenInv.getCruiseName());\n //inventory.setProjectName(screenInv.getProjectName());\n //inventory.setAreaname(screenInv.getAreaname()); // use as default to show on screen\n //inventory.setDomain(screenInv.getDomain()); // use as default to show on screen\n\n inventory.setCountryCode(0); // unknown\n\n inventory.setSciCode1(1); // unknown\n inventory.setSciCode2(1); // unknown // new\n inventory.setCoordCode(1); // unknown\n\n inventory.setProjectionCode(1); // unknown\n inventory.setSpheroidCode(1); // unknown\n inventory.setDatumCode(1); // unknown\n\n inventory.setSurveyTypeCode(1); // hydro\n if (dbg) System.out.println(\"loadInventory: put inventory = \" + inventory);\n\n try {\n inventory.put();\n } catch(Exception e) {\n System.err.println(\"loadInventory: put inventory = \" + inventory);\n System.err.println(\"loadInventory: put sql = \" + inventory.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadInventory: put inventory = \" +\n inventory);\n\n } // if (checkInv.length > 0)\n\n }", "public Sale(InventoryHandler inv){\n this.saleInfo = new SaleInfo();\n this.inventory = inv;\n }", "public void addPart() {\n\n if(isValidPart()) {\n double price = Double.parseDouble(partPrice.getText());\n String name = partName.getText();\n int stock = Integer.parseInt(inventoryCount.getText());\n int id = Integer.parseInt(partId.getText());\n int minimum = Integer.parseInt(minimumInventory.getText());\n int maximum = Integer.parseInt(maximumInventory.getText());\n String variableText = variableTextField.getText();\n\n if (inHouse.isSelected()) {\n InHouse newPart = new InHouse(id,name,price,stock,minimum,maximum,Integer.parseInt(variableText));\n if (PassableData.isModifyPart()) {\n Controller.getInventory().updatePart(PassableData.getPartIdIndex(), newPart);\n } else {\n Controller.getInventory().addPart(newPart);\n }\n\n } else if (outsourced.isSelected()) {\n Outsourced newPart = new Outsourced(id,name,price,stock,minimum,maximum,variableText);\n if (PassableData.isModifyPart()) {\n Controller.getInventory().updatePart(PassableData.getPartIdIndex(), newPart);\n } else {\n Controller.getInventory().addPart(newPart);\n }\n }\n try {\n InventoryData.getInstance().storePartInventory();\n InventoryData.getInstance().storePartIdIndex();\n } catch (IOException e) {\n e.printStackTrace();\n }\n exit();\n\n }\n }", "public void fillInventory(TheGroceryStore g);", "public static ItemStack createItemStack()\r\n \t{\r\n \t\treturn new ItemStack(0);\r\n \t}", "public static void createItems(){\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"breadly\"), BREADLY);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"hard_boiled_egg\"), HARD_BOILED_EGG);\n\n\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"ender_dragon_spawn_egg\"), ENDER_DRAGON_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"wither_spawn_egg\"), WITHER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"illusioner_spawn_egg\"), ILLUSIONER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"giant_spawn_egg\"), GIANT_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"spawn_spawn_egg\"), SPAWN_SPAWN_EGG);\n }", "void updateInventory(String busNumber, String tripDate, int inventory) throws NotFoundException;", "@Test\n void testAdding100Items() {\n Inventory inventory = new Inventory();\n int itemsToAdd = 100;\n\n assertEquals(0, inventory.getItems(\"\").size());\n\n for (int i = 0; i < itemsToAdd; i++) {\n inventory.addItem(\"XXXXXXXX\" + String.format(\"%02d\", i), \"Name\", 20.00, i);\n }\n\n assertEquals(100, inventory.getItems(\"\").size());\n }", "@Override\n public void openInventory() {\n PacketPlayOutOpenWindow packetPlayOutOpenWindow = new PacketPlayOutOpenWindow(this.fakeAnvil.getContainerId(), Containers.ANVIL, new ChatMessage(this.title));\n ((CraftPlayer) player).getHandle().playerConnection.sendPacket(packetPlayOutOpenWindow);\n ((CraftPlayer) player).getHandle().activeContainer = this.fakeAnvil;\n this.fakeAnvil.addSlotListener(((CraftPlayer) player).getHandle());\n }", "@Override\n\tpublic void editInventory(Inventory inventory) {\n\t\tinventoryDao.save(inventory);\n\t}", "public Basket(Inventory inventory){\n myBasket = new HashMap<>();\n totalCost = 0;\n isPaid = false;\n Random randomGenerator = new Random();\n invoiceNumber = randomGenerator.nextInt(30000) + 1;\n this.inventory = inventory;\n }", "public Inventory getInventory(){ //needed for InventoryView - Sam\n return inventory;\n }", "public void addOrderItem(int custId, int quantity, int inventory,int status) {\n\t\tInventory inventoryItem = orderItemsRepo.getById(inventory);\n\t\torderItemsRepo.addOrderItem(custId, quantity, inventoryItem ,status);\n\t}", "public int addItem(String name, int value) {\n\t\tfor (int i = 0; i < inventoryslot.length; i++) {\n\t\t\tif (inventoryslot[i].getItemname()==name) {\n\t\t\t\ttempstate=inventoryslot[i].changevalue(value);\n\t\t\t\tif(tempstate>0)return tempstate;/**Item over stacksize */\n\t\t\t\telse if(tempstate<0)return tempstate;/** Item empty*/\n\t\t\t\treturn tempstate;/** item added inventory */\n\t\t\t}\t\t\t\t\n\t\t}\n\t\treturn -1;/** item does not exists in inventory */\n\t}", "@PostMapping (Constants.PATH_ALLOCATE_INVENTORY)\n public ResponseEntity<ApiResponse> allocateInventory(@RequestBody AssignInventoryRequestDto assignInventoryRequestDto) {\n return ResponseEntity.ok(wmsService.allocateInventory(assignInventoryRequestDto));\n }", "public void setInventory(int inventory){\r\n inventoryNumber += inventory;\r\n }", "Quantity createQuantity();", "@Test\r\n\tpublic void testAddItem_not_occupied() {\r\n\t\tVendingMachineItem test = new VendingMachineItem(\"test\", 10.0);\r\n\t\tvendMachine.addItem(test, \"A\");\r\n\t\tassertEquals(test, vendMachine.getItem(\"A\"));\r\n\t}", "public void addItemtoInventoryList(String item) {\r\n InventoryList.add(item);\r\n }", "public static ItemStack createItem(String customName, Material material, String ID) {\r\n ItemStack is = new ItemStack(material);\r\n ItemMeta isMeta = is.getItemMeta();\r\n isMeta.setDisplayName(customName); //you can even set color\r\n ArrayList<String> lore = new ArrayList<>();\r\n lore.add(ID);\r\n isMeta.setLore(lore);\r\n is.setItemMeta(isMeta);\r\n return is;\r\n }", "public void dumpInventory() {\n\t\tFileWriter writer;\n\t\ttry {\n\t\t\twriter = new FileWriter(inventoryFilePath);\n\t\t\tyaml.dump(testInventoryData, writer);\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "@Test\r\n public void testUpdateSugarInventory() throws InventoryException {\r\n coffeeMaker.addInventory(\"0\", \"0\", \"5\", \"0\");\r\n String updatedInventory = \"Coffee: 15\\nMilk: 15\\nSugar: 20\\nChocolate: 15\\n\";\r\n assertEquals(updatedInventory, coffeeMaker.checkInventory());\r\n }", "public void createOrderItem() {\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tRestaurantApp.globalMenuManager.printMenu(); //create a globalmenuManager so that other classes can access the menu\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"Which item would you like to order?\");\r\n\t\t\tint menuIndex = sc.nextInt();\r\n\t\t\tsc.nextLine();\r\n\t\t\tif (menuIndex <= 0 || menuIndex > RestaurantApp.globalMenuManager.getSizeOfMenu()){\r\n\t\t\t\tthrow new ArrayIndexOutOfBoundsException(\"Please input a valid index from 1 to \"+RestaurantApp.globalMenuManager.getSizeOfMenu());\r\n\t\t\t}\r\n\t\t\tthis.menuItem = RestaurantApp.globalMenuManager.getMenuItem(menuIndex-1);\r\n\t\t\tSystem.out.println(\"How many of this are you ordering?\");\r\n\t\t\tthis.quantity = sc.nextInt();\r\n\t\t\tsc.nextLine();\r\n\t\t\tSystem.out.println(\"Order item added. printing details...\");\r\n\t\t\tthis.printOrderItem();\r\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\r\n\t\t\tSystem.out.println(e.getMessage()); \r\n\t\t\tSystem.out.println(\"program exiting ...\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t}", "private void saveInventoryItem() {\n String productName = mProductName.getText().toString().trim();\n String productPrice = mProductPrice.getText().toString().trim();\n String productQuantity = mProductQuantity.getText().toString().trim();\n String productImage = imageViewUri;\n String supplierEmail = mSupplierEmail.getText().toString().trim();\n\n // Create a content values object where the column names are the keys and\n // the values from the fields in the editor activity are the keys\n ContentValues contentValues = new ContentValues();\n contentValues.put(InventoryContract.InventoryEntry.COLUMN_INVENTORY_ITEM_NAME, productName);\n contentValues.put(InventoryContract.InventoryEntry.COLUMN_INVENTORY_ITEM_PRICE, productPrice);\n contentValues.put(InventoryContract.InventoryEntry.COLUMN_INVENTORY_ITEM_QUANTITY, productQuantity);\n contentValues.put(InventoryContract.InventoryEntry.COLUMN_INVENTORY_ITEM_IMAGE, productImage);\n contentValues.put(InventoryContract.InventoryEntry.COLUMN_INVENTORY_SUPPLIER_EMAIL, supplierEmail);\n\n if (mCurrentInventoryUri == null) {\n\n Uri inventoryUri = null;\n\n try {\n inventoryUri = getContentResolver().insert(InventoryContract.InventoryEntry.CONTENT_URI, contentValues);\n } catch (IllegalArgumentException arg) {\n Log.v(LOG_TAG, \"Exception has been thrown trying to insert to db - check data has been entered into all fields\");\n arg.printStackTrace();\n }\n\n if (inventoryUri == null) {\n // If the new content URI is null, then there was an error with insertion.\n Toast.makeText(this, getString(R.string.saving_inventory_failed),\n Toast.LENGTH_SHORT).show();\n Toast.makeText(this, getString(R.string.check_fields_prompt), Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the insertion was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.saving_inventory_succeeded),\n Toast.LENGTH_SHORT).show();\n }\n } else {\n\n // Otherwise this is an EXISTING inventory item, so update the inventory item with content URI: mCurrentInventoryUri\n // and pass in the new ContentValues. Pass in null for the selection and selection args\n // because mCurrentInventoryUri will already identify the correct row in the database that\n // we want to modify.\n int rowsAffected = 0;\n try {\n rowsAffected = getContentResolver().update(mCurrentInventoryUri, contentValues, null, null);\n } catch (IllegalArgumentException iae) {\n Log.v(LOG_TAG, \"Illegal argument exception was thrown. One of the fields entered in the form was invalid\");\n }\n\n // Show a toast message depending on whether or not the update was successful.\n if (rowsAffected == 0) {\n // If no rows were affected, then there was an error with the update.\n Toast.makeText(this, getString(R.string.editor_update_inventory_failed),\n Toast.LENGTH_SHORT).show();\n Toast.makeText(this, \"One of the fields in the edit form was invalid\", Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the update was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.saving_inventory_succeeded),\n Toast.LENGTH_SHORT).show();\n }\n\n }\n }" ]
[ "0.76510555", "0.7260817", "0.7203572", "0.70530945", "0.68988913", "0.6810417", "0.66610426", "0.65828097", "0.65096045", "0.64954114", "0.64694047", "0.6453293", "0.645324", "0.6380598", "0.6377232", "0.6335276", "0.63195056", "0.63004833", "0.63004625", "0.6278394", "0.626067", "0.6242914", "0.62334543", "0.619268", "0.61909395", "0.61903983", "0.6184727", "0.6172211", "0.61669", "0.616096", "0.6160754", "0.6142577", "0.61370426", "0.61300635", "0.6103918", "0.609484", "0.6092949", "0.60920596", "0.6031698", "0.6027495", "0.60244083", "0.60116786", "0.60054636", "0.599923", "0.5977006", "0.59732366", "0.5962061", "0.59568596", "0.59557515", "0.59444267", "0.594366", "0.59216094", "0.59193456", "0.5900266", "0.589825", "0.5889304", "0.5887724", "0.58418345", "0.583859", "0.58273834", "0.58265215", "0.5822211", "0.581773", "0.5807402", "0.5788014", "0.5784249", "0.57831377", "0.57819206", "0.5759713", "0.5757334", "0.57407963", "0.57401603", "0.57258534", "0.5718001", "0.5712277", "0.57073504", "0.5704725", "0.5698988", "0.5697126", "0.5695934", "0.56891435", "0.5688421", "0.56772465", "0.56743854", "0.56679446", "0.5665729", "0.5657175", "0.5653444", "0.5652206", "0.5641848", "0.5633783", "0.56287795", "0.5616364", "0.5610691", "0.56105727", "0.56050855", "0.55791783", "0.5577151", "0.55724853", "0.55689454", "0.5561775" ]
0.0
-1
Creates a new empty inventory
public Inventory() { this.SIZE = DEFAULT_SIZE; this.ITEMS = new ArrayList<>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Inventory createInventory() {\n\n\t\tInventory inv;\n\n\t\tif (guiMetadata.getInvType() == InventoryType.CHEST) {\n\t\t\tinv = Bukkit.createInventory(null, guiMetadata.getSize(), guiMetadata.getGuiName());\n\t\t} else {\n\t\t\tinv = Bukkit.createInventory(null, guiMetadata.getInvType(), guiMetadata.getGuiName());\n\t\t}\n\n\t\treturn inv;\n\t}", "public Inventory() {\r\n initialize();\r\n }", "private static Inventory[] createInventoryList() {\n Inventory[] inventory = new Inventory[3];\r\n \r\n Inventory potion = new Inventory();\r\n potion.setDescription(\"potion\");\r\n potion.setQuantityInStock(0);\r\n inventory[Item.potion.ordinal()] = potion;\r\n \r\n Inventory powerup = new Inventory();\r\n powerup.setDescription(\"powerup\");\r\n powerup.setQuantityInStock(0);\r\n inventory[Item.powerup.ordinal()] = powerup;\r\n \r\n Inventory journalclue = new Inventory();\r\n journalclue.setDescription(\"journalclue\");\r\n journalclue.setQuantityInStock(0);\r\n inventory[Item.journalclue.ordinal()] = journalclue;\r\n \r\n return inventory;\r\n }", "public Inventory () {\n weaponsInventory = new ArrayList<>();\n pointInventory = 0;\n lenInventory = 0;\n }", "public void createItemInInventory(Item newItem) {\n\t\tinventory.createItem(newItem);\n\t}", "@Test\n\tpublic void testAddInventory() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"4\",\"7\",\"0\",\"9\");\n\t}", "public Inventory() {\r\n invPower = 0;\r\n invDefense = 0;\r\n invSpeed = 0;\r\n invAwareness = 0;\r\n treasures = new ArrayList<>();\r\n }", "public Inventory(int INVENTORY_SLOTS) {\n\t\tsuper();\n\t\tthis.inventoryItems = new Item[INVENTORY_SLOTS];\n\t\tthis.INVENTORY_SLOTS = INVENTORY_SLOTS;\n\t}", "public static ItemStack createItemStack()\r\n \t{\r\n \t\treturn new ItemStack(0);\r\n \t}", "public Inventory(){\n this.items = new ArrayList<InventoryItem>(); \n }", "@Override\n\tpublic int getSizeInventory() {\n\t\treturn 0;\n\t}", "public Inventory() {\n \titems = new ArrayList<Collectable>();\n \tnumTokens = 0;\n }", "public InventoryItem(String name) { \n\t\tthis(name, 1);\n\t}", "public void initItems() {\n List<Integer> emptySlots = NimbleServer.enchantmentConfig.getEmptySlots();\n for (int i = 0; i < getSize(); i++) {\n if(!(emptySlots.contains(i))) {\n getInventory().setItem(i, getFiller());\n }\n }\n }", "public void createMainInventor() {\n String name = _plugin.getConfigManager().getGeneralSettingsMap().get(\"Name\");\r\n String colorizedName = _plugin.getUtilsManager().colorizeString(name);\r\n //Size of the Inventory;\r\n int inventorySize = Integer.valueOf(_plugin.getConfigManager().getGeneralSettingsMap().get(\"InventorySize\"));\r\n //Initialize Inventory;\r\n mainInventory = _plugin.getServer().createInventory(null, inventorySize, colorizedName);\r\n //Retrieve the HashMaps for the plugin;\r\n HashMap<Integer, CategoryItem> categoryInformationMap = _plugin.getConfigManager().getCategoryInformationMap();\r\n HashMap<String, String> languageInformation = _plugin.getConfigManager().getLanguageInformationMap();\r\n //Add items to Inventory;\r\n for (Integer i : categoryInformationMap.keySet()) {\r\n CategoryItem categoryItem = categoryInformationMap.get(i);\r\n ItemStack item = categoryItem.getItem();\r\n ItemMeta itemMeta = item.getItemMeta();\r\n itemMeta.setDisplayName(_plugin.getUtilsManager().colorizeString(languageInformation.get(\"CategoryName\").replace(\"%cat%\", categoryItem.getName())));\r\n List<String> lore = new ArrayList<>();\r\n lore.add(_plugin.getUtilsManager().colorizeString(categoryItem.getDescription()));\r\n item.setItemMeta(itemMeta);\r\n mainInventory.addItem(item);\r\n }\r\n }", "public InventoryEntry() {\n super();\n }", "public static void createItem(String inputCommand) {\r\n\t\tString[] value = inputCommand.split(\" \");\r\n\t\tif(value.length == 4 && \"create\".equalsIgnoreCase(value[0])) {\r\n\t\t\tInventory inventory = new Inventory();\r\n\t\t\tinventory.setItemName(value[1]);\r\n\t\t\tinventory.setItemCostPrice(Double.parseDouble(value[2]));\r\n\t\t\tinventory.setItemSellPrice(Double.parseDouble(value[3]));\r\n\t\t\tinventoryList.put(value[1], inventory);\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Entered wrong input command\");\r\n\t\t}\r\n\t}", "public InventoryList() {\n super(\"Inventory List\");\n }", "public void fillChest(Inventory inv);", "public InventoryItem(){\r\n this.itemName = \"TBD\";\r\n this.sku = 0;\r\n this.price = 0.0;\r\n this.quantity = 0;\r\n nItems++;\r\n }", "public void createCardInventory() {\n try {\n if (cardInventoryDataBean != null) {\n String response = cardInventoryTransformerBean.createCardInventory(cardInventoryDataBean);\n if (SystemConstantUtil.SUCCESS.equals(response)) {\n System.out.println(\"Create CardInventory Successfully\");\n messageDataBean.setMessage(\"CardInventory added successfully.\");\n messageDataBean.setIsSuccess(Boolean.TRUE);\n cardInventoryDataBean.setNull();\n this.retrieveCardInventoryList();\n } else {\n System.out.println(\"CardInventory not created\");\n messageDataBean.setMessage(response);\n messageDataBean.setIsSuccess(Boolean.FALSE);\n }\n }\n } catch (Exception e) {\n messageDataBean.setMessage(e.toString());\n messageDataBean.setIsSuccess(Boolean.FALSE);\n System.out.println(e);\n }\n }", "ProductInventory()\n\t{\n\n\t\t// Initialize the Product Inventory Array List\n\t\tmyProductInventory = new ArrayList<Product>();\n\n\t}", "public InventoryTemplate() {\n this.layoutDatabase = null;\n this.layoutItemDatabase = null;\n this.guiButtons = new HashMap<>();\n this.inventoryType = InventoryType.CHEST;\n this.placeholders = new ArrayList<>();\n this.layout = new HashMap<>();\n this.rawLayout = new ArrayList<>();\n }", "@Test\r\n\tpublic void testAddItem_not_occupied() {\r\n\t\tVendingMachineItem test = new VendingMachineItem(\"test\", 10.0);\r\n\t\tvendMachine.addItem(test, \"A\");\r\n\t\tassertEquals(test, vendMachine.getItem(\"A\"));\r\n\t}", "@RequestMapping(method = RequestMethod.POST, produces = \"application/json\", headers = \"Accept=application/json\" )\n public ResponseEntity<?> createInventory(@Valid @RequestBody InventoryRequest inventoryRequest){\n Product product = productService.getProductById(inventoryRequest.getProductId());\n\n //Criando produto no estoque\n Inventory inventory = inventoryService.createInventoryItem(new Inventory(inventoryRequest.getAmount()));\n product.setInventory(inventory);\n inventory.setProduct(product);\n\n //Atualizando associações entre estoque e produto\n inventoryService.updateInventoryItem(inventory);\n\n return ResponseEntity.status(HttpStatus.CREATED).build();\n }", "public Inventory(int max) {\n items = new Item[max];\n }", "public BaseInventory (long id) {\r\n\t\tsuper(id);\r\n\t}", "IEquipableItem createDefault();", "ItemStack make();", "public VendingMachine(){\n\n inventory = new ArrayList<>();\n balance = new Coin();\n vending_balance = 0;\n validPurchase = false;\n }", "public Inventory()\r\n\t{\r\n\t\t_tiles = new ArrayList<Tile>();\r\n\t\t\r\n\t\tfor(int i = 'A'; i <= 'Z'; i++)\r\n\t\t{\r\n\t\t\tswitch(i)\r\n\t\t\t{\r\n\t\t\tcase 'A':\r\n\t\t\tcase 'E':\r\n\t\t\tcase 'I':\r\n\t\t\tcase 'O':\r\n\t\t\tcase 'U':\r\n\t\t\t\tfor(int j = 0; j < 29; j++)\r\n\t\t\t\t{\r\n\t\t\t\t\t_tiles.add(new Tile((char) i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'Y':\r\n\t\t\t\tfor(int j = 0; j < 15; j++)\r\n\t\t\t\t{\r\n\t\t\t\t\t_tiles.add(new Tile((char) i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tfor(int j = 0; j < 12; j++)\r\n\t\t\t\t{\r\n\t\t\t\t\t_tiles.add(new Tile((char) i));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t\r\n\t\tthis.shuffle();\r\n\t}", "@Test(expected = InventoryException.class)\n\tpublic void testAddSugarNotPositiveInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"0\", \"-15\", \"0\");\n\t}", "public void fillInventory(TheGroceryStore g);", "@Test(expected = InventoryException.class)\n\tpublic void testAddSugarPositiveInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"0\", \"15\", \"0\");\n\t}", "protected void addInventoryItemType() {\n\t\tProperties props = new Properties();\n\n\t\t/* DEBUG\n\t\t\n\t\tSystem.out.println(typeNameTF.getText());\n\t\tSystem.out.println(unitsTF.getText());\n\t\tSystem.out.println(unitMeasureTF.getText());\n\t\tSystem.out.println(validityDaysTF.getText());\n\t\tSystem.out.println(reorderPointTF.getText());\n\t\tSystem.out.println(notesTF.getText());\n\t\tSystem.out.println(statusCB.getValue());\n\t\n\t\t*/ \n\n\t\t// Set the values.\n\t\tprops.setProperty(\"ItemTypeName\", typeNameTF.getText());\n\t\tprops.setProperty(\"Units\", unitsTF.getText());\n\t\tprops.setProperty(\"UnitMeasure\", unitMeasureTF.getText());\n\t\tprops.setProperty(\"ValidityDays\", validityDaysTF.getText());\n\t\tprops.setProperty(\"ReorderPoint\", reorderPointTF.getText());\n\t\tprops.setProperty(\"Notes\", notesTF.getText());\n\t\tprops.setProperty(\"Status\", (String) statusCB.getValue());\n\n\t\t// Create the inventory item type.\n\t\tInventoryItemType iit = new InventoryItemType(props);\n\n\t\t// Save it into the database.\n\t\tiit.update();\n\n\t\tpopulateFields();\n\t\t\n\t\t// Display message on GUI.\n\t\t//submitBTN.setVisible(false);\n\t\tcancelBTN.setText(\"Back\");\n\t\tmessageLBL.setText(\"Inventory Item Type added.\");\n\t}", "public Inventory(Integer size, ItemStack... items) {\n this.setSize((size == 0) ? 2147483647 : size);\n for (ItemStack stack : items) {\n ITEMS.add(stack);\n }\n }", "@Test(expected = InventoryException.class)\n\tpublic void testAddSugarNotInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"0\", \"abcd\", \"0\");\n\t}", "@Override\n\tpublic Item create() {\n\t\tLOGGER.info(\"Shoe Name\");\n\t\tString item_name = util.getString();\n\t\tLOGGER.info(\"Shoe Size\");\n\t\tdouble size = util.getDouble();\n\t\tLOGGER.info(\"Set Price\");\n\t\tdouble price = util.getDouble();\n\t\tLOGGER.info(\"Number in Stock\");\n\t\tlong stock = util.getLong();\n\t\tItem newItem = itemDAO.create(new Item(item_name, size, price, stock));\n\t\tLOGGER.info(\"\\n\");\n\t\treturn newItem;\n\t}", "@Test\r\n public void testAddInventory() throws InventoryException {\r\n coffeeMaker.addInventory(\"4\", \"7\", \"0\", \"9\");\r\n coffeeMaker.addInventory(\"0\", \"0\", \"0\", \"0\");\r\n coffeeMaker.addInventory(\"3\", \"6\", \"9\", \"12\"); // this should not fail\r\n coffeeMaker.addInventory(\"10\", \"10\", \"10\", \"10\");// this should not fail\r\n }", "public Player()\n {\n inventory = new ArrayList<Item>();\n currentRoom=0;\n }", "public suiluppo_equip_allocation create(long equip_allocat_id);", "public Basket(Inventory inventory){\n myBasket = new HashMap<>();\n totalCost = 0;\n isPaid = false;\n Random randomGenerator = new Random();\n invoiceNumber = randomGenerator.nextInt(30000) + 1;\n this.inventory = inventory;\n }", "public InventoryEntity(int id) {\n\t\tthis.id = id;\n\t}", "public Inventory(Inventory referenceInventory) {\n \titems = new ArrayList<Collectable>();\n \t//Clone items list.\n \tfor (Collectable item : referenceInventory.getItems()) {\n \t\titems.add(item);\n \t}\n \t//Clone num tokens.\n \tnumTokens =\treferenceInventory.numTokens;\n }", "@Override\n\tpublic void openInventory() {\n\t\t\n\t}", "public void writeInventoryToNBT(CompoundNBT tag) {\n IInventory inventory = this;\n ListNBT nbttaglist = new ListNBT();\n\n for (int i = 0; i < inventory.getSizeInventory(); i++) {\n if (!inventory.getStackInSlot(i).isEmpty()) {\n CompoundNBT itemTag = new CompoundNBT();\n itemTag.putByte(TAG_SLOT, (byte) i);\n inventory.getStackInSlot(i).write(itemTag);\n nbttaglist.add(itemTag);\n }\n }\n\n tag.put(TAG_ITEMS, nbttaglist);\n }", "@Override\n public void onInventoryClick(InventoryClickEvent event) {\n // Do nothing here\n }", "public Inventory(final T[] enums) {\n final Map<T, Integer> blankMap = new HashMap<>();\n for (T t : enums) {\n blankMap.put(t, 0);\n }\n this.items = Collections.unmodifiableMap(blankMap);\n this.enums = Arrays.copyOf(enums, enums.length);\n }", "@Test(expected = InventoryException.class)\n\tpublic void testAddInventoryException() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"4\", \"-1\", \"asdf\", \"3\");\n\t}", "void loadInventory() {\n\n // make sure there isn't already an inventory record\n MrnInventory checkInv[] =\n new MrnInventory(survey.getSurveyId()).get();\n\n if (dbg3) System.out.println(\"<br>loadInventory: survey.getSurveyId() = \" +\n survey.getSurveyId());\n if (dbg3) System.out.println(\"<br>loadInventory: checkInv.length = \" +\n checkInv.length);\n\n if (checkInv.length == 0) {\n\n inventory.setSurveyId(survey.getSurveyId());\n\n // defaults\n inventory.setDataCentre(\"SADCO\");\n inventory.setTargetCountryCode(0); // unknown\n inventory.setStnidPrefix(survey.getInstitute());\n inventory.setDataRecorded(\"Y\");\n\n // from screen - done in LoadMRNData.getArgsFromFile()\n //inventory.setCountryCode(screenInv.getCountryCode());\n //inventory.setPlanamCode(screenInv.getPlanamCode());\n //inventory.setInstitCode(screenInv.getInstitCode());\n //inventory.setCruiseName(screenInv.getCruiseName());\n //inventory.setProjectName(screenInv.getProjectName());\n //inventory.setAreaname(screenInv.getAreaname()); // use as default to show on screen\n //inventory.setDomain(screenInv.getDomain()); // use as default to show on screen\n\n inventory.setCountryCode(0); // unknown\n\n inventory.setSciCode1(1); // unknown\n inventory.setSciCode2(1); // unknown // new\n inventory.setCoordCode(1); // unknown\n\n inventory.setProjectionCode(1); // unknown\n inventory.setSpheroidCode(1); // unknown\n inventory.setDatumCode(1); // unknown\n\n inventory.setSurveyTypeCode(1); // hydro\n if (dbg) System.out.println(\"loadInventory: put inventory = \" + inventory);\n\n try {\n inventory.put();\n } catch(Exception e) {\n System.err.println(\"loadInventory: put inventory = \" + inventory);\n System.err.println(\"loadInventory: put sql = \" + inventory.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadInventory: put inventory = \" +\n inventory);\n\n } // if (checkInv.length > 0)\n\n }", "private void loadStartingInventory(){\n this.shelfList = floor.getShelf();\n Iterator<String> i = items.iterator();\n for (Shelf s : shelfList){\n while (s.hasFreeSpace()){\n s.addItem(i.next(), 1);\n }\n }\n }", "@Override\r\n\tpublic void setInventoryItems() {\n\t\t\r\n\t}", "@Test\r\n\tpublic void testMakePurchase_empty_slot() {\r\n\t\tassertEquals(false, vendMachine.makePurchase(\"D\"));\r\n\t}", "public static Items initialVendingMachine() {\n Items items = new Items();\n Item cola = new Item(R.drawable.cola, \"Cola\", 30, 100, 3000, 0);\n Item chips = new Item(R.drawable.chips, \"Chips\", 30, 50, 3000, 0);\n Item candy = new Item(R.drawable.candy, \"Candy\", 30, 65, 3000, 0);\n items.addItem(cola);\n items.addItem(chips);\n items.addItem(candy);\n items.addMachineCredit(5000);\n return items;\n }", "private void addToInventory(Item item) {\n inventory.put(item.getName(), item);\n }", "void addElementToInventory(String elementName);", "public NewItems() {\n super();\n }", "public Player(Room room)\n {\n Inventory = new HashMap<String, Items>();\n currentRoom = room; //Starting Room Number 1\n itemsHeld = 0; //Start with no items being held\n itemLimit = 2; // can only hold 2 items until a backpack\n Inventory = new HashMap<String, Items>();\n \n roomHistory = new Stack<Room>();\n \n haveBackpack = false; //no backpack at start\n usingFlashlight = false;\n }", "public ItemStack generateItem(){\n\t\tItemStack item = new ItemStack(material);\n\t\tif(damage >= 0) item.setDurability(damage);\n\t\t\n\t\tif(itemName.isEmpty() && loreLine.isEmpty()) return item;\n\t\t\n\t\tItemMeta meta = item.getItemMeta();\n\t\tif(meta == null) return item;\n\t\t\n\t\tmeta.setDisplayName(itemName);\n\t\tmeta.setLore(Arrays.asList(loreLine));\n\t\titem.setItemMeta(meta);\n\t\t\n\t\treturn item;\n\t}", "public Inventory(String kodeWh,String kodeProd,double hargaProd,int jumlahProd){\n this.kodeWh=kodeWh;\n this.kodeProd=kodeProd;\n this.hargaProd=hargaProd;\n this.jumlahProd=jumlahProd;\n }", "@Test\n void testAdding100Items() {\n Inventory inventory = new Inventory();\n int itemsToAdd = 100;\n\n assertEquals(0, inventory.getItems(\"\").size());\n\n for (int i = 0; i < itemsToAdd; i++) {\n inventory.addItem(\"XXXXXXXX\" + String.format(\"%02d\", i), \"Name\", 20.00, i);\n }\n\n assertEquals(100, inventory.getItems(\"\").size());\n }", "public static void emptyInventoryListMessage() {\n System.out.println(\"You do not have any Items in your inventory:(\");\n }", "@Test(expected = InventoryException.class)\n\tpublic void testAddCoffeeNotPositiveInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"-15\", \"0\", \"0\", \"0\");\n\t}", "ItemStack createItemStack(CompoundTag tag);", "public static void createItems(){\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"breadly\"), BREADLY);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"hard_boiled_egg\"), HARD_BOILED_EGG);\n\n\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"ender_dragon_spawn_egg\"), ENDER_DRAGON_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"wither_spawn_egg\"), WITHER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"illusioner_spawn_egg\"), ILLUSIONER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"giant_spawn_egg\"), GIANT_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"spawn_spawn_egg\"), SPAWN_SPAWN_EGG);\n }", "public Builder clearInventoryItemData() {\n if (inventoryItemDataBuilder_ == null) {\n if (inventoryItemCase_ == 3) {\n inventoryItemCase_ = 0;\n inventoryItem_ = null;\n onChanged();\n }\n } else {\n if (inventoryItemCase_ == 3) {\n inventoryItemCase_ = 0;\n inventoryItem_ = null;\n }\n inventoryItemDataBuilder_.clear();\n }\n return this;\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n String SQL_CREATE_INVENTORY_TABLE = \"CREATE TABLE \" + InventoryEntry.TABLE_NAME + \" (\"\n + InventoryEntry._ID + \" INTEGER PRIMARY KEY AUTOINCREMENT, \"\n + InventoryEntry.COLUMN_INVENTORY_NAME + \" TEXT NOT NULL, \"\n + InventoryEntry.COLUMN_INVENTORY_PRICE + \" INTEGER DEFAULT 0, \"\n + InventoryEntry.COLUMN_INVENTORY_QUANTITY + \" INTEGER DEFAULT 0, \"\n + InventoryEntry.COLUMN_INVENTORY_SUPPLIER + \" TEXT, \"\n + InventoryEntry.COLUMN_INVENTORY_BLOB + \" BLOB );\";\n\n // Execute the SQL statement\n db.execSQL(SQL_CREATE_INVENTORY_TABLE);\n }", "@Test\r\n public void testResetInventory2()\r\n {\r\n testLongTermStorage.addItem(item2, testLongTermStorage.getCapacity() / item2.getVolume());\r\n testLongTermStorage.resetInventory();\r\n assertEquals(\"Storage should be empty\", new HashMap<>(), testLongTermStorage.getInventory());\r\n }", "public Equipos() {\n\t\tthis(\"equipos\", null);\n\t}", "public void addProduct(Product item){\n inventory.add(item);\n }", "public void save() {\r\n\t\tGame.getInstance().getInventory().add(id);\r\n\t}", "@Override\n\tpublic void addNewinventory(Inventory newinventory) {\n\t\tinventoryDao.save(newinventory);\n\t}", "public void dumpInventory() {\n\t\tFileWriter writer;\n\t\ttry {\n\t\t\twriter = new FileWriter(inventoryFilePath);\n\t\t\tyaml.dump(testInventoryData, writer);\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public static boolean inventoryIsEmpty() {\n\t\treturn Inventory.getCount() == 0;\n\t}", "@Test(expected = InventoryException.class)\n\tpublic void testAddMilkNotPositiveInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"-15\", \"0\", \"0\");\n\t}", "public void addItemToInventory(Item ... items){\n this.inventory.addItems(items);\n }", "@Test(expected = InventoryException.class)\n\tpublic void testAddMilkNotInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"abcd\", \"0\", \"0\");\n\t}", "private Item initItem() {\n String name = inputName.getText().toString();\n int quantityToBuy = -1;\n if (!inputQuantityToBuy.getText().toString().equals(\"\"))\n quantityToBuy = Integer.parseInt(inputQuantityToBuy.getText().toString());\n String units = inputUnits.getText().toString();\n double price = 0;\n if (!inputPrice.getText().toString().equals(\"\"))\n price = Double.parseDouble(inputPrice.getText().toString());\n int calories = 0;\n if (!inputCalories.getText().toString().equals(\"\"))\n calories = Integer.parseInt(inputCalories.getText().toString());\n ArrayList<String> allergies = allergyActions.getAllergies();\n return new Item(name, 0, units, quantityToBuy, 0, allergies, calories, price);\n }", "private Inventory clone_inv(Inventory inv_original, String title) {\n // Copy name, size and other stuff\n Inventory inv = createInventory(this, inv_original.getSize(), title);\n inv.setContents(inv_original.getContents());\n\n return inv;\n }", "public interface IInventoryBase extends IInventory {\n\n @Override\n default public int getInventoryStackLimit() {\n return 64;\n }\n\n @Override\n default public void openInventory(EntityPlayer player) {}\n\n @Override\n default public void closeInventory(EntityPlayer player) {}\n\n @Override\n default public boolean isItemValidForSlot(int index, ItemStack stack) {\n return true;\n }\n\n @Override\n default public int getField(int id) {\n return 0;\n }\n\n @Override\n default public void setField(int id, int value) {}\n\n @Override\n default public int getFieldCount() {\n return 0;\n }\n\n @Override\n default public boolean hasCustomName() {\n return false;\n }\n\n @Override\n default public ITextComponent getDisplayName() {\n return new TextComponentTranslation(getName());\n }\n\n}", "public InteractiveEntity(ArrayList<Item> items) {\n\t\tsuper();\n\t\tthis.inventory.addAll(items);\n\t}", "public Item createNew(int xpos, int ypos) {\r\n Item i = new Item(name, id);\r\n i.setPosition(xpos, ypos);\r\n return i;\r\n }", "public ShoeInventory(int size)\r\n\t{\r\n\t\tif(size == 0)\r\n\t\t\tSystem.out.println(\"Cannot set array to size 0.\"); \r\n\t\telse\r\n\t\t{\r\n\t\t\tcounter = 0;\r\n\t\t\tarraySize = size;\r\n\t\t\ttypeArray = new ShoeType[arraySize];\r\n\t\t}\r\n\t}", "public void createItem()\n {\n \n necklace_red = new Item (\"Red Necklace\",\"This is a strange red necklace\");\n poolroom.addItem(necklace_red);\n \n // items in dancing room // \n gramophone = new Item (\"Gramophone\",\"This is a nice gramophone but without disk\");\n candelar = new Item(\"Candelar\",\"This candelar gives light and is really beautiful\");\n dancingroom.addItem(gramophone);\n dancingroom.addItem(candelar);\n \n //items in hall //\n potion2HP = new Potion(\"Potion 2 HP\",\"This potion gives 2 HP to the player\",2);\n hall.addItem(potion2HP);\n \n //items in corridor //\n halberd = new Weapon(\"Halberd\",\"This the statut halberd. It was not a really good idea to take it\",4,60);\n corridor.addItem(halberd);\n \n // items in bathroom //\n potion6HP = new Potion(\"Potion6HP\",\"This potions gives 6 HP to the player\",6);\n bathroom.addItem(potion6HP);\n \n // items in guestbedroom //\n Exit exit_from_corridor_to_bedroom = new Exit(\"south\",corridor,false, null);\n bedroomkey = new Keys(\"Bedroom key\",\"This key opens the master bedroom door\",exit_from_corridor_to_bedroom);\n guestbedroom.addItem(bedroomkey);\n \n // items in kitchen // \n set_of_forks_and_knives = new Weapon(\"Set of forks and knives\",\"This weapon is a set of silver forks and silver knives\",2,40);\n kitchen.addItem(set_of_forks_and_knives);\n \n // items in bedroom //\n Item disk = new Item(\"Disk\",\"This disk can be used with the gramophone\");\n bedroom.addItem(disk);\n \n Potion potion3HP = new Potion (\"Potion3HP\",\"This potions gives 3 HP to the player\",3);\n bedroom.addItem(potion3HP);\n \n Item money = new Item(\"Money\",\"You find 60 pounds\");\n bedroom.addItem(money);\n \n // items in the library //\n Item book = new Item(\"Book\",\"The title book is 'The best human friend : the cat'\");\n library.addItem(book);\n \n // items in laboratory //\n Exit exit_from_corridor_to_attic = new Exit(\"up\",corridor,false, null);\n Keys attickey = new Keys(\"Attic key\",\"This key is a shaped bone from a squeletor\", exit_from_corridor_to_attic); \n laboratory.addItem(attickey);\n \n Item construction_drawing = new Item(\"Construction drawing\",\"You find construction drawings. Mr Taylor planed to dig really deeply to the east of the gardener hut\");\n laboratory.addItem(construction_drawing);\n \n //items in garden //\n Weapon fork = new Weapon(\"Fork\",\"This fork is green and brown\",3,50);\n garden.addItem(fork);\n \n Potion apple = new Potion(\"Apple\",\"This apples gives you 2 HP\",2);\n garden.addItem(apple);\n \n // items in gardenerhut //\n \n Item pliers = new Item(\"Pliers\",\"You can cut a chain with this object\");\n gardenerhut.addItem(pliers);\n \n Item ritual_cape = new Item(\"Ritual cape\",\"You find a black ritual cape. It is very strange !\");\n gardenerhut.addItem(ritual_cape);\n \n Item necklace_black_1 = new Item(\"Necklace\",\"You find a very strange necklace ! It is a black rond necklace with the same symbol than in the ritual cape\");\n gardenerhut.addItem(necklace_black_1);\n \n //items in anteroom //\n \n Potion potion4HP = new Potion(\"Potion4HP\",\"This potion gives 4 HP to the player\",4);\n anteroom.addItem(potion4HP);\n \n Weapon sword = new Weapon(\"Sword\",\"A really sharp sword\",6,70);\n anteroom.addItem(sword);\n // items in ritual room //\n \n Item red_ritual_cape = new Item(\"Red ritual cape\", \"This is a ritual cape such as in the gardener hut but this one is red. There are some blond curly hairs\");\n ritualroom.addItem(red_ritual_cape);\n \n Item black_ritual_cape_1 = new Item(\"Black ritual cape\",\"This is a black ritual cape\");\n ritualroom.addItem(black_ritual_cape_1);\n \n Item black_ritual_cape_2 = new Item (\"Black ritual cape\",\"Another black ritual cape\");\n ritualroom.addItem(black_ritual_cape_2);\n \n }", "@Test(expected = InventoryException.class)\n\tpublic void testAddChocolateNotInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"0\", \"0\", \"abcd\");\n\t}", "@Test(expected = InventoryException.class)\n\tpublic void testAddChocolateNotPositiveInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"0\", \"0\", \"-15\");\n\t}", "private void createItems()\n {\n Item belt, nappies, phone, money, cigarretes, \n jacket, cereal, shoes, keys, comics, bra, \n bread, bowl, computer;\n\n belt = new Item(2,\"Keeps something from falling\",\"Belt\");\n nappies = new Item(7,\"Holds the unspeakable\",\"Nappies\");\n phone = new Item(4, \"A electronic device that holds every answer\",\"Iphone 10\");\n money = new Item(1, \"A form of currency\",\"Money\");\n cigarretes = new Item(2,\"It's bad for health\",\"Cigarretes\");\n jacket = new Item(3,\"Keeps you warm and cozy\", \"Jacket\");\n cereal = new Item(3, \"What you eat for breakfast\",\"Kellog's Rice Kripsies\");\n shoes = new Item(5,\"Used for walking\", \"Sneakers\");\n keys = new Item(2, \"Unlock stuff\", \"Keys\");\n comics = new Item(2, \"A popular comic\",\"Batman Chronicles\");\n bra = new Item(3,\"What is this thing?, Eeeewww\", \"Bra\");\n bread = new Item(6,\"Your best source of carbohydrates\",\"Bread\");\n bowl = new Item(4,\"where food is placed\",\"Plate\");\n computer = new Item(10,\"A computational machine\",\"Computer\");\n\n items.add(belt);\n items.add(nappies);\n items.add(phone);\n items.add(money);\n items.add(cigarretes);\n items.add(jacket);\n items.add(cereal);\n items.add(shoes);\n items.add(keys);\n items.add(comics);\n items.add(bra);\n items.add(bread);\n items.add(bowl);\n items.add(computer);\n }", "@Test(expected = InventoryException.class)\n\tpublic void testAddCoffeeNotInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"abcd\", \"0\", \"0\", \"0\");\n\t}", "public void addItem(Item itemToAdd){\n\t\tif(!isFull()){\n\t\t\tint index = findFreeSlot();\n\t\t\tinventoryItems[index] = itemToAdd;\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Inventory full.\");\n\t\t}\n\t\t\n\t}", "public boolean addNewInventory() {\n if (characterVM.addNewInventory(inventoryEntityToRetrieve.peek())) {\n removeTopRewardAndContinue();\n return true;\n }\n return false;\n }", "void openInventory(Player player, SimpleInventory inventory);", "@Test\n\tpublic void testInventoryNotEnoughSugar() {\n\t\tcoffeeMaker.addRecipe(recipe8);\n\t\tassertEquals(1000, coffeeMaker.makeCoffee(0, 1000));\n\t}", "IEquipableItem create(int power, int min, int max);", "public Inventory getInventory(){ //needed for InventoryView - Sam\n return inventory;\n }", "public HistoryEntryInventory(String itemName, Integer amount) {\n timestamp = new Date(); //Current time\n this.itemName = itemName;\n this.amount = amount;\n }", "@Override\n\tpublic Inventory getInventory() {\n\t\treturn null;\n\t}", "private void setUpInventoryViewModel() {\n // mock equipment\n Equipment equipment = Mockito.mock(Equipment.class);\n when(equipment.getTotalSlots()).thenReturn(5);\n when(equipment.getMaxTotalWeight()).thenReturn(10);\n when(equipment.getMaxTotalVolume()).thenReturn(10);\n when(equipment.getCurrentTotalWeight()).thenReturn(3);\n when(equipment.getCurrentTotalVolume()).thenReturn(5);\n\n // mock items\n ArrayList<Item> items = new ArrayList<>();\n Item itemOne = Mockito.mock(Item.class);\n when(itemOne.getName()).thenReturn(\"Item One\");\n when(itemOne.getWeight()).thenReturn(1);\n when(itemOne.getVolume()).thenReturn(1);\n items.add(itemOne);\n items.add(itemOne);\n when(equipment.getItems()).thenReturn(items);\n\n // mock gameManager\n GameManager gameManager = Mockito.mock(GameManager.class);\n when(gameManager.getEquipment()).thenReturn(equipment);\n\n contentViewModel = new InventoryViewModel(gameManager, null);\n }", "void createItem (String name, String description, double price);", "public SkillInventory(int capacity) {\n inventory = new Skill[capacity];\n isActive = new boolean[capacity];\n cooldown = new float[capacity];\n weighting = new float[capacity];\n projectiles = new DynamicHitbox[capacity];\n }", "@Test(expected = InventoryException.class)\r\n public void testAddInventoryException() throws InventoryException {\r\n coffeeMaker.addInventory(\"4\", \"-1\", \"asdf\", \"3\");\r\n coffeeMaker.addInventory(\"coffee\", \"milk\", \"sugar\", \"choco\");\r\n\r\n }" ]
[ "0.753326", "0.7189231", "0.70145136", "0.68865454", "0.6866824", "0.6847309", "0.68421865", "0.6739389", "0.66979593", "0.66739297", "0.66210645", "0.66128004", "0.65818614", "0.6532349", "0.65118176", "0.6486047", "0.6453736", "0.6421631", "0.64188427", "0.6408045", "0.6328575", "0.63006026", "0.6296204", "0.62460923", "0.62188405", "0.6173138", "0.6162022", "0.61487436", "0.6140645", "0.6117994", "0.60754603", "0.6059179", "0.6051181", "0.6046072", "0.59945834", "0.599032", "0.59684515", "0.59639114", "0.5943896", "0.5930017", "0.58841616", "0.58750176", "0.58639127", "0.5854713", "0.58516794", "0.58412415", "0.58270055", "0.58232635", "0.5822725", "0.58184266", "0.5813358", "0.58103955", "0.58063775", "0.58061945", "0.579795", "0.57961786", "0.5796116", "0.5787704", "0.5765256", "0.5760582", "0.5757242", "0.57554054", "0.57529855", "0.57469636", "0.5735736", "0.5735006", "0.57342136", "0.5729886", "0.572155", "0.57079226", "0.57056135", "0.5697219", "0.56916976", "0.5690296", "0.5683027", "0.56811756", "0.56713337", "0.56704074", "0.56693107", "0.5668029", "0.5662194", "0.56607705", "0.5658676", "0.56582975", "0.5647981", "0.56444913", "0.56439096", "0.56424206", "0.5634134", "0.56294227", "0.5621498", "0.56065845", "0.5602661", "0.5597901", "0.55897397", "0.5585821", "0.55836827", "0.55825895", "0.5579487", "0.5570357" ]
0.754054
0
Adds ItemStacks to the inventory
public int addItemStacks(ItemStack... itemStacks) { int added = 0; // for all itemstacks to be added in the inventory for (ItemStack itemStack : itemStacks) added += this.addItemStack(itemStack); return added; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default ItemStack addStack(ItemStack stack) {\n for (IInventoryAdapter inv : this) {\n InventoryManipulator im = InventoryManipulator.get(inv);\n stack = im.addStack(stack);\n if (InvTools.isEmpty(stack))\n return InvTools.emptyStack();\n }\n return stack;\n }", "public void addItemToInventory(Item ... items){\n this.inventory.addItems(items);\n }", "public int addItemStack(ItemStack itemStack) {\n Item item = itemStack.getItem();\n int amount = itemStack.getAmount();\n int added = 0;\n\n List<ItemStack> itemStacksToRemove = new ArrayList<>();\n for (ItemStack itemStack1 : this.ITEMS) {\n if (itemStack1.getItem() == item) {\n amount += itemStack1.getAmount();\n itemStacksToRemove.add(itemStack1);\n }\n }\n\n // clear inventory\n for (ItemStack itemStack1 : itemStacksToRemove)\n this.ITEMS.remove(itemStack1);\n\n System.out.println(String.format(\"Total amount of %s: %d\", item.getName(), amount));\n\n int stack_size = item.getMaxStack();\n int stacks = amount / stack_size;\n int last_stack = amount % stack_size;\n\n System.out.println(String.format(\"Stack size: %d, full stacks: %s, last stack: %d, inv size: %d, inv full: %d\", stack_size, stacks, last_stack, this.getSize(), this.ITEMS.size()));\n\n // add full stacks\n for (int i = 0; i < stacks; i++) {\n if (this.ITEMS.size() > this.getSize())\n break;\n\n System.out.println(\"Added full stack\");\n this.ITEMS.add(new ItemStack(item, stack_size));\n added += stack_size;\n }\n\n // add last (not full) stack\n if (last_stack != 0 && this.ITEMS.size() < this.getSize()) {\n System.out.println(\"Added partial stack\");\n this.ITEMS.add(new ItemStack(item, last_stack));\n added += last_stack;\n }\n\n for (InventoryChangedEvent listener : listeners)\n listener.onInventoryChanged(this);\n\n return added;\n }", "private void addItemStack(Item itemStack) {\n\t\tint findStackable = findStackableItem(itemStack);\r\n\t\tif(findStackable!=-1){\r\n\t\t\tItem heldStack=tileItems.getItem(findStackable);\r\n\t\t\twhile(!heldStack.stackFull()&&\t//as long as the current stack isn't full and the stack we're picking up isn't empty\r\n\t\t\t\t!itemStack.stackEmpty()){\r\n\t\t\t\theldStack.incrementStack();\r\n\t\t\t\titemStack.decrementStack(tileItems);\r\n\t\t\t\tif(itemStack.stackEmpty())\t//will this cause an error since the item is removed by the inventory?\r\n\t\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\taddItemStack(itemStack);\r\n\t\t}\r\n\t\telse\r\n\t\t\taddFullStack(itemStack);\r\n\t}", "public void moveTo(Inventory inventory) {\n for (ItemStack itemStack : this.getItemStacks()) {\n int added = inventory.addItemStack(itemStack);\n this.ITEMS.get(this.getItemStack(itemStack)).addAmount(-added);\n }\n }", "public void writeInventoryToNBT(CompoundNBT tag) {\n IInventory inventory = this;\n ListNBT nbttaglist = new ListNBT();\n\n for (int i = 0; i < inventory.getSizeInventory(); i++) {\n if (!inventory.getStackInSlot(i).isEmpty()) {\n CompoundNBT itemTag = new CompoundNBT();\n itemTag.putByte(TAG_SLOT, (byte) i);\n inventory.getStackInSlot(i).write(itemTag);\n nbttaglist.add(itemTag);\n }\n }\n\n tag.put(TAG_ITEMS, nbttaglist);\n }", "@Override\n\tpublic void addRecipes() \n\t{\n GameRegistry.addRecipe(new ItemStack(this), \"xxx\", \"xyx\", \"xxx\",\t\t\t\t\t\t\n 'x', Items.fireworks, \n 'y', Items.string\n ); \n \n // Bundle of rockets back to 8 rockets\n GameRegistry.addShapelessRecipe(new ItemStack(Items.fireworks, 8), new ItemStack(this));\n\t}", "private void addToInventory(Item item) {\n inventory.put(item.getName(), item);\n }", "public void addItem(String i) {\n\t\tItem item = Item.getItem(ItemList, i);\n\t Inventory.add(item);\n\t inventoryList.getItems().add(i);\n\n\t}", "@Override\n public void writeToNBT(NBTTagCompound nbt)\n {\n super.writeToNBT(nbt);\n nbt.setInteger(\"pokedexNb\", pokedexNb);\n nbt.setInteger(\"time\", time);\n NBTTagList itemList = new NBTTagList();\n\n for (int i = 0; i < inventory.length; i++)\n {\n ItemStack stack = inventory[i];\n\n if (stack != null)\n {\n NBTTagCompound tag = new NBTTagCompound();\n tag.setByte(\"Slot\", (byte) i);\n stack.writeToNBT(tag);\n itemList.appendTag(tag);\n }\n }\n nbt.setTag(\"Inventory\", itemList);\n }", "public void addProduct(Product item){\n inventory.add(item);\n }", "public void registerRecipe() {\n\t ItemStack itemStackDroidParts = new ItemStack(SuperDopeJediMod.entityManager.droidParts);\n\t ItemStack itemStackQuadaniumSteelIngot = new ItemStack(SuperDopeJediMod.quadaniumSteelIngot); \n\t ItemStack itemStackThis = new ItemStack(this);\n\t \n\t GameRegistry.addRecipe(itemStackThis, \"xxx\", \"xyx\", \"xxx\", 'x', itemStackDroidParts,\n\t \t\t\t'y', itemStackQuadaniumSteelIngot);\t\n\t}", "@Override\r\n\tpublic void setInventoryItems() {\n\t\t\r\n\t}", "public void addToInventory() {\r\n\t\tdo {\r\n\t\t\tint quantity = 0;\r\n\t\t\tString brand = getToken(\"Enter washer brand: \");\r\n\t\t\tString model = getToken(\"Enter washer model: \");\r\n\t\t\tWasher washer = store.searchWashers(brand + model);\r\n\t\t\tif (washer == null) {\r\n\t\t\t\tSystem.out.println(\"No such washer exists.\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tquantity = getInteger(\"Enter quantity to add: \");\r\n\t\t\tboolean result = store.addWasherToInventory(brand, model, quantity);\r\n\t\t\tif(result) {\r\n\t\t\t\tSystem.out.println(\"Added \" + quantity + \" of \" + washer);\r\n\t\t\t}else {\r\n\t\t\t\tSystem.out.println(\"Washer could not be added to inventory.\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} while (yesOrNo(\"Add more washers to the inventory?\"));\r\n\t}", "boolean addSteam(ItemStack me, int amount, EntityPlayer player);", "void addElementToInventory(String elementName);", "public PageInventory withItems(Collection<ItemStack> items)\n {\n this.contents.addAll(items);\n this.recalculate();\n return this;\n }", "public PageInventory withItems(ItemStack... items)\n {\n this.contents.addAll(Arrays.asList(items));\n this.recalculate();\n return this;\n }", "public void addToInventory(IWeapon weapon){\n if (weaponsInventory.size() < 12) {\n this.weaponsInventory.add(weapon);\n lenInventory += 1;\n }\n }", "public Inventory(Integer size, ItemStack... items) {\n this.setSize((size == 0) ? 2147483647 : size);\n for (ItemStack stack : items) {\n ITEMS.add(stack);\n }\n }", "@Override\n\tpublic boolean addItem(ItemStack item, Player player) {\n\t\tif (!canAddItem(item, player)) {\n\t\t\treturn false;\n\t\t}\n\t\tif (item == null) {\n\t\t\treturn true;\n\t\t}\n\t\t//Backup contents\n\t\tItemStack[] backup = getContents().clone();\n\t\tItemStack backupItem = new ItemStack(item.getTypeId(), item.getAmount(), item.getDurability());\n\t\t\n\t\tint max = MinecartManiaWorld.getMaxStackSize(item);\n\t\t\n\t\t//First attempt to merge the itemstack with existing item stacks that aren't full (< 64)\n\t\tfor (int i = 0; i < size(); i++) {\n\t\t\tif (getItem(i) != null) {\n\t\t\t\tif (getItem(i).getTypeId() == item.getTypeId() && getItem(i).getDurability() == item.getDurability()) {\n\t\t\t\t\tif (getItem(i).getAmount() + item.getAmount() <= max) {\n\t\t\t\t\t\tsetItem(i, new ItemStack(item.getTypeId(), getItem(i).getAmount() + item.getAmount(), item.getDurability()));\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tint diff = getItem(i).getAmount() + item.getAmount() - max;\n\t\t\t\t\t\tsetItem(i, new ItemStack(item.getTypeId(), max, item.getDurability()));\n\t\t\t\t\t\titem = new ItemStack(item.getTypeId(), diff, item.getDurability());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Attempt to add the item to an empty slot\n\t\tint emptySlot = firstEmpty();\n\t\tif (emptySlot > -1) {\n\t\t\tsetItem(emptySlot, item);\n\t\t\tupdate();\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t\n\t\t//Try to merge the itemstack with the neighbor chest, if we have one\n\t\tMinecartManiaChest neighbor = getNeighborChest();\n\t\tif (neighbor != null) {\n\t\t\t//flag to prevent infinite recursion\n\t\t\tif (getDataValue(\"neighbor\") == null) {\n\t\t\t\tneighbor.setDataValue(\"neighbor\", Boolean.TRUE);\n\t\t\t\tif (getNeighborChest().addItem(item)) {\n\t\t\t\t\tupdate();\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//reset flag\n\t\t\t\tsetDataValue(\"neighbor\", null);\n\t\t\t}\n\t\t}\n\t\t\t\n\t\t//if we fail, reset the inventory and item back to previous values\n\t\tgetChest().getInventory().setContents(backup);\n\t\titem = backupItem;\n\t\treturn false;\n\t}", "@Override\n public IRecipe addRecipe() {\n return RecipeRegistry.addShapedRecipe(new ItemStack(this),\n \"igi\",\n \"gog\",\n \"igi\",\n 'o', \"obsidian\", 'i', \"ingotIron\", 'g', \"blockGlass\");\n }", "public void addItemInventory(Item item){\r\n playerItem.add(item);\r\n System.out.println(item.getDescription() + \" was taken \");\r\n }", "@Override\n\tpublic int getSizeInventory(){\n\t return modularStacks.length;\n\t}", "@Override\n\tpublic void addRecipes() {\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Core.materials, 1, MaterialsMeta.DYE_BROWN), \"coralBrown\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Core.materials, 1, MaterialsMeta.DYE_RED), \"coralRed\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Core.materials, 1, MaterialsMeta.DYE_YELLOW), \"coralYellow\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.LIGHT_BLUE), \"coralLightBlue\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.MAGENTA), \"coralMagenta\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.ORANGE), \"coralOrange\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.PINK), \"coralPink\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.PURPLE), \"coralPurple\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.GREY), \"coralGray\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.LIGHT_GREY), \"coralLightGray\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Core.materials, 1, MaterialsMeta.DYE_WHITE), \"coralWhite\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Core.materials, 1, MaterialsMeta.DYE_GREEN), \"plantKelp\", true);\n\t\t\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_BLUE), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_BRAIN), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_CANDYCANE), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_CUCUMBER), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_ORANGE), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_PINK), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_PURPLE), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_RED), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_GREY), new ItemStack(coral, 1, CoralMeta.CORAL_LIGHT_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_LIGHT_GREY), new ItemStack(coral, 1, CoralMeta.CORAL_WHITE), 5);\n\t\t\n\t\t//Kelp Wrap Recipe\n\t\tRecipeHelper.add9x9Recipe(new ItemStack(Core.food, 1, FoodMeta.KELP_WRAP), \"plantKelp\");\n\t\t\n\t\taddOceanChestLoot();\n\t}", "public int addItem(String name, int value) {\n\t\tfor (int i = 0; i < inventoryslot.length; i++) {\n\t\t\tif (inventoryslot[i].getItemname()==name) {\n\t\t\t\ttempstate=inventoryslot[i].changevalue(value);\n\t\t\t\tif(tempstate>0)return tempstate;/**Item over stacksize */\n\t\t\t\telse if(tempstate<0)return tempstate;/** Item empty*/\n\t\t\t\treturn tempstate;/** item added inventory */\n\t\t\t}\t\t\t\t\n\t\t}\n\t\treturn -1;/** item does not exists in inventory */\n\t}", "private void updateInventory(List<Item> items) {\r\n for(Item item : items) {\r\n inventory.put(item, STARTING_INVENTORY);\r\n inventorySold.put(item, 0);\r\n itemLocations.put(item.getSlot(), item);\r\n }\r\n }", "ItemStack make();", "@SuppressWarnings(\"deprecation\")\r\n\t@EventHandler\r\n\tpublic void inventoryClickEvent(InventoryClickEvent e) {\r\n\t\tEntity applier = e.getWhoClicked();\r\n\t\tif (!e.isCancelled()) {\r\n\t\t\tif (applier instanceof Player) {\r\n\t\t\t\tPlayer papplier = (Player) applier;\r\n\t\t\t\t// PlayerInventory pinventory = papplier.getInventory();\r\n\t\t\t\t// inven.put(papplier, pinventory);\r\n\t\t\t\tItemStack item = e.getCurrentItem();\r\n\t\t\t\tItemStack transmog = e.getCursor();\r\n\t\t\t\tString tname = \"\";\r\n\t\t\t\tif (item != null) {\r\n\t\t\t\t\tItemMeta itemMeta = item.getItemMeta();\r\n\t\t\t\t\tArrayList<String> lore1 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore2 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore3 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore4 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore5 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore6 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore7 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> totallore = new ArrayList<String>();\r\n\t\t\t\t\tif (item.getType() != Material.AIR) {\r\n\t\t\t\t\t\t// papplier.sendMessage(\"1\");\r\n\t\t\t\t\t\tif (transmog != null) {\r\n\t\t\t\t\t\t\t// papplier.sendMessage(\"2\");\r\n\t\t\t\t\t\t\tif (item.getType().name().endsWith(\"SWORD\") || item.getType().name().endsWith(\"AXE\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"HELMET\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"SHOVEL\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"CHESTPLATE\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"LEGGINGS\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"BOOTS\") || item.getType().name().endsWith(\"BOW\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"PICKAXE\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"HOE\")) {\r\n\t\t\t\t\t\t\t\t// papplier.sendMessage(\"3\");\r\n\t\t\t\t\t\t\t\tif (item.hasItemMeta()) {\r\n\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"4\");\r\n\t\t\t\t\t\t\t\t\tif (item.getItemMeta().hasLore()) {\r\n\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"5\");\r\n\t\t\t\t\t\t\t\t\t\tif (item.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"6\");\r\n\t\t\t\t\t\t\t\t\t\t\tif (Methods.transmogged(item) == true) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"7\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(Api.transint(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t// + \"\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tdname.put(item, item.getItemMeta().getDisplayName());\r\n\t\t\t\t\t\t\t\t\t\t\t\tI.put(papplier, Methods.transint(item));\r\n\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.put(item, true);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif (Methods.transmogged(item) == false) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"8\");\r\n\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.put(item, false);\r\n\t\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\tif (!item.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"9\");\r\n\t\t\t\t\t\t\t\t\t\t\ttransmogged.put(item, false);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"10\");\r\n\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) == false) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"11\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.hasItemMeta()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"12\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"13\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().getDisplayName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.color(\"&e&lTransmog\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"14\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String tlore : transmog.getItemMeta().getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"15\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tlore.contains(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&e&oPlace scroll on item to apply.\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"16\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (e.getClickedInventory() instanceof PlayerInventory) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"17\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (CE.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size() > 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMaterial material = item.getType();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemStack titem = new ItemStack(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmaterial, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemMeta titemMeta = titem\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemMeta();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() == null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchanted.put(titem, false);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = item.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<CEnchantments> enchantes = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<String> enchanters = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments encs : enchantes) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchanters.add(Methods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tencs.getCustomName()));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String ench : item.getItemMeta()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"29\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanters\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.removePower(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tench)))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"31\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments enchant : CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"19\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (ench.contains(enchant\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getCustomName())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString tier = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantmentCategory(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchant);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tier.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T1\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore1.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T2\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore2.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T3\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore3.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T4\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore4.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T5\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore5.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T6\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore6.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore7.add(ench);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore7);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore6);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore5);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore4);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore3);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore2);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint enchNumber = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (itemMeta.hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttname = item.getItemMeta()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDisplayName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" &d&l[&b&l&n\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ enchNumber + \"&d&l]\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!itemMeta.hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttname = \"&a\" + item.getType().name()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" &d&l[&b&l&n\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ enchNumber + \"&d&l]\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCancelled(true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setLore(totallore);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setDisplayName(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.color(tname));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.setItemMeta(titemMeta);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.addUnsafeEnchantments(enchants);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanted.get(titem) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanted.get(titem) == false) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.addGlow(titem);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCursor(null);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.removeItem(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory().addItem(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew ItemStack[] { titem });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i2 = 1; i2 <= 10; ++i2) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playEffect(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getEyeLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tEffect.SPELL, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playSound(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSound.LEVEL_UP, 1.0f, 1.0f);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = null;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (dname.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdname.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (I.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tI.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.getWhoClicked().sendMessage(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&6Swarm&eEnchants&f >> &cYou may only use Transmog scrolls in your own inventory!\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) == true) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"21\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tString dname1 = dname.get(item).replace(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.color(\"&d&l[&b&l&n\" + I.get(papplier) + \"&d&l]\"), \"\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.hasItemMeta()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"22\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"23\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().getDisplayName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.color(\"&e&lTransmog\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"24\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String tlore : transmog.getItemMeta().getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"25\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tlore.contains(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&e&oPlace scroll on item to apply.\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"26\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (e.getClickedInventory() instanceof PlayerInventory) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"27\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (CE.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size() > 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"28\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMaterial material = item.getType();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemStack titem = new ItemStack(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmaterial, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemMeta titemMeta = titem\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemMeta();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() == null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.addGlow(titem);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = item.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<CEnchantments> enchantes = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<String> enchanters = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments encs : enchantes) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchanters.add(Methods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tencs.getCustomName()));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String ench : item.getItemMeta()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"29\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanters\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.removePower(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tench)))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"31\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments enchant : CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"19\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (ench.contains(enchant\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getCustomName())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString tier = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantmentCategory(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchant);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tier.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T1\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore1.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T2\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore2.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T3\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore3.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T4\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore4.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T5\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore5.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T6\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore6.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore7.add(ench);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore7);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore6);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore5);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore4);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore3);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore2);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint enchNumber = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (itemMeta.hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttname = dname1 + \" &d&l[&b&l&n\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ enchNumber + \"&d&l]\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCancelled(true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setLore(totallore);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setDisplayName(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.color(tname));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.setItemMeta(titemMeta);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.addUnsafeEnchantments(enchants);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCursor(null);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.removeItem(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory().addItem(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew ItemStack[] { titem });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i2 = 1; i2 <= 10; ++i2) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playEffect(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getEyeLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tEffect.SPELL, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playSound(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSound.LEVEL_UP, 1.0f, 1.0f);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = null;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (dname.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdname.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (I.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tI.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.getWhoClicked().sendMessage(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&6Swarm&eEnchants&f >> &cYou may only use Transmog scrolls in your own inventory!\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\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}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Nullable\n ItemStack onInsert(ItemStack container);", "@Test\n\tpublic void testAddInventory() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"4\",\"7\",\"0\",\"9\");\n\t}", "@Override\n public void onReceiveItem(InventoryItem itemReceived) {\n inventory.add(itemReceived);\n }", "public void takeItemsFromChest() {\r\n currentRoom = player.getCurrentRoom();\r\n for (int i = 0; i < currentRoom.getChest().size(); i++) {\r\n player.addToInventory(currentRoom.getChest().get(i));\r\n currentRoom.getChest().remove(i);\r\n }\r\n\r\n }", "@Override\n\tpublic void getSubBlocks(Item i, CreativeTabs tab, List l)\n\t{\n\t\tl.add(new ItemStack(i, 1, 0));\n\t}", "@Override\n\tpublic void setInventorySlotContents(int index, ItemStack stack) {\n\t\t\n\t}", "public void fireOnItemAddedToInventoryCommands();", "public static void addItem(Inventory inv, String itemName, Material materialName, Integer index) {\r\n ItemStack is = new ItemStack(materialName);\r\n ItemMeta meta = is.getItemMeta();\r\n meta.setDisplayName(itemName);\r\n is.setItemMeta(meta);\r\n inv.setItem(index, is);\r\n }", "public List<InventoryEntity> addInventory(Inventory inventory) {\n\t\treturn inventoryDao.addInventory(inventory);\n\t}", "public static void craft()\r\n\t{\r\n\t\tList<IRecipe> recipeList = CraftingManager.getInstance().getRecipeList();\r\n\t\tIterator<IRecipe> recipe = recipeList.iterator();\r\n\r\n\t\twhile (recipe.hasNext())\r\n\t\t{\r\n\t\t\tItemStack stack = recipe.next().getRecipeOutput();\r\n\r\n\t\t\tif (stack != null && stack.areItemsEqual(stack, new ItemStack(Blocks.STONEBRICK, 1, 0)))\r\n\t\t\t{\r\n\t\t\t\trecipe.remove();\r\n\t\t\t} else if (stack != null && stack.areItemsEqual(stack, new ItemStack(Blocks.END_BRICKS, 1, 0)))\r\n\t\t\t{\r\n\t\t\t\trecipe.remove();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Adds all the 2 by 2 crafting Recipes\r\n\t\t */\r\n\t\tcraft2by2(new ItemStack(Blocks.STONE, 1, 2), new ItemStack(BBBlocks.moreStones, 4, 1));\r\n\t\tcraft2by2(new ItemStack(Blocks.STONE, 1, 4), new ItemStack(BBBlocks.moreStones, 4, 3));\r\n\t\tcraft2by2(new ItemStack(Blocks.STONE, 1, 6), new ItemStack(BBBlocks.moreStones, 4, 5));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 6), new ItemStack(BBBlocks.moreStones, 4, 9));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 9), new ItemStack(BBBlocks.moreStones, 4, 8));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 10), new ItemStack(BBBlocks.moreStones, 4, 13));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 13), new ItemStack(BBBlocks.moreStones, 4, 12));\r\n\t\tcraft2by2(new ItemStack(Blocks.SANDSTONE, 1, 2), new ItemStack(BBBlocks.moreStones, 4, 14));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 8), new ItemStack(BBBlocks.cotswoldBricks, 4));\r\n\t\tcraft2by2(new ItemStack(Blocks.BRICK_BLOCK, 1), new ItemStack(BBBlocks.agedBricks, 4));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 2), new ItemStack(BBBlocks.moreStones2, 4, 5));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 5), new ItemStack(BBBlocks.moreStones2, 4, 4));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 1), new ItemStack(BBBlocks.moreStones2, 4, 0));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 14), new ItemStack(BBBlocks.moreStones2, 4, 1));\r\n\t\tcraft2by2(new ItemStack(Blocks.RED_SANDSTONE, 1, 2), new ItemStack(BBBlocks.moreStones2, 4, 6));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 6), new ItemStack(BBBlocks.moreStones2, 4, 9));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 9), new ItemStack(BBBlocks.moreStones2, 4, 8));\r\n\t\tcraft2by2(new ItemStack(Blocks.NETHERRACK, 1), new ItemStack(BBBlocks.moreStones2, 4, 11));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 11), new ItemStack(BBBlocks.moreStones2, 4, 10));\r\n\t\tcraft2by2(new ItemStack(Blocks.STONE), new ItemStack(BBBlocks.moreStones2, 4, 12));\r\n\t\tcraft2by2(new ItemStack(Blocks.END_STONE), new ItemStack(BBBlocks.moreStones2, 4, 13));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 12), new ItemStack(Blocks.STONEBRICK, 4, 0));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 13), new ItemStack(Blocks.END_BRICKS, 4, 0));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones3, 1, 0), new ItemStack(BBBlocks.moreStones3, 4, 2));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones3, 1, 2), new ItemStack(BBBlocks.moreStones3, 4, 1));\r\n\r\n\r\n\t\t/**\r\n\t\t * Adds all the stair Recipes\r\n\t\t */\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 0), new ItemStack(BBBlocks.cobbleGraniteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 2), new ItemStack(BBBlocks.cobbleDioriteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 4), new ItemStack(BBBlocks.cobbleAndesiteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 7), new ItemStack(BBBlocks.cobbleLimestoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 11), new ItemStack(BBBlocks.cobbleMarbleStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 15), new ItemStack(BBBlocks.cobbleSandstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 3), new ItemStack(BBBlocks.cobbleBasaltStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 7), new ItemStack(BBBlocks.cobbleRedsandstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 1), new ItemStack(BBBlocks.brickGraniteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 3), new ItemStack(BBBlocks.brickDioriteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 5), new ItemStack(BBBlocks.brickAndesiteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 8), new ItemStack(BBBlocks.brickLimestoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 12), new ItemStack(BBBlocks.brickMarbleStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 0), new ItemStack(BBBlocks.brickSandstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 4), new ItemStack(BBBlocks.brickBasaltStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 8), new ItemStack(BBBlocks.brickRedsandstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 10), new ItemStack(BBBlocks.brickNetherrackStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.cotswoldBricks, 1), new ItemStack(BBBlocks.brickCotswoldStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.agedBricks, 1), new ItemStack(BBBlocks.brickAgedbrickStair, 4));\r\n\t\tcraftStair(new ItemStack(Blocks.END_BRICKS, 1), new ItemStack(BBBlocks.brickEndstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(Blocks.RED_NETHER_BRICK, 1), new ItemStack(BBBlocks.brickRednetherStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones3, 1, 1), new ItemStack(BBBlocks.brickAcheriteStair, 4));\r\n\r\n\t\t/**\r\n\t\t * Adds all the slab Recipes\r\n\t\t */\r\n\t\tcraftSlab(BBBlocks.cobbleAndesiteSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleGraniteSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleDioriteSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleMarbleSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleLimestoneSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleSandstoneSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleBasaltSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleRedsandstoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickAndesiteSlab);\r\n\t\tcraftSlab(BBBlocks.brickGraniteSlab);\r\n\t\tcraftSlab(BBBlocks.brickDioriteSlab);\r\n\t\tcraftSlab(BBBlocks.brickMarbleSlab);\r\n\t\tcraftSlab(BBBlocks.brickLimestoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickSandstoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickBasaltSlab);\r\n\t\tcraftSlab(BBBlocks.brickRedsandstoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickRednetherSlab);\r\n\t\tcraftSlab(BBBlocks.brickEndstoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickNetherrackSlab);\r\n\t\tcraftSlab(BBBlocks.brickCotswoldSlab);\r\n\t\tcraftSlab(BBBlocks.brickAgedbrickSlab);\r\n\t\tcraftSlab(BBBlocks.brickAcheriteSlab);\r\n\t\t\r\n\t\t/**\r\n\t\t * Other Crafting Recipes\r\n\t\t */\r\n\t\tGameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(BBBlocks.moreStones2, 16, 14), new Object[] { Blocks.CLAY, \"sand\", Blocks.GRAVEL, Items.WATER_BUCKET}));\r\n\t\tNBTTagCompound concreteTag = new NBTTagCompound();\r\n\t\tconcreteTag.setInteger(\"color\", 16777215);\r\n\t\tItemStack concreteStack = new ItemStack(BBBlocks.concreteDyeable, 8, 0);\r\n\t\tconcreteStack.setTagCompound(concreteTag);\r\n\t\tGameRegistry.addRecipe(concreteStack, new Object[] { \"###\", \"#O#\", \"###\", '#', new ItemStack(BBBlocks.moreStones2, 1, 15), 'O', Items.PAPER });\r\n\t\tGameRegistry.addRecipe(new RecipesConcreteDyeable());\r\n\t\tGameRegistry.addRecipe(new RecipesConcreteTiles());\r\n\t\tGameRegistry.addRecipe(new RecipesConcreteDyeable.RecipeDuplicateConcrete());\r\n\t\tGameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(BBBlocks.overgrowth, 8),new Object[] { \"treeLeaves\", \"treeLeaves\"}));\r\n\r\n\t\t/**\r\n\t\t * Adds all the smelting Recipes\r\n\t\t */\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 0), new ItemStack(Blocks.STONE, 1, 1));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 2), new ItemStack(Blocks.STONE, 1, 3));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 4), new ItemStack(Blocks.STONE, 1, 5));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 7), new ItemStack(BBBlocks.moreStones, 1, 6));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 11), new ItemStack(BBBlocks.moreStones, 1, 10));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 15), new ItemStack(BBBlocks.moreStones, 1, 14));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones2, 1, 3), new ItemStack(BBBlocks.moreStones2, 1, 2));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones2, 1, 7), new ItemStack(BBBlocks.moreStones2, 1, 6));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones2, 1, 14), new ItemStack(BBBlocks.moreStones2, 1, 15));\r\n\r\n\t}", "ItemStack createItemStack(CompoundTag tag);", "public void addItem(Item itemToAdd){\n\t\tif(!isFull()){\n\t\t\tint index = findFreeSlot();\n\t\t\tinventoryItems[index] = itemToAdd;\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Inventory full.\");\n\t\t}\n\t\t\n\t}", "public PageInventory addItem(ItemStack item)\n {\n this.contents.add(item);\n this.recalculate();\n return this;\n }", "public void addItem(Item newItem) {\n for (Item i : inventory) {\n if (newItem.getClass().equals(i.getClass())) {\n i.setQuantity(i.getQuantity() + newItem.getQuantity());\n return;\n }\n }\n inventory.add(newItem);\n }", "public void addItem(Item item)\n\t{\n\t\tif(inventory.size()<=9)\n\t\t\tinventory.add(item);\n\t\telse\n\t\t\tSystem.out.println(\"Inventory is full.\");\n\t}", "public static List<CompoundTag> writeInventory(ItemStack[] items, int start) {\n List<CompoundTag> out = new ArrayList<>();\n for (int i = 0; i < items.length; i++) {\n ItemStack stack = items[i];\n if (!InventoryUtil.isEmpty(stack)) {\n out.add(writeItem(stack, start + i));\n }\n }\n return out;\n }", "public void addIngredient(Ingredient ingredient) {\n stock.put(ingredient, inventoryMax);\n }", "public void addItemtoInventoryList(String item) {\r\n InventoryList.add(item);\r\n }", "private void loadStartingInventory(){\n this.shelfList = floor.getShelf();\n Iterator<String> i = items.iterator();\n for (Shelf s : shelfList){\n while (s.hasFreeSpace()){\n s.addItem(i.next(), 1);\n }\n }\n }", "public void getSubBlocks(int var1, CreativeTabs var2, List var3)\n {\n var3.add(new ItemStack(this));\n }", "public void onInventoryChanged()\n\t{\n\t\tfor (int i = 0; i < this.items.length; i++)\n\t\t{\n\t\t\tItemStack stack = this.items[i];\n\t\t\tif (stack != null && stack.stackSize <= 0)\n\t\t\t{\n\t\t\t\tthis.items[i] = null;\n\t\t\t}\n\n\t\t}\n\t}", "public void addItem(Item item) {\r\n for (Item i : inventoryItems) {\r\n if (i.getId() == item.getId()) {\r\n i.setCount(i.getCount() + item.getCount());\r\n return;\r\n }\r\n }\r\n inventoryItems.add(item);\r\n }", "public boolean addNewInventory() {\n if (characterVM.addNewInventory(inventoryEntityToRetrieve.peek())) {\n removeTopRewardAndContinue();\n return true;\n }\n return false;\n }", "public void moveItemStackTo(ItemStack itemStack, Inventory inventory) {\n int itemsAdded = inventory.addItemStack(itemStack);\n\n this.removeItemStack(new ItemStack(itemStack.getItem(), itemsAdded));\n }", "public void addItemInventory(Item item){\n playerItem.add(item);\n System.out.println(item.getDescription() + \" was taken \");\n System.out.println(item.getDescription() + \" was removed from the room\"); // add extra information to inform user that the item has been taken\n }", "public void craft() {\n \t\tItemStack[] clonedContents = this.getGrid().getClonedContents();\n \t\tfor (int i = 0; i < clonedContents.length; i++) {\n \t\t\tItemStack clickedItem = clonedContents[i];\n \t\t\tif (clickedItem == null) {\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\tclickedItem.setAmount(clickedItem.getAmount() - 1);\n \t\t\tif (clickedItem.isEmpty()) {\n \t\t\t\tclickedItem = null;\n \t\t\t}\n \t\t\tclonedContents[i] = clickedItem;\n \t\t}\n \t\tthis.getGrid().setContents(clonedContents);\n \t}", "public void add() {\n\t\tcart.add(item.createCopy());\n\t}", "public static void addRecipes() {\n\t\tModLoader.addRecipe(new ItemStack(blockWirelessR, 1), new Object[] {\n\t\t\t\t\"IRI\", \"RLR\", \"IRI\", Character.valueOf('I'), Item.ingotIron,\n\t\t\t\tCharacter.valueOf('R'), Item.redstone, Character.valueOf('L'),\n\t\t\t\tBlock.lever });\n\t\tModLoader.addRecipe(new ItemStack(blockWirelessT, 1), new Object[] {\n\t\t\t\t\"IRI\", \"RTR\", \"IRI\", Character.valueOf('I'), Item.ingotIron,\n\t\t\t\tCharacter.valueOf('R'), Item.redstone, Character.valueOf('T'),\n\t\t\t\tBlock.torchRedstoneActive });\n\t}", "public void withdrawAll() {\r\n for (int i = 0; i < container.capacity(); i++) {\r\n Item item = container.get(i);\r\n if (item == null) {\r\n continue;\r\n }\r\n int amount = owner.getInventory().getMaximumAdd(item);\r\n if (item.getCount() > amount) {\r\n item = new Item(item.getId(), amount);\r\n container.remove(item, false);\r\n owner.getInventory().add(item, false);\r\n } else {\r\n container.replace(null, i, false);\r\n owner.getInventory().add(item, false);\r\n }\r\n }\r\n container.update();\r\n owner.getInventory().update();\r\n }", "public Inventory<T> add(final Inventory<T> inventory) {\n if (inventory == null) {\n return this;\n }\n final HashMap<T, Integer> freshMap = new HashMap<>();\n for (T t : enums) {\n freshMap.put(t, inventory.quantity(t) + items.get(t));\n }\n return new Inventory<T>(enums, Collections.unmodifiableMap(freshMap));\n }", "public void addRecipes(CraftingManager par1CraftingManager)\n {\n for (int var2 = 0; var2 < this.recipeItems[0].length; ++var2)\n {\n Object var3 = this.recipeItems[0][var2];\n\n for (int var4 = 0; var4 < this.recipeItems.length - 1; ++var4)\n {\n Item var5 = (Item)this.recipeItems[var4 + 1][var2];\n par1CraftingManager.addRecipe(new ItemStack(var5), new Object[] {this.recipePatterns[var4], 'X', var3});\n }\n }\n }", "public ItemStack b(InventoryCrafting var1)\n {\n int var2 = var1.getSize();\n boolean var3 = false;\n int var4 = 0;\n int var5 = 0;\n ItemStack var6 = null;\n Vector var7 = new Vector();\n int var8;\n ItemStack var9;\n\n for (var8 = 0; var8 < var2; ++var8)\n {\n var9 = var1.getItem(var8);\n\n if (var9 != null)\n {\n if (var9.getItem() instanceof ItemEnergySensorLocationCard)\n {\n var7.add(var9);\n ++var4;\n }\n else\n {\n if (!(var9.getItem() instanceof ItemEnergyArrayLocationCard))\n {\n var3 = true;\n break;\n }\n\n var6 = var9;\n ++var5;\n }\n }\n }\n\n if (var3)\n {\n return null;\n }\n else if (var4 >= 2 && var4 <= 6 && var5 == 0)\n {\n ItemStack var10 = new ItemStack(IC2NuclearControl.itemEnergyArrayLocationCard, 1, 0);\n ItemEnergyArrayLocationCard.initArray(var10, var7);\n return var10;\n }\n else\n {\n if (var4 == 0 && var5 == 1)\n {\n var8 = ItemEnergyArrayLocationCard.getCardCount(var6);\n\n if (var8 > 0)\n {\n return new ItemStack(Items.getItem(\"electronicCircuit\").getItem(), 2 * var8, 0);\n }\n }\n else if (var5 == 1 && var4 > 0)\n {\n var8 = ItemEnergyArrayLocationCard.getCardCount(var6);\n\n if (var8 + var4 <= 6)\n {\n var9 = new ItemStack(IC2NuclearControl.itemEnergyArrayLocationCard, 1, 0);\n var9.setTag((NBTTagCompound)var6.getTag().clone());\n ItemEnergyArrayLocationCard.initArray(var9, var7);\n return var9;\n }\n }\n\n return null;\n }\n }", "public void softAddItem(ItemStack item, Player player){\n\t\tHashMap<Integer,ItemStack> excess = player.getInventory().addItem(item);\n\t\tfor( Map.Entry<Integer, ItemStack> me : excess.entrySet() ){\n\t\t\tplayer.getWorld().dropItem(player.getLocation(), me.getValue() );\n\t\t}\n\t}", "public void setInventorySlotContents(int slot, ItemStack stack)\n {\n waterjetStacks[slot] = stack;\n }", "public void addInventory(String key, Integer value) {\n int currentValue = inventoryMap.getOrDefault(key, 0);\n inventoryMap.put(key, currentValue + value);\n }", "public void createItemInInventory(Item newItem) {\n\t\tinventory.createItem(newItem);\n\t}", "@SideOnly(Side.CLIENT)\n/* 34: */ public void getSubItems(Item itemId, CreativeTabs table, List list)\n/* 35: */ {\n/* 36:35 */ for (int i = 0; i < 13; i++)\n/* 37: */ {\n/* 38:36 */ ItemStack is = new ItemStack(itemId);\n/* 39:37 */ is.stackTagCompound = new NBTTagCompound();\n/* 40:38 */ is.stackTagCompound.setShort(\"Shield\", (short)i);\n/* 41:39 */ list.add(is);\n/* 42: */ }\n/* 43: */ }", "private void inventoryHandler(){\n final Button TAB = getOwnerArea().getKeyboard().get(Keyboard.TAB);\n final Button SPACE = getOwnerArea().getKeyboard().get(Keyboard.SPACE);\n final Button R = getOwnerArea().getKeyboard().get(Keyboard.R);\n final Button T = getOwnerArea().getKeyboard().get(Keyboard.T);\n final Button Y = getOwnerArea().getKeyboard().get(Keyboard.Y);\n final Button U = getOwnerArea().getKeyboard().get(Keyboard.U);\n final Button I = getOwnerArea().getKeyboard().get(Keyboard.I);\n final Button O = getOwnerArea().getKeyboard().get(Keyboard.O);\n final Button P = getOwnerArea().getKeyboard().get(Keyboard.P);\n final Button K = getOwnerArea().getKeyboard().get(Keyboard.K);\n\n //Used for tests, as asked in the instructions\n if (R.isPressed()) {\n inventory.add(ARPGItem.ARROW, 1);\n } else if (T.isPressed()) {\n inventory.add(ARPGItem.SWORD, 1);\n } else if (Y.isPressed()) {\n inventory.add(ARPGItem.STAFF, 1);\n } else if (U.isPressed()) {\n inventory.add(ARPGItem.BOW, 1);\n } else if (I.isPressed()) {\n inventory.add(ARPGItem.BOMB, 1);\n } else if (O.isPressed()) {\n inventory.add(ARPGItem.CASTLEKEY, 1);\n } else if (P.isPressed()) {\n inventory.add(ARPGItem.WINGS, 1);\n } else if (K.isPressed()) {\n inventory.add(ARPGItem.CHESTKEY, 1);\n }\n\n /*If the player does not have any currentItem anymore we switch it (f. ex. if a player\n uses his last bomb or if the constructor assigns as the player's current item an item\n he does not possess by mistake)\n */\n if(!possess(currentItem)) {\n currentItem = (ARPGItem) inventory.switchItem(currentItem);\n }\n\n //Switches item.\n if(TAB.isPressed()){\n currentItem = (ARPGItem) inventory.switchItem(currentItem);\n if(currentItem == ARPGItem.ARROW){\n currentItem = (ARPGItem) inventory.switchItem(currentItem);\n }\n }\n\n //Uses the item and adapts the animations\n if(SPACE.isPressed() && !isDisplacementOccurs()){\n if(currentItem.use(getOwnerArea(), getOrientation(), getCurrentMainCellCoordinates())){\n switch(currentItem){\n case BOMB:\n inventory.remove(currentItem, 1);\n break;\n case BOW:\n if(actionTimer >= COOLDOWN) {\n animateAction = true;\n currentAnimation = bowAnimations[getOrientation().ordinal()];\n shootArrow = true;\n actionTimer = 0.f;\n }\n break;\n case SWORD:\n animateAction = true;\n currentAnimation = swordAnimations[getOrientation().ordinal()];\n break;\n case STAFF:\n animateAction = true;\n currentAnimation = staffAnimations[getOrientation().ordinal()];\n break;\n }\n\n }\n }\n\n //Wings have a special treatment because SPACE needs to be down and not pressed\n if (currentItem == ARPGItem.WINGS && SPACE.isDown()) {\n //Sets the animation for the current orientation. Make sure it doesn't fly yet\n // so that the animation is not stuck.\n if (!canFly) {\n currentAnimation = flyAnimations[getOrientation().ordinal()];\n }\n canFly = true;\n } else {\n //Resets to idleAnimations\n if (canFly) {\n currentAnimation = idleAnimations[getOrientation().ordinal()];\n }\n canFly = false;\n }\n }", "public void readInventoryFromNBT(CompoundNBT tag) {\n ListNBT nbttaglist = tag.getList(TAG_ITEMS, NBT.TAG_COMPOUND);\n\n int limit = this.getInventoryStackLimit();\n ItemStack stack;\n for (int i = 0; i < nbttaglist.size(); ++i) {\n CompoundNBT itemTag = nbttaglist.getCompound(i);\n int slot = itemTag.getByte(TAG_SLOT) & 255;\n if (slot < this.inventory.size()) {\n stack = ItemStack.read(itemTag);\n if (!stack.isEmpty() && stack.getCount() > limit) {\n stack.setCount(limit);\n }\n this.inventory.set(slot, stack);\n }\n }\n }", "@Override\n\tpublic void setInventorySlotContents(int slot, ItemStack stack){\n\t modularStacks[slot] = stack;\n\n\t if(stack != null && stack.stackSize > getInventoryStackLimit()) {\n\t stack.stackSize = getInventoryStackLimit();\n\t }\n\n\t markDirty();\n\t worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);\n\t}", "public void fillChest(Inventory inv);", "public ItemStack createItem(ItemType type, int damage,List<Text> lore);", "public void setInventorySlotContents(int par1, ItemStack par2ItemStack)\n {\n this.furnaceItemStacks[par1] = par2ItemStack;\n\n if (par2ItemStack != null && par2ItemStack.stackSize > this.getInventoryStackLimit())\n {\n par2ItemStack.stackSize = this.getInventoryStackLimit();\n }\n }", "public static boolean hasInventorySpace(Inventory inventory, ItemStack is) {\n Inventory inv = Bukkit.createInventory(null, inventory.getSize());\n\n for (int i = 0; i < inv.getSize(); i++) {\n if (inventory.getItem(i) != null) {\n ItemStack item = inventory.getItem(i).clone();\n inv.setItem(i, item);\n }\n }\n\n if (inv.addItem(is.clone()).size() > 0) {\n return false;\n }\n\n return true;\n }", "public void initItems() {\n List<Integer> emptySlots = NimbleServer.enchantmentConfig.getEmptySlots();\n for (int i = 0; i < getSize(); i++) {\n if(!(emptySlots.contains(i))) {\n getInventory().setItem(i, getFiller());\n }\n }\n }", "public void registerVariants(){\n\t\tModelResourceLocation[] variants = new ModelResourceLocation[metaNames.length];\r\n\t\tfor(int i = 0; i < metaNames.length; i++){\r\n\t\t\tvariants[i] = new ModelResourceLocation(ElementsMod.MODID + \":\" + getNameFromDamage(i), \"inventory\");\r\n\t\t}\r\n\t\tModelBakery.registerItemVariants(ItemManager.apple, variants);\r\n\t}", "public ItemStack transferStackInSlot(EntityPlayer playerIn, int index) {\n/* 79 */ ItemStack var3 = null;\n/* 80 */ Slot var4 = this.inventorySlots.get(index);\n/* */ \n/* 82 */ if (var4 != null && var4.getHasStack()) {\n/* */ \n/* 84 */ ItemStack var5 = var4.getStack();\n/* 85 */ var3 = var5.copy();\n/* */ \n/* 87 */ if (index < this.field_111243_a.getSizeInventory()) {\n/* */ \n/* 89 */ if (!mergeItemStack(var5, this.field_111243_a.getSizeInventory(), this.inventorySlots.size(), true))\n/* */ {\n/* 91 */ return null;\n/* */ }\n/* */ }\n/* 94 */ else if (getSlot(1).isItemValid(var5) && !getSlot(1).getHasStack()) {\n/* */ \n/* 96 */ if (!mergeItemStack(var5, 1, 2, false))\n/* */ {\n/* 98 */ return null;\n/* */ }\n/* */ }\n/* 101 */ else if (getSlot(0).isItemValid(var5)) {\n/* */ \n/* 103 */ if (!mergeItemStack(var5, 0, 1, false))\n/* */ {\n/* 105 */ return null;\n/* */ }\n/* */ }\n/* 108 */ else if (this.field_111243_a.getSizeInventory() <= 2 || !mergeItemStack(var5, 2, this.field_111243_a.getSizeInventory(), false)) {\n/* */ \n/* 110 */ return null;\n/* */ } \n/* */ \n/* 113 */ if (var5.stackSize == 0) {\n/* */ \n/* 115 */ var4.putStack(null);\n/* */ }\n/* */ else {\n/* */ \n/* 119 */ var4.onSlotChanged();\n/* */ } \n/* */ } \n/* */ \n/* 123 */ return var3;\n/* */ }", "@Override\n public void setInventorySlotContents(int index, @Nullable ItemStack stack1) {\n markDirty();\n int flag = 1;\n if (null == stack) {\n stack = stack1.copy();\n stack1.stackSize = 0;\n flag = 3;\n } else {\n int limit = Config.Feeder.InvSize - stack.stackSize;\n if (stack1.stackSize > limit) {\n stack.stackSize += limit;\n stack1.stackSize -= limit;\n } else {\n stack.stackSize += stack1.stackSize;\n stack1.stackSize = 0;\n }\n }\n IBlockState state = worldObj.getBlockState(getPos());\n worldObj.notifyBlockUpdate(getPos(), state, state, flag);\n }", "public void add(Inventory toAdd) throws DuplicateInventoryException {\n requireNonNull(toAdd);\n if (contains(toAdd)) {\n throw new DuplicateInventoryException();\n }\n\n list.add(toAdd);\n }", "@Override\n\tpublic void openInventory() {\n\t\t\n\t}", "private ItemStack[] getItemStack() {\n\n ItemStack[] stack = new ItemStack[54];\n int i = 0;\n // get the player's messages\n TVMResultSetInbox rs = new TVMResultSetInbox(plugin, uuid, start, 44);\n if (rs.resultSet()) {\n List<TVMMessage> messages = rs.getMail();\n for (TVMMessage m : messages) {\n // message\n ItemStack mess;\n if (m.isRead()) {\n mess = new ItemStack(Material.BOOK, 1);\n } else {\n mess = new ItemStack(Material.WRITABLE_BOOK, 1);\n }\n ItemMeta age = mess.getItemMeta();\n age.setDisplayName(\"#\" + (i + start + 1));\n String from = plugin.getServer().getOfflinePlayer(m.getWho()).getName();\n age.setLore(Arrays.asList(\"From: \" + from, \"Date: \" + m.getDate(), \"\" + m.getId()));\n mess.setItemMeta(age);\n stack[i] = mess;\n i++;\n }\n }\n\n int n = start / 44 + 1;\n // page number\n ItemStack page = new ItemStack(Material.BOWL, 1);\n ItemMeta num = page.getItemMeta();\n num.setDisplayName(\"Page \" + n);\n num.setCustomModelData(119);\n page.setItemMeta(num);\n stack[45] = page;\n // close\n ItemStack close = new ItemStack(Material.BOWL, 1);\n ItemMeta win = close.getItemMeta();\n win.setDisplayName(\"Close\");\n win.setCustomModelData(1);\n close.setItemMeta(win);\n stack[46] = close;\n // previous screen (only if needed)\n if (start > 0) {\n ItemStack prev = new ItemStack(Material.BOWL, 1);\n ItemMeta een = prev.getItemMeta();\n een.setDisplayName(\"Previous Page\");\n een.setCustomModelData(120);\n prev.setItemMeta(een);\n stack[48] = prev;\n }\n // next screen (only if needed)\n if (finish > 44) {\n ItemStack next = new ItemStack(Material.BOWL, 1);\n ItemMeta scr = next.getItemMeta();\n scr.setDisplayName(\"Next Page\");\n scr.setCustomModelData(116);\n next.setItemMeta(scr);\n stack[49] = next;\n }\n // read\n ItemStack read = new ItemStack(Material.BOWL, 1);\n ItemMeta daer = read.getItemMeta();\n daer.setDisplayName(\"Read\");\n daer.setCustomModelData(121);\n read.setItemMeta(daer);\n stack[51] = read;\n // delete\n ItemStack del = new ItemStack(Material.BOWL, 1);\n ItemMeta ete = del.getItemMeta();\n ete.setDisplayName(\"Delete\");\n ete.setCustomModelData(107);\n del.setItemMeta(ete);\n stack[53] = del;\n\n return stack;\n }", "public static void addLogRecipes() {\n Container tempContainer = new Container() {\n @Override\n public boolean canInteractWith(@Nonnull EntityPlayer player) {\n return false;\n }\n };\n\n InventoryCrafting tempCrafting = new InventoryCrafting(tempContainer, 3, 3);\n\n for (int i = 1; i < 9; i++) {\n tempCrafting.setInventorySlotContents(i, ItemStack.EMPTY);\n }\n\n List<ItemStack> registeredOres = OreDictionary.getOres(\"logWood\");\n\n for (ItemStack logEntry : registeredOres) {\n if (logEntry.getItemDamage() == OreDictionary.WILDCARD_VALUE) {\n for (int j = 0; j < 16; j++) {\n ItemStack log = new ItemStack(logEntry.getItem(), 1, j);\n tempCrafting.setInventorySlotContents(0, log);\n ItemStack resultEntry = MekanismUtils.findMatchingRecipe(tempCrafting, null);\n\n if (!resultEntry.isEmpty()) {\n RecipeHandler.addPrecisionSawmillRecipe(log, StackUtils.size(resultEntry, 6),\n new ItemStack(MekanismItems.Sawdust), 1);\n }\n }\n } else {\n ItemStack log = StackUtils.size(logEntry, 1);\n tempCrafting.setInventorySlotContents(0, log);\n ItemStack resultEntry = MekanismUtils.findMatchingRecipe(tempCrafting, null);\n\n if (!resultEntry.isEmpty()) {\n RecipeHandler.addPrecisionSawmillRecipe(log, StackUtils.size(resultEntry, 6),\n new ItemStack(MekanismItems.Sawdust), 1);\n }\n }\n }\n }", "public static void addItem(BackpackItem itemName) {\n\t\t\t\n\t\t\tfor (int i = 0; i <= backpackArr.length-1; i++) { //iterate through backpackArr\n\t\t\t\t\n\t\t\t\tif (backpackArr[i] == null) { // If there is no item in slot\n\t\t\t\t\tSystem.out.println(\"You added the \" + itemName + \" to your backpack.\");\n\t\t\t\t\tbackpackArr[i] = itemName; // puts new item into next empty BackpackItem index in backpackArr\n\t\t\t\t\tbreak; // breaks out of for loop (to prevent filling up all slots with the same item\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void readFromNBT(NBTTagCompound par1NBTTagCompound)\n {\n super.readFromNBT(par1NBTTagCompound);\n NBTTagList var2 = par1NBTTagCompound.getTagList(\"Items\");\n this.furnaceItemStacks = new ItemStack[this.getSizeInventory()];\n\n for (int var3 = 0; var3 < var2.tagCount(); ++var3)\n {\n NBTTagCompound var4 = (NBTTagCompound)var2.tagAt(var3);\n byte var5 = var4.getByte(\"Slot\");\n\n if (var5 >= 0 && var5 < this.furnaceItemStacks.length)\n {\n this.furnaceItemStacks[var5] = ItemStack.loadItemStackFromNBT(var4);\n }\n }\n\n this.fuel = par1NBTTagCompound.getShort(\"Fuel\");\n this.furnaceCookTime = par1NBTTagCompound.getShort(\"CookTime\");\n this.direction = par1NBTTagCompound.getShort(\"Direction\");\n this.furnaceTimeBase = par1NBTTagCompound.getShort(\"TimeBase\");\n this.maxFuel = par1NBTTagCompound.getShort(\"MaxFuel\");\n sync();\n }", "public void updateInventory ( ) {\n\t\texecute ( handle -> handle.updateInventory ( ) );\n\t}", "public void addItem(Item item, int x, int y) {\n\t\tInventory items = getItemsAt(x, y);\n\t\titems.add(item);\n\t}", "@Override\r\n public ItemStack getItemStack(PartItemStack type) {\n return new ItemStack(this.item);\r\n }", "@Override\n\tpublic boolean matches(InventoryCrafting inv, World worldIn) {\n\t\t\n\t\tint zombie = 0;\n\t\tint skeleton = 0;\n\t\tint creeper = 0;\n\t\tint deathingot = 0;\n\t\tint deathingot1 = 0;\n\t\tint deathingot2 = 0;\n\t\tint deathingot3 = 0;\n\t\tint netherstar = 0;\n\t\tint netherstar1 = 0;\n\t\tItemStack sword = null;\n\t\tfor(int i=0; i < inv.getSizeInventory(); ++i)\n\t\t{\n\t\t\tItemStack item = inv.getStackInSlot(i);\n\t\t\tif (item != null && item.getItem() == Itemsss.SkeletonSword && item.getTagCompound() != null) \n\t\t\t{\n\n\t\t\t\tNBTTagCompound tag = item.getTagCompound();\n\t\t\t\tif (tag.getInteger(\"kills\") > 49) \n\t\t\t\t{\n\t\t\t\t\tif(i == 3 && tag.getString(\"mob\").equals(\"zombie\"))\n\t\t\t\t\t{\n\t\t\t\t\t\t++zombie;\n\t\t\t\t\t}\t\n\t\t\t\t\tif(i == 5 &&tag.getString(\"mob\").equals(\"creeper\"))\n\t\t\t\t\t{\n\t\t\t\t\t\t++creeper;\n\t\t\t\t\t}\n\t\t\t\t\tif(i == 7 && tag.getString(\"mob\").equals(\"skeleton\"))\n\t\t\t\t\t{\n\t\t\t\t\t\t++skeleton;\n\t\t\t\t\t}\n\t\t\t\t\t \n\t\t\t\t}\n\t\t\t}\n\t\t\tif(item != null && item.getItem() == Itemsss.deathIngot)\n\t\t\t{\n\t\t\t\tif(i ==0)\n\t\t\t\t{\n\t\t\t\t\t++deathingot;\n\t\t\t\t}\n\t\t\t\tif(i ==1)\n\t\t\t\t{\n\t\t\t\t\t++deathingot1;\n\t\t\t\t}\n\t\t\t\tif(i ==2 )\n\t\t\t\t{\n\t\t\t\t\t++deathingot2;\n\t\t\t\t}\n\t\t\t\tif(i ==4)\n\t\t\t\t{\n\t\t\t\t\t++deathingot3;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tif(item != null && item.getItem() == Itemsss.netherStarPlate)\n\t\t\t{\n\t\t\t\tif(i == 6)\n\t\t\t\t{\n\t\t\t\t\t++netherstar;\n\t\t\t\t}\n\t\t\t\tif(i == 8)\n\t\t\t\t{\n\t\t\t\t\t++netherstar1;\n\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\tif(zombie == 1 && skeleton == 1 && creeper == 1 && deathingot == 1 && netherstar == 1&& netherstar1 == 1 && deathingot1 == 1\n\t \t&& deathingot2 == 1 && deathingot3 == 1)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse return false;\n\t\t\n\t\t\n\t}", "public InteractiveEntity(ArrayList<Item> items) {\n\t\tsuper();\n\t\tthis.inventory.addAll(items);\n\t}", "@Override\n\tpublic int getSizeInventory() {\n\t\treturn inputInventory.length + outputInventory.length ;\n\t}", "public void dropEntireInventory(World world, BlockPos pos, int id, int metadata) {\n int x = pos.getX();\n int y = pos.getY();\n int z = pos.getZ();\n TileEntity tileEntity = world.getTileEntity(pos);\n if (tileEntity != null && tileEntity instanceof IInventory) {\n IInventory inventory = (IInventory) tileEntity;\n for (int i = 0; i < inventory.getSizeInventory(); ++i) {\n ItemStack stack = inventory.getStackInSlot(i);\n if (stack != null) {\n Random random = new Random();\n float sx = random.nextFloat() * 0.8F + 0.1F;\n float sy = random.nextFloat() * 0.8F + 0.1F;\n float sz = random.nextFloat() * 0.8F + 0.1F;\n while (stack.stackSize > 0) {\n int qty = random.nextInt(21) + 10;\n if (qty > stack.stackSize) {\n qty = stack.stackSize;\n }\n stack.stackSize -= qty;\n EntityItem eitem = new EntityItem(world, x + sx, y + sy, z + sz, new ItemStack(stack.getItem(), qty, stack.getItemDamage()));\n if (stack.hasTagCompound()) {\n eitem.getEntityItem().setTagCompound((NBTTagCompound) stack.getTagCompound().copy());\n }\n float displacement = 0.05F;\n eitem.motionX = (float) random.nextGaussian() * displacement;\n eitem.motionY = (float) random.nextGaussian() * displacement + 0.2F;\n eitem.motionZ = (float) random.nextGaussian() * displacement;\n world.spawnEntityInWorld(eitem);\n }\n }\n }\n }\n }", "private void addRoomItems(int itemsToAdd)\n {\n\n // Adds up to 3 random items to a random room .\n if (!(itemsToAdd == 0)){\n\n for(int j = 0; j < itemsToAdd; j++){\n Item chooseItem = chooseValidItem(); \n Room chooseRoom = rooms.get(random.nextInt(rooms.size()));\n\n chooseRoom.getInventory().getItems().add(chooseItem);\n System.out.println(chooseRoom.getName()+\": \"+chooseItem.getName());\n\n }\n }\n }", "public void getSubItems(Item itemIn, CreativeTabs tab, List<ItemStack> subItems) {\n/* 62 */ subItems.add(new ItemStack(itemIn, 1, 0));\n/* 63 */ subItems.add(new ItemStack(itemIn, 1, 1));\n/* */ }", "@Override\n\tpublic void addNewinventory(Inventory newinventory) {\n\t\tinventoryDao.save(newinventory);\n\t}", "public interface IInventoryComposite extends Iterable<IInventoryAdapter> {\n\n @Override\n default Iterator<IInventoryAdapter> iterator() {\n if (this instanceof IInventoryAdapter)\n return Iterators.singletonIterator((IInventoryAdapter) this);\n return Collections.emptyIterator();\n }\n\n default int slotCount() {\n return stream().mapToInt(IInventoryAdapter::getNumSlots).sum();\n }\n\n default boolean hasItems() {\n return streamStacks().findAny().isPresent();\n }\n\n default boolean hasNoItems() {\n return !hasItems();\n }\n\n default boolean isFull() {\n return streamSlots().allMatch(IInvSlot::hasStack);\n }\n\n default boolean hasEmptySlot() {\n return !isFull();\n }\n\n /**\n * Counts the number of items.\n *\n * @return the number of items in the inventory\n */\n default int countItems() {\n return countItems(StandardStackFilters.ALL);\n }\n\n /**\n * Counts the number of items that match the filter.\n *\n * @param filter the Predicate to match against\n * @return the number of items in the inventory\n */\n default int countItems(Predicate<ItemStack> filter) {\n return streamStacks().filter(filter).mapToInt(InvTools::sizeOf).sum();\n }\n\n /**\n * Counts the number of items that match the filter.\n *\n * @param filters the items to match against\n * @return the number of items in the inventory\n */\n default int countItems(ItemStack... filters) {\n return countItems(StackFilters.anyOf(filters));\n }\n\n default int countStacks() {\n return countStacks(StandardStackFilters.ALL);\n }\n\n default int countStacks(Predicate<ItemStack> filter) {\n return (int) streamStacks().filter(filter).count();\n }\n\n /**\n * Returns true if the inventory contains any of the specified items.\n *\n * @param items The ItemStack to look for\n * @return true is exists\n */\n default boolean contains(ItemStack... items) {\n return contains(StackFilters.anyOf(items));\n\n }\n\n /**\n * Returns true if the inventory contains the specified item.\n *\n * @param filter The ItemStack to look for\n * @return true is exists\n */\n default boolean contains(Predicate<ItemStack> filter) {\n return streamStacks().anyMatch(filter);\n }\n\n default boolean numItemsMoreThan(int amount) {\n int count = 0;\n for (IInventoryAdapter inventoryObject : this) {\n for (IInvSlot slot : InventoryIterator.get(inventoryObject)) {\n ItemStack stack = slot.getStack();\n if (!InvTools.isEmpty(stack))\n count += InvTools.sizeOf(stack);\n if (count >= amount)\n return true;\n }\n }\n return false;\n }\n\n default int countMaxItemStackSize() {\n return streamStacks().mapToInt(ItemStack::getMaxStackSize).sum();\n }\n\n /**\n * Checks if there is room for the ItemStack in the inventory.\n *\n * @param stack The ItemStack\n * @return true if room for stack\n */\n default boolean canFit(ItemStack stack) {\n return !InvTools.isEmpty(stack) && stream().anyMatch(inv -> {\n InventoryManipulator im = InventoryManipulator.get(inv);\n return im.canAddStack(stack);\n });\n }\n\n /**\n * Returns a single item from the inventory that matches the\n * filter, but does not remove it.\n *\n * @param filter the filter to match against\n * @return An ItemStack\n */\n default ItemStack findOne(Predicate<ItemStack> filter) {\n for (IInventoryAdapter inventoryObject : this) {\n InventoryManipulator im = InventoryManipulator.get(inventoryObject);\n ItemStack removed = im.tryRemoveItem(filter);\n if (!InvTools.isEmpty(removed))\n return removed;\n }\n return InvTools.emptyStack();\n }\n\n /**\n * Returns all items from the inventory that match the\n * filter, but does not remove them.\n * The resulting set will be populated with a single instance of each item type.\n *\n * @param filter EnumItemType to match against\n * @return A Set of ItemStacks\n */\n default Set<StackKey> findAll(Predicate<ItemStack> filter) {\n Set<StackKey> items = new HashSet<>();\n for (IInventoryAdapter inventoryObject : this) {\n for (IInvSlot slot : InventoryIterator.get(inventoryObject)) {\n ItemStack stack = slot.getStack();\n if (!InvTools.isEmpty(stack) && filter.test(stack)) {\n stack = stack.copy();\n InvTools.setSize(stack, 1);\n items.add(StackKey.make(stack));\n }\n }\n }\n return items;\n }\n\n /**\n * Attempts to move a single item from one inventory to another.\n *\n * @param dest the destination inventory\n * @return null if nothing was moved, the stack moved otherwise\n */\n default ItemStack moveOneItemTo(IInventoryComposite dest) {\n return moveOneItemTo(dest, Predicates.alwaysTrue());\n }\n\n /**\n * Attempts to move a single item from one inventory to another.\n *\n * @param dest the destination inventory\n * @param filter Predicate to match against\n * @return null if nothing was moved, the stack moved otherwise\n */\n default ItemStack moveOneItemTo(IInventoryComposite dest, Predicate<ItemStack> filter) {\n for (IInventoryAdapter src : this) {\n for (IInventoryAdapter dst : dest) {\n InventoryManipulator imSource = InventoryManipulator.get(src);\n ItemStack moved = imSource.moveItem(dst, filter);\n if (!InvTools.isEmpty(moved))\n return moved;\n }\n }\n return InvTools.emptyStack();\n }\n\n /**\n * Removes a specified number of items matching the filter, but only if the\n * operation can be completed. If the function returns false, the inventory\n * will not be modified.\n *\n * @param amount the amount of items to remove\n * @param filter the filter to match against\n * @return true if there are enough items that can be removed, false\n * otherwise.\n */\n default boolean removeItemsAbsolute(int amount, ItemStack... filter) {\n return removeItemsAbsolute(amount, StackFilters.anyOf(filter));\n }\n\n /**\n * Removes a specified number of items matching the filter, but only if the\n * operation can be completed. If the function returns false, the inventory\n * will not be modified.\n *\n * @param amount the amount of items to remove\n * @param filter the filter to match against\n * @return true if there are enough items that can be removed, false\n * otherwise.\n */\n default boolean removeItemsAbsolute(int amount, Predicate<ItemStack> filter) {\n for (IInventoryAdapter inventoryObject : this) {\n InventoryManipulator im = InventoryManipulator.get(inventoryObject);\n if (im.canRemoveItems(filter, amount)) {\n im.removeItems(filter, amount);\n return true;\n }\n }\n return false;\n }\n\n /**\n * Removes and returns a single item from the inventory.\n *\n * @return An ItemStack\n */\n default ItemStack removeOneItem() {\n return removeOneItem(StandardStackFilters.ALL);\n }\n\n /**\n * Removes and returns a single item from the inventory that matches the\n * filter.\n *\n * @param filter the filter to match against\n * @return An ItemStack\n */\n default ItemStack removeOneItem(ItemStack... filter) {\n return removeOneItem(StackFilters.anyOf(filter));\n }\n\n /**\n * Removes and returns a single item from the inventory that matches the\n * filter.\n *\n * @param filter the filter to match against\n * @return An ItemStack\n */\n default ItemStack removeOneItem(Predicate<ItemStack> filter) {\n for (IInventoryAdapter inventoryObject : this) {\n InventoryManipulator im = InventoryManipulator.get(inventoryObject);\n ItemStack stack = im.removeItem(filter);\n if (!InvTools.isEmpty(stack))\n return stack;\n }\n return InvTools.emptyStack();\n }\n\n /**\n * Places an ItemStack in a destination Inventory. Will attempt to move as\n * much of the stack as possible, returning any remainder.\n *\n * @param stack The ItemStack to put in the inventory.\n * @return Null if itemStack was completely moved, a new itemStack with\n * remaining stackSize if part or none of the stack was moved.\n */\n default ItemStack addStack(ItemStack stack) {\n for (IInventoryAdapter inv : this) {\n InventoryManipulator im = InventoryManipulator.get(inv);\n stack = im.addStack(stack);\n if (InvTools.isEmpty(stack))\n return InvTools.emptyStack();\n }\n return stack;\n }\n\n /**\n * Checks if inventory will accept the ItemStack.\n *\n * @param stack The ItemStack\n * @return true if room for stack\n */\n default boolean willAccept(ItemStack stack) {\n if (InvTools.isEmpty(stack))\n return false;\n ItemStack newStack = InvTools.copyOne(stack);\n return streamSlots().anyMatch(slot -> slot.canPutStackInSlot(newStack));\n }\n\n /**\n * Checks if inventory will accept any item from the list.\n *\n * @param stacks The ItemStacks\n * @return true if room for stack\n */\n default boolean willAcceptAny(List<ItemStack> stacks) {\n return stacks.stream().anyMatch(this::willAccept);\n }\n\n default Stream<IInventoryAdapter> stream() {\n return StreamSupport.stream(spliterator(), false);\n }\n\n default Stream<? extends IInvSlot> streamSlots() {\n return stream().flatMap(inv -> InventoryIterator.get(inv).stream());\n }\n\n default Stream<ItemStack> streamStacks() {\n return stream().flatMap(inv -> InventoryIterator.get(inv).streamStacks());\n }\n\n /**\n * @see Container#calcRedstoneFromInventory(IInventory)\n */\n default int calcRedstone() {\n double average = streamSlots()\n .filter(IInvSlot::hasStack)\n .mapToDouble(slot -> {\n ItemStack stack = slot.getStack();\n return (double) InvTools.sizeOf(stack) / (double) Math.min(stack.getMaxStackSize(), slot.maxStackSize());\n }).sum();\n\n average = average / (double) slotCount();\n return MathHelper.floor(average * 14.0F) + (hasNoItems() ? 0 : 1);\n }\n}", "public void addRecipes(CraftingManager par1CraftingManager) {\r\n\t\tpar1CraftingManager.addRecipe(new ItemStack(Block.chest), new Object[] {\r\n\t\t\t\t\"###\", \"# #\", \"###\", '#', Block.planks });\r\n\t\tpar1CraftingManager.addRecipe(new ItemStack(Block.stoneOvenIdle),\r\n\t\t\t\tnew Object[] { \"###\", \"# #\", \"###\", '#', Block.cobblestone });\r\n\t\tpar1CraftingManager.addRecipe(new ItemStack(Block.workbench),\r\n\t\t\t\tnew Object[] { \"##\", \"##\", '#', Block.planks });\r\n\t\tpar1CraftingManager.addRecipe(new ItemStack(Block.sandStone),\r\n\t\t\t\tnew Object[] { \"##\", \"##\", '#', Block.sand });\r\n\t\tpar1CraftingManager.addRecipe(new ItemStack(Block.sandStone, 4, 2),\r\n\t\t\t\tnew Object[] { \"##\", \"##\", '#', Block.sandStone });\r\n\t\tpar1CraftingManager.addRecipe(new ItemStack(Block.sandStone, 1, 1),\r\n\t\t\t\tnew Object[] { \"#\", \"#\", '#',\r\n\t\t\t\t\t\tnew ItemStack(Block.stairSingle, 1, 1) });\r\n\t\tpar1CraftingManager.addRecipe(new ItemStack(Block.stoneBrick, 4),\r\n\t\t\t\tnew Object[] { \"##\", \"##\", '#', Block.stone });\r\n\t\tpar1CraftingManager.addRecipe(new ItemStack(Block.fenceIron, 16),\r\n\t\t\t\tnew Object[] { \"###\", \"###\", '#', Item.ingotIron });\r\n\t\tpar1CraftingManager.addRecipe(new ItemStack(Block.thinGlass, 16),\r\n\t\t\t\tnew Object[] { \"###\", \"###\", '#', Block.glass });\r\n\t\tpar1CraftingManager.addRecipe(new ItemStack(Block.redstoneLampIdle, 1),\r\n\t\t\t\tnew Object[] { \" R \", \"RGR\", \" R \", 'R', Item.redstone, 'G',\r\n\t\t\t\t\t\tBlock.glowStone });\r\n\t}", "public List<ItemStack> getItems()\n {\n return items;\n }", "public List<ItemStack> getItems() {\n return this.items;\n }", "public void addItem(Item i) {\n this.items.add(i);\n }", "public void handleCrafting() {\n if(input.getStackInSlot(0).getItem() != input.getStackInSlot(1).getItem() && !input.getStackInSlot(0).isEmpty() && !input.getStackInSlot(1).isEmpty()) {\n isRecipeInvalid = true;\n }\n // Handles two compatible items\n else if(input.getStackInSlot(0).getMaxDamage() > 1 && input.getStackInSlot(0).getMaxStackSize() == 1 && input.getStackInSlot(0).getItem() == input.getStackInSlot(1).getItem()) {\n isRecipeInvalid = false;\n ItemStack stack = input.getStackInSlot(0);\n int sum = (stack.getMaxDamage() - stack.getItemDamage()) + (stack.getMaxDamage() - input.getStackInSlot(1).getItemDamage());\n\n sum = sum + (int)(sum * 0.2);\n if(sum > stack.getMaxDamage()) {\n sum = stack.getMaxDamage();\n }\n\n output.setStackInSlot(0, new ItemStack(stack.getItem(), 1, stack.getMaxDamage() - sum));\n }\n // Resets the grid when the two items are incompatible\n if(input.getStackInSlot(0).getItem() != input.getStackInSlot(1).getItem() && !output.getStackInSlot(0).isEmpty()) {\n output.setStackInSlot(0, ItemStack.EMPTY);\n }\n }", "@Override\n\tpublic void setItemStack(ItemStack stack) {\n\t}" ]
[ "0.7379468", "0.7327342", "0.71483153", "0.6876504", "0.6746857", "0.6610228", "0.6573243", "0.65376854", "0.6457602", "0.64259946", "0.6364118", "0.63570184", "0.6351067", "0.63237", "0.62797064", "0.6259208", "0.6231648", "0.62195253", "0.6203075", "0.6174735", "0.61712885", "0.6157993", "0.61444545", "0.61330485", "0.6115035", "0.61029947", "0.6086466", "0.6081014", "0.6066512", "0.6063121", "0.60594517", "0.60587513", "0.60541886", "0.6041249", "0.5995459", "0.59894663", "0.5979068", "0.59739274", "0.5964902", "0.5958084", "0.5945767", "0.59408075", "0.5935077", "0.59245193", "0.5923403", "0.5900395", "0.58975", "0.5896334", "0.5870259", "0.58541584", "0.5847523", "0.58379894", "0.5834699", "0.5832851", "0.5821859", "0.5819054", "0.5814869", "0.5809402", "0.5798887", "0.57894456", "0.5781503", "0.5757396", "0.57536966", "0.57516825", "0.575026", "0.575021", "0.5749519", "0.5737368", "0.5716479", "0.5713768", "0.5696655", "0.5690289", "0.566858", "0.5654286", "0.5643736", "0.56420225", "0.5638967", "0.56370485", "0.56360614", "0.56339115", "0.5630336", "0.56149817", "0.55964947", "0.5591303", "0.5588918", "0.5584485", "0.5553459", "0.55482346", "0.55467075", "0.55434245", "0.55422044", "0.5536714", "0.55365866", "0.55352354", "0.5534128", "0.55290043", "0.5528564", "0.552439", "0.55235785", "0.5514596" ]
0.64940095
8
Adds one ItemStack to the inventory
public int addItemStack(ItemStack itemStack) { Item item = itemStack.getItem(); int amount = itemStack.getAmount(); int added = 0; List<ItemStack> itemStacksToRemove = new ArrayList<>(); for (ItemStack itemStack1 : this.ITEMS) { if (itemStack1.getItem() == item) { amount += itemStack1.getAmount(); itemStacksToRemove.add(itemStack1); } } // clear inventory for (ItemStack itemStack1 : itemStacksToRemove) this.ITEMS.remove(itemStack1); System.out.println(String.format("Total amount of %s: %d", item.getName(), amount)); int stack_size = item.getMaxStack(); int stacks = amount / stack_size; int last_stack = amount % stack_size; System.out.println(String.format("Stack size: %d, full stacks: %s, last stack: %d, inv size: %d, inv full: %d", stack_size, stacks, last_stack, this.getSize(), this.ITEMS.size())); // add full stacks for (int i = 0; i < stacks; i++) { if (this.ITEMS.size() > this.getSize()) break; System.out.println("Added full stack"); this.ITEMS.add(new ItemStack(item, stack_size)); added += stack_size; } // add last (not full) stack if (last_stack != 0 && this.ITEMS.size() < this.getSize()) { System.out.println("Added partial stack"); this.ITEMS.add(new ItemStack(item, last_stack)); added += last_stack; } for (InventoryChangedEvent listener : listeners) listener.onInventoryChanged(this); return added; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addItemStack(Item itemStack) {\n\t\tint findStackable = findStackableItem(itemStack);\r\n\t\tif(findStackable!=-1){\r\n\t\t\tItem heldStack=tileItems.getItem(findStackable);\r\n\t\t\twhile(!heldStack.stackFull()&&\t//as long as the current stack isn't full and the stack we're picking up isn't empty\r\n\t\t\t\t!itemStack.stackEmpty()){\r\n\t\t\t\theldStack.incrementStack();\r\n\t\t\t\titemStack.decrementStack(tileItems);\r\n\t\t\t\tif(itemStack.stackEmpty())\t//will this cause an error since the item is removed by the inventory?\r\n\t\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\taddItemStack(itemStack);\r\n\t\t}\r\n\t\telse\r\n\t\t\taddFullStack(itemStack);\r\n\t}", "private void addToInventory(Item item) {\n inventory.put(item.getName(), item);\n }", "public void addItem(String i) {\n\t\tItem item = Item.getItem(ItemList, i);\n\t Inventory.add(item);\n\t inventoryList.getItems().add(i);\n\n\t}", "default ItemStack addStack(ItemStack stack) {\n for (IInventoryAdapter inv : this) {\n InventoryManipulator im = InventoryManipulator.get(inv);\n stack = im.addStack(stack);\n if (InvTools.isEmpty(stack))\n return InvTools.emptyStack();\n }\n return stack;\n }", "public void addProduct(Product item){\n inventory.add(item);\n }", "boolean addSteam(ItemStack me, int amount, EntityPlayer player);", "public int addItem(String name, int value) {\n\t\tfor (int i = 0; i < inventoryslot.length; i++) {\n\t\t\tif (inventoryslot[i].getItemname()==name) {\n\t\t\t\ttempstate=inventoryslot[i].changevalue(value);\n\t\t\t\tif(tempstate>0)return tempstate;/**Item over stacksize */\n\t\t\t\telse if(tempstate<0)return tempstate;/** Item empty*/\n\t\t\t\treturn tempstate;/** item added inventory */\n\t\t\t}\t\t\t\t\n\t\t}\n\t\treturn -1;/** item does not exists in inventory */\n\t}", "public static void addItem(Inventory inv, String itemName, Material materialName, Integer index) {\r\n ItemStack is = new ItemStack(materialName);\r\n ItemMeta meta = is.getItemMeta();\r\n meta.setDisplayName(itemName);\r\n is.setItemMeta(meta);\r\n inv.setItem(index, is);\r\n }", "public void addItemToInventory(Item ... items){\n this.inventory.addItems(items);\n }", "void addElementToInventory(String elementName);", "public void addToInventory() {\r\n\t\tdo {\r\n\t\t\tint quantity = 0;\r\n\t\t\tString brand = getToken(\"Enter washer brand: \");\r\n\t\t\tString model = getToken(\"Enter washer model: \");\r\n\t\t\tWasher washer = store.searchWashers(brand + model);\r\n\t\t\tif (washer == null) {\r\n\t\t\t\tSystem.out.println(\"No such washer exists.\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tquantity = getInteger(\"Enter quantity to add: \");\r\n\t\t\tboolean result = store.addWasherToInventory(brand, model, quantity);\r\n\t\t\tif(result) {\r\n\t\t\t\tSystem.out.println(\"Added \" + quantity + \" of \" + washer);\r\n\t\t\t}else {\r\n\t\t\t\tSystem.out.println(\"Washer could not be added to inventory.\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} while (yesOrNo(\"Add more washers to the inventory?\"));\r\n\t}", "public void addIngredient(Ingredient ingredient) {\n stock.put(ingredient, inventoryMax);\n }", "public void addItemInventory(Item item){\r\n playerItem.add(item);\r\n System.out.println(item.getDescription() + \" was taken \");\r\n }", "public void addToInventory(IWeapon weapon){\n if (weaponsInventory.size() < 12) {\n this.weaponsInventory.add(weapon);\n lenInventory += 1;\n }\n }", "public void addItem(Item itemToAdd){\n\t\tif(!isFull()){\n\t\t\tint index = findFreeSlot();\n\t\t\tinventoryItems[index] = itemToAdd;\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Inventory full.\");\n\t\t}\n\t\t\n\t}", "@Nullable\n ItemStack onInsert(ItemStack container);", "@Override\n public IRecipe addRecipe() {\n return RecipeRegistry.addShapedRecipe(new ItemStack(this),\n \"igi\",\n \"gog\",\n \"igi\",\n 'o', \"obsidian\", 'i', \"ingotIron\", 'g', \"blockGlass\");\n }", "public void add(Inventory toAdd) throws DuplicateInventoryException {\n requireNonNull(toAdd);\n if (contains(toAdd)) {\n throw new DuplicateInventoryException();\n }\n\n list.add(toAdd);\n }", "@Override\n\tpublic boolean addItem(ItemStack item, Player player) {\n\t\tif (!canAddItem(item, player)) {\n\t\t\treturn false;\n\t\t}\n\t\tif (item == null) {\n\t\t\treturn true;\n\t\t}\n\t\t//Backup contents\n\t\tItemStack[] backup = getContents().clone();\n\t\tItemStack backupItem = new ItemStack(item.getTypeId(), item.getAmount(), item.getDurability());\n\t\t\n\t\tint max = MinecartManiaWorld.getMaxStackSize(item);\n\t\t\n\t\t//First attempt to merge the itemstack with existing item stacks that aren't full (< 64)\n\t\tfor (int i = 0; i < size(); i++) {\n\t\t\tif (getItem(i) != null) {\n\t\t\t\tif (getItem(i).getTypeId() == item.getTypeId() && getItem(i).getDurability() == item.getDurability()) {\n\t\t\t\t\tif (getItem(i).getAmount() + item.getAmount() <= max) {\n\t\t\t\t\t\tsetItem(i, new ItemStack(item.getTypeId(), getItem(i).getAmount() + item.getAmount(), item.getDurability()));\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tint diff = getItem(i).getAmount() + item.getAmount() - max;\n\t\t\t\t\t\tsetItem(i, new ItemStack(item.getTypeId(), max, item.getDurability()));\n\t\t\t\t\t\titem = new ItemStack(item.getTypeId(), diff, item.getDurability());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Attempt to add the item to an empty slot\n\t\tint emptySlot = firstEmpty();\n\t\tif (emptySlot > -1) {\n\t\t\tsetItem(emptySlot, item);\n\t\t\tupdate();\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t\n\t\t//Try to merge the itemstack with the neighbor chest, if we have one\n\t\tMinecartManiaChest neighbor = getNeighborChest();\n\t\tif (neighbor != null) {\n\t\t\t//flag to prevent infinite recursion\n\t\t\tif (getDataValue(\"neighbor\") == null) {\n\t\t\t\tneighbor.setDataValue(\"neighbor\", Boolean.TRUE);\n\t\t\t\tif (getNeighborChest().addItem(item)) {\n\t\t\t\t\tupdate();\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//reset flag\n\t\t\t\tsetDataValue(\"neighbor\", null);\n\t\t\t}\n\t\t}\n\t\t\t\n\t\t//if we fail, reset the inventory and item back to previous values\n\t\tgetChest().getInventory().setContents(backup);\n\t\titem = backupItem;\n\t\treturn false;\n\t}", "ItemStack make();", "public void add() {\n\t\tcart.add(item.createCopy());\n\t}", "public PageInventory addItem(ItemStack item)\n {\n this.contents.add(item);\n this.recalculate();\n return this;\n }", "ItemStack createItemStack(CompoundTag tag);", "public void addItem(Item item)\n\t{\n\t\tif(inventory.size()<=9)\n\t\t\tinventory.add(item);\n\t\telse\n\t\t\tSystem.out.println(\"Inventory is full.\");\n\t}", "public void addItemInventory(Item item){\n playerItem.add(item);\n System.out.println(item.getDescription() + \" was taken \");\n System.out.println(item.getDescription() + \" was removed from the room\"); // add extra information to inform user that the item has been taken\n }", "public boolean addNewInventory() {\n if (characterVM.addNewInventory(inventoryEntityToRetrieve.peek())) {\n removeTopRewardAndContinue();\n return true;\n }\n return false;\n }", "@Override\n public void onReceiveItem(InventoryItem itemReceived) {\n inventory.add(itemReceived);\n }", "public void registerRecipe() {\n\t ItemStack itemStackDroidParts = new ItemStack(SuperDopeJediMod.entityManager.droidParts);\n\t ItemStack itemStackQuadaniumSteelIngot = new ItemStack(SuperDopeJediMod.quadaniumSteelIngot); \n\t ItemStack itemStackThis = new ItemStack(this);\n\t \n\t GameRegistry.addRecipe(itemStackThis, \"xxx\", \"xyx\", \"xxx\", 'x', itemStackDroidParts,\n\t \t\t\t'y', itemStackQuadaniumSteelIngot);\t\n\t}", "public static ItemStack createItemStack()\r\n \t{\r\n \t\treturn new ItemStack(0);\r\n \t}", "public Inventory<T> add(final T item) {\n if (item == null) {\n return this;\n }\n final HashMap<T, Integer> freshMap = new HashMap<>(items);\n freshMap.put(item, items.get(item) + 1);\n return new Inventory<T>(enums, Collections.unmodifiableMap(freshMap));\n }", "@Test\n\tpublic void testAddInventory() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"4\",\"7\",\"0\",\"9\");\n\t}", "public static void addItemToInventory(final Inventory inventory, final ItemStack item) throws InvalidParameterException, FailedTransactionException {\n if (!isValidInventory(inventory)) {\n throw new InvalidParameterException(\"Cannot add item from an invalid inventory.\");\n }\n if (!ItemAPI.isValidItem(item)) {\n throw new InvalidParameterException(\"Cannot add an invalid item from an inventory.\");\n }\n ItemStack[] savedInventory = duplicateInventory(inventory.getContents());\n Map<Integer, ItemStack> remaining = inventory.addItem(item);\n if (!remaining.isEmpty()) {\n // Restore the inventory to its previous state\n inventory.setContents(savedInventory);\n throw new FailedTransactionException(\"Was unable to put that item in that inventory.\");\n }\n }", "public InventoryItem addInventoryItem(int charId, String name, String desc) {\n\t\tSQLiteDatabase database = getWritableDatabase();\n\n\t\tContentValues gamevals = new ContentValues();\n\t\tgamevals.put(\"name\", name);\n\t\tgamevals.put(\"description\", desc);\n\t\tgamevals.put(\"character_id\", charId);\n\n\t\tlong rowid = database.insert(\"inventory_item\", null, gamevals);\n\n\t\tString[] args = new String[] { \"\" + rowid };\n\t\tCursor c = database.rawQuery(\n\t\t\t\t\"SELECT * FROM inventory_item WHERE inventory_item.ROWID =?\",\n\t\t\t\targs);\n\t\tc.moveToFirst();\n\n\t\treturn new InventoryItem(\n\t\t\t\tc.getInt(c.getColumnIndex(\"_id\")), c.getString(c\n\t\t\t\t\t\t.getColumnIndex(\"name\")), c.getString(c\n\t\t\t\t\t\t.getColumnIndex(\"description\")));\n\t}", "public void createItemInInventory(Item newItem) {\n\t\tinventory.createItem(newItem);\n\t}", "public void addInventory(String key, Integer value) {\n int currentValue = inventoryMap.getOrDefault(key, 0);\n inventoryMap.put(key, currentValue + value);\n }", "public void setItemStack(ItemStack stack) {\n item = stack.clone();\n }", "public void addItem(Item item, int x, int y) {\n\t\tInventory items = getItemsAt(x, y);\n\t\titems.add(item);\n\t}", "public void moveItemStackTo(ItemStack itemStack, Inventory inventory) {\n int itemsAdded = inventory.addItemStack(itemStack);\n\n this.removeItemStack(new ItemStack(itemStack.getItem(), itemsAdded));\n }", "public boolean addItem( GameItem gameItem , boolean stack )\n {\n int slot = -1;\n for( int i = 0 ; i < size ; i++ ) {\n GameItem item = items[ i ];\n if( stack ) {\n if( item != null ) {\n if( item.getId() == gameItem.getId() ) {\n item.add( gameItem.getAmount() );\n return true;\n }\n } else {\n if( slot == -1 ) {\n slot = i;\n }\n }\n } else {\n if( item == null ) {\n items[ i ] = gameItem;\n return true;\n }\n }\n }\n \n if( slot != -1 ) {\n items[ slot ] = gameItem;\n return true;\n }\n \n return false;\n }", "@Override\r\n public ItemStack getItemStack(PartItemStack type) {\n return new ItemStack(this.item);\r\n }", "public static ItemIngredient of(ItemStack input) {\n\t\treturn new ItemStackIngredient(input);\n\t}", "public Inventory<T> add(final Inventory<T> inventory) {\n if (inventory == null) {\n return this;\n }\n final HashMap<T, Integer> freshMap = new HashMap<>();\n for (T t : enums) {\n freshMap.put(t, inventory.quantity(t) + items.get(t));\n }\n return new Inventory<T>(enums, Collections.unmodifiableMap(freshMap));\n }", "public void writeInventoryToNBT(CompoundNBT tag) {\n IInventory inventory = this;\n ListNBT nbttaglist = new ListNBT();\n\n for (int i = 0; i < inventory.getSizeInventory(); i++) {\n if (!inventory.getStackInSlot(i).isEmpty()) {\n CompoundNBT itemTag = new CompoundNBT();\n itemTag.putByte(TAG_SLOT, (byte) i);\n inventory.getStackInSlot(i).write(itemTag);\n nbttaglist.add(itemTag);\n }\n }\n\n tag.put(TAG_ITEMS, nbttaglist);\n }", "public void push(Item item){\n this.stack.add(item);\n\n }", "public void moveTo(Inventory inventory) {\n for (ItemStack itemStack : this.getItemStacks()) {\n int added = inventory.addItemStack(itemStack);\n this.ITEMS.get(this.getItemStack(itemStack)).addAmount(-added);\n }\n }", "public ItemStack createItem(ItemType type, int damage,List<Text> lore);", "@Override\n public boolean canInsertItem(int index, ItemStack itemStackIn, EnumFacing direction) {\n return true;\n }", "public void softAddItem(ItemStack item, Player player){\n\t\tHashMap<Integer,ItemStack> excess = player.getInventory().addItem(item);\n\t\tfor( Map.Entry<Integer, ItemStack> me : excess.entrySet() ){\n\t\t\tplayer.getWorld().dropItem(player.getLocation(), me.getValue() );\n\t\t}\n\t}", "public final void give(final Player player) {\n\t\tplayer.getInventory().addItem(this.getItem());\n\t}", "public void addItemtoInventoryList(String item) {\r\n InventoryList.add(item);\r\n }", "public void push (E item){\n this.stack.add(item);\n }", "@SubscribeEvent\n public static void registerItem(final RegistryEvent.Register<Item> event){\n Item.Properties properties = new Item.Properties().maxStackSize(1).group(ItemGroup.MISC);\n walletBlockItem = new BlockItem(walletBlock, properties);\n walletBlockItem.setRegistryName(walletBlock.getRegistryName());\n event.getRegistry().register(walletBlockItem);\n }", "public static void addItem(BackpackItem itemName) {\n\t\t\t\n\t\t\tfor (int i = 0; i <= backpackArr.length-1; i++) { //iterate through backpackArr\n\t\t\t\t\n\t\t\t\tif (backpackArr[i] == null) { // If there is no item in slot\n\t\t\t\t\tSystem.out.println(\"You added the \" + itemName + \" to your backpack.\");\n\t\t\t\t\tbackpackArr[i] = itemName; // puts new item into next empty BackpackItem index in backpackArr\n\t\t\t\t\tbreak; // breaks out of for loop (to prevent filling up all slots with the same item\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void addItem(Item item) {\r\n for (Item i : inventoryItems) {\r\n if (i.getId() == item.getId()) {\r\n i.setCount(i.getCount() + item.getCount());\r\n return;\r\n }\r\n }\r\n inventoryItems.add(item);\r\n }", "protected void addInventoryItemType() {\n\t\tProperties props = new Properties();\n\n\t\t/* DEBUG\n\t\t\n\t\tSystem.out.println(typeNameTF.getText());\n\t\tSystem.out.println(unitsTF.getText());\n\t\tSystem.out.println(unitMeasureTF.getText());\n\t\tSystem.out.println(validityDaysTF.getText());\n\t\tSystem.out.println(reorderPointTF.getText());\n\t\tSystem.out.println(notesTF.getText());\n\t\tSystem.out.println(statusCB.getValue());\n\t\n\t\t*/ \n\n\t\t// Set the values.\n\t\tprops.setProperty(\"ItemTypeName\", typeNameTF.getText());\n\t\tprops.setProperty(\"Units\", unitsTF.getText());\n\t\tprops.setProperty(\"UnitMeasure\", unitMeasureTF.getText());\n\t\tprops.setProperty(\"ValidityDays\", validityDaysTF.getText());\n\t\tprops.setProperty(\"ReorderPoint\", reorderPointTF.getText());\n\t\tprops.setProperty(\"Notes\", notesTF.getText());\n\t\tprops.setProperty(\"Status\", (String) statusCB.getValue());\n\n\t\t// Create the inventory item type.\n\t\tInventoryItemType iit = new InventoryItemType(props);\n\n\t\t// Save it into the database.\n\t\tiit.update();\n\n\t\tpopulateFields();\n\t\t\n\t\t// Display message on GUI.\n\t\t//submitBTN.setVisible(false);\n\t\tcancelBTN.setText(\"Back\");\n\t\tmessageLBL.setText(\"Inventory Item Type added.\");\n\t}", "public void equip(Equipment e){\n equipment.add(e);\n }", "@Override\n\tpublic void setItemStack(ItemStack stack) {\n\t}", "@Override\n\tpublic void addNewinventory(Inventory newinventory) {\n\t\tinventoryDao.save(newinventory);\n\t}", "@Override\r\n public boolean add(Item item){\r\n if(item.stackable&&contains(item)){\r\n stream().filter(i -> i.name.endsWith(item.name)).forEach(i -> {\r\n i.quantity += item.quantity;\r\n });\r\n }else if(capacity<=size()) return false;\r\n else super.add(item);\r\n return true;\r\n }", "@Override\n\tpublic void addRecipes() \n\t{\n GameRegistry.addRecipe(new ItemStack(this), \"xxx\", \"xyx\", \"xxx\",\t\t\t\t\t\t\n 'x', Items.fireworks, \n 'y', Items.string\n ); \n \n // Bundle of rockets back to 8 rockets\n GameRegistry.addShapelessRecipe(new ItemStack(Items.fireworks, 8), new ItemStack(this));\n\t}", "public static void addItem(Item item)\n {\n inventory.add(item);\n if(!(item.getRoomNumber() == -1 || item.getEventNumber() == -1))\n {\n Map.getRoom(item.getRoomNumber()).getEvent(item.getEventNumber()).enable();\n }\n }", "public void save() {\r\n\t\tGame.getInstance().getInventory().add(id);\r\n\t}", "@SuppressWarnings(\"deprecation\")\r\n\t@EventHandler\r\n\tpublic void inventoryClickEvent(InventoryClickEvent e) {\r\n\t\tEntity applier = e.getWhoClicked();\r\n\t\tif (!e.isCancelled()) {\r\n\t\t\tif (applier instanceof Player) {\r\n\t\t\t\tPlayer papplier = (Player) applier;\r\n\t\t\t\t// PlayerInventory pinventory = papplier.getInventory();\r\n\t\t\t\t// inven.put(papplier, pinventory);\r\n\t\t\t\tItemStack item = e.getCurrentItem();\r\n\t\t\t\tItemStack transmog = e.getCursor();\r\n\t\t\t\tString tname = \"\";\r\n\t\t\t\tif (item != null) {\r\n\t\t\t\t\tItemMeta itemMeta = item.getItemMeta();\r\n\t\t\t\t\tArrayList<String> lore1 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore2 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore3 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore4 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore5 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore6 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore7 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> totallore = new ArrayList<String>();\r\n\t\t\t\t\tif (item.getType() != Material.AIR) {\r\n\t\t\t\t\t\t// papplier.sendMessage(\"1\");\r\n\t\t\t\t\t\tif (transmog != null) {\r\n\t\t\t\t\t\t\t// papplier.sendMessage(\"2\");\r\n\t\t\t\t\t\t\tif (item.getType().name().endsWith(\"SWORD\") || item.getType().name().endsWith(\"AXE\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"HELMET\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"SHOVEL\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"CHESTPLATE\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"LEGGINGS\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"BOOTS\") || item.getType().name().endsWith(\"BOW\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"PICKAXE\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"HOE\")) {\r\n\t\t\t\t\t\t\t\t// papplier.sendMessage(\"3\");\r\n\t\t\t\t\t\t\t\tif (item.hasItemMeta()) {\r\n\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"4\");\r\n\t\t\t\t\t\t\t\t\tif (item.getItemMeta().hasLore()) {\r\n\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"5\");\r\n\t\t\t\t\t\t\t\t\t\tif (item.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"6\");\r\n\t\t\t\t\t\t\t\t\t\t\tif (Methods.transmogged(item) == true) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"7\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(Api.transint(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t// + \"\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tdname.put(item, item.getItemMeta().getDisplayName());\r\n\t\t\t\t\t\t\t\t\t\t\t\tI.put(papplier, Methods.transint(item));\r\n\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.put(item, true);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif (Methods.transmogged(item) == false) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"8\");\r\n\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.put(item, false);\r\n\t\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\tif (!item.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"9\");\r\n\t\t\t\t\t\t\t\t\t\t\ttransmogged.put(item, false);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"10\");\r\n\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) == false) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"11\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.hasItemMeta()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"12\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"13\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().getDisplayName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.color(\"&e&lTransmog\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"14\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String tlore : transmog.getItemMeta().getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"15\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tlore.contains(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&e&oPlace scroll on item to apply.\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"16\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (e.getClickedInventory() instanceof PlayerInventory) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"17\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (CE.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size() > 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMaterial material = item.getType();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemStack titem = new ItemStack(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmaterial, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemMeta titemMeta = titem\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemMeta();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() == null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchanted.put(titem, false);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = item.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<CEnchantments> enchantes = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<String> enchanters = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments encs : enchantes) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchanters.add(Methods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tencs.getCustomName()));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String ench : item.getItemMeta()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"29\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanters\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.removePower(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tench)))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"31\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments enchant : CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"19\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (ench.contains(enchant\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getCustomName())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString tier = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantmentCategory(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchant);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tier.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T1\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore1.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T2\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore2.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T3\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore3.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T4\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore4.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T5\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore5.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T6\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore6.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore7.add(ench);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore7);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore6);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore5);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore4);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore3);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore2);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint enchNumber = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (itemMeta.hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttname = item.getItemMeta()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDisplayName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" &d&l[&b&l&n\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ enchNumber + \"&d&l]\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!itemMeta.hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttname = \"&a\" + item.getType().name()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" &d&l[&b&l&n\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ enchNumber + \"&d&l]\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCancelled(true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setLore(totallore);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setDisplayName(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.color(tname));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.setItemMeta(titemMeta);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.addUnsafeEnchantments(enchants);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanted.get(titem) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanted.get(titem) == false) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.addGlow(titem);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCursor(null);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.removeItem(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory().addItem(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew ItemStack[] { titem });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i2 = 1; i2 <= 10; ++i2) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playEffect(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getEyeLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tEffect.SPELL, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playSound(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSound.LEVEL_UP, 1.0f, 1.0f);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = null;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (dname.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdname.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (I.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tI.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.getWhoClicked().sendMessage(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&6Swarm&eEnchants&f >> &cYou may only use Transmog scrolls in your own inventory!\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) == true) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"21\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tString dname1 = dname.get(item).replace(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.color(\"&d&l[&b&l&n\" + I.get(papplier) + \"&d&l]\"), \"\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.hasItemMeta()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"22\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"23\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().getDisplayName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.color(\"&e&lTransmog\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"24\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String tlore : transmog.getItemMeta().getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"25\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tlore.contains(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&e&oPlace scroll on item to apply.\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"26\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (e.getClickedInventory() instanceof PlayerInventory) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"27\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (CE.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size() > 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"28\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMaterial material = item.getType();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemStack titem = new ItemStack(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmaterial, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemMeta titemMeta = titem\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemMeta();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() == null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.addGlow(titem);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = item.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<CEnchantments> enchantes = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<String> enchanters = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments encs : enchantes) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchanters.add(Methods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tencs.getCustomName()));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String ench : item.getItemMeta()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"29\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanters\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.removePower(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tench)))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"31\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments enchant : CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"19\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (ench.contains(enchant\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getCustomName())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString tier = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantmentCategory(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchant);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tier.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T1\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore1.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T2\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore2.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T3\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore3.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T4\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore4.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T5\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore5.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T6\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore6.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore7.add(ench);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore7);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore6);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore5);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore4);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore3);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore2);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint enchNumber = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (itemMeta.hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttname = dname1 + \" &d&l[&b&l&n\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ enchNumber + \"&d&l]\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCancelled(true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setLore(totallore);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setDisplayName(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.color(tname));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.setItemMeta(titemMeta);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.addUnsafeEnchantments(enchants);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCursor(null);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.removeItem(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory().addItem(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew ItemStack[] { titem });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i2 = 1; i2 <= 10; ++i2) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playEffect(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getEyeLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tEffect.SPELL, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playSound(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSound.LEVEL_UP, 1.0f, 1.0f);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = null;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (dname.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdname.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (I.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tI.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.getWhoClicked().sendMessage(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&6Swarm&eEnchants&f >> &cYou may only use Transmog scrolls in your own inventory!\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\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}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void addItem(Item i) {\n this.items.add(i);\n }", "ItemStack setResult(final ItemStack result);", "public void addItem(Item newItem) {\n for (Item i : inventory) {\n if (newItem.getClass().equals(i.getClass())) {\n i.setQuantity(i.getQuantity() + newItem.getQuantity());\n return;\n }\n }\n inventory.add(newItem);\n }", "@Override\n\tpublic void setInventorySlotContents(int index, ItemStack stack) {\n\t\t\n\t}", "ItemStack getItem();", "@Override\n public boolean canAddToItem(@Nonnull ItemStack stack, @Nonnull IDarkSteelItem item) {\n return (item.isForSlot(EntityEquipmentSlot.FEET) || item.isForSlot(EntityEquipmentSlot.LEGS) || item.isForSlot(EntityEquipmentSlot.CHEST)\n || item.isForSlot(EntityEquipmentSlot.HEAD)) && EnergyUpgradeManager.itemHasAnyPowerUpgrade(stack) && getUpgradeVariantLevel(stack) == variant - 1;\n }", "public void spawnItemStack(ItemStack stack, Point3d point){\r\n\t\tworld.spawnEntity(new EntityItem(world, point.x, point.y, point.z, stack));\r\n\t}", "void add(Item item);", "public int addItemStacks(ItemStack... itemStacks) {\n int added = 0;\n // for all itemstacks to be added in the inventory\n for (ItemStack itemStack : itemStacks)\n added += this.addItemStack(itemStack);\n\n return added;\n }", "public void addItem(Product p, int qty){\n //store info as an InventoryItem and add to items array\n this.items.add(new InventoryItem(p, qty));\n }", "public ItemStack createItemStack(Biome biome, int amount) {\n ItemStack itemStack = new ItemStack(this, amount);\n if(biome != null) {\n CompoundNBT tag = new CompoundNBT();\n tag.putString(NBT_BIOMEKEY, biome.getRegistryName().toString());\n itemStack.setTag(tag);\n }\n return itemStack;\n }", "public ItemStack getItemStack(int index) {\n return this.ITEMS.get(index);\n }", "public void addItem(Item newItem){\n\t\tif(newItem!=null){\r\n\t\t\tif(newItem.stackable()){\r\n\t\t\t\taddItemStack(newItem);\r\n\t\t\t\tdisplayIcon();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\taddFullStack(newItem);\r\n\t\t\tdisplayIcon();\r\n\t\t}\r\n\t}", "@Override\n public void writeToNBT(NBTTagCompound nbt)\n {\n super.writeToNBT(nbt);\n nbt.setInteger(\"pokedexNb\", pokedexNb);\n nbt.setInteger(\"time\", time);\n NBTTagList itemList = new NBTTagList();\n\n for (int i = 0; i < inventory.length; i++)\n {\n ItemStack stack = inventory[i];\n\n if (stack != null)\n {\n NBTTagCompound tag = new NBTTagCompound();\n tag.setByte(\"Slot\", (byte) i);\n stack.writeToNBT(tag);\n itemList.appendTag(tag);\n }\n }\n nbt.setTag(\"Inventory\", itemList);\n }", "public void addIngredientQuantity(Ingredient ingredient, Integer addedValue){\n\t\tbeverageInventoryMap.put(ingredient, getInventoryForAIngredient(ingredient) + addedValue);\n\t}", "public void addItem(Item theItem) {\n\t\tif (inventory != null) {\n\t\t\tif (!isAuctionAtMaxCapacity()) {\n\t\t\t\t// Check item doesn't already exist as key in map\n\t\t\t\tif (inventory.containsKey(theItem)) {\n\t\t\t\t\t//ERROR CODE: ITEM ALREADY EXISTS\n\t\t\t\t\tSystem.out.println(\"That item already exists in the inventory.\");\n\t\t\t\t} else\n\t\t\t\t\tinventory.put(theItem, new ArrayList<Bid>());\n\t\t\t} else if (isAuctionAtMaxCapacity()) {\n\t\t\t\t//ERROR CODE: AUCTION AT MAX CAPACITY\n\t\t\t\tSystem.out.println(\"\\nYour auction is at maximum capacity\");\n\t\t\t} \n\t\t} else {\n\t\t\tinventory = new HashMap<Item, ArrayList<Bid>>();\n\t\t\tinventory.put(theItem, new ArrayList<Bid>());\t\t\t\t\n\t\t} \t\t\t\t\t\t\n\t}", "private void push( Card card ) {\r\n undoStack.add( card );\r\n }", "Optional<ItemStack> getItemStack();", "public boolean addPlayerItem(PlayerItem playerItem);", "@Override\r\n\tpublic ItemStack transferStackInSlot(EntityPlayer playerIn, int index)\r\n {\r\n ItemStack itemstack = ItemStackTools.getEmptyStack();\r\n Slot slot = this.inventorySlots.get(index);\r\n\r\n if (slot != null && slot.getHasStack())\r\n {\r\n ItemStack itemstack1 = slot.getStack();\r\n itemstack = itemstack1.copy();\r\n\r\n if (index == 0)\r\n {\r\n if (!this.mergeItemStack(itemstack1, 10, 46, false))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n\r\n slot.onSlotChange(itemstack1, itemstack);\r\n }\r\n else if (index >= 10 && index < 37)\r\n {\r\n if (!this.mergeItemStack(itemstack1, 37, 46, false))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n }\r\n else if (index >= 37 && index < 46)\r\n {\r\n if (!this.mergeItemStack(itemstack1, 10, 37, false))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n }\r\n else if (!this.mergeItemStack(itemstack1, 10, 46, false))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n\r\n if (ItemStackTools.isEmpty(itemstack1))\r\n {\r\n slot.putStack(ItemStackTools.getEmptyStack());\r\n }\r\n else\r\n {\r\n slot.onSlotChanged();\r\n }\r\n\r\n if (ItemStackTools.getStackSize(itemstack1) == ItemStackTools.getStackSize(itemstack))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n\r\n slot.onTake(playerIn, itemstack1);\r\n }\r\n\r\n return itemstack;\r\n }", "@EventHandler (priority = EventPriority.HIGHEST)\n\tpublic void onClick(final InventoryClickEvent event) {\n\t\tif (!(event.getWhoClicked() instanceof Player)) {\n\t\t\treturn;\n\t\t}\n\t\tfinal Player player = (Player)event.getWhoClicked();\n\t\t\n\t\tShopObject shop = getShopPlayerIsViewing(player);\n\t\tif (shop == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (event.getAction() == InventoryAction.MOVE_TO_OTHER_INVENTORY) {\n\t\t\t//trying to put in shop part of inventory\n\t\t\tif (event.getRawSlot() != event.getSlot()) {\n\t\t\t\tif (!canPutItemInShop(shop, event.getCurrentItem(), player)) {\n\t\t\t\t\tevent.setCancelled(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//TODO once you cancel this one, the item on cursor becomes invisible. Try doing event.setCursor()\n\t\telse if (!event.getCursor().getType().equals(Material.AIR)) { //have an item \n\t\t\t//trying to put in shop part of inventory\n\t\t\tif (event.getRawSlot() == event.getSlot()) { \n\t\t\t\tItemStack cursor = new ItemStack(event.getCursor());\n\t\t\t\tif (!canPutItemInShop(shop, cursor, player)) {\n\t\t\t\t\tevent.setCancelled(true);\n\t\t\t\t\tevent.setCursor(new ItemStack(Material.AIR));\n\t\t\t\t\tplayer.getInventory().addItem(cursor);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tplugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() { \n\t\t\tpublic void run() { \n\t\t\t\tplayer.updateInventory();\n\t\t\t}\n\t\t}, 5L); \n\t}", "public int addItem(Item i);", "public boolean addItemToInventory(InventoryItem itemToAdd) {\n if (inventory.size() >= MAX_ITEMS) {\n // Inventory full, could not add the item\n return false;\n }\n\n // Let the strategy know this player received an item\n strategy.onReceiveItem(itemToAdd);\n inventory.add(itemToAdd);\n return true;\n }", "public void setInventory(int inventory){\r\n inventoryNumber += inventory;\r\n }", "@Override\n public Optional<FridgeItemEntity> addItem(String fridgeId, String itemId, String itemType) {\n return Optional.empty();\n }", "@Test(expected = InventoryException.class)\n\tpublic void testAddInventoryException() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"4\", \"-1\", \"asdf\", \"3\");\n\t}", "public void addItem(Item e) {\n\t\tItem o = new Item(e);\n\t\titems.add(o);\n\t}", "public void setInventorySlotContents(int par1, ItemStack par2ItemStack)\n {\n this.furnaceItemStacks[par1] = par2ItemStack;\n\n if (par2ItemStack != null && par2ItemStack.stackSize > this.getInventoryStackLimit())\n {\n par2ItemStack.stackSize = this.getInventoryStackLimit();\n }\n }", "public void addProduct(Product item)\n {\n stock.add(item);\n }", "@Test(expected = InventoryException.class)\n\tpublic void testAddSugarNotInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"0\", \"abcd\", \"0\");\n\t}", "public void lootObject(Items loot) {\n if (loot != null)\n this.inventory.add(loot);\n }", "public void fireOnItemAddedToInventoryCommands();", "public void add(int index){\n int i = 0;\n boolean isFound = false;\n for (Product product:inventory.getProducts().keySet())\n {\n i++;\n if (i == index && inventory.getProducts().get(product) > 0)\n {\n if (myBasket.containsKey(product))\n {\n System.out.println(\"One more of this product added.\");\n myBasket.replace(product , myBasket.get(product) + 1);\n }\n else {\n System.out.println(\"Product added to your basket.\");\n myBasket.put(product , 1);\n }\n totalCost = totalCost + product.getPrice();\n isFound = true;\n inventory.updateStock(product , '-');\n }\n }\n if (!isFound)\n System.out.println(\"Sorry. Invalid index or not enough product in stock!\");\n }", "public static boolean addOrDropStack(PlayerEntity player, ItemStack stack) {\n if (!player.inventory.addItemStackToInventory(stack)) {\n player.dropItem(stack, false);\n return false;\n }\n return true;\n }", "public void smeltItem()\n {\n if (this.canSmelt())\n {\n ItemStack var1 = FurnaceRecipes.smelting().getSmeltingResult(this.furnaceItemStacks[0]);\n\n if (this.furnaceItemStacks[2] == null)\n {\n this.furnaceItemStacks[2] = var1.copy();\n }\n else if (this.furnaceItemStacks[2].isItemEqual(var1))\n {\n ++this.furnaceItemStacks[2].stackSize;\n }\n\n --this.furnaceItemStacks[0].stackSize;\n\n if (this.furnaceItemStacks[0].stackSize <= 0)\n {\n this.furnaceItemStacks[0] = null;\n }\n }\n }", "private static void craftStair(ItemStack input, ItemStack output)\r\n\t{\r\n\t\tGameRegistry.addRecipe(output, new Object[] { \"# \", \"## \", \"###\", '#', input });\r\n\t}", "@Test(expected = InventoryException.class)\n\tpublic void testAddSugarPositiveInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"0\", \"15\", \"0\");\n\t}" ]
[ "0.7199837", "0.69425106", "0.6843057", "0.68321455", "0.67565423", "0.6744578", "0.67229486", "0.6684826", "0.6675596", "0.6673033", "0.65945697", "0.6567153", "0.6543252", "0.6539746", "0.65380555", "0.6484414", "0.64312154", "0.6415263", "0.63998437", "0.63874453", "0.638412", "0.6384058", "0.6363861", "0.63587207", "0.63218385", "0.63114", "0.6261262", "0.62205696", "0.6204071", "0.619853", "0.61727047", "0.61716974", "0.6161054", "0.6152831", "0.6133971", "0.609612", "0.6092766", "0.60895866", "0.6086787", "0.60777897", "0.6075988", "0.60687184", "0.60274684", "0.6026933", "0.60138255", "0.59948784", "0.5991034", "0.59815836", "0.5980077", "0.59758455", "0.596604", "0.5957569", "0.5947718", "0.5940755", "0.5936565", "0.59273046", "0.5902231", "0.5898043", "0.5894472", "0.5891912", "0.58852416", "0.5871352", "0.5852852", "0.58407384", "0.5839793", "0.5837596", "0.58322954", "0.5826404", "0.5815806", "0.58122116", "0.5811333", "0.5805422", "0.5803275", "0.57979125", "0.57960606", "0.5779503", "0.5773992", "0.576685", "0.57589215", "0.5751769", "0.5749001", "0.5731686", "0.5710799", "0.57101536", "0.5709026", "0.5703741", "0.5699561", "0.569692", "0.5667893", "0.5667443", "0.5667201", "0.5657397", "0.5657128", "0.56530434", "0.5649332", "0.5649137", "0.56453264", "0.5644149", "0.56375444", "0.5637361" ]
0.7103748
1
Completely remove the specified ItemStack
public boolean removeItemStack(ItemStack itemStack) { boolean success = false; if (this.ITEMS.contains(itemStack)) { this.ITEMS.remove(itemStack); success = true; } else { boolean containItem = false; int index = 0; for (ItemStack itemStack1 : this.ITEMS) { if (itemStack1.getItem() == itemStack.getItem()) { index = this.ITEMS.lastIndexOf(itemStack1); containItem = true; } } if (containItem) { ItemStack itemStack1 = this.ITEMS.get(index); itemStack1.addAmount(-itemStack.getAmount()); if (itemStack1.getAmount() <= 0) this.ITEMS.remove(itemStack1); success = true; } } for (InventoryChangedEvent listener : listeners) listener.onInventoryChanged(this); return success; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ItemStack remove(int debug1) {\n/* 104 */ return this.container.removeItem(this.slot, debug1);\n/* */ }", "default ItemStack removeOneItem() {\n return removeOneItem(StandardStackFilters.ALL);\n }", "@Override\n\tpublic ItemStack removeStackFromSlot(int index) {\n\t\treturn null;\n\t}", "default ItemStack removeOneItem(ItemStack... filter) {\n return removeOneItem(StackFilters.anyOf(filter));\n }", "ItemStack removePage(EntityPlayer player, ItemStack itemstack, int index);", "public void removeItem(Item theItem) {\n\t\tinventory.remove(theItem);\t\n\t}", "default ItemStack removeOneItem(Predicate<ItemStack> filter) {\n for (IInventoryAdapter inventoryObject : this) {\n InventoryManipulator im = InventoryManipulator.get(inventoryObject);\n ItemStack stack = im.removeItem(filter);\n if (!InvTools.isEmpty(stack))\n return stack;\n }\n return InvTools.emptyStack();\n }", "public void onContainerClosed(EntityPlayer playerIn)\n {\n super.onContainerClosed(playerIn);\n\n if (!this.worldObj.isRemote)\n {\n for (int i = 0; i < 9; ++i)\n {\n ItemStack itemstack = this.craftMatrix.removeStackFromSlot(i);\n\n if (itemstack != null)\n {\n playerIn.dropItem(itemstack, false);\n }\n }\n }\n }", "public static void removeItem(String itemName)\n {\n inventory.remove(getItem(itemName));\n }", "public ItemStack removeItems(int paramInt1, int paramInt2)\r\n/* 31: */ {\r\n/* 32: 47 */ if (this.a[paramInt1] != null)\r\n/* 33: */ {\r\n/* 34: 48 */ if (this.a[paramInt1].stackSize <= paramInt2)\r\n/* 35: */ {\r\n/* 36: 49 */ ItemStack localamj = this.a[paramInt1];\r\n/* 37: 50 */ this.a[paramInt1] = null;\r\n/* 38: 51 */ return localamj;\r\n/* 39: */ }\r\n/* 40: 53 */ ItemStack localamj = this.a[paramInt1].split(paramInt2);\r\n/* 41: 54 */ if (this.a[paramInt1].stackSize == 0) {\r\n/* 42: 55 */ this.a[paramInt1] = null;\r\n/* 43: */ }\r\n/* 44: 57 */ return localamj;\r\n/* 45: */ }\r\n/* 46: 60 */ return null;\r\n/* 47: */ }", "public void removeItemInventory(Item item){\r\n playerItem.remove(item);\r\n System.out.println(item.getName() + \" was removed from your inventory\");\r\n }", "public void removeItemInventory(Item item){\n playerItem.remove(item);\n System.out.println(item.getName() + \" was removed from your inventory\");\n }", "public void removeItem(int itemToRemove){\n\t\tinventoryItems[itemToRemove] = null;\n\t}", "protected abstract void removeItem();", "public void removeItem(Item item)\n\t{\n\t\tinventory.remove(item);\n\t}", "public void removePlayerItem(Player player, ItemStack item, int amountToRemove){\n\t\tint amountLeft = amountToRemove;\n\t\tdebugOut(\"Searching for \"+amountLeft+\" items\");\n\t\tItemStack[] inventory = player.getInventory().getContents();\n\t\tint invSlot = 1;\n\t\tfor(ItemStack currentItem:inventory){\n\t\t\tif(amountLeft > 0){\n\t\t\t\tdebugOut(\"Inventory slot: \"+invSlot);\n\t\t\t\tdebugOut(\"Amount remaining:\"+amountLeft);\n\t\t\t\tinvSlot++;\n\t\t\t\tif(areEqualItems(currentItem, item)){\n\t\t\t\t\tdebugOut(\"Items match -- getting stack size\");\n\t\t\t\t\tdebugOut(\"Stack size:\"+currentItem.getAmount());\n\t\t\t\t\tint stackSize = currentItem.getAmount();\n\t\t\t\t\tif(stackSize > amountLeft){\n\t\t\t\t\t\tdebugOut(\"There are more items in this stack than needed\");\n\t\t\t\t\t\tcurrentItem.setAmount(stackSize-amountLeft);\n\t\t\t\t\t\tamountLeft = 0;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tdebugOut(\"This stack does not have enough to deposit the item -- deducting amount\");\n\t\t\t\t\t\tplayer.getInventory().removeItem(currentItem);\n\t\t\t\t\t\tdebugOut(\"removingItemAmount: \"+currentItem.getAmount() );\n\t\t\t\t\t\tamountLeft -= currentItem.getAmount();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tdebugOut(\"Not the same item\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tdebugOut(\"Amount left is 0; breaking loop\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void dropItem(int x, int y, int i) {\n \n ParentItem item = getInventory()[i];\n \n if (item != null) {\n \n inventory.removeItem(i);\n \n item.putOnBoard(x, y, gameboard);\n \n }\n \n }", "public static void removeItemFromInventory(final Inventory inventory, final ItemStack item) throws InvalidParameterException, FailedTransactionException {\n if (!isValidInventory(inventory)) {\n throw new InvalidParameterException(\"Cannot remove item from an invalid inventory.\");\n }\n if (!ItemAPI.isValidItem(item)) {\n throw new InvalidParameterException(\"Cannot remove an invalid item from an inventory.\");\n }\n if (!hasRequiredItem(inventory, item, item.getAmount())) {\n throw new FailedTransactionException(\"That inventory does not have the amount of times to remove.\");\n }\n ItemStack[] savedInventory = duplicateInventory(inventory.getContents());\n try {\n int remaining = item.getAmount();\n for (int i = 0; i < inventory.getSize(); i++) {\n ItemStack currentItem = inventory.getItem(i);\n if (ItemAPI.isSimilarItem(currentItem, item)) {\n int currentItemAmount = currentItem.getAmount();\n // If this item can satisfy the remaining amount with some left over\n // then lower the amount of that item and break out of the loop\n if (currentItemAmount > remaining) {\n currentItem.setAmount(currentItemAmount - remaining);\n remaining = 0;\n break;\n }\n // If this item can satisfy the remaining amount exactly\n // then remove the item from the inventory and break out of the loop\n else if (currentItemAmount == remaining) {\n inventory.setItem(i, null);\n remaining = 0;\n break;\n }\n // Otherwise this item still leaves some remaining, so\n // remove the item from the inventory and reduce the remaining\n else {\n inventory.setItem(i, null);\n remaining -= currentItemAmount;\n }\n }\n }\n if (remaining != 0) {\n throw new FailedTransactionException(\"Was not able to remove the exact amount of that item!\");\n }\n }\n catch (FailedTransactionException exception) {\n // Restore the inventory to its previous state\n inventory.setContents(savedInventory);\n throw exception;\n }\n }", "public void removeProduct(Product item) {\n inventory.remove(item);\n }", "@Override\r\n public void uncall() {\r\n Player player = MbPets.getInstance().getServer().getPlayer(getOwner());\r\n if (player != null) {\r\n if (getEntity().getInventory().getDecor() != null) {\r\n if (player.getInventory().firstEmpty() >= 0) {\r\n player.getInventory().addItem(getEntity().getInventory().getDecor());\r\n } else {\r\n player.getWorld().dropItemNaturally(player.getLocation(),\r\n getEntity().getInventory().getDecor());\r\n }\r\n }\r\n }\r\n super.uncall();\r\n }", "private static void removeItemFromCart() {\r\n\t\tString itemName = getValidItemNameInput(scanner);\r\n\t\tfor (Iterator<Map.Entry<Product, Integer>> it = cart.getCartProductsEntries().iterator(); it.hasNext();){\r\n\t\t Map.Entry<Product, Integer> item = it.next();\r\n\t\t if( item.getKey().getName().equals(itemName) ) {\r\n\t\t\t it.remove();\r\n\t\t }\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Item removed from the cart successfully\");\r\n\t\tSystem.out.println();\r\n\t}", "private void removeEnchantRecipe() {\n Iterator<Recipe> it = Bukkit.recipeIterator();\n\n while (it.hasNext()) {\n Recipe res = it.next();\n\n if (res.getResult().getType() == ENCHANT_TABLE.getType()) {\n it.remove();\n }\n }\n }", "public void removeTile(Tile a_tile){\n for(int i = 0; i < playerHand.size(); i++){\n if(playerHand.get(i).getRight() == a_tile.getRight() && playerHand.get(i).getLeft() == a_tile.getLeft()){\n playerHand.remove(i);\n break;\n }\n }\n }", "public void removeItemAt(int theIndex) {\n\t\tList<Item> keys = new ArrayList<Item>(inventory.keySet());\t\n\t\tItem item = keys.get(theIndex);\n\t\tinventory.remove(item);\t\t\n\t}", "public void removeRecipe(IRecipe recipe) {\n this.recipes.remove(recipe);\n }", "public void removeItem(int id);", "private void dropItem(String item)//Made by Justin\n {\n itemFound = decodeItem(item);\n if (itemFound == null)\n {\n System.out.println(\"I don't know of any \" + item + \".\");\n }\n else\n {\n player.inventoryDel(itemFound);\n }\n }", "public void removeByequip_id(long equip_id);", "public void remove() {\n/* 1379 */ super.remove();\n/* 1380 */ this.inventoryMenu.removed(this);\n/* 1381 */ if (this.containerMenu != null) {\n/* 1382 */ this.containerMenu.removed(this);\n/* */ }\n/* */ }", "public ItemStack decrStackSize(int slotIndex, int numRemove)\n {\n if (this.waterjetStacks[slotIndex] != null)\n {\n ItemStack itemstack;\n\n if (this.waterjetStacks[slotIndex].stackSize <= numRemove)\n {\n itemstack = this.waterjetStacks[slotIndex];\n this.waterjetStacks[slotIndex] = null;\n return itemstack;\n } else\n {\n itemstack = this.waterjetStacks[slotIndex].splitStack(numRemove);\n\n if (this.waterjetStacks[slotIndex].stackSize == 0)\n {\n this.waterjetStacks[slotIndex] = null;\n }\n\n return itemstack;\n }\n } else\n {\n return null;\n }\n }", "public void itemRemoved(E item);", "public void removeItem(){\n\t\tthis.item = null;\n\t}", "public void removeTile(Tile tile) {\n ownedTiles.remove(tile);\n }", "@Override\n\tpublic ItemStack decrStackSize(int index, int count) {\n\t\treturn null;\n\t}", "public static ItemStack consumeItem(ItemStack stack)\n\t{\n\t\treturn consumeItem(stack, 1);\n\t}", "public void removeItem(Item iToRemove, int amount) {\n for (Item i : inventory) {\n if (iToRemove.getClass().equals(i.getClass())) {\n int tempQuantity = i.getQuantity() - amount;\n if (tempQuantity > 0) {\n i.setQuantity(tempQuantity);\n } else {\n inventory.remove(i);\n }\n }\n }\n }", "void removeCartItem(int cartItemId);", "@ZenCodeType.Method\n\tpublic void removeRecipe(IIngredient output)\n\t{\n\t\tCraftTweakerAPI.apply(new AbstractActionRemoveMultipleOutputs<CrusherRecipe>(this, output)\n\t\t{\n\n\t\t\t@Override\n\t\t\tpublic List<ItemStack> getAllOutputs(CrusherRecipe recipe)\n\t\t\t{\n\t\t\t\tfinal List<ItemStack> itemStacks = new ArrayList<>();\n\t\t\t\titemStacks.add(recipe.output.get());\n\t\t\t\tfor(StackWithChance secondaryOutput : recipe.secondaryOutputs)\n\t\t\t\t\titemStacks.add(secondaryOutput.stack().get());\n\t\t\t\treturn itemStacks;\n\t\t\t}\n\t\t});\n\t}", "public void remove(Card card) {\n if (!myTurn()) {\n return;\n }\n if (handPile.contains(card)) {\n //history.add(new CardAction(card, \"Remove: \" + card.getName()));\n handPile.remove(card);\n }\n }", "void removeMenuItem(int itemId, String itemName);", "public void removeRecipe(Recipe recipe) {\r\n \t\trecipeList.remove(recipe);\r\n \t\tpersistenceManager.remove(recipe);\r\n \t}", "public void dropItems() {\n\t\tlocation.getChunk().load();\n\t\tArrays.stream(inventory.getContents())\n\t\t\t.filter(ItemStackUtils::isValid)\n\t\t\t.forEach((item) -> location.getWorld().dropItemNaturally(location, item));\n\t\tinventory.clear();\n\t}", "public static void removeItem(final Player p, final Material material, final int amount) {\n for (int i = 1; i <= amount; ++i) {\n final ItemStack ite = p.getInventory().getItem(p.getInventory().first(material));\n final ItemStack it = new ItemStack(ite.getType(), 1, ite.getDurability());\n it.setItemMeta(ite.getItemMeta());\n p.getInventory().removeItem(new ItemStack[]{it});\n }\n }", "private void removeItemByCoordinates(int nodeX, int nodeY) {\n world.removeUnequippedInventoryItemByCoordinates(nodeX, nodeY);\n }", "public void removeItem(Item item) {\r\n for (Iterator<Item> it = inventoryItems.iterator(); it.hasNext(); ) {\r\n Item i = it.next();\r\n if (i.getId() == item.getId()) {\r\n i.setCount(i.getCount() - 1);\r\n }\r\n if (i.getCount() <= 0) {\r\n it.remove();\r\n }\r\n }\r\n }", "public void rmItem(Item item) {\n\t\titems.remove(item);\n\t}", "private void removeEquippedItemByCoordinates(int nodeX, int nodeY) {\n world.removeEquippedInventoryItemByCoordinates(nodeX, nodeY);\n }", "void removeStock(int i);", "public void removeArtifact() {\r\n \t\tRationaleUpdateEvent l_updateEvent = m_eventGenerator.MakeUpdated();\r\n \t\tl_updateEvent.setTag(\"artifacts\");\r\n \t\tm_eventGenerator.Broadcast(l_updateEvent);\r\n \t}", "public void moveItemStackTo(ItemStack itemStack, Inventory inventory) {\n int itemsAdded = inventory.addItemStack(itemStack);\n\n this.removeItemStack(new ItemStack(itemStack.getItem(), itemsAdded));\n }", "@Override\r\n\tpublic void removeItem(String absPath) throws VersionException,\r\n\t\t\tLockException, ConstraintViolationException, AccessDeniedException,\r\n\t\t\tRepositoryException {\n\t\t\r\n\t}", "public void smeltItem()\n {\n if (this.canSmelt())\n {\n ItemStack var1 = FurnaceRecipes.smelting().getSmeltingResult(this.furnaceItemStacks[0]);\n\n if (this.furnaceItemStacks[2] == null)\n {\n this.furnaceItemStacks[2] = var1.copy();\n }\n else if (this.furnaceItemStacks[2].isItemEqual(var1))\n {\n ++this.furnaceItemStacks[2].stackSize;\n }\n\n --this.furnaceItemStacks[0].stackSize;\n\n if (this.furnaceItemStacks[0].stackSize <= 0)\n {\n this.furnaceItemStacks[0] = null;\n }\n }\n }", "Optional<ItemStack> getItemStack();", "void removeBlock(Block block);", "private void destroyBlockAndDropItem(final Location at) {\n if (at == null) {\n return;\n }\n\n final Block b = at.getBlock();\n\n if (!MaterialManager.getInstance().contains(b.getType().name())) {\n return;\n }\n\n double chance = MaterialManager.getInstance().getChanceToDropBlock(b.getType().name());\n\n if (chance > 1.0)\n chance = 1.0;\n if (chance < 0.0)\n chance = 0.0;\n\n final double random = Math.random();\n\n if (chance == 1.0 || chance <= random) {\n ItemStack is = new ItemStack(b.getType(), 1);\n\n if (is.getType() == Material.AIR) {\n return;\n }\n\n // drop item\n at.getWorld().dropItemNaturally(at, is);\n }\n\n // changes original block to Air block\n b.setType(Material.AIR);\n }", "public static ItemStack decreaseStackSize (ItemStack stack, int amount) {\n \n stack.setCount(stack.getCount()-amount);\n return stack.getCount() <= 0 ? null : stack;\n }", "public Card removeCard(){\n Card temp = pile[0]; //removes top card. putting placement card to avoid null pointer\n for(int i = 0; i < pilePlace; i++){ //shifts cards\n pile[i] = pile[i+1];\n }\n pilePlace--;\n return temp;\n\n }", "private void removeItem(int item) {\n\t\tboolean flag = false;\r\n\t\tfor(int i=0; i<index; i++) {\r\n\t\t\tif(products[i].getTag() == item) {\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"없어진 상품:\"+products[i].toString());\r\n\t\t\t\tproducts[i] = null;\r\n\t\t\t\tindex--;\r\n\t\t\t\tflag = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(flag == false)\r\n\t\t\tSystem.out.println(\"해당하는 상품이 없습니다.\");\r\n\t}", "public void removeItem() {\r\n\t\tlog.info(\"Remove item\");\r\n\t\tsu.waitElementClickableAndClick(LocatorType.Xpath, CartSplitViewField.Remove.getName());\r\n\t}", "@Override\n\tpublic ItemStack decrStackSize(int slot, int decreaseAmount){\n\t if(modularStacks[slot] != null) {\n\t ItemStack itemstack;\n\n\t if(modularStacks[slot].stackSize <= decreaseAmount) {\n\t itemstack = modularStacks[slot];\n\t setInventorySlotContents(slot, null);\n\t markDirty();\n\t return itemstack;\n\t } else {\n\t itemstack = modularStacks[slot].splitStack(decreaseAmount);\n\n\t if(modularStacks[slot].stackSize == 0) {\n\t setInventorySlotContents(slot, null);\n\t }\n\n\t markDirty();\n\t return itemstack;\n\t }\n\t } else {\n\t return null;\n\t }\n\t}", "void removeProduct(int position) throws ProductNotFoundException;", "public void removeStock(int qtearajouter) {\n\t\tthis.stock -= qtearajouter;\n\t}", "@Override\r\n\tpublic void sellItem(AbstractItemAPI item) {\n\t\titems.remove(item);\r\n\t\t\r\n\t}", "public void removeItem(Carryable g) {\r\n for (int i=0; i<numItems; i++) {\r\n if (cart[i] == g) {\r\n cart[i] = cart[numItems - 1];\r\n numItems -= 1;\r\n return;\r\n }\r\n }\r\n }", "public void delMissile(Missile missile)\r\n {\n \r\n \r\n boolean remove = missiles.remove(missile);\r\n try {\r\n missile.finalize();\r\n } catch (Throwable ex) {\r\n Logger.getLogger(Object_.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n //System.out.println(\"Remove: \" + remove);\r\n }", "public void removeItem(int n)\n {\n items.remove(n);\n }", "public void removeArtifact(ArtifactModel artifact);", "public static void removeItems(Player player, Material material, int amount) {\n int current = amount;\n\n for (ItemStack content : player.getInventory().getContents()) {\n if (content != null && content.getType() == material) {\n if (current - content.getAmount() > 0) {\n current -= content.getAmount();\n\n content.setAmount(0);\n } else {\n content.setAmount(content.getAmount() - current);\n return;\n }\n }\n }\n }", "public void removeItem(int i) {\n checkIndex(i);\n\n if (items[i] != null) {\n size--;\n }\n items[i] = null;\n }", "void dropItem(Command command) {\n HashMap newInventory = inventory.getInventory();\n Iterator iterator = newInventory.entrySet().iterator();\n String seeItem;\n// int indexItem = -1;\n String nameOfItem = \"\";\n String dropFromInventory = \"debug\";\n\n while (iterator.hasNext()) {\n HashMap.Entry liste = (HashMap.Entry) iterator.next();\n String itemName = (String) liste.getKey();\n if (itemName.equalsIgnoreCase(command.getSecondWord())) {\n dropFromInventory = itemName;\n nameOfItem = itemName;\n break;\n }\n }\n if (!nameOfItem.equals(\"\")) {\n itemLocation.addItem(currentRoom, new PickableItem(nameOfItem, inventory.getItemWeight(nameOfItem), inventory.getUseable(nameOfItem)));\n inventory.removeItemInventory(nameOfItem);\n System.out.println(\"You have dropped: \" + nameOfItem);\n\n } else {\n System.out.println(\"Can't drop item that isn't in inventory \" + command.getSecondWord());\n }\n }", "public void onCraftGuiClosed(EntityPlayer par1EntityPlayer)\r\n\t {\r\n\t\t super.onCraftGuiClosed(par1EntityPlayer);\r\n\r\n\t\t if (!this.worldPointer.isRemote)\r\n\t\t {\r\n\t\t\t ItemStack itemstack = this.tableInventory.getStackInSlotOnClosing(0);\r\n\r\n\t\t\t if (itemstack != null)\r\n\t\t\t {\r\n\t\t\t\t par1EntityPlayer.dropPlayerItem(itemstack);\r\n\t\t\t }\r\n\t\t }\r\n\t }", "public void removeItem(Item e) {\n\t\tif (items.contains(e))\n\t\t\titems.remove(e);\n\t}", "public void smeltItem() {\n\t\tif (this.canSmelt()) {\n\t\t\tItemStack itemstack = FurnaceRecipes.smelting().getSmeltingResult(\n\t\t\t\t\tthis.slots[0]);\n\t\t\tif (this.slots[1] == null) {\n\t\t\t\tthis.slots[1] = itemstack.copy();\n\t\t\t} else if (this.slots[1].getItem() == itemstack.getItem()) {\n\t\t\t\tthis.slots[1].stackSize += itemstack.stackSize;\n\t\t\t}\n\n\t\t\t--this.slots[0].stackSize;\n\n\t\t\tif (this.slots[0].stackSize <= 0) {\n\t\t\t\tthis.slots[0] = null;\n\t\t\t}\n\t\t}\n\t}", "public final void consume(Player player, Collection<ItemStack> items)\n\t{\n\t\tInventoryHelper.remove(player, items);\n\t}", "boolean removAble(InputItem item);", "@Override\n public ItemStack getStackInSlotOnClosing(int p_70304_1_) {\n ItemStack itemstack = this.furnaceItemStacks[p_70304_1_];\n this.furnaceItemStacks[p_70304_1_] = null;\n return itemstack;\n }", "public void removeTile(Tile tile) {\r\n frame.remove(tile);\r\n }", "public abstract void removeBlock();", "private void removeAtIndex(int index) {\n // save the last item\n FoodItem toMoveBack = this._stock[this._noOfItems-1];\n // make it null\n this._stock[this._noOfItems-1] = null;\n // for each item until the index to remove from:\n for (int i = this._noOfItems-2; i > index-1; i--) {\n // save the last moved back temporarily\n FoodItem tempToMoveBack = toMoveBack;\n // assign to the next iteration item to move back\n toMoveBack = this._stock[i];\n // move back the item for current iteration\n this._stock[i] = tempToMoveBack;\n }\n // we removed an item - so let's decrease the item counter.\n this._noOfItems--;\n }", "public void dropItem(Item seekItem)\n {\n //get each item from the items's array list.\n for (Item item : items){\n if(item.getName().equals(seekItem.getName())){\n currentRoom.getInventory().getItems().add(item);\n removePlayerItem(item);\n System.out.println(\"You have placed the \"+ item.getName() +\" in the \" + currentRoom.getName() + \".\");\n }\n }\n }", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public Objects removeObject(String itemName)\n {\n return items.remove(itemName);\n }", "public abstract boolean canRemoveItem(Player player, Item item, int slot);", "public void remove(int index) {\n items.remove(index);\n }", "public void dropEntireInventory(World world, BlockPos pos, int id, int metadata) {\n int x = pos.getX();\n int y = pos.getY();\n int z = pos.getZ();\n TileEntity tileEntity = world.getTileEntity(pos);\n if (tileEntity != null && tileEntity instanceof IInventory) {\n IInventory inventory = (IInventory) tileEntity;\n for (int i = 0; i < inventory.getSizeInventory(); ++i) {\n ItemStack stack = inventory.getStackInSlot(i);\n if (stack != null) {\n Random random = new Random();\n float sx = random.nextFloat() * 0.8F + 0.1F;\n float sy = random.nextFloat() * 0.8F + 0.1F;\n float sz = random.nextFloat() * 0.8F + 0.1F;\n while (stack.stackSize > 0) {\n int qty = random.nextInt(21) + 10;\n if (qty > stack.stackSize) {\n qty = stack.stackSize;\n }\n stack.stackSize -= qty;\n EntityItem eitem = new EntityItem(world, x + sx, y + sy, z + sz, new ItemStack(stack.getItem(), qty, stack.getItemDamage()));\n if (stack.hasTagCompound()) {\n eitem.getEntityItem().setTagCompound((NBTTagCompound) stack.getTagCompound().copy());\n }\n float displacement = 0.05F;\n eitem.motionX = (float) random.nextGaussian() * displacement;\n eitem.motionY = (float) random.nextGaussian() * displacement + 0.2F;\n eitem.motionZ = (float) random.nextGaussian() * displacement;\n world.spawnEntityInWorld(eitem);\n }\n }\n }\n }\n }", "public void remove(Equipment equipment) {\n equipments.remove(equipment);\n }", "public void dropItem(Location loc){\n\t\t\n\t\tPlayer p = getThrower();\n\t\tItemStack droppedItem;\n\t\t\n\t\tdroppable.clear();\n\t\t\n\t\taddItem(Material.IRON_INGOT, 8, 8, 3); //Item, weight, maximum stack size, minimum stack size\n\t\taddItem(Material.GOLD_INGOT, 5, 5, 1);\n\t\taddItem(Material.DIAMOND, 3, 3, 1);\n\t\taddItem(Material.GOLDEN_APPLE, 1, 1, 1);\n\t\taddItem(Material.ROTTEN_FLESH, 10, 5, 1);\n\t\taddItem(Material.BREAD, 15, 32, 15);\n\t\taddItem(Material.BONE, 10, 5, 1);\n\t\taddItem(Material.SULPHUR, 10, 5, 1);\n\t\taddItem(Material.SADDLE, 1, 1, 1);\n\t\t\n\t\tint Size = droppable.size();\n\t\trandNum = ThreadLocalRandom.current().nextInt(Size);\n\t\t\n\t\tdroppedItem = droppable.get(randNum);\n\t\t\n\t\tp.getWorld().dropItem(loc, droppedItem);\n\t\tp.getWorld().dropItem(loc, new ItemStack(Material.GOLD_NUGGET, rand.nextInt(10) + 1));\n\t\t\n\t}", "Object remove();", "public void drop(String itemName, World world) {\n\t\tItem item = world.dbItems().get(itemName);\n\n\t\tList<Item> items = super.getItems();\n\t\tRoom room = super.getRoom();\n\t\tList<Item> roomItems = room.getItems();\n\n\t\tif (items.contains(item)) {\n\t\t\troom.addItem(item);\n\t\t\tsuper.removeItem(item);\n\t\t\tSystem.out.println(\"Dropped \" + item + \" on the floor.\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No \" + item + \" in inventory.\");\n\t\t}\n\t}", "public void remove() {\n btRemove().push();\n }", "public void remove() {\n btRemove().push();\n }", "<T> void removeUninstallItem(CallbackItem<T> callbackItem);", "@Override\r\n\tpublic void removeFavoriteItem(Item i, Group g) throws IllegalArgumentException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tfavoriteItemMapper.delete(i, g);\r\n\t}", "@Override\n public Item removeItem(int itemNum) throws VendingMachinePersistenceException {\n loadItemFile();\n Item itemToRemove = itemMap.remove(itemNum);\n writeItemFile();\n\n return itemToRemove;\n }", "public void removeTile(){\n\t\toccupied = false;\n\t\tcurrentTile = null;\n\t}", "public Item dropItem(String itemName) {\n Item item = items.remove(itemName);\n if(item != null) {\n currentRoom.addItem(item);\n }\n return item;\n }" ]
[ "0.730659", "0.71889794", "0.6715128", "0.66887206", "0.6656405", "0.66234964", "0.6428722", "0.6425104", "0.6319214", "0.63009167", "0.62626696", "0.62459016", "0.62449795", "0.62404466", "0.6210329", "0.6197517", "0.61912155", "0.6109405", "0.61019516", "0.60766095", "0.60610586", "0.6046079", "0.6028058", "0.60031104", "0.59858614", "0.5954687", "0.59503216", "0.594754", "0.59473836", "0.5928552", "0.59185183", "0.59083", "0.59004235", "0.5894114", "0.58754146", "0.58730674", "0.58600855", "0.58515877", "0.58266526", "0.5818518", "0.58175635", "0.5797372", "0.5784156", "0.5776314", "0.5759985", "0.5757696", "0.5755699", "0.5749411", "0.57437456", "0.5740904", "0.5728408", "0.572777", "0.5722404", "0.5714314", "0.57065135", "0.57001764", "0.5698946", "0.5696016", "0.56918466", "0.567367", "0.5658513", "0.56562185", "0.564241", "0.5627058", "0.5625417", "0.5620316", "0.56180996", "0.56163377", "0.56130654", "0.56058234", "0.5605188", "0.5596475", "0.55951536", "0.5593429", "0.5588964", "0.55877054", "0.5585272", "0.55819356", "0.5580322", "0.55686104", "0.55592877", "0.55592877", "0.55592877", "0.55592877", "0.55592877", "0.555854", "0.5558393", "0.5555651", "0.5551882", "0.554853", "0.55433863", "0.5534404", "0.5530761", "0.55293226", "0.55293226", "0.5527398", "0.55234176", "0.5521001", "0.5516699", "0.55143994" ]
0.67628145
2
Get ItemStack from index
public ItemStack getItemStack(int index) { return this.ITEMS.get(index); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic ItemStack getStackInSlot(int index) {\n\t\treturn null;\n\t}", "ItemStack getItem();", "public ItemStack get(int paramInt)\r\n/* 26: */ {\r\n/* 27: 41 */ return this.a[paramInt];\r\n/* 28: */ }", "public Item getItem(int itemIndex){\n\t\treturn inventoryItems[itemIndex];\n\t}", "int getItem(int index);", "public ItemStack getStackInSlot(int par1)\n {\n return this.furnaceItemStacks[par1];\n }", "public E get(int index) {\r\n return items.get(index);\r\n }", "@Nullable\n public ItemStack transferStackInSlot(EntityPlayer playerIn, int index)\n {\n ItemStack itemstack = null;\n Slot slot = (Slot)this.inventorySlots.get(index);\n\n if (slot != null && slot.getHasStack())\n {\n ItemStack itemstack1 = slot.getStack();\n \n if(itemstack1.getItem()==TF2weapons.itemTF2&&itemstack1.getMetadata()==9){\n \t\titemstack1=ItemFromData.getRandomWeapon(playerIn.getRNG(),ItemFromData.VISIBLE_WEAPON);\n \t}\n \telse if(itemstack1.getItem()==TF2weapons.itemTF2&&itemstack1.getMetadata()==10){\n \t\titemstack1=ItemFromData.getRandomWeaponOfClass(\"cosmetic\",playerIn.getRNG(), false);\n \t}\n \n itemstack = itemstack1.copy();\n\n if (index == 0)\n {\n if (!this.mergeItemStack(itemstack1, 10, 46, true))\n {\n return null;\n }\n\n slot.onSlotChange(itemstack1, itemstack);\n }\n else if (index >= 10 && index < 37)\n {\n if (!this.mergeItemStack(itemstack1, 37, 46, false))\n {\n return null;\n }\n }\n else if (index >= 37 && index < 46)\n {\n if (!this.mergeItemStack(itemstack1, 10, 37, false))\n {\n return null;\n }\n }\n else if (!this.mergeItemStack(itemstack1, 10, 46, false))\n {\n return null;\n }\n\n if (itemstack1.stackSize == 0)\n {\n slot.putStack((ItemStack)null);\n }\n else\n {\n slot.onSlotChanged();\n }\n\n if (itemstack1.stackSize == itemstack.stackSize)\n {\n return null;\n }\n\n slot.onPickupFromSlot(playerIn, itemstack1);\n }\n\n return itemstack;\n }", "public ItemStack getStackInSlot(int p_70301_1_)\n {\n return p_70301_1_ >= 0 && p_70301_1_ < this.inventoryContents.length ? this.inventoryContents[p_70301_1_] : null;\n }", "public ItemStack transferStackInSlot(EntityPlayer playerIn, int index) {\r\n ItemStack itemstack = null;\r\n Slot slot = (Slot) this.inventorySlots.get(index);\r\n\r\n if (slot != null && slot.getHasStack()) {\r\n ItemStack itemstack1 = slot.getStack();\r\n itemstack = itemstack1.copy();\r\n\r\n if (index == 0) {\r\n if (!this.mergeItemStack(itemstack1, this.inventoryHandler.getSlots(), this.inventorySlots.size(), true)) {\r\n return null;\r\n }\r\n\r\n slot.onSlotChange(itemstack1, itemstack);\r\n } else if (index >= 1 && index < this.inventorySlots.size()) {\r\n if (!this.mergeItemStack(itemstack1, this.inventorySlots.size() - 9, this.inventorySlots.size(), false)) {\r\n return null;\r\n }\r\n } else if (!this.mergeItemStack(itemstack1, this.inventoryHandler.getSlots(), this.inventorySlots.size(), false)) {\r\n return null;\r\n }\r\n\r\n if (itemstack1.stackSize == 0) {\r\n slot.putStack((ItemStack) null);\r\n } else {\r\n slot.onSlotChanged();\r\n }\r\n\r\n if (itemstack1.stackSize == itemstack.stackSize) {\r\n return null;\r\n }\r\n\r\n slot.onPickupFromSlot(playerIn, itemstack1);\r\n }\r\n\r\n return itemstack;\r\n }", "@Override\r\n\tpublic final ItemStack getItemAt(final int slot) {\r\n\t\treturn slot < this.tools.size() ? this.tools.get(slot).get(this.getViewer()) : null;\r\n\t}", "public Object get(int index)\n {\n return items[index];\n }", "public ItemStack transferStackInSlot(EntityPlayer playerIn, int index) {\n ItemStack var3 = null;\n Slot var4 = (Slot) this.inventorySlots.get(index);\n\n if (var4 != null && var4.getHasStack()) {\n ItemStack var5 = var4.getStack();\n var3 = var5.copy();\n\n if ((index < 0 || index > 2) && index != 3) {\n if (!this.theSlot.getHasStack() && this.theSlot.isItemValid(var5)) {\n if (!this.mergeItemStack(var5, 3, 4, false)) {\n return null;\n }\n } else if (ContainerBrewingStand.Potion.canHoldPotion(var3)) {\n if (!this.mergeItemStack(var5, 0, 3, false)) {\n return null;\n }\n } else if (index >= 4 && index < 31) {\n if (!this.mergeItemStack(var5, 31, 40, false)) {\n return null;\n }\n } else if (index >= 31 && index < 40) {\n if (!this.mergeItemStack(var5, 4, 31, false)) {\n return null;\n }\n } else if (!this.mergeItemStack(var5, 4, 40, false)) {\n return null;\n }\n } else {\n if (!this.mergeItemStack(var5, 4, 40, true)) {\n return null;\n }\n\n var4.onSlotChange(var5, var3);\n }\n\n if (var5.stackSize == 0) {\n var4.putStack((ItemStack) null);\n } else {\n var4.onSlotChanged();\n }\n\n if (var5.stackSize == var3.stackSize) {\n return null;\n }\n\n var4.onPickupFromSlot(playerIn, var5);\n }\n\n return var3;\n }", "public int getItemStack(ItemStack itemStack) {\n return this.ITEMS.lastIndexOf(itemStack);\n }", "public Item get(int index) {\n int track = nextFirst; //It does not modify nextFirst\n track = moveForward(track, index + 1);\n return items[track];\n }", "public ItemStack getItem() {\n ItemStack item = new ItemStack(material, 1);\n ItemMeta meta = item.getItemMeta();\n meta.setDisplayName(displayName);\n item.setItemMeta(meta);\n return item;\n }", "public int getItem(int index) {\n return item_.getInt(index);\n }", "public ItemStack getStackInSlot(int par1)\n {\n return par1 >= 9 ? null : tile.inventory[par1];\n }", "public T get(int index) {\n return items[(nextFirst + 1 + index) % capacity];\n }", "public Item get(int index) {\r\n\t\treturn catalog.get(index);\r\n\t}", "@Override\r\n\tpublic IBytecodeItem get(int index) {\n\t\treturn null;\r\n\t}", "public Item takeItem(int index) {\n return items.remove(index);\n }", "@Override\n\tpublic ItemStack removeStackFromSlot(int index) {\n\t\treturn null;\n\t}", "public int getItem(int index) {\n return item_.getInt(index);\n }", "public ItemStack getItemInHand ( ) {\n\t\tPlayer handle = handle ( );\n\t\t\n\t\tif ( handle != null ) {\n\t\t\ttry {\n\t\t\t\treturn ( ItemStack ) safeGetMethod (\n\t\t\t\t\t\tPlayerInventory.class , \"getItemInMainHand\" , new Class[ 0 ] ).invoke (\n\t\t\t\t\t\thandle.getInventory ( ) );\n\t\t\t} catch ( Exception e ) {\n\t\t\t\ttry {\n\t\t\t\t\treturn ( ItemStack ) safeGetMethod (\n\t\t\t\t\t\t\tPlayerInventory.class , \"getItemInHand\" , new Class[ 0 ] ).invoke (\n\t\t\t\t\t\t\thandle.getInventory ( ) );\n\t\t\t\t} catch ( IllegalAccessException | InvocationTargetException ex ) {\n\t\t\t\t\tex.printStackTrace ( );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "@Override\r\n\tpublic ItemStack transferStackInSlot(EntityPlayer playerIn, int index)\r\n {\r\n ItemStack itemstack = ItemStackTools.getEmptyStack();\r\n Slot slot = this.inventorySlots.get(index);\r\n\r\n if (slot != null && slot.getHasStack())\r\n {\r\n ItemStack itemstack1 = slot.getStack();\r\n itemstack = itemstack1.copy();\r\n\r\n if (index == 0)\r\n {\r\n if (!this.mergeItemStack(itemstack1, 10, 46, false))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n\r\n slot.onSlotChange(itemstack1, itemstack);\r\n }\r\n else if (index >= 10 && index < 37)\r\n {\r\n if (!this.mergeItemStack(itemstack1, 37, 46, false))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n }\r\n else if (index >= 37 && index < 46)\r\n {\r\n if (!this.mergeItemStack(itemstack1, 10, 37, false))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n }\r\n else if (!this.mergeItemStack(itemstack1, 10, 46, false))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n\r\n if (ItemStackTools.isEmpty(itemstack1))\r\n {\r\n slot.putStack(ItemStackTools.getEmptyStack());\r\n }\r\n else\r\n {\r\n slot.onSlotChanged();\r\n }\r\n\r\n if (ItemStackTools.getStackSize(itemstack1) == ItemStackTools.getStackSize(itemstack))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n\r\n slot.onTake(playerIn, itemstack1);\r\n }\r\n\r\n return itemstack;\r\n }", "Pokemon.Payload getPayload(int index);", "private ItemStack[] getItemStack() {\n\n ItemStack[] stack = new ItemStack[54];\n int i = 0;\n // get the player's messages\n TVMResultSetInbox rs = new TVMResultSetInbox(plugin, uuid, start, 44);\n if (rs.resultSet()) {\n List<TVMMessage> messages = rs.getMail();\n for (TVMMessage m : messages) {\n // message\n ItemStack mess;\n if (m.isRead()) {\n mess = new ItemStack(Material.BOOK, 1);\n } else {\n mess = new ItemStack(Material.WRITABLE_BOOK, 1);\n }\n ItemMeta age = mess.getItemMeta();\n age.setDisplayName(\"#\" + (i + start + 1));\n String from = plugin.getServer().getOfflinePlayer(m.getWho()).getName();\n age.setLore(Arrays.asList(\"From: \" + from, \"Date: \" + m.getDate(), \"\" + m.getId()));\n mess.setItemMeta(age);\n stack[i] = mess;\n i++;\n }\n }\n\n int n = start / 44 + 1;\n // page number\n ItemStack page = new ItemStack(Material.BOWL, 1);\n ItemMeta num = page.getItemMeta();\n num.setDisplayName(\"Page \" + n);\n num.setCustomModelData(119);\n page.setItemMeta(num);\n stack[45] = page;\n // close\n ItemStack close = new ItemStack(Material.BOWL, 1);\n ItemMeta win = close.getItemMeta();\n win.setDisplayName(\"Close\");\n win.setCustomModelData(1);\n close.setItemMeta(win);\n stack[46] = close;\n // previous screen (only if needed)\n if (start > 0) {\n ItemStack prev = new ItemStack(Material.BOWL, 1);\n ItemMeta een = prev.getItemMeta();\n een.setDisplayName(\"Previous Page\");\n een.setCustomModelData(120);\n prev.setItemMeta(een);\n stack[48] = prev;\n }\n // next screen (only if needed)\n if (finish > 44) {\n ItemStack next = new ItemStack(Material.BOWL, 1);\n ItemMeta scr = next.getItemMeta();\n scr.setDisplayName(\"Next Page\");\n scr.setCustomModelData(116);\n next.setItemMeta(scr);\n stack[49] = next;\n }\n // read\n ItemStack read = new ItemStack(Material.BOWL, 1);\n ItemMeta daer = read.getItemMeta();\n daer.setDisplayName(\"Read\");\n daer.setCustomModelData(121);\n read.setItemMeta(daer);\n stack[51] = read;\n // delete\n ItemStack del = new ItemStack(Material.BOWL, 1);\n ItemMeta ete = del.getItemMeta();\n ete.setDisplayName(\"Delete\");\n ete.setCustomModelData(107);\n del.setItemMeta(ete);\n stack[53] = del;\n\n return stack;\n }", "public Item get(int i);", "default V item( int i ) { return getDataAt( indexOfIndex( i ) ); }", "public ItemStack getItemStack() {\n\t\treturn this.itemStack;\n\t}", "public ItemStack getIconItemStack()\n {\n return new ItemStack(Item.writableBook, 1, 0);\n }", "public ItemStack getIconItemStack()\n {\n return new ItemStack(Item.writableBook, 1, 0);\n }", "io.opencannabis.schema.commerce.OrderItem.Item getItem(int index);", "public ItemStack getItem() {\r\n\t\treturn item;\r\n\t}", "public ItemStack getItem() {\n return this.item;\n }", "ItemStack getItemstackWithMaterial(Material material);", "public GradedItem get(int index) {\n\t\treturn this.gradedItems.get(index);\n\t}", "public E get(int index)\n\t{\n\t\treturn contents[index];\n\t}", "public Card getCard(int index){\n return cards.get(index - 1);\n }", "public Product getProduct(int i){\n return inventory.get(i);\n }", "public Item get(int index) {\n StuffNode ptr = sentinel;\n int ind = 0;\n if ((index + 1 > this.size()) || this.isEmpty() ) {\n return null;\n }\n while (ind <= index) {\n ptr = ptr.next;\n ind += 1;\n }\n return ptr.item;\n }", "Map<Integer, ItemStack> getContents();", "public ItemStack getStackInSlot(int slot)\n {\n return waterjetStacks[slot];\n }", "public static ItemStack getItemInMainHand(Player player) {\n try {\n // 1.9+\n return player.getInventory().getItemInMainHand();\n } catch (Throwable ex) {\n // pre 1.9\n return player.getItemInHand();\n }\n }", "Object get(int index);", "Object get(int index);", "default ItemStack getStack(int slot) {\n\t\treturn this.getContents().getOrDefault(slot, ItemStack.EMPTY);\n\t}", "@Override\n\tpublic ItemStack getStackInSlot(int p_70301_1_) {\n\t\treturn field_145900_a[p_70301_1_];\n\t}", "public native String getItem(Number index);", "public Item get(int i) {\n return items[i];\n }", "@Override\n\tpublic ItemStack getStackInSlot(int slot){\n\t return modularStacks[slot];\n\t}", "public CartItem get(int ndx) {\n\t\treturn cart.get(ndx);\n\t}", "public Itemset get(int index) {\n return itemsets.get(index);\n }", "StackType getFirstItem();", "private E getElement(int index) {\n if (index >= contents.size()) {\n return null;\n } else {\n return contents.get(index);\n }\n }", "public Item get(int i) {\n return items[i - 1];\n }", "public VectorItem<O> getVectorItem(int index)\r\n {\r\n if (index >= count || index < 0) return null;\r\n \r\n if (index > count/2)\r\n {\r\n //search from the end\r\n VectorItem<O> vi = last;\r\n for (int i=count-1;i>index;i--)\r\n {\r\n vi = vi.getPrevious();\r\n }\r\n return vi; \r\n \r\n } else\r\n {\r\n //search from the beginning\r\n VectorItem<O> vi = first;\r\n \r\n for (int i=0;i<index;i++)\r\n {\r\n vi = vi.getNext();\r\n }\r\n return vi; \r\n }\r\n }", "public static ItemStack readItem(CompoundTag tag) {\n BlockDataManager blockDataManager = ((GlowServer) Bukkit.getServer()).getBlockDataManager();\n final Material[] material = {null};\n if ((!tag.readString(\"id\", id -> material[0] = ItemIds.getItem(id))\n && !tag.readShort(\"id\",\n id -> material[0] = blockDataManager.convertToBlockData(id).getMaterial()))\n || material[0] == null || material[0] == Material.AIR) {\n return null;\n }\n final byte[] count = {0};\n tag.readByte(\"Count\", x -> count[0] = x);\n if (count[0] == 0) {\n return null;\n }\n final short[] damage = {0};\n tag.readShort(\"Damage\", x -> damage[0] = x);\n ItemStack stack = new ItemStack(material[0], count[0], damage[0]);\n // This is slightly different than what tag.readItem would do, since we specify the\n // material separately.\n tag.readCompound(\"tag\",\n subtag -> stack.setItemMeta(GlowItemFactory.instance().readNbt(material[0], subtag)));\n return stack;\n }", "Item getItem(int index) {\r\n return new Item(this, index);\r\n }", "public Integer get(int index){\n return list.get(index);\n }", "@Override\r\n public ItemStack getItemStack(PartItemStack type) {\n return new ItemStack(this.item);\r\n }", "public int get(int index);", "T getElementFromIndex(int index) throws ListException;", "public Object get(int index) {\n\t\tif (this.index == index) {\n\t\t\treturn object;\n\t\t} else {\n\t\t\treturn nextItem.get(index);\n\t\t}\n\t}", "PACKET getIndex(int index);", "public BPTreeNodeItem getItem(int index);", "public GameObject elementAt(int indx) {\n\t\t\treturn gameObjects.elementAt(indx);\n\t\t}", "public Ship get(int index) {\n\t\tif ((index < 0) || (index > ships.size() - 1)) {\n\t\t\tthrow new ArrayIndexOutOfBoundsException(\"Index out of Bounds.\");\n\t\t}\n\t\treturn ships.get(index);\n\n\t}", "public Card getCard(int index)\n\t{\n\t\treturn hand[index];\n\t}", "@Override\n public boolean canExtractItem(int index, ItemStack stack, EnumFacing direction) {\n return false;\n }", "@Override\n public ContentHandle get(int index) {\n return storage.getArtifactByContentId(contentIds.get(index)).getContent();\n }", "public io.opencannabis.schema.commerce.OrderItem.Item getItem(int index) {\n return item_.get(index);\n }", "InventoryItem getInventoryItem();", "public static ItemStack createItemStack()\r\n \t{\r\n \t\treturn new ItemStack(0);\r\n \t}", "public void selectWeaponFromInventory(int weaponIndex) {\n }", "public ItemStack transferStackInSlot(int i)\n {\n ItemStack itemstack = null;\n Slot slot = (Slot)inventorySlots.get(i);\n\n if (slot != null && slot.getHasStack())\n {\n ItemStack itemstack1 = slot.getStack();\n itemstack = itemstack1.copy();\n\n if (i < 9)\n {\n if (!mergeItemStack(itemstack1, 9, 45, true))\n {\n return null;\n }\n }\n else if (!mergeItemStack(itemstack1, 0, 9, false))\n {\n return null;\n }\n\n if (itemstack1.stackSize == 0)\n {\n slot.putStack(null);\n }\n else\n {\n slot.onSlotChanged();\n }\n\n if (itemstack1.stackSize != itemstack.stackSize)\n {\n slot.onPickupFromSlot(null, itemstack1);\n }\n else\n {\n return null;\n }\n }\n\n return itemstack;\n }", "ItemStack getEggItem(IGeneticMob geneticMob);", "public TypeHere get(int i) {\n return items[i];\n }", "public Object get(int index);", "public Object get(int index);", "public T popAt(int index) throws Exception{\n if(index<0 || index>=stacks.size()) throw new Exception();\n T c1 = stacks.get(index).pop();\n if(stacks.get(index).size()==0)\n stacks.remove(index);\n return c1;\n }", "Optional<ItemStack> getItemStack();", "public Pokemon.Payload getPayload(int index) {\n return payload_.get(index);\n }", "public int get(int index) {\n\t\treturn r[index];\n\t}", "private int getInstr(int index) {\n switch (index) {\n case 0:\n return R.drawable.chickpeacurry;\n case 1:\n return R.drawable.sweetpotatoblackbeanburger;\n case 2:\n return R.drawable.cabbagedietsoup;\n case 3:\n return R.drawable.instantpotvegetablesoup;\n case 4:\n return R.drawable.veganpumpkinsoup;\n\n default:\n return -1;\n }\n }", "public ItemStack getItemOnCursor ( ) {\n\t\treturn extract ( handle -> handle.getItemOnCursor ( ) );\n\t}", "@SuppressWarnings(\"unchecked\")\n public <T> Item<T> itemAt(final RepeatingView view, final int index) {\n final Iterator<? extends Component> items = view.iterator();\n for (int i = 0; i < index; i++) {\n items.next();\n }\n return (Item<T>) items.next();\n }", "public Object get(int index) {\r\n return entry(index).element;\r\n }", "@Override\n public ItemStack transferStackInSlot(EntityPlayer player, int index) {\n ItemStack result = ItemStack.EMPTY;\n Slot slot = inventorySlots.get(index);\n ItemStack stack = slot.getStack();\n if (slot != null && slot.getHasStack()) {\n SlotRange destRange = transferSlotRange(index, stack);\n if (destRange != null) {\n if (index >= destRange.numSlots) {\n result = stack.copy();\n if (!mergeItemStackIntoRange(stack, destRange))\n return ItemStack.EMPTY;\n if (stack.getCount() == 0)\n slot.putStack(ItemStack.EMPTY);\n else\n slot.onSlotChanged();\n }\n else\n player.inventory.addItemStackToInventory(stack);\n }\n }\n return result;\n }", "@Override\n public void readFromNBT(NBTTagCompound nbt)\n {\n super.readFromNBT(nbt);\n pokedexNb = nbt.getInteger(\"pokedexNb\");\n time = nbt.getInteger(\"time\");\n NBTBase temp = nbt.getTag(\"Inventory\");\n if (temp instanceof NBTTagList)\n {\n NBTTagList tagList = (NBTTagList) temp;\n for (int i = 0; i < tagList.tagCount(); i++)\n {\n NBTTagCompound tag = tagList.getCompoundTagAt(i);\n byte slot = tag.getByte(\"Slot\");\n\n if (slot >= 0 && slot < inventory.length)\n {\n inventory[slot] = ItemStack.loadItemStackFromNBT(tag);\n }\n }\n }\n }", "public DictionaryCommand get(int index) throws IndexOutOfBoundsException;", "public Object get(int index) \r\n throws ListIndexOutOfBoundsException {\r\n\t\t\t\t\tif (index >= 0 && index <= numItems) { // If statement to catch out of bounds exception\r\n\t\t\t\t\t\t Node curr = head; // states curr is at head posistion\r\n\t\t\t\t\t\t for (int i = 1; i < index; i++) { // for loop to get to the current posistion that is equivelnt to i\r\n\t\t\t\t\t\t\t curr = curr.getNext();\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t return curr.getItem(); // returns item in current node\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t throw new ListIndexOutOfBoundsException (\"List index out of bounds\"); // else throws an index out of bounds exception\r\n\t\t\t\t\t}\r\n }", "public ItemStack b(InventoryCrafting var1)\n {\n int var2 = var1.getSize();\n boolean var3 = false;\n int var4 = 0;\n int var5 = 0;\n ItemStack var6 = null;\n Vector var7 = new Vector();\n int var8;\n ItemStack var9;\n\n for (var8 = 0; var8 < var2; ++var8)\n {\n var9 = var1.getItem(var8);\n\n if (var9 != null)\n {\n if (var9.getItem() instanceof ItemEnergySensorLocationCard)\n {\n var7.add(var9);\n ++var4;\n }\n else\n {\n if (!(var9.getItem() instanceof ItemEnergyArrayLocationCard))\n {\n var3 = true;\n break;\n }\n\n var6 = var9;\n ++var5;\n }\n }\n }\n\n if (var3)\n {\n return null;\n }\n else if (var4 >= 2 && var4 <= 6 && var5 == 0)\n {\n ItemStack var10 = new ItemStack(IC2NuclearControl.itemEnergyArrayLocationCard, 1, 0);\n ItemEnergyArrayLocationCard.initArray(var10, var7);\n return var10;\n }\n else\n {\n if (var4 == 0 && var5 == 1)\n {\n var8 = ItemEnergyArrayLocationCard.getCardCount(var6);\n\n if (var8 > 0)\n {\n return new ItemStack(Items.getItem(\"electronicCircuit\").getItem(), 2 * var8, 0);\n }\n }\n else if (var5 == 1 && var4 > 0)\n {\n var8 = ItemEnergyArrayLocationCard.getCardCount(var6);\n\n if (var8 + var4 <= 6)\n {\n var9 = new ItemStack(IC2NuclearControl.itemEnergyArrayLocationCard, 1, 0);\n var9.setTag((NBTTagCompound)var6.getTag().clone());\n ItemEnergyArrayLocationCard.initArray(var9, var7);\n return var9;\n }\n }\n\n return null;\n }\n }", "E get( int index );", "@ZenCodeType.Operator(ZenCodeType.OperatorType.INDEXGET)\n default IData getAt(int index) {\n \n return notSupportedOperator(OperatorType.INDEXGET);\n }", "public ItemStack transferStackInSlot(EntityPlayer playerIn, int index) {\n/* 79 */ ItemStack var3 = null;\n/* 80 */ Slot var4 = this.inventorySlots.get(index);\n/* */ \n/* 82 */ if (var4 != null && var4.getHasStack()) {\n/* */ \n/* 84 */ ItemStack var5 = var4.getStack();\n/* 85 */ var3 = var5.copy();\n/* */ \n/* 87 */ if (index < this.field_111243_a.getSizeInventory()) {\n/* */ \n/* 89 */ if (!mergeItemStack(var5, this.field_111243_a.getSizeInventory(), this.inventorySlots.size(), true))\n/* */ {\n/* 91 */ return null;\n/* */ }\n/* */ }\n/* 94 */ else if (getSlot(1).isItemValid(var5) && !getSlot(1).getHasStack()) {\n/* */ \n/* 96 */ if (!mergeItemStack(var5, 1, 2, false))\n/* */ {\n/* 98 */ return null;\n/* */ }\n/* */ }\n/* 101 */ else if (getSlot(0).isItemValid(var5)) {\n/* */ \n/* 103 */ if (!mergeItemStack(var5, 0, 1, false))\n/* */ {\n/* 105 */ return null;\n/* */ }\n/* */ }\n/* 108 */ else if (this.field_111243_a.getSizeInventory() <= 2 || !mergeItemStack(var5, 2, this.field_111243_a.getSizeInventory(), false)) {\n/* */ \n/* 110 */ return null;\n/* */ } \n/* */ \n/* 113 */ if (var5.stackSize == 0) {\n/* */ \n/* 115 */ var4.putStack(null);\n/* */ }\n/* */ else {\n/* */ \n/* 119 */ var4.onSlotChanged();\n/* */ } \n/* */ } \n/* */ \n/* 123 */ return var3;\n/* */ }", "public Object getElementAt(int index) {\n synchronized (itemsList) {\n return itemsList.get(index);\n }\n }", "public Card getCard(int idx) {\n return deck[idx];\n }", "public ItemStack getCartItem() {\n return new ItemStack(ModItems.fluxLevitatorItem);\n }" ]
[ "0.72786397", "0.71936053", "0.7154942", "0.7109939", "0.6936977", "0.6599999", "0.6587918", "0.6516564", "0.63934386", "0.6377934", "0.6355782", "0.6346226", "0.6338172", "0.63261324", "0.6301185", "0.6283248", "0.62773633", "0.6272173", "0.6244515", "0.62344015", "0.6226574", "0.62030816", "0.62008363", "0.6200368", "0.61929435", "0.6183214", "0.617448", "0.617099", "0.61707383", "0.61657465", "0.61475855", "0.6147031", "0.6147031", "0.6146503", "0.613965", "0.6135951", "0.61225986", "0.61170965", "0.6109321", "0.61004835", "0.60739964", "0.6073112", "0.6070071", "0.6059989", "0.605059", "0.60503584", "0.60503584", "0.6046445", "0.6035377", "0.6027236", "0.6026206", "0.6010869", "0.6006077", "0.5999447", "0.59992665", "0.59865355", "0.5985608", "0.5967076", "0.596315", "0.5959965", "0.5954858", "0.5948095", "0.5947659", "0.592584", "0.5916489", "0.59003764", "0.5893719", "0.58917284", "0.58859575", "0.5881296", "0.58795756", "0.5871438", "0.58635443", "0.5861252", "0.58539724", "0.58483565", "0.5845865", "0.5843184", "0.58394873", "0.5832159", "0.5832159", "0.58312607", "0.5826375", "0.5821806", "0.5821621", "0.5809315", "0.57996935", "0.5783316", "0.5782072", "0.5778617", "0.5772657", "0.57708657", "0.57700354", "0.5769683", "0.57687855", "0.57686967", "0.5767133", "0.57596374", "0.57594717", "0.57552874" ]
0.8543653
0
Get index from ItemStack
public int getItemStack(ItemStack itemStack) { return this.ITEMS.lastIndexOf(itemStack); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ItemStack getItemStack(int index) {\n return this.ITEMS.get(index);\n }", "int getItem(int index);", "public int getIndex()\n {\n return index;\n }", "public final int getIndex(){\n return index_;\n }", "public int getIndex()\n {\n return getInt(\"Index\");\n }", "protected int getItemIndex(String key){\n for (int i = 0; i < itemsInTable.size(); i++){\n if (itemsInTable.get(i).equals(key)) return i;\n }\n return -1;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}", "public int getIndex()\n {\n return m_index;\n }", "public int getIndex();", "public int getIndex();", "public int getIndex();", "public int getIndex() {\n\t\treturn index & 0xffff;\n\t}", "private int getIndex() {\n\t\treturn this.index;\r\n\t}", "public int getIndex() {\r\n\t\treturn index;\r\n\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex()\n {\n return index;\n }", "public int getIndex() {\r\n return index;\r\n }", "int getIndex() {\n\t\treturn index;\n\t}", "public ItemStack get(int paramInt)\r\n/* 26: */ {\r\n/* 27: 41 */ return this.a[paramInt];\r\n/* 28: */ }", "public int getIndex(){\r\n \treturn index;\r\n }", "public int getIndex() {\n \t\treturn index;\n \t}", "public int getIndex(){\n return index;\n }", "public int getIndex(){\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "public Integer getIndex() {\n return index;\n }", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\r\n return _index;\r\n }", "public int getIndex() {\r\n return _index;\r\n }", "public static int getFirstItemSlot(Player player, ItemStack istack) {\n\t\tPlayerInventory inv = player.getInventory();\n\t\tItemStack[] contents = inv.getContents();\n\t\tfor (int i = 0; i < contents.length; i++) {\n\t\t\tif (contents[i] != null) {\n\t\t\t\tif (contents[i].getType() == istack.getType()) {\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public int getIndex() {\n\t\treturn 0;\n\t}", "public int getIconIndex() {\n return iconIndex;\n }", "private static int getItemPosition(String name){\n\t\tfor(int i=0;i<ItemListController.getItemListInstance().size();i++){\n\t\t\tif (ItemListController.getItemListInstance().get(i).getName()==name){\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public int getIndex() { return this.index; }", "@Override\r\n\tpublic int getIndex() {\n\t\treturn index;\r\n\t}", "int getChunkIndex();", "int getChunkIndex();", "private int getArrayIndex() {\n\t\tswitch (getId()) {\n\t\tcase 3493:\n\t\t\treturn Recipe_For_Disaster.AGRITH_NA_NA_INDEX;\n\t\tcase 3494:\n\t\t\treturn Recipe_For_Disaster.FLAMBEED_INDEX;\n\t\tcase 3495:\n\t\t\treturn Recipe_For_Disaster.KARAMEL_INDEX;\n\t\tcase 3496:\n\t\t\treturn Recipe_For_Disaster.DESSOURT_INDEX;\n\t\t}\n\t\treturn -1;\n\t}", "public int getItemIndex() {\n return itemIndex;\n }", "public int getIndex() {\r\n return ordinal();\r\n }", "protected final int getIndex() {\n return index;\n }", "public int getItemIndex() {\n return this.itemIndex;\n }", "int getIndex(){\r\n\t\treturn index;\r\n\t}", "public int getIndex(\n )\n {return index;}", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return this.index;\n }", "public int getIndex() {\n return this.index;\n }", "public int getIndex() {\n return mIndex;\n }", "public int findStackableItem(Item pickingUpItem){\n\t\tif(pickingUpItem.stackable()){\r\n\t\tint index=0;\r\n\t\t\r\n\t\tif(tileItems.getItem(0)!=null\t//inital check necessary for index 0\r\n\t\t\t\t&& (tileItems.getItem(0).stackEquivalent(pickingUpItem)\r\n\t\t\t\t&& !tileItems.getItem(0).stackFull())){\t\t\t\t\r\n\t\t\t\t\treturn 0;\r\n\t\t\t\t}\r\n\t\t\r\n\t\twhile(index<tileItems.getItemCount()\r\n\t\t\t&&!tileItems.getItem(index).stackEquivalent(pickingUpItem)\r\n\t\t\t&&tileItems.getItem(index)!=null){\r\n\t\t\tindex++;\r\n\t\t\t\tif(tileItems.getItem(index)!=null\r\n\t\t\t\t&& (tileItems.getItem(index).stackEquivalent(pickingUpItem)\r\n\t\t\t\t&& !tileItems.getItem(index).stackFull()))\t\t\t\t\t\r\n\t\t\t\t\treturn index;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\t//means \"no stackable item found\"\r\n\t}", "public int getIndex() {\n\t\treturn this.index;\n\t}", "public Integer index() {\n return this.index;\n }", "public int getIndex() {\n\t\treturn this.mIndex;\n\t}", "public int getValue() {\r\n return index;\r\n }", "ItemStack getItem();", "@Override\n public final int getIndex() {\n return index;\n }", "private int findIndexByName(String name) {\n // for each item in stock, while item var isn't unassigned:\n for (int i = 0; i < this._noOfItems; i++) {\n // if name is the same, return current index - to the first place where the same name was found\n if (this._stock[i].getName().equals(name))\n return i;\n }\n // if not found, return -1\n return -1;\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "public int getItem(int index) {\n return item_.getInt(index);\n }", "short getKeyIx();", "public int index();", "public int index() {\n\t\treturn this.index;\n\t}", "private int findIndexInStock(FoodItem itemToCheck) {\n // for each item in stock\n for (int i = 0; i < this._noOfItems; i++) {\n // if they're the same\n if (isSameFoodItem(this._stock[i], itemToCheck)) {\n // return current index.\n return i;\n }\n }\n return -1;\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "@Override\n\tpublic ItemStack getStackInSlot(int index) {\n\t\treturn null;\n\t}", "int index();", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }" ]
[ "0.6903175", "0.66632", "0.6573576", "0.6563557", "0.6556843", "0.65557134", "0.6543593", "0.6526499", "0.65142655", "0.6499757", "0.6499757", "0.6499757", "0.64889604", "0.6486642", "0.64822364", "0.64815867", "0.64815867", "0.64815867", "0.6477633", "0.6468742", "0.6466036", "0.645994", "0.64551836", "0.64469117", "0.64435834", "0.64435834", "0.6442688", "0.6442688", "0.6442688", "0.6442688", "0.6442688", "0.6435354", "0.6435354", "0.6435354", "0.6432173", "0.64210737", "0.64210737", "0.64210737", "0.64210737", "0.64210737", "0.64210737", "0.64210737", "0.64210737", "0.64210737", "0.64210737", "0.64210737", "0.64210737", "0.64210737", "0.63927394", "0.63927394", "0.63927394", "0.63927394", "0.63927394", "0.63927394", "0.63891596", "0.6381177", "0.6381177", "0.6374004", "0.6365999", "0.63642156", "0.63559216", "0.6341606", "0.63400495", "0.63356256", "0.63356256", "0.63327354", "0.6326192", "0.6313265", "0.6309492", "0.6301576", "0.6301498", "0.6298336", "0.6295235", "0.6295235", "0.6295235", "0.6295235", "0.6295235", "0.6295235", "0.6279439", "0.6279439", "0.6278967", "0.62644804", "0.6260223", "0.6249324", "0.6233093", "0.6229512", "0.622839", "0.6212077", "0.62026405", "0.62015414", "0.6192861", "0.61902267", "0.6187023", "0.6183767", "0.6181902", "0.61674005", "0.6162434", "0.61568767", "0.61233294", "0.61233294" ]
0.75805324
0
Move this inventory to the specified one
public void moveTo(Inventory inventory) { for (ItemStack itemStack : this.getItemStacks()) { int added = inventory.addItemStack(itemStack); this.ITEMS.get(this.getItemStack(itemStack)).addAmount(-added); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void moveItemStackTo(ItemStack itemStack, Inventory inventory) {\n int itemsAdded = inventory.addItemStack(itemStack);\n\n this.removeItemStack(new ItemStack(itemStack.getItem(), itemsAdded));\n }", "default ItemStack moveOneItemTo(IInventoryComposite dest) {\n return moveOneItemTo(dest, Predicates.alwaysTrue());\n }", "public void moveTo(Actor newActor, int location) throws IllegaleToestandsUitzondering, IllegalArgumentException {\r\n\t\tHolder oldActor = getHolder();\r\n\t\tif(newActor == null)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\tif(!newActor.canHoldItem(this,location) || !isValidHolder(newActor)) { \r\n\t\t\tthrow new IllegaleToestandsUitzondering(\"the given holder isn't valid for this item\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tsetHolder(newActor);\r\n\t\t\toldActor.removeItem(this);\r\n\t\t\tnewActor.addItem(this, location); \r\n\t\t} catch (IllegaleToestandsUitzondering e) {\r\n\t\t\treset(oldActor);\r\n\t\t\tthrow e;\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\treset(oldActor);\r\n\t\t\tthrow e;\r\n\t\t} \r\n\t}", "public void moveTo(Holder newHolder) throws IllegalArgumentException, IllegaleToestandsUitzondering {\r\n\t\tHolder oldHolder = getHolder();\r\n\t\tif(newHolder == null)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\tif(!newHolder.canHoldItem(this) || !isValidHolder(newHolder)) { \r\n\t\t\tthrow new IllegaleToestandsUitzondering(\"the given holder isn't valid for this item\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tsetHolder(newHolder);\r\n\t\t\toldHolder.removeItem(this);\r\n\t\t\tnewHolder.addItem(this); \r\n\t\t} catch (IllegaleToestandsUitzondering e) {\r\n\t\t\treset(oldHolder);\r\n\t\t\tthrow e;\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\treset(oldHolder);\r\n\t\t\tthrow e;\r\n\t\t} \r\n\t}", "public void movePoint(int slots) {\n if (0 >= this.pointInventory + slots) {\n this.pointInventory = 0;\n }\n else this.pointInventory = Math.min(this.lenInventory - 1, this.pointInventory + slots);\n }", "public void swapItemFromInventoryToOther(@NotNull Usable item, Usable other) {\n for (int i = 0; i < size; i++) {\n if (item == items[i]) {\n this.removeItem(i);\n if (other != null) {\n this.setItem(other, i);\n }\n return;\n }\n }\n }", "public void updateInventory ( ) {\n\t\texecute ( handle -> handle.updateInventory ( ) );\n\t}", "private void resetPlayer() {\r\n List<Artefact> inventory = currentPlayer.returnInventory();\r\n Artefact item;\r\n int i = inventory.size();\r\n\r\n while (i > 0) {\r\n item = currentPlayer.removeInventory(inventory.get(i - 1).getName());\r\n currentLocation.addArtefact(item);\r\n i--;\r\n }\r\n currentLocation.removePlayer(currentPlayer.getName());\r\n locationList.get(0).addPlayer(currentPlayer);\r\n currentPlayer.setHealth(3);\r\n }", "public void craft() {\n \t\tItemStack[] clonedContents = this.getGrid().getClonedContents();\n \t\tfor (int i = 0; i < clonedContents.length; i++) {\n \t\t\tItemStack clickedItem = clonedContents[i];\n \t\t\tif (clickedItem == null) {\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\tclickedItem.setAmount(clickedItem.getAmount() - 1);\n \t\t\tif (clickedItem.isEmpty()) {\n \t\t\t\tclickedItem = null;\n \t\t\t}\n \t\t\tclonedContents[i] = clickedItem;\n \t\t}\n \t\tthis.getGrid().setContents(clonedContents);\n \t}", "@EventHandler (priority = EventPriority.HIGHEST)\n\tpublic void onClick(final InventoryClickEvent event) {\n\t\tif (!(event.getWhoClicked() instanceof Player)) {\n\t\t\treturn;\n\t\t}\n\t\tfinal Player player = (Player)event.getWhoClicked();\n\t\t\n\t\tShopObject shop = getShopPlayerIsViewing(player);\n\t\tif (shop == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (event.getAction() == InventoryAction.MOVE_TO_OTHER_INVENTORY) {\n\t\t\t//trying to put in shop part of inventory\n\t\t\tif (event.getRawSlot() != event.getSlot()) {\n\t\t\t\tif (!canPutItemInShop(shop, event.getCurrentItem(), player)) {\n\t\t\t\t\tevent.setCancelled(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//TODO once you cancel this one, the item on cursor becomes invisible. Try doing event.setCursor()\n\t\telse if (!event.getCursor().getType().equals(Material.AIR)) { //have an item \n\t\t\t//trying to put in shop part of inventory\n\t\t\tif (event.getRawSlot() == event.getSlot()) { \n\t\t\t\tItemStack cursor = new ItemStack(event.getCursor());\n\t\t\t\tif (!canPutItemInShop(shop, cursor, player)) {\n\t\t\t\t\tevent.setCancelled(true);\n\t\t\t\t\tevent.setCursor(new ItemStack(Material.AIR));\n\t\t\t\t\tplayer.getInventory().addItem(cursor);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tplugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() { \n\t\t\tpublic void run() { \n\t\t\t\tplayer.updateInventory();\n\t\t\t}\n\t\t}, 5L); \n\t}", "public void setInventory(int inventory){\r\n inventoryNumber += inventory;\r\n }", "public void move() {\n energy -= 0.03;\n if (energy < 0) {\n energy = 0;\n }\n }", "public void move()\n\t{\n\t\tVector v = ship.v;\n\t\tb = b.getLocation().add(v).getBlock();\n\t\tif(triangle != null) triangle.move();\n\t\tif(rear != null) rear.move();\n\t\tif(foreAndAft != null) foreAndAft.move();\n\t\tif(sails != null) for(int i = 0; i < sails.size(); i++)\n\t\t{\n\t\t\tSail sail = sails.get(i);\n\t\t\tsail.move();\n\t\t}\n\t}", "public void sellProduct(){\n if(quantity > 0)\n this.quantity -= 1;\n else\n throw new IllegalArgumentException(\"Cannot sell \"+ this.model +\" with no inventory\");\n\n }", "public void takeItemsFromChest() {\r\n currentRoom = player.getCurrentRoom();\r\n for (int i = 0; i < currentRoom.getChest().size(); i++) {\r\n player.addToInventory(currentRoom.getChest().get(i));\r\n currentRoom.getChest().remove(i);\r\n }\r\n\r\n }", "default ItemStack moveOneItemTo(IInventoryComposite dest, Predicate<ItemStack> filter) {\n for (IInventoryAdapter src : this) {\n for (IInventoryAdapter dst : dest) {\n InventoryManipulator imSource = InventoryManipulator.get(src);\n ItemStack moved = imSource.moveItem(dst, filter);\n if (!InvTools.isEmpty(moved))\n return moved;\n }\n }\n return InvTools.emptyStack();\n }", "public void setInventorySlotContents(int par1, ItemStack par2ItemStack)\n {\n this.furnaceItemStacks[par1] = par2ItemStack;\n\n if (par2ItemStack != null && par2ItemStack.stackSize > this.getInventoryStackLimit())\n {\n par2ItemStack.stackSize = this.getInventoryStackLimit();\n }\n }", "@Override\r\n\tpublic void undo() throws InstructionExecutionException {\n\t\ttry\r\n\t\t{\r\n\t\t\tthis.robotContainer.pickItem(id);\r\n\t\t\tthis.robotContainer.addItem(lastItem);\r\n\t\t\tthis.engine.addFuel(lastFuel-this.engine.getFuel());\r\n\t\t\tthis.engine.addRecycledMaterial(lastRecycledMaterial-this.engine.getRecycledMaterial());\r\n\t\t} \r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tthrow new InstructionExecutionException();\r\n\t\t}\r\n\t}", "public void moveTo(Vector position) {\n }", "@Override\n public void moveBetweenShelves(Shelf from, Shelf to, int amount) throws IllegalCupboardException{\n if(from == null || to == null)\n throw new NullPointerException();\n if(amount <= 0)\n throw new IllegalArgumentException();\n\n if(!shelves.contains(from) || !shelves.contains(to))\n throw new NoSuchElementException();\n\n if(from.getCurrentType() == null)\n throw new IllegalCupboardException(\"Trying to remove resources from an empty shelf\");\n\n try{\n from.moveTo(to, from.getCurrentType(), amount);\n }catch(IllegalResourceTransferException e){\n throw new IllegalCupboardException(\"Can't transfer the resources\");\n }\n\n //if the new configuration is not valid, initial state is restored and the IllegalCupboardException is thrown\n if(!isValid()){\n try{\n to.moveTo(from, to.getCurrentType(), amount);\n }catch(IllegalResourceTransferException e){\n throw new IllegalArgumentException();\n }\n throw new IllegalCupboardException(\"Cupboard configuration would not be valid\");\n }\n }", "@Override\n\tpublic void nextTurn()\n\t{\n\t\tif (isInventoryFull())\n\t\t{\n\t\t\tgetMyPlayer().getDoneActions().add(\n\t\t\t\t\t\"[THE INVENTORY OF \" + myWorker.getId()\n\t\t\t\t\t\t\t+ \" IS FULL AND IS GONNA UNLOAD]\");\n\t\t\tdestBuilding.getWorkersInside().remove(myWorker);\n\t\t\tBuilding unloadBuilding = null;\n\t\t\tif (getMyPlayer().getStockpiles().size() > 0)\n\t\t\t{\n\t\t\t\tRandom random = new Random(100);\n\t\t\t\tint chosenStockpile = random.nextInt(getMyPlayer()\n\t\t\t\t\t\t.getStockpiles().size());\n\n\t\t\t\tunloadBuilding = getMyPlayer().getStockpiles().get(\n\t\t\t\t\t\tchosenStockpile);\n\t\t\t} else if (getMyPlayer().getMainBuildings().size() > 0)\n\t\t\t{\n\t\t\t\tunloadBuilding = getMyPlayer().getMainBuildings().get(0);\n\t\t\t}\n\n\t\t\tif (doIMoveToBuilding(unloadBuilding))\n\t\t\t{\n\t\t\t\tMoveAction move;\n\t\t\t\tPoint dest = getMoveDestination(unloadBuilding);\n\t\t\t\tif (dest != null)\n\t\t\t\t{\n\t\t\t\t\tmove = new MoveAction(getMyPlayer(), myWorker, dest);\n\t\t\t\t\tmove.doAction();\n\t\t\t\t}\n\t\t\t} else\n\t\t\t{\n\t\t\t\tgetMyPlayer().getDoneActions().add(\n\t\t\t\t\t\t\"[\" + myWorker.getId() + \" ADDED \"\n\t\t\t\t\t\t\t\t+ myWorker.getLoadInInventory()\n\t\t\t\t\t\t\t\t+ \" TO RESOURCES]\");\n\t\t\t\tif (destBuilding instanceof Farm)\n\t\t\t\t\tgetMyPlayer().getPlayerInfo().getFoodInStock()\n\t\t\t\t\t\t\t.addTo(myWorker.getLoadInInventory());\n\t\t\t\telse if (destBuilding instanceof StoneMine)\n\t\t\t\t\tgetMyPlayer().getPlayerInfo().getStoneInStock()\n\t\t\t\t\t\t\t.addTo(myWorker.getLoadInInventory());\n\t\t\t\telse if (destBuilding instanceof GoldMine)\n\t\t\t\t\tgetMyPlayer().getPlayerInfo().getGoldInStock()\n\t\t\t\t\t\t\t.addTo(myWorker.getLoadInInventory());\n\t\t\t\telse if (destBuilding instanceof WoodCamp)\n\t\t\t\t\tgetMyPlayer().getPlayerInfo().getLumberInStock()\n\t\t\t\t\t\t\t.addTo(myWorker.getLoadInInventory());\n\t\t\t\tmyWorker.setOccupationType(OccupationType.IDLE);\n\t\t\t\tdestBuilding.getWorkersInside().remove(myWorker);\n\t\t\t\tmyWorker.setLoadInInventory(0);\n\t\t\t\tmyWorker.setActionController(null);\n\t\t\t}\n\t\t} else if (doIMoveToBuilding(destBuilding))\n\t\t{\n\t\t\tPoint dest = getMoveDestination(destBuilding);\n\t\t\tif (dest == null)\n\t\t\t\tSystem.err\n\t\t\t\t\t\t.println(\"BuildController class:nextTurn(): dest is null! do something!!!!\");\n\t\t\telse\n\t\t\t{\n\t\t\t\tMoveAction move = new MoveAction(getMyPlayer(), myWorker, dest);\n\t\t\t\tmove.doAction();\n\t\t\t}\n\t\t} else if (!isInventoryFull())\n\t\t{\n\t\t\tdestBuilding.getWorkersInside().add(myWorker);\n\t\t\tint collectResourcePerTurn = 0;\n\t\t\tif (destBuilding instanceof Farm)\n\t\t\t{\n\t\t\t\tmyWorker.setFoodCollectingExperience(myWorker\n\t\t\t\t\t\t.getFoodCollectingExperience() + 0.01);\n\t\t\t\tfor (int i = 0; i < getMyPlayer().getPlayerInfo()\n\t\t\t\t\t\t.getBuildingSize().get(destBuilding.getObjectType()); i++)\n\t\t\t\t{\n\t\t\t\t\tfor (int j = 0; j < getMyPlayer().getPlayerInfo()\n\t\t\t\t\t\t\t.getBuildingSize()\n\t\t\t\t\t\t\t.get(destBuilding.getObjectType()); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tcollectResourcePerTurn += getMyPlayer().getMyMap()\n\t\t\t\t\t\t\t\t.getMapBlocks()[i\n\t\t\t\t\t\t\t\t+ destBuilding.getPosition().getX()][j\n\t\t\t\t\t\t\t\t+ destBuilding.getPosition().getY()].getFood();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcollectResourcePerTurn /= (getMyPlayer().getPlayerInfo()\n\t\t\t\t\t\t.getBuildingSize().get(destBuilding.getObjectType()) * getMyPlayer()\n\t\t\t\t\t\t.getPlayerInfo().getBuildingSize()\n\t\t\t\t\t\t.get(destBuilding.getObjectType()));\n\t\t\t\tcollectResourcePerTurn *= (int) ((1 + myWorker\n\t\t\t\t\t\t.getFoodCollectingExperience()) * (getMyPlayer()\n\t\t\t\t\t\t.getPlayerInfo().getFoodProductionRate()));\n\t\t\t} else if (destBuilding instanceof GoldMine)\n\t\t\t{\n\t\t\t\tmyWorker.setGoldMiningExperience(myWorker\n\t\t\t\t\t\t.getGoldMiningExperience() + 0.01);\n\t\t\t\tfor (int i = 0; i < getMyPlayer().getPlayerInfo()\n\t\t\t\t\t\t.getBuildingSize().get(destBuilding.getObjectType()); i++)\n\t\t\t\t{\n\t\t\t\t\tfor (int j = 0; j < getMyPlayer().getPlayerInfo()\n\t\t\t\t\t\t\t.getBuildingSize()\n\t\t\t\t\t\t\t.get(destBuilding.getObjectType()); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tcollectResourcePerTurn += getMyPlayer().getMyMap()\n\t\t\t\t\t\t\t\t.getMapBlocks()[i\n\t\t\t\t\t\t\t\t+ destBuilding.getPosition().getX()][j\n\t\t\t\t\t\t\t\t+ destBuilding.getPosition().getY()].getGold();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcollectResourcePerTurn /= (getMyPlayer().getPlayerInfo()\n\t\t\t\t\t\t.getBuildingSize().get(destBuilding.getObjectType()) * getMyPlayer()\n\t\t\t\t\t\t.getPlayerInfo().getBuildingSize()\n\t\t\t\t\t\t.get(destBuilding.getObjectType()));\n\n\t\t\t\tcollectResourcePerTurn *= (int) ((1 + myWorker\n\t\t\t\t\t\t.getGoldMiningExperience()) * (getMyPlayer()\n\t\t\t\t\t\t.getPlayerInfo().getGoldProductionRate()));\n\t\t\t} else if (destBuilding instanceof StoneMine)\n\t\t\t{\n\t\t\t\tmyWorker.setStoneMiningExperience(myWorker\n\t\t\t\t\t\t.getFoodCollectingExperience() + 0.01);\n\t\t\t\tfor (int i = 0; i < getMyPlayer().getPlayerInfo()\n\t\t\t\t\t\t.getBuildingSize().get(destBuilding.getObjectType()); i++)\n\t\t\t\t{\n\t\t\t\t\tfor (int j = 0; j < getMyPlayer().getPlayerInfo()\n\t\t\t\t\t\t\t.getBuildingSize()\n\t\t\t\t\t\t\t.get(destBuilding.getObjectType()); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tcollectResourcePerTurn += getMyPlayer().getMyMap()\n\t\t\t\t\t\t\t\t.getMapBlocks()[i\n\t\t\t\t\t\t\t\t+ destBuilding.getPosition().getX()][j\n\t\t\t\t\t\t\t\t+ destBuilding.getPosition().getY()].getStone();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcollectResourcePerTurn /= (getMyPlayer().getPlayerInfo()\n\t\t\t\t\t\t.getBuildingSize().get(destBuilding.getObjectType()) * getMyPlayer()\n\t\t\t\t\t\t.getPlayerInfo().getBuildingSize()\n\t\t\t\t\t\t.get(destBuilding.getObjectType()));\n\n\t\t\t\tcollectResourcePerTurn *= (int) ((1 + myWorker\n\t\t\t\t\t\t.getStoneMiningExperience()) * (getMyPlayer()\n\t\t\t\t\t\t.getPlayerInfo().getStoneProductionRate()));\n\n\t\t\t} else if (destBuilding instanceof WoodCamp)\n\t\t\t{\n\t\t\t\tmyWorker.setWoodCampExperience(myWorker.getWoodCampExperience() + 0.01);\n\t\t\t\tfor (int i = 0; i < getMyPlayer().getPlayerInfo()\n\t\t\t\t\t\t.getBuildingSize().get(destBuilding.getObjectType()); i++)\n\t\t\t\t{\n\t\t\t\t\tfor (int j = 0; j < getMyPlayer().getPlayerInfo()\n\t\t\t\t\t\t\t.getBuildingSize()\n\t\t\t\t\t\t\t.get(destBuilding.getObjectType()); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tcollectResourcePerTurn += getMyPlayer().getMyMap()\n\t\t\t\t\t\t\t\t.getMapBlocks()[i\n\t\t\t\t\t\t\t\t+ destBuilding.getPosition().getX()][j\n\t\t\t\t\t\t\t\t+ destBuilding.getPosition().getY()]\n\t\t\t\t\t\t\t\t.getLumber();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcollectResourcePerTurn /= (getMyPlayer().getPlayerInfo()\n\t\t\t\t\t\t.getBuildingSize().get(destBuilding.getObjectType()) * getMyPlayer()\n\t\t\t\t\t\t.getPlayerInfo().getBuildingSize()\n\t\t\t\t\t\t.get(destBuilding.getObjectType()));\n\n\t\t\t\tcollectResourcePerTurn *= (int) ((1 + myWorker\n\t\t\t\t\t\t.getWoodCampExperience()) * (getMyPlayer()\n\t\t\t\t\t\t.getPlayerInfo().getWoodProductionRate()));\n\t\t\t\tgetMyPlayer().getDoneActions().add(\n\t\t\t\t\t\t\"[\" + myWorker.getId() + \" ADD \"\n\t\t\t\t\t\t\t\t+ collectResourcePerTurn\n\t\t\t\t\t\t\t\t+ \" OF RESOURCE THIS TURN]\");\n\t\t\t}\n\n\t\t\tmyWorker.setLoadInInventory(collectResourcePerTurn\n\t\t\t\t\t+ myWorker.getLoadInInventory());\n\t\t}\n\t}", "public void swapInventoryItems(int i, int j) {\n\t\tint k = inv[i];\n\t\tinv[i] = inv[j];\n\t\tinv[j] = k;\n\t\tk = invStackSizes[i];\n\t\tinvStackSizes[i] = invStackSizes[j];\n\t\tinvStackSizes[j] = k;\n\t}", "public int move(int from, int to) {\n // Gracefully handle items beyond end\n final int size = mItems.size();\n from = constrain(from, 0, size - 1);\n to = constrain(to, 0, size - 1);\n\n final Path item = mItems.remove(from);\n mItems.add(to, item);\n return to;\n }", "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 }", "public com.google.longrunning.Operation setInventory(com.google.cloud.retail.v2beta.SetInventoryRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getSetInventoryMethod(), getCallOptions(), request);\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\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\n public void moveResourceToContainer(ResourceContainer container, Shelf from, ResourceSingle resource, int amount) throws IllegalCupboardException {\n if(container == null || from == null || resource == null)\n throw new NullPointerException();\n if(amount <= 0)\n throw new IllegalArgumentException(\"The amount must be positive\");\n if(!contains(from))\n throw new NoSuchElementException(\"Container \" + from.getId() + \" does not contain \" + amount + \" \" + resource.getId());\n\n try{\n from.moveTo(container, resource, amount);\n }catch(IllegalResourceTransferException e ){\n throw new IllegalCupboardException(\"Resource transaction cannot be performed\");\n }\n }", "public void move() {\n for (int i = 0; i < Vampiro.getNumVamp(); i++) {\n\n lista[i].move();\n }\n }", "public final void give(final Player player) {\n\t\tplayer.getInventory().addItem(this.getItem());\n\t}", "@Override\r\n public void moveCard() {\n \r\n }", "public void restoreInventory(String table, String ID, String type, String l, String arm, \r\n\t\t\tString seat, String cushion, int price, String manuId ) {\r\n\t\tif(table.equals(\"chair\")) {\r\n\t\t\ttry {\r\n\t\t\tString query= \"INSERT INTO chair(ID, Type, Legs, Arms, Seat, Cushion, Price, ManuID) VALUES (?,?,?,?,?,?,?,?)\";\r\n \t\tPreparedStatement state= getDBConnect().prepareStatement(query);\r\n \t\tstate.setString(1,ID);\r\n \t\tstate.setString(2, type);\r\n \t\tstate.setString(3,l);\r\n \t\tstate.setString(4,arm);\r\n \t\tstate.setString(5,seat);\r\n \t\tstate.setString(6, cushion);\r\n \t\tstate.setInt(7, price);\r\n \t\tstate.setString(8,manuId);\r\n \t\t\r\n \t\tint rows= state.executeUpdate();\r\n \t\tSystem.out.println(\"Rows updated: \"+rows);\r\n \t\tstate.close();\r\n\t\t}\r\n\t\tcatch(SQLException e) {\r\n\t\t\t System.out.println(\"Error, unable to insert new item into table 'Chair' \");\r\n\t\t }\r\n\t\t\t\r\n\t\t}\r\n\t}", "public void dropItem(int x, int y, int i) {\n \n ParentItem item = getInventory()[i];\n \n if (item != null) {\n \n inventory.removeItem(i);\n \n item.putOnBoard(x, y, gameboard);\n \n }\n \n }", "public void moveCard(int pileId, int pos, int destPileId) {\n \t\tCard c = mTable.get(pileId).takeCard(pos);\n \t\tif (c != null) {\n \t\t\tmTable.get(destPileId).addCard(c);\n \t\t\tsendUpdatedState();\n \t\t}\n \t}", "@Override\r\n\tpublic ItemStack transferStackInSlot(EntityPlayer playerIn, int index)\r\n {\r\n ItemStack itemstack = ItemStackTools.getEmptyStack();\r\n Slot slot = this.inventorySlots.get(index);\r\n\r\n if (slot != null && slot.getHasStack())\r\n {\r\n ItemStack itemstack1 = slot.getStack();\r\n itemstack = itemstack1.copy();\r\n\r\n if (index == 0)\r\n {\r\n if (!this.mergeItemStack(itemstack1, 10, 46, false))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n\r\n slot.onSlotChange(itemstack1, itemstack);\r\n }\r\n else if (index >= 10 && index < 37)\r\n {\r\n if (!this.mergeItemStack(itemstack1, 37, 46, false))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n }\r\n else if (index >= 37 && index < 46)\r\n {\r\n if (!this.mergeItemStack(itemstack1, 10, 37, false))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n }\r\n else if (!this.mergeItemStack(itemstack1, 10, 46, false))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n\r\n if (ItemStackTools.isEmpty(itemstack1))\r\n {\r\n slot.putStack(ItemStackTools.getEmptyStack());\r\n }\r\n else\r\n {\r\n slot.onSlotChanged();\r\n }\r\n\r\n if (ItemStackTools.getStackSize(itemstack1) == ItemStackTools.getStackSize(itemstack))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n\r\n slot.onTake(playerIn, itemstack1);\r\n }\r\n\r\n return itemstack;\r\n }", "public void moveAnimal(AnimalSol animal, String from, String to) {\n removeAnimal(animal);\n placeAnimal(animal, to);\n }", "public void moveToRoom(Rooms room) {\n this.currentRoom = room;\n }", "public void useKey() {\n Key key = this.getInventory().getFirstKey();\n if (key != null){\n this.getInventory().removeItems(key);\n }\n }", "@Override\n public ItemStack transferStackInSlot(EntityPlayer player, int sourceSlotIndex)\n {\n Slot sourceSlot = (Slot)inventorySlots.get(sourceSlotIndex);\n if (sourceSlot == null || !sourceSlot.getHasStack()) return ItemStack.EMPTY; //EMPTY_ITEM\n ItemStack sourceStack = sourceSlot.getStack();\n ItemStack copyOfSourceStack = sourceStack.copy();\n\n // Check if the slot clicked is one of the vanilla container slots\n if (sourceSlotIndex >= VANILLA_FIRST_SLOT_INDEX && sourceSlotIndex < VANILLA_FIRST_SLOT_INDEX + VANILLA_SLOT_COUNT) {\n // This is a vanilla container slot so merge the stack into the tile inventory\n // We can only put it into the first slot though, keep that in mind.\n if (!mergeItemStack(sourceStack, TE_INVENTORY_FIRST_SLOT_INDEX, TE_INVENTORY_FIRST_SLOT_INDEX + 1, false)){\n return ItemStack.EMPTY; // EMPTY_ITEM\n }\n } else if (sourceSlotIndex >= TE_INVENTORY_FIRST_SLOT_INDEX && sourceSlotIndex < TE_INVENTORY_FIRST_SLOT_INDEX + TE_INVENTORY_SLOT_COUNT) {\n // This is a TE slot so merge the stack into the players inventory\n if (!mergeItemStack(sourceStack, VANILLA_FIRST_SLOT_INDEX, VANILLA_FIRST_SLOT_INDEX + VANILLA_SLOT_COUNT, false)) {\n return ItemStack.EMPTY; // EMPTY_ITEM\n }\n } else {\n return ItemStack.EMPTY; // EMPTY_ITEM\n }\n\n // If stack size == 0 (the entire stack was moved) set slot contents to null\n if (sourceStack.getCount() == 0) { // getStackSize\n sourceSlot.putStack(ItemStack.EMPTY); // EMPTY_ITEM\n } else {\n sourceSlot.onSlotChanged();\n }\n\n sourceSlot.onTake(player, sourceStack); //onPickupFromSlot()\n return copyOfSourceStack;\n }", "public static void swapInventoryContents(final Inventory inventory1, final Inventory inventory2) throws InvalidParameterException, NotEnoughSpaceException {\n if (inventory1 == null) {\n throw new InvalidParameterException(\"Cannot swap contents, inventory1 is null.\");\n }\n if (inventory2 == null) {\n throw new InvalidParameterException(\"Cannot swap contents, inventory2 is null.\");\n }\n ItemStack[] contents1 = Arrays.stream(inventory1.getContents()).filter(ItemAPI::isValidItem).toArray(ItemStack[]::new);\n ItemStack[] contents2 = Arrays.stream(inventory2.getContents()).filter(ItemAPI::isValidItem).toArray(ItemStack[]::new);\n if (contents1.length > inventory2.getSize()) {\n throw new NotEnoughSpaceException(\"Cannot swap contents, inventory2 doesn't have enough space for inventory1's items.\");\n }\n if (contents2.length > inventory1.getSize()) {\n throw new NotEnoughSpaceException(\"Cannot swap contents, inventory1 doesn't have enough space for inventory2's items.\");\n }\n inventory1.clear();\n inventory2.clear();\n inventory1.setContents(contents2);\n inventory2.setContents(contents1);\n }", "public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> setInventory(\n com.google.cloud.retail.v2beta.SetInventoryRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getSetInventoryMethod(), getCallOptions()), request);\n }", "@Override\n\tpublic Weapon sell(int itemNumber) {\n\t\t\n\t\t\n\t\treturn inventory.removeItem(itemNumber);\n\t}", "public void remove(Inventory toRemove) throws InventoryNotFoundException {\n requireNonNull(toRemove);\n if (!list.remove(toRemove)) {\n throw new InventoryNotFoundException();\n }\n }", "public void save() {\r\n\t\tGame.getInstance().getInventory().add(id);\r\n\t}", "@Override\n\tpublic void editInventory(Inventory inventory) {\n\t\tinventoryDao.save(inventory);\n\t}", "public void moveToSelected() {\n if (selectionX != -1) {\n // This short circuits but if it's not multiplayer the second statement will do nothing\n if (map.moveEntity(map.getCurrentTurnHero(), selectionX, selectionY) && multiplayerGameManager\n .hookPlayerMove(selectionX, selectionY)) {\n map.updateVisibilityArray();\n visionChanged = true;\n // See if this hero has moved on a position that meets any movement objectives\n gameState.updateMovementGoal(selectionX, selectionY);\n }\n }\n\n if (map.getCurrentTurnHero().getActionPoints() < 2) {\n nextTurn();\n }\n }", "public void chase(City city) {\n super.move(city, 1);\n }", "public void moveInPopulation()\n\t{\n\t\tsynchronized (this) {\n\t\tcurrentState.moveInPopulation();\n\t\t}\n\t}", "private void inventoryHandler(){\n final Button TAB = getOwnerArea().getKeyboard().get(Keyboard.TAB);\n final Button SPACE = getOwnerArea().getKeyboard().get(Keyboard.SPACE);\n final Button R = getOwnerArea().getKeyboard().get(Keyboard.R);\n final Button T = getOwnerArea().getKeyboard().get(Keyboard.T);\n final Button Y = getOwnerArea().getKeyboard().get(Keyboard.Y);\n final Button U = getOwnerArea().getKeyboard().get(Keyboard.U);\n final Button I = getOwnerArea().getKeyboard().get(Keyboard.I);\n final Button O = getOwnerArea().getKeyboard().get(Keyboard.O);\n final Button P = getOwnerArea().getKeyboard().get(Keyboard.P);\n final Button K = getOwnerArea().getKeyboard().get(Keyboard.K);\n\n //Used for tests, as asked in the instructions\n if (R.isPressed()) {\n inventory.add(ARPGItem.ARROW, 1);\n } else if (T.isPressed()) {\n inventory.add(ARPGItem.SWORD, 1);\n } else if (Y.isPressed()) {\n inventory.add(ARPGItem.STAFF, 1);\n } else if (U.isPressed()) {\n inventory.add(ARPGItem.BOW, 1);\n } else if (I.isPressed()) {\n inventory.add(ARPGItem.BOMB, 1);\n } else if (O.isPressed()) {\n inventory.add(ARPGItem.CASTLEKEY, 1);\n } else if (P.isPressed()) {\n inventory.add(ARPGItem.WINGS, 1);\n } else if (K.isPressed()) {\n inventory.add(ARPGItem.CHESTKEY, 1);\n }\n\n /*If the player does not have any currentItem anymore we switch it (f. ex. if a player\n uses his last bomb or if the constructor assigns as the player's current item an item\n he does not possess by mistake)\n */\n if(!possess(currentItem)) {\n currentItem = (ARPGItem) inventory.switchItem(currentItem);\n }\n\n //Switches item.\n if(TAB.isPressed()){\n currentItem = (ARPGItem) inventory.switchItem(currentItem);\n if(currentItem == ARPGItem.ARROW){\n currentItem = (ARPGItem) inventory.switchItem(currentItem);\n }\n }\n\n //Uses the item and adapts the animations\n if(SPACE.isPressed() && !isDisplacementOccurs()){\n if(currentItem.use(getOwnerArea(), getOrientation(), getCurrentMainCellCoordinates())){\n switch(currentItem){\n case BOMB:\n inventory.remove(currentItem, 1);\n break;\n case BOW:\n if(actionTimer >= COOLDOWN) {\n animateAction = true;\n currentAnimation = bowAnimations[getOrientation().ordinal()];\n shootArrow = true;\n actionTimer = 0.f;\n }\n break;\n case SWORD:\n animateAction = true;\n currentAnimation = swordAnimations[getOrientation().ordinal()];\n break;\n case STAFF:\n animateAction = true;\n currentAnimation = staffAnimations[getOrientation().ordinal()];\n break;\n }\n\n }\n }\n\n //Wings have a special treatment because SPACE needs to be down and not pressed\n if (currentItem == ARPGItem.WINGS && SPACE.isDown()) {\n //Sets the animation for the current orientation. Make sure it doesn't fly yet\n // so that the animation is not stuck.\n if (!canFly) {\n currentAnimation = flyAnimations[getOrientation().ordinal()];\n }\n canFly = true;\n } else {\n //Resets to idleAnimations\n if (canFly) {\n currentAnimation = idleAnimations[getOrientation().ordinal()];\n }\n canFly = false;\n }\n }", "public final void give(final Player player, final int slot) {\n\t\tplayer.getInventory().setItem(slot, this.getItem());\n\t}", "public void moveTo(Position newPosition)\n\t{\n\t\tcurrentPosition = newPosition;\n\t}", "public void move(){\n\t\t\n\t}", "@Override\r\n\tpublic void move(String from, String to) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void setInventoryItems() {\n\t\t\r\n\t}", "public void move() {\n\t\tthis.hero.setPF(1);\n\t\tthis.hero.setState(this.hero.getMoved());\n\t}", "public void moveChild( ChildType child, int index );", "void dropItem(Command command) {\n HashMap newInventory = inventory.getInventory();\n Iterator iterator = newInventory.entrySet().iterator();\n String seeItem;\n// int indexItem = -1;\n String nameOfItem = \"\";\n String dropFromInventory = \"debug\";\n\n while (iterator.hasNext()) {\n HashMap.Entry liste = (HashMap.Entry) iterator.next();\n String itemName = (String) liste.getKey();\n if (itemName.equalsIgnoreCase(command.getSecondWord())) {\n dropFromInventory = itemName;\n nameOfItem = itemName;\n break;\n }\n }\n if (!nameOfItem.equals(\"\")) {\n itemLocation.addItem(currentRoom, new PickableItem(nameOfItem, inventory.getItemWeight(nameOfItem), inventory.getUseable(nameOfItem)));\n inventory.removeItemInventory(nameOfItem);\n System.out.println(\"You have dropped: \" + nameOfItem);\n\n } else {\n System.out.println(\"Can't drop item that isn't in inventory \" + command.getSecondWord());\n }\n }", "public boolean moveCard(AbstractCard card, CardCollection moveLocation);", "void addElementToInventory(String elementName);", "public void closeInventory ( ) {\n\t\texecute ( handle -> handle.closeInventory ( ) );\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}", "@Override\n\tpublic void closeInventory() {\n\t\t\n\t}", "public void move(int from, int to) {\n // Peek the top element without popping it, to remain in\n // consistent state if push throws an exception\n towers[to].push(towers[from].peek());\n towers[from].pop();\n numMoves++;\n }", "@Override\r\n\tpublic void move(String srcAbsPath, String destAbsPath)\r\n\t\t\tthrows ItemExistsException, PathNotFoundException,\r\n\t\t\tVersionException, ConstraintViolationException, LockException,\r\n\t\t\tRepositoryException {\n\t\t\r\n\t}", "public void move(Deck other){\n if (numCards > 0) {\n other.add(this.deck[numCards - 1]);\n numCards--;\n }else {\n System.out.println(\"Not enough cards to move!\");\n }\n }", "public void moveCardViewToPile(CardView cardToMove, CardPileView destPile) {\n destPile.addCardView(cardToMove);\n cards.remove(cardToMove);\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 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}", "public void move() {\n super.move(DIRECTION.getRandom());\n }", "public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2)\r\n\t {\r\n\t\t ItemStack itemstack = null;\r\n\t\t Slot slot = (Slot)this.inventorySlots.get(par2);\r\n\r\n\t\t if (slot != null && slot.getHasStack())\r\n\t\t {\r\n\t\t\t ItemStack itemstack1 = slot.getStack();\r\n\t\t\t itemstack = itemstack1.copy();\r\n\r\n\t\t\t if (par2 == 0)\r\n\t\t\t {\r\n\t\t\t\t if (!this.mergeItemStack(itemstack1, 1, 37, true))\r\n\t\t\t\t {\r\n\t\t\t\t\t return null;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t else\r\n\t\t\t {\r\n\t\t\t\t if (((Slot)this.inventorySlots.get(0)).getHasStack() || !((Slot)this.inventorySlots.get(0)).isItemValid(itemstack1))\r\n\t\t\t\t {\r\n\t\t\t\t\t return null;\r\n\t\t\t\t }\r\n\r\n\t\t\t\t if (itemstack1.hasTagCompound() && itemstack1.stackSize == 1)\r\n\t\t\t\t {\r\n\t\t\t\t\t ((Slot)this.inventorySlots.get(0)).putStack(itemstack1.copy());\r\n\t\t\t\t\t itemstack1.stackSize = 0;\r\n\t\t\t\t }\r\n\t\t\t\t else if (itemstack1.stackSize >= 1)\r\n\t\t\t\t {\r\n\t\t\t\t\t ((Slot)this.inventorySlots.get(0)).putStack(new ItemStack(itemstack1.itemID, 1, itemstack1.getItemDamage()));\r\n\t\t\t\t\t --itemstack1.stackSize;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\r\n\t\t\t if (itemstack1.stackSize == 0)\r\n\t\t\t {\r\n\t\t\t\t slot.putStack((ItemStack)null);\r\n\t\t\t }\r\n\t\t\t else\r\n\t\t\t {\r\n\t\t\t\t slot.onSlotChanged();\r\n\t\t\t }\r\n\r\n\t\t\t if (itemstack1.stackSize == itemstack.stackSize)\r\n\t\t\t {\r\n\t\t\t\t return null;\r\n\t\t\t }\r\n\r\n\t\t\t slot.onPickupFromSlot(par1EntityPlayer, itemstack1);\r\n\t\t }\r\n\r\n\t\t return itemstack;\r\n\t }", "public void moveOut(){\n int index=Planet.findPlanet(currPlanet.getName(),planets);\n if(index==planets.size()-1){\n ////If the spaceship is already at the last planet(planets.size()-1) in the planet list\n System.out.println(\"The spaceship \"+this.name+\" couldn't move out. No planet is farther out\");\n }else{\n ////move farther out of the solar system means the index+1 in the ArrayList of planets\n Planet moveToPlanet=planets.get(index+1);\n moveTo(moveToPlanet.getName());\n }\n }", "private void resizeInternal(int size) {\n // save effort if the size did not change\n if (size == this.inventory.size()) {\n return;\n }\n ItemStackList newInventory = ItemStackList.withSize(size);\n\n for (int i = 0; i < size && i < this.inventory.size(); i++) {\n newInventory.set(i, this.inventory.get(i));\n }\n this.inventory = newInventory;\n }", "void updateInventory(String busNumber, String tripDate, int inventory) throws NotFoundException;", "@Override\n\tpublic void move(){\n\t\tSector tail = null;\n\t\tif(hit){\n\t\t\ttail = getNext();\n\t\t\tif(tail == null){\t\n\t\t\t\tselfDestruct();\n\t\t\t} else {\t\t\n\t\t\t\tsector.setInhabitant(null);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tsectors.add(sector);\n\t\tSector nextSector = quadrant.getNext(sector, velocity[0]);\t\n\t\tif(nextSector == null){\n\t\t\thit = true;\n\t\t} else {\n\t\t\tSpaceObject object = nextSector.getInhabitant();\n\t\t\tif(object != null) {\n\t\t\t\tobject.bump(this);\n\t\t\t} else {\n\t\t\t\tsetSector(nextSector); \n\t\t\t}\n\t\t} \n\t}", "public void chasePlayer() {\n refreshObstructionMatrix();\n Coordinate currPosition = new Coordinate(getX(), getY());\n Player player = this.dungeon.getPlayer();\n Coordinate playerPosition = new Coordinate(player.getX(), player.getY());\n\n if (currPosition.equals(playerPosition)) {\n // Debug.printC(\"Enemy has reached the player!\", Debug.RED);\n player.useItem(this);\n } else {\n this.pathToDest = pathFinder.getPathToDest(currPosition, playerPosition);\n if (!this.pathToDest.empty()) {\n Coordinate nextPosition = this.pathToDest.pop();\n // this.setCoordinate(nextPosition);\n if (getX() + 1 == nextPosition.x) {\n moveRight();\n } else if (getX() - 1 == nextPosition.x) {\n moveLeft();\n } else if (getY() + 1 == nextPosition.y) {\n moveDown();\n } else if (getY() - 1 == nextPosition.y) {\n moveUp();\n }\n }\n }\n }", "public void moveTo(Hero newHero, LocationEquipment location) throws IllegaleToestandsUitzondering, IllegalArgumentException {\r\n\t\tif(location == null)\r\n\t\t\tthrow new IllegalArgumentException(\"ineffectif location\");\r\n\t\tmoveTo(newHero,location.getFollowNumber());\r\n\t}", "@Override\r\n\tpublic void execute() throws InstructionExecutionException {\r\n\t\tif (id != null && robotContainer.containsItem(id))\r\n\t\t\tif (!navigation.findItemAtCurrentPlace(id)) {\r\n\t\t\t\tnavigation.dropItemAtCurrentPlace(robotContainer.pickItem(id));\r\n\t\t\t\tnavigation.updatePlace();\r\n\t\t\t} else\r\n\t\t\t\tthrow new InstructionExecutionException(PLACE_REPEAT_ITEM + id);\r\n\t\telse\r\n\t\t\tthrow new InstructionExecutionException(CONTAINER_NO_ITEM + id\r\n\t\t\t\t\t+ \".\");\r\n\t\t\t\t\r\n\r\n\t}", "public void moveIn(){\n //because findPlanet is static method, call it using its class name Planet\n //find the index of the current planet by calling the findPlanet method.\n int index=Planet.findPlanet(currPlanet.getName(),planets);\n if(index==0){\n //If the spaceship is already at the first planet in the planet list\n System.out.println(\"The spaceship \"+this.name+\" couldn't move in. No planet is closer in\");\n }else{\n //move closer into the solar system means the index-1 in the ArrayList of planets\n Planet moveToPlanet=planets.get(index-1);\n moveTo(moveToPlanet.getName());\n }\n }", "public void move() {\n\r\n\t}", "public void moveAllItems() {\n for (BaseObject object : getAllItems()) {\n object.move();\n }\n }", "@Override\n\tpublic void setInventorySlotContents(int index, ItemStack stack) {\n\t\t\n\t}", "public ItemStack transferStackInSlot(int i)\n {\n ItemStack itemstack = null;\n Slot slot = (Slot)inventorySlots.get(i);\n\n if (slot != null && slot.getHasStack())\n {\n ItemStack itemstack1 = slot.getStack();\n itemstack = itemstack1.copy();\n\n if (i < 9)\n {\n if (!mergeItemStack(itemstack1, 9, 45, true))\n {\n return null;\n }\n }\n else if (!mergeItemStack(itemstack1, 0, 9, false))\n {\n return null;\n }\n\n if (itemstack1.stackSize == 0)\n {\n slot.putStack(null);\n }\n else\n {\n slot.onSlotChanged();\n }\n\n if (itemstack1.stackSize != itemstack.stackSize)\n {\n slot.onPickupFromSlot(null, itemstack1);\n }\n else\n {\n return null;\n }\n }\n\n return itemstack;\n }", "void onItemMove(int fromPosition, int toPosition) {\n Collections.swap(mItems, fromPosition, toPosition);\n notifyItemMoved(fromPosition, toPosition);\n }", "public void move(@IntRange(from = 0) final int fromPosition,\n @IntRange(from = 0) final int toPosition) {\n final E e = mItems.remove(fromPosition);\n mItems.add(toPosition, e);\n mDatasourceObservable.notifyItemMoved(fromPosition, toPosition);\n }", "public Item swapItem(Item i){\r\n if(size()!=1) throw new IllegalStateException(\"Trying to swap item of\"\r\n + \"large container\");\r\n add(i);\r\n return remove(0);\r\n }", "public ItemStack transferStackInSlot(EntityPlayer playerIn, int index) {\r\n ItemStack itemstack = null;\r\n Slot slot = (Slot) this.inventorySlots.get(index);\r\n\r\n if (slot != null && slot.getHasStack()) {\r\n ItemStack itemstack1 = slot.getStack();\r\n itemstack = itemstack1.copy();\r\n\r\n if (index == 0) {\r\n if (!this.mergeItemStack(itemstack1, this.inventoryHandler.getSlots(), this.inventorySlots.size(), true)) {\r\n return null;\r\n }\r\n\r\n slot.onSlotChange(itemstack1, itemstack);\r\n } else if (index >= 1 && index < this.inventorySlots.size()) {\r\n if (!this.mergeItemStack(itemstack1, this.inventorySlots.size() - 9, this.inventorySlots.size(), false)) {\r\n return null;\r\n }\r\n } else if (!this.mergeItemStack(itemstack1, this.inventoryHandler.getSlots(), this.inventorySlots.size(), false)) {\r\n return null;\r\n }\r\n\r\n if (itemstack1.stackSize == 0) {\r\n slot.putStack((ItemStack) null);\r\n } else {\r\n slot.onSlotChanged();\r\n }\r\n\r\n if (itemstack1.stackSize == itemstack.stackSize) {\r\n return null;\r\n }\r\n\r\n slot.onPickupFromSlot(playerIn, itemstack1);\r\n }\r\n\r\n return itemstack;\r\n }", "public void Restock() {\n for (Ingredient ingredient : stock.keySet()) {\n stock.put(ingredient, inventoryMax);\n }\n }", "private void updateInventory(List<Item> items) {\r\n for(Item item : items) {\r\n inventory.put(item, STARTING_INVENTORY);\r\n inventorySold.put(item, 0);\r\n itemLocations.put(item.getSlot(), item);\r\n }\r\n }", "public void setInventory(com.google.cloud.retail.v2beta.SetInventoryRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getSetInventoryMethod(), getCallOptions()), request, responseObserver);\n }", "protected void moveTo (int x, int y) {\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}", "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 }", "@Override\n\tpublic int updateInventory(int tranNo, int amount) throws Exception {\n\t\treturn 0;\n\t}", "public void move()\n {\n daysSurvived+=1;\n\n energy -= energyLostPerDay;\n\n Random generator = new Random();\n\n //losowo okreslony ruch na podstawie genomu\n int turnIndex = generator.nextInt((int)Math.ceil(Genome.numberOfGenes));\n int turn = genome.getGenome().get(turnIndex);\n\n //wywolujemy metode obrotu - dodaje odpowiednio liczbe do aktualnego kierunku\n direction.turn(turn);\n\n //zmieniamy pozycje zwierzaka przez dodanie odpowiedniego wektora\n position = position.add(direction.move());\n //walidacja pozycji tak, by wychodzac za mape byc na mapie z drugiej strony\n position.validatePosition(map.getWidth(),map.getHeight());\n\n moveOnSimulation();\n\n //jesli po ruchu zwierzaczek nie ma juz energii na kolejny ruch\n if(energy < energyLostPerDay )\n {\n this.animalHungry = true;\n }\n }", "public void restoreInventory(String table, String ID, String type, String base, String bulb, int price, String manuId) {\r\n\t\tif(table.contentEquals(\"lamp\")) {\r\n\t\t\ttry {\r\n\t\t\t\tString query= \"INSERT INTO lamp(ID, Type, Base, Bulb, Price, ManuID) VALUES (?,?,?,?,?,?)\";\r\n\t \t\tPreparedStatement state= getDBConnect().prepareStatement(query);\r\n\t \t\t\r\n\t \t\tstate.setString(1, ID);\r\n\t \t\tstate.setString(2, type);\r\n\t \t\tstate.setString(3,base);\r\n\t \t\tstate.setString(4,bulb);\r\n\t \t\tstate.setInt(5, price);\r\n\t \t\tstate.setString(6, manuId);\r\n\t \t\t\r\n\t \t\tint rows= state.executeUpdate();\r\n\t \t\tSystem.out.println(\"Rows updated: \"+rows);\r\n\t \t\tstate.close();\r\n\t\t\t}\r\n\t\t\tcatch(SQLException e) {\r\n\t\t\t\t System.out.println(\"Error, unable to insert new item into table 'lamp' \");\r\n\t\t\t }\r\n\t\t}\r\n\t}", "protected void handleAutoInsertAsIndividualActions(Player viewer, InventoryState inventoryState, GUISession session, Inventory destInv, InventoryClickEvent shiftClickEvent){\n shiftClickEvent.setCancelled(true); //Cancel the event\n boolean destIsTopInv = shiftClickEvent.getView().getTopInventory().equals(destInv);\n //find an empty slot and try and place it there\n ItemStack toMove = shiftClickEvent.getCurrentItem().clone();\n int totalToMove = toMove.getAmount(); //The total amount trying to be moved\n if(toMove == null || toMove.getType().equals(Material.AIR) || toMove.getAmount() < 1){\n return; //No item to move\n }\n int destSlotNum = -1;\n int moveAmount = toMove.getAmount(); //The amount we can move\n for(int i=0;i<destInv.getSize();i++){ //First try and find a slot that we can stack with\n if(!destIsTopInv && i > 35){ //Moving to bottom (Always Player) inventory, slots outside of 35 are not allowed to be auto-inserted into\n break;\n }\n ItemStack it = destInv.getItem(i);\n if(it != null && !it.getType().equals(Material.AIR)){ //Slot isn't empty, let's try and place it here\n GUIElement inSlot = !destIsTopInv ? null : inventoryState.getElementInSlot(i); //The GUIElement in this slot if dest is the GUI\n if(inSlot == null || inSlot.canAutoInsertIntoSlot(viewer, session)) { //Slot is able to be auto inserted into\n if(it.getAmount() < it.getMaxStackSize() && StackCompatibilityUtil.canStack(it, toMove)){ //They can be stacked together and it's not a full stack\n destSlotNum = i;\n moveAmount = Math.min(moveAmount, it.getMaxStackSize() - it.getAmount()); //Reduce the number to move if moving the current amount would overflow the stack\n break;\n }\n }\n }\n }\n if(destSlotNum == -1){ //If still not found a slot\n for(int i=0;i<destInv.getSize();i++){ //Second try and find an allowed empty slot to try and place into\n if(!destIsTopInv && i > 35){ //Moving to bottom (Always Player) inventory, slots outside of 35 are not allowed to be auto-inserted into\n break;\n }\n ItemStack it = destInv.getItem(i);\n if(it == null || it.getType().equals(Material.AIR)){ //Slot is empty, let's try and place it here\n GUIElement inSlot = !destIsTopInv ? null : inventoryState.getElementInSlot(i); //The GUIElement in this slot if dest is the GUI\n if(inSlot == null || inSlot.canAutoInsertIntoSlot(viewer, session)) {\n destSlotNum = i;\n break;\n }\n }\n }\n }\n toMove.setAmount(moveAmount);\n\n if(destSlotNum >= 0) { //If we have found a destination slot\n //Simulate a place event for here\n ItemStack cursor = shiftClickEvent.getView().getCursor();\n\n if(destIsTopInv) { //If destination is GUI, then simulate placing it\n shiftClickEvent.getView().setCursor(toMove);\n InventoryClickEvent placeEvent = new InventoryClickEvent(shiftClickEvent.getView(), InventoryType.SlotType.CONTAINER, destSlotNum, ClickType.LEFT, InventoryAction.PLACE_ALL);\n handleBukkitEvent(placeEvent, session);\n boolean placed = !placeEvent.isCancelled() || shiftClickEvent.getView().getCursor() == null\n || shiftClickEvent.getView().getCursor().getType().equals(Material.AIR); //If cursor is now cleared or event not cancelled, then item was/should be moved\n shiftClickEvent.getView().setCursor(cursor); //Reset cursor to how it was before we did the shift click\n if(!placeEvent.isCancelled()){\n //Move item as it not being cancelled means it's expected to happen\n destInv.setItem(destSlotNum, toMove); //Make the slot contain the item to move\n }\n if(placed){ //Has been placed into the destination slot, so now clear the source slot of the items we moved\n int newAmount = totalToMove - moveAmount; //Figure out how many are left\n ItemStack remainder = toMove.clone(); //Get the item stack that was moved\n remainder.setAmount(newAmount); //Set the amount to be how many are left\n shiftClickEvent.getView().setItem(shiftClickEvent.getRawSlot(), newAmount < 1 ? null : remainder); //Update in inventory\n }\n }\n else { //Source is GUI, so simulate picking it up\n shiftClickEvent.getView().setCursor(null); //Set the current cursor to nothing, so we can pickup everything available\n //Pickup all the items in the slot\n InventoryClickEvent pickupEvent = new InventoryClickEvent(shiftClickEvent.getView(), shiftClickEvent.getSlotType(), shiftClickEvent.getRawSlot(), ClickType.LEFT, InventoryAction.PICKUP_ALL);\n handleBukkitEvent(pickupEvent, session);\n boolean pickedUp = !pickupEvent.isCancelled() || (shiftClickEvent.getView().getCursor() != null\n && !shiftClickEvent.getView().getCursor().getType().equals(Material.AIR)); //If all the items were picked up\n if(!pickupEvent.isCancelled()){ //If not cancelled we actually have to do the action\n shiftClickEvent.getView().setItem(shiftClickEvent.getRawSlot(), null);\n }\n if(pickedUp){\n //We picked up too much, so put back any needed\n int amtPickedUp = shiftClickEvent.getView().getCursor() == null ? 0 : shiftClickEvent.getView().getCursor().getAmount();\n int toPutBack = amtPickedUp - moveAmount;\n if(toPutBack > 0){ //Put back the extra\n ItemStack toReturn = toMove.clone();\n toReturn.setAmount(toPutBack);\n shiftClickEvent.getView().setCursor(toReturn);\n InventoryClickEvent placeEvent = new InventoryClickEvent(shiftClickEvent.getView(), shiftClickEvent.getSlotType(), shiftClickEvent.getRawSlot(), ClickType.LEFT, InventoryAction.PLACE_ALL);\n handleBukkitEvent(placeEvent, session);\n if(!placeEvent.isCancelled()){\n //Change item as it not being cancelled means it's expected to happen\n shiftClickEvent.getView().setItem(shiftClickEvent.getRawSlot(), toReturn);\n }\n }\n\n //Put the 'picked up' items into the destination inventory\n ItemStack currentItem = destInv.getItem(destSlotNum);\n int currentAmt = currentItem == null || !StackCompatibilityUtil.canStack(toMove, currentItem) ? 0 : currentItem.getAmount();\n int amt = currentAmt + moveAmount; //Add the existing amount and the amount to add\n toMove.setAmount(amt);\n destInv.setItem(destSlotNum, toMove);\n }\n shiftClickEvent.getView().setCursor(cursor); //Reset cursor to how it was before we did the shift click\n }\n\n if(totalToMove > moveAmount){ //If not all of the stack was moved into the GUI, call recursively to try and move the remainder\n InventoryClickEvent newShiftClickEvent = new InventoryClickEvent(shiftClickEvent.getView(), shiftClickEvent.getSlotType(),\n shiftClickEvent.getRawSlot(), shiftClickEvent.getClick(), InventoryAction.MOVE_TO_OTHER_INVENTORY);\n //Call self recursively to move the remainder somewhere\n handleAutoInsertAsIndividualActions(viewer, inventoryState, session, destInv, newShiftClickEvent);\n }\n }\n return;\n }", "@EventHandler\n public void onInventoryClick(InventoryClickEvent e) {\n // Check if it is one of our inventories\n if (!(e.getInventory().getHolder() instanceof InventoryEvent)) return;\n\n // Cancel the event so the player can't take the item\n e.setCancelled(true);\n\n // Check if it was air or null\n if (e.getCurrentItem() == null || e.getCurrentItem().getType() == Material.AIR) return;\n\n // Get the sign in progress\n ShopSign cur = null;\n for( ShopSign sign : signs) {\n if(sign.owner.equalsIgnoreCase(e.getWhoClicked().getUniqueId().toString())) {\n cur = sign;\n break;\n }\n }\n\n // Check if cur is null\n if(cur == null) {\n return;\n }\n\n // Check if the sign is done\n if(cur.done) {\n return;\n }\n\n // Set the can remove flag to true\n can_remove = true;\n\n // Get the player\n HumanEntity player = e.getWhoClicked();\n\n // Get the inventory that was clicked\n Inventory inv = clone_inv(e.getClickedInventory(), e.getView().getTitle());\n\n // Get the clicked item\n ItemStack clicked = e.getCurrentItem();\n ItemMeta clicked_meta = clicked.getItemMeta();\n\n // Check if it was exit\n if(clicked_meta.getDisplayName().equalsIgnoreCase(\"exit\") && e.getRawSlot() == 0) {\n // Remove the in progress sign\n signs.remove(cur);\n\n e.getWhoClicked().closeInventory();\n return;\n }\n\n // Make sure it's not removed when switching the UI\n can_remove = false;\n\n // Check if it was to proceed\n if(clicked_meta.getDisplayName().equalsIgnoreCase(\"next\") && e.getRawSlot() == 8) {\n if(e.getView().getTitle().equalsIgnoreCase(\"Item Amount\")) {\n player.openInventory(itemPrice);\n } else {\n player.sendMessage(\"Now right click on a chest to select it!\");\n player.closeInventory();\n }\n return;\n }\n\n // Check if it is buying or selling\n else if(e.getView().getTitle().equalsIgnoreCase(\"Selling or Buying\")) {\n // If it was selling\n if(clicked_meta.getDisplayName().equalsIgnoreCase(\"Buy\") && e.getRawSlot() == 5) {\n cur.selling = false;\n }\n // If it was buying\n else if(clicked_meta.getDisplayName().equalsIgnoreCase(\"Sell\") && e.getRawSlot() == 3) {\n cur.selling = true;\n }\n\n inv = clone_inv(itemAmount, \"Item Amount\");\n inv.setItem(4, cur.item);\n player.openInventory(inv);\n }\n\n // Check if it was an increase or decrease in amount\n else if(e.getView().getTitle().equalsIgnoreCase(\"Item Amount\")) {\n // If it was green wool\n if(clicked_meta.getDisplayName().equalsIgnoreCase(\"More\") && e.getRawSlot() == 5) {\n // Make sure were not at the max stack size\n if(cur.item.getAmount() == cur.item.getMaxStackSize()) {\n return;\n }\n\n // Add one to the amount of the in progress sign\n cur.item.setAmount(cur.item.getAmount()+1);\n\n // Update the ui\n inv.setItem(4, cur.item);\n player.openInventory(inv);\n return;\n }\n\n // If it was red wool\n else if(clicked_meta.getDisplayName().equalsIgnoreCase(\"Less\") && e.getRawSlot() == 3) {\n // Make sure were not at the stack minimum\n if(cur.item.getAmount() == 1) {\n return;\n }\n\n // Subtract one from the amount of the in progress sign\n cur.item.setAmount(cur.item.getAmount()-1);\n\n // Update the ui\n inv.setItem(4, cur.item);\n player.openInventory(inv);\n return;\n }\n }\n\n // Check if we are changing the price\n else if(e.getView().getTitle().equalsIgnoreCase(\"Item Price\")) {\n // If it was green wool\n if(clicked_meta.getDisplayName().equalsIgnoreCase(\"More\") && e.getRawSlot() == 5) {\n // Make sure were not at the max stack size\n if(cur.price == 64) {\n return;\n }\n\n // Add one to the amount of the in progress sign\n cur.price++;\n\n // Update the ui\n inv.setItem(4, new ItemStack(Material.GOLD_INGOT, cur.price));\n player.openInventory(inv);\n return;\n }\n\n // If it was red wool\n else if(clicked_meta.getDisplayName().equalsIgnoreCase(\"Less\") && e.getRawSlot() == 3) {\n // Make sure were not at the stack minimum\n if(cur.price == 1) {\n return;\n }\n\n // Subtract one from the amount of the in progress sign\n cur.price--;\n\n // Update the ui\n inv.setItem(4, new ItemStack(Material.GOLD_INGOT, cur.price));\n player.openInventory(inv);\n return;\n }\n }\n\n // Allow removal again\n can_remove = true;\n }", "public void add(Inventory toAdd) throws DuplicateInventoryException {\n requireNonNull(toAdd);\n if (contains(toAdd)) {\n throw new DuplicateInventoryException();\n }\n\n list.add(toAdd);\n }", "public void moveToDestination(Move move) {\r\n\t\tx = move.getToX();\r\n\t\ty = move.getToY();\r\n\r\n\t}", "public void sell() throws UnavailableObjectException {\r\n\t\tGame game = Game.getInstance();\r\n\t\tgame.increaseBudget(getSellValue());\r\n\t\tgame.getInventory().take(id);\r\n\t}", "private void moveTile()\n {\n int[] moveIndices = null;\n \n int sourceRow = moveIndices[0];\n int sourceCol = moveIndices[1];\n int destRow = moveIndices[2] - 1;\n int destCol = moveIndices[3];\n \n if (sourceRow == 0) \n {\n try\n {\n game.playTileFromHand(sourceCol, destRow, destCol);\n }\n catch(ArrayIndexOutOfBoundsException ex)\n {\n // TODO: ConsoleUtils.message(\"Unable to complete your play, wrong indices!\");\n }\n }\n else\n {\n sourceRow--;\n try\n {\n game.moveTileInBoard(sourceRow, sourceCol, destRow, destCol); \n }\n catch(ArrayIndexOutOfBoundsException ex)\n {\n // TODO: ConsoleUtils.message(\"Unable to complete your play, wrong indices!\");\n }\n }\n }", "@Override\n public ItemStack transferStackInSlot(EntityPlayer player, int index) {\n ItemStack result = ItemStack.EMPTY;\n Slot slot = inventorySlots.get(index);\n ItemStack stack = slot.getStack();\n if (slot != null && slot.getHasStack()) {\n SlotRange destRange = transferSlotRange(index, stack);\n if (destRange != null) {\n if (index >= destRange.numSlots) {\n result = stack.copy();\n if (!mergeItemStackIntoRange(stack, destRange))\n return ItemStack.EMPTY;\n if (stack.getCount() == 0)\n slot.putStack(ItemStack.EMPTY);\n else\n slot.onSlotChanged();\n }\n else\n player.inventory.addItemStackToInventory(stack);\n }\n }\n return result;\n }" ]
[ "0.7031306", "0.66415304", "0.6339636", "0.6169718", "0.60720134", "0.60656047", "0.60244143", "0.59441376", "0.58825827", "0.58127433", "0.5771475", "0.57449865", "0.57327676", "0.57242596", "0.56461954", "0.56124705", "0.5605103", "0.55922264", "0.55857724", "0.55722445", "0.55716753", "0.5568175", "0.5562127", "0.55332863", "0.5526849", "0.55267406", "0.55204314", "0.55127525", "0.55040365", "0.5495104", "0.54888344", "0.5481073", "0.54686433", "0.5452548", "0.54478085", "0.5440385", "0.5425476", "0.54219174", "0.5402508", "0.54012513", "0.5399651", "0.5398026", "0.53818834", "0.53801626", "0.5379526", "0.53770226", "0.53726655", "0.53637034", "0.5362437", "0.53558606", "0.5347104", "0.53416353", "0.5340008", "0.53246826", "0.53219134", "0.53159535", "0.53151083", "0.53100705", "0.5306406", "0.53045326", "0.5303527", "0.5301284", "0.53010195", "0.5300225", "0.52942157", "0.52941906", "0.52936083", "0.5290175", "0.5285873", "0.52780914", "0.5269915", "0.5268997", "0.5266509", "0.5258231", "0.5249608", "0.52489644", "0.52478516", "0.523791", "0.52374315", "0.5223281", "0.52217215", "0.5220853", "0.5214215", "0.5212071", "0.5210633", "0.520977", "0.5207989", "0.5207124", "0.52069855", "0.5206377", "0.51999384", "0.5199234", "0.5195207", "0.5192438", "0.51892984", "0.51890683", "0.5188685", "0.51875615", "0.51848024", "0.51813054" ]
0.69296986
1
Move the specified ItemStack from this inventory to the specified inventory
public void moveItemStackTo(ItemStack itemStack, Inventory inventory) { int itemsAdded = inventory.addItemStack(itemStack); this.removeItemStack(new ItemStack(itemStack.getItem(), itemsAdded)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void moveTo(Inventory inventory) {\n for (ItemStack itemStack : this.getItemStacks()) {\n int added = inventory.addItemStack(itemStack);\n this.ITEMS.get(this.getItemStack(itemStack)).addAmount(-added);\n }\n }", "default ItemStack moveOneItemTo(IInventoryComposite dest) {\n return moveOneItemTo(dest, Predicates.alwaysTrue());\n }", "@Override\r\n\tpublic ItemStack transferStackInSlot(EntityPlayer playerIn, int index)\r\n {\r\n ItemStack itemstack = ItemStackTools.getEmptyStack();\r\n Slot slot = this.inventorySlots.get(index);\r\n\r\n if (slot != null && slot.getHasStack())\r\n {\r\n ItemStack itemstack1 = slot.getStack();\r\n itemstack = itemstack1.copy();\r\n\r\n if (index == 0)\r\n {\r\n if (!this.mergeItemStack(itemstack1, 10, 46, false))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n\r\n slot.onSlotChange(itemstack1, itemstack);\r\n }\r\n else if (index >= 10 && index < 37)\r\n {\r\n if (!this.mergeItemStack(itemstack1, 37, 46, false))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n }\r\n else if (index >= 37 && index < 46)\r\n {\r\n if (!this.mergeItemStack(itemstack1, 10, 37, false))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n }\r\n else if (!this.mergeItemStack(itemstack1, 10, 46, false))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n\r\n if (ItemStackTools.isEmpty(itemstack1))\r\n {\r\n slot.putStack(ItemStackTools.getEmptyStack());\r\n }\r\n else\r\n {\r\n slot.onSlotChanged();\r\n }\r\n\r\n if (ItemStackTools.getStackSize(itemstack1) == ItemStackTools.getStackSize(itemstack))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n\r\n slot.onTake(playerIn, itemstack1);\r\n }\r\n\r\n return itemstack;\r\n }", "@Override\n public ItemStack transferStackInSlot(EntityPlayer player, int sourceSlotIndex)\n {\n Slot sourceSlot = (Slot)inventorySlots.get(sourceSlotIndex);\n if (sourceSlot == null || !sourceSlot.getHasStack()) return ItemStack.EMPTY; //EMPTY_ITEM\n ItemStack sourceStack = sourceSlot.getStack();\n ItemStack copyOfSourceStack = sourceStack.copy();\n\n // Check if the slot clicked is one of the vanilla container slots\n if (sourceSlotIndex >= VANILLA_FIRST_SLOT_INDEX && sourceSlotIndex < VANILLA_FIRST_SLOT_INDEX + VANILLA_SLOT_COUNT) {\n // This is a vanilla container slot so merge the stack into the tile inventory\n // We can only put it into the first slot though, keep that in mind.\n if (!mergeItemStack(sourceStack, TE_INVENTORY_FIRST_SLOT_INDEX, TE_INVENTORY_FIRST_SLOT_INDEX + 1, false)){\n return ItemStack.EMPTY; // EMPTY_ITEM\n }\n } else if (sourceSlotIndex >= TE_INVENTORY_FIRST_SLOT_INDEX && sourceSlotIndex < TE_INVENTORY_FIRST_SLOT_INDEX + TE_INVENTORY_SLOT_COUNT) {\n // This is a TE slot so merge the stack into the players inventory\n if (!mergeItemStack(sourceStack, VANILLA_FIRST_SLOT_INDEX, VANILLA_FIRST_SLOT_INDEX + VANILLA_SLOT_COUNT, false)) {\n return ItemStack.EMPTY; // EMPTY_ITEM\n }\n } else {\n return ItemStack.EMPTY; // EMPTY_ITEM\n }\n\n // If stack size == 0 (the entire stack was moved) set slot contents to null\n if (sourceStack.getCount() == 0) { // getStackSize\n sourceSlot.putStack(ItemStack.EMPTY); // EMPTY_ITEM\n } else {\n sourceSlot.onSlotChanged();\n }\n\n sourceSlot.onTake(player, sourceStack); //onPickupFromSlot()\n return copyOfSourceStack;\n }", "public void setItemStack(ItemStack stack) {\n item = stack.clone();\n }", "public ItemStack transferStackInSlot(EntityPlayer playerIn, int index) {\r\n ItemStack itemstack = null;\r\n Slot slot = (Slot) this.inventorySlots.get(index);\r\n\r\n if (slot != null && slot.getHasStack()) {\r\n ItemStack itemstack1 = slot.getStack();\r\n itemstack = itemstack1.copy();\r\n\r\n if (index == 0) {\r\n if (!this.mergeItemStack(itemstack1, this.inventoryHandler.getSlots(), this.inventorySlots.size(), true)) {\r\n return null;\r\n }\r\n\r\n slot.onSlotChange(itemstack1, itemstack);\r\n } else if (index >= 1 && index < this.inventorySlots.size()) {\r\n if (!this.mergeItemStack(itemstack1, this.inventorySlots.size() - 9, this.inventorySlots.size(), false)) {\r\n return null;\r\n }\r\n } else if (!this.mergeItemStack(itemstack1, this.inventoryHandler.getSlots(), this.inventorySlots.size(), false)) {\r\n return null;\r\n }\r\n\r\n if (itemstack1.stackSize == 0) {\r\n slot.putStack((ItemStack) null);\r\n } else {\r\n slot.onSlotChanged();\r\n }\r\n\r\n if (itemstack1.stackSize == itemstack.stackSize) {\r\n return null;\r\n }\r\n\r\n slot.onPickupFromSlot(playerIn, itemstack1);\r\n }\r\n\r\n return itemstack;\r\n }", "@Override\n public ItemStack transferStackInSlot(EntityPlayer player, int index) {\n ItemStack result = ItemStack.EMPTY;\n Slot slot = inventorySlots.get(index);\n ItemStack stack = slot.getStack();\n if (slot != null && slot.getHasStack()) {\n SlotRange destRange = transferSlotRange(index, stack);\n if (destRange != null) {\n if (index >= destRange.numSlots) {\n result = stack.copy();\n if (!mergeItemStackIntoRange(stack, destRange))\n return ItemStack.EMPTY;\n if (stack.getCount() == 0)\n slot.putStack(ItemStack.EMPTY);\n else\n slot.onSlotChanged();\n }\n else\n player.inventory.addItemStackToInventory(stack);\n }\n }\n return result;\n }", "public ItemStack transferStackInSlot(int i)\n {\n ItemStack itemstack = null;\n Slot slot = (Slot)inventorySlots.get(i);\n\n if (slot != null && slot.getHasStack())\n {\n ItemStack itemstack1 = slot.getStack();\n itemstack = itemstack1.copy();\n\n if (i < 9)\n {\n if (!mergeItemStack(itemstack1, 9, 45, true))\n {\n return null;\n }\n }\n else if (!mergeItemStack(itemstack1, 0, 9, false))\n {\n return null;\n }\n\n if (itemstack1.stackSize == 0)\n {\n slot.putStack(null);\n }\n else\n {\n slot.onSlotChanged();\n }\n\n if (itemstack1.stackSize != itemstack.stackSize)\n {\n slot.onPickupFromSlot(null, itemstack1);\n }\n else\n {\n return null;\n }\n }\n\n return itemstack;\n }", "@Override\n public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par1) {\n\t\treturn null;\n }", "public void swapItemFromInventoryToOther(@NotNull Usable item, Usable other) {\n for (int i = 0; i < size; i++) {\n if (item == items[i]) {\n this.removeItem(i);\n if (other != null) {\n this.setItem(other, i);\n }\n return;\n }\n }\n }", "@Override\r\n public ItemStack transferStackInSlot(EntityPlayer p_82846_1_, int p_82846_2_)\r\n {\r\n ItemStack itemstack = null;\r\n Slot slot = (Slot)this.inventorySlots.get(p_82846_2_);\r\n\r\n if (slot != null && slot.getHasStack())\r\n {\r\n ItemStack itemstack1 = slot.getStack();\r\n itemstack = itemstack1.copy();\r\n\r\n if (p_82846_2_ == 2 ||p_82846_2_ == 3 )\r\n {\r\n if (!this.mergeItemStack(itemstack1, 4, 40, true))\r\n {\r\n return null;\r\n }\r\n\r\n slot.onSlotChange(itemstack1, itemstack);\r\n }\r\n else if (p_82846_2_ != 1 && p_82846_2_ != 0)\r\n {\r\n \r\n if (p_82846_2_ >= 4 && p_82846_2_ < 31)\r\n {\r\n if (!this.mergeItemStack(itemstack1, 31, 40, false))\r\n {\r\n return null;\r\n }\r\n }\r\n else if (p_82846_2_ >= 31 && p_82846_2_ < 40 && !this.mergeItemStack(itemstack1, 4, 31, false))\r\n {\r\n return null;\r\n }\r\n }\r\n else if (!this.mergeItemStack(itemstack1, 4, 40, false))\r\n {\r\n return null;\r\n }\r\n\r\n if (itemstack1.stackSize == 0)\r\n {\r\n slot.putStack((ItemStack)null);\r\n }\r\n else\r\n {\r\n slot.onSlotChanged();\r\n }\r\n\r\n if (itemstack1.stackSize == itemstack.stackSize)\r\n {\r\n return null;\r\n }\r\n\r\n slot.onPickupFromSlot(p_82846_1_, itemstack1);\r\n }\r\n\r\n return itemstack;\r\n }", "@Nullable\n public ItemStack transferStackInSlot(EntityPlayer playerIn, int index)\n {\n ItemStack itemstack = null;\n Slot slot = (Slot)this.inventorySlots.get(index);\n\n if (slot != null && slot.getHasStack())\n {\n ItemStack itemstack1 = slot.getStack();\n \n if(itemstack1.getItem()==TF2weapons.itemTF2&&itemstack1.getMetadata()==9){\n \t\titemstack1=ItemFromData.getRandomWeapon(playerIn.getRNG(),ItemFromData.VISIBLE_WEAPON);\n \t}\n \telse if(itemstack1.getItem()==TF2weapons.itemTF2&&itemstack1.getMetadata()==10){\n \t\titemstack1=ItemFromData.getRandomWeaponOfClass(\"cosmetic\",playerIn.getRNG(), false);\n \t}\n \n itemstack = itemstack1.copy();\n\n if (index == 0)\n {\n if (!this.mergeItemStack(itemstack1, 10, 46, true))\n {\n return null;\n }\n\n slot.onSlotChange(itemstack1, itemstack);\n }\n else if (index >= 10 && index < 37)\n {\n if (!this.mergeItemStack(itemstack1, 37, 46, false))\n {\n return null;\n }\n }\n else if (index >= 37 && index < 46)\n {\n if (!this.mergeItemStack(itemstack1, 10, 37, false))\n {\n return null;\n }\n }\n else if (!this.mergeItemStack(itemstack1, 10, 46, false))\n {\n return null;\n }\n\n if (itemstack1.stackSize == 0)\n {\n slot.putStack((ItemStack)null);\n }\n else\n {\n slot.onSlotChanged();\n }\n\n if (itemstack1.stackSize == itemstack.stackSize)\n {\n return null;\n }\n\n slot.onPickupFromSlot(playerIn, itemstack1);\n }\n\n return itemstack;\n }", "public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2)\r\n\t {\r\n\t\t ItemStack itemstack = null;\r\n\t\t Slot slot = (Slot)this.inventorySlots.get(par2);\r\n\r\n\t\t if (slot != null && slot.getHasStack())\r\n\t\t {\r\n\t\t\t ItemStack itemstack1 = slot.getStack();\r\n\t\t\t itemstack = itemstack1.copy();\r\n\r\n\t\t\t if (par2 == 0)\r\n\t\t\t {\r\n\t\t\t\t if (!this.mergeItemStack(itemstack1, 1, 37, true))\r\n\t\t\t\t {\r\n\t\t\t\t\t return null;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t else\r\n\t\t\t {\r\n\t\t\t\t if (((Slot)this.inventorySlots.get(0)).getHasStack() || !((Slot)this.inventorySlots.get(0)).isItemValid(itemstack1))\r\n\t\t\t\t {\r\n\t\t\t\t\t return null;\r\n\t\t\t\t }\r\n\r\n\t\t\t\t if (itemstack1.hasTagCompound() && itemstack1.stackSize == 1)\r\n\t\t\t\t {\r\n\t\t\t\t\t ((Slot)this.inventorySlots.get(0)).putStack(itemstack1.copy());\r\n\t\t\t\t\t itemstack1.stackSize = 0;\r\n\t\t\t\t }\r\n\t\t\t\t else if (itemstack1.stackSize >= 1)\r\n\t\t\t\t {\r\n\t\t\t\t\t ((Slot)this.inventorySlots.get(0)).putStack(new ItemStack(itemstack1.itemID, 1, itemstack1.getItemDamage()));\r\n\t\t\t\t\t --itemstack1.stackSize;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\r\n\t\t\t if (itemstack1.stackSize == 0)\r\n\t\t\t {\r\n\t\t\t\t slot.putStack((ItemStack)null);\r\n\t\t\t }\r\n\t\t\t else\r\n\t\t\t {\r\n\t\t\t\t slot.onSlotChanged();\r\n\t\t\t }\r\n\r\n\t\t\t if (itemstack1.stackSize == itemstack.stackSize)\r\n\t\t\t {\r\n\t\t\t\t return null;\r\n\t\t\t }\r\n\r\n\t\t\t slot.onPickupFromSlot(par1EntityPlayer, itemstack1);\r\n\t\t }\r\n\r\n\t\t return itemstack;\r\n\t }", "@Override\n\n\t public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2)\n\t {\n\t ItemStack itemstack = null;\n\t Slot slot = (Slot)this.inventorySlots.get(par2);\n\n\t if (slot != null && slot.getHasStack())\n\t {\n\t ItemStack itemstack1 = slot.getStack();\n\t itemstack = itemstack1.copy();\n\n\t if (par2 < this.giftBoxEntity.getSizeInventory())\n\t {\n\t if (!this.mergeItemStack(itemstack1, this.giftBoxEntity.getSizeInventory(), this.inventorySlots.size(), true))\n\t {\n\t return null;\n\t }\n\t }\n\t else if (!this.mergeItemStack(itemstack1, 0, this.giftBoxEntity.getSizeInventory(), false))\n\t {\n\t return null;\n\t }\n\n\t if (itemstack1.stackSize == 0)\n\t {\n\t slot.putStack((ItemStack)null);\n\t }\n\t else\n\t {\n\t slot.onSlotChanged();\n\t }\n\t }\n\n\t return itemstack;\n\t }", "public static void swapInventoryContents(final Inventory inventory1, final Inventory inventory2) throws InvalidParameterException, NotEnoughSpaceException {\n if (inventory1 == null) {\n throw new InvalidParameterException(\"Cannot swap contents, inventory1 is null.\");\n }\n if (inventory2 == null) {\n throw new InvalidParameterException(\"Cannot swap contents, inventory2 is null.\");\n }\n ItemStack[] contents1 = Arrays.stream(inventory1.getContents()).filter(ItemAPI::isValidItem).toArray(ItemStack[]::new);\n ItemStack[] contents2 = Arrays.stream(inventory2.getContents()).filter(ItemAPI::isValidItem).toArray(ItemStack[]::new);\n if (contents1.length > inventory2.getSize()) {\n throw new NotEnoughSpaceException(\"Cannot swap contents, inventory2 doesn't have enough space for inventory1's items.\");\n }\n if (contents2.length > inventory1.getSize()) {\n throw new NotEnoughSpaceException(\"Cannot swap contents, inventory1 doesn't have enough space for inventory2's items.\");\n }\n inventory1.clear();\n inventory2.clear();\n inventory1.setContents(contents2);\n inventory2.setContents(contents1);\n }", "public ItemStack transferStackInSlot(EntityPlayer playerIn, int index) {\n/* 79 */ ItemStack var3 = null;\n/* 80 */ Slot var4 = this.inventorySlots.get(index);\n/* */ \n/* 82 */ if (var4 != null && var4.getHasStack()) {\n/* */ \n/* 84 */ ItemStack var5 = var4.getStack();\n/* 85 */ var3 = var5.copy();\n/* */ \n/* 87 */ if (index < this.field_111243_a.getSizeInventory()) {\n/* */ \n/* 89 */ if (!mergeItemStack(var5, this.field_111243_a.getSizeInventory(), this.inventorySlots.size(), true))\n/* */ {\n/* 91 */ return null;\n/* */ }\n/* */ }\n/* 94 */ else if (getSlot(1).isItemValid(var5) && !getSlot(1).getHasStack()) {\n/* */ \n/* 96 */ if (!mergeItemStack(var5, 1, 2, false))\n/* */ {\n/* 98 */ return null;\n/* */ }\n/* */ }\n/* 101 */ else if (getSlot(0).isItemValid(var5)) {\n/* */ \n/* 103 */ if (!mergeItemStack(var5, 0, 1, false))\n/* */ {\n/* 105 */ return null;\n/* */ }\n/* */ }\n/* 108 */ else if (this.field_111243_a.getSizeInventory() <= 2 || !mergeItemStack(var5, 2, this.field_111243_a.getSizeInventory(), false)) {\n/* */ \n/* 110 */ return null;\n/* */ } \n/* */ \n/* 113 */ if (var5.stackSize == 0) {\n/* */ \n/* 115 */ var4.putStack(null);\n/* */ }\n/* */ else {\n/* */ \n/* 119 */ var4.onSlotChanged();\n/* */ } \n/* */ } \n/* */ \n/* 123 */ return var3;\n/* */ }", "public ItemStack transferStackInSlot(EntityPlayer playerIn, int index) {\n ItemStack var3 = null;\n Slot var4 = (Slot) this.inventorySlots.get(index);\n\n if (var4 != null && var4.getHasStack()) {\n ItemStack var5 = var4.getStack();\n var3 = var5.copy();\n\n if ((index < 0 || index > 2) && index != 3) {\n if (!this.theSlot.getHasStack() && this.theSlot.isItemValid(var5)) {\n if (!this.mergeItemStack(var5, 3, 4, false)) {\n return null;\n }\n } else if (ContainerBrewingStand.Potion.canHoldPotion(var3)) {\n if (!this.mergeItemStack(var5, 0, 3, false)) {\n return null;\n }\n } else if (index >= 4 && index < 31) {\n if (!this.mergeItemStack(var5, 31, 40, false)) {\n return null;\n }\n } else if (index >= 31 && index < 40) {\n if (!this.mergeItemStack(var5, 4, 31, false)) {\n return null;\n }\n } else if (!this.mergeItemStack(var5, 4, 40, false)) {\n return null;\n }\n } else {\n if (!this.mergeItemStack(var5, 4, 40, true)) {\n return null;\n }\n\n var4.onSlotChange(var5, var3);\n }\n\n if (var5.stackSize == 0) {\n var4.putStack((ItemStack) null);\n } else {\n var4.onSlotChanged();\n }\n\n if (var5.stackSize == var3.stackSize) {\n return null;\n }\n\n var4.onPickupFromSlot(playerIn, var5);\n }\n\n return var3;\n }", "public void moveTo(Actor newActor, int location) throws IllegaleToestandsUitzondering, IllegalArgumentException {\r\n\t\tHolder oldActor = getHolder();\r\n\t\tif(newActor == null)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\tif(!newActor.canHoldItem(this,location) || !isValidHolder(newActor)) { \r\n\t\t\tthrow new IllegaleToestandsUitzondering(\"the given holder isn't valid for this item\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tsetHolder(newActor);\r\n\t\t\toldActor.removeItem(this);\r\n\t\t\tnewActor.addItem(this, location); \r\n\t\t} catch (IllegaleToestandsUitzondering e) {\r\n\t\t\treset(oldActor);\r\n\t\t\tthrow e;\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\treset(oldActor);\r\n\t\t\tthrow e;\r\n\t\t} \r\n\t}", "@Override\n\tpublic void setInventorySlotContents(int index, ItemStack stack) {\n\t\t\n\t}", "public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2)\n {\n ItemStack itemstack = null;\n Slot slot = (Slot)this.inventorySlots.get(par2);\n\n if (slot != null && slot.getHasStack())\n {\n ItemStack itemstack1 = slot.getStack();\n itemstack = itemstack1.copy();\n\n if (par2 == 0)\n {\n if (!this.mergeItemStack(itemstack1, 9, 45, true))\n {\n return null;\n }\n\n slot.onSlotChange(itemstack1, itemstack);\n }\n else if (par2 >= 1 && par2 < 5)\n {\n if (!this.mergeItemStack(itemstack1, 9, 45, false))\n {\n return null;\n }\n }\n else if (par2 >= 5 && par2 < 9)\n {\n if (!this.mergeItemStack(itemstack1, 9, 45, false))\n {\n return null;\n }\n }\n else if (itemstack.getItem() instanceof ItemArmor && !((Slot)this.inventorySlots.get(5 + ((ItemArmor)itemstack.getItem()).armorType)).getHasStack())\n {\n int j = 5 + ((ItemArmor)itemstack.getItem()).armorType;\n\n if (!this.mergeItemStack(itemstack1, j, j + 1, false))\n {\n return null;\n }\n }\n else if (par2 >= 9 && par2 < 36)\n {\n if (!this.mergeItemStack(itemstack1, 36, 45, false))\n {\n return null;\n }\n }\n else if (par2 >= 36 && par2 < 45)\n {\n if (!this.mergeItemStack(itemstack1, 9, 36, false))\n {\n return null;\n }\n }\n else if (!this.mergeItemStack(itemstack1, 9, 45, false))\n {\n return null;\n }\n\n if (itemstack1.stackSize == 0)\n {\n slot.putStack((ItemStack)null);\n }\n else\n {\n slot.onSlotChanged();\n }\n\n if (itemstack1.stackSize == itemstack.stackSize)\n {\n return null;\n }\n\n slot.onPickupFromSlot(par1EntityPlayer, itemstack1);\n }\n\n return itemstack;\n }", "@EventHandler (priority = EventPriority.HIGHEST)\n\tpublic void onClick(final InventoryClickEvent event) {\n\t\tif (!(event.getWhoClicked() instanceof Player)) {\n\t\t\treturn;\n\t\t}\n\t\tfinal Player player = (Player)event.getWhoClicked();\n\t\t\n\t\tShopObject shop = getShopPlayerIsViewing(player);\n\t\tif (shop == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (event.getAction() == InventoryAction.MOVE_TO_OTHER_INVENTORY) {\n\t\t\t//trying to put in shop part of inventory\n\t\t\tif (event.getRawSlot() != event.getSlot()) {\n\t\t\t\tif (!canPutItemInShop(shop, event.getCurrentItem(), player)) {\n\t\t\t\t\tevent.setCancelled(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//TODO once you cancel this one, the item on cursor becomes invisible. Try doing event.setCursor()\n\t\telse if (!event.getCursor().getType().equals(Material.AIR)) { //have an item \n\t\t\t//trying to put in shop part of inventory\n\t\t\tif (event.getRawSlot() == event.getSlot()) { \n\t\t\t\tItemStack cursor = new ItemStack(event.getCursor());\n\t\t\t\tif (!canPutItemInShop(shop, cursor, player)) {\n\t\t\t\t\tevent.setCancelled(true);\n\t\t\t\t\tevent.setCursor(new ItemStack(Material.AIR));\n\t\t\t\t\tplayer.getInventory().addItem(cursor);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tplugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() { \n\t\t\tpublic void run() { \n\t\t\t\tplayer.updateInventory();\n\t\t\t}\n\t\t}, 5L); \n\t}", "@Override\r\n public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2)\r\n {\r\n\t\tItemStack stack = null;\r\n Slot slot = (Slot)this.inventorySlots.get(par2);\r\n\r\n if (slot != null && slot.getHasStack()) {\r\n ItemStack stack1 = slot.getStack();\r\n stack = stack1.copy();\r\n\r\n if (par2 == 0) {\r\n if (!this.mergeItemStack(stack1, 10, 46, true)) {\r\n return null;\r\n }\r\n slot.onSlotChange(stack1, stack);\r\n }\r\n else if (par2 >= 10 && par2 < 37) {\r\n if (!this.mergeItemStack(stack1, 37, 46, false)) {\r\n return null;\r\n }\r\n }\r\n else if (par2 >= 37 && par2 < 46) {\r\n if (!this.mergeItemStack(stack1, 10, 37, false)) {\r\n return null;\r\n }\r\n }\r\n else if (!this.mergeItemStack(stack1, 10, 46, false)) {\r\n return null;\r\n }\r\n\r\n if (stack1.stackSize == 0) {\r\n slot.putStack((ItemStack)null);\r\n }\r\n else {\r\n slot.onSlotChanged();\r\n }\r\n\r\n if (stack1.stackSize == stack.stackSize) {\r\n return null;\r\n }\r\n\r\n slot.onPickupFromSlot(par1EntityPlayer, stack1);\r\n }\r\n\r\n return stack;\r\n }", "@Override\n\tpublic ItemStack transferStackInSlot(EntityPlayer player, int p_82846_2_)\n\t{\n\t\tItemStack itemstack = null;\n\t\tSlot slot = (Slot)this.inventorySlots.get(p_82846_2_);\n\n\t\tif (slot != null && slot.getHasStack())\n\t\t{\n\t\t\tItemStack stackInSlot = slot.getStack();\n\t\t\titemstack = stackInSlot.copy();\n\n\t\t\t//merges the item into player inventory since its in the tileEntity\n\t\t\tif (p_82846_2_ <= 1) {\n\t\t\t\tif (!this.mergeItemStack(stackInSlot, 0, 35, true)) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//places it into the tileEntity is possible since its in the player inventory\n\t\t\telse if (!this.mergeItemStack(stackInSlot, 0, 0, false)) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\n\t\t\tif (stackInSlot.stackSize == 0)\n\t\t\t{\n\t\t\t\tslot.putStack((ItemStack)null);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tslot.onSlotChanged();\n\t\t\t}\n\t\t}\n\t\treturn itemstack;\n\t}", "public void dropItem(int x, int y, int i) {\n \n ParentItem item = getInventory()[i];\n \n if (item != null) {\n \n inventory.removeItem(i);\n \n item.putOnBoard(x, y, gameboard);\n \n }\n \n }", "public void craft() {\n \t\tItemStack[] clonedContents = this.getGrid().getClonedContents();\n \t\tfor (int i = 0; i < clonedContents.length; i++) {\n \t\t\tItemStack clickedItem = clonedContents[i];\n \t\t\tif (clickedItem == null) {\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\tclickedItem.setAmount(clickedItem.getAmount() - 1);\n \t\t\tif (clickedItem.isEmpty()) {\n \t\t\t\tclickedItem = null;\n \t\t\t}\n \t\t\tclonedContents[i] = clickedItem;\n \t\t}\n \t\tthis.getGrid().setContents(clonedContents);\n \t}", "public void setInventorySlotContents(int par1, ItemStack par2ItemStack)\n {\n this.furnaceItemStacks[par1] = par2ItemStack;\n\n if (par2ItemStack != null && par2ItemStack.stackSize > this.getInventoryStackLimit())\n {\n par2ItemStack.stackSize = this.getInventoryStackLimit();\n }\n }", "default ItemStack moveOneItemTo(IInventoryComposite dest, Predicate<ItemStack> filter) {\n for (IInventoryAdapter src : this) {\n for (IInventoryAdapter dst : dest) {\n InventoryManipulator imSource = InventoryManipulator.get(src);\n ItemStack moved = imSource.moveItem(dst, filter);\n if (!InvTools.isEmpty(moved))\n return moved;\n }\n }\n return InvTools.emptyStack();\n }", "public void swapInventoryItems(int i, int j) {\n\t\tint k = inv[i];\n\t\tinv[i] = inv[j];\n\t\tinv[j] = k;\n\t\tk = invStackSizes[i];\n\t\tinvStackSizes[i] = invStackSizes[j];\n\t\tinvStackSizes[j] = k;\n\t}", "public void smeltItem()\n {\n if (this.canSmelt())\n {\n ItemStack var1 = FurnaceRecipes.smelting().getSmeltingResult(this.furnaceItemStacks[0]);\n\n if (this.furnaceItemStacks[2] == null)\n {\n this.furnaceItemStacks[2] = var1.copy();\n }\n else if (this.furnaceItemStacks[2].isItemEqual(var1))\n {\n ++this.furnaceItemStacks[2].stackSize;\n }\n\n --this.furnaceItemStacks[0].stackSize;\n\n if (this.furnaceItemStacks[0].stackSize <= 0)\n {\n this.furnaceItemStacks[0] = null;\n }\n }\n }", "public void moveAnimal(AnimalSol animal, String from, String to) {\n removeAnimal(animal);\n placeAnimal(animal, to);\n }", "@Override\n public void setInventorySlotContents(int index, @Nullable ItemStack stack1) {\n markDirty();\n int flag = 1;\n if (null == stack) {\n stack = stack1.copy();\n stack1.stackSize = 0;\n flag = 3;\n } else {\n int limit = Config.Feeder.InvSize - stack.stackSize;\n if (stack1.stackSize > limit) {\n stack.stackSize += limit;\n stack1.stackSize -= limit;\n } else {\n stack.stackSize += stack1.stackSize;\n stack1.stackSize = 0;\n }\n }\n IBlockState state = worldObj.getBlockState(getPos());\n worldObj.notifyBlockUpdate(getPos(), state, state, flag);\n }", "public void smeltItem() {\n\t\tif (this.canSmelt()) {\n\t\t\tItemStack itemstack = FurnaceRecipes.smelting().getSmeltingResult(\n\t\t\t\t\tthis.slots[0]);\n\t\t\tif (this.slots[1] == null) {\n\t\t\t\tthis.slots[1] = itemstack.copy();\n\t\t\t} else if (this.slots[1].getItem() == itemstack.getItem()) {\n\t\t\t\tthis.slots[1].stackSize += itemstack.stackSize;\n\t\t\t}\n\n\t\t\t--this.slots[0].stackSize;\n\n\t\t\tif (this.slots[0].stackSize <= 0) {\n\t\t\t\tthis.slots[0] = null;\n\t\t\t}\n\t\t}\n\t}", "public void setItemInHand ( ItemStack item ) {\n\t\tPlayer handle = handle ( );\n\t\t\n\t\tif ( handle != null ) {\n\t\t\ttry {\n\t\t\t\tsafeGetMethod ( PlayerInventory.class , \"setItemInMainHand\" , new Class[] { ItemStack.class } )\n\t\t\t\t\t\t.invoke ( handle.getInventory ( ) , item );\n\t\t\t} catch ( Exception e ) {\n\t\t\t\ttry {\n\t\t\t\t\tsafeGetMethod ( PlayerInventory.class , \"setItemInHand\" , new Class[] { ItemStack.class } )\n\t\t\t\t\t\t\t.invoke ( handle.getInventory ( ) , item );\n\t\t\t\t} catch ( IllegalAccessException | InvocationTargetException ex ) {\n\t\t\t\t\tex.printStackTrace ( );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void setItemStack(ItemStack stack) {\n\t}", "private void moveTile()\n {\n int[] moveIndices = null;\n \n int sourceRow = moveIndices[0];\n int sourceCol = moveIndices[1];\n int destRow = moveIndices[2] - 1;\n int destCol = moveIndices[3];\n \n if (sourceRow == 0) \n {\n try\n {\n game.playTileFromHand(sourceCol, destRow, destCol);\n }\n catch(ArrayIndexOutOfBoundsException ex)\n {\n // TODO: ConsoleUtils.message(\"Unable to complete your play, wrong indices!\");\n }\n }\n else\n {\n sourceRow--;\n try\n {\n game.moveTileInBoard(sourceRow, sourceCol, destRow, destCol); \n }\n catch(ArrayIndexOutOfBoundsException ex)\n {\n // TODO: ConsoleUtils.message(\"Unable to complete your play, wrong indices!\");\n }\n }\n }", "public void movePoint(int slots) {\n if (0 >= this.pointInventory + slots) {\n this.pointInventory = 0;\n }\n else this.pointInventory = Math.min(this.lenInventory - 1, this.pointInventory + slots);\n }", "@Override\n public void moveResourceToContainer(ResourceContainer container, Shelf from, ResourceSingle resource, int amount) throws IllegalCupboardException {\n if(container == null || from == null || resource == null)\n throw new NullPointerException();\n if(amount <= 0)\n throw new IllegalArgumentException(\"The amount must be positive\");\n if(!contains(from))\n throw new NoSuchElementException(\"Container \" + from.getId() + \" does not contain \" + amount + \" \" + resource.getId());\n\n try{\n from.moveTo(container, resource, amount);\n }catch(IllegalResourceTransferException e ){\n throw new IllegalCupboardException(\"Resource transaction cannot be performed\");\n }\n }", "public void setInventorySlotContents(int slot, ItemStack stack)\n {\n waterjetStacks[slot] = stack;\n }", "ItemStack setResult(final ItemStack result);", "public void takeItemsFromChest() {\r\n currentRoom = player.getCurrentRoom();\r\n for (int i = 0; i < currentRoom.getChest().size(); i++) {\r\n player.addToInventory(currentRoom.getChest().get(i));\r\n currentRoom.getChest().remove(i);\r\n }\r\n\r\n }", "public void onCraftMatrixChanged(IInventory inventoryIn)\n {\n \tItemStack stack=null;\n \tList<IRecipe> recipes=TF2CraftingManager.INSTANCE.getRecipeList();\n \tif(currentRecipe>=0&&currentRecipe<recipes.size()&&recipes.get(currentRecipe).matches(this.craftMatrix, worldObj)){\n \t\tstack=getReplacement(recipes.get(currentRecipe).getCraftingResult(this.craftMatrix));\n \t\t//?TF2CraftingManager.INSTANCE.getRecipeList().get(currentRecipe)TF2CraftingManager.INSTANCE.findMatchingRecipe(this.craftMatrix, this.worldObj);\n \t}\n \telse{\n \t\tstack=getReplacement(TF2CraftingManager.INSTANCE.findMatchingRecipe(this.craftMatrix, this.worldObj));\n \t}\n this.craftResult.setInventorySlotContents(0, stack);\n }", "public void dropEntireInventory(World world, BlockPos pos, int id, int metadata) {\n int x = pos.getX();\n int y = pos.getY();\n int z = pos.getZ();\n TileEntity tileEntity = world.getTileEntity(pos);\n if (tileEntity != null && tileEntity instanceof IInventory) {\n IInventory inventory = (IInventory) tileEntity;\n for (int i = 0; i < inventory.getSizeInventory(); ++i) {\n ItemStack stack = inventory.getStackInSlot(i);\n if (stack != null) {\n Random random = new Random();\n float sx = random.nextFloat() * 0.8F + 0.1F;\n float sy = random.nextFloat() * 0.8F + 0.1F;\n float sz = random.nextFloat() * 0.8F + 0.1F;\n while (stack.stackSize > 0) {\n int qty = random.nextInt(21) + 10;\n if (qty > stack.stackSize) {\n qty = stack.stackSize;\n }\n stack.stackSize -= qty;\n EntityItem eitem = new EntityItem(world, x + sx, y + sy, z + sz, new ItemStack(stack.getItem(), qty, stack.getItemDamage()));\n if (stack.hasTagCompound()) {\n eitem.getEntityItem().setTagCompound((NBTTagCompound) stack.getTagCompound().copy());\n }\n float displacement = 0.05F;\n eitem.motionX = (float) random.nextGaussian() * displacement;\n eitem.motionY = (float) random.nextGaussian() * displacement + 0.2F;\n eitem.motionZ = (float) random.nextGaussian() * displacement;\n world.spawnEntityInWorld(eitem);\n }\n }\n }\n }\n }", "public void moveTo(Holder newHolder) throws IllegalArgumentException, IllegaleToestandsUitzondering {\r\n\t\tHolder oldHolder = getHolder();\r\n\t\tif(newHolder == null)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\tif(!newHolder.canHoldItem(this) || !isValidHolder(newHolder)) { \r\n\t\t\tthrow new IllegaleToestandsUitzondering(\"the given holder isn't valid for this item\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tsetHolder(newHolder);\r\n\t\t\toldHolder.removeItem(this);\r\n\t\t\tnewHolder.addItem(this); \r\n\t\t} catch (IllegaleToestandsUitzondering e) {\r\n\t\t\treset(oldHolder);\r\n\t\t\tthrow e;\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\treset(oldHolder);\r\n\t\t\tthrow e;\r\n\t\t} \r\n\t}", "protected void handleAutoInsertAsIndividualActions(Player viewer, InventoryState inventoryState, GUISession session, Inventory destInv, InventoryClickEvent shiftClickEvent){\n shiftClickEvent.setCancelled(true); //Cancel the event\n boolean destIsTopInv = shiftClickEvent.getView().getTopInventory().equals(destInv);\n //find an empty slot and try and place it there\n ItemStack toMove = shiftClickEvent.getCurrentItem().clone();\n int totalToMove = toMove.getAmount(); //The total amount trying to be moved\n if(toMove == null || toMove.getType().equals(Material.AIR) || toMove.getAmount() < 1){\n return; //No item to move\n }\n int destSlotNum = -1;\n int moveAmount = toMove.getAmount(); //The amount we can move\n for(int i=0;i<destInv.getSize();i++){ //First try and find a slot that we can stack with\n if(!destIsTopInv && i > 35){ //Moving to bottom (Always Player) inventory, slots outside of 35 are not allowed to be auto-inserted into\n break;\n }\n ItemStack it = destInv.getItem(i);\n if(it != null && !it.getType().equals(Material.AIR)){ //Slot isn't empty, let's try and place it here\n GUIElement inSlot = !destIsTopInv ? null : inventoryState.getElementInSlot(i); //The GUIElement in this slot if dest is the GUI\n if(inSlot == null || inSlot.canAutoInsertIntoSlot(viewer, session)) { //Slot is able to be auto inserted into\n if(it.getAmount() < it.getMaxStackSize() && StackCompatibilityUtil.canStack(it, toMove)){ //They can be stacked together and it's not a full stack\n destSlotNum = i;\n moveAmount = Math.min(moveAmount, it.getMaxStackSize() - it.getAmount()); //Reduce the number to move if moving the current amount would overflow the stack\n break;\n }\n }\n }\n }\n if(destSlotNum == -1){ //If still not found a slot\n for(int i=0;i<destInv.getSize();i++){ //Second try and find an allowed empty slot to try and place into\n if(!destIsTopInv && i > 35){ //Moving to bottom (Always Player) inventory, slots outside of 35 are not allowed to be auto-inserted into\n break;\n }\n ItemStack it = destInv.getItem(i);\n if(it == null || it.getType().equals(Material.AIR)){ //Slot is empty, let's try and place it here\n GUIElement inSlot = !destIsTopInv ? null : inventoryState.getElementInSlot(i); //The GUIElement in this slot if dest is the GUI\n if(inSlot == null || inSlot.canAutoInsertIntoSlot(viewer, session)) {\n destSlotNum = i;\n break;\n }\n }\n }\n }\n toMove.setAmount(moveAmount);\n\n if(destSlotNum >= 0) { //If we have found a destination slot\n //Simulate a place event for here\n ItemStack cursor = shiftClickEvent.getView().getCursor();\n\n if(destIsTopInv) { //If destination is GUI, then simulate placing it\n shiftClickEvent.getView().setCursor(toMove);\n InventoryClickEvent placeEvent = new InventoryClickEvent(shiftClickEvent.getView(), InventoryType.SlotType.CONTAINER, destSlotNum, ClickType.LEFT, InventoryAction.PLACE_ALL);\n handleBukkitEvent(placeEvent, session);\n boolean placed = !placeEvent.isCancelled() || shiftClickEvent.getView().getCursor() == null\n || shiftClickEvent.getView().getCursor().getType().equals(Material.AIR); //If cursor is now cleared or event not cancelled, then item was/should be moved\n shiftClickEvent.getView().setCursor(cursor); //Reset cursor to how it was before we did the shift click\n if(!placeEvent.isCancelled()){\n //Move item as it not being cancelled means it's expected to happen\n destInv.setItem(destSlotNum, toMove); //Make the slot contain the item to move\n }\n if(placed){ //Has been placed into the destination slot, so now clear the source slot of the items we moved\n int newAmount = totalToMove - moveAmount; //Figure out how many are left\n ItemStack remainder = toMove.clone(); //Get the item stack that was moved\n remainder.setAmount(newAmount); //Set the amount to be how many are left\n shiftClickEvent.getView().setItem(shiftClickEvent.getRawSlot(), newAmount < 1 ? null : remainder); //Update in inventory\n }\n }\n else { //Source is GUI, so simulate picking it up\n shiftClickEvent.getView().setCursor(null); //Set the current cursor to nothing, so we can pickup everything available\n //Pickup all the items in the slot\n InventoryClickEvent pickupEvent = new InventoryClickEvent(shiftClickEvent.getView(), shiftClickEvent.getSlotType(), shiftClickEvent.getRawSlot(), ClickType.LEFT, InventoryAction.PICKUP_ALL);\n handleBukkitEvent(pickupEvent, session);\n boolean pickedUp = !pickupEvent.isCancelled() || (shiftClickEvent.getView().getCursor() != null\n && !shiftClickEvent.getView().getCursor().getType().equals(Material.AIR)); //If all the items were picked up\n if(!pickupEvent.isCancelled()){ //If not cancelled we actually have to do the action\n shiftClickEvent.getView().setItem(shiftClickEvent.getRawSlot(), null);\n }\n if(pickedUp){\n //We picked up too much, so put back any needed\n int amtPickedUp = shiftClickEvent.getView().getCursor() == null ? 0 : shiftClickEvent.getView().getCursor().getAmount();\n int toPutBack = amtPickedUp - moveAmount;\n if(toPutBack > 0){ //Put back the extra\n ItemStack toReturn = toMove.clone();\n toReturn.setAmount(toPutBack);\n shiftClickEvent.getView().setCursor(toReturn);\n InventoryClickEvent placeEvent = new InventoryClickEvent(shiftClickEvent.getView(), shiftClickEvent.getSlotType(), shiftClickEvent.getRawSlot(), ClickType.LEFT, InventoryAction.PLACE_ALL);\n handleBukkitEvent(placeEvent, session);\n if(!placeEvent.isCancelled()){\n //Change item as it not being cancelled means it's expected to happen\n shiftClickEvent.getView().setItem(shiftClickEvent.getRawSlot(), toReturn);\n }\n }\n\n //Put the 'picked up' items into the destination inventory\n ItemStack currentItem = destInv.getItem(destSlotNum);\n int currentAmt = currentItem == null || !StackCompatibilityUtil.canStack(toMove, currentItem) ? 0 : currentItem.getAmount();\n int amt = currentAmt + moveAmount; //Add the existing amount and the amount to add\n toMove.setAmount(amt);\n destInv.setItem(destSlotNum, toMove);\n }\n shiftClickEvent.getView().setCursor(cursor); //Reset cursor to how it was before we did the shift click\n }\n\n if(totalToMove > moveAmount){ //If not all of the stack was moved into the GUI, call recursively to try and move the remainder\n InventoryClickEvent newShiftClickEvent = new InventoryClickEvent(shiftClickEvent.getView(), shiftClickEvent.getSlotType(),\n shiftClickEvent.getRawSlot(), shiftClickEvent.getClick(), InventoryAction.MOVE_TO_OTHER_INVENTORY);\n //Call self recursively to move the remainder somewhere\n handleAutoInsertAsIndividualActions(viewer, inventoryState, session, destInv, newShiftClickEvent);\n }\n }\n return;\n }", "@EventHandler (priority = EventPriority.HIGHEST)\n\tpublic void onDrag(final InventoryDragEvent event) {\n\t\tif (!(event.getWhoClicked() instanceof Player)) {\n\t\t\treturn;\n\t\t}\n\t\tfinal Player player = (Player)event.getWhoClicked();\n\t\t\n\t\tShopObject shop = getShopPlayerIsViewing(player);\n\t\tif (shop == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tboolean wasDraggedInShop = false;\n\t\tfor (int slot : event.getRawSlots()) {\n\t\t\tif (slot < 27) {\n\t\t\t\twasDraggedInShop = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (!wasDraggedInShop) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tItemStack toPutInShop = event.getOldCursor();\n\t\tboolean canPutInShop = canPutItemInShop(shop, toPutInShop, player);\n\t\t\n\t\tif (!canPutInShop) {\n\t\t\tevent.setCancelled(true);\n\t\t}\n\t\tplugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() { \n\t\t\tpublic void run() { \n\t\t\t\tplayer.updateInventory();\n\t\t\t}\n\t\t}, 5L); \n\t}", "@Override\r\n\tpublic void undo() throws InstructionExecutionException {\n\t\ttry\r\n\t\t{\r\n\t\t\tthis.robotContainer.pickItem(id);\r\n\t\t\tthis.robotContainer.addItem(lastItem);\r\n\t\t\tthis.engine.addFuel(lastFuel-this.engine.getFuel());\r\n\t\t\tthis.engine.addRecycledMaterial(lastRecycledMaterial-this.engine.getRecycledMaterial());\r\n\t\t} \r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tthrow new InstructionExecutionException();\r\n\t\t}\r\n\t}", "public void mapItemsToSlots(Inventory inventory) {\n\t\tint slotIndex = 0;\n\t\tfor(ItemSlot slot : itemSlots) {\n\t\t\tif(slotIndex < inventory.getItems().size()) {\n\t\t\t\tslot.setMappedItem(inventory.getItems().get(slotIndex++));\n\t\t\t} else {\n\t\t\t\tslot.setMappedItem(null);\n\t\t\t}\n\t\t}\n\t}", "void move(IPile<ICard> other) throws IllegalArgumentException;", "public void updateInventory ( ) {\n\t\texecute ( handle -> handle.updateInventory ( ) );\n\t}", "void dropItem(Command command) {\n HashMap newInventory = inventory.getInventory();\n Iterator iterator = newInventory.entrySet().iterator();\n String seeItem;\n// int indexItem = -1;\n String nameOfItem = \"\";\n String dropFromInventory = \"debug\";\n\n while (iterator.hasNext()) {\n HashMap.Entry liste = (HashMap.Entry) iterator.next();\n String itemName = (String) liste.getKey();\n if (itemName.equalsIgnoreCase(command.getSecondWord())) {\n dropFromInventory = itemName;\n nameOfItem = itemName;\n break;\n }\n }\n if (!nameOfItem.equals(\"\")) {\n itemLocation.addItem(currentRoom, new PickableItem(nameOfItem, inventory.getItemWeight(nameOfItem), inventory.getUseable(nameOfItem)));\n inventory.removeItemInventory(nameOfItem);\n System.out.println(\"You have dropped: \" + nameOfItem);\n\n } else {\n System.out.println(\"Can't drop item that isn't in inventory \" + command.getSecondWord());\n }\n }", "private void resetPlayer() {\r\n List<Artefact> inventory = currentPlayer.returnInventory();\r\n Artefact item;\r\n int i = inventory.size();\r\n\r\n while (i > 0) {\r\n item = currentPlayer.removeInventory(inventory.get(i - 1).getName());\r\n currentLocation.addArtefact(item);\r\n i--;\r\n }\r\n currentLocation.removePlayer(currentPlayer.getName());\r\n locationList.get(0).addPlayer(currentPlayer);\r\n currentPlayer.setHealth(3);\r\n }", "private void addItemStack(Item itemStack) {\n\t\tint findStackable = findStackableItem(itemStack);\r\n\t\tif(findStackable!=-1){\r\n\t\t\tItem heldStack=tileItems.getItem(findStackable);\r\n\t\t\twhile(!heldStack.stackFull()&&\t//as long as the current stack isn't full and the stack we're picking up isn't empty\r\n\t\t\t\t!itemStack.stackEmpty()){\r\n\t\t\t\theldStack.incrementStack();\r\n\t\t\t\titemStack.decrementStack(tileItems);\r\n\t\t\t\tif(itemStack.stackEmpty())\t//will this cause an error since the item is removed by the inventory?\r\n\t\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\taddItemStack(itemStack);\r\n\t\t}\r\n\t\telse\r\n\t\t\taddFullStack(itemStack);\r\n\t}", "public static void inventoryTransaction(final Inventory inventory1, final ItemStack[] items1, final Inventory inventory2, final ItemStack[] items2) throws InvalidParameterException, FailedTransactionException {\n if (!isValidInventory(inventory1)) {\n throw new InvalidParameterException(\"Cannot perform transaction, inventory1 is invalid.\");\n }\n if (items1 == null) {\n throw new InvalidParameterException(\"Cannot perform transaction, items1 is null.\");\n }\n if (!isValidInventory(inventory2)) {\n throw new InvalidParameterException(\"Cannot perform transaction, inventory2 is invalid.\");\n }\n if (items2 == null) {\n throw new InvalidParameterException(\"Cannot perform transaction, items2 is null.\");\n }\n if (!ItemAPI.isValidItemSet(items1)) {\n throw new InvalidParameterException(\"Cannot perform transaction, items1 contains an invalid item!\");\n }\n if (!ItemAPI.isValidItemSet(items2)) {\n throw new InvalidParameterException(\"Cannot perform transaction, items2 contains an invalid item!\");\n }\n ItemStack[] savedInventory1 = duplicateInventory(inventory1.getContents());\n ItemStack[] savedInventory2 = duplicateInventory(inventory2.getContents());\n try {\n // Remove items1 from inventory1\n for (ItemStack item : items1) {\n removeItemFromInventory(inventory1, item);\n }\n // Remove items2 from inventory2\n for (ItemStack item : items2) {\n removeItemFromInventory(inventory2, item);\n }\n // Add items2 to inventory1\n for (ItemStack item : items2) {\n addItemToInventory(inventory1, item);\n }\n // Add items1 to inventory2\n for (ItemStack item : items1) {\n addItemToInventory(inventory2, item);\n }\n }\n catch (FailedTransactionException exception) {\n // Restore the inventory to its previous state\n inventory1.setContents(savedInventory1);\n inventory2.setContents(savedInventory2);\n throw exception;\n }\n }", "@Override\n\tpublic void setInventorySlotContents(int slot, ItemStack stack){\n\t modularStacks[slot] = stack;\n\n\t if(stack != null && stack.stackSize > getInventoryStackLimit()) {\n\t stack.stackSize = getInventoryStackLimit();\n\t }\n\n\t markDirty();\n\t worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);\n\t}", "public void transferItem(Items item) throws Exception {\n\t\tif (item.getHolder() instanceof Monsters) {\n\t\t\titem.setHolder(null);\n\t\t\tthis.addAnchor(item);\n\t\t}\n\t\telse if (item.getHolder() instanceof Backpacks) {\n\t\t\titem.setHolder(null);\n\t\t\tthis.addAnchor(item);\n\t\t}\n\t\telse\n\t\t\tthrow new Exception(\"The transaction is only possible between monsters and/or backpacks.\");\n\t}", "public boolean moveCard(AbstractCard card, CardCollection moveLocation);", "@Override\n\tpublic ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player)\n\t{\n\t\tint i = 3 - this.armorType.ordinal();\n\t\tItemStack stack1 = player.getCurrentArmor(i);\n\t\t\n\t\tif(stack1 == null && this.isValidArmor(stack, this.armorType.ordinal(), player))\n\t\t{\n\t\t\tplayer.setCurrentItemOrArmor(1 + i, stack.copy());\n\t\t\tstack.stackSize = 0;\n\t\t}\n\t\t\n\t\treturn stack;\n\t}", "@Override\r\n\tpublic void onCraftMatrixChanged(IInventory inventoryIn)\r\n {\r\n this.craftResult.setInventorySlotContents(0, CrystalCraftingManager.getInstance().findMatchingRecipe(this.craftMatrix, this.worldObj));\r\n }", "public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) {\n MovingObjectPosition movingobjectposition = this.getMovingObjectPositionFromPlayer(par2World, par3EntityPlayer, true);\n\n if (movingobjectposition == null) {\n return par1ItemStack;\n } else {\n if (!par2World.isRemote && movingobjectposition.typeOfHit == EnumMovingObjectType.TILE && mobID != null) {\n double i = movingobjectposition.hitVec.xCoord;\n double j = movingobjectposition.hitVec.yCoord;\n double k = movingobjectposition.hitVec.zCoord;\n\n spawnBottledEntity(i, j, k, par2World);\n }\n\n return par1ItemStack;\n }\n }", "public void moveCard(int pileId, int pos, int destPileId) {\n \t\tCard c = mTable.get(pileId).takeCard(pos);\n \t\tif (c != null) {\n \t\t\tmTable.get(destPileId).addCard(c);\n \t\t\tsendUpdatedState();\n \t\t}\n \t}", "@Override\n public void moveBetweenShelves(Shelf from, Shelf to, int amount) throws IllegalCupboardException{\n if(from == null || to == null)\n throw new NullPointerException();\n if(amount <= 0)\n throw new IllegalArgumentException();\n\n if(!shelves.contains(from) || !shelves.contains(to))\n throw new NoSuchElementException();\n\n if(from.getCurrentType() == null)\n throw new IllegalCupboardException(\"Trying to remove resources from an empty shelf\");\n\n try{\n from.moveTo(to, from.getCurrentType(), amount);\n }catch(IllegalResourceTransferException e){\n throw new IllegalCupboardException(\"Can't transfer the resources\");\n }\n\n //if the new configuration is not valid, initial state is restored and the IllegalCupboardException is thrown\n if(!isValid()){\n try{\n to.moveTo(from, to.getCurrentType(), amount);\n }catch(IllegalResourceTransferException e){\n throw new IllegalArgumentException();\n }\n throw new IllegalCupboardException(\"Cupboard configuration would not be valid\");\n }\n }", "@Override\n public void damageArmor(EntityLivingBase entity, ItemStack stack,\n DamageSource source, int damage, int slot) {\n\n }", "public void move() {\n energy -= 0.03;\n if (energy < 0) {\n energy = 0;\n }\n }", "public ItemStack getItemStack(int index) {\n return this.ITEMS.get(index);\n }", "public static void removeItemFromInventory(final Inventory inventory, final ItemStack item) throws InvalidParameterException, FailedTransactionException {\n if (!isValidInventory(inventory)) {\n throw new InvalidParameterException(\"Cannot remove item from an invalid inventory.\");\n }\n if (!ItemAPI.isValidItem(item)) {\n throw new InvalidParameterException(\"Cannot remove an invalid item from an inventory.\");\n }\n if (!hasRequiredItem(inventory, item, item.getAmount())) {\n throw new FailedTransactionException(\"That inventory does not have the amount of times to remove.\");\n }\n ItemStack[] savedInventory = duplicateInventory(inventory.getContents());\n try {\n int remaining = item.getAmount();\n for (int i = 0; i < inventory.getSize(); i++) {\n ItemStack currentItem = inventory.getItem(i);\n if (ItemAPI.isSimilarItem(currentItem, item)) {\n int currentItemAmount = currentItem.getAmount();\n // If this item can satisfy the remaining amount with some left over\n // then lower the amount of that item and break out of the loop\n if (currentItemAmount > remaining) {\n currentItem.setAmount(currentItemAmount - remaining);\n remaining = 0;\n break;\n }\n // If this item can satisfy the remaining amount exactly\n // then remove the item from the inventory and break out of the loop\n else if (currentItemAmount == remaining) {\n inventory.setItem(i, null);\n remaining = 0;\n break;\n }\n // Otherwise this item still leaves some remaining, so\n // remove the item from the inventory and reduce the remaining\n else {\n inventory.setItem(i, null);\n remaining -= currentItemAmount;\n }\n }\n }\n if (remaining != 0) {\n throw new FailedTransactionException(\"Was not able to remove the exact amount of that item!\");\n }\n }\n catch (FailedTransactionException exception) {\n // Restore the inventory to its previous state\n inventory.setContents(savedInventory);\n throw exception;\n }\n }", "public final void give(final Player player, final int slot) {\n\t\tplayer.getInventory().setItem(slot, this.getItem());\n\t}", "public void move()\n\t{\n\t\tVector v = ship.v;\n\t\tb = b.getLocation().add(v).getBlock();\n\t\tif(triangle != null) triangle.move();\n\t\tif(rear != null) rear.move();\n\t\tif(foreAndAft != null) foreAndAft.move();\n\t\tif(sails != null) for(int i = 0; i < sails.size(); i++)\n\t\t{\n\t\t\tSail sail = sails.get(i);\n\t\t\tsail.move();\n\t\t}\n\t}", "@EventHandler\n public void onInventoryClick(InventoryClickEvent e) {\n // Check if it is one of our inventories\n if (!(e.getInventory().getHolder() instanceof InventoryEvent)) return;\n\n // Cancel the event so the player can't take the item\n e.setCancelled(true);\n\n // Check if it was air or null\n if (e.getCurrentItem() == null || e.getCurrentItem().getType() == Material.AIR) return;\n\n // Get the sign in progress\n ShopSign cur = null;\n for( ShopSign sign : signs) {\n if(sign.owner.equalsIgnoreCase(e.getWhoClicked().getUniqueId().toString())) {\n cur = sign;\n break;\n }\n }\n\n // Check if cur is null\n if(cur == null) {\n return;\n }\n\n // Check if the sign is done\n if(cur.done) {\n return;\n }\n\n // Set the can remove flag to true\n can_remove = true;\n\n // Get the player\n HumanEntity player = e.getWhoClicked();\n\n // Get the inventory that was clicked\n Inventory inv = clone_inv(e.getClickedInventory(), e.getView().getTitle());\n\n // Get the clicked item\n ItemStack clicked = e.getCurrentItem();\n ItemMeta clicked_meta = clicked.getItemMeta();\n\n // Check if it was exit\n if(clicked_meta.getDisplayName().equalsIgnoreCase(\"exit\") && e.getRawSlot() == 0) {\n // Remove the in progress sign\n signs.remove(cur);\n\n e.getWhoClicked().closeInventory();\n return;\n }\n\n // Make sure it's not removed when switching the UI\n can_remove = false;\n\n // Check if it was to proceed\n if(clicked_meta.getDisplayName().equalsIgnoreCase(\"next\") && e.getRawSlot() == 8) {\n if(e.getView().getTitle().equalsIgnoreCase(\"Item Amount\")) {\n player.openInventory(itemPrice);\n } else {\n player.sendMessage(\"Now right click on a chest to select it!\");\n player.closeInventory();\n }\n return;\n }\n\n // Check if it is buying or selling\n else if(e.getView().getTitle().equalsIgnoreCase(\"Selling or Buying\")) {\n // If it was selling\n if(clicked_meta.getDisplayName().equalsIgnoreCase(\"Buy\") && e.getRawSlot() == 5) {\n cur.selling = false;\n }\n // If it was buying\n else if(clicked_meta.getDisplayName().equalsIgnoreCase(\"Sell\") && e.getRawSlot() == 3) {\n cur.selling = true;\n }\n\n inv = clone_inv(itemAmount, \"Item Amount\");\n inv.setItem(4, cur.item);\n player.openInventory(inv);\n }\n\n // Check if it was an increase or decrease in amount\n else if(e.getView().getTitle().equalsIgnoreCase(\"Item Amount\")) {\n // If it was green wool\n if(clicked_meta.getDisplayName().equalsIgnoreCase(\"More\") && e.getRawSlot() == 5) {\n // Make sure were not at the max stack size\n if(cur.item.getAmount() == cur.item.getMaxStackSize()) {\n return;\n }\n\n // Add one to the amount of the in progress sign\n cur.item.setAmount(cur.item.getAmount()+1);\n\n // Update the ui\n inv.setItem(4, cur.item);\n player.openInventory(inv);\n return;\n }\n\n // If it was red wool\n else if(clicked_meta.getDisplayName().equalsIgnoreCase(\"Less\") && e.getRawSlot() == 3) {\n // Make sure were not at the stack minimum\n if(cur.item.getAmount() == 1) {\n return;\n }\n\n // Subtract one from the amount of the in progress sign\n cur.item.setAmount(cur.item.getAmount()-1);\n\n // Update the ui\n inv.setItem(4, cur.item);\n player.openInventory(inv);\n return;\n }\n }\n\n // Check if we are changing the price\n else if(e.getView().getTitle().equalsIgnoreCase(\"Item Price\")) {\n // If it was green wool\n if(clicked_meta.getDisplayName().equalsIgnoreCase(\"More\") && e.getRawSlot() == 5) {\n // Make sure were not at the max stack size\n if(cur.price == 64) {\n return;\n }\n\n // Add one to the amount of the in progress sign\n cur.price++;\n\n // Update the ui\n inv.setItem(4, new ItemStack(Material.GOLD_INGOT, cur.price));\n player.openInventory(inv);\n return;\n }\n\n // If it was red wool\n else if(clicked_meta.getDisplayName().equalsIgnoreCase(\"Less\") && e.getRawSlot() == 3) {\n // Make sure were not at the stack minimum\n if(cur.price == 1) {\n return;\n }\n\n // Subtract one from the amount of the in progress sign\n cur.price--;\n\n // Update the ui\n inv.setItem(4, new ItemStack(Material.GOLD_INGOT, cur.price));\n player.openInventory(inv);\n return;\n }\n }\n\n // Allow removal again\n can_remove = true;\n }", "public static void disperseInventory(Inventory inv1, Inventory inv2) {\r\n if (inv1 != null) {\r\n for (ItemStack item : inv1) {\r\n if (item != null)\r\n inv2.addItem(item);\r\n }\r\n removeAllItems(inv1);\r\n }\r\n }", "@Override\n\tpublic void editInventory(Inventory inventory) {\n\t\tinventoryDao.save(inventory);\n\t}", "public void dropItems() {\n\t\tlocation.getChunk().load();\n\t\tArrays.stream(inventory.getContents())\n\t\t\t.filter(ItemStackUtils::isValid)\n\t\t\t.forEach((item) -> location.getWorld().dropItemNaturally(location, item));\n\t\tinventory.clear();\n\t}", "public void writeInventoryToNBT(CompoundNBT tag) {\n IInventory inventory = this;\n ListNBT nbttaglist = new ListNBT();\n\n for (int i = 0; i < inventory.getSizeInventory(); i++) {\n if (!inventory.getStackInSlot(i).isEmpty()) {\n CompoundNBT itemTag = new CompoundNBT();\n itemTag.putByte(TAG_SLOT, (byte) i);\n inventory.getStackInSlot(i).write(itemTag);\n nbttaglist.add(itemTag);\n }\n }\n\n tag.put(TAG_ITEMS, nbttaglist);\n }", "@Override\r\n\tpublic void move(String srcAbsPath, String destAbsPath)\r\n\t\t\tthrows ItemExistsException, PathNotFoundException,\r\n\t\t\tVersionException, ConstraintViolationException, LockException,\r\n\t\t\tRepositoryException {\n\t\t\r\n\t}", "public int move(int from, int to) {\n // Gracefully handle items beyond end\n final int size = mItems.size();\n from = constrain(from, 0, size - 1);\n to = constrain(to, 0, size - 1);\n\n final Path item = mItems.remove(from);\n mItems.add(to, item);\n return to;\n }", "public void MoveTileOpponent(Integer position){\n Integer position_inverted = revertTile(position);\n String position_inverted_str = String.valueOf(position_inverted);\n\n ImageView player2 = findImageButton(\"square_\"+position_inverted_str);\n ImageView player2_old = findImageButton(\"square_\"+opponentTile.toString());\n player2.setImageDrawable(getResources().getDrawable(R.drawable.tank_red));\n player2_old.setImageDrawable(getResources().getDrawable(android.R.color.transparent));\n\n opponentTile = position_inverted;\n myTurn = true;\n canPlaceBomb = true;\n turnNumber = turnNumber + 1;\n\n if(ShotsCaller){\n placePowerup(null);\n }\n }", "@Override\n\tpublic void breakBlock(World worldIn, BlockPos pos, IBlockState state) {\n\t\tTileEntity tileEntity = worldIn.getTileEntity(pos);\n\t\tif (tileEntity instanceof IInventory) {\n\t\t\tInventoryHelper.dropInventoryItems(worldIn, pos, (IInventory) tileEntity);\n\t\t}\n\t\t// Super MUST be called last because it removes the tile entity\n\n\t\t//this.dropBlockAsItem(worldIn, pos, state, 0);\n\t\tsuper.breakBlock(worldIn, pos, state);\n\t}", "public void playerDropItem(Player p, Item i) {\n\t\tTile tileInFront = p.getLocation().getTileInDirection(p.getPosition(), p.getFacing());\n\t\tif (tileInFront.getGameObject() == null) {\n\t\t\ttileInFront.setGameObject(i);\n\t\t\tp.getInventory().remove(i);\n\t\t}\n\n\t}", "public void drop(String itemName, World world) {\n\t\tItem item = world.dbItems().get(itemName);\n\n\t\tList<Item> items = super.getItems();\n\t\tRoom room = super.getRoom();\n\t\tList<Item> roomItems = room.getItems();\n\n\t\tif (items.contains(item)) {\n\t\t\troom.addItem(item);\n\t\t\tsuper.removeItem(item);\n\t\t\tSystem.out.println(\"Dropped \" + item + \" on the floor.\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No \" + item + \" in inventory.\");\n\t\t}\n\t}", "@Override\r\n\tpublic void transferItems(Robot from, Robot to)\r\n\t{\r\n\t\tfrom.transferItems(to);\r\n\t}", "public void readInventoryFromNBT(CompoundNBT tag) {\n ListNBT nbttaglist = tag.getList(TAG_ITEMS, NBT.TAG_COMPOUND);\n\n int limit = this.getInventoryStackLimit();\n ItemStack stack;\n for (int i = 0; i < nbttaglist.size(); ++i) {\n CompoundNBT itemTag = nbttaglist.getCompound(i);\n int slot = itemTag.getByte(TAG_SLOT) & 255;\n if (slot < this.inventory.size()) {\n stack = ItemStack.read(itemTag);\n if (!stack.isEmpty() && stack.getCount() > limit) {\n stack.setCount(limit);\n }\n this.inventory.set(slot, stack);\n }\n }\n }", "public void dropItem(Location loc){\n\t\t\n\t\tPlayer p = getThrower();\n\t\tItemStack droppedItem;\n\t\t\n\t\tdroppable.clear();\n\t\t\n\t\taddItem(Material.IRON_INGOT, 8, 8, 3); //Item, weight, maximum stack size, minimum stack size\n\t\taddItem(Material.GOLD_INGOT, 5, 5, 1);\n\t\taddItem(Material.DIAMOND, 3, 3, 1);\n\t\taddItem(Material.GOLDEN_APPLE, 1, 1, 1);\n\t\taddItem(Material.ROTTEN_FLESH, 10, 5, 1);\n\t\taddItem(Material.BREAD, 15, 32, 15);\n\t\taddItem(Material.BONE, 10, 5, 1);\n\t\taddItem(Material.SULPHUR, 10, 5, 1);\n\t\taddItem(Material.SADDLE, 1, 1, 1);\n\t\t\n\t\tint Size = droppable.size();\n\t\trandNum = ThreadLocalRandom.current().nextInt(Size);\n\t\t\n\t\tdroppedItem = droppable.get(randNum);\n\t\t\n\t\tp.getWorld().dropItem(loc, droppedItem);\n\t\tp.getWorld().dropItem(loc, new ItemStack(Material.GOLD_NUGGET, rand.nextInt(10) + 1));\n\t\t\n\t}", "public final void give(final Player player) {\n\t\tplayer.getInventory().addItem(this.getItem());\n\t}", "public void moveAllItems() {\n for (BaseObject object : getAllItems()) {\n object.move();\n }\n }", "public void sellProduct(){\n if(quantity > 0)\n this.quantity -= 1;\n else\n throw new IllegalArgumentException(\"Cannot sell \"+ this.model +\" with no inventory\");\n\n }", "public ItemStack onItemRightClick(ItemStack var1, World var2, EntityPlayer var3)\n {\n float var4 = 1.0F;\n double var5 = var3.prevPosX + (var3.posX - var3.prevPosX) * (double)var4;\n double var7 = var3.prevPosY + (var3.posY - var3.prevPosY) * (double)var4 + 1.62D - (double)var3.yOffset;\n double var9 = var3.prevPosZ + (var3.posZ - var3.prevPosZ) * (double)var4;\n boolean var11 = this.isFull == 0;\n MovingObjectPosition var12 = this.getMovingObjectPositionFromPlayer(var2, var3, var11);\n\n if (var12 == null)\n {\n return var1;\n }\n else\n {\n FillBucketEvent var13 = new FillBucketEvent(var3, var1, var2, var12);\n\n if (MinecraftForge.EVENT_BUS.post(var13))\n {\n return var1;\n }\n else if (var13.getResult() == Event.Result.ALLOW)\n {\n if (var3.capabilities.isCreativeMode)\n {\n return var1;\n }\n else if (--var1.stackSize <= 0)\n {\n return var13.result;\n }\n else\n {\n if (!var3.inventory.addItemStackToInventory(var13.result))\n {\n var3.dropPlayerItem(var13.result);\n }\n\n return var1;\n }\n }\n else\n {\n if (var12.typeOfHit == EnumMovingObjectType.TILE)\n {\n int var14 = var12.blockX;\n int var15 = var12.blockY;\n int var16 = var12.blockZ;\n\n if (!var2.canMineBlock(var3, var14, var15, var16))\n {\n return var1;\n }\n\n if (this.isFull == 0)\n {\n if (!var3.canPlayerEdit(var14, var15, var16, var12.sideHit, var1))\n {\n return var1;\n }\n\n if (var2.getBlockMaterial(var14, var15, var16) == Material.water && var2.getBlockMetadata(var14, var15, var16) == 0)\n {\n var2.setBlockWithNotify(var14, var15, var16, 0);\n\n if (var3.capabilities.isCreativeMode)\n {\n return var1;\n }\n\n if (--var1.stackSize <= 0)\n {\n return new ItemStack(Item.bucketWater);\n }\n\n if (!var3.inventory.addItemStackToInventory(new ItemStack(Item.bucketWater)))\n {\n var3.dropPlayerItem(new ItemStack(Item.bucketWater.itemID, 1, 0));\n }\n\n return var1;\n }\n\n if (var2.getBlockMaterial(var14, var15, var16) == Material.lava && var2.getBlockMetadata(var14, var15, var16) == 0 && var2.getBlockId(var14, var15, var16) == DivineRPG.tarStill.blockID)\n {\n var2.setBlockWithNotify(var14, var15, var16, 0);\n\n if (var3.capabilities.isCreativeMode)\n {\n return var1;\n }\n\n if (--var1.stackSize <= 0)\n {\n return new ItemStack(DivineRPG.tarBucket);\n }\n\n if (!var3.inventory.addItemStackToInventory(new ItemStack(DivineRPG.tarBucket)))\n {\n var3.dropPlayerItem(new ItemStack(DivineRPG.tarBucket.itemID, 1, 0));\n }\n\n return var1;\n }\n }\n else\n {\n if (this.isFull < 0)\n {\n return new ItemStack(DivineRPG.arcaniumBucket);\n }\n\n if (var12.sideHit == 0)\n {\n --var15;\n }\n\n if (var12.sideHit == 1)\n {\n ++var15;\n }\n\n if (var12.sideHit == 2)\n {\n --var16;\n }\n\n if (var12.sideHit == 3)\n {\n ++var16;\n }\n\n if (var12.sideHit == 4)\n {\n --var14;\n }\n\n if (var12.sideHit == 5)\n {\n ++var14;\n }\n\n if (!var3.canPlayerEdit(var14, var15, var16, var12.sideHit, var1))\n {\n return var1;\n }\n\n if (this.tryPlaceContainedLiquid(var2, var5, var7, var9, var14, var15, var16) && !var3.capabilities.isCreativeMode)\n {\n return new ItemStack(DivineRPG.arcaniumBucket);\n }\n }\n }\n\n return var1;\n }\n }\n }", "public void setInventorySlotContents(int p_70299_1_, ItemStack p_70299_2_)\n {\n this.inventoryContents[p_70299_1_] = p_70299_2_;\n\n if (p_70299_2_ != null && p_70299_2_.stackSize > this.getInventoryStackLimit())\n {\n p_70299_2_.stackSize = this.getInventoryStackLimit();\n }\n\n this.markDirty();\n }", "public void EjectStackOnMilled( ItemStack stack )\r\n {\r\n \tint iFacing = 2 + worldObj.rand.nextInt( 4 ); // random direction to the sides\r\n \t\r\n \tVec3 ejectPos = Vec3.createVectorHelper( worldObj.rand.nextDouble() * 1.25F - 0.125F, \r\n \t\tworldObj.rand.nextFloat() * ( 1F / 16F ) + ( 7F / 16F ), \r\n \t\t-0.2F );\r\n \t\r\n \tejectPos.RotateAsBlockPosAroundJToFacing( iFacing );\r\n \t\r\n EntityItem entity = new EntityItem( worldObj, xCoord + ejectPos.xCoord, \r\n \t\tyCoord + ejectPos.yCoord, zCoord + ejectPos.zCoord, stack );\r\n\r\n \tVec3 ejectVel = Vec3.createVectorHelper( worldObj.rand.nextGaussian() * 0.025D, \r\n \t\tworldObj.rand.nextGaussian() * 0.025D + 0.1F, \r\n \t\t-0.06D + worldObj.rand.nextGaussian() * 0.04D );\r\n \t\r\n \tejectVel.RotateAsVectorAroundJToFacing( iFacing );\r\n \t\r\n entity.motionX = ejectVel.xCoord;\r\n entity.motionY = ejectVel.yCoord;\r\n entity.motionZ = ejectVel.zCoord;\r\n \r\n entity.delayBeforeCanPickup = 10;\r\n \r\n worldObj.spawnEntityInWorld( entity );\r\n }", "public void move(int from, int to) {\n // Peek the top element without popping it, to remain in\n // consistent state if push throws an exception\n towers[to].push(towers[from].peek());\n towers[from].pop();\n numMoves++;\n }", "@Override\n public ItemStack onItemRightClick(ItemStack par1ItemStack, World world, EntityPlayer par3EntityPlayer)\n {\n if(!world.isRemote) {\n MobHelper.spawnCreature(world, entClass, par3EntityPlayer, true);\n if (!(par3EntityPlayer.capabilities.isCreativeMode)) {\n par1ItemStack.stackSize--;\n }\n }\n return par1ItemStack;\n }", "ItemStack getItemstackWithMaterial(Material material);", "@Override\r\n\tpublic ItemStack getCraftingResult(InventoryCrafting par1InventoryCrafting) {\r\n\t\tItemStack itemstack = this.getRecipeOutput().copy();\r\n\r\n\t\tif (this.field_92101_f) {\r\n\t\t\tfor (int i = 0; i < par1InventoryCrafting.getSizeInventory(); ++i) {\r\n\t\t\t\tItemStack itemstack1 = par1InventoryCrafting.getStackInSlot(i);\r\n\r\n\t\t\t\tif (itemstack1 != null && itemstack1.hasTagCompound()) {\r\n\t\t\t\t\titemstack.setTagCompound((NBTTagCompound) itemstack1.stackTagCompound.copy());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn itemstack;\r\n\t}", "public void closeInventory ( ) {\n\t\texecute ( handle -> handle.closeInventory ( ) );\n\t}", "@Override\n public void onSmelting(EntityPlayer player, ItemStack item) \n {\n \n }", "public ItemStack getStackInSlot(int par1)\n {\n return par1 >= 9 ? null : tile.inventory[par1];\n }", "public void handleCrafting() {\n if(input.getStackInSlot(0).getItem() != input.getStackInSlot(1).getItem() && !input.getStackInSlot(0).isEmpty() && !input.getStackInSlot(1).isEmpty()) {\n isRecipeInvalid = true;\n }\n // Handles two compatible items\n else if(input.getStackInSlot(0).getMaxDamage() > 1 && input.getStackInSlot(0).getMaxStackSize() == 1 && input.getStackInSlot(0).getItem() == input.getStackInSlot(1).getItem()) {\n isRecipeInvalid = false;\n ItemStack stack = input.getStackInSlot(0);\n int sum = (stack.getMaxDamage() - stack.getItemDamage()) + (stack.getMaxDamage() - input.getStackInSlot(1).getItemDamage());\n\n sum = sum + (int)(sum * 0.2);\n if(sum > stack.getMaxDamage()) {\n sum = stack.getMaxDamage();\n }\n\n output.setStackInSlot(0, new ItemStack(stack.getItem(), 1, stack.getMaxDamage() - sum));\n }\n // Resets the grid when the two items are incompatible\n if(input.getStackInSlot(0).getItem() != input.getStackInSlot(1).getItem() && !output.getStackInSlot(0).isEmpty()) {\n output.setStackInSlot(0, ItemStack.EMPTY);\n }\n }", "@Redirect(method = \"doClick\",\n at = @At(value = \"INVOKE\",\n target = \"Lnet/minecraft/world/inventory/AbstractContainerMenu;quickMoveStack(Lnet/minecraft/world/entity/player/Player;I)Lnet/minecraft/world/item/ItemStack;\"))\n private ItemStack impl$transferStackInSlot(final AbstractContainerMenu thisContainer, final Player player, final int slotId) {\n final ItemStack result = thisContainer.quickMoveStack(player, slotId);\n // Crafting on Serverside?\n if (((LevelBridge) player.level).bridge$isFake() || player.level.isClientSide || !(thisContainer.getSlot(slotId) instanceof ResultSlot)) {\n return result;\n }\n this.bridge$detectAndSendChanges(true);\n final PhaseContext<@NonNull ?> context = PhaseTracker.SERVER.getPhaseContext();\n TrackingUtil.processBlockCaptures(context); // ClickContainerEvent -> CraftEvent -> PreviewEvent\n // result is modified by the ClickMenuTransaction\n return result;\n }", "@Override\n public void move(PileType sourceType, int sourcePileNumber, int cardIndex, PileType destType,\n int destPileNumber) throws IllegalArgumentException {\n\n if (!gameStarted) {\n throw new IllegalStateException(\"Cannot make move, game has not started\");\n }\n\n if (sourcePileNumber < 0 || destPileNumber < 0) {\n throw new IllegalArgumentException(\"Invalid pile number\");\n }\n if (Objects.isNull(sourceType) || Objects.isNull(destType)) {\n throw new IllegalArgumentException(\"Null pile type\");\n }\n\n IPile sourcePile = this.getPile(sourceType, sourcePileNumber);\n IPile destPile = this.getPile(destType, destPileNumber);\n\n // If the card index refers to the last card in the source pile, try the move.\n if (sourcePile.hasCardAt(cardIndex) && !sourcePile.hasCardAt(cardIndex + 1)) {\n\n // If the card is to be moved from and to the same pile,\n // allow this if the card is the last card in the pile.\n // Otherwise, it implies that user is trying to move card from inside pile,\n // which is still illegal.\n if ((sourceType == destType) && (sourcePileNumber == destPileNumber)) {\n // In this case, nothing should be moved.\n return;\n }\n // Try to do the move normally if the source and destination piles are not the same.\n Card temp = sourcePile.getCard(cardIndex);\n if (destPile.canAddCard(temp)) {\n destPile.addCard(temp);\n sourcePile.removeCard(cardIndex);\n } else {\n throw new IllegalArgumentException(\"Cannot add card to pile\");\n }\n } else {\n throw new IllegalArgumentException(\"Cannot remove card from pile\");\n }\n }", "public ItemStack getItemStack() {\n\t\treturn this.itemStack;\n\t}", "@Override\n public void onSmelting(EntityPlayer player, ItemStack item) {\n }", "private void givePlayer(ItemStack item,EntityPlayer entityplayer){\n ItemStack itemstack3 = entityplayer.inventory.getItemStack();\n if(itemstack3 == null){\n \tentityplayer.inventory.setItemStack(item);\n }\n else if(NoppesUtilPlayer.compareItems(itemstack3, item, false, false)){\n\n int k1 = item.stackSize;\n if(k1 > 0 && k1 + itemstack3.stackSize <= itemstack3.getMaxStackSize())\n {\n itemstack3.stackSize += k1;\n }\n }\n }" ]
[ "0.7394663", "0.6561571", "0.6261161", "0.6084817", "0.5928103", "0.592273", "0.5906765", "0.58948255", "0.587145", "0.58412695", "0.5825638", "0.58047616", "0.5798812", "0.5791112", "0.57831883", "0.577487", "0.57590026", "0.5744407", "0.569389", "0.5693761", "0.569008", "0.56825745", "0.56669474", "0.5665744", "0.56648695", "0.56244045", "0.55529594", "0.5519004", "0.5472081", "0.5467127", "0.5461201", "0.5460363", "0.5456164", "0.5455666", "0.5445482", "0.5436884", "0.541664", "0.53850085", "0.53581065", "0.53389275", "0.53285414", "0.5324887", "0.5323411", "0.5320393", "0.5309335", "0.5289974", "0.52891487", "0.52797663", "0.52674586", "0.52653545", "0.52477807", "0.52458656", "0.52431977", "0.52192223", "0.5209057", "0.5187223", "0.51843894", "0.5183779", "0.5181774", "0.51745373", "0.5163742", "0.51588166", "0.5123496", "0.5114395", "0.5114265", "0.5113511", "0.5113052", "0.51099545", "0.51068765", "0.51045936", "0.51011515", "0.5097955", "0.50892603", "0.50888", "0.5087917", "0.50854045", "0.5080393", "0.507039", "0.50634605", "0.50505173", "0.5044462", "0.5040883", "0.5031382", "0.5030247", "0.50267315", "0.50264025", "0.5024331", "0.5018952", "0.50182706", "0.50153196", "0.5014648", "0.5009622", "0.5008722", "0.50020695", "0.49985015", "0.49960595", "0.49918675", "0.49910638", "0.49858835", "0.49807093" ]
0.8070727
0
Return the ItemStack of the specified item regardless of the quantity
public ItemStack containsItem(Item item) { for (ItemStack itemStack : this.ITEMS) { if (itemStack.getItem() == item) return itemStack; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ItemStack getItem();", "public ItemStack getItemStack(int index) {\n return this.ITEMS.get(index);\n }", "public static ItemStack createItemStack()\r\n \t{\r\n \t\treturn new ItemStack(0);\r\n \t}", "public ItemStack getItem() {\r\n\t\treturn item;\r\n\t}", "public ItemStack getItem() {\n ItemStack item = new ItemStack(material, 1);\n ItemMeta meta = item.getItemMeta();\n meta.setDisplayName(displayName);\n item.setItemMeta(meta);\n return item;\n }", "public ItemStack getItem() {\n return this.item;\n }", "public ItemStack generateItem(){\n\t\tItemStack item = new ItemStack(material);\n\t\tif(damage >= 0) item.setDurability(damage);\n\t\t\n\t\tif(itemName.isEmpty() && loreLine.isEmpty()) return item;\n\t\t\n\t\tItemMeta meta = item.getItemMeta();\n\t\tif(meta == null) return item;\n\t\t\n\t\tmeta.setDisplayName(itemName);\n\t\tmeta.setLore(Arrays.asList(loreLine));\n\t\titem.setItemMeta(meta);\n\t\t\n\t\treturn item;\n\t}", "public static ItemStack readItem(CompoundTag tag) {\n BlockDataManager blockDataManager = ((GlowServer) Bukkit.getServer()).getBlockDataManager();\n final Material[] material = {null};\n if ((!tag.readString(\"id\", id -> material[0] = ItemIds.getItem(id))\n && !tag.readShort(\"id\",\n id -> material[0] = blockDataManager.convertToBlockData(id).getMaterial()))\n || material[0] == null || material[0] == Material.AIR) {\n return null;\n }\n final byte[] count = {0};\n tag.readByte(\"Count\", x -> count[0] = x);\n if (count[0] == 0) {\n return null;\n }\n final short[] damage = {0};\n tag.readShort(\"Damage\", x -> damage[0] = x);\n ItemStack stack = new ItemStack(material[0], count[0], damage[0]);\n // This is slightly different than what tag.readItem would do, since we specify the\n // material separately.\n tag.readCompound(\"tag\",\n subtag -> stack.setItemMeta(GlowItemFactory.instance().readNbt(material[0], subtag)));\n return stack;\n }", "Optional<ItemStack> getItemStack();", "ItemStack getItemstackWithMaterial(Material material);", "@Override\r\n public ItemStack getItemStack(PartItemStack type) {\n return new ItemStack(this.item);\r\n }", "public ItemStack getCartItem() {\n return new ItemStack(ModItems.fluxLevitatorItem);\n }", "private ItemStack getToolWhenHasnt() {\r\n\t\treturn this.item;\r\n\t}", "public static ItemIngredient of(Item input) {\n\t\treturn new ItemStackIngredient(new ItemStack(input, 1, OreDictionary.WILDCARD_VALUE));\n\t}", "default ItemStack removeOneItem() {\n return removeOneItem(StandardStackFilters.ALL);\n }", "public static ItemIngredient of(ItemStack input) {\n\t\treturn new ItemStackIngredient(input);\n\t}", "public ItemStack getIconItemStack()\n {\n return new ItemStack(Item.writableBook, 1, 0);\n }", "public ItemStack getIconItemStack()\n {\n return new ItemStack(Item.writableBook, 1, 0);\n }", "ItemStack make();", "Optional<ItemStack> matchItemStack(String material, int amount);", "InventoryItem getInventoryItem();", "public ItemStack getItemStack() {\n\t\treturn this.itemStack;\n\t}", "@Override\r\n\tpublic final ItemStack getItemAt(final int slot) {\r\n\t\treturn slot < this.tools.size() ? this.tools.get(slot).get(this.getViewer()) : null;\r\n\t}", "ItemStack getEggItem(IGeneticMob geneticMob);", "default Optional<ItemStack> matchItemStack(String material) {\n return matchItemStack(material, 0);\n }", "public ItemStack getStackInSlot(int par1)\n {\n return this.furnaceItemStacks[par1];\n }", "default ItemStack removeOneItem(Predicate<ItemStack> filter) {\n for (IInventoryAdapter inventoryObject : this) {\n InventoryManipulator im = InventoryManipulator.get(inventoryObject);\n ItemStack stack = im.removeItem(filter);\n if (!InvTools.isEmpty(stack))\n return stack;\n }\n return InvTools.emptyStack();\n }", "public Inventory<T> subtract(final T item) {\n if (item == null) {\n return this;\n }\n final Map<T, Integer> freshMap = new HashMap<>();\n freshMap.putAll(items);\n if (freshMap.get(item) <= 0) {\n freshMap.put(item, 0);\n } else {\n freshMap.put(item, freshMap.get(item) - 1);\n }\n return new Inventory<T>(enums, Collections.unmodifiableMap(freshMap));\n }", "public ItemStack getItemInHand ( ) {\n\t\tPlayer handle = handle ( );\n\t\t\n\t\tif ( handle != null ) {\n\t\t\ttry {\n\t\t\t\treturn ( ItemStack ) safeGetMethod (\n\t\t\t\t\t\tPlayerInventory.class , \"getItemInMainHand\" , new Class[ 0 ] ).invoke (\n\t\t\t\t\t\thandle.getInventory ( ) );\n\t\t\t} catch ( Exception e ) {\n\t\t\t\ttry {\n\t\t\t\t\treturn ( ItemStack ) safeGetMethod (\n\t\t\t\t\t\t\tPlayerInventory.class , \"getItemInHand\" , new Class[ 0 ] ).invoke (\n\t\t\t\t\t\t\thandle.getInventory ( ) );\n\t\t\t\t} catch ( IllegalAccessException | InvocationTargetException ex ) {\n\t\t\t\t\tex.printStackTrace ( );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "default ItemStack getStack(int slot) {\n\t\treturn this.getContents().getOrDefault(slot, ItemStack.EMPTY);\n\t}", "public Item getItem(int itemIndex){\n\t\treturn inventoryItems[itemIndex];\n\t}", "public void smeltItem() {\n\t\tif (this.canSmelt()) {\n\t\t\tItemStack itemstack = FurnaceRecipes.smelting().getSmeltingResult(\n\t\t\t\t\tthis.slots[0]);\n\t\t\tif (this.slots[1] == null) {\n\t\t\t\tthis.slots[1] = itemstack.copy();\n\t\t\t} else if (this.slots[1].getItem() == itemstack.getItem()) {\n\t\t\t\tthis.slots[1].stackSize += itemstack.stackSize;\n\t\t\t}\n\n\t\t\t--this.slots[0].stackSize;\n\n\t\t\tif (this.slots[0].stackSize <= 0) {\n\t\t\t\tthis.slots[0] = null;\n\t\t\t}\n\t\t}\n\t}", "public ItemStack transferStackInSlot(int i)\n {\n ItemStack itemstack = null;\n Slot slot = (Slot)inventorySlots.get(i);\n\n if (slot != null && slot.getHasStack())\n {\n ItemStack itemstack1 = slot.getStack();\n itemstack = itemstack1.copy();\n\n if (i < 9)\n {\n if (!mergeItemStack(itemstack1, 9, 45, true))\n {\n return null;\n }\n }\n else if (!mergeItemStack(itemstack1, 0, 9, false))\n {\n return null;\n }\n\n if (itemstack1.stackSize == 0)\n {\n slot.putStack(null);\n }\n else\n {\n slot.onSlotChanged();\n }\n\n if (itemstack1.stackSize != itemstack.stackSize)\n {\n slot.onPickupFromSlot(null, itemstack1);\n }\n else\n {\n return null;\n }\n }\n\n return itemstack;\n }", "ItemStack createItemStack(CompoundTag tag);", "public static ItemStack getItemInMainHand(Player player) {\n try {\n // 1.9+\n return player.getInventory().getItemInMainHand();\n } catch (Throwable ex) {\n // pre 1.9\n return player.getItemInHand();\n }\n }", "public ItemStack getStackInSlot(int p_70301_1_)\n {\n return p_70301_1_ >= 0 && p_70301_1_ < this.inventoryContents.length ? this.inventoryContents[p_70301_1_] : null;\n }", "public void smeltItem()\n {\n if (this.canSmelt())\n {\n ItemStack var1 = FurnaceRecipes.smelting().getSmeltingResult(this.furnaceItemStacks[0]);\n\n if (this.furnaceItemStacks[2] == null)\n {\n this.furnaceItemStacks[2] = var1.copy();\n }\n else if (this.furnaceItemStacks[2].isItemEqual(var1))\n {\n ++this.furnaceItemStacks[2].stackSize;\n }\n\n --this.furnaceItemStacks[0].stackSize;\n\n if (this.furnaceItemStacks[0].stackSize <= 0)\n {\n this.furnaceItemStacks[0] = null;\n }\n }\n }", "public static ItemStack consumeItem(ItemStack stack)\n\t{\n\t\treturn consumeItem(stack, 1);\n\t}", "public ItemStack render(Player player) {\n if (clone) return cloneItem;\n ItemStack itemStack = new ItemStack(type);\n ItemMeta itemMeta = itemStack.getItemMeta();\n if (itemMeta != null) {\n itemMeta.setDisplayName(displayName.getText(player));\n List<String> list = new ArrayList<>();\n for (ChatMessage chatMessage : lore) {\n list.add(chatMessage.getText(player));\n }\n itemMeta.setLore(list);\n if (enchanted) {\n itemMeta.addEnchant(Enchantment.PROTECTION_ENVIRONMENTAL, 1, true);\n itemMeta.addItemFlags(ItemFlag.HIDE_ENCHANTS);\n }\n if (unbreakable) {\n itemMeta.setUnbreakable(true);\n }\n itemStack.setItemMeta(itemMeta);\n }\n return itemStack;\n }", "public Items getItem(String name)\n {\n return Inventory.get(name);\n }", "public static ArmorSlot getItemSlotEquiping(ItemStack item){\n\t\tif(item == null){\n\t\t\treturn ArmorSlot.NONE;\n\t\t}\n\t\t\n\t\tswitch(item.getType()){\n\t\t\t//Helmets:\t\n\t\t\tcase LEATHER_HELMET:\n\t\t\tcase GOLD_HELMET:\n\t\t\tcase CHAINMAIL_HELMET:\n\t\t\tcase IRON_HELMET:\n\t\t\tcase DIAMOND_HELMET: return ArmorSlot.HELMET;\n\t\t\t\n\t\t\t//Chest:\t\n\t\t\tcase LEATHER_CHESTPLATE:\n\t\t\tcase GOLD_CHESTPLATE:\n\t\t\tcase CHAINMAIL_CHESTPLATE:\n\t\t\tcase IRON_CHESTPLATE:\n\t\t\tcase DIAMOND_CHESTPLATE: return ArmorSlot.CHESTPLATE;\n\t\t\t\n\t\t\t//Legs:\t\n\t\t\tcase LEATHER_LEGGINGS:\n\t\t\tcase GOLD_LEGGINGS:\n\t\t\tcase CHAINMAIL_LEGGINGS:\n\t\t\tcase IRON_LEGGINGS:\n\t\t\tcase DIAMOND_LEGGINGS: return ArmorSlot.LEGGINGS;\n\t\t\t\n\t\t\t//feet:\t\n\t\t\tcase LEATHER_BOOTS:\n\t\t\tcase GOLD_BOOTS:\n\t\t\tcase CHAINMAIL_BOOTS:\n\t\t\tcase IRON_BOOTS:\n\t\t\tcase DIAMOND_BOOTS: return ArmorSlot.BOOTS;\n\t\t\n\t\t\n\t\t\tdefault: return ArmorSlot.NONE;\n\t\t}\n\t}", "public ItemStack getStackInSlot(int par1)\n {\n return par1 >= 9 ? null : tile.inventory[par1];\n }", "default ItemStack findOne(Predicate<ItemStack> filter) {\n for (IInventoryAdapter inventoryObject : this) {\n InventoryManipulator im = InventoryManipulator.get(inventoryObject);\n ItemStack removed = im.tryRemoveItem(filter);\n if (!InvTools.isEmpty(removed))\n return removed;\n }\n return InvTools.emptyStack();\n }", "@SuppressWarnings(\"unchecked\")\n \tpublic static ItemStack getBukkitItemStack(final Object minecraftItemStack) {\n \t\t// Delegate this task to the method that can execute it\n \t\tif (craftNMSMethod != null) {\n \t\t\treturn getBukkitItemByMethod(minecraftItemStack);\n \t\t}\n \n \t\tif (craftNMSConstructor == null) {\n \t\t\ttry {\n \t\t\t\tcraftNMSConstructor = getCraftItemStackClass().getConstructor(\n \t\t\t\t\t\tminecraftItemStack.getClass());\n \t\t\t} catch (final Exception e) {\n \t\t\t\t// Give it a try\n \t\t\t\tif (!craftItemStackFailed) {\n \t\t\t\t\treturn getBukkitItemByMethod(minecraftItemStack);\n \t\t\t\t}\n \n \t\t\t\tthrow new RuntimeException(\n \t\t\t\t\t\t\"Cannot find CraftItemStack(net.mineraft.server.ItemStack).\",\n \t\t\t\t\t\te);\n \t\t\t}\n \t\t}\n \n \t\t// Try to create the CraftItemStack\n \t\ttry {\n \t\t\treturn (ItemStack) craftNMSConstructor\n \t\t\t\t\t.newInstance(minecraftItemStack);\n \t\t} catch (final Exception e) {\n \t\t\tthrow new RuntimeException(\"Cannot construct CraftItemStack.\", e);\n \t\t}\n \t}", "private void addItemStack(Item itemStack) {\n\t\tint findStackable = findStackableItem(itemStack);\r\n\t\tif(findStackable!=-1){\r\n\t\t\tItem heldStack=tileItems.getItem(findStackable);\r\n\t\t\twhile(!heldStack.stackFull()&&\t//as long as the current stack isn't full and the stack we're picking up isn't empty\r\n\t\t\t\t!itemStack.stackEmpty()){\r\n\t\t\t\theldStack.incrementStack();\r\n\t\t\t\titemStack.decrementStack(tileItems);\r\n\t\t\t\tif(itemStack.stackEmpty())\t//will this cause an error since the item is removed by the inventory?\r\n\t\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\taddItemStack(itemStack);\r\n\t\t}\r\n\t\telse\r\n\t\t\taddFullStack(itemStack);\r\n\t}", "@Override\n public ItemStack getButtonItem(Player player) {\n ItemStack superItem = super.getButtonItem(player);\n\n superItem.setDurability(durability);\n\n return superItem;\n }", "public static ItemStack item(XMaterial type, String name, String... lore) {\r\n\t\tItemStack is = type.parseItem();\r\n\t\tItemMeta im = is.getItemMeta();\r\n\t\tim.addItemFlags(ItemFlag.values());\r\n\t\tis.setItemMeta(applyMeta(im, name, lore));\r\n\t\treturn is;\r\n\t}", "default ItemStack removeOneItem(ItemStack... filter) {\n return removeOneItem(StackFilters.anyOf(filter));\n }", "public int addItemStack(ItemStack itemStack) {\n Item item = itemStack.getItem();\n int amount = itemStack.getAmount();\n int added = 0;\n\n List<ItemStack> itemStacksToRemove = new ArrayList<>();\n for (ItemStack itemStack1 : this.ITEMS) {\n if (itemStack1.getItem() == item) {\n amount += itemStack1.getAmount();\n itemStacksToRemove.add(itemStack1);\n }\n }\n\n // clear inventory\n for (ItemStack itemStack1 : itemStacksToRemove)\n this.ITEMS.remove(itemStack1);\n\n System.out.println(String.format(\"Total amount of %s: %d\", item.getName(), amount));\n\n int stack_size = item.getMaxStack();\n int stacks = amount / stack_size;\n int last_stack = amount % stack_size;\n\n System.out.println(String.format(\"Stack size: %d, full stacks: %s, last stack: %d, inv size: %d, inv full: %d\", stack_size, stacks, last_stack, this.getSize(), this.ITEMS.size()));\n\n // add full stacks\n for (int i = 0; i < stacks; i++) {\n if (this.ITEMS.size() > this.getSize())\n break;\n\n System.out.println(\"Added full stack\");\n this.ITEMS.add(new ItemStack(item, stack_size));\n added += stack_size;\n }\n\n // add last (not full) stack\n if (last_stack != 0 && this.ITEMS.size() < this.getSize()) {\n System.out.println(\"Added partial stack\");\n this.ITEMS.add(new ItemStack(item, last_stack));\n added += last_stack;\n }\n\n for (InventoryChangedEvent listener : listeners)\n listener.onInventoryChanged(this);\n\n return added;\n }", "@SuppressWarnings(\"unchecked\")\n \tpublic static ItemStack getBukkitItemStack(final ItemStack bukkitItemStack) {\n \t\t// Delegate this task to the method that can execute it\n \t\tif (craftBukkitMethod != null) {\n \t\t\treturn getBukkitItemByMethod(bukkitItemStack);\n \t\t}\n \n \t\tif (craftBukkitConstructor == null) {\n \t\t\ttry {\n \t\t\t\tcraftBukkitConstructor = getCraftItemStackClass()\n \t\t\t\t\t\t.getConstructor(ItemStack.class);\n \t\t\t} catch (final Exception e) {\n \t\t\t\t// See if this method works\n \t\t\t\tif (!craftItemStackFailed) {\n \t\t\t\t\treturn getBukkitItemByMethod(bukkitItemStack);\n \t\t\t\t}\n \n \t\t\t\tthrow new RuntimeException(\n \t\t\t\t\t\t\"Cannot find CraftItemStack(org.bukkit.inventory.ItemStack).\",\n \t\t\t\t\t\te);\n \t\t\t}\n \t\t}\n \n \t\t// Try to create the CraftItemStack\n \t\ttry {\n \t\t\treturn (ItemStack) craftBukkitConstructor\n \t\t\t\t\t.newInstance(bukkitItemStack);\n \t\t} catch (final Exception e) {\n \t\t\tthrow new RuntimeException(\"Cannot construct CraftItemStack.\", e);\n \t\t}\n \t}", "public ItemStack createItemStack(Biome biome, int amount) {\n ItemStack itemStack = new ItemStack(this, amount);\n if(biome != null) {\n CompoundNBT tag = new CompoundNBT();\n tag.putString(NBT_BIOMEKEY, biome.getRegistryName().toString());\n itemStack.setTag(tag);\n }\n return itemStack;\n }", "public static Item getItem(String itemName)\n {\n Item temp = null;\n for (Item inventory1 : inventory) {\n if (inventory1.getName().equals(itemName)) {\n temp = inventory1;\n }\n }\n return temp;\n }", "public interface IMaterialItem {\n\n /**\n * Returns the material identifier of the material of the part this itemstack holds.\n *\n * @return Identifier of a material or \"Unknown\", null or empty if invalid.\n */\n String getMaterialID(ItemStack stack);\n\n /**\n * Returns the material of the part this itemstack holds.\n *\n * @return Material or Material.UNKNOWN if invalid\n */\n Material getMaterial(ItemStack stack);\n\n /**\n * Returns the item with the given material\n */\n ItemStack getItemstackWithMaterial(Material material);\n}", "@Override\n\tpublic ItemStack getStackInSlot(int index) {\n\t\treturn null;\n\t}", "@Nullable\n public ItemStack transferStackInSlot(EntityPlayer playerIn, int index)\n {\n ItemStack itemstack = null;\n Slot slot = (Slot)this.inventorySlots.get(index);\n\n if (slot != null && slot.getHasStack())\n {\n ItemStack itemstack1 = slot.getStack();\n \n if(itemstack1.getItem()==TF2weapons.itemTF2&&itemstack1.getMetadata()==9){\n \t\titemstack1=ItemFromData.getRandomWeapon(playerIn.getRNG(),ItemFromData.VISIBLE_WEAPON);\n \t}\n \telse if(itemstack1.getItem()==TF2weapons.itemTF2&&itemstack1.getMetadata()==10){\n \t\titemstack1=ItemFromData.getRandomWeaponOfClass(\"cosmetic\",playerIn.getRNG(), false);\n \t}\n \n itemstack = itemstack1.copy();\n\n if (index == 0)\n {\n if (!this.mergeItemStack(itemstack1, 10, 46, true))\n {\n return null;\n }\n\n slot.onSlotChange(itemstack1, itemstack);\n }\n else if (index >= 10 && index < 37)\n {\n if (!this.mergeItemStack(itemstack1, 37, 46, false))\n {\n return null;\n }\n }\n else if (index >= 37 && index < 46)\n {\n if (!this.mergeItemStack(itemstack1, 10, 37, false))\n {\n return null;\n }\n }\n else if (!this.mergeItemStack(itemstack1, 10, 46, false))\n {\n return null;\n }\n\n if (itemstack1.stackSize == 0)\n {\n slot.putStack((ItemStack)null);\n }\n else\n {\n slot.onSlotChanged();\n }\n\n if (itemstack1.stackSize == itemstack.stackSize)\n {\n return null;\n }\n\n slot.onPickupFromSlot(playerIn, itemstack1);\n }\n\n return itemstack;\n }", "public abstract @NotNull ItemStack createPlaceholderItemStack(int placeholderNumber);", "public static ItemIngredient of(Block input) {\n\t\treturn of(ItemBlock.getItemFromBlock(input));\n\t}", "public ItemStack transferStackInSlot(EntityPlayer playerIn, int index) {\n ItemStack var3 = null;\n Slot var4 = (Slot) this.inventorySlots.get(index);\n\n if (var4 != null && var4.getHasStack()) {\n ItemStack var5 = var4.getStack();\n var3 = var5.copy();\n\n if ((index < 0 || index > 2) && index != 3) {\n if (!this.theSlot.getHasStack() && this.theSlot.isItemValid(var5)) {\n if (!this.mergeItemStack(var5, 3, 4, false)) {\n return null;\n }\n } else if (ContainerBrewingStand.Potion.canHoldPotion(var3)) {\n if (!this.mergeItemStack(var5, 0, 3, false)) {\n return null;\n }\n } else if (index >= 4 && index < 31) {\n if (!this.mergeItemStack(var5, 31, 40, false)) {\n return null;\n }\n } else if (index >= 31 && index < 40) {\n if (!this.mergeItemStack(var5, 4, 31, false)) {\n return null;\n }\n } else if (!this.mergeItemStack(var5, 4, 40, false)) {\n return null;\n }\n } else {\n if (!this.mergeItemStack(var5, 4, 40, true)) {\n return null;\n }\n\n var4.onSlotChange(var5, var3);\n }\n\n if (var5.stackSize == 0) {\n var4.putStack((ItemStack) null);\n } else {\n var4.onSlotChanged();\n }\n\n if (var5.stackSize == var3.stackSize) {\n return null;\n }\n\n var4.onPickupFromSlot(playerIn, var5);\n }\n\n return var3;\n }", "@Override\n\tpublic ItemStack getStackInSlot(int slot){\n\t return modularStacks[slot];\n\t}", "public ItemStack getItemInUse ( ) {\n\t\treturn extract ( handle -> handle.getItemInUse ( ) );\n\t}", "public static ItemStack item(XMaterial type, String name, List<String> lore) {\r\n\t\tItemStack is = type.parseItem();\r\n\t\tItemMeta im = is.getItemMeta();\r\n\t\tim.addItemFlags(ItemFlag.values());\r\n\t\tis.setItemMeta(applyMeta(im, name, lore));\r\n\t\treturn is;\r\n\t}", "public ItemStack remove(int debug1) {\n/* 104 */ return this.container.removeItem(this.slot, debug1);\n/* */ }", "public ItemStack transferStackInSlot(EntityPlayer playerIn, int index) {\n/* 79 */ ItemStack var3 = null;\n/* 80 */ Slot var4 = this.inventorySlots.get(index);\n/* */ \n/* 82 */ if (var4 != null && var4.getHasStack()) {\n/* */ \n/* 84 */ ItemStack var5 = var4.getStack();\n/* 85 */ var3 = var5.copy();\n/* */ \n/* 87 */ if (index < this.field_111243_a.getSizeInventory()) {\n/* */ \n/* 89 */ if (!mergeItemStack(var5, this.field_111243_a.getSizeInventory(), this.inventorySlots.size(), true))\n/* */ {\n/* 91 */ return null;\n/* */ }\n/* */ }\n/* 94 */ else if (getSlot(1).isItemValid(var5) && !getSlot(1).getHasStack()) {\n/* */ \n/* 96 */ if (!mergeItemStack(var5, 1, 2, false))\n/* */ {\n/* 98 */ return null;\n/* */ }\n/* */ }\n/* 101 */ else if (getSlot(0).isItemValid(var5)) {\n/* */ \n/* 103 */ if (!mergeItemStack(var5, 0, 1, false))\n/* */ {\n/* 105 */ return null;\n/* */ }\n/* */ }\n/* 108 */ else if (this.field_111243_a.getSizeInventory() <= 2 || !mergeItemStack(var5, 2, this.field_111243_a.getSizeInventory(), false)) {\n/* */ \n/* 110 */ return null;\n/* */ } \n/* */ \n/* 113 */ if (var5.stackSize == 0) {\n/* */ \n/* 115 */ var4.putStack(null);\n/* */ }\n/* */ else {\n/* */ \n/* 119 */ var4.onSlotChanged();\n/* */ } \n/* */ } \n/* */ \n/* 123 */ return var3;\n/* */ }", "@Override\r\n public ItemStack getCurrentArmor(int slotIn)\r\n {\n return null;\r\n }", "public ItemStack func_70304_b(int par1)\n/* */ {\n/* 45 */ return null;\n/* */ }", "@Override\r\n\tpublic ItemStack transferStackInSlot(EntityPlayer playerIn, int index)\r\n {\r\n ItemStack itemstack = ItemStackTools.getEmptyStack();\r\n Slot slot = this.inventorySlots.get(index);\r\n\r\n if (slot != null && slot.getHasStack())\r\n {\r\n ItemStack itemstack1 = slot.getStack();\r\n itemstack = itemstack1.copy();\r\n\r\n if (index == 0)\r\n {\r\n if (!this.mergeItemStack(itemstack1, 10, 46, false))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n\r\n slot.onSlotChange(itemstack1, itemstack);\r\n }\r\n else if (index >= 10 && index < 37)\r\n {\r\n if (!this.mergeItemStack(itemstack1, 37, 46, false))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n }\r\n else if (index >= 37 && index < 46)\r\n {\r\n if (!this.mergeItemStack(itemstack1, 10, 37, false))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n }\r\n else if (!this.mergeItemStack(itemstack1, 10, 46, false))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n\r\n if (ItemStackTools.isEmpty(itemstack1))\r\n {\r\n slot.putStack(ItemStackTools.getEmptyStack());\r\n }\r\n else\r\n {\r\n slot.onSlotChanged();\r\n }\r\n\r\n if (ItemStackTools.getStackSize(itemstack1) == ItemStackTools.getStackSize(itemstack))\r\n {\r\n return ItemStackTools.getEmptyStack();\r\n }\r\n\r\n slot.onTake(playerIn, itemstack1);\r\n }\r\n\r\n return itemstack;\r\n }", "public ItemStack getStackInSlotOnClosing(int p_70304_1_)\n {\n if (this.inventoryContents[p_70304_1_] != null)\n {\n ItemStack itemstack = this.inventoryContents[p_70304_1_];\n this.inventoryContents[p_70304_1_] = null;\n return itemstack;\n } else\n {\n return null;\n }\n }", "@Override\n\tpublic Integer getInventoryForAIngredient(Ingredient ingredient){\n\t\treturn beverageInventoryMap.get(ingredient);\n\t}", "private ItemStack getToolWhenHas() {\r\n\t\treturn ItemCreator\r\n\t\t\t\t.of(this.item)\r\n\t\t\t\t.glow(true)\r\n\t\t\t\t.lore(\"\", \"&6You already have this item.\", \"&6Click to take it away.\")\r\n\t\t\t\t.makeMenuTool();\r\n\t}", "public ItemStack b(InventoryCrafting var1)\n {\n int var2 = var1.getSize();\n boolean var3 = false;\n int var4 = 0;\n int var5 = 0;\n ItemStack var6 = null;\n Vector var7 = new Vector();\n int var8;\n ItemStack var9;\n\n for (var8 = 0; var8 < var2; ++var8)\n {\n var9 = var1.getItem(var8);\n\n if (var9 != null)\n {\n if (var9.getItem() instanceof ItemEnergySensorLocationCard)\n {\n var7.add(var9);\n ++var4;\n }\n else\n {\n if (!(var9.getItem() instanceof ItemEnergyArrayLocationCard))\n {\n var3 = true;\n break;\n }\n\n var6 = var9;\n ++var5;\n }\n }\n }\n\n if (var3)\n {\n return null;\n }\n else if (var4 >= 2 && var4 <= 6 && var5 == 0)\n {\n ItemStack var10 = new ItemStack(IC2NuclearControl.itemEnergyArrayLocationCard, 1, 0);\n ItemEnergyArrayLocationCard.initArray(var10, var7);\n return var10;\n }\n else\n {\n if (var4 == 0 && var5 == 1)\n {\n var8 = ItemEnergyArrayLocationCard.getCardCount(var6);\n\n if (var8 > 0)\n {\n return new ItemStack(Items.getItem(\"electronicCircuit\").getItem(), 2 * var8, 0);\n }\n }\n else if (var5 == 1 && var4 > 0)\n {\n var8 = ItemEnergyArrayLocationCard.getCardCount(var6);\n\n if (var8 + var4 <= 6)\n {\n var9 = new ItemStack(IC2NuclearControl.itemEnergyArrayLocationCard, 1, 0);\n var9.setTag((NBTTagCompound)var6.getTag().clone());\n ItemEnergyArrayLocationCard.initArray(var9, var7);\n return var9;\n }\n }\n\n return null;\n }\n }", "public ItemStack getStackInSlot(int slot)\n {\n return waterjetStacks[slot];\n }", "public static Item getRepairItem(String name) {\n\n if (Item.itemRegistry.getObject(name) != null) {\n\n return (Item) Item.itemRegistry.getObject(name);\n }\n\n else if (Block.blockRegistry.getObject(name) != null) {\n\n return Item.getItemFromBlock((Block) Block.blockRegistry.getObject(name));\n }\n\n Constants.LOGGER.info(\"Null was provided for repair material. There may be issues. \" + name);\n return null;\n }", "public Object getItem(Node itemNode) throws XmlRecipeException;", "@Override\r\n public int getItemQuantity() {\n return this.quantity;\r\n }", "public int getItemStack(ItemStack itemStack) {\n return this.ITEMS.lastIndexOf(itemStack);\n }", "@Override\n public ItemStack transferStackInSlot(EntityPlayer player, int index) {\n ItemStack result = ItemStack.EMPTY;\n Slot slot = inventorySlots.get(index);\n ItemStack stack = slot.getStack();\n if (slot != null && slot.getHasStack()) {\n SlotRange destRange = transferSlotRange(index, stack);\n if (destRange != null) {\n if (index >= destRange.numSlots) {\n result = stack.copy();\n if (!mergeItemStackIntoRange(stack, destRange))\n return ItemStack.EMPTY;\n if (stack.getCount() == 0)\n slot.putStack(ItemStack.EMPTY);\n else\n slot.onSlotChanged();\n }\n else\n player.inventory.addItemStackToInventory(stack);\n }\n }\n return result;\n }", "public static int reserveItem(Basket basket, String item, int quantity){\n StockItem stockItem = stockList.get(item);\n if(stockItem == null){\n System.out.println(\"We don't sell \"+ item);\n return 0;\n }\n if(stockList.reserveStock(item, quantity) != 0){\n basket.addToBasket(stockItem, quantity);\n return quantity;\n }\n System.out.println(\"Unable to reserve: '\"+item+\"' with quantity \"+ quantity + (quantity == 1 ? \" pc.\" : \" pcs.\"));\n return 0; //if get here means have no sufficient stock to sell.\n }", "public interface IItem extends IAction {\n\n\t/**\n\t * Additional bag option to handle quantity manifest\n\t * @return bagEmpty\n\t */\n\tpublic abstract boolean depleteItem();\n}", "public ItemStack getShopItem(Integer shopID, Boolean fullStack, String seller){\n\t\tMaterial itemMaterial = null;\n\t\tString material = null;\n\t\tString enchantments = null;\n\t\tString name = \"\";\n\t\tString data = \"\";\n\t\tString query = \"SELECT * FROM `shops` WHERE `shop_id`=\"+shopID+\";\";\n\t\tdebugOut(\"Executing query: \"+ query);\n\t\ttry {\n\t\t\tPreparedStatement sql = connection.prepareStatement(query);\n\t\t\tResultSet result = sql.executeQuery();\n\t\t\tdebugOut(\"Query Completed\");\n\t\t\tresult.next();\n\t\t\tmaterial= result.getString(\"itemmaterial\");\n\t\t\tenchantments= result.getString(\"itemenchantments\");\n\t\t\tname = result.getString(\"itemname\");\n\t\t\tdata = result.getString(\"data\");\n\t\t}catch (SQLException e) {\n\t\t\tdebugOut(\"SQL Problem\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tdebugOut(\"Beginning to assign variables\");\n\t\tdebugOut(\"Data\");\n\t\tString dataAsInt = getData(data);\n\t\tdebugOut(\"Material\");\n\t\titemMaterial= Material.getMaterial(material);\n\t\t//get the amount after checking full stack\n\t\tint quantity = 0;\n\t\tif(fullStack){\n\t\t\tquantity= itemMaterial.getMaxStackSize();\n\t\t}else {\n\t\t\tquantity = 1;\n\t\t}\n\t\tdebugOut(\"Creating New item stack\");\n\t\tItemStack shopItem = new ItemStack(itemMaterial, quantity, (short) Short.parseShort(dataAsInt) ) ;\n\t\tdebugOut(\"Creating item meta\");\n\t\tItemMeta meta = null;\n\t\tEnchantmentStorageMeta bookMeta = null;\n\t\tBoolean isBook = null;\n\t\t//Check if is a book\n\t\tif(material.contains(\"ENCHANTED_BOOK\")){\n\t\t\t//Do for book items\n\t\t\tdebugOut(\"Item is an enchanted book -- making note of it\");\n\t\t\tbookMeta = (EnchantmentStorageMeta) shopItem.getItemMeta();\n\t\t\tisBook = true;\n\t\t}else {\n\t\t\t//Do for non-book items\n\t\t\tdebugOut(\"Item is not an enchanted book\");\n\t\t\tmeta = shopItem.getItemMeta();\n\t\t\tisBook = false;\n\t\t}\n\t\tdebugOut(\"Item meta: Display Name\");\n\t\tif(name.equalsIgnoreCase(null) || name.equalsIgnoreCase(\"\") || name.equalsIgnoreCase(\"null\") ){\n\t\t\t//Do Nothing'\n\t\t\tdebugOut(\"No set item name -- Skipping\");\n\t\t}else{\n\t\t\tdebugOut(\"Setting item meta name to: \"+name);\n\t\t\tif(isBook){\n\t\t\t\tbookMeta.setDisplayName(name);\n\t\t\t}else{\n\t\t\t\tmeta.setDisplayName(name);\n\t\t\t}\n\t\t}\n\t\tif(material.contains(\"SWORD\") || material.contains(\"SPADE\") || material.contains(\"PICKAXE\") || material.contains(\"AXE\") ||\n\t\t\t\tmaterial.contains(\"HELMET\") || material.contains(\"CHESTPLATE\") || material.contains(\"LEGGINGS\") || material.contains(\"BOOTS\") ||\n\t\t\t\tisBook){ \n\t\t\t//Test the material of the item, to prevent generic blocks from having lore\n\t\t\tif(getConfig().getString(\"item-receipt\")==\"true\"){\n\t\t\t\tdebugOut(\"Setting receipt\");\n\t\t\t\tif(isBook){\n\t\t\t\t\tdebugOut(\"Assigning book lore\");\n\t\t\t\t\tbookMeta.setLore(Arrays.asList(getConfig().getString(\"item-receipt-text\"), seller));\n\t\t\t\t}else{\n\t\t\t\t\tdebugOut(\"Assigning non-book lore\");\n\t\t\t\t\tmeta.setLore(Arrays.asList(getConfig().getString(\"item-receipt-text\"), seller));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(!isBook){\n\t\t\tdebugOut(\"Assigning non-book meta to the itemstack\");\n\t\t\tshopItem.setItemMeta(meta);\n\t\t}\n\t\tdebugOut(\"Enchanting...\");\n\t\tString[] brokenEnchantments = enchantments.split(\";\");\n\t\tif(!enchantments.equalsIgnoreCase(\"\")){\n\t\t\tfor(int i=0; i<brokenEnchantments.length; i++){\n\t\t\t\tdebugOut(\"Splitting: \"+brokenEnchantments[i]);\n\t\t\t\tString[] brokenValues = brokenEnchantments[i].split(\",\");\n\t\t\t\tdebugOut(\"Split Version: \"+brokenValues[0]+\" and \"+brokenValues[1]);\n\t\t\t\tString enchName = brokenValues[0];\n\t\t\t\tdebugOut(\"Final enchantment name string: \"+enchName);\n\t\t\t\tdebugOut(\"Assigning enchantment variable\");\n\t\t\t\tdebugOut(enchName);\n\t\t\t\tEnchantment currentEnchantment = Enchantment.getByName(enchName);\n\t\t\t\tdebugOut(\"Assigning enchantment level integer\");\n\t\t\t\tint currentLevel = Integer.parseInt(brokenValues[1]);\n\t\t\t\tif(!isBook){\n\t\t\t\t\tdebugOut(\"Adding (un)safe enchantment to non-book: \"+currentEnchantment.getName()+\" at level \"+currentLevel);\n\t\t\t\t\tshopItem.addUnsafeEnchantment(currentEnchantment, currentLevel);\n\t\t\t\t}else{\n\t\t\t\t\tdebugOut(\"Adding stored enchantment: \"+currentEnchantment.getName()+\" at level \"+ currentLevel);\n\t\t\t\t\tif(bookMeta.addStoredEnchant(currentEnchantment, currentLevel, true)){\n\t\t\t\t\t\tdebugOut(\"Item meta was changed as a result of addStoredEnchant\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdebugOut(\"Item meta not changed! -- this should not happen\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdebugOut(\"Enchantment added!\");\t\t\t\t\n\t\t\t}\n\t\t\tif(isBook){\n\t\t\t\tdebugOut(\"Assigning book meta to the itemstack\");\n\t\t\t\tshopItem.setItemMeta(bookMeta);\n\t\t\t}\n\t\t}else{\n\t\t\tdebugOut(\"No enchantments -- Skipping\");\n\t\t}\n\t\tdebugOut(\"Returning the itemstack\");\n\t\treturn shopItem;\n\t}", "private ItemStack[] getItemStack() {\n\n ItemStack[] stack = new ItemStack[54];\n int i = 0;\n // get the player's messages\n TVMResultSetInbox rs = new TVMResultSetInbox(plugin, uuid, start, 44);\n if (rs.resultSet()) {\n List<TVMMessage> messages = rs.getMail();\n for (TVMMessage m : messages) {\n // message\n ItemStack mess;\n if (m.isRead()) {\n mess = new ItemStack(Material.BOOK, 1);\n } else {\n mess = new ItemStack(Material.WRITABLE_BOOK, 1);\n }\n ItemMeta age = mess.getItemMeta();\n age.setDisplayName(\"#\" + (i + start + 1));\n String from = plugin.getServer().getOfflinePlayer(m.getWho()).getName();\n age.setLore(Arrays.asList(\"From: \" + from, \"Date: \" + m.getDate(), \"\" + m.getId()));\n mess.setItemMeta(age);\n stack[i] = mess;\n i++;\n }\n }\n\n int n = start / 44 + 1;\n // page number\n ItemStack page = new ItemStack(Material.BOWL, 1);\n ItemMeta num = page.getItemMeta();\n num.setDisplayName(\"Page \" + n);\n num.setCustomModelData(119);\n page.setItemMeta(num);\n stack[45] = page;\n // close\n ItemStack close = new ItemStack(Material.BOWL, 1);\n ItemMeta win = close.getItemMeta();\n win.setDisplayName(\"Close\");\n win.setCustomModelData(1);\n close.setItemMeta(win);\n stack[46] = close;\n // previous screen (only if needed)\n if (start > 0) {\n ItemStack prev = new ItemStack(Material.BOWL, 1);\n ItemMeta een = prev.getItemMeta();\n een.setDisplayName(\"Previous Page\");\n een.setCustomModelData(120);\n prev.setItemMeta(een);\n stack[48] = prev;\n }\n // next screen (only if needed)\n if (finish > 44) {\n ItemStack next = new ItemStack(Material.BOWL, 1);\n ItemMeta scr = next.getItemMeta();\n scr.setDisplayName(\"Next Page\");\n scr.setCustomModelData(116);\n next.setItemMeta(scr);\n stack[49] = next;\n }\n // read\n ItemStack read = new ItemStack(Material.BOWL, 1);\n ItemMeta daer = read.getItemMeta();\n daer.setDisplayName(\"Read\");\n daer.setCustomModelData(121);\n read.setItemMeta(daer);\n stack[51] = read;\n // delete\n ItemStack del = new ItemStack(Material.BOWL, 1);\n ItemMeta ete = del.getItemMeta();\n ete.setDisplayName(\"Delete\");\n ete.setCustomModelData(107);\n del.setItemMeta(ete);\n stack[53] = del;\n\n return stack;\n }", "public Item getItemByName(String itemName) {\n\t\t\n\t\tfor (Item item : itemsInStock) {\n\t\t\tif (item.name.equals(itemName)) {\n\t\t\t\treturn item;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "@Override\r\n public ItemStack transferStackInSlot(EntityPlayer p_82846_1_, int p_82846_2_)\r\n {\r\n ItemStack itemstack = null;\r\n Slot slot = (Slot)this.inventorySlots.get(p_82846_2_);\r\n\r\n if (slot != null && slot.getHasStack())\r\n {\r\n ItemStack itemstack1 = slot.getStack();\r\n itemstack = itemstack1.copy();\r\n\r\n if (p_82846_2_ == 2 ||p_82846_2_ == 3 )\r\n {\r\n if (!this.mergeItemStack(itemstack1, 4, 40, true))\r\n {\r\n return null;\r\n }\r\n\r\n slot.onSlotChange(itemstack1, itemstack);\r\n }\r\n else if (p_82846_2_ != 1 && p_82846_2_ != 0)\r\n {\r\n \r\n if (p_82846_2_ >= 4 && p_82846_2_ < 31)\r\n {\r\n if (!this.mergeItemStack(itemstack1, 31, 40, false))\r\n {\r\n return null;\r\n }\r\n }\r\n else if (p_82846_2_ >= 31 && p_82846_2_ < 40 && !this.mergeItemStack(itemstack1, 4, 31, false))\r\n {\r\n return null;\r\n }\r\n }\r\n else if (!this.mergeItemStack(itemstack1, 4, 40, false))\r\n {\r\n return null;\r\n }\r\n\r\n if (itemstack1.stackSize == 0)\r\n {\r\n slot.putStack((ItemStack)null);\r\n }\r\n else\r\n {\r\n slot.onSlotChanged();\r\n }\r\n\r\n if (itemstack1.stackSize == itemstack.stackSize)\r\n {\r\n return null;\r\n }\r\n\r\n slot.onPickupFromSlot(p_82846_1_, itemstack1);\r\n }\r\n\r\n return itemstack;\r\n }", "public Item checkForItem(String name) {\r\n Item output = null;\r\n for (Item item : inventory) {\r\n String check = item.getName().replaceAll(\" \", \"\");\r\n if (name.equals(check.toLowerCase())) {\r\n output = item;\r\n }\r\n }\r\n for (Item item : potionInventory) {\r\n String check = item.getName().replaceAll(\" \", \"\");\r\n if (name.equals(check.toLowerCase())) {\r\n output = item;\r\n }\r\n }\r\n return output;\r\n }", "public ItemStack transferStackInSlot(EntityPlayer playerIn, int index) {\r\n ItemStack itemstack = null;\r\n Slot slot = (Slot) this.inventorySlots.get(index);\r\n\r\n if (slot != null && slot.getHasStack()) {\r\n ItemStack itemstack1 = slot.getStack();\r\n itemstack = itemstack1.copy();\r\n\r\n if (index == 0) {\r\n if (!this.mergeItemStack(itemstack1, this.inventoryHandler.getSlots(), this.inventorySlots.size(), true)) {\r\n return null;\r\n }\r\n\r\n slot.onSlotChange(itemstack1, itemstack);\r\n } else if (index >= 1 && index < this.inventorySlots.size()) {\r\n if (!this.mergeItemStack(itemstack1, this.inventorySlots.size() - 9, this.inventorySlots.size(), false)) {\r\n return null;\r\n }\r\n } else if (!this.mergeItemStack(itemstack1, this.inventoryHandler.getSlots(), this.inventorySlots.size(), false)) {\r\n return null;\r\n }\r\n\r\n if (itemstack1.stackSize == 0) {\r\n slot.putStack((ItemStack) null);\r\n } else {\r\n slot.onSlotChanged();\r\n }\r\n\r\n if (itemstack1.stackSize == itemstack.stackSize) {\r\n return null;\r\n }\r\n\r\n slot.onPickupFromSlot(playerIn, itemstack1);\r\n }\r\n\r\n return itemstack;\r\n }", "Map<Integer, ItemStack> getContents();", "@SideOnly(Side.CLIENT)\r\n public Item getItem(World p_149694_1_, int p_149694_2_, int p_149694_3_, int p_149694_4_)\r\n {\r\n return Item.getItemFromBlock(MainRegistry.blockCampfireUnlit);\r\n }", "@SuppressWarnings(\"rawtypes\")\n \tpublic static Class getItemStackClass() {\n \t\treturn getMinecraftClass(\"ItemStack\");\n \t}", "protected ItemStack getDroppedItemStack(BlockState state, HitResult target, BlockGetter world,\n BlockPos blockPos, Player player, ItemStack originalItemStack) {\n return originalItemStack;\n }", "ItemStack get(final Player player) {\r\n\t\tthis.update(player);\r\n\r\n\t\treturn this.playerHasTool ? this.getToolWhenHas() : this.getToolWhenHasnt();\r\n\t}", "public ItemStack get(int paramInt)\r\n/* 26: */ {\r\n/* 27: 41 */ return this.a[paramInt];\r\n/* 28: */ }", "public ItemStack func_82846_b(EntityPlayer par1EntityPlayer, int par2)\n/* */ {\n/* 64 */ ItemStack itemstack = null;\n/* 65 */ Slot slot = (Slot)this.field_75151_b.get(par2);\n/* */ \n/* 67 */ if ((slot != null) && (slot.func_75216_d()))\n/* */ {\n/* 69 */ ItemStack itemstack1 = slot.func_75211_c();\n/* 70 */ itemstack = itemstack1.func_77946_l();\n/* */ \n/* 72 */ if (par2 != 0)\n/* */ {\n/* 74 */ if ((itemstack1.func_77973_b() instanceof ItemFocusBasic))\n/* */ {\n/* 76 */ if (!func_75135_a(itemstack1, 0, 1, false))\n/* */ {\n/* 78 */ return null;\n/* */ }\n/* */ }\n/* 81 */ else if ((par2 >= 1) && (par2 < 28))\n/* */ {\n/* 83 */ if (!func_75135_a(itemstack1, 28, 37, false))\n/* */ {\n/* 85 */ return null;\n/* */ }\n/* */ }\n/* 88 */ else if ((par2 >= 28) && (par2 < 37) && (!func_75135_a(itemstack1, 1, 28, false)))\n/* */ {\n/* 90 */ return null;\n/* */ }\n/* */ }\n/* 93 */ else if (!func_75135_a(itemstack1, 1, 37, false))\n/* */ {\n/* 95 */ return null;\n/* */ }\n/* */ \n/* 98 */ if (itemstack1.field_77994_a == 0)\n/* */ {\n/* 100 */ slot.func_75215_d((ItemStack)null);\n/* */ }\n/* */ else\n/* */ {\n/* 104 */ slot.func_75218_e();\n/* */ }\n/* */ \n/* 107 */ if (itemstack1.field_77994_a == itemstack.field_77994_a)\n/* */ {\n/* 109 */ return null;\n/* */ }\n/* */ \n/* 112 */ slot.func_82870_a(par1EntityPlayer, itemstack1);\n/* */ }\n/* */ \n/* 115 */ return itemstack;\n/* */ }", "@Override\n\tpublic ItemStack getStackInSlot(int p_70301_1_) {\n\t\treturn field_145900_a[p_70301_1_];\n\t}", "public ItemStack makeUnbreakable(ItemStack itemStack){\n net.minecraft.server.v1_8_R3.ItemStack item = CraftItemStack.asNMSCopy(itemStack);\n NBTTagCompound tag = new NBTTagCompound();\n tag.setBoolean(\"Unbreakable\", true);\n item.setTag(tag);\n return CraftItemStack.asCraftMirror(item);\n }", "@Override\n\tpublic ItemStack getStackInSlotOnClosing(int slot){\n\t if(modularStacks[slot] != null) {\n\t ItemStack itemstack = modularStacks[slot];\n\t modularStacks[slot] = null;\n\t return itemstack;\n\t } else {\n\t return null;\n\t }\n\t}", "@Override\n\tpublic boolean inventory(Player player, Item item, int opcode) {\n\t\treturn false;\n// Clan channel = ClanRepository.get(player.clan);\n// if (channel == null) {\n// player.send(new SendMessage(\"You need to be in a clan to do this!\"));\n// return true;\n// }\n// player.inventory.remove(item);\n// Item showcaseReward = new Item(Utility.randomElement(ClanUtility.getRewardItems(channel)));\n// channel.showcaseItems.add(showcaseReward.getId());\n// player.send(new SendMessage(\"Inside the box you found \" + showcaseReward.getName() + \"! Showcase size: \" + channel.showcaseItems.size() + \"/28\", SendMessage.MessageColor.DARK_PURPLE));\n// return true;\n\t}", "public static ItemStack consumeItem(ItemStack stack, int amount)\n\t{\n\t\tif(stack.stackSize <= amount)\n\t\t{\n\t\t\tif(stack.getItem().hasContainerItem())\n\t\t\t{\n\t\t\t\treturn stack.getItem().getContainerItemStack(stack);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tstack.stackSize -= amount;\n\t\t\treturn stack;\n\t\t}\t\n\t}", "public void softAddItem(ItemStack item, Player player){\n\t\tHashMap<Integer,ItemStack> excess = player.getInventory().addItem(item);\n\t\tfor( Map.Entry<Integer, ItemStack> me : excess.entrySet() ){\n\t\t\tplayer.getWorld().dropItem(player.getLocation(), me.getValue() );\n\t\t}\n\t}", "public String unequipItem(String itemName) {\r\n\t\t\tif(itemName == \"unarmored\") {\r\n\t\t\t\treturn \"You do not have any armor to unequip.\"; // handles unarmored situation\r\n\t\t\t}\r\n\t\t\telse if(itemName.equals(this.getPlayer().getBodyArmor().getName())) {\r\n\t\t\t\tthis.getPlayer().changeMaxHealth(0-this.getPlayer().getBodyArmor().getArmor());\r\n\t\t\t\tthis.getPlayer().addUnequippedItemToInventory(this.getPlayer().getBodyArmor());\r\n\t\t\t\tthis.getPlayer().setBodyArmor(this.getDefaultBodyArmor());\t\t// set armor to default on unequip\r\n\t\t\t\treturn \"You unequip \" + itemName + \".\";\r\n\t\t\t}\r\n\t\t\telse if (itemName.equals(this.getPlayer().getHeadgear().getName())) {\r\n\t\t\t\tthis.getPlayer().changeMaxHealth(0-this.getPlayer().getHeadgear().getArmor());\r\n\t\t\t\tthis.getPlayer().addUnequippedItemToInventory(this.getPlayer().getHeadgear());\r\n\t\t\t\tthis.getPlayer().setHeadgear(this.getDefaultHeadgear());\t\t// set headgear to default on unequip \r\n\t\t\t\treturn \"You unequip \" + itemName + \".\";\r\n\t\t\t}\r\n\t\t\telse if (itemName.equals(this.getPlayer().getGloves().getName())) {\r\n\t\t\t\tthis.getPlayer().changeMaxHealth(0-this.getPlayer().getGloves().getArmor());\r\n\t\t\t\tthis.getPlayer().addUnequippedItemToInventory(this.getPlayer().getGloves());\r\n\t\t\t\tthis.getPlayer().setGloves(this.getDefaultGloves());\t\t\t// set gloves to default on unequip \r\n\t\t\t\treturn \"You unequip \" + itemName + \".\";\r\n\t\t\t}\r\n\t\t\telse if (itemName.equals(this.getPlayer().getBoots().getName())) {\r\n\t\t\t\tthis.getPlayer().changeMaxHealth(0-this.getPlayer().getBoots().getArmor());\r\n\t\t\t\tthis.getPlayer().addUnequippedItemToInventory(this.getPlayer().getBoots());\r\n\t\t\t\tthis.getPlayer().setBoots(this.getDefaultBoots());\t\t\t\t// set boots to default on unequip \r\n\t\t\t\treturn \"You unequip \" + itemName + \".\";\r\n\t\t\t}\r\n\t\t\telse if (itemName.equals(this.getPlayer().getWeapon().getName())) {\r\n\t\t\t\tthis.getPlayer().addUnequippedItemToInventory(this.getPlayer().getWeapon());\r\n\t\t\t\tthis.getPlayer().setWeapon(this.getDefaultWeapon());\t\t\t// set weapon to default on unequip \r\n\t\t\t\treturn \"You unequip \" + itemName + \".\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn \"You cannot unequip an item you are not wearing.\";\r\n\t\t\t}\r\n\t\t}", "public ItemStack func_70301_a(int par1)\n/* */ {\n/* 25 */ return null;\n/* */ }", "@Override\n\tpublic Item getItemDropped(int par1, Random par2Random, int par3) {\n\t\treturn Item.getItemFromBlock(this);\n\t}" ]
[ "0.7427496", "0.7171492", "0.6983711", "0.6971074", "0.69579583", "0.6946447", "0.69383395", "0.6898934", "0.68749213", "0.68408144", "0.6821698", "0.68102014", "0.6701901", "0.6685236", "0.6671894", "0.66028845", "0.65489477", "0.65489477", "0.6545419", "0.6545118", "0.6530428", "0.65077454", "0.65019125", "0.64631015", "0.6438179", "0.6429458", "0.6358592", "0.6294827", "0.62920004", "0.62731284", "0.6272549", "0.6261293", "0.6256154", "0.6240783", "0.6238631", "0.6200282", "0.61717546", "0.6167106", "0.6151885", "0.6141478", "0.61171716", "0.61104006", "0.60896796", "0.6075777", "0.607214", "0.60428035", "0.6033887", "0.6031117", "0.6027906", "0.601679", "0.6005342", "0.60052216", "0.5982822", "0.5975027", "0.5957985", "0.5931535", "0.5918908", "0.59169453", "0.58977777", "0.58803934", "0.5879198", "0.5856604", "0.58514214", "0.58465445", "0.5843878", "0.5838265", "0.58297867", "0.5825048", "0.58135694", "0.5804336", "0.5801846", "0.58018154", "0.5799487", "0.57945937", "0.5793339", "0.57794267", "0.5776712", "0.5775024", "0.577061", "0.5757251", "0.5751265", "0.5747293", "0.57399136", "0.5739446", "0.57340384", "0.57275635", "0.5725", "0.57143176", "0.5710214", "0.57012385", "0.5696258", "0.56924886", "0.56833285", "0.5681006", "0.56669176", "0.5666323", "0.566352", "0.5656575", "0.5643921", "0.56435984" ]
0.5944363
55
A collection page for HostComponent
public HostComponentCollectionPage(@Nonnull final HostComponentCollectionResponse response, @Nonnull final HostComponentCollectionRequestBuilder builder) { super(response, builder); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HostComponentCollectionPage(@Nonnull final java.util.List<HostComponent> pageContents, @Nullable final HostComponentCollectionRequestBuilder nextRequestBuilder) {\n super(pageContents, nextRequestBuilder);\n }", "Collections() { return; }", "public interface HomePagePresenter extends BasePresenter{\n interface View extends BaseView{\n\n /**\n * 展示已收藏的项目\n * @param collectionList 已收藏的项目\n */\n void onViewShowCollectionList(List<CollectionModel> collectionList);\n\n /**\n * 打开已收藏的项目\n * @param collectionItem\n */\n void onViewOpenColletionItem(CollectionModel collectionItem);\n }\n void presenterItemClicked(CollectionModel collectionModel);\n}", "public MYCollection() throws UnknownHostException, IOException, ClassNotFoundException {\r\n\t\tinitComponents();\r\n\r\n\t\t/*处理页面美化*/\r\n\t\tthis.drawCollection();\r\n\r\n\t\t/*显示所有收藏*/\r\n\t\tthis.showCollection();\r\n\r\n\t\tjScrollPane1\r\n\t\t\t\t.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\r\n\t\tthis.setDefaultCloseOperation(this.DISPOSE_ON_CLOSE);\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\tthis.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\t\r\n\t}", "private void populateViewCollections() {\n\n\t}", "CollectionResource createCollectionResource();", "Collection<? extends Service> getHost();", "@SuppressWarnings(\"unchecked\")\n public <T> IndexedCollection<T> collection() {\n return (IndexedCollection<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 }", "String getCollection();", "public void createCollections() {\n \n\t\t//Creating columns for the collection\n collectionToolName = new VBox();\n collectionPurchaseDate = new VBox();\n collectionReturnButtons = new VBox();\n \n //Creating columns for the owned tools section\n ownedToolName = new VBox();\n ownedPurchaseDate = new VBox();\n ownedLendable = new VBox();\n \n collectionList.getChildren().add(collectionToolName);\n collectionList.getChildren().add(new Separator());\n collectionList.getChildren().add(collectionPurchaseDate);\n collectionList.getChildren().add(new Separator());\n collectionList.getChildren().add(collectionReturnButtons);\n \n \n ownedList.getChildren().add(ownedToolName);\n ownedList.getChildren().add(new Separator());\n ownedList.getChildren().add(ownedPurchaseDate);\n ownedList.getChildren().add(new Separator());\n ownedList.getChildren().add(ownedLendable);\n \n\t}", "public Collection() {\n this.collection = new ArrayList<>();\n }", "public Collection getCollection() {\n return mCollection;\n }", "protected abstract Collection createCollection();", "@Override\n public void getHomepageElementList() {\n String elementTypes = firebaseRemoteConfig.getString(Constants.FIREBASE_ELEMENT_LIST);\n List<String> elementTypeArray = Arrays.asList(elementTypes.split(\",\"));\n\n List<ElementView> elementViewList = new ArrayList<>();\n for (String elementType : elementTypeArray) {\n ElementView elementView = elementViewFactory.convert(elementType);\n if (elementView != null) {\n elementViewList.add(elementView);\n }\n }\n\n homepageView.setupElementViewAdapter(elementViewList);\n }", "public interface CollectionService {\n Collection getById(Long id);\n\n //List<Collection> getByFavoriteId(Long id);\n\n Collection save(Collection collection);\n\n void delete(Long id);\n\n List<CollectionVO> getByFavoriteId(Long favoriteId, Pageable pageable);\n\n}", "public String navigatePartidoCollection() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"Partido_items\", this.getSelected().getPartidoCollection());\n }\n return \"/partido/index\";\n }", "@Override\n public List<Item> viewAllItems() {\n // calls List<Item> itemRepo.findCatalog();\n return itemRepo.findCatalog();\n }", "public boolean isHomeCollection();", "@Override\r\n\tpublic String list() {\n\t\tList<HeadLine> dataList=new ArrayList<HeadLine>();\r\n\t\tPagerItem pagerItem=new PagerItem();\r\n\t\tpagerItem.parsePageSize(pageSize);\r\n\t\tpagerItem.parsePageNum(pageNum);\r\n\t\t\r\n\t\tLong count=headLineService.count();\r\n\t\tpagerItem.changeRowCount(count);\r\n\t\t\r\n\t\tdataList=headLineService.pager(pagerItem.getPageNum(), pagerItem.getPageSize());\r\n\t\tpagerItem.changeUrl(SysFun.generalUrl(requestURI, queryString));\r\n\t\t\r\n\t\trequest.put(\"DataList\", dataList);\r\n\t\trequest.put(\"pagerItem\", pagerItem);\r\n\t\t\r\n\t\t\r\n\t\treturn \"list\";\r\n\t}", "public java.lang.String getCollection() {\n return instance.getCollection();\n }", "public MethodLinkBuilderFactory<GamesCollectionThymeleafController> getCollectionLink() {\n return collectionLink;\n }", "void setNewCollectionPanel();", "public HomePageActions() {\n\t\tPageFactory.initElements(driver,HomePageObjects.class);\n\t}", "public void viewListofHomes() {\n\t\ttry {\n\t\t\t\n\t\t}catch(Exception e) {\n\t\t\tLog.addMessage(\"Failed to get list of homes\");\n\t\t\tSystem.out.println(e.getMessage().toString());\n\t\t\tAssert.assertTrue(false, \"Failed to get list of homes\");\n\t\t}\n\t}", "@RequestMapping(value = {\"/admin2543/view_components\"}, method = RequestMethod.GET)\n public String view_components(Model model) {\n List<Component> components = componentDAO.getAllComponents();\n \n model.addAttribute(\"component\", new Component());\n model.addAttribute(\"components\", components);\n model.addAttribute(\"componentGroups\", this.getComponentGroupNames());\n return \"admin2543/component\";\n }", "public java.lang.String getCollection() {\n return collection_;\n }", "private void getItems() {\n getComputers();\n getPrinters();\n }", "private void addCollection(String dir, Site site) throws Exception {\r\n\tContentCollectionEdit collection = null;\r\n\tString id = null;\r\n\r\n\tid = getSiteReference(site) + dir;\r\n\tid = id.substring(8) + \"/\";\r\n\tif (!collectionExist(id)) {\r\n\t collection = contentHostingService.addCollection(id);\r\n\t ResourcePropertiesEdit fileProperties =\r\n\t\t collection.getPropertiesEdit();\r\n\t fileProperties.addProperty(ResourceProperties.PROP_DISPLAY_NAME,\r\n\t\t dir);\r\n\t contentHostingService.commitCollection(collection);\r\n\t}\r\n }", "Collection<Service> getAllPublishedService();", "@Test\n @NavigateTo(\"/group/dp/common-components\")\n public void testListingComponents() {\n // #action: Navigate to the common-components landing page.\n // #expects: There is at least one component listed.\n assertThat(driver.findElements(By.cssSelector(\".categories li\")).size()).isGreaterThan(0);\n }", "public void setCollectionName(String collectionName);", "private List<SimpleComponent> list() {\n\t\treturn this.list(null);\n\t}", "Collect getColl();", "@Override\n\tpublic String getCollection() {\n\t\treturn null;\n\t}", "public String navigatePartidoCollection1() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"Partido_items\", this.getSelected().getPartidoCollection1());\n }\n return \"/partido/index\";\n }", "public void CollectionsDetails() throws Exception {\n\t\n\tCollection();\n\t Thread.sleep(2000);\n CreateCollection();\n\tCollectionName();\n\t//CollectionCategory();\n\tCollectionDescription();\n\tAddCollectionTrailerTab();\n\tThread.sleep(2000);\n\tAddCollectionTrailer();\n\tAddCollectionTrailer();\n\tAddCollectionVideoTab();\n\tAddCollectionVideo();\n\tAddCollectionVideo();\n\tAddCollectionVideo();\n\tThread.sleep(2000);\n\tSearchCollectionVideo();\n\tCreateCollectionBtn(); \n\t Thread.sleep(2000);\n\t\n\t \n\t SelectCollection();\n\tEditCollection();\n\tEditCollectionName();\n\tAddCollectionTrailerTab();\n\tThread.sleep(2000);\n\tAddCollectionTrailer();\n\tAddCollectionVideoTab();\n\tRemoveCollectionVideo();\n\tThread.sleep(2000);\n\tAddCollectionVideo();\n\t Thread.sleep(2000);\n UpdateCollectionBtn();\n SelectCollection();\n DeleteCollectionBtn();\n DeleteCollection();\n Thread.sleep(2000); \n}", "private NotesCollection getCollection() {\n\t\t\n\t\tif (collection == null || collection.isRecycled() ) {\n\t\t\tNotesDatabase db = new NotesDatabase(ExtLibUtil.getCurrentSession(), \"\", fakenamesPath);\n\t\t\tcollection = db.openCollectionByName(\"contacts\");\n\t\t}\n\n\t\treturn collection;\n\t}", "private void viewCourses() {\n Iterable<Course> courses = ctrl.getCourseRepo().findAll();\n courses.forEach(System.out::println);\n }", "public String getCollectionName() {\n return collectionName;\n }", "public WECollection()\n {\n }", "public abstract Collection<FeedProvider> getVisibleFeedProviders();", "public void setupArticlesList();", "public void eventsPublishedByPub() {\r\n int index = 1;\r\n System.out.println(\"Events published by this publisher: \");\r\n for (Event event : pubEvents) {\r\n System.out.println(index + \"->\" + event + \"\\n\");\r\n index++;\r\n }\r\n }", "public void consulterCatalog() {\n\t\t\n\t}", "public abstract Collection<Entry<K, V>> dataToServe();", "public void printClientList() {\n uiService.underDevelopment();\n }", "@RequestMapping(\"/\")\n public List<PluginInformation> home() {\n List<PluginInformation> pluginList = new ArrayList<PluginInformation>();\n pluginList.add(new PluginInformation());\n return pluginList;\n }", "public String navigatePartidoCollection3() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"Partido_items\", this.getSelected().getPartidoCollection3());\n }\n return \"/partido/index\";\n }", "public String navigateDocenteCollection() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"Docente_items\", this.getSelected().getDocenteCollection());\n }\n return this.mobilePageController.getMobilePagesPrefix() + \"/docente/index\";\n }", "Items(){\n}", "public interface IPageView extends IBaseView {\n\n void showList(List<PageBean> list);\n}", "@Override\n public LiveWebModel[] getChildren() {\n return pages;\n }", "@Override\n\tprotected String method() {\n\t\treturn \"getPublishCollections\";\n\t}", "private void producueViews() {\n if (splittedPostComponent != null && splittedPostComponent.size() > 0) {\n // loop through each component\n for (int i = 0; i < splittedPostComponent.size(); i++) {\n // create view if collection did not equal to empty string \"\"\n if (!splittedPostComponent.get(i).trim().equals(\"\")) {\n generateView(splittedPostComponent.get(i));\n }\n }\n }\n }", "@ImplementedBy(CollectionRepository.class)\npublic interface ICollectionRepository {\n public Collection create(Collection collection);\n public void update(Collection collection);\n public void updateFieldContent(Collection collection, String displayField, int fieldCount);\n public Collection incrementTotalContentCount(Collection collection, int count);\n public Collection get(String collectionId);\n public List<Collection> getAll(String projectId);\n}", "public interface PueblaCollectorView extends BasePresenterLoader.Ui{\n void showCollectorCenters(List<CollectorCenter> collectorCenters);\n\n void showEmptyMessage();\n\n void showErrorMessage();\n}", "public static void index() {\n\t\tList<models.Todo> todos = models.Todo.findAllSorted();\t\n\t\trender(todos);\n\t}", "public void displayData(MongoCollection<Document> collection) {\n\n\t\ttry {\n\t\t\tFindIterable<Document> iterDoc = collection.find(); \n\t\t\tMongoCursor<Document> it = iterDoc.iterator(); \n\n\t\t\twhile (it.hasNext()) { \n\t\t\t\tSystem.out.println(it.next()); \n\t\t\t}\n\t\t}catch(Exception e) {}\n\t}", "public Home () {\n\t\t\n\t\tthis.isActiveListing = true;\n\t}", "protected List getList() {\n/* 88 */ return (List)getCollection();\n/* */ }", "public ArrayList<DiscoveryPage> getPages() {\n return pages;\n }", "@Override\n\tpublic List<Object> getCollection() {\n\t\treturn null;\n\t}", "void displayAllPosts();", "public static void afficherCatalogueComplet() {\r\n Catalogue.afficher();\r\n System.out.println();\r\n }", "private void showServices()\n {\n // Remove all of the items from the listField.\n _treeField.deleteAll();\n \n // Get a copy of the ServiceRouting class.\n ServiceRouting serviceRouting = ServiceRouting.getInstance();\n \n // Add in our new items by trolling through the ServiceBook API.\n ServiceBook sb = ServiceBook.getSB();\n ServiceRecord[] records = sb.getRecords();\n \n if( records == null ) \n {\n return;\n }\n \n int rootNode = _treeField.addChildNode( 0, \"Service Records\" );\n \n int numRecords = records.length;\n \n for( int i = 0; i < numRecords; i++ ) \n {\n String name = records[i].getName();\n String description = records[i].getDescription();\n \n if( description == null || description.length() == 0 ) \n {\n description = \"No description available\" ;\n }\n \n String uid = records[i].getUid();\n boolean serialBypass = serviceRouting.isSerialBypassActive( uid );\n\n int newParentNode = _treeField.addChildNode( rootNode, name );\n _treeField.addChildNode( newParentNode, description );\n _treeField.addChildNode( newParentNode, uid );\n _treeField.addChildNode( newParentNode, serialBypass ? \"Serial Bypass: Connected\" : \"Serial Bypass: Disconnected\");\n \n // Perform the check for the Desktop SerialRecord.\n if( name != null && name.equals( \"Desktop\" )) \n {\n _desktopUID = uid;\n }\n }\n \n _treeField.setCurrentNode( rootNode ); // Set the root as the starting point.\n }", "private void getAllContainers() {\n AID ams = getAMS();\n QueryPlatformLocationsAction queryPlatformLocationsAction = new QueryPlatformLocationsAction();\n sendRequest(new Action(ams, queryPlatformLocationsAction));\n MessageTemplate mt = MessageTemplate.and(\n MessageTemplate.MatchSender(getAMS()),\n MessageTemplate.MatchPerformative(ACLMessage.INFORM));\n ACLMessage resp = blockingReceive(mt);\n ContentElement ce = null;\n try {\n ce = getContentManager().extractContent(resp);\n } catch (Codec.CodecException e) {\n e.printStackTrace();\n } catch (OntologyException e) {\n e.printStackTrace();\n }\n Result result = (Result) ce;\n jade.util.leap.Iterator it = result.getItems().iterator();\n while (it.hasNext()) {\n Location loc = (Location) it.next();\n containersOnPlatform.put(loc.getName(), loc);\n }\n }", "public String getCollectionClass ();", "public static CollectionReference getCollection(){\n return FirebaseFirestore.getInstance().collection(COLLECTION_NAME) ;\n }", "public adminAuthor() {\n initComponents();\n List();\n\n }", "private OIFitsCollectionManager() {\n super();\n\n this.jf = JAXBFactory.getInstance(OIFITS_EXPLORER_MODEL_JAXB_PATH);\n\n logger.debug(\"OIFitsCollectionManager: JAXBFactory: {}\", this.jf);\n\n this.oiFitsCollectionManagerEventNotifierMap = new EnumMap<OIFitsCollectionManagerEventType, EventNotifier<OIFitsCollectionManagerEvent, OIFitsCollectionManagerEventType, Object>>(OIFitsCollectionManagerEventType.class);\n\n int priority = 0;\n EventNotifier<OIFitsCollectionManagerEvent, OIFitsCollectionManagerEventType, Object> eventNotifier;\n\n for (OIFitsCollectionManagerEventType eventType : OIFitsCollectionManagerEventType.values()) {\n // false argument means allow self notification:\n final boolean skipSourceListener = (eventType != OIFitsCollectionManagerEventType.COLLECTION_CHANGED);\n\n eventNotifier = new EventNotifier<OIFitsCollectionManagerEvent, OIFitsCollectionManagerEventType, Object>(eventType.name(), priority, skipSourceListener);\n\n this.oiFitsCollectionManagerEventNotifierMap.put(eventType, eventNotifier);\n priority += 10;\n }\n\n // listen for COLLECTION_CHANGED event to analyze collection and fire initial events:\n getOiFitsCollectionChangedEventNotifier().register(this);\n\n // reset anyway:\n reset();\n }", "public String getCollectionUrl() {\n\t\tString t = doc.get(\"url\");\n\n\t\tif (t == null) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\treturn t;\n\t\t}\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 Collection()\n {\n // initialisation des variables d'instance\n documents = new ArrayList<>();\n }", "@Override\n public String getName() {\n return \"list\";\n }", "private void createCollection(String commonLocation) throws RegistryException {\n\t\tRegistry systemRegistry = CommonUtil.getUnchrootedSystemRegistry(requestContext);\n\t\t//Creating a collection if not exists.\n\t\tif (!systemRegistry.resourceExists(commonLocation)) {\n\t\t\tsystemRegistry.put(commonLocation, systemRegistry.newCollection());\n\t\t}\n\t}", "public static void showAllHouse(){\n ArrayList<House> houseList = getListFromCSV(FuncGeneric.EntityType.HOUSE);\n displayList(houseList);\n showServices();\n }", "@RequestMapping(\"/homelist\")\n public Page<PostEntity> mainPage() {\n return postService.getPage(0);\n }", "@GetMapping\n\t@Secured(Roles.ADMIN)\n\tpublic ResponseEntity<EmployeeCollectionDto> getAll() {\n\t\tLogStepIn();\n\n\t\tList<Employee> employeeList = employeeRepository.findAll();\n\t\tEmployeeCollectionDto employeeCollectionDto = new EmployeeCollectionDto();\n\n\t\tfor (Employee employee : employeeList) {\n\t\t\temployeeCollectionDto.collection.add(toDto(employee));\n\t\t}\n\n\t\treturn LogStepOut(ResponseEntity.ok(employeeCollectionDto));\n\t}", "@Override\n\tpublic void listAllItems() {\n\t\t\n\t}", "public interface CollectionCreator {\n\n /**\n * Creates a new collection instance to be populated by the binder.\n * \n * @param initialCapacity\n * The number of elements that will be added to the collection. To be\n * used with collections that can benefit from this information.\n * @return the newly created empty collection instance.\n */\n Collection<?> create(int initialCapacity);\n\n}", "private ServiceDisplay() {\n\t\tthis.idisplays = new ArrayList<IDisplay>();\n\t\tthis.idisplays.add(DisplayPorConsola.getInstancia());\n\t}", "@RequestMapping(method = RequestMethod.GET)\r\n\t@ResponseBody\r\n\t@Transactional(readOnly = true)\r\n\tpublic Collection<Model> list() {\r\n\t\treturn getService().list();\r\n\t}", "public Portlets() \r\n {\r\n super();\r\n _portletList = new Vector();\r\n }", "public void MockForRetrieveCollectionList(){\n try {\n Mockito.when(clsProperties.getPropertyByPlatform(CLSInterfaceProperties.COMMON_TIMEOUT)).thenReturn(\"30000\");\n HashMap credentialsMap = new HashMap();\n credentialsMap.put(\"sAppID\", \"paperlessNAR\");\n credentialsMap.put(\"sPassword\", \"95fs6521fa\");\n \n PowerMockito.doReturn(credentialsMap).when(clsFacade, \"getCredentials\", CLSInterfaceProperties.APP_PAPERLESS_COLLECTION_RETRIEVAL);\n URL url = new URL(\"http://ixservice.ete.cathaypacific.com:80/ixClsNARPortal/PaperlessCollectionRetrievalServlet\");\n PowerMockito.doReturn(url).when(clsFacade, \"getURLForApp\", CLSInterfaceProperties.APP_PAPERLESS_COLLECTION_RETRIEVAL);\n \n } catch (CLSException e) {\n System.out.println(\"Retrieve Collection List take CLSException: \" + e);\n } catch (MalformedURLException e) {\n System.out.println(\"Retrieve Collection List take MalformedURLException: \" + e);\n } catch (Exception e) {\n System.out.println(\"Retrieve Collection List take Exception: \" + e);\n }\n }", "public interface CategoryTourPresenter {\n\n void getAllCategory();\n\n interface View extends BaseView{\n\n void showAllCategory(List<ItemCategory> itemCategoryList);\n }\n\n}", "public String navigateDetalleofertaCollection() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"Detalleoferta_items\", this.getSelected().getDetalleofertaCollection());\n }\n return \"/detalleoferta/index\";\n }", "CollectionItem createCollectionItem();", "public SongCollection getHome(){\n return this.home;\r\n }", "private void loadItemList() {\n this.presenter.initialize();\n }", "public Collection() {\n }", "@Test\n\tpublic void testSuppServices() {\n\t\tList<SuppServices> suppServices = suppServicesService.selectList();\n\n\t\tfor (SuppServices supp : suppServices) {\n\n\t\t\tSystem.out.println(supp);\n\t\t}\n\t}", "public void viewAll() {\n click(viewAllLink);\n }", "java.lang.String getCollection();", "public CollectionFragment() {\n }", "public void index() {\n Integer pageNum = getParaToInt(\"pageNum\");\n Boolean includeContent = getParaToBoolean(\"includeContent\", false);\n\n if (pageNum == null) {\n mResult.fail(102);\n renderJson(mResult);\n return;\n }\n Page<Blog> blogAbstracts;\n if (!includeContent) {\n blogAbstracts = mBlogService.queryWithoutContent(pageNum);\n } else {\n blogAbstracts = mBlogService.queryAll(pageNum);\n }\n\n if (blogAbstracts.getList().size() == 0) {\n mResult.fail(107);\n } else {\n mResult.success(blogAbstracts.getList());\n }\n renderJson(mResult);\n }", "public boolean isCollection() {\n return this == LOAD || this == PICKUP;\n }", "public interface PostsListView extends LoadDataView {\n void renderList(Collection<Post> postCollection);\n\n void viewPostDetails(Post post);\n\n}", "public Collection<Proyecto> leerProyectosCollection() {\n\t\t\tRestTemplate plantilla = new RestTemplate();\n\t\t\tProyecto[] proyecto = plantilla.getForObject(\"http://localhost:5000/proyectos\", Proyecto[].class);\n\t\t\tList<Proyecto> listaProyectos = Arrays.asList(proyecto);\n\t\t\treturn listaProyectos;\n\t\t}", "@Override\n @RequiresPermissions(\"em.emtype.query\")\n public void index() {\n List<EmType> list = EmType.dao.list();\n \n setAttr(\"list\", JsonKit.toJson(list));\n render(\"equipment_type_list.jsp\");\n }", "public void renderSiteContent(){\r\n\t\tbuildTables();\r\n\t\tsiteDto = (Collection<SiteDto>) siteService.findSitesByAccountId(accountId, false);\r\n\t\t//siteDto = new ArrayList<SiteDto>();\r\n\t\tif(!(siteDto.isEmpty())){\r\n\t\t\t\r\n\t\t\trenderCombobox();\r\n\t\t\trenderArticleTable();\r\n\t\t\trenderImageTable();\r\n\t\t\tverticalLayout.addComponent(articleTable);\r\n\t\t\tverticalLayout.addComponent(imageTable);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tButton linkButton = new Button(\"Create new site\");\r\n\t\t\tlinkButton.setStyleName(BaseTheme.BUTTON_LINK);\r\n\t\t\tlinkButton.addClickListener(new ClickListener() {\r\n\t\t\t\t\r\n\t\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t\tpublic void buttonClick(ClickEvent event) {\r\n\t\t\t\t\tfinal SiteUIManager siteUiManager = new SiteUIManager(siteDashboardTab,helper);\r\n\t\t\t\t\tVerticalLayout newlayout = siteUiManager.renderNewSite();\r\n\t\t\t\t\tTab tab1 = siteDashboardTab.addTab(newlayout, \"Create site\", null);\r\n\t\t\t\t\ttab1.setClosable(true);\r\n\t\t\t\t\tsiteDashboardTab.setSelectedTab(newlayout);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tverticalLayout.addComponent(linkButton);\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\tverticalLayout.addComponent(label);//article label\r\n\t\tverticalLayout.addComponent(label2);//image label\r\n\t\r\n\t}" ]
[ "0.6965986", "0.6012159", "0.59060234", "0.5889185", "0.56635046", "0.5662283", "0.5636003", "0.56192344", "0.5614215", "0.56111884", "0.55628353", "0.5537156", "0.5536285", "0.552585", "0.5512023", "0.54952455", "0.54925764", "0.5431867", "0.54263836", "0.5389159", "0.5383834", "0.5356797", "0.5346788", "0.5343555", "0.5323678", "0.5317619", "0.53077173", "0.52992594", "0.52821475", "0.5266146", "0.5248127", "0.52452344", "0.52378726", "0.52351296", "0.5234548", "0.52119535", "0.52067953", "0.5167313", "0.51606923", "0.5159314", "0.5157374", "0.51490307", "0.51460856", "0.5143231", "0.51414543", "0.51370287", "0.51306725", "0.51282465", "0.5121154", "0.5119844", "0.5119746", "0.5106835", "0.5105525", "0.50906247", "0.508619", "0.50794053", "0.50761676", "0.5074837", "0.50744224", "0.5069145", "0.50632554", "0.5054401", "0.5054363", "0.505194", "0.5037042", "0.5025623", "0.5025126", "0.50187665", "0.5017672", "0.5013631", "0.5008712", "0.50086135", "0.50082207", "0.50078154", "0.50043094", "0.5002406", "0.4996344", "0.49943072", "0.4989", "0.49885613", "0.49852204", "0.49834362", "0.498275", "0.49801165", "0.49793416", "0.49743128", "0.49671927", "0.49642837", "0.49553177", "0.49516404", "0.4944092", "0.4937499", "0.4935843", "0.49327782", "0.49215707", "0.49188802", "0.4914276", "0.4910986", "0.49054635", "0.4902525" ]
0.6887586
1
Creates the collection page for HostComponent
public HostComponentCollectionPage(@Nonnull final java.util.List<HostComponent> pageContents, @Nullable final HostComponentCollectionRequestBuilder nextRequestBuilder) { super(pageContents, nextRequestBuilder); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HostComponentCollectionPage(@Nonnull final HostComponentCollectionResponse response, @Nonnull final HostComponentCollectionRequestBuilder builder) {\n super(response, builder);\n }", "public void createCollections() {\n \n\t\t//Creating columns for the collection\n collectionToolName = new VBox();\n collectionPurchaseDate = new VBox();\n collectionReturnButtons = new VBox();\n \n //Creating columns for the owned tools section\n ownedToolName = new VBox();\n ownedPurchaseDate = new VBox();\n ownedLendable = new VBox();\n \n collectionList.getChildren().add(collectionToolName);\n collectionList.getChildren().add(new Separator());\n collectionList.getChildren().add(collectionPurchaseDate);\n collectionList.getChildren().add(new Separator());\n collectionList.getChildren().add(collectionReturnButtons);\n \n \n ownedList.getChildren().add(ownedToolName);\n ownedList.getChildren().add(new Separator());\n ownedList.getChildren().add(ownedPurchaseDate);\n ownedList.getChildren().add(new Separator());\n ownedList.getChildren().add(ownedLendable);\n \n\t}", "CollectionResource createCollectionResource();", "public MYCollection() throws UnknownHostException, IOException, ClassNotFoundException {\r\n\t\tinitComponents();\r\n\r\n\t\t/*处理页面美化*/\r\n\t\tthis.drawCollection();\r\n\r\n\t\t/*显示所有收藏*/\r\n\t\tthis.showCollection();\r\n\r\n\t\tjScrollPane1\r\n\t\t\t\t.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\r\n\t\tthis.setDefaultCloseOperation(this.DISPOSE_ON_CLOSE);\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\tthis.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\t\r\n\t}", "protected abstract Collection createCollection();", "public HomePageActions() {\n\t\tPageFactory.initElements(driver,HomePageObjects.class);\n\t}", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}", "void setNewCollectionPanel();", "public void renderSiteContent(){\r\n\t\tbuildTables();\r\n\t\tsiteDto = (Collection<SiteDto>) siteService.findSitesByAccountId(accountId, false);\r\n\t\t//siteDto = new ArrayList<SiteDto>();\r\n\t\tif(!(siteDto.isEmpty())){\r\n\t\t\t\r\n\t\t\trenderCombobox();\r\n\t\t\trenderArticleTable();\r\n\t\t\trenderImageTable();\r\n\t\t\tverticalLayout.addComponent(articleTable);\r\n\t\t\tverticalLayout.addComponent(imageTable);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tButton linkButton = new Button(\"Create new site\");\r\n\t\t\tlinkButton.setStyleName(BaseTheme.BUTTON_LINK);\r\n\t\t\tlinkButton.addClickListener(new ClickListener() {\r\n\t\t\t\t\r\n\t\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t\tpublic void buttonClick(ClickEvent event) {\r\n\t\t\t\t\tfinal SiteUIManager siteUiManager = new SiteUIManager(siteDashboardTab,helper);\r\n\t\t\t\t\tVerticalLayout newlayout = siteUiManager.renderNewSite();\r\n\t\t\t\t\tTab tab1 = siteDashboardTab.addTab(newlayout, \"Create site\", null);\r\n\t\t\t\t\ttab1.setClosable(true);\r\n\t\t\t\t\tsiteDashboardTab.setSelectedTab(newlayout);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tverticalLayout.addComponent(linkButton);\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\tverticalLayout.addComponent(label);//article label\r\n\t\tverticalLayout.addComponent(label2);//image label\r\n\t\r\n\t}", "public HomePage() {\n \t\tPageFactory.initElements(driver, this);\n \t}", "public HomePage(){\r\n\t\tPageFactory.initElements(driver, this);\r\n\r\n\r\n\t}", "public HomePage() { \n\t\t\tPageFactory.initElements(driver, this);\n\t\t}", "public HomePage(){\n\t\t\tPageFactory.initElements(driver, this); \n\t\t}", "public HomePage() {\n\t\t\tPageFactory.initElements(driver, this);\n\t\t}", "public HomePage(){\n\t\tPageFactory.initElements(driver, this);\n\t}", "public interface HomePagePresenter extends BasePresenter{\n interface View extends BaseView{\n\n /**\n * 展示已收藏的项目\n * @param collectionList 已收藏的项目\n */\n void onViewShowCollectionList(List<CollectionModel> collectionList);\n\n /**\n * 打开已收藏的项目\n * @param collectionItem\n */\n void onViewOpenColletionItem(CollectionModel collectionItem);\n }\n void presenterItemClicked(CollectionModel collectionModel);\n}", "public ContactsPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "private void createCollection(String commonLocation) throws RegistryException {\n\t\tRegistry systemRegistry = CommonUtil.getUnchrootedSystemRegistry(requestContext);\n\t\t//Creating a collection if not exists.\n\t\tif (!systemRegistry.resourceExists(commonLocation)) {\n\t\t\tsystemRegistry.put(commonLocation, systemRegistry.newCollection());\n\t\t}\n\t}", "protected void createPages() {\n\t\tcreateIntroEditor();\n\t\tcreatePageMainEditor();\n\t\tcreatePageController();\n\t\tcreateCssEditor();\n\t\tcreatePageTextEditor();\n\t\trefreshPageMainEditor();\n\t\trefreshPageControllerEditor();\n\t\trefreshCssEditor();\n\t\tsetDirty(false);\n\t}", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "private void createUIComponents() {\n this.selectorApplication = new AzureArtifactComboBox(project, true);\n this.selectorApplication.refreshItems();\n }", "public HomePage(){\n PageFactory.initElements(driver, this);\n }", "public HotelsPage() {\n PageFactory.initElements(driver, this);\n }", "public HomePage() {\r\n\t\tPageFactory.initElements(driver, this);\r\n\t}", "CollectionItem createCollectionItem();", "@Override\n\tpublic Page createPage(String title, String author) {\n\t\treturn new ListPage(title, author);\n\t}", "public void createHomePage(){\n\t\tsetLayout(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints(); \n\t\t//insert username and password fields\n\t\tJLabel title;\n\n\t\t//build the title panel\n\t\ttitlePanel = new JPanel();\n\t\ttitle = new JLabel(\"Budgie\");\n\t\ttitle.setSize(new Dimension(40, 40));\n\t\ttitlePanel.add(title);\n\n\t\tc.anchor = GridBagConstraints.CENTER;\n\t\tc.gridy = 0;\n\t\tc.weighty = .5;\n\t\tadd(titlePanel, c);\n\n\t\tinputField = addinputField();\n\n\t\t//positioning of the grid field\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridy = 1;\n\t\tc.ipady = 10;\n\t\tc.weighty = .5;\n\t\tadd(inputField, c);\n\n\t\tc.gridy++;\n\t\tJButton debug = new JButton(\"Debug\");\n\t\tdebug.addActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tDebugPrinter.toggleDebug();\n\t\t\t}\n\n\t\t});\n\t\tadd(debug,c);\n\n\n\t\tpack();\n\n\n\t}", "public HomePage(){\r\n\tPageFactory.initElements(driver, this);\t\r\n\t}", "public abstract void addCustomPages();", "private final void createAppPages() {\r\n\t\t//Instantiate Page objects that have no associated test properties\r\n\t\t//Note that if a test DOES need to specify test properties for one of these pages\r\n\t\t// (e.g., search terms), it can create its own local version of the page, and pass\r\n\t\t// the pagePropertiesFilenameKey argument, OR create it here, by calling createPage\r\n\t\t// instead of createStaticPage\r\n\r\n\t\t//Can also instantiate regular (i.e., with associated test properties) DD-specific\r\n\t\t// Page objects here, but typically it is best for the test or utility methods to do that;\r\n\t\t// if we do it here we may end up creating Page objects that never get used.\r\n }", "public HomePage() \r\n\t{\r\n\t\tPageFactory.initElements(driver, this);\r\n\t\t\r\n\t}", "public BaseCatalog()\n {\n System.out.println(\"BaseCatalog: BaseCatalog() ... a new service created\");\n _environment = new Environment();\n _layout = new PageLayout();\n _layoutProj = new LayoutProject();\n _layoutProj.setRegisteredEnvironment(_environment);\n _layoutProj.setRegisteredLayout(_layout);\n }", "private void addCollection(String dir, Site site) throws Exception {\r\n\tContentCollectionEdit collection = null;\r\n\tString id = null;\r\n\r\n\tid = getSiteReference(site) + dir;\r\n\tid = id.substring(8) + \"/\";\r\n\tif (!collectionExist(id)) {\r\n\t collection = contentHostingService.addCollection(id);\r\n\t ResourcePropertiesEdit fileProperties =\r\n\t\t collection.getPropertiesEdit();\r\n\t fileProperties.addProperty(ResourceProperties.PROP_DISPLAY_NAME,\r\n\t\t dir);\r\n\t contentHostingService.commitCollection(collection);\r\n\t}\r\n }", "@Override\n public void getHomepageElementList() {\n String elementTypes = firebaseRemoteConfig.getString(Constants.FIREBASE_ELEMENT_LIST);\n List<String> elementTypeArray = Arrays.asList(elementTypes.split(\",\"));\n\n List<ElementView> elementViewList = new ArrayList<>();\n for (String elementType : elementTypeArray) {\n ElementView elementView = elementViewFactory.convert(elementType);\n if (elementView != null) {\n elementViewList.add(elementView);\n }\n }\n\n homepageView.setupElementViewAdapter(elementViewList);\n }", "Page createPage();", "private void producueViews() {\n if (splittedPostComponent != null && splittedPostComponent.size() > 0) {\n // loop through each component\n for (int i = 0; i < splittedPostComponent.size(); i++) {\n // create view if collection did not equal to empty string \"\"\n if (!splittedPostComponent.get(i).trim().equals(\"\")) {\n generateView(splittedPostComponent.get(i));\n }\n }\n }\n }", "public void addPages() {\n\t\t\n\t\tProjectUtils projectUtils = new ProjectUtils();\n\t\tIProject proj = projectUtils.getProject(selection);\n\t\t\n\t\t\n\t\t\n\t\tDb db = loadDBParams();\n\t\tDBConnection dbConn = new DBConnection();\n\t\tConnection connection = null;\n\t\t\n\t\t\n\t\ttry {\n\t\t\tconnection = dbConn.loadDriver(proj.getLocation()+\"/\"+db.getDriverClassPath(), db.getDriverClass(), db.getDatabaseURL(), db.getUserName(), db.getPassWord());\n\t\t} catch (MalformedURLException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InstantiationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalAccessException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\tpage = new SmartNewWizardPage(selection, connection, proj.getLocation().toString());\n\t\taddPage(page);\n\n\t}", "public Collection() {\n this.collection = new ArrayList<>();\n }", "public WECollection()\n {\n }", "public ChoosePagePresenter() {\n// mGetKnowledgeHierarchyDataFromNet = new GetKnowledgeHierarchyDataFromNet();\n dataManager = DataManager.getInstance();\n }", "public DocsAppHomePO ()\n\t{\n\t\tPageFactory.initElements(driver, this);\n\t}", "@Override\n public List<UpdatableItem> createPopup() {\n final List<UpdatableItem> items = new ArrayList<UpdatableItem>();\n \n /* host wizard */\n final MyMenuItem newHostWizardItem =\n new MyMenuItem(Tools.getString(\"EmptyBrowser.NewHostWizard\"),\n HOST_ICON,\n null,\n new AccessMode(ConfigData.AccessType.RO, false),\n new AccessMode(ConfigData.AccessType.RO, false)) {\n private static final long serialVersionUID = 1L;\n \n @Override\n public String enablePredicate() {\n return null;\n }\n \n @Override\n public void action() {\n final AddHostDialog dialog = new AddHostDialog(new Host());\n dialog.showDialogs();\n }\n };\n items.add(newHostWizardItem);\n Tools.getGUIData().registerAddHostButton(newHostWizardItem);\n return items;\n }", "public void addPages() {\n\t\twizardPage = new WizardNewProjectCreationPage(\n\t\t\"NewExampleComSiteProject\");\n\t\twizardPage.setDescription(\"Create a new Example.com Site Project.\");\n\t\twizardPage.setTitle(\"New Example.com Site Project\");\n\t\taddPage(wizardPage);\n\t}", "private void composeTwoot() {\n new ComposeTwootPage(details, client);\n }", "private void populateViewCollections() {\n\n\t}", "Collections() { return; }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "protected void creaPagine() {\n Pagina pag;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* crea la pagina e aggiunge campi e pannelli */\n pag = this.addPagina(\"generale\");\n\n pan = PannelloFactory.orizzontale(this);\n pan.add(Cam.data);\n pan.add(Cam.importo.get());\n pan.add(Cam.note.get());\n pag.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public PaginationComp() {\n }", "public interface CollectionCreator {\n\n /**\n * Creates a new collection instance to be populated by the binder.\n * \n * @param initialCapacity\n * The number of elements that will be added to the collection. To be\n * used with collections that can benefit from this information.\n * @return the newly created empty collection instance.\n */\n Collection<?> create(int initialCapacity);\n\n}", "@Override\r\n\tpublic void createControl(Composite parent) {\r\n\t\tpageBook = new PageBook(parent, SWT.NONE);\r\n\t\t\r\n\t\toutline = getViewer().createControl(pageBook);\r\n\t\tgetViewer().setContents(new Root(model));\r\n\t\tselectionSynchronizer.addViewer(getViewer());\r\n\t\t\r\n\t\toverview = new Canvas(pageBook, SWT.NONE);\r\n\t\tlws = new LightweightSystem(overview);\r\n\t\t\r\n IToolBarManager tbm = getSite().getActionBars().getToolBarManager();\r\n showOutlineAction = new Action() {\r\n public void run() {\r\n showPage(outline);\r\n }\r\n };\r\n showOutlineAction.setImageDescriptor(ImageDescriptor.createFromFile(\r\n \t\tDeploymentOutlinePage.class, \"icons/outline.gif\"));\r\n tbm.add(showOutlineAction);\r\n showOverviewAction = new Action() {\r\n public void run() {\r\n showPage(overview);\r\n }\r\n };\r\n showOverviewAction.setImageDescriptor(ImageDescriptor.createFromFile(\r\n \t\tDeploymentOutlinePage.class, \"icons/overview.gif\"));\r\n tbm.add(showOverviewAction);\r\n \r\n initializeOverview();\r\n \r\n showPage(outline);\r\n\t}", "private void createUIComponents() {\n this.removeAll();\n this.setLayout(new GridBagLayout());\n\n selectionListener = e -> update();\n\n categorySet_panel = new DataObject_DisplayList<>(database.getSchema(), CategorySet.class, new Full_Set<>(database, CategorySet.class), false, this);\n categorySet_panel.addControlButtons(new CategorySet_ElementController(database, this));\n categorySet_panel.getMainPanel().getListSelectionModel().addListSelectionListener(selectionListener);\n\n virtualCategory_set = new OneParent_Children_Set<>(VirtualCategory.class, null);\n virtualCategory_elementController = new VirtualCategory_ElementController(database, this);\n virtualCategory_panel = new DataObject_DisplayList<>(database.getSchema(), VirtualCategory.class, virtualCategory_set, false, this);\n virtualCategory_panel.addControlButtons(virtualCategory_elementController);\n virtualCategory_panel.getMainPanel().getListSelectionModel().addListSelectionListener(selectionListener);\n\n categoryToCategorySet_set = new OneParent_Children_Set<>(CategoryToCategorySet.class, null);\n categoryToCategorySet_elementController = new CategoryToCategorySet_ElementController(database, this);\n categoryToCategorySet_panel = new DataObject_DisplayList<>(database.getSchema(), CategoryToCategorySet.class, categoryToCategorySet_set, false, this);\n categoryToCategorySet_panel.addControlButtons(categoryToCategorySet_elementController);\n\n categoryToVirtualCategory_set = new OneParent_Children_Set<>(CategoryToVirtualCategory.class, null);\n categoryToVirtualCategory_elementController = new CategoryToVirtualCategory_ElementController(database, this);\n categoryToVirtualCategory_panel = new DataObject_DisplayList<>(database.getSchema(), CategoryToVirtualCategory.class, categoryToVirtualCategory_set, false, this);\n categoryToVirtualCategory_panel.addControlButtons(categoryToVirtualCategory_elementController);\n\n GridBagConstraints gridBagConstraints = new GridBagConstraints();\n gridBagConstraints.fill = GridBagConstraints.BOTH;\n gridBagConstraints.weightx = 1;\n gridBagConstraints.weighty = 1;\n gridBagConstraints.gridheight = 2;\n\n gridBagConstraints.gridx = 0;\n this.add(categorySet_panel, gridBagConstraints);\n\n gridBagConstraints.gridheight = 1;\n gridBagConstraints.gridx = 1;\n this.add(virtualCategory_panel, gridBagConstraints);\n\n gridBagConstraints.weighty = 2;\n this.add(categoryToCategorySet_panel, gridBagConstraints);\n\n gridBagConstraints.gridheight = 2;\n gridBagConstraints.weighty = 1;\n gridBagConstraints.gridx = 2;\n this.add(categoryToVirtualCategory_panel, gridBagConstraints);\n }", "public ContactPage() {\n\t\t\t\n\t\t\t\tPageFactory.initElements(driver, this);\n\t\t\t}", "private String renderCreatePage(Model model) {\n\t\tmodel.addAttribute(\"availableProviders\", providerService.getAllProviders());\n\t\treturn \"vm/create\";\n\t}", "private void createUIComponents() {\n }", "public PagePane() {\n instance = this;\n u = CommonUtil.getInstance();\n toolBar = ToolBar.getInstance();\n MsgBoard.getInstance().subscribe(this);\n generalModel = (GeneralModel) GeneralEditor.getInstance().getModel();\n gridModel = (GridModel) GridEditor.getInstance().getModel();\n model = new PageModel();\n mousePt = new Point(generalModel.getWidth() / 2, generalModel.getHeight() / 2);\n canvasWidth = Builder.CANVAS_WIDTH;\n canvasHeight = Builder.CANVAS_HEIGHT;\n this.addMouseListener(new MouseHandler());\n this.addMouseMotionListener(new MouseMotionHandler());\n this.addKeyListener(new DeleteKeyListener());\n this.setLocation(0, 0);\n this.setOpaque(true);\n this.setFocusable( true ); \n this.setBorder(BorderFactory.createLineBorder(Color.black));\n this.setVisible(true);\n bZoom = true;\n }", "public Home () {\n\t\t\n\t\tthis.isActiveListing = true;\n\t}", "public MethodLinkBuilderFactory<GamesCollectionThymeleafController> getCollectionLink() {\n return collectionLink;\n }", "public PersonalPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public boolean isHomeCollection();", "void createMainContent() {\n appContent = new DashboardMain(this);\n }", "public CalendarPage() {\n\t\t\n\t\tPageFactory.initElements(driver, this);\n\t}", "@RequestMapping(value = {\"/admin2543/view_components\"}, method = RequestMethod.GET)\n public String view_components(Model model) {\n List<Component> components = componentDAO.getAllComponents();\n \n model.addAttribute(\"component\", new Component());\n model.addAttribute(\"components\", components);\n model.addAttribute(\"componentGroups\", this.getComponentGroupNames());\n return \"admin2543/component\";\n }", "public void init() {\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tpageLists.add(new Page(i));\n\t\t}\n\t}", "public CollectionFragment() {\n }", "@Override\n public void createPageControls(Composite pageContainer) {\n fSelectionPage.createControl(pageContainer);\n }", "@Command\t\n\tpublic void menuClicked(@BindingParam(\"pagename\") String pagename)\n\t{\n\t\t\n\t\tVlayout vl=(Vlayout)Path.getComponent(\"/mainlayout\");\n\t\t//Scrollview s=(Scrollview)vl.getFellow(\"scvCenter\");\n\t\t//Executions.createComponents(pagename, s, null);\n\t\t\t\n\t}", "private ShowConferenceSectionsPage() {\n this.service = UserService.retrieve();\n this.validator = Validator.retrieve();\n }", "protected void clickOnCreerClient() {\n\t\t\t_currentPage = ((DoliNouveauTiersPage)_currentPage).clickOnCreerClient();\n\t\t}", "public ProjectsPage() {\n\t\tthis.driver = DriverManager.getDriver();\n\t\tElementFactory.initElements(driver, this);\n\t\t// sets the name of the project to add, with a random integer ending for slight\n\t\t// ease on multiple test runs\n\t\tnameOfProject = \"testz2018\" + (int) Math.random() * 500;\n\t}", "protected abstract <T> Collection<T> createCollection(Class<T> clazz);", "public PageView(WebFrameworkConfigElement webFrameworkConfiguration,\r\n ModelObjectService modelObjectService,\r\n ResourceService resourceService,\r\n RenderService renderService,\r\n TemplatesContainer templatesContainer)\r\n {\r\n super(webFrameworkConfiguration, \r\n modelObjectService, \r\n resourceService, \r\n renderService, \r\n templatesContainer);\r\n }", "public CollectionResource createCollection(String arg0)\n\t\t\tthrows NotAuthorizedException, ConflictException {\n\t\treturn null;\n\t}", "@Override\n\tprotected void createShell() {\n\t\tRectangle bounds = new Rectangle(100, 50, 600, 510);\n\t\tString shellTxt = \"Cohorts Report\";\n\t\tbuildShell(shellTxt, bounds);\n\t\t// create the composites\n\t\tcreateMyGroups();\n\t}", "public AdminContestListViewImp() {\n\t\tmyPanel = new JPanel();\n\t\tmyList = new ContestList();\t\n\t\t\n\t\tnewContestButton = new JButton(\"Create new contest\");\n\t\t\n\t\tmyPanel.setLayout(new BoxLayout(myPanel, BoxLayout.Y_AXIS));\n\t\t\n\t\tJPanel listContainerPanel = new JPanel();\n\t\tlistContainerPanel.setLayout(new BoxLayout(listContainerPanel, BoxLayout.Y_AXIS));\t\n\t\tlistContainerPanel.add(ContestList.getColumnTitleHeader());\n\t\tlistContainerPanel.add(new JScrollPane(myList));\n\t\t\n\t\tnewContestButton.setAlignmentX(Component.LEFT_ALIGNMENT);\n\t\tlistContainerPanel.setAlignmentX(Component.LEFT_ALIGNMENT);\n\t\t\n\t\tmyPanel.add(listContainerPanel);\n\t\tmyPanel.add(newContestButton);\n\t\t\n\t}", "@Override\n\tpublic void addPages() {\n\t\tthis.mainPage = new SNLFilePage(this.workbench, this.selection);\n\t\tthis.addPage(this.mainPage);\n\t}", "private void $$$setupUI$$$() {\n createUIComponents();\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel.setForeground(new Color(-1));\n sectionTitle = new JLabel();\n Font sectionTitleFont = this.$$$getFont$$$(\"Droid Sans\", Font.BOLD, 18, sectionTitle.getFont());\n if (sectionTitleFont != null) sectionTitle.setFont(sectionTitleFont);\n this.$$$loadLabelText$$$(sectionTitle, ResourceBundle.getBundle(\"language\").getString(\"title_resources\"));\n panel.add(sectionTitle, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_NORTH, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel.add(scrollPane1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final DefaultListModel defaultListModel1 = new DefaultListModel();\n resourceList.setModel(defaultListModel1);\n resourceList.setSelectionMode(1);\n scrollPane1.setViewportView(resourceList);\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n panel.add(panel1, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n publishButton = new JButton();\n publishButton.setEnabled(false);\n this.$$$loadButtonText$$$(publishButton, ResourceBundle.getBundle(\"language\").getString(\"button_publishResource\"));\n panel1.add(publishButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n pullButton = new JButton();\n pullButton.setEnabled(false);\n this.$$$loadButtonText$$$(pullButton, ResourceBundle.getBundle(\"language\").getString(\"button_pullResource\"));\n panel1.add(pullButton, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "@Override\n\tpublic void addPages() {\n\t\t_fileWizard = new NewPlotFilenameWizardPage(selection);\n\t\t_scaleWizard = new ScaleWizardPage(selection);\n\t\t_coastWizard = new CoastWizardPage(selection);\n\t\t_gridWizard = new GridWizardPage(selection);\n\n\t\t// check there's ETOPO data before we add the page\n\t\t_etopoWizard = new ETOPOWizardPage(selection);\n\n\t\taddPage(_fileWizard);\n\t\taddPage(_scaleWizard);\n\t\taddPage(_coastWizard);\n\t\taddPage(_gridWizard);\n\t\tif (_etopoWizard.isAvailable())\n\t\t\taddPage(_etopoWizard);\n\t}", "@Override\n public LiveWebModel[] getChildren() {\n return pages;\n }", "public void init(String collectionName) {\n\r\n }" ]
[ "0.67125803", "0.6128901", "0.5846923", "0.57947624", "0.56462026", "0.5619991", "0.5519215", "0.55119884", "0.54758644", "0.5432377", "0.5415398", "0.54115796", "0.5408872", "0.54004765", "0.5380499", "0.5356719", "0.535384", "0.53530955", "0.5345175", "0.5332043", "0.5332043", "0.5332043", "0.5332043", "0.5322025", "0.53069633", "0.52893406", "0.52872664", "0.5255545", "0.5247563", "0.5227874", "0.5219697", "0.521336", "0.5212329", "0.5210847", "0.5209587", "0.5203624", "0.5134547", "0.51299566", "0.5093305", "0.50915045", "0.50894666", "0.50829", "0.50710726", "0.5055763", "0.50514287", "0.5023964", "0.5008168", "0.5006825", "0.5000162", "0.49917758", "0.49917758", "0.49917758", "0.49917758", "0.49917758", "0.49917758", "0.49917758", "0.49917758", "0.49917758", "0.49917758", "0.49917758", "0.49917758", "0.49917758", "0.49917758", "0.49917758", "0.49917758", "0.49917758", "0.49917758", "0.49909672", "0.49847615", "0.49766147", "0.4976331", "0.4973434", "0.4971824", "0.4971166", "0.49661058", "0.49637985", "0.49635407", "0.49459818", "0.49393663", "0.49334496", "0.49258873", "0.49179775", "0.4915836", "0.491431", "0.49128142", "0.49098593", "0.49070537", "0.4906119", "0.4905423", "0.48925626", "0.48880017", "0.48792762", "0.48741952", "0.4873716", "0.48697263", "0.48645848", "0.48621622", "0.48574293", "0.4857167", "0.48535573" ]
0.66292834
1
Creates a new canvas.
DummyCanvas() { super(null); // super(null); ----------------ADDED TO COMPILE ----------------------------------------- }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void newCanvas() {\n\t\timgCanvas = new ImageCanvas(1000, 563);\n\t\t//canvasJP.add(imgCanvas);\n\t}", "private void createCanvasAndFrame(){\n image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n canvas = new Canvas();\n Dimension dimension = new Dimension((int)(width*scale), (int)(height*scale));\n canvas.setPreferredSize(dimension);\n canvas.setMaximumSize(dimension);\n canvas.setMinimumSize(dimension);\n\n frame = new JFrame(title);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setLayout(new BorderLayout());\n frame.add(canvas, BorderLayout.CENTER);\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setResizable(false);\n frame.setVisible(true);\n\n canvas.createBufferStrategy(2);\n bufferStrategy = canvas.getBufferStrategy();\n graphics = bufferStrategy.getDrawGraphics();\n }", "public Canvas(){\r\n\t\tsuper(new FlowLayout());\r\n\t\tthis.setPreferredSize(new Dimension(400, 400));\r\n\t\tthis.setBackground(Color.WHITE);\r\n\t}", "private Canvas createCanvas(IFramework framework, MouseListener listener) {\r\n\tCanvas canvas = new Canvas(framework);\r\n\tcanvas.setBackground(Color.white);\r\n\tcanvas.addMouseListener(listener);\r\n\treturn canvas;\r\n }", "private JPanel createCanvas() {\n return new JPanel() {\n\n @Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n element.drawMe((Graphics2D) g);\n }\n\n };\n }", "public ImageCanvas() {\r\n super();\r\n }", "public Canvas(int width, int height) {\n if(width<=0) {\n throw new IllegalArgumentException(\"Width cannot be less than or equal to zero\");\n } else if(height<=0) {\n throw new IllegalArgumentException(\"Height cannot be less than or equal to zero\");\n }\n this.width = width;\n this.height = height;\n\n drawingArray = new char[height][width];\n for(int i=0; i<height; i++) {\n for(int j=0; j<width; j++) {\n drawingArray[i][j] = ' ';\n }\n }\n undoStack = new DrawingStack();\n redoStack = new DrawingStack();\n }", "private void createDisplay()\n {\n // Creates frame based off of the parameters passed in Display constructor\n frame = new JFrame(title); \n frame.setSize(width, height);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setResizable(false); \n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n // Creates the canvas that is drawn on\n canvas = new Canvas();\n canvas.setPreferredSize(new Dimension(width,height));\n canvas.setMaximumSize(new Dimension(width,height));\n canvas.setMinimumSize(new Dimension(width,height));\n canvas.setFocusable(false);\n //add the canvas to the window\n frame.add(canvas);\n //pack the window (kinda like sealing it off)\n frame.pack();\n }", "public Canvas(MainWindow main){\n super();\n this.setBounds(0, 0, Const.WINDOW_SIZE, Const.WINDOW_SIZE); //Seta o tamanho do canvas\n this.init(); //Chama as threads\n }", "private static void createCanvas(String[] input) throws NumberFormatException, IncorrectParametersException{\n if (input.length == 3){\n try{\n int w = Integer.parseInt(input[1]); \n int h = Integer.parseInt(input[2]);\n // limit size to a reasonable number\n if ((w <=100) && (h <=100)){\n // Check if there is an active Canvas\n if (canvas != null){\n System.out.println(\"The old canvas is being replaced wiht the new one!\");\n }\n canvas = new Canvas(w, h);\n System.out.println(canvas.render());\n } else {\n System.out.println(\"HELP: Let w and h being of reasonable size!\");\n }\n } catch (NumberFormatException ex) {\n System.out.println(\"HELP: to create a canvas enter `C w h`, with w being the width and h being the height\");\n \n }\n } else {\n System.out.println(\"HELP: to create a canvas enter `C w h`, with w being the width and h being the height\");\n throw new IncorrectParametersException(\"\");\n }\n }", "Canvas(int width, int height){\n\t\tthis.components = new ArrayList<Component>();\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t}", "private static void setupWindow() {\n window.setSize((2 * WINDOW_MARGINS) + (CELL_SIZE * SIZE_X), (2 * WINDOW_MARGINS) + (CELL_SIZE * SIZE_Y));\n window.add(canvas);\n window.setVisible(true);\n window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n canvas.createBufferStrategy(2);\n }", "public Canvas canvas() {\n Canvas canvas = new Canvas(getLowerBound(), getUpperBound());\n canvas.add(this);\n return canvas;\n }", "public Canvas (Dimension size) {\r\n // set size (a bit of a pain)\r\n setPreferredSize(size);\r\n setSize(size);\r\n // prepare to receive input\r\n setFocusable(true);\r\n requestFocus();\r\n setInputListeners();\r\n }", "public CanvasPanel( )\n {\n // make this canvas panel listen to mouse\n addMouseListener(new PointListener());\n addMouseMotionListener(new PointListener());\n\n setBackground(Color.BLACK);\n }", "@Override\n\tpublic void create() {\n\t\t// This should come from the platform\n\t\theight = platform.getScreenDimension().getHeight();\n\t\twidth = platform.getScreenDimension().getWidth();\n\n\t\t// create the drawing boards\n\t\tsb = new SpriteBatch();\n\t\tsr = new ShapeRenderer();\n\n\t\t// Push in first state\n\t\tgsm.push(new CountDownState(gsm));\n//\t\tgsm.push(new PlayState(gsm));\n\t}", "public static vtkCanvas createDummyCanvas(vtkActor actor)\n\t{\n\t\tfinal vtkCanvas canvas = new vtkCanvas()\n\t\t{\n\n\t\t\t/** Workaround for http://www.vtk.org/Bug/view.php?id=6268 */\n\t\t\t@Override\n\t\t\tpublic void setSize(int x, int y)\n\t\t\t{\n\t\t\t\tsuper.setSize(x, y);\n\t\t\t\tLock();\n\t\t\t\trw.SetSize(x, y);\n\t\t\t\tiren.SetSize(x, y);\n\t\t\t\tiren.ConfigureEvent();\n\t\t\t\tUnLock();\n\t\t\t}\n\t\t};\n\t\t// a renderer for the data\n\t\tfinal vtkRenderer ren1 = canvas.GetRenderer();\n\n\t\tren1.AddActor(actor);\n\t\t// background color white\n\t\tren1.SetBackground(1, 1, 1);\n\t\t// Make the canvas resizable with a splitter\n\t\t//layout\n\t\tcanvas.setMinimumSize(new Dimension(0, 0));\n\t\tcanvas.setPreferredSize(new Dimension(0, 0));\n\t\tren1.ResetCamera();\n\t\treturn canvas;\n\t}", "public Graphics create()\r\n\t{\r\n\t\t// System.out.println(\"create\");\r\n\t\treturn null;\r\n\t}", "public SignalCanvas() {\n\t\tsuper();\n\t}", "DrawingCanvas() {\n super();\n\n // ArrayList to hold all shape objects\n shapes = new ArrayList<>();\n\n // ArrayList to hold all point objects\n points = new ArrayList<>();\n\n // Initialize colour arrays\n lineColours = new ArrayList<>();\n fillColours = new ArrayList<>();\n\n lineColours.add(Color.black);\n fillColours.add(null);\n\n clickStatus = true;\n activeTool = 1;\n this.addMouseListener(this);\n this.addMouseMotionListener(new MouseMotionAdapter() {\n public void mouseDragged(MouseEvent e) {\n endDrag = new Point(e.getX(), e.getY());\n repaint();\n }\n });\n\n // Initialize the WriteVec object, so it can be written to\n writeFile = new WriteVec();\n\n // Initialize the ShapeCreator object\n newShape = new ShapeCreator();\n\n // Set colours\n currentFillColour = null;\n currentPenColour = Color.BLACK;\n }", "public Graphics2D createGraphics() {\n\treturn recorder.createGraphics();\n }", "public void draw(Canvas canvas);", "public void draw(Canvas canvas);", "public static void create() {\r\n render();\r\n }", "public static VecCanvas getCanvas(){\n if (instance == null)\n instance = new VecCanvas();\n return instance;\n }", "private VecCanvas(){\n MouseAdapter mouse = new CanvasMouse();\n this.addMouseListener(mouse);\n this.addMouseMotionListener(mouse);\n setupKeyBindings();\n }", "public MenuCanvas() {\n\n //CR 14694\n imageDisplay = new ImageDisplay();\n iCaptureImage = new CaptureImageAudio(this);\n iImageMenu = new CustomMenu(this);\n\n //#if KEYPAD\n //|JG|iKeyHandler = ObjectBuilderFactory.getKeyHandler();\n //|JG|iKeyHandler.setCanvasHandler(this);\n //#endif\n iCustomPopup = new CustomPopup(this);\n iMenu = new CustomMenu(this);\n \n bannerHandler = new CustomBanner(this);\n textboxSize = (short)(8 + CustomCanvas.font.getHeight());\n }", "public CanvasAWT(Graphics2D graphic){\r\n\t\ttarget = graphic;\r\n\t}", "@Test\n public void testAddCanvasForManjushaDC() throws IOException {\n String value = \"Hello!\";\n float width = 100;\n float height = 20;\n float linePos = 2;\n float left = 200;\n float bottom = 700;\n\n File DEST = new File(RESULT_FOLDER, \"AddCanvasForManjushaDC.pdf\");\n\n try ( PdfDocument pdfDoc = new PdfDocument(new PdfWriter(DEST)) ) {\n PdfFormXObject pdfFormXObject = new PdfFormXObject(new Rectangle(width, height));\n try (Canvas canvas = new Canvas(pdfFormXObject, pdfDoc)) {\n canvas.showTextAligned(value, width/2, linePos, TextAlignment.CENTER);\n }\n\n PdfPage page = pdfDoc.addNewPage();\n PdfCanvas pdfCanvas = new PdfCanvas(page);\n pdfCanvas.addXObject(pdfFormXObject, left, bottom);\n }\n }", "public Canvas() throws MalformedURLException, IOException{ \n \n try {\n // 525 x 525\n imagen = ImageIO.read(new File(pathImages + \"macawP5.jpg\"));\n \n // 100 x 85\n logo = ImageIO.read(new File(pathImages + \"logoP5.png\"));\n \n this.setPreferredSize(new Dimension(imagen.getWidth(), imagen.getHeight()));\n } catch (IOException ex) {\n Logger.getLogger(Canvas.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public BufferedCanvas(int width, int height)\n {\n\tthis.width = width;\n\tthis.height = height;\n\tsetSize(width,height);\n }", "private void createDrawingView() {\r\n mDrawingView = new DrawingView(mContext);\r\n LinearLayout mDrawingPad = (LinearLayout) findViewById(R.id.drawing_pad);\r\n mDrawingPad.addView(mDrawingView);\r\n }", "public void start() {\n\t\tcanvas.createBufferStrategy(2);\n\t\tbuffer = canvas.getBufferStrategy();\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "protected Drawing createDrawing() {\n return new StandardDrawing();\n }", "public Window() {\n initComponents();\n setTitle(\"Clash of Asteroids 1J\");\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n setResizable(false);\n setLocationRelativeTo(null);\n canvas = new Canvas();\n keyBoard = new KeyBoard();\n mouseInput = new MouseInput();\n canvas.setPreferredSize(new Dimension(Constants.WIDTH, Constants.HEIGHT));\n canvas.setMaximumSize(new Dimension(Constants.WIDTH, Constants.HEIGHT));\n canvas.setMinimumSize(new Dimension(Constants.WIDTH, Constants.HEIGHT));\n canvas.setFocusable(true);\n add(canvas);\n canvas.addKeyListener(keyBoard);\n addKeyListener(keyBoard);\n canvas.addMouseListener(mouseInput);\n addMouseListener(mouseInput);\n canvas.addMouseMotionListener(mouseInput);\n addMouseMotionListener(mouseInput);\n setVisible(true);\n }", "GameCanvas getCanvas();", "public CreateLineCanvas(CanvasApp canvasApp) {\n\t\tthis.cmdAppliedCanvas=canvasApp;\n\t}", "public FacePamphletCanvas() {\n\t}", "public static void main(String[] a) {\n JFrame frame = new JFrame();\n frame.setSize(400, 400);\n frame.add(new Canvas());\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setVisible(true);\n }", "public void start() {\n\t\t\n\t\t/*\n\t\t * This is the main JFrame that everything will be placed on. \n\t\t * The size is set to a maximum value, and made unresizable to make repainting easier to achieve.\n\t\t */\n\t\tJFrame frame = new JFrame(\"Paint\");\n\t\tframe.setSize(Canvas.getMaxWindowSize(), Canvas.getMaxWindowSize());\n\t\tframe.setResizable(false);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\t/*\n\t\t * The mainPanel is the panel on which all the other panels will be organized.\n\t\t * It uses a BorderLayout to divide the panel into 5 possible areas: North, South, West, East, and Center.\n\t\t */\n\t\tJPanel mainPanel = new JPanel(new BorderLayout());\n\t\tframe.add(mainPanel);\n\t\t\n\t\t/*\n\t\t * The canvas is added to the center of the mainPanel.\n\t\t */\n\t\tCanvas canvas = new Canvas();\n\t\tmainPanel.add(canvas, BorderLayout.CENTER);\n\t\t\n\t\t/*\n\t\t * The topToolPanel is a JPanel that will also use a BorderLayout to organize items placed upon it.\n\t\t * It is placed in the North portion of the mainPanel.\n\t\t */\n\t\tJPanel topToolPanel = new JPanel(new BorderLayout());\n\t\tmainPanel.add(topToolPanel, BorderLayout.NORTH);\n\t\t\n\t\t/*\n\t\t * The shapeToolsPanel is JPanel on which all the buttons for different shapes will be placed. \n\t\t * It is placed in the West portion of the topToolPanel.\n\t\t */\n\t\tJPanel shapeToolsPanel = new JPanel();\n\t\ttopToolPanel.add(shapeToolsPanel, BorderLayout.WEST);\n\t\t\n\t\t/*\n\t\t * The usefulToolPanel will hold buttons for options like \"Fill\" or \"No Fill\", as well as our \"Undo\" button.\n\t\t */\n\t\tJPanel usefulToolPanel = new JPanel();\n\t\ttopToolPanel.add(usefulToolPanel, BorderLayout.EAST);\n\t\t\n\t\t/*\n\t\t * Each of the next five buttons added represent an option to choose a certain shape to draw.\n\t\t * They all get added to the shapeToolsPanel from left to right.\n\t\t */\n\t\tJButton rectButton = new JButton(\"Rectangle\");\n\t\tshapeToolsPanel.add(rectButton);\n\t\trectButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"rectangle\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton circButton = new JButton (\"Circle\");\n\t\tshapeToolsPanel.add(circButton);\n\t\tcircButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"circle\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton triButton = new JButton (\"Triangle\");\n\t\tshapeToolsPanel.add(triButton);\n\t\ttriButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"triangle\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton lineButton = new JButton (\"Line\");\n\t\tshapeToolsPanel.add(lineButton);\n\t\tlineButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"line\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton penButton = new JButton (\"Pen\");\n\t\tshapeToolsPanel.add(penButton);\n\t\tpenButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeSelection(\"pen\");\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t/*\n\t\t * The following three buttons are useful tools for the program to use: the option to choose whether or not to fill shapes, and the undo option.\n\t\t * Each of these will be added to the usefulToolPanel, once again from right to left.\n\t\t */\n\t\tJButton fillButton = new JButton(\"Fill\");\n\t\tusefulToolPanel.add(fillButton);\n\t\tfillButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setIsFilled(true);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton outlineButton = new JButton(\"No Fill\");\n\t\tusefulToolPanel.add(outlineButton);\n\t\toutlineButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setIsFilled(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton increaseButton = new JButton (\"Increase width\");\n\t\tusefulToolPanel.add(increaseButton);\n\t\tincreaseButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setShapeThickness(Canvas.getShapeThickness() + 1);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton decreaseButton = new JButton (\"Decrease width\");\n\t\tusefulToolPanel.add(decreaseButton);\n\t\tdecreaseButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tCanvas.setShapeThickness(Canvas.getShapeThickness() - 1);\n\t\t\t\t}catch(IllegalArgumentException exception) {\n\t\t\t\t\tSystem.out.println(\"The shape thickness cannot be zero.\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton undoButton = new JButton (\"Undo\");\n\t\tusefulToolPanel.add(undoButton);\n\t\tundoButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tcanvas.undo();\n\t\t\t\t}catch(IndexOutOfBoundsException exception) {\n\t\t\t\t\tSystem.out.println(\"No item in shape list to undo.\");\n\t\t\t\t}\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t/*\n\t\t * The colorPanel is a JPanel which utilizes a GridLayout to organize buttons from the top to the bottom.\n\t\t * It is set up to have more rows than are actually filled to minimize the size of each button on it.\n\t\t */\n\t\tJPanel colorPanel = new JPanel(new GridLayout(defaultGridRows, defaultGridColumns, defaultGridPadding, defaultGridPadding));\n\t\tmainPanel.add(colorPanel, BorderLayout.WEST);\n\t\t\n\t\t/*\n\t\t * Each of the following buttons will be added to the colorPanel.\n\t\t * They will stack one on top of the other as the grid is set up to only have one column.\n\t\t * Additionally, the text portion of each button will be set to the color that the button is connected to.\n\t\t */\n\t\tJButton blackButton = new JButton (\"Black\");\n\t\tcolorPanel.add(blackButton);\n\t\tblackButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.black);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton yellowButton = new JButton (\"Yellow\");\n\t\tyellowButton.setForeground(Color.yellow);\n\t\tcolorPanel.add(yellowButton);\n\t\tyellowButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.yellow);\n\t\t\t}\n\t\t});\n\n\t\tJButton greenButton = new JButton (\"Green\");\n\t\tgreenButton.setForeground(Color.green);\n\t\tcolorPanel.add(greenButton);\n\t\tgreenButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.green);\n\t\t\t}\n\t\t});\n\n\t\tJButton blueButton = new JButton (\"Blue\");\n\t\tblueButton.setForeground(Color.blue);\n\t\tcolorPanel.add(blueButton);\n\t\tblueButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.blue);\n\t\t\t}\n\t\t});\n\n\t\tJButton magentaButton = new JButton (\"Magenta\");\n\t\tmagentaButton.setForeground(Color.magenta);\n\t\tcolorPanel.add(magentaButton);\n\t\tmagentaButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.magenta);\n\t\t\t}\n\t\t});\n\n\t\tJButton redButton = new JButton (\"Red\");\n\t\tredButton.setForeground(Color.red);\n\t\tcolorPanel.add(redButton);\n\t\tredButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.red);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton pinkButton = new JButton (\"Pink\");\n\t\tpinkButton.setForeground(Color.pink);\n\t\tcolorPanel.add(pinkButton);\n\t\tpinkButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCanvas.setColorSelection(Color.pink);\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tframe.setVisible(true);\n\t}", "public BufferedImage create() {\n checkDimensions();\n final BufferedImage image = createImage();\n getImagePainter().paint(image);\n return image;\n }", "public Canvas(IFramework framework) {\r\n\t this.framework = framework;\r\n\t this.data = framework.getData();\r\n\t this.maxRatio = framework.getDisplayMenu().getMaxRatioScale();\r\n\t this.minRatio = framework.getDisplayMenu().getMinRatioScale();\r\n\t}", "public LaserCanvas()\r\n\t{\r\n\t\tsuper();\r\n\t\t\r\n\t\tgame = new LaserTutor();\r\n\t\t\r\n\t\tgame.initialize( );\r\n\t}", "public CanvasElement(int width, int height, WatchViewStub stub){\n this.width = width;\n this.height = height;\n this.stub = stub;\n paint = new Paint();\n fillStyle = \"rgb(0,0,0)\";\n parseColors(fillStyle);\n\n lastX = 0;\n lastY = 0;\n\n bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n canvas = new Canvas(bitmap);\n canvas.drawColor(0xffffffff);\n\n }", "private void createChart() {\n\t\tchartSpace = CTChartSpace.Factory.newInstance();\n\t\tchart = chartSpace.addNewChart();\n\t\tCTPlotArea plotArea = chart.addNewPlotArea();\n\n\t\tplotArea.addNewLayout();\n\t\tchart.addNewPlotVisOnly().setVal(true);\n\n\t\tCTPrintSettings printSettings = chartSpace.addNewPrintSettings();\n\t\tprintSettings.addNewHeaderFooter();\n\n\t\tCTPageMargins pageMargins = printSettings.addNewPageMargins();\n\t\tpageMargins.setB(0.75);\n\t\tpageMargins.setL(0.70);\n\t\tpageMargins.setR(0.70);\n\t\tpageMargins.setT(0.75);\n\t\tpageMargins.setHeader(0.30);\n\t\tpageMargins.setFooter(0.30);\n\t\tprintSettings.addNewPageSetup();\n\t}", "private EnlargeCanvas() {\n }", "Sketch createSketch();", "void drawOnCanvas(@NonNull Canvas canvas) ;", "public Canvas getCanvas()\n {\n return canvas;\n }", "public GraphicsFactory() {\n\t\tsuper();\n\t}", "public void show() {\n\t\tJFrame frame = new JFrame(\"Canvas\");\r\n\r\n\t\tContainer content = frame.getContentPane();\r\n\t\t// set layout on content pane\r\n\t\tcontent.setLayout(new BorderLayout());\r\n\t\t// create draw area\r\n\t\tcanvas = new Canvas(dos, dis);\r\n\t\t\r\n\t\t\r\n\t\t// add to content pane\r\n\t\tcontent.add(canvas, BorderLayout.CENTER);\r\n\t\tJPanel controls = new JPanel();\r\n\t\tframe.addComponentListener(new ComponentListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void componentHidden(ComponentEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void componentMoved(ComponentEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void componentResized(ComponentEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t/*\tSystem.out.println(\"Frame size : \" + frame.getSize());\r\n\t\t\t\tSystem.out.println(\"Canvas size : \" + canvas.getSize());\r\n\t\t\t\tSystem.out.println(\"Control panel size : \" + controls.getSize());\r\n\t\t\t\tcanvas.validate();*/\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void componentShown(ComponentEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\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// create controls to apply colors and call clear feature\r\n\t\t/*JPanel controls = new JPanel();*/\r\n\r\n\t\tclearBtn.addActionListener(actionListener);\r\n\t\tblackBtn.addActionListener(actionListener);\r\n\t\tblueBtn.addActionListener(actionListener);\r\n\t\tgreenBtn.addActionListener(actionListener);\r\n\t\tredBtn.addActionListener(actionListener);\r\n\t\tmagentaBtn.addActionListener(actionListener);\r\n\t\tyellowBtn.addActionListener(actionListener);\r\n\r\n\t\t// add to panel\r\n\t\tcontrols.add(greenBtn);\r\n\t\tcontrols.add(blueBtn);\r\n\t\tcontrols.add(blackBtn);\r\n\t\tcontrols.add(redBtn);\r\n\t\tcontrols.add(magentaBtn);\r\n\t\tcontrols.add(yellowBtn);\r\n\t\tcontrols.add(clearBtn);\r\n\r\n\t\t// add to content pane\r\n\t\tcontent.add(controls, BorderLayout.NORTH);\r\n\r\n\t\tframe.setSize(600, 600);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t// show the swing paint result\r\n\t\tframe.setVisible(true);\r\n\t}", "public Canvas() {\n this.addGLEventListener(this);\n valuesB = new ArrayList<>();\n resultadoICPClasico = new ArrayList<>();\n }", "public BallGame() {\n\t\tmyCanvas = new Canvas(\"Ball Demo\", 600, 500, Color.WHITE);\n\t\tmyCanvas.setVisible(true);\n\t\t// Aufgabe 1: MouseListener registrieren\n\t\tmyCanvas.addMouseListener(new DartArrow());\t\t\n\t}", "@Override\n\tpublic CSSCanvas getCanvas() {\n\t\tif (targetMedium == null) {\n\t\t\treturn null;\n\t\t}\n\t\tif (canvases.containsKey(targetMedium)) {\n\t\t\treturn canvases.get(targetMedium);\n\t\t}\n\t\tCSSCanvas canvas;\n\t\tDeviceFactory df = getStyleSheetFactory().getDeviceFactory();\n\t\tif (df != null) {\n\t\t\tcanvas = df.createCanvas(targetMedium, this);\n\t\t\tcanvases.put(targetMedium, canvas);\n\t\t} else {\n\t\t\tcanvas = null;\n\t\t}\n\t\treturn canvas;\n\t}", "public Screen() {\r\n \r\n frame = new JFrame(\"Transmission\");\r\n frame.setSize(screen);\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setResizable(false);\r\n frame.setLocationRelativeTo(null);\r\n frame.setVisible(true);\r\n \r\n panel = new Canvas();\r\n panel.setPreferredSize(screen);\r\n panel.setMaximumSize(screen);\r\n panel.setMinimumSize(screen);\r\n panel.setFocusable(false);\r\n \r\n frame.add(panel);\r\n frame.pack();\r\n }", "public CanvasPanel() {\n\t \t\taddMouseListener(this);\n\t \t\taddMouseMotionListener(this);\n\t }", "public Canvas getCanvas() {\n return canvas;\n }", "@Override\n public void create() {\n shapeRenderer = new ShapeRenderer();\n }", "public Canvas getCanvas()\n\t{\n\t\treturn canvas;\n\t}", "public DrawHouse(){\r\n\t\tcanvas = new SketchPad(1000, 1000);\r\n\t\tpen = new DrawingTool(canvas);\r\n\t}", "public VectorGraphics2D createGraphics() {\n\t\treturn new VectorGraphics2D(new Graphics2DContext(), operations);\n\t}", "public EpsCanvas(GraphicsConfiguration gc) {\n\t\tsuper(gc);\n\t\tepsGraphics = new EpsGraphics2D();\n\t}", "public Canvas getCanvas(){\n return canvas;\n }", "public interface CanvasLite {\n public void drawRect(float l, float t, float r, float b, Paint paint);\n public void drawCircle(float x, float y, float r, Paint paint);\n public void drawColor(int color, PorterDuff.Mode mode);\n public void drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint);\n public void drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint);\n\n public void drawTo(Canvas drawCanvas, float left, float top, Paint paint, boolean dirtyOnly);\n public Bitmap toBitmap();\n public void recycleBitmaps();\n public int getWidth();\n public int getHeight();\n}", "public static void main(String[] args) {\n JFrame win = new JFrame(\"GraphicsDemo1\");\r\n win.setSize(800,600);\r\n win.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n GraphicsDemo1 canvas = new GraphicsDemo1();\r\n win.add( canvas );\r\n win.setVisible(true);\r\n }", "public BoardCanvas() {\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n int height1 = screenSize.height * 9 / 14;\n int remainNum = height1 % 9;\n int heightBoard = height1 - remainNum;\n setBounds(0, 0, heightBoard, heightBoard);\n GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();\n HashSet<String> availableNames = new HashSet();\n for (String name : env.getAvailableFontFamilyNames()) {\n availableNames.add(name);\n }\n for (String pf : preferredFonts) {\n if (availableNames.contains(pf)) {\n font = new Font(pf, Font.PLAIN, 20);\n break;\n }\n }\n }", "Frame createFrame();", "public DrawGUI() {\n\n\t\tthis.setTitle(\"Draw 0.2\");\n\t\tsetIconImage(Toolkit.getDefaultToolkit().getImage(\"img/logo.png\"));\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tdrawingContainer = new DrawingContainer();\n\t\tscrollpane = new JScrollPane(drawingContainer);\n\n\t\tcontroller = new DrawingController(this);\n\t\ttools = new ToolBox(controller);\n\t\tcontroller.newDrawing(new Dimension(500, 380));\n\n\t\t// statusBar = new StatusBar();\n\n\t\tgetContentPane().add(tools, BorderLayout.WEST);\n\t\tgetContentPane().add(scrollpane, BorderLayout.CENTER);\n\t\t// getContentPane().add(statusBar, BorderLayout.SOUTH);\n\n\t\tMenuListener mainMenuListener = new MenuListener(controller);\n\t\tJMenuBar mainMenu = new MainMenu(mainMenuListener);\n\t\tthis.setJMenuBar(mainMenu);\n\n\t\tpack();\n\t\tsetVisible(true);\n\n\t}", "private void makeGUI() {\n //Create the canvas and Components for GUI.\n canvas = new Canvas();\n\n canvas.setBounds(0, 0, getWidth(), getHeight());\n getContentPane().setBackground(DrawAttribute.whiteblue);\n searchArea = new JTextField();\n searchArea.setForeground(Color.GRAY);\n searchArea.setText(promptText);\n\n //Make the components for the frame.\n makeComponents();\n addComponentsToLayers();\n }", "public void createPainter(Painter painter);", "protected StandardDrawingView createDrawingView() {\n return new StandardDrawingView(this, 410, 370);\n }", "@Override\n protected void onSizeChanged(int w, int h, int oldw, int oldh)\n {\n super.onSizeChanged(w, h, oldw, oldh);\n //initialize canvas background\n canvasBitmap = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888);\n canvas = new Canvas(canvasBitmap);\n }", "public Canvas getCanvas() {\n\t\treturn canvas;\n\t}", "public GateCanvas(int type_param)\n {\n super();\n // setBackgroundColor( );\n type = type_param;\n inverted = false;\n // setSize(24, 24);\n setVisible(true);\n }", "public void create () {\n // TODO random generation of a ~100 x 100 x 100 world\n }", "Surface createSurface();", "Lab create(Context context);", "public void drawCanvas() {\n \n // Change the background color to match the state of the plotter\n if( plotter != null ) {\n int state = plotter.getState();\n switch(state) {\n case 0:\n background(33, 134, 248, 100);\n break;\n case 1:\n background(254, 26, 26, 100);\n break;\n case 2:\n background(28, 247, 12, 100);\n break;\n default:\n background(100);\n }\n } else {\n background(100);\n }\n\n // Draw the canvas rectangle\n translate(SCREEN_PADDING, SCREEN_PADDING);\n scale(screenScale * plotterScale);\n fill(255); \n rect(0, 0, MAX_PLOTTER_X, MAX_PLOTTER_Y);\n \n // Draw the grid\n if(DRAW_GRID) {\n stroke(210);\n int cols = MAX_PLOTTER_X / 100;\n int rows = MAX_PLOTTER_Y / 100;\n \n for(int i=0; i<cols; i++)\n line(i*100, 0, i*100, MAX_PLOTTER_Y);\n \n for(int i=0; i<rows; i++)\n line(0, i*100, MAX_PLOTTER_X, i*100);\n }\n \n // Draw the homing crosshairs\n strokeWeight(1);\n stroke(150);\n line(MAX_PLOTTER_X/2, 0, MAX_PLOTTER_X/2, MAX_PLOTTER_Y);\n line(0, MAX_PLOTTER_Y/2, MAX_PLOTTER_X, MAX_PLOTTER_Y/2);\n\n translate(dx, dy); \n \n // Draw the bounding box of the current shape\n if(DRAW_BOUNDING_BOX) {\n // Bounding box\n RPoint bounds[] = shape.getBoundsPoints();\n strokeWeight(5);\n stroke(255,0,0);\n line( bounds[0].x, bounds[0].y, bounds[1].x, bounds[1].y );\n line( bounds[1].x, bounds[1].y, bounds[2].x, bounds[2].y );\n line( bounds[2].x, bounds[2].y, bounds[3].x, bounds[3].y );\n line( bounds[3].x, bounds[3].y, bounds[0].x, bounds[0].y );\n \n // Center cross hairs\n RPoint center = shape.getCenter();\n line( center.x, bounds[0].y, center.x, bounds[0].y - 200 );\n line( center.x, bounds[3].y, center.x, bounds[3].y + 200 );\n line( bounds[0].x, center.y, bounds[0].x - 200, center.y );\n line( bounds[1].x, center.y, bounds[1].x + 200, center.y );\n }\n \n // Draw the SVG content\n strokeWeight(STROKE_WEIGHT);\n stroke(0);\n drawShape(shape);\n }", "public JVDraw() {\r\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\r\n\t\tsetLocation(250, 250);\r\n\t\tsetSize(500, 500);\r\n\t\tsetTitle(\"JVDraw\");\r\n\r\n\t\tsetLayout(new BorderLayout());\r\n\r\n\t\tJPanel toolbar = new JPanel(new FlowLayout(FlowLayout.LEFT));\r\n\r\n\t\tJColorArea jca = new JColorArea(Color.BLACK);\r\n\t\tJColorArea jca2 = new JColorArea(Color.WHITE);\r\n\r\n\t\ttoolbar.add(jca);\r\n\t\ttoolbar.add(jca2);\r\n\t\tShapeButtons sbg = new ShapeButtons(Shape.LINE);\r\n\t\ttoolbar.add(sbg);\r\n\t\tadd(toolbar, BorderLayout.NORTH);\r\n\r\n\t\tdrawingModel = new DrawingModelImpl();\r\n\t\tdrawingCanvas = new JDrawingCanvas(drawingModel);\r\n\r\n\t\tadd(drawingCanvas, BorderLayout.CENTER);\r\n\r\n\t\tdrawingModel.addDrawingModelListener(drawingCanvas);\r\n\t\tmouseCreator = new MouseCreator(drawingModel, jca, jca2, sbg);\r\n\t\tdrawingCanvas.addMouseListener(mouseCreator);\r\n\t\tdrawingCanvas.addMouseMotionListener(mouseCreator);\r\n\r\n\t\tlistModel = new DrawingObjectListModel(drawingModel);\r\n\t\tdrawingModel.addDrawingModelListener(listModel);\r\n\r\n\t\tadd(new DrawingObjectList(listModel), BorderLayout.EAST);\r\n\r\n\t\tJMenuBar menuBar = new JMenuBar();\r\n\t\tsetJMenuBar(menuBar);\r\n\t\tJMenu fileMenu = new JMenu(\"File\");\r\n\t\tmenuBar.add(fileMenu);\r\n\t\tfileMenu.add(new OpenAction(this));\r\n\t\tfileMenu.add(new SaveAction(this));\r\n\t\tfileMenu.add(new SaveAsAction(this));\r\n\t\tfileMenu.add(new ExportAction(this));\r\n\t\tfileMenu.add(new ExitAction(this));\r\n\r\n\t\tdrawingModel.addDrawingModelListener(new DrawingModelListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void objectsRemoved(DrawingModel source, int index0, int index1) {\r\n\t\t\t\tmodified = true;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void objectsChanged(DrawingModel source, int index0, int index1) {\r\n\t\t\t\tmodified = true;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void objectsAdded(DrawingModel source, int index0, int index1) {\r\n\t\t\t\tmodified = true;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tadd(new StatusBar(jca, jca2), BorderLayout.SOUTH);\r\n\t}", "public abstract void draw(Canvas canvas, int x, int y, int width, int height, Paint paint);", "public abstract void mo3998c(Canvas canvas);", "protected GraphicsContext() {\n\t}", "public ICanvas getDefaultCanvas() {\n\t\tif (defaultCanvas==null) {\n\t\t\ttry {\n\t\t\t\tdefaultCanvas = (ICanvas) getObjectInstance(\"com.console.springernature.paint.model.Canvas\");\n\t\t\t\tif (defaultCanvas!=null) {\n\t\t\t\t\tif (defaultDevice==null) {\n\t\t\t\t\t\tthis.getDefaultDevice();\n\t\t\t\t\t}\n\t\t\t\t\tif (defaultDevice!=null) {\n\t\t\t\t\t\tthis.getDefaultDevice();\n\t\t\t\t\t\tdefaultCanvas.assignDevice(defaultDevice);\n\t\t\t\t\t\tdefaultDevice.addCommandListener(defaultCanvas);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tlogger.warn(\"(Custom Event) Unable to associate the default device ...\");\n\t\t\t\t\t\tdefaultCanvas = null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (ClassCastException e) {\n\t\t\t\tlogger.error(\"(ClassCastException) Unable to instanziate the default canvas ...\", e);\n\t\t\t} catch (Throwable e) {\n\t\t\t\tlogger.error(\"(Generic Exception) Unable to instanziate the default canvas ...\", e);\n\t\t\t}\n\t\t}\n\t\treturn defaultCanvas;\n\t}", "Lab create();", "public void makeGraphic() {\n\t\tStdDraw.clear();\n\n\t\tfor (int i = 0; i < p.showArray.size(); i++) {\n\t\t\tStdDraw.setPenColor(0, 255, 255);\n\n\t\t\tStdDraw.circle(p.showArray.get(i).acquirePosition().x, p.showArray.get(i).acquirePosition().y,\n\t\t\t\t\tp.showArray.get(i).acquireSizeOfBody());\n\t\t\tStdDraw.setPenColor(StdDraw.GRAY);\n\n\t\t\tStdDraw.filledCircle(p.showArray.get(i).acquirePosition().x, p.showArray.get(i).acquirePosition().y,\n\t\t\t\t\tp.showArray.get(i).acquireSizeOfBody());\n\n\t\t}\n\t\tStdDraw.show();\n\t}", "public void createNodeUsingExistingClasses() {\n final PLayer layer = getCanvas().getLayer();\n layer.addChild(PPath.createEllipse(0, 0, 100, 100));\n layer.addChild(PPath.createRectangle(0, 100, 100, 100));\n layer.addChild(new PText(\"Hello World\"));\n\n // Here we create an image node that displays a thumbnail\n // image of the root node. Note that you can easily get a thumbnail\n // of any node by using PNode.toImage().\n final PImage image = new PImage(layer.toImage(300, 300, null));\n layer.addChild(image);\n }", "public static void createDisplay() {\n ContextAttribs attribs = new ContextAttribs(3, 2).withForwardCompatible(true)\n .withProfileCore(true);\n\n try {\n if (!goFullscreen) {\n Display.setDisplayMode(new DisplayMode(WIDTH, HEIGHT));\n } else {\n Display.setFullscreen(true);\n }\n Display.create(new PixelFormat(), attribs);\n Display.setVSyncEnabled(true);\n Display.setTitle(\"Our First Display!\");\n GL11.glEnable(GL13.GL_MULTISAMPLE);\n } catch (LWJGLException e) {\n e.printStackTrace();\n }\n\n GL11.glViewport(0, 0, Display.getWidth(), Display.getHeight());\n lastFrameTime = getCurrentTime();\n }", "public void set3DCanvas(final SimplePassCanvasImpl impl) {\n \t\t// -------------GL STUFF------------------\n \n \t\t// make the canvas:\n \t\tdisplay = DisplaySystem.getDisplaySystem(\"lwjgl\");\n \t\tdisplay.setMinDepthBits(24);\n \t\tdisplay.setMinStencilBits(8);\n \t\tdisplay.setMinAlphaBits(8);\n \t\tdisplay.setMinSamples(2);\n \t\tdisplay.registerCanvasConstructor(\"AWT\", LWJGLAWTCanvasConstructor.class);\n \t\tfinal Canvas comp = (Canvas)display.createCanvas(1024, 768);\n \t\tcanvas = comp;\n \n \t\t// add a listener... if window is resized, we can do something about it.\n \t\tcomp.addComponentListener(new ComponentAdapter() {\n \n \t\t\t@Override\n \t\t\tpublic void componentResized(ComponentEvent ce) {\n \t\t\t\timpl.resizeCanvas(comp.getWidth(), comp.getHeight());\n \t\t\t}\n \t\t});\n \t\tKeyInput.setProvider(KeyInput.INPUT_AWT);\n \t\tKeyListener kl = (KeyListener) KeyInput.get();\n \t\tcomp.addKeyListener(kl);\n \t\tAWTMouseInput.setup(comp, false);\n \n \t\t// Important! Here is where we add the guts to the panel:\n \n \t\tJMECanvas jmeCanvas = ((JMECanvas) comp);\n \t\tjmeCanvas.setImplementor(impl);\n \t\tjmeCanvas.setUpdateInput(true);\n \n \t\tviewPanel.add(comp, BorderLayout.CENTER);\n \t}", "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 }", "void clearCanvasAndDraw()\n {\n \tlauncher.clearRect(0, 0, launcherCanvas.getWidth(), launcherCanvas.getHeight());\n \tdrawLauncher(angle);\n \tcanvas.clearRect(0, 0, mainCanvas.getWidth(), mainCanvas.getHeight());\n \tdrawSky();\n \tdrawGrass();\n }", "public GreetingCardCanvas(){\n array = new ArrayList<>();\n //Winter background\n array.add(new Square(0, 0, 256, 768,new Color(123, 165, 248)));\n array.add(new Square(0, 700, 256, 68, new Color(255,250,250)));\n //Autumn background\n array.add(new Square(256, 0, 256, 768,new Color(162, 163, 3)));\n array.add(new Square(256, 700, 256, 68, new Color(218,165,32)));\n //Spring background\n array.add(new Square(512, 0, 256, 768,new Color(0, 255, 127)));\n array.add(new Square(512, 700, 256, 68, new Color(124, 252, 0)));\n //Summer background\n array.add(new Square(768, 0, 256, 768,new Color(202,238,249)));\n array.add(new Square(768, 700, 256, 68, new Color(249, 209, 153)));\n //Sun\n array.add(new Sun (974, -50, 100, new Color(255, 170, 0),new Color(255, 195, 77)));\n //Winter Trunk\n array.add(new Trunk(120, 720, new Color(160, 82, 45)));\n //Autumm Trunk\n array.add(new Trunk(376, 720, new Color(160, 82, 45)));\n //Spring Trunk\n array.add(new Trunk(632, 720, new Color(160, 82, 45)));\n //Summer Trunk\n array.add(new Trunk(888, 720, new Color(160, 82, 45)));\n //Summer Leaves\n array.add(new Leaves(968, 600, Color.GREEN));\n //Spring Leaves\n array.add(new Leaves(712, 600, new Color(255, 183, 197)));\n //Autumn Leaves\n array.add(new Leaves(456, 600, new Color(218, 120, 27)));\n //Falling Autumn Leaves\n array.add(new Leaf(440, 650, new Color(218, 120, 27)));\n array.add(new Leaf(456, 700, new Color(218, 120, 27)));\n array.add(new Leaf(300, 680, new Color(218, 120, 27)));\n array.add(new Leaf(356, 710, new Color(218, 120, 27)));\n array.add(new Leaf(330, 650, new Color(218, 120, 27)));\n //Winter Snow\n array.add(new Snow(50, 50, 10, Color.WHITE));\n array.add(new Snow(123, 400, 10, Color.WHITE));\n array.add(new Snow(90, 90, 10, Color.WHITE));\n array.add(new Snow(100, 340, 10, Color.WHITE));\n array.add(new Snow(200, 200, 10, Color.WHITE));\n array.add(new Snow(140, 100, 10, Color.WHITE));\n array.add(new Snow(80, 200, 10, Color.WHITE));\n array.add(new Snow(60, 250, 10, Color.WHITE));\n array.add(new Snow(210, 250, 10, Color.WHITE));\n //Summer Clouds\n array.add(new Cloud(800, 20, 50, Color.WHITE));\n array.add(new Cloud(850, 120, 50, Color.WHITE));\n //Summer Birds\n array.add(new Bird(800, 100, 20, new Color(64,224,208), new Color(224,255,255)));\n array.add(new Bird(900, 70, 30, new Color(218,165,32), new Color(204,204,0)));\n //Beach ball\n array.add(new BeachBall(800, 710, 40));\n //Spring Flowers\n array.add(new Flowers(570, 720, 10, new Color(255, 183, 197)));\n array.add(new Flowers(610, 740, 10, new Color(255, 183, 197)));\n array.add(new Flowers(670, 720, 10, new Color(255, 183, 197)));\n array.add(new Flowers(720, 730, 10, new Color(255, 183, 197)));\n array.add(new Flowers(570, 520, 10, new Color(255, 183, 197)));\n array.add(new Flowers(610, 500, 10, new Color(255, 183, 197)));\n array.add(new Flowers(670, 530, 10, new Color(255, 183, 197)));\n array.add(new Flowers(720, 540, 10, new Color(255, 183, 197)));\n //More Winter Snow\n array.add(new Snow(123, 0, 10, Color.WHITE));\n array.add(new Snow(90, -310, 10, Color.WHITE));\n array.add(new Snow(100, -60, 10, Color.WHITE));\n array.add(new Snow(200, -200, 10, Color.WHITE));\n array.add(new Snow(140, -300, 10, Color.WHITE));\n array.add(new Snow(80, -200, 10, Color.WHITE));\n array.add(new Snow(60, -250, 10, Color.WHITE));\n array.add(new Snow(210, -250, 10, Color.WHITE));\n //The displayed text\n array.add(new Fonts());\n //Spring Clouds\n array.add(new Cloud(544, 20, 50, new Color(239,238,237)));\n array.add(new Cloud(594, 120, 50, new Color(239,238,237)));\n //Autumn Clouds\n array.add(new Cloud(288, 20, 50, new Color(224,223,221)));\n array.add(new Cloud(338, 120, 50, new Color(224,223,221)));\n //Winter Clouds\n array.add(new Cloud(32, 20, 50, new Color(168,167,165)));\n array.add(new Cloud(82, 120, 50, new Color(168,167,165)));\n //Autumn Flowers\n array.add(new AutumnLeaf(314, 720, 20, new Color(176, 101, 75)));\n array.add(new AutumnLeaf(354, 740, 20, new Color(176, 101, 75)));\n array.add(new AutumnLeaf(414, 720, 20, new Color(176, 101, 75)));\n array.add(new AutumnLeaf(464, 730, 20, new Color(176, 101, 75)));\n setPreferredSize(new Dimension(1024, 768));\n \n }", "public abstract void draw(java.awt.Graphics canvas);", "@Override\n\tpublic void create() {\n\t\twithdrawFrame = new JFrame();\n\t\tthis.constructContent();\n\t\twithdrawFrame.setSize(800,500);\n\t\twithdrawFrame.show();\n\t\twithdrawFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t}", "public void onModuleLoad() {\n\t\tcanvas = Canvas.createIfSupported();\n\n\t\tif (canvas == null) {\n\t\t\tRootPanel\n\t\t\t\t\t.get()\n\t\t\t\t\t.add(new Label(\n\t\t\t\t\t\t\t\"Sorry, your browser doesn't support the HTML5 Canvas element\"));\n\t\t\treturn;\n\t\t}\n\n\t\tcanvas.setStyleName(\"mainCanvas\");\n\t\tcanvas.setWidth(canvasWidth + \"px\");\n\t\tcanvas.setCoordinateSpaceWidth(canvasWidth);\n\n\t\tcanvas.setHeight(canvasHeight + \"px\");\n\t\tcanvas.setCoordinateSpaceHeight(canvasHeight);\n\n\t\tg = new Graph(canvas.getContext2d(), canvasWidth, canvasHeight);\n\n\t\ttxtExpression = new TextBox();\n\t\ttxtExpression.setText(\"R=5*SIN(4*T)\");\n\t\ttxtExpression.setWidth(\"400px\");\n\t\tbutDraw = new Button();\n\t\tbutDraw.setText(\"Draw\");\n\t\tbutDraw.addClickHandler(new ClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tString exp = txtExpression.getText().trim().toUpperCase();\n\t\t\t\tg.DrawAxis();\n\t\t\t\tif (exp.startsWith(\"Y=\"))\n\t\t\t\t\tg.DrawYX(clYellow, exp, -10, 10);\n\t\t\t\telse if (exp.startsWith(\"X=\"))\n\t\t\t\t\tg.DrawXY(clYellow, exp, -10, 10);\n\t\t\t\telse if (exp.startsWith(\"R=\"))\n\t\t\t\t\tg.DrawRT(clYellow, exp, -180, 180);\n\t\t\t\telse if (exp.startsWith(\"XT=\"))\n\t\t\t\t\tg.DrawYXT(clYellow, exp, -10, 10);\n\t\t\t\telse\n\t\t\t\t\tWindow.alert(\"Invalid expression!\");\n\t\t\t}\n\t\t});\n\t\tpanelInput = new HorizontalPanel();\n\t\tpanelInput.add(txtExpression);\n\t\tpanelInput.add(butDraw);\n\t\tRootPanel.get().add(panelInput);\n\n\t\tlabel = new Label(\n\t\t\t\t\"For example: Y=X*COS(X); R=T*T; X=Y*Y; XT=T*SIN(T)_YT=T*COS(T)...\");\n\t\tRootPanel.get().add(label);\n\n\t\tRootPanel.get().add(canvas);\n\n\t\tHTML html = new HTML(\n\t\t\t\t\"Source code: <a href='http://www.bk02.net/mobilemath'>http://www.bk02.net/mobilemath</a> - <a href='http://code.google.com/p/mobilemath/'>http://code.google.com/p/mobilemath/</a>\");\n\t\tRootPanel.get().add(html);\n\n\t\tg.DrawAxis();\n\t\tg.DrawRT(clYellow, \"R=5*SIN(4*T)\", -180, 180);\n\t}", "private void buildWindow(){\r\n\t\tthis.setSize(new Dimension(600, 400));\r\n\t\tFunctions.setDebug(true);\r\n\t\tbackendConnector = new BackendConnector(this);\r\n\t\tguiManager = new GUIManager(this);\r\n\t\tmainCanvas = new MainCanvas(this);\r\n\t\tadd(mainCanvas);\r\n\t}", "private void setUp()\n {\n path = new Path();\n drawPaint = new Paint();\n brushSize = getResources().getInteger(R.integer.medium_size);\n lastBrushSize = brushSize;\n //initialize paint color\n drawPaint.setColor(paintColor);\n drawPaint.setAntiAlias(true);\n drawPaint.setStrokeWidth(brushSize);\n drawPaint.setStyle(Paint.Style.STROKE);\n drawPaint.setStrokeJoin(Paint.Join.ROUND);\n drawPaint.setStrokeCap(Paint.Cap.ROUND);\n //initialize canvas background\n canvasPaint = new Paint(Paint.DITHER_FLAG);\n }", "private Parent create() {\n root.setPrefSize(600,600);\r\n\r\n for(int i = 0; i < 3; ++i) {\r\n for(int j = 0; j < 3; ++j) {\r\n Tile tile = new Tile();\r\n tile.setTranslateX(j * 200);\r\n tile.setTranslateY(i * 200);\r\n\r\n root.getChildren().add(tile);\r\n board[j][i] = tile;\r\n }\r\n }\r\n\r\n // horizontal strikes\r\n for(int i = 0; i < 3; ++i) {\r\n comboList.add(new Combination(board[0][i], board[1][i], board[2][i]));\r\n }\r\n\r\n // vertical strikes\r\n for(int j = 0; j < 3; ++j) {\r\n comboList.add(new Combination(board[j][0], board[j][1], board[j][2]));\r\n }\r\n\r\n // diagonal strikes\r\n comboList.add(new Combination(board[0][0], board[1][1], board[2][2]));\r\n comboList.add(new Combination(board[2][0], board[1][1], board[0][2]));\r\n\r\n return root;\r\n }", "static private Screen createScreen() {\n Screen test = new Screen();\n //These values below, don't change\n test.addWindow(1,1,64, 12);\n test.addWindow(66,1,64,12);\n test.addWindow(1,14,129,12);\n test.setWidthAndHeight();\n test.makeBoarders();\n test.setWindowsType();\n test.draw();\n return test;\n }", "public GameCanvas(Game game)\n\t{\n\t\tthis.game = game;\n\t\t\n\t\t// Set the sizes of this Canvas\n\t\tsetMinimumSize(new Dimension(WIDTH * SCALE, HEIGHT * SCALE));\n\t\tsetMaximumSize(new Dimension(WIDTH * SCALE, HEIGHT * SCALE));\n\t\tsetPreferredSize(new Dimension(WIDTH * SCALE, HEIGHT * SCALE));\n\t\t\n\t\t// Add the game's KeyboardHandler so keys can be detected\n\t\tthis.addKeyListener(game.getKeyboardHandler());\n\t\t// Add the game's MouseHandler so mouse clicks can be detected\n\t\tthis.addMouseListener(game.getMouseHandler());\n\t\tthis.addMouseMotionListener(game.getMouseHandler());\n\t\t\n\t\t// Add this GameCanvas to the main window\n\t\tgame.getWindow().add(this);\n\t\t\n\t\t// Place this GameCanvas at the proper location and size\n\t\tthis.setBounds(0, 0, game.getWindowX(), game.getWindowY());\n\t}", "public DrawingPane() {\n this.setBorder(new Border(new BorderStroke(Color.BLACK, BorderStrokeStyle.SOLID, CornerRadii.EMPTY, BorderWidths.DEFAULT)));\n this.setStyle(\"-fx-background-color : white\");\n\n color = new ObjectPropertyBase<Color>() {\n @Override\n public Object getBean() {\n return this;\n }\n\n @Override\n public String getName() {\n return \"Color\";\n }\n };\n\n thickness = new ObjectPropertyBase<Integer>() {\n @Override\n public Object getBean() {\n return this;\n }\n\n @Override\n public String getName() {\n return \"Thickness\";\n }\n };\n\n modifiable = new BooleanPropertyBase(true) {\n @Override\n public Object getBean() {\n return this;\n }\n\n @Override\n public String getName() {\n return \"Modifiability\";\n }\n };\n\n lastLine = new ObjectPropertyBase<DrawingInfos>() {\n @Override\n public Object getBean() {\n return this;\n }\n\n @Override\n public String getName() {\n return \"Last Line\";\n }\n };\n\n this.canvas = new Canvas();\n this.context = canvas.getGraphicsContext2D();\n this.drawingInfos = new DrawingInfos();\n this.lastLine.setValue(new DrawingInfos());\n this.lastLineList = new DrawingInfos();\n\n getChildren().add(canvas);\n initialize();\n }" ]
[ "0.7808967", "0.6802555", "0.6732072", "0.65732574", "0.6429308", "0.62448287", "0.6219191", "0.620461", "0.6066552", "0.601677", "0.60082996", "0.5934219", "0.5925883", "0.5907871", "0.5889345", "0.58467525", "0.5825078", "0.5790846", "0.57897854", "0.57682514", "0.57473224", "0.57369286", "0.57369286", "0.566159", "0.5650292", "0.56461114", "0.5635934", "0.5616157", "0.5598402", "0.5588121", "0.5569908", "0.555096", "0.55389786", "0.5514907", "0.5509776", "0.5505327", "0.5486305", "0.5465861", "0.5456763", "0.54341334", "0.542943", "0.54226637", "0.54220194", "0.54212964", "0.54191333", "0.5412281", "0.5411132", "0.540088", "0.53883034", "0.5385793", "0.5377384", "0.53710717", "0.5365495", "0.5335838", "0.52873164", "0.5258269", "0.5245883", "0.5238912", "0.5235761", "0.5233102", "0.52313745", "0.5230011", "0.522763", "0.5214997", "0.520372", "0.5194365", "0.51744324", "0.51572853", "0.51521444", "0.5144304", "0.51245105", "0.5123576", "0.5122198", "0.51198167", "0.5108053", "0.51019245", "0.5096243", "0.50855774", "0.5076005", "0.5070267", "0.50336874", "0.5028603", "0.5016823", "0.50133914", "0.5013142", "0.50083405", "0.50082886", "0.5004275", "0.5001913", "0.50003904", "0.49969319", "0.49808738", "0.49794766", "0.49743086", "0.49736136", "0.49706563", "0.49702418", "0.49680305", "0.49670547", "0.49599358" ]
0.5500089
36
Dummy method: ignores the repaint call.
public void repaint(Graphic graphic, Rectangle2D objectiveArea, Rectangle displayArea) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void repaint() {\r\n }", "public void repaint() {}", "public void requestRepaint() {\n }", "public void repaint() {\n\t\n}", "public void repaint() {\n\n\t}", "public abstract void forceRepaint();", "@Override\r\n\tpublic void repaint() {\n\t\tsuper.repaint();\r\n\t}", "@Override\r\n\tpublic void repaint() {\n\t\tsuper.repaint();\r\n\t}", "@Override\r\n public void repaint(Object canvas) {\r\n {\r\n }\r\n\t}", "@Override\n\tpublic void repaint() {\n\t\tsuper.repaint();\n\t}", "public void repaint();", "@Override\n public boolean shouldPaint() {\n return false;\n }", "protected void paintComponent(Graphics g)\n/* */ {\n/* 126 */ if ((this.painter != null) || (isNimbus()))\n/* */ {\n/* */ \n/* */ \n/* */ \n/* 131 */ if (isOpaque())\n/* */ {\n/* 133 */ paintComponentWithPainter((Graphics2D)g);\n/* */ }\n/* */ else {\n/* 136 */ paintPainter(g);\n/* 137 */ super.paintComponent(g);\n/* */ }\n/* */ }\n/* */ else {\n/* 141 */ super.paintComponent(g);\n/* */ }\n/* */ }", "@Override\n public void paint(Graphics g) {\n }", "@Override\n public void paintComponent(Graphics g) \n {\n super.paintComponent(g);\n doDrawing(g);\n }", "public void repaint( long tm ) {\n }", "public void paintImmediately() {\n apparatusPanel2.paintDirtyRectanglesImmediately();\n }", "@Override\n\tprotected void repaintView(ViewGraphics g) {\n\t}", "public void requestRepaintRequests() {\n }", "public void megarepaintImmediately() {\n paintDirtyRectanglesImmediately();\n }", "private void paint(){\n ;\n }", "@Override\n\tpublic void redraw() {\n\t\t\n\t}", "public void repaint(Rectangle r) {}", "@Override\r\n\t\tpublic void paint(Graphics g) {\n\t\t\tsuper.paint(g);\r\n\t\t}", "protected void paintComponent(Graphics g)\n\t{\n\t}", "@Override\r\n public void repaint(final Rectangle r) {\r\n }", "@Override\r\n\tpublic void paint(float deltaTime) {\n\t\t\r\n\t}", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public void repaint() {\n setBackground(Color.white);\n super.repaint();\n setVisible(true);\n\n }", "@Override\r\n public void repaint(final long tm, final int x, final int y, final int width, final int height) {\r\n }", "private void handleJavaPaintEvent() {\n // Skip all painting while layouting and all UPDATEs\n // while waiting for native paint\n// if (!isLayouting && !paintPending) {\n if (!isLayouting()) {\n targetPaintArea.paint(getTarget(), shouldClearRectBeforePaint());\n }\n }", "protected void repaint() {\n if (_tile!=null)\n _tile.repaint();\n }", "public void repaint(long tm, int x, int y, int width, int height) {}", "public void update(Graphics g, JComponent c)\n/* */ {\n/* 304 */ super.update(g, c);\n/* */ }", "private void forceRedraw(){\n postInvalidate();\n }", "@Override\r\n\tpublic void paint(Graphics g, JComponent c) {\n\t\tsuper.paint(g, c);\r\n\t}", "@Override \n\tpublic void update(Graphics g) \n\t{\n\t\tpaint(g); \n\t}", "public void doRepaint() {\n window.getApplication().doRepaint();\n }", "protected void paintComponentWithPainter(Graphics2D g)\n/* */ {\n/* 200 */ if (this.ui != null)\n/* */ {\n/* */ \n/* */ \n/* 204 */ Graphics2D scratchGraphics = (Graphics2D)g.create();\n/* */ try {\n/* 206 */ scratchGraphics.setColor(getBackground());\n/* 207 */ scratchGraphics.fillRect(0, 0, getWidth(), getHeight());\n/* 208 */ paintPainter(g);\n/* 209 */ this.ui.paint(scratchGraphics, this);\n/* */ }\n/* */ finally {\n/* 212 */ scratchGraphics.dispose();\n/* */ }\n/* */ }\n/* */ }", "@Override\n public void actionPerformed( ActionEvent actionEvent )\n {\n repaint(); // repaint animator\n }", "@Override\n public void paintComponent(Graphics g)\n {\n m_g = g;\n // Not sure what our parent is doing, but this seems safe\n super.paintComponent(g);\n // Setup, then blank out with white, so we always start fresh\n g.setColor(Color.white);\n g.setFont(null);\n g.clearRect(1, 1, this.getBounds().width, this.getBounds().height);\n g.fillRect(1, 1, this.getBounds().width, this.getBounds().height);\n g.setColor(Color.red);\n //g.drawRect(10,10,0,0);\n //drawPoint(20,20);\n \n // Call spiffy functions for the training presentation\n m_app.drawOnTheCanvas(new ExposedDrawingCanvas(this));\n m_app.drawOnTheCanvasAdvanced(g);\n \n // ADVANCED EXERCISE: YOU CAN DRAW IN HERE\n \n // END ADVANCED EXERCISE SPACE\n \n // Clear the special reference we made - don't want to abuse this\n m_g = null;\n \n \n // Schedule the next repaint\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n m_app.repaint();\n try\n {\n Thread.sleep(100);\n }\n catch (Exception e)\n { \n \n }\n }\n }); \n }", "private void paintPainter(Graphics g)\n/* */ {\n/* 165 */ if (this.painter == null) { return;\n/* */ }\n/* */ \n/* */ \n/* 169 */ Graphics2D scratch = (Graphics2D)g.create();\n/* */ try {\n/* 171 */ this.painter.paint(scratch, this, getWidth(), getHeight());\n/* */ }\n/* */ finally {\n/* 174 */ scratch.dispose();\n/* */ }\n/* */ }", "@Override\n public void update(Graphics g) {\n paint(g);\n }", "public final void windowRepaintOp() {\n super.defaultWindowRepaintOp();\n }", "@Override\n public void onPaint(Graphics2D g) {\n\n }", "@Override\r\n\tpublic void update() {\n\t\tthis.repaint();\r\n\t}", "protected void repaint(RMShape aShape) { if(_parent!=null) _parent.repaint(aShape); }", "public abstract void selfPaint(Graphics g);", "private void repaint() {\n\t\tclear();\n\t\tfor (PR1Model.Shape c : m.drawDataProperty()) {\n\t\t\tif(!c.getText().equals(defaultshape))\n\t\t\t\tdrawShape(c, false);\n\t\t}\n\t\tif (getSelection() != null) {\n\t\t\tdrawShape(getSelection(), true);\n\t\t}\n\t}", "public void draw() {\n\t\tsuper.repaint();\n\t}", "public void paintComponent(Graphics g);", "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n render(g);\n }", "@Override\n\tpublic void update(Observable o, Object arg) {\n\t\tthis.repaint(); // Schedule a call to paintComponent\n\t}", "protected final boolean shouldClearRectBeforePaint() {\n // TODO: sun.awt.noerasebackground\n return true;\n }", "@Override\n protected boolean isRepaintRequiredForRevalidating() {\n return false;\n }", "public void update(Graphics param1Graphics) {\n/* 252 */ paint(param1Graphics);\n/* */ }", "public void showNet()\n/* */ {\n/* 482 */ update(getGraphics());\n/* */ }", "@Override\r\n\tpublic void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\r\n\t\t\tthis.draw(g);\r\n\t\t\r\n\t\r\n\t}", "@Override\r\n\tpublic void paint(Graphics g) {\n\t\tsuper.paint(g);\r\n\t\trender(g);\r\n\t}", "public void requestRedraw() {\n\n this.getParent().repaint();\n\n }", "public void paintComponent(Graphics g)\r\n\t{\n\t}", "void paintComponent(Graphics g);", "protected void repaint()\n {\n // Update the contents if an update is needed.\n // Will only actually repaint if the contents are dirty.\n view.getEditor().getInteractionFigure().repaint();\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\r\n System.out.println(\"Repaint\");\r\n repaint();\r\n }", "@Override\r\n\tprotected void paintComponent(Graphics g) \r\n\t{\n\t\tsuper.paintComponent(g);\r\n\t\t\r\n\t\t// passes Graphics g into flappy\r\n\t\tflappy.flappybox.repaint(g); /// passes Graphics g into flappy\r\n\t}", "protected void doPaint(Graphics2D g, T component, int width, int height)\n/* */ {\n/* 353 */ for (Painter p : getPainters()) {\n/* 354 */ Graphics2D temp = (Graphics2D)g.create();\n/* */ try\n/* */ {\n/* 357 */ p.paint(temp, component, width, height);\n/* 358 */ if (isClipPreserved()) {\n/* 359 */ g.setClip(temp.getClip());\n/* */ }\n/* */ } finally {\n/* 362 */ temp.dispose();\n/* */ }\n/* */ }\n/* */ }", "public void partialRedraw()\r\n\t{\r\n\t\tg.clearRect(0,0,NumerateGame.WINDOW_X,NumerateGame.WINDOW_Y);\r\n\t}", "public void requestRepaint() {\n\t\tJWLC.nativeHandler().wlc_output_schedule_render(this.to());\n\t}", "public void draw(){\n super.repaint();\n }", "@Override //paint component is overridden to allow super.paintCompnent to be called\r\n public void paintComponent(Graphics g) {\n \tsuper.paintComponent(g); //The super.paintComponent() method calls the method of the parent class, prepare a component for drawing\r\n doDrawing(g); //The drawing is delegated inside the doDrawing() method\r\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e)\n\t{\n\t\trepaint();\n\t}", "public void actionPerformed(ActionEvent e) {\n \r\n \r\n repaint();\r\n }", "public void repaint() {\n if ( clock != null && clock.isPaused() ) {\n super.repaint();\n }\n }", "public void paint(Graphics g)\n/* */ {\n/* 100 */ Graphics2D g2d = (Graphics2D)g.create();\n/* */ try\n/* */ {\n/* 103 */ this.painter.paint(g2d, this.c, this.c.getWidth(), this.c.getHeight());\n/* */ } finally {\n/* 105 */ g2d.dispose();\n/* */ }\n/* */ }", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\trepaint();\r\n\t}", "public void paint (Graphics g)\r\n {\n }", "public void repaint() { if(_parent!=null) _parent.repaint(this); }", "@Override\n\tpublic void draw(Graphics g, JPanel panel) {\n\t\t\n\t}", "@Override\n\tpublic void draw(Graphics g) {\n\t\t\n\t}", "@Override\n\tpublic void draw(Graphics g) {\n\t\t\n\t}", "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n\n paintBackground(g);\n }", "public void actionPerformed(ActionEvent ae){\n if(waitingForRepaint){\n repaint();\n }\n }", "public abstract void paint(Graphics g);", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\trepaint();\r\n\r\n\t}", "@Override\n\tpublic void render(Graphics g)\n\t{\n\t}", "@Override\n protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) {\n }", "public void actionPerformed(ActionEvent ae) {\r\nrepaint();\r\n}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tthis.repaint();\n\t}", "public void paint(Graphics g) {\n\t\t\n\t}", "public void paint() {\n paintStrategy.paintImmediately();\n }", "public void paint(Graphics g) {\n }", "public void paint(Graphics g) {\n }", "@Override\n\tpublic void draw(Graphics canvas) {}", "private void clearPainting()\r\n\t{\r\n\t\tdockableDragPainter.clear();\r\n\t}", "protected void reDraw(){\n\t\tcontentPane.revalidate();\n\t\trepaint();\n\t}", "public void drawNonEssentialComponents(){\n\t\t\n\t}", "public void paint (Graphics g){\n \r\n }", "public void update(Graphics g){\n paint (g);\r\n \r\n }", "public void repaint()\n\t{\n\t\tif (game.getPlayerID() != game.getCurrentIdx())\n\t\t{\n\t\t\tthis.disable();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.enable();\n\t\t}\n\n\t\tthis.resetSelected();\n\t\tbigTwoPanel.repaint();\n\t}", "@Override\n protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY) {\n }" ]
[ "0.77222145", "0.7698593", "0.7539111", "0.7435218", "0.73742265", "0.73387307", "0.7315459", "0.7315459", "0.725717", "0.72390085", "0.714315", "0.7128269", "0.6964201", "0.6920186", "0.6875017", "0.68146807", "0.6806037", "0.6791129", "0.6741369", "0.6739287", "0.6723011", "0.67114764", "0.66653615", "0.6638644", "0.6628322", "0.6627131", "0.6619893", "0.66162163", "0.65794426", "0.65680766", "0.65060395", "0.6483274", "0.646083", "0.64574707", "0.6450245", "0.64445597", "0.6423044", "0.6420005", "0.6410728", "0.63977796", "0.6394317", "0.63862914", "0.6365931", "0.63559896", "0.6354972", "0.6327308", "0.6323176", "0.630851", "0.6303878", "0.62910247", "0.62864023", "0.6284804", "0.62843883", "0.6280717", "0.627702", "0.6276651", "0.62707263", "0.6269402", "0.62476057", "0.62251806", "0.62210745", "0.62193036", "0.62130195", "0.6212992", "0.6205427", "0.6202766", "0.6200813", "0.61746806", "0.61665046", "0.61640406", "0.61580974", "0.6157327", "0.6134448", "0.61341494", "0.61314166", "0.61293525", "0.61200523", "0.61178964", "0.60985994", "0.60985994", "0.6091073", "0.60800695", "0.60664785", "0.60641015", "0.60635656", "0.6056789", "0.6051037", "0.6045497", "0.60405636", "0.60350066", "0.6033856", "0.6033856", "0.603276", "0.6031918", "0.60197675", "0.6013624", "0.60087717", "0.5995937", "0.5992288", "0.5989232" ]
0.60956657
80
/Write a Java program to print the following pattern 1 2 3 4 5 6 7 1 2 3 4 5 6 1 2 3 4 5 1 2 3 4 1 2 3 1 2 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 4 5 6 1 2 3 4 5 6 7
public static void main(String[] args) { int cols=7; for(int i=1; i<=13; i++) { for(int j=1; j<=cols; j++) { System.out.print(j+" "); } System.out.println(); if(i<7) cols--; else cols++; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void pattern7(int input){\n\t\tfor(int i=1;i<=input;i++){\n\t\t\tfor(int j=1;j<=i;j++){\n\t\t\t\tSystem.out.print(j+\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void pattern6(int input){\n\t\tint counter=1;\n\t\tfor(int i=1;i<=input;i++){\n\t\t\tfor(int j=counter;j<=(i*(i+1)/2);j++){\n\t\t\t\tSystem.out.print(counter++ + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void pattern9(int input){\n\t\tfor(int i= 1;i <= input;i++){\n\t\t\tfor(int j=i;j<=input;j++){\n\t\t\t\tSystem.out.print(j+\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void pattern7(int n) {\r\n\r\n\t\tfor (int i = 1; i <= 7; i++) {\r\n\t\t\tfor (int j = 1; j <= i; j++) {\r\n\t\t\t\tSystem.out.print(j + \" \");\r\n\t\t\t}\r\n\t\t\tint temp = i;\r\n\t\t\tif (temp > 1 && temp<=7) {\r\n\t\t\t\tfor (int k = i - 1; k > 0; k--) {\r\n\t\t\t\t\tSystem.out.print(k + \" \");\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}", "public static void pattern10(int input){\n\t\tfor(int i= input;i >0;i--){\n\t\t\tfor(int j=i;j<=input;j++){\n\t\t\t\tSystem.out.print(j+\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void pattern12(int input){\n\t\tfor(int i= 1;i <= input;i++){\n\t\t\tfor(int j=i;j>1;j--){\n\t\t\t\tSystem.out.print(j+\" \");\n\t\t\t}\n\t\t\tfor(int k=1;k<=i;k++){\n\t\t\t\tSystem.out.print(k+\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void printPattern(int n){\n int c=1;\n for(int i=1;i<=(n+1)/2;i++){\n for(int j=1;j<=n;j++){\n System.out.print(c+\" \");\n c++;\n }\n c=c+n;\n System.out.println();\n }\n if(n%2==0)\n c=c-n;\n else\n c=c-3*n;\n for(int i=(n+1)/2;i<n;i++){\n for(int j=1;j<=n;j++){\n System.out.print(c+\" \");\n c++;\n }\n c=c-3*n;\n System.out.println();\n }\n\n\t}", "public static void pattern1(int input) {\n\n\t\tint c = 0;\n\t\tfor (int i = 1; i <= input; i++) {\n\t\t\tif (i % 2 != 0) {\n\t\t\t\tfor (int j = 0; j < input; j++) {\n\t\t\t\t\tc++;\n\t\t\t\t\tSystem.out.print(c + \" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t} else {\n\t\t\t\tc += input;\n\t\t\t\tfor (int j = c; j > c - input; j--) {\n\t\t\t\t\tSystem.out.print(j + \" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t}", "public void printNumberPattern1(int number) {\n\t\t//Outer loop for iterating till number times \n\t\tfor (int counter = 0; counter < number ; counter++ ) {\n\t\t\t//Inner loop for iterating and printing number pattern \n\t\t\tfor(int printNumber = number-counter ; printNumber <= number ; printNumber++ ) {\n\t\t\t\tSystem.out.print(printNumber);\n\t\t\t}\n\t\t\t\n\t\t\t//Moving to next line and incrementing count \n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}", "public static void main(String[] args)\r\n\t{\r\n\t\tSystem.out.println(\"1st pattern\");\r\n\t\tfor(int i=0;i<=8;i++)\r\n\t\t{\r\n\t\t\tfor(int j=i;j<8;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"\");\r\n\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*****\r\n\t\t******\r\n\t\t*******\r\n\t\t********\r\n\t\t */\r\n\t\tSystem.out.println(\"2nd pattern\");\r\n\t\tfor(int i=8;i>=0;i--)\r\n\t\t{\r\n\t\t\tfor(int j=i;j<8;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t/* for printing this pattern\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 *********\t\t */\r\n\t\tSystem.out.print(\"3rd pattern\");\r\n\t\tfor(int i=0;i<=8;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<=8;j++)\r\n\t\t\t{\r\n\t\t\t\tif(i<j || j<8-i)\r\n\t\t\t\t{\r\n\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{\r\n\t\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t/* for printing 4th pattern \r\n\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\tSystem.out.println(\"4th pattern\\n\\n\");\r\n\t\tfor(int i=8;i>=0;i--)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<=8;j++)\r\n\t\t\t{\r\n\t\t\t\tif(i<j || j<8-i)\r\n\t\t\t\t{\r\n\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{\r\n\t\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\" \");\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(\"5th pattern \");\r\n\t\tfor(int i=1;i<=10;i++)\r\n\t\t{\r\n\t\t\tfor(int j=1;j<=10;j++)\r\n\t\t\t{\r\n\t\t\t\tif(i<j || i==j)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t}\r\n\t\t\t\telse if(j>i || j<10-i)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tint q = 1;\n\t\tint\tw = 0;\n\t\tint n = 100;\n\n\t\tint[] array1 = new int[40];\n\t\tSystem.out.print(\"The pattern output is shown : \");\n\n\t\twhile (n > 0) {\n\t\t\tfor (int i = 0; i < 10; i++) {\n\t\t\t\tSystem.out.print(n);\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tarray1[w] = n;\n\t\t\t\tn = n-q;\n\t\t\t\tw++;\n\n\t\t\t}\n\t\t\tq++;\n\t\t}\n\n\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tfor(int i=1;i<6;i++)\n\t\t\t{\n\t\t\t\tfor(int j=1;j<=i;j++)\n\t\t\t\t\tSystem.out.print(i);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\n\t\t//pattern 1 23 456 789\n\t\tint k=1;\n\t\tfor(int i=0;i<4;i++)\n\t\t{\n\t\t\tfor(int j=0;j<=i;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(k);\n\t\t\t\tk++;\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\n\t}", "public static void main(String[] args) {\n System.out.println(\"1.)\");\n int i,j;\n int n=6;\n for(i =1;i<=n;i++){\n\n for(j=1;j<=n-i;j++){\n System.out.print(\" \");\n }\n for(j=1;j<=i;j++){\n System.out.print(\"* \");\n }\n System.out.println();\n }\n\n // pattern 2\n int num=1;\n System.out.println(\"2.)\");\n for(i =1;i<=n;i++){\n\n for(j=1;j<=n-i;j++){\n System.out.print(\" \");\n }\n for(j=1;j<=i;j++){\n System.out.print(num+\" \");\n num=num+2;\n }\n System.out.println();\n }\n //pattern3\n System.out.println(\"3.)\");\n int rows = 2*n-1;\n for(i=1;i<=rows;i++){\n\n if(i<=n) {\n for (j = 1; j <= i; j++) {\n System.out.print(\"* \");\n }\n }\n else{\n for (j=1;j<=rows-i+1;j++)\n {\n System.out.print(\"* \");\n }\n }\n System.out.println();\n\n }\n\n //pattern4\n System.out.println(\"4.)\");\n System.out.println(\"*\");\n\n for(i=2;i<=n-1;i++){\n System.out.print(\"* \");\n for(j=1;j<=i-2;j++){\n System.out.print(\" \");\n }\n System.out.print(\" *\");\n System.out.println();\n\n }\n for(i=1;i<=n;i++){\n System.out.print(\"* \");\n }\n }", "public static void main(String[] args) {\n\t\tint length = 9;\n\t\tint counter = 1;\n\t\t\tfor ( int x = (length+1)/2; x<=length;x++){\n\t\t\t\tfor (int j = x-counter; j>=0; j--){\n\t\t\t\t\t//System.out.println(\"j is \"+ j);\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tfor (int i =1;i<=counter;i++){\n\t\t\t\t\t\t\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println();\n\t\t\t\tcounter+=2;\n\t\t\t}\n\t\t\tcounter = length-2;\n\t\t\t\n\t\t\t// length = 9, counter is 7 , j = 1, i = 7, x=8\n\t\t\tfor ( int x = (length-1); x>=(length+1)/2; x--){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tfor (int j = 1; j<=x-counter; j++){\n\t\t\t\t\t//System.out.println(\"j is \"+ j);\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tfor (int i =counter;i>=1;i--){\n\t\t\t\t\t\t\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}\n\t\t\t\tcounter-=2;\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t}", "public static void main(String[] args) {\n\t\tint c = 7;\r\n\t\tfor(int i=1;i<=4;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<i;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(c+\" \");\r\n\t\t\t\tc++;\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t}", "public static void m7() {\r\n\tchar ch ='A';\r\n\tfor(int i=1;i<=5;i++) {\r\n\t\tfor(int j =1;j<=i;j++)\r\n\t\t{\r\n\t\t\tSystem.out.print(ch);\r\n\t\t}\r\n\t\tch++;\r\n\t\tSystem.out.println();\r\n\t}\r\n}", "public static void main(String[] args) {\r\n\t\t\r\n\t\tfor(int i = 1;i<= 7; i++)\r\n\t\t{\r\n\t\t\tfor(int j = 1;j<= i;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(j+\" \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\tfor(int i = 6; i>=1; i--)\r\n\t\t{\r\n\t\t\tfor(int j = 1;j<=i; j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(j+\" \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public static void m6() {\r\n\tfor(int i=1;i<=5;i++) {\r\n\t\t\r\n\t\tfor(int j=1;j<=(5-i);j++) {\r\n\t\tSystem.out.print(\" \");\t\r\n\t\t}\r\n\t\tchar ch ='A';\r\n\t\tfor(int k =1;k<=i;k++) {\r\n\t\t\tSystem.out.print(ch);\r\n\t\t\tch++;\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}\r\n}", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tint n = 7;\r\n\t\tfor (int i = n; i >= 0; i--) {\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t for(int j=0; j<n-i; j++) {\r\n\t\t\t \r\n\t\t\t System.out.print(\" \");\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\r\n\t\t\tfor (int j = n; j >= n-i; j--) {\r\n\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "public static void ninethProgram() {\n\t\tfor(int i=1;i<=4;i++) {\n\t\t\tfor(int j=4-1;j>=i;j--) {\n\t\t\t\tSystem.out.print(\" \");\t\n\t\t\t}for(int k=1;k<=4;k++) {\n\t\t\t\tSystem.out.print(\"*\");\t\t\n\t\t\t}System.out.println();\n\t\t}\n\t}", "public static void main(String[] args) {\n int n;\n int i = 1;\n Scanner sc= new Scanner(System.in);\n n = sc.nextInt();\n \n while(i<=n)\n {\n int spaces = 1;\n while(spaces<=n-i)\n {\n System.out.print(' ');\n spaces = spaces + 1;\n }\n int numb = 1;\n while(numb<=i)\n {\n System.out.print('*');\n numb = numb + 1;\n }\n int dec = i - 1;\n while(dec>=1)\n {\n System.out.print('*');\n dec = dec - 1;\n }\n System.out.println();\n i = i +1;\n }\t\n\t}", "public static void main(String[] args) {\n\t\tint num = 5;\n\t\tfor(int i = 1;i<=num;i++) {\n\t\t\tfor(int j=1; j<=num;j++) {\n\t\t\t\tif(i==j || i+j ==num+1)\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\telse {\n\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\t}", "public static void main(String[] args) {\n\t\tint num=4;\r\n\t\tfor(int i=0;i<=num;i++) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(int j=0;j<=num;j++) {\r\n\t\t\t\t\t\tif(j<=i && i+j>=num) \r\n\t\t\t\t\t\r\n\t\t\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t\t\t\telse \r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t\t\t}\r\n\t\t\t}", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "public static void main(String[] args) {\nint i,j,lines=5;\nfor(i=1;i<=lines;i++){\n\tfor(j=lines;j>=1;j--) {\n\t\tif(j!=i) {\n\t\tSystem.out.print(j);\n\t}else\n\tSystem.out.print(\"*\");\n}\n\t\nSystem.out.println(\" \");\n\t}\n\n}", "public static void m9() {\r\n\tfor(int i =1;i<=5;i++) {\r\n\t\t\r\n\t for(int j =1;j<=i;j++) {\r\n\t\t System.out.print(\" \");\r\n\t }\r\n\t char ch ='A';\r\n\t for(int k=0;k<=(5-i);k++) {\r\n\t System.out.print(ch);\r\n\t ch++;\r\n\t }\r\n\t System.out.println();\r\n\t}\r\n}", "public static void m12() {\r\n\tint m =1;\r\n\tfor(int i =1;i<=4;i++) {\r\n\t\tfor(int j =1;j<=(4-i);j++) {\r\n\t\t\tSystem.out.print(\" \");\r\n\t\t}\r\n\t\tchar ch ='A';\r\n\t\tfor(int k =1;k<=m;k++) {\r\n\t\t\tSystem.out.print(ch);\r\n\t\t\tch++;\r\n\t\t}\r\n\t\tm+=2;\r\n\t\tSystem.out.println();\r\n\t}\r\n}", "static void print4(int n) {\n\t\tint blank = 0;\n\t\tint star = (n/2) + 1;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < blank; j++) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor (int j = 0; j < Math.abs(star); j++) {\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tstar--;\n\t\t\tif(star == 0) {\n\t\t\t\tstar = -2;\n\t\t\t}\n\t\t\tblank++;\n\t\t\tif(blank > n/2)\n\t\t\t\tblank = n >> 1;\n\t\t}\n\t}", "public static void main(String[] args) \n\t{\n\t\t\n\t\tfor(int i=5;i>=1;i--) \n\t\t{\n\t\t\tfor(int j=1;j<=5-i;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\n\t\t\t}\n\t\t\tfor(int k=1;k<=i;k++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"*\"+\" \");\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t// -------Pattern 5-------\n//\t\tfor(int i=1;i<=5;i++)\n//\t\t{\n//\t\t\tfor(int j=1;j<=5-i;j++) \n//\t\t\t{\n//\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t\n//\t\t\t}\n//\t\t\t\n//\t\t\tfor(int k=1;k<=i;k++)\n//\t\t\t{\n//\t\t\t\tSystem.out.print(\"*\"+\" \");\n//\t\t\t}\n//\t\t\t\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\n\t}", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tfor(int i=1;i<=4;i++)\r\n\t\t{\r\n\t\t\tfor(int j=1;j<=8;j=j*2)\r\n\t\t\t{\r\n\t\t\t\tif(j%2==0)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(\"#\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\r\n\t}\r\n\r\n}", "public static void main(String[] args) {\n int i= 1; int j=1;\r\n\t\t/*for(i=1; i<=6; i++){\r\n\t\t\tfor(j=1; j<=6-i; j++){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t }\r\n\t\t\t for(j=1; j<=i; j++){\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t } for(j=1; j<=6; j++){\r\n\t\t} System.out.print(\"*\");\r\n\t\t System.out.println();\r\n\t\t}\r\n\t\t*/\r\n\t\r\nfor(i=1; i<=7;i++){\r\n\tfor(j=1; j<=7-i; j++){\r\n\t\tSystem.out.println(\" \");\r\n\t}\r\n\tfor(j=1; j<=i; j++){\r\n\t\tSystem.out.print(\"*\");\r\n\t\r\n\t}\r\n}\r\n\r\n\t\t\r\n\t\t/*int num = 6;\r\n\t\tfor(i=1; i<=num; i++){\r\n\t\t\tfor(j=1; j<=num+1-i; j++){\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t*/\r\n\t\t\r\n\t\tint num = 6;\r\n\t\tfor(i=1; i<=num; i++){\r\n\t\t\tfor(j=1; j<=num+6-i; j++){\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t/******* i=1 *=6\r\n\t\t***** i=2 *=5\r\n\t\t**** i=3 *=4\r\n\t\t*** i=4 *=3\r\n\t\t** i=5 *=2\r\n\t\t* i=6 *=1\r\n\t\t *=7 -i=6+1-i=num+1-i\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t/*\t****** i=1 * =6\r\n\t\t ***** i=2 * = 5\r\n\t\t ***\r\n\t\t **\r\n\t\t *\r\n\t\t\r\n\t*/\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tfor(i=1; i<=num; i++){\r\n\t\t\tfor(j=1; j<=i-1; j++){\r\n\t\t\t\tSystem.out.println(\" \");\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\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\r\n\t\tfor(int i = 1; i <= 6; i++) {\r\n\t\t\tSystem.out.print(\"*\");\r\n\t\t}\r\n\t\tSystem.out.println(\"\\n\");\r\n\t\t\r\n\t\t\r\n\t\tfor(int j = 1; j <= 4; j++) {\r\n\t\t\tfor(int i = 1; i <= 6; i++) {\r\n\t\t\t\tSystem.out.print('*');\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t/*\t\t\t\tj(行号)\t\tk(*的个数)\r\n\t\t*\t\t\t\t1\t\t\t1\r\n\t\t**\t\t\t\t2\t\t\t2\r\n\t\t***\t\t\t\t3\t\t\t3\r\n\t\t****\t\t\t4\t\t\t4\r\n\t\t*****\t\t\t5\t\t\t5\r\n\t\t*/\r\n\t\t\r\n\t\tfor (int j = 1; j <= 5;j++) {//控制行数\r\n\t\t\tfor(int k = 1; k <= j; k++) {//控制列数\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t/*\t\t\t\tj(行号)\t\tk(*的个数)\t规律:j + k = 5 换句话说:k = 5 - j;\r\n\t\t****\t\t\t1\t\t\t4\r\n\t\t***\t\t\t\t2\t\t\t3\r\n\t\t**\t\t\t\t3\t\t\t2\r\n\t\t*\t\t\t\t4\t\t\t1\r\n\t\t*/\r\n\t\t\r\n\t\tfor (int j = 1; j <= 4;j++) {//控制行数\r\n\t\t\tfor(int k = 1; k <= 5 - j; k++) {//控制列数\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t}", "public static void m13() {\r\n\tfor(int i=1;i<=4;i++) {\r\n\t\tfor(int j =1;j<=(4-i);j++) {\r\n\t\t\tSystem.out.print(\" \");\r\n\t\t}\r\n\t\tchar ch ='A';\r\n\t\tfor(int j=1;j<=i;j++) {\r\n\t\t\tSystem.out.print(ch+\" \");\r\n\t\t\tch++;\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}\r\n}", "public static void main(String[] args) {\n\t\tint num=5;\r\n\t\tint c=num*2-1;//5\r\n\t\tfor(int j=0 ; j< c ; j++){//j: 0, 1, 2,3 4\r\n\t\t\t\r\n\t\t\tif(j<num) {///j: 0, 1, 2\r\n\t\t\t\t// 1 ,2,3 : 0+1, 1+1, 2+1\r\n\t\t\t\tfor(int i=0; i<j+1 ; i++) {\r\n\t\t\t\t\tSystem.out.print(\"* \");\r\n\t\t\t\t}\r\n\t\t\t}else {//j: 3,4\r\n\t\t\t\t//2,1 : 5-3, 5-4\r\n\t\t\t\tfor(int i=0; i<c-j ; i++) {\r\n\t\t\t\t\tSystem.out.print(\"* \");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public static void fourthProgram() {\n\t\tfor (int i = 1; i <= 4; i++) {\n\t\t\tfor (int j = 4; j > i; j--) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor (int k = 1; k <= i; k++) {\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void main(String[] args) {\n\n\t\tint i, j, k;\n\n\t\tfor (i = 1; i <= 9; i++)\n\t\t{\n\t\t for (j = 1; j <= i; ++j)\n\t\t System.out.print(j);\n\n\t\t for (k = 9 - i; k >= 1; k--)\n\t\t System.out.print(\"*\");\n\n\t\t System.out.println(\"\");\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tint k,n=10;\r\n\t\tk=n-1;\r\n\t\tfor(int i=0;i<=n;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<=k;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\tk=k-1;\r\n\t\t\tfor(int j=0;j<=i;j++)\r\n\t\t\t\tSystem.out.print(\"*\"+\" \");\r\n\t\t\tSystem.out.println(\"\\r\");\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n \n int num = 5;\n\n for(int i=1; i<=num; i++){\n\n for (int x=1; x<=i; x++){\n System.out.print(\" \");\n }\n for(int y = i; y<=num; y++ ) System.out.print(\"*\");\n\n System.out.println();\n }\n }", "public static void pattern8(int input){\n\t\tfor(int i=0;i<input;i++){\n\t\t\tfor(int j=0;j<=i;j++){\n\t\t\t\tSystem.out.print(findCobination(i,j)+\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void m8() {\r\n\tfor(int i =1;i<=5;i++) {\r\n\t\tchar ch ='A';\r\n\t\tfor(int j=5;j>=i;j--) {\r\n\t\t\tSystem.out.print(ch);\r\n\t\t\tch++;\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}\r\n}", "public static void main(String[] args) {\n\t\tint value = 1;\n\t\t int count = 7;\n\t\t\tint curr = 0;\n\t\t\t int prev = 0;\n\t\t\tint num = 0;\n\t\twhile (value <= count)\n\t\t{\n\t\t\tnum = curr + prev;\n\t\t\tSystem.out.print(num);\t\n\t\t\t\tvalue++;\n\t\t\t\tif (value == 2)\n\t\t\t\t{\n\t\t\t\t\tprev = num;\n\t\t\t\t\tcurr = 1;\n\t\t\t\t}\n\t\t\t\t\t\tprev = curr;\n\t\t\t\t\t\tcurr = num;\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tfor (int i = 1; i <= 5; i++) {\r\n\t\t\tfor (int j = 1; j <= i; j++) {\r\n\t\t\t\tif (j<=1) {\r\n\t\t\t\tfor (int m = 5 - j; m >= i; m--) {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t}}\r\n\t\t\t\tSystem.out.print(\"* \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=1;i<=n;i++)\n\t\t{\n\t\t\tfor(int j=n;j>=i;j--)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int k=1;k<2*i;k++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t}\n\t\t\t/*for(int l=2;l<=i;l++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t}*/\n\t\t\tSystem.out.println();\n\t\t}\n\t\tfor(int i=1;i<=5;i++)\n\t\t{\n\t\t\tfor(int j=3;j<=30;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t}\n\t\t\tfor(int k=1;k<=i;k++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void m5() {\r\nfor(int i =1;i<=5;i++) {\r\n\tchar ch ='A';\r\n\tfor(int j =1;j<=i;j++) {\r\n\t\tSystem.out.print(ch);\r\n\t\tch++;\r\n\t}\r\n\tSystem.out.println();\r\n}\t\r\n}", "public static void main(String[] args) {\n\t\t\n\t\tfor(int i=1; i<=4; i++) {\n\t\t\tfor(int j=1; j<=4; j++) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(j+ \" \");\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\t//1, 1 2, 1 2 3\n\t\tfor(int i=1; i<=5; i++) {\n\t\t\tfor(int j=1; j<=i; j++) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(j+ \" \");\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\t//5, 5 4, 5 4 3.....\n\t\tfor(int i=5; i>=1; i--) {\n\t\t\tfor(int j=5; j>=i; j--) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(j+ \" \");\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\t//5, 4 4, 3 3 3.....\n\t\t\t\tfor(int i=5; i>=1; i--) {\n\t\t\t\t\tfor(int j=5; j>=i; j--) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.print(i+ \" \");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\n\n\t}", "public static void tenthProgram() {\n\t\tfor(int i=1;i<=4;i++) {\n\t\t\tfor(int j=1;j<=i-1;j++) {\n\t\t\t\tSystem.out.print(\" \");\t\t\t\n\t\t\t}for(int k=1;k<=4;k++) {\n\t\t\t\tSystem.out.print(\"*\");\t\t\n\t\t\t}System.out.println();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tfor (int i = 1; i < 101; i++) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program\");\n\t\tfor (int i = 100; i > 0; i--) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 2; i < 101; i = i + 2) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 1; i < 100; i = i + 2) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 501; i++) {\n\t\t\tif (i % 2 == 0) {\n\t\t\t\tSystem.out.println(i + \" is even.\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(i + \" is odd.\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 778; i = i + 7) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 2006; i < 2019; i++) {\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 3; i++) {\n\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tSystem.out.println(i + \" \" + \" \" + j);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 9; i += 3) {//rows \n\t\t\tfor (int j = 1; j < 4; j++) {//how many \n\t\t\t\tSystem.out.print(j + i);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 100; i += 10) {\n\t\t\tfor (int j = 1; j <11; j++) {\n\t\t\t\tSystem.out.print(j + i+\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\nfor (int i = 1; i < 7; i++) {\n\tfor (int j = 0; j < i; j++) {\n\t\tSystem.out.print(\"* \");\n\t}\n\tSystem.out.println();\n}\t\n\n\t\n\t\n\t\n\t}", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}", "public static void main(String[] args) {\n\r\n for (int x = 1; x < 10; x++) {// x=1\r\n\r\n for (int h = 1; h < 10; h++) { // h=1+1+1...8+1\r\n\r\n System.out.println(x + \"*\" + h \"=\" +x*h);// 1-2-3....8-9\r\n\r\n if(h==2){\r\n break;\r\n }\r\n }\r\n\r\n if(x==4){\r\n continue;\r\n }\r\n\r\n }\r\n\r\n }", "public static void main(String[] args) {\n\t\tint a=4;\r\n\t\tint b=16;\r\n\t\tfor (int i=1; i<5; i++){\r\n\t\t\tfor (int j=b; j>=a; j=j-4){\r\n\t\t\t\tSystem.out.print(j);\r\n\t\t\t\tSystem.out.print(\"\\t\");\r\n\t\t\t}\r\n\t\t\tb--;\r\n\t\t\ta--;\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public static void number_invsert(){\n for(int i=7; i > 0 ; i--){\n for(int j =1;j<=i;j++){\n System.out.print(j);\n }\n System.out.println();\n } \n }", "public static void main(String[] args) {\n\t\tfor (int i=8; i>=1; i--){\n\t\t\tfor (int j=1; j<=6; j++){\n\t\t\t\tif((7<=i&&i<=8)&&(5<=j&&j<=6)) \n\t\t\t\t\tbreak;\n\t\t\t\telse if((5<=i&&i<=6)&&(4<=j&&j<=5))\n\t\t\t\t\tcontinue;\n\t\t\t\telse if((i==1)&&(4<=j&&j<=5)){\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tSystem.out.print((i*100+j)+\" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\t\t\t\n\t}", "public static void m4() {\r\n\t\r\n\t\tfor(int i=1;i<=5;i++) {\r\n\t\t\tchar ch ='E';\r\n\t\t\tfor(int j=5;j>=1;j--) {\r\n\t\t\t\tSystem.out.print(ch);\r\n\t\t\t\tch--;\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t// Get the number of rows from the user\n\t\tSystem.out.println(\"Enter the number of rows to print the pattern \");\n\t\tint rows = scanner.nextInt();\n\t\tSystem.out.println(\"**Printing the pattern...**\");\n\t\tfor(int i = 1; i <= rows; i++) {\n\t\t\tfor(int j = 1; j <= i; j++) {\n\t\t\t\tSystem.out.print(j + \"\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tfor (int i = 1; i <= 7; i++) { //outer loop for 7 rows\n\t\t String print=\"\";\n\t\t for(int j = 1; j <= i; j++) { //inner loop\n\t\t print=print+i;\n\t\t }\n\t\t System.out.println(print);\n\t\t}\n\n\t}", "public static void main(String[] Args){\n Scanner n = new Scanner(System.in);\n int N = n.nextInt();\n int j = 1;\n int count = 1;\n while (j <= N){\n if ((3*count + 2) % 4 == 0){\n count++;\n }\n else {\n System.out.print(3*count + 2);\n System.out.print(\" \");\n j++;\n count++;\n }\n }\n }", "public static void m1() {\r\n\t char ch = 'A';\r\n\t\tfor(int i =1;i<=5;i++) {\r\n\t\t\tfor(int j=1;j<=5;j++) {\r\n\t\t\t\tSystem.out.print(ch);\r\n\t\t\t}\r\n\t\t\tch++;\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n for (int i = 1; i <= 5; i++) {\n for (int j = 1; j <= 5; j++) {\n System.out.println(i + \" \" + j);\n }\n\n /*\n * I J\n * 1 1\n * 1 2\n * 1 3\n * 1 4\n * 1 5\n * 2 1\n * 2 2\n * 2 3\n * 2 4\n * 2 5\n * 3 1\n * --------\n * 5 1\n * 5 2\n * 5 3\n * 5 4\n * 5 5\n *\n *\n * */\n /*\n for(int i=1;i<=5;i++){\n }\n for i = 1\n ---------\n * i=1 , i = i+1 = 1 + 1 = 2\n * i=2 , = 2 + 1 = 3\n * i=3 , = 3 + 1 = 4\n * i=4,\n * */\n\n /*\n\n for i = 2\n ---------\n * i=2 , i = i+1 = 2 + 1 = 3\n * i=3 , = 3 + 1 = 4\n * i=4,\n * */\n /*int l;\n for ( l= 1;l <=10; l++){\n System.out.println(l);\n }*/\n\n /*int l =0;\n for ( ;; l++){\n System.out.println(l);\n }\n*/\n }\n }", "public static void main(String[] args) {\n\t\tint n =7;\n\t\tint row=1;\n\t\tint nst=n/2;\n\t\tint nsp=1;\n\t\twhile(row<=n) {\n\t\t\t// star\n\t\t\tint cst =1;\n\t\t\twhile(cst<=nst) {\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t\tcst++;\n\t\t\t}\n\t\t\t\n\t\t\t// space\n\t\t\tint csp=1;\n\t\t\twhile(csp<=nsp) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tcsp++;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// star\n\t\t\tcst=1;\n\t\t\twhile(cst<=nst) {\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t\tcst++;\n\t\t\t}\n\t\t\t\n\t\t\t// n = 7\n\t\t\t// next row \n\t\t\tif(row<=n/2) {\n\t\t\tnst--;\n\t\t\tnsp+=2;\n\t\t\t}\n\t\t\t// row == 4 nst =0\n\t\t\telse {\n\t\t\t\tnst++;\n\t\t\t\tnsp-=2;\n\t\t\t}\n\t\t\trow++;\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\t\tint i=1;\r\n\t\t/*while (i<=10){\r\n\t\t\tSystem.out.println(i);\r\n\t\t\ti=i+1;\r\n\t\t}\r\n\t\tint j=10;\r\n\t\twhile (j>1){\r\n\t\t\tSystem.out.println(j);\r\n\t\t\tj=j-1;\r\n\t\t\t\r\n\t\t}*/\r\n\t\t\r\n\t\tfor (i=0;i<10;i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\t\tfor (int j=10;j>=1;j--)\r\n\t\t{\r\n\t\t\tSystem.out.println(j);\r\n\t\t}\r\n\r\n\t}", "public static void part1(){\n \n\t\tfor (int i = 1; i <= 15; i += 2){ \n \n \t\n \tfor (int j = 0; j < i; j++){\n \tSystem.out.print(\"*\");\n \n \t\t}\n \n \t\tSystem.out.println(\"\");\n\t\t\t\n \t}\n \n \t}", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tchar space = ' ';\n\t\t\n\t\tfor(int i = 1; i <= 5; i++){\n\t\t\tfor(int l=5-i; l>=1; l--){\n\t\t\t\tSystem.out.print(space);\n\t\t\t}\n\t\t\tfor(int j = 1; j <= i; j++){\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\tSystem.out.print(space);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\tfor(int i = 1; i <= 5; i++){\n\t\t\tfor(int l = 1; l<i; l++){\n\t\t\t\tSystem.out.print(space);\n\t\t\t}\n\t\t\tfor(int j = 5; j >= i; j--){\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\tSystem.out.print(space);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void main(String[] args) {\nint i,j,k;\r\nint num=5;\r\nfor(i=0;i<num;i++){\r\n\tfor(j=0;j<i;j++){\r\n\t\tSystem.out.print(\" \");\r\n\t}\r\n\tfor(k=num; k>=2*i-1; k--){\r\n\t\tSystem.out.print(\"*\");\r\n\t}\r\n\t\r\n\tSystem.out.println();\r\n}\r\n\t}", "public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n\t\tint a = s.nextInt();\n\t\tint count=1;\n\t\tint n=1;\n\t\twhile(count!=a+1)\n\t\t{\n\t\t if((3*n+2)%4!=0)\n\t\t {\n\t\t System.out.print((3*n+2)+\" \");\n\t\t count+=1;\n\t\t \n\t\t }\n\t\t n+=1;\n\t\t}\n}", "public static void main(String[] args) {\n\t\tfor(int i=0; i<4; i++) {\n\t\t\tfor(int j=0; j<i; j++) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int k=0; k<=i; k++) {\n\t\t\t\tSystem.out.print(i+\"\"+k);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t//*\n\t\t//**\n\t\t//***\n\t\t//****\n\t\tfor(int i=0; i<4; i++) {\n\t\t\tSystem.out.print(\"*\");\n\t\t\tfor(int j=0; j<i; j++) {\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tfor(int i=0; i<4; i++) {\n\t\t\tfor(int j=1; j<=i; j++) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\tfor(int k=0; k<=i; k++) {\n\t\t\t\tSystem.out.print(i+\"\"+k);\n\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\n\t\t//향상된 for문\n\t\tint[]arr=new int[5];\n\t\tfor(int tmp : arr ) {\n\t\t\tSystem.out.println(tmp);\n\t\t}\n\t\t\n\t}", "private static void myLine(int zahl) {\n\n for (int i = 7; i < zahl; i += 7) {\n System.out.print(i + \" \");\n }\n }", "public static void main (String[] args){\n Scanner in = new Scanner(System.in);\n int n= in.nextInt();\n int ncount=1;\n int nmcount;\n while(n>0)\n {\n nmcount=ncount;\n for(int count=n;count>0;count--)\n {\n System.out.print(count);\n }\n ncount=nmcount-1;\n n--;\n System.out.println(\" \");\n }\n\t}", "public void Series() {\n\t\tint n=8,i=1,k=2,count=0;\n\t\tSystem.out.print(n+\" \");\n\t\twhile (count<5) {\n\t\t\tn=n*i;//12\n\t\t\tn=n-k;//9\n\t\t\tSystem.out.print(n+\" \");//9\n\t\t\ti++;\n\t\t\tk++;\n\t\t\tcount++;\n\t\t}\n\t\t/*System.out.println(n);//8\n\t\tn=n*1;//8\n\t\tn=n-2;//6\n\t\t\n\t\tSystem.out.println(n);//6\n\t\tn=n*2;//12\n\t\tn=n-3;//9\n\t\tSystem.out.println(n);//9\n\t\tn=n*3;//27\n\t\tn=n-4;//23\n\t\tSystem.out.println(n);\n\t\tn=n*4;//12\n\t\tn=n-5;*/\n\t\t\n\t\t/*System.out.println(n);\n\t\tn=n*5;//12\n\t\tn=n-6;\n\t\tSystem.out.println(n);*/\n\t\t\n\t}", "public static void m2() {\r\n\tfor(int i =1;i<=5;i++) {\r\n\t\tchar ch ='A';\r\n\t\tfor(int j =1;j<=5;j++) {\r\n\t\t\tSystem.out.print(ch);\r\n\t\t\tch++;\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}\r\n\t}", "public static void main(String[] args){\n for(int i = 23; i <= 89; i++){\n System.out.print(i + \" \");\n if(i % 10 == 2)\n System.out.print(\"\\n\"); }\n }", "public static void main(String[] args) {\n\n\t\t\n\t\tfor(int i=1;i<=5;i++)\n\t\t{\n\t\t\t\n\t\t for(int j=1;j<=i;j++) {\n\t\t\t \n\t\t\t \n\t\t\tSystem.out.print(\"*\");\n\t\t\n\t\t}\n\t\t\t\n\t\t System.out.println(\"\");\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tfor(int i=1;i<=5;i++) {\n\t\t\t\t\t\t\n\t\t for(int j=5;j>=i;j--) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\tSystem.out.print(\"*\");\t\n\t\t}\n System.out.println();\t\t\n \n }\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tfor(int a=1;a<=5;a++) {\n\t\t\t\n\t\t \n\t\t\tfor(int b=1;b<=a;b++) {\n\t\t\t\n\t\t \n\t\t\t\tSystem.out.print(\"*\");\n\t\t\n\t\t }\n\t\t System.out.println();\t\n\t\t\n\t\t}\n\t\t\n\t\t for(int c=1;c<=5;c++) {\n\t\t\t\n\t\t\t\n\t\t for(int d=4;d>=c;d--) {\n\t\t\t\n\t\t System.out.print(\"*\");\t\n\t\t\t\n\t\t}\n\t\t System.out.println();\t\n\t\t}\n \n\t\t\n\t\t\n\t\t\n\t\t\n\t\n\t}", "public static void main(String[] args){\n\n for(int n = 2; n < 102; n+=2)System.out.printf(\"%d\\n\",n);\n \n \n }", "public static void main(String args[]) {\n \nScanner sc = new Scanner(System.in);\n\nint n = sc.nextInt();\n\nint i=1; int j=0;\nchar p;\nwhile (i<=n) {\n j=1;\n p = (char) ('A' + i - 1);\n while (j<=n) {\n \n System.out.print(p);\n p=(char)(p+1);\n j=j+1;\n\n }\nSystem.out.println();\ni=i+1;\n}\nsc.close();\n}", "public static void main(String[] args) {\n\t\tfor(int i = 0; i<=4; i++) {\r\n\t\t\tfor(int j = 5; j>i; j--) {\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tint i;\r\n\t\tfor(i = 1; i<=10; i++) {\r\n\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\t\tSystem.out.println(\"=============\");\r\n\t\ti = 1;\r\n\t\twhile(i<=10) {\r\n\t\t\tSystem.out.println(i);\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tSystem.out.println(\"=============\");\r\n\t\ti = 1;\r\n\t\tint j = 15;\r\n\t\twhile(true) {\r\n\t\t\tSystem.out.println(i);\r\n\t\t\tif(i==j) { break;}\r\n\t\t\ti++;\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\nint i=1;\nwhile(i<=10)\n{\n\tSystem.out.println(i+\"raj\");//display nos from 1 to 10 and raj \n\ti=i+1;\n}\n\t}", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n\n int stairs = 1;\n if (n > 0) {\n if (n > 1) {\n for (int j = 0; j < n; j++) {\n String s = \"\";\n for (int i = 0; i < n; i++) {\n if (i + stairs < n)\n s += \" \";\n else if (i < n)\n s += \"#\";\n }\n System.out.println(s);\n stairs++;\n }\n } else {\n System.out.println(\"#\");\n }\n }\n }", "private void printLine(int n, int k) {\n System.out.printf(\"%4d- \", n + 1);\n for (int i = 0; i < k; i++) {\n if (i % 10 == 0) System.out.printf(\" \");\n System.out.printf(\"%c\", seq.get(i + n));\n }\n for (int i = k; i < printLength; i++) {\n if (i % 10 == 0) System.out.printf(\" \");\n System.out.printf(\" \");\n }\n System.out.printf(\" -%4d\\n\", n + printLength);\n }", "public static void m3() {\r\n\t\tchar ch ='E';\r\n\t\tfor(int i =1 ;i<=5;i++) {\r\n\t\t\tfor(int j=5;j>=1;j--) {\r\n\t\t\t\tSystem.out.print(ch);\r\n\t\t\t}\r\n\t\t\tch--;\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\tfor (int a=1; a<=5; a++)\t {\n\t\tfor (int b=1; b<=(5-a); b++) {\n\t\t\tSystem.out.print(\".\");\n\t\t}\n\t\tSystem.out.println(a);\n\t\t\n\t}\t\n\t}", "public void Series() {\n\t\tint n=2;\n\t\twhile (n<=10) {\n\t\t\tSystem.out.print(n+\" \");\n\t\t\tn=n+2;\n\t\t}\n\t/*\tSystem.out.println(n);\n\t\tn=n+2;\n\t\tSystem.out.println(n);\n\t\tn=n+2;\n\t\tSystem.out.println(n);\n\t\tn=n+2;\n\t\tSystem.out.println(n);\n\t\tn=n+2;\n\t\tSystem.out.println(n);\n\t\tn=n+2;*/\n\t}", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tfor(int i=0;i<7;i++){\r\n\t\t\tfor(int j=0;j<4;j++){\r\n\t\t\t\t\r\n\t\t\t\tif((i==0 || i==3 || i==6) && j<4){\r\n\t\t\t\t\tSystem.out.print(\" * \");\r\n\t\t\t\t}else if((j==0 || j==3) && i<7){\r\n\t\t\t\t\tSystem.out.print(\" * \");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "include <stdio.h>\nint main() {\n int n;\n\tscanf(\"%d\", &n);\n int num=1;\n\tfor(int i = 1; i <= n; i++){\n\t for(int space = 1; space <= n - i; space++){\n\t printf(\" \");\n\t }\n\t for(int j = 1; j <= i; j++){\n\t printf(\"%d \",num);\n num++;\n\t }\n\t printf(\"\\n\");\n\t}\n\treturn 0;\n}", "public static void main(String[] args) {\nScanner s =new Scanner(System.in);\r\nint n=s.nextInt();\r\nfor(int i=n;i>=0;i--)\r\n{ int a=n;\r\n for(int j=n;j>=i;j--)\r\n {System.out.print(a+\" \");a--;}\r\n a=a+1;\r\n for(int k=1;k<=2*i-1;k++)\r\n {System.out.print(\" \"+\" \");}\r\n if(a!=0) {\r\n for(int l=n;l>=i;l--)\r\n {System.out.print(a+\" \");a++;}\r\n }\r\n else {for(int m=1;m<=n;m++)\r\n {System.out.print(m+\" \");}\r\n }\r\n System.out.print(\"\\n\");\r\n}\r\nfor(int x=1;x<=n;x++)\r\n{ int c=n;\r\n for(int y=n;y>=x;y--)\r\n {System.out.print(c+\" \");c--;}\r\n c=c+1;\r\n for(int z=1;z<=2*x-1;z++)\r\n {System.out.print(\" \"+\" \");}\r\n for(int p=x;p<=n;p++)\r\n {System.out.print(c+\" \");c++;}\r\n \r\n\t\r\nSystem.out.print(\"\\n\");\r\n\r\n\r\n}\r\n}", "public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(\"\\n============== Prog.1 ===============\\n\");\n\t\t/*\n\t\tO X O X O X O \n\t\tX O X O X O X \n\t\tO X O X O X O \n\t\tX O X O X O X \n\t\tO X O X O X O \n\t\tX O X O X O X \n\t\tO X O X O X O \n\t\t*/\n\t\t// Pattern1 Start\n\t\tint size = 7;\n\t\n\t\tfor (int j=0;j<size;j++) {\n\t\t\tfor (int i=0;i<size;i++) {\n\t\t\t\tif((i+j)%2==0) \n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"O \");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print(\"X \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\t\n\t\t// Pattern1 End\n\t\tSystem.out.println(\"\\n============== Prog.2 ===============\\n\");\n\t\t/*\n\t\t* * * * * * * * * \n\t\t* * * * * * * \n\t\t * * * * * * \n\t\t * * * * * \n\t\t * * * * \n\t\t * * * \n\t\t * * * \n\t\t * * \n\t\t * \n\t\t * \n\t\t *\n\t\t * */\n\t\t// Pattern 2 Start\n\t\tint maxNum;\n\t\tint arr[] = {8,2,4,1,13,7,5,3};\n\t\tSystem.out.print(\"Length of array: \"+arr.length+\"\\nValues in Array:\");\n\t\tfor(int i=0;i<arr.length;i++) {\n\t\t\tSystem.out.print(arr[i]+\" \");\n\t\t}\n\t\tSystem.out.println(\"\\n\");\n\t\t\n\t\tfor (int i=0;i<arr.length-1;i++) {\n\t\t\tif (arr[i]>arr[i+1]) {\n\t\t\t\tint tmp=arr[i+1]; // small value in tmp\n\t\t\t\tarr[i+1]=arr[i]; // large value\n\t\t\t\tarr[i]=tmp;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<arr.length;i++) {\n\t\t\tSystem.out.print(arr[i]+\" \");\n\t\t}\n\t\tmaxNum=Array.getInt(arr, arr.length-1);\n\t\tSystem.out.print(\"\\nMax number in array: \"+maxNum+\"\\n\\n\");\n\t\t\n\t\t\n\t\tfor (int j=0;j<maxNum;j++) {\n\t\t\tfor (int i=0;i<arr.length;i++) {\n\t\t\t\tif (j>=arr[i]) {\n\t\t\t\t\tSystem.out.print(\" \");\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.print(\"\\n\");\n\t\t}\n\t\t// Pattern 2 End\n\t\t\n\t\tSystem.out.println(\"\\n============== Prog.3 ===============\\n\");\n\t\t\n\t\t// Pattern 3 Start\n\t\t\n\t\t// Find missing value without using sorting\n\t\tint arr2[] = {4,5,10,2,9,3,1,11,6,8};\n\t\tint total=0;\n\t\tfor (int i=0;i<arr2.length;i++) {\n\t\t\ttotal=total+arr2[i];\n\t\t}\n\t\tSystem.out.print(\"Array size: \"+arr2.length+\" & Array sum is: \"+total);\n\t\t\n\t\t// Pattern 3 End\n\t\tSystem.out.println(\"\\n============== Prog.4 ===============\\n\");\n\t\t// Pattern 4 Start\n\t\t/*\n\t\t *\n\t\t **\n\t\t ***\n\t\t ****\n\t\t ******\n\t\t * */\n\t\tint range=5;\n\t\tfor (int i=0;i<range;i++) {\n\t\t\tfor (int j=0;j<=i;j++) {\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\t\n\t\t// Pattern 4 End\n\t\tSystem.out.println(\"\\n============== Prog.5 ===============\\n\");\n\t\t// Pattern 5 Start\n\t\t/*\n\t\t *\n\t\t * *\n\t\t * * *\n\t\t * * * *\n\t\t * * * * *\n\t\t * */\n\t\tint prog5Length=5;\n\t\tfor (int i=1;i<=prog5Length;i++) {\n\t\t\tfor (int j=4;j>=i;j--) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\n\t\t\t}\n\t\t\tfor(int j=1;j<=i;j++) {\n\t\t\t\tSystem.out.print(\" *\");\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\t\n\t\t// Pattern 5 End\n\t\tSystem.out.println(\"\\n============== Prog.6 ===============\\n\");\n\t\t/*\n\t\t *\n\t\t * *\n\t\t * * *\n\t\t * * * * \n\t\t* * * * *\n\t\t * * * *\n\t\t * * *\n\t\t * *\n\t\t * \n\t\t * */\n\t\t// Pattern 6 Start\n\t\tint prog6Size=15;\n\t\tfor(int i=1;i<=prog6Size/2;i++) {\n\t\t\tfor(int j=(prog6Size/2)-1;j>=i;j--) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int k=1;k<=i;k++) {\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\t\n\t\t}\n\t\tfor(int i=1;i<=(prog6Size/2)-1;i++) {\n\t\t\tfor(int j=1;j<=i;j++) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int k=(prog6Size/2)-1;k>=i;k--) {\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\t\n\t\t}\n\t\t// Pattern 6 End\n\t\t\n\t\tSystem.out.println(\"\\n============== Prog.7 ===============\\n\");\n\t\t/*\n\t\t * Print integer line using 2D array, Ex.\n\t\t * 1\n\t\t * 2\n\t\t * 3\n\t\t * 4\n\t\t * 5\n\t\t * */\n\t\t// Pattern 7 Start\n\t\tint row=5,col=1;\n\t\tint[][] my2DArray=new int[row][col];\n\t\tmy2DArray[0][0]=1;\n\t\tmy2DArray[1][0]=2;\n\t\tmy2DArray[2][0]=3;\n\t\tmy2DArray[3][0]=4;\n\t\tmy2DArray[4][0]=5;\n\t\tfor(int i=0;i<row;i++) {\n\t\t\tSystem.out.println(my2DArray[i][0]);\n\t\t}\n\t\t// Pattern 7 End\n\t\t\n\t\tSystem.out.println(\"\\n============== Prog.8 ===============\\n\");\n\t\t/*\n\t\t *\n *\n *\n *\n *\n\t\t* */\n\t\t// Pattern 8 Start\n\t\tint prog8Size=5;\n\t\tfor (int m=1;m<=prog8Size;m++) {\n\t\t\tfor (int i=prog8Size-1;i>m-1;i--) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}System.out.print(\" *\\n\");\n\t\t}\n\t\t// Pattern 8 End\n\t\t\n\t\tSystem.out.println(\"\\n============== Prog.9 ===============\\n\");\n\t\t// Pattern 9 Start\n\t\t\n\t\t// Pattern 9 End\n\t\t\n\t\tSystem.out.println(\"\\n============== Prog.10 ===============\\n\");\n\t\t// Pattern 10 Start\n\t\t\n\t\t// Pattern 10 End\n\t\t\n\t}", "public static void main(String[] args) {\n\tfor(int k=1; k<=3;k++)\r\n\t{\r\n\t\tfor(int i=1; i<=9; i++)\r\n\t\t {\r\n\t\t\tSystem.out.println();\r\n\t\t for(int j=3*k-1; j<=3*k+1;j++)\r\n\t\t {\r\n\t\t if(j!=10)\r\n\t\t System.out.printf(j+\"*\"+i+\"=\"+i*j+\"\\t\");\r\n\t\t }\r\n\t\t }\r\n\t}\t\r\n }", "public static void main(String[] args) {\n\t\tint i;\n\t\tfor(i=1;i<=10;i++)// print 1 to 10\n\t\t{\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tfor(int x=10;x>=1;x--)// print 10 to 1\n\t\t{\n\t\t\tSystem.out.println(x);\n\t\t}\n\t\tfor(int z=1;z<=10;z++)// print 1 to 10 except 6\n\t\t{\n\t\t\tif(z!=6)\n\t\t\t{\n\t\t\tSystem.out.println(z);\n\t\t}\n\t}\n\n}", "include <stdio.h>\nint main(){\n int n,x = 0;\n scanf(\"%d\",&n);\n for(int i=1;i <= n;i++)\n {\n for(int c=1;c <= i;c++)\n {\n if(x == 0)\n {\n printf(\"*\");\n x = 1;\n }\n else\n {\n printf(\"#\");\n x = 0;\n }\n }\n printf(\"\\n\");\n }\n return 0;\n}", "public static String pattern(int n) {\n\t\tif(n < 1) {\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\tString sa[] = new String[n];\n\t\tString s = \"\";\n\n\t\tint x = 0;\n\t\tsa[0] = Integer.toString(n);\n\t\twhile(x < sa.length-1) {\n\t\t\tsa[x+1] = sa[x]+Integer.toString(n-1);\n\t\t\tx++; n--;\n\t\t}\n\t\t\n\n\t\tint i = sa.length;\n\t\t//int i =0;\n\t\twhile(i > 0) {\n\t\t\t//if(s.substring(0, i-1).length() >= m.length()) \n\t\t\t\t//s += \"\\n\"+s.substring(0, i-1);\n\t\t\t//s += \"\\n\"+s.substring(0,i-1);\n\t\t\ts += sa[i-1]+\"\\n\";\n\t\t\ti--;\n\t\t}\t\n\t\t\n\t\t\n\t\treturn s.trim();\n\t}", "public static void m11() {\r\n\tint size =4;\r\n\tfor(int i=size;i>=-size;i--) {\r\n\t\t\r\n\t\tfor(int j=1;j<=Math.abs(i);j++) {\r\n\t\t\t System.out.print(\" \");\r\n\t\t }\r\n\t\tchar ch = 'A';\r\n\t\tfor(int k =size;k>=Math.abs(i) ;k--) {\r\n\t\t\tSystem.out.print(ch);\r\n\t\t\tch++;\r\n\t\t}\r\n\t\t System.out.println();\r\n\t}\r\n}", "public static void main(String[] args) {\n\n\t\t\n\t\tfor(int i=1; i<5; i++)\n\t\t{\n\t\t\t\n\t\t\tfor(int j=1; j<=i; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(j);\n\t\t\t\tSystem.out.print(\"\\t\");\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"\");\n\t\t\t\n\t\t}\n\t\t\n\t\tfor(int l=4; l>0; l--)\n\t\t{\n\t\t\t\n\t\t\tfor(int m=l; m>=1; m--)\n\t\t\t{\n\t\t\t\tSystem.out.print(m);\n\t\t\t\tSystem.out.print(\"\\t\");\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"\");\n\t\t\t\n\t\t}\t\t\n\t}", "public void print() {\n int n = getSeq().size();\n int m = n / printLength;\n for (int i = 0; i < m; i++) {\n printLine(i * printLength, printLength);\n }\n printLine(n - n % printLength, n % printLength);\n System.out.println();\n }", "public static void main(String[] args) {\n\n for( int x = 1 ; x <= 5 ; x++){\n System.out.print(x + \" \");\n }\n System.out.println();\n\n for( int x = 1 ; x <= 5 ; x++){\n System.out.print(x + \" \");\n }\n System.out.println();\n\n for( int x = 1 ; x <= 5 ; x++){\n System.out.print(x + \" \");\n }\n System.out.println();\n\n\n\n // count from 1 to 5\n // repeat this 3 times\n\n for( int i = 1 ; i <= 3 ; i++){// nested loop, write inside loop first , then\n // outside loop ,then put entire inside loop into outside loop\n System.out.println(\"ITERATION : \" +i);\n\n for( int x = 1 ; x <= 5 ; x++){ // this is inside loop print 1-5\n System.out.print(x + \" \");\n }\n System.out.println();\n }\n // count from 1 to 10-->> print only odd numbers\n // repeat this 4 times\n\n }", "public static void main(String[] args) {\nScanner sc=new Scanner(System.in);\r\nSystem.out.println(\"Enter how many rows you want to print:- \");\r\nint strt=sc.nextInt();\r\nint i,a;\r\nfor(i=strt;i>=1;i--) {\r\n\tfor(a=1;a<=i;a++)\r\n\t{\r\n\t\tSystem.out.print(\" * \");\r\n}System.out.println();\r\n\t}\r\n\r\n}", "public static void main(String[] args) {\n\n for (char c = 'A'; c <= 'E'; c++) {\n for (int n = 1; n <= 3; n++) {\n System.out.println(c + \" \" + n);\n }\n }\n\n System.out.println(\"\\n\");\n\n // this is #2 - I'll call it \"AB\"\n for (int a = 1; a <= 3; a++) {\n for (int b = 1; b <= 3; b++) {\n System.out.println(a + \"-\" + b + \" \");\n }\n System.out.println();\n }\n\n System.out.println(\"\\n\");\n\n }", "public static void main(String[] args) {\n String j=\"\";\n int i=1;\n while(i<=5)\n {\t \n \t j+=\"\"+i;\n System.out.println(j);\n i++;\n }\n while(i>=1)\n { \n \t System.out.println(j.substring(0,i-1));\n \t i--;\n }\n\t}", "public static void main(String[] args) {\n\t\tfor(int i=2;i<=9;i+=3)\r\n\t\t{\r\n\t\t\tfor(int j=1;j<=9;j++)\r\n\t\t\t{\r\n\t\t\t\tfor(int k=i;k<i+3&&k!=10;k++)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(k+\"*\"+j+\"=\"+k*j+\"\\t\");\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"\\n\\n\");\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint num = sc.nextInt();\n\t\tint num2 = num; \n\t\tStringBuilder sb = new StringBuilder();\n\t\tStringBuilder sb2 = new StringBuilder();\n\t\t\n\t\tfor(int i=1; i<=num; ++i) {\n\t\t\tsb.append(\"**\");\n\t\t\tsb2.append(\" \");\n\t\t}\n\n\t\tfor(int i=1; i<=num; ++i) {\n\t\t\tSystem.out.println(sb2.substring(0, num-i)+sb.substring(0, 2*i-1));\n\n\t\t\tif(i==num) {//마지막까지 별을 찍고 역순으로 별을 찍기위해 while문 돌리기.\n\t\t\t\tint j=num-1;\n\t\t\t\twhile(num2-->1) {\n\t\t\t\t\tSystem.out.println(sb2.substring(0, num-j)+sb.substring(0, 2*j-1));\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "static void StairCase(int n) {\n for (int i = n - 1; i >= 0; i--) {\n for (int j = 0; j < i; j++) {\n System.out.print(\" \");\n }\n for (int j = n - i; j >= 0; j--) {\n System.out.print(\"#\");\n }\n System.out.println();\n }\n }" ]
[ "0.79101944", "0.76262", "0.75278616", "0.75010496", "0.7362647", "0.73544717", "0.73387957", "0.72565204", "0.7200832", "0.71721786", "0.7166283", "0.71276844", "0.7092072", "0.708331", "0.7009113", "0.70030487", "0.6940783", "0.68831766", "0.685979", "0.6813802", "0.68064344", "0.67995787", "0.6774076", "0.6756304", "0.6748223", "0.674491", "0.6742703", "0.6736354", "0.6735864", "0.67335045", "0.67227083", "0.67188674", "0.67102367", "0.668457", "0.66844493", "0.66498905", "0.6623181", "0.66039157", "0.6591977", "0.6588665", "0.65824497", "0.65789956", "0.65666395", "0.6559889", "0.6558615", "0.6551078", "0.65479624", "0.653991", "0.65340513", "0.6520646", "0.65203685", "0.6517308", "0.6511599", "0.64823353", "0.648063", "0.6479936", "0.64687", "0.64680237", "0.6463723", "0.64508814", "0.6444085", "0.64434093", "0.64401007", "0.6426489", "0.64250654", "0.64209384", "0.6420454", "0.6415311", "0.64096284", "0.64084464", "0.64019483", "0.63918084", "0.6388708", "0.6388528", "0.6387241", "0.63733", "0.63706356", "0.63643306", "0.6348032", "0.6347368", "0.6344066", "0.6334807", "0.63262737", "0.628983", "0.6283801", "0.6282661", "0.6264466", "0.6258605", "0.62546515", "0.6254585", "0.62406963", "0.62392753", "0.6231036", "0.6217189", "0.62118167", "0.62107307", "0.62101215", "0.6192423", "0.6175391", "0.617103" ]
0.6263746
87
Map http status codes here
public static HttpStatus getStatusCode(Throwable throwable) { if (throwable instanceof WebClientResponseException) { WebClientResponseException webClientResponseException = (WebClientResponseException) throwable; return webClientResponseException.getStatusCode(); } else if (throwable instanceof ResponseStatusException) { ResponseStatusException responseStatusException = (ResponseStatusException) throwable; return responseStatusException.getStatus(); } return INTERNAL_SERVER_ERROR; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract Integer getStatusCode();", "int getStatusCode();", "int getStatusCode();", "public abstract int statusCode();", "int getStatusCode( );", "HttpStatusCode getStatusCode();", "public abstract int getHttpStatusErrorCode();", "public int statusCode(){\n return code;\n }", "protected abstract boolean isExpectedResponseCode(int httpStatus);", "@Test\n public void teststatusCode() {\n\t \n\t given().\n\t \tget(\"https://reqres.in/api/unknown\").\n\t then().\t\t\n\t \tstatusCode(200);\n\t \n }", "Http.Status status();", "public void setHttpStatusCode(int value) {\n this.httpStatusCode = value;\n }", "@Test(priority=1)\n\tpublic void teststatuscode() {\n\t\t\n\t\twhen()\n\t\t\t.get(\"http://jsonplaceholder.typicode.com/posts/1\")\n\t\t.then()\n\t\t\t.statusCode(200);\n\t\t\t//.log().all();\n\t}", "public interface ResponseStatusConstants {\n\n\t/** Status code for resource not found exception. */\n\tint RESOURCE_NOT_FOUND = 404;\n\n\t/** Status code for resource not created exception. */\n\tint RESOURCE_NOT_CREATED = 400;\n\n\t/** Status code for resource invalid exception. */\n\tint RESOURCE_INVALID = 400;\n\n\t/** Status code for not authorized exception. */\n\tint UNAUTHORIZED = 401;\n\n}", "private ResponseStatus(int code) {\n this.code = code;\n this.formatted = format(code, \"???\");\n this.symbolicName = String.format(\"0x%04x\", code);\n }", "private com.wsguardian.courses.Status mapStatus(Status status) {\n\t\tif(status==Status.FAILURE) {\n\t\t\treturn com.wsguardian.courses.Status.FAILURE;\n\t\t}\n\t\treturn com.wsguardian.courses.Status.SUCCESS;\n\t}", "@Test\n\tpublic void teststatuscode() {\n\t\t\n\t\tgiven()\n\t\t\n\t\t.when()\n\t\t\t.get(\"http://jsonplaceholder.typicode.com/posts/5\")\n\t\t.then()\n\t\t\t.statusCode(200)\n\t\t\t.log().all();\n\t}", "public void setHttpStatusCode(Integer httpStatusCode) {\n this.httpStatusCode = httpStatusCode;\n }", "public interface CodeHandler {\n void onCode(int statusCode, Response response);\n}", "Response.StatusType getStatus(Exception exception);", "public void setStatusCode(Integer statusCode) {\n this.statusCode = statusCode ;\n }", "public int get_http_status_code () {\n\t\treturn http_status_code;\n\t}", "@Override\n protected void handleErrorResponseCode(int code, String message) {\n }", "public void setStatusCode(Integer statusCode) {\n this.statusCode = statusCode;\n }", "private void updatestatuscode() {\r\n String error = null;\r\n if (inValidStatus()) {\r\n error = getJson(\"msg\");\r\n }\r\n if (error != null) {\r\n if (error.equals(\"Cannot login Check your username or pass\")) {\r\n statuscode = 1;\r\n } else if (error.equals(\"Your account is not premium\")) {\r\n statuscode = 2;\r\n } else {\r\n /* TODO: Enable code below once all known errors are correctly handled */\r\n // statuscode = 666;\r\n }\r\n } else {\r\n if (inValidStatus() && \"null\".equalsIgnoreCase(getJson(\"link\"))) {\r\n statuscode = 3;\r\n } else {\r\n /* Everything should be ok */\r\n statuscode = 0;\r\n }\r\n }\r\n }", "public int getStatusCode() {\n return code;\n }", "public static Integer getStatusCode() {\n Response res = (Response) Serenity.getCurrentSession().get(\"apiResponse\");\n return res.then().extract().statusCode();\n //return SerenityRest.then().extract().statusCode();\n }", "public StatusCode GetStatus();", "@Test\r\n\tpublic void testResponseCode(){\r\n\t\t\r\n\t\tint code = get(api1).getStatusCode();\r\n\t\tSystem.out.println(\"Code: \"+code);\r\n\t\tAssert.assertEquals(code, 200);\r\n\t}", "@Test(priority=1)\r\n\tpublic void validateStatusCode()\r\n\t{\r\n\t\tgiven()\r\n\t\t.get(\"https://reqres.in/api/users/2\")\r\n\t\t.then()\r\n\t\t.statusCode(200);\r\n\t\t\r\n\t}", "public interface IHttpStatus {\n\n /**\n * <p>Get the status code.</p>\n *\n * @return the status code\n */\n HttpStatusCode getStatusCode();\n\n}", "@Test\n\tpublic void testStatusCode() {\n\t\tassertEquals(\"404\", myReply.getStatusCode());\n\t}", "public HttpStatus getHttpStatus();", "@Test\n\tpublic void testIncorrectStatusCode() {\n\t\tgiven().\n\t\tget(Endpoint.GET_COUNTRY_invalid).then().statusCode(404);\n\t}", "public int toStatusCode(){\n\t\t\treturn _code;\n\t\t}", "private void setStatusCode(String statusLine) {\n \n \t\tString[] each = statusLine.split( \" \" );\n \t\tresponseHTTPVersion = each[0];\n \t\tstatusCode = each[1];\n\t\treasonPhrase = each[2];\n \t}", "private Integer getStatus(Map<String, Object> info) {\n return 200;\n }", "public static ResponseStatus valueOf(int code) {\n code = code & 0xFFFF; // convert negative shorts to unsigned\n if (code < 256) {\n ResponseStatus status = values[code];\n if (status != null) {\n return status;\n }\n }\n return new ResponseStatus(code);\n }", "private String getStatusLine(int iStatusCode) {\n String sStatus = \"HTTP/1.1 \";\n if (iStatusCode == 200) {\n sStatus += iStatusCode + \" OK\";\n } else if (iStatusCode == 301) {\n sStatus += iStatusCode + \" Moved Permanently\";\n } else if (iStatusCode == 403) {\n sStatus += iStatusCode + \" Forbidden\";\n } else if (iStatusCode == 404) {\n sStatus += iStatusCode + \" Not Found\";\n } else if (iStatusCode == 415) {\n sStatus += iStatusCode + \" Unsupported Media Type\";\n } else if(iStatusCode == 500) {\n sStatus += iStatusCode + \" Internal Server Error\";\n }\n return sStatus;\n }", "public interface StatusCode\n{\n\n /**\n * 操作成功\n */\n String SUCCESS = \"200\";\n\n /**\n * 未验证\n */\n String UNAUTHORIZED = \"401\";\n\n /**\n * 操作失败\n */\n String FAIL = \"500\";\n\n}", "private ResponseStatus(int code, String symbolicName, String description) {\n this.code = code;\n this.formatted = format(code, description);\n this.symbolicName = requireNonNull(symbolicName);\n\n if (code == MALFORMED_RESPONSE_CODE) {\n // skip further processing of the \"malformed response\" status\n return;\n }\n\n if (values[code] != null) {\n throw new IllegalStateException(\"already initialized status \" + values[code]);\n }\n\n values[code] = this;\n }", "public void setStatusCode(final HttpStatus status) {\n\t\tthis.statusCode = status;\n\t}", "@Test\n public void testStatusCode(){\n Assert.assertEquals(resp.getStatusCode(),200, \"Status code does not match\");\n }", "long getInnerStatusCode();", "public static int getStatusCode(String statusValue) {\r\n\t\tif (statusValue.equals(STATUS_OK)) {\r\n\t\t\treturn OK;\r\n\t\t} else if (statusValue.equals(STATUS_ZERO_RESULTS)) {\r\n\t\t\treturn ZERO_RESULTS;\r\n\t\t} else if (statusValue.equals(STATUS_OVER_QUERY_LIMIT)) {\r\n\t\t\treturn OVER_QUERY_LIMIT;\r\n\t\t} else if (statusValue.equals(STATUS_REQUEST_DENIED)) {\r\n\t\t\treturn REQUEST_DENIED;\r\n\t\t} else if (statusValue.equals(STATUS_INVALID_REQUEST)) {\r\n\t\t\treturn INVALID_REQUEST;\r\n\t\t} else if (statusValue.equals(STATUS_UNKNOWN_ERROR)) {\r\n\t\t\treturn UNKNOWN_ERROR;\r\n\t\t} else if (statusValue.equals(STATUS_NOT_FOUND)) {\r\n\t\t\treturn NOT_FOUND;\r\n\t\t} else {\r\n\t\t\treturn ERROR;\r\n\t\t}\r\n\t}", "public void setStatus(int s) {\n if ((statusCode() != s) || (reason() == null))\n reason = standardReason(s);\n code = s;\n }", "public int getStatusCode() {\n return statusCode;\n }", "public int getStatusCode() {\n return statusCode;\n }", "public int getStatusCode() {\n return statusCode;\n }", "public int getStatusCode() {\n return statusCode;\n }", "@Test\n\tpublic void testStatusCode() {\n\t\tgiven().\n\t\tget(Endpoint.GET_COUNTRY).then().statusCode(200);\n\t}", "public interface HttpCode {\n\n int NO_RESOURCE = 404;\n int SUCCESS = 200;\n int NO_TOKEN_HEADER = 401;\n int NO_TOKEN_FOUND = 403;\n int SYSTEM_EXCEPTION = 500;\n int NO_ACCOUNT_PROJECT = 402;\n int NO_ACCOUNT_NORMAL = 405;\n int ACCOUNT_OVERDUE = 406;\n int ERROR_ACCOUN_TOKEN = 407;\n int NO_RESOURCE_RIGHT = 408;\n int NO_EXAM_TIMES = 40601;\n int NO_KNOWLEDEG_TIMES = 40501;\n int NO_COURSE_TIME = 40801;\n int NO_COURSE_RIGHT = 40802;\n int SYSTEM_ERROR_REJECT = 409;\n int SYSTEM_ERROR_REFRESH_REPEAT = 410;\n int BUSINESS_ERROR_REPEAT = 411;\n int BUSINESS_ERROR_REFRESH_TOO_FAST = 412;\n int SMS_VERIFYCODE_NEED_WAIT = 40101;\n int SMS_NO_TEMPLATE = 40102;\n int SMS_NO_SEND_TIMES = 40103;\n int VERIFYCODE_DIFFERENT = 40104;\n int VERIFYCODE_NO_MORE_CHECKTIMES = 40105;\n int VERIFYCODE_EXPIRE = 40106;\n int SMS_NO_TELEPHONE = 40107;\n int VERIFYCODE_NULL = 40108;\n int SMS_SUCCESS = 20101;\n int HAS_NULL_REQUEST_PARAM = 413;\n int TOO_LONG_LENGTH = 414;\n int TOO_SHORT_LENGTH = 415;\n\n //公共功能\n int NO_RULE_FOUND = 40001;\n int NO_RULE_HANDLER_FOUND = 40002;\n int NO_ACCOUNT_FOUND = 40003;\n\n //用户登录(03)\n int FIND_PASSWORD_SUCCESS = 20301;\n int CHECK_USER_LOGIN_FAILURE = 40301;\n int CHECK_LOGINFORM_FAILURE = 40302;\n int CHECK_FIND_PASSWORD_FORM_FAILURE = 40303;\n int CHECK_USER_BY_TELEPHONE_FAILURE = 40304;\n int USER_TELEPHONE_ISNULL_CODE = 40305;\n int USER_LOGIN_SUCCESS_CODE = 40306;\n\n //用户中心(04)\n int MODIFY_USERINFO_SUCCESS = 20401;\n int MODIFY_PASSWORD_SUCCESS = 20402;\n int CHECK_OLD_PASSWORD_FAILURE = 40401;\n int CHECK_MODIFY_PASSWORD_FORM_FAILURE = 40402;\n int CHECK_USERINFO_FORM_FAILURE = 40403;\n int CHECK_BIND_MOBILE_FAILURE = 40404;\n int REPETITION_BIND_MOBILE = 40405;\n int BIND_MOBILE_FAILURE = 40406;\n\n //用户注册(02)\n int CHECK_TELEPHONE_EXIST = 40201;\n int CHECK_IDCARD_EXIST = 40202;\n int CHECK_ACCOUNT_EXIST = 40203;\n int CHECK_VERIFYCODE_FAILURE = 40204;\n int TELEPHONE_NULL = 40205;\n int TELEPHONE_ERROR = 40206;\n int PASSWORD_NULL = 40207;\n int PASSWORD_LENGTH_OVERLONG = 40208;\n int REGISTER_FAILURE = 40209;\n //身份证校验\n int IDCARD_LENGTH_ERROR=40210;\n int IDCARD_NUMERIC_ERROR=40211;\n int IDCARD_BIRTHDAY_INVALID=40212;\n int IDCARD_BIRTHDAY_OVER_LIMIT=40213;\n int IDCARD_MONTH_INVALID=40214;\n int IDCARD_DATE_INVALID=40215;\n int IDCARD_AREACODE_ERROR=40216;\n int IDCARD_ILLEGAL=40217;\n //身份证号不能为空\n int IDCARD_NULL=40218;\n\n\n //学习卡绑定(09)\n int PAYCARD_USED = 40901;\n int PAYCARD_NOTEXIST = 40902;\n int PAYCARD_PASSWORD_ERROR = 40903;\n int PAYCARD_BOUND = 40904;\n int PAYCARD_INVALID = 40905;\n int PAYCARD_UNNORMAL = 40906;\n int PROJECT_EXIST = 40907;\n int BIND_PROJECT_ERROR = 40908;\n int ADD_RULES_ERROR = 40909;\n int ADD_PROJECT_COMPLETERATE_ERROR = 40910;\n int INIT_KNOWLEDGE_QUESTIONS_ERROR = 40911;\n int PAYCARD_MEAL_NOTEXIST = 40912;\n int PAYCARD_MEAL_MISMATCHING = 40913;\n int NO_AUTH_BIND_PROJECT = 40914;\n int PAYCARD_RENEW_NO_SAME_JG = 40915;\n int PAYCARD_RENEW_NO_SAME_PRICE = 40916;\n int PAYCARD_RENEW_NO_SAME_CARDTYPE = 40917;\n int PAYCARD_RENEW_NO_SAME_TRAINTYPE = 40918;\n int PAYCARD_RENEW_NO_ID_PASSWORD = 40919;\n int PAYCARD_RENEW_NO_ACCOUNT_PROJECT_ID = 40920;\n int REQUEST_VR_NODEJS_URL = 40921;\n int NO_PROVINCE_TK = 40922;\n\n //培训考核\n int NO_EXAM_QUESTIONS = 40602;\n int PAPER_NOT_COMPLETE = 40603;\n int NO_EXAM_RULES = 40604;\n int TOO_MANY_EXAM_RULES = 40605;\n int CHECK_MARK_EXAM_QUESTION_FORM_FAILURE = 40606;\n int CHECK_SAVE_EXAM_ANSWER_FORM_FAILURE = 40607;\n int PAPER_OR_SUBJECT_NOT_EXISTS = 40608;\n int SHORT_OF_WELD_SELECT = 40609;\n int NOT_WELD_PROJECT = 40610;\n\n //知识点学习(05)\n int GET_QUESTION_FAILURE = 40502;\n int NO_QUESTION_FLAG = 40503;\n int CHECK_ANSWER_QUESTION_FORM_FAILURE = 40504;\n int NO_FLAG = 40506;\n\n //(完成度)计算(10)\n int WCD_CALCULATE_TARGET_ERROR = 41001;\n\n //vr实操 知识点练习(11)\n int CHECK_VR_KNOWLEDGE_TRAIN_FORM_FAILURE = 41101;\n int NO_VR_KNOWLEDEG_TIMES = 41102;\n int CHECK_SAVE_VR_EXAM_ANSWER_FORM_FAILURE = 41103;\n int CHECK_VR_COMMIT_PAPER_FAILURE = 41104;\n int CONNECT_VR_FAILURE= 41105;\n int WRONG_STBH=41106;\n int NO_TRAIN_MX=41107;\n int NO_TRAIN=41108;\n int NO_PAPER_EXISTS=41109;\n\n int CHECK_VERSION_FAILURE = 42101;\n\n //机构登录(36)\n int FIND_JGPASSWORD_SUCCESS = 23601;\n int CHECK_JG_LOGIN_FAILURE = 43601;\n int CHECK_JGLOGINFORM_FAILURE = 43602;\n int CHECK_FIND_JGPASSWORD_FORM_FAILURE = 43603;\n int CHECK_JG_BY_TELEPHONE_FAILURE = 43604;\n int NO_MENUS = 43605;\n\n //机构信息(37)\n int MODIFY_JGINFO_SUCCESS = 23701;\n int MODIFY_JGPASSWORD_SUCCESS = 23702;\n int CHECK_OLD_JGPASSWORD_FAILURE = 43701;\n int CHECK_MODIFY_JGPASSWORD_FORM_FAILURE = 43702;\n int CHECK_JGINFO_FORM_FAILURE = 43703;\n // 公用查询(30)\n int CHECK_MANAGER_COMMON_EMPTY = 43001;\n\n // 注册绑卡(31)\n int CHECK_MANAGER_REGISTER_EMPTY = 43101;\n int CHECK_MANAGER_REGISTER_TO_LONG_NAME = 43102;\n int CHECK_MANAGER_REGISTER_TELEPHONE_FAILURE = 43103;\n int CHECK_MANAGER_REGISTER_RECHECK_NO_EXPIREDATE = 43104;\n int CHECK_MANAGER_REGISTER_SUBORG_NO_PAYSTATE = 43105;\n int CHECK_MANAGER_REGISTER_NO_PLAN = 43106;\n int CHECK_MANAGER_REGISTER_PROJECT_SAME = 43107;\n int CHECK_MANAGER_REGISTER_PROJECT_SAME_ALREADY = 43108;\n int CHECK_MANAGER_REGISTER_NO_PAR_CARD_NEW = 43109;\n int CHECK_MANAGER_REGISTER_NO_PAR_CARD_RECHECK = 43110;\n int CHECK_MANAGER_REGISTER_NO_PAR_CARD_PRACTICAL = 43111;\n int CHECK_MANAGER_REGISTER_PLANTYPE_FAILURE = 43112;\n int CHECK_MANAGER_REGISTER_PAYCARD_IS_EMPTY = 43113;\n\n /*培训记录提取成功*/\n int EXTRACT_TRAIN_CERTIFY_SUCCESS = 23201;\n /*存在已提取学员*/\n int EXTRACT_REPEAT = 43201;\n /*培训不及格*/\n int EXTRACT_NOT_PASS_TRAIN = 43202;\n /*未查询到学员*/\n int EXTRACT_NO_STUDENT = 43203;\n\n int STUDENT_REPORT_DATE_ERROR = 43301;\n int DATEBEGIN_NULL_ERROR = 43302;\n int DATEEND_NULL_ERROR = 43303;\n\n //班次名称是否已存在\n int CHECK_BATCH_NAME = 43403;\n\n //机构班次人员管理\n int CHECK_ADD_BATCH_STUDENT_FAILURE = 43501;\n int CHECK_DELETE_BATCH_STUDENT_FAILURE = 43502;\n\n int ADD_BATCH_STUDENT_ERROR = 43503;\n int DELETE_BATCH_STUDENT_ERROR = 43504;\n\n int BATCH_COUNT_ERROR = 43505;\n int BATCH_STATE_ERROR = 43506;\n\n /*微信返回空*/\n int DO_NOTHING = 43801;\n /*公众号配置错误*/\n int NO_CONFIG = 43802;\n /*签名错误*/\n int SIGN_ERROR = 43803;\n /*获取token异常*/\n int CAN_NOT_GET_TOKEN = 43804;\n /*获取token异常*/\n int CAN_NOT_GET_TICKET = 43805;\n\n /*未绑定微信账号*/\n int NO_BIND_WECHAT = 43806;\n /*未绑定培训项目*/\n int NO_BIND_PROJECT = 43807;\n\n /*项目数据异常*/\n int PROJECT_MESSAGE_ERROR = 43808;\n\n /*获取用户微信信息失败*/\n int GET_USERINFO_ERROR = 43809;\n\n /*成功绑定项目*/\n int SAVE_APID_SUCCESS = 43810;\n\n /*获取openId为空*/\n int GET_OPENID_ERROR= 43811;\n\n\n int EXAM_RULE_IS_NOT_REACH = 99001;// 开始考试前,有内容未达标。\n int EXAM_RULE_IS_NEED_NOTICE = 99002;// 开始考试前,有内容未达标,需要提示信息。\n\n /* Redis 相关参数 */\n int REDIS_PARAM_IS_EMPTY = 43900;\n\n /* 题库代码和题库版本为空*/\n int NO_TKDM_OR_VERSION_NOW = 43901;\n int NO_TKDM_OR_VERSION = 43902;\n}", "@Override\n public void onSuccess(int statusCode, cz.msebera.android.httpclient.Header[] headers, JSONObject response) {\n try {\n String status = response.getString(\"status\");\n if (status.contains(\"status not ok\")) {\n lt.error();\n Toast.makeText(activity, response.getString(\"error\"), Toast.LENGTH_LONG).show();\n } else {\n lt.success();\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "public int getHttpStatusCode() {\n return httpStatusCode;\n }", "public void setStatusCode(HttpStatus statusCode) {\n this.statusCode = statusCode;\n }", "public int getHttpStatusCode() {\n return httpStatusCode;\n }", "public void setStatusCode(String statusCode) {\r\n\t\tthis.statusCode = statusCode;\r\n\t}", "public int getStatusCode() {\n return statusLine.getStatusCode();\n }", "@Override\n\tpublic int getStatusCodeValue() {\n\t\treturn this.statusCode.value();\n\t}", "public Integer getStatusCode() {\n return statusCode;\n }", "Response build(HttpStatus errorStatus);", "public StatusCode getStatusCode() {\n return statusCode;\n }", "@Test\n\tpublic void verifyStatusCode() {\n\t\tAssert.assertEquals(response.getStatusCode(), 200);\n\t}", "public void setStatusCode(String statusCode) {\n\t\tthis.statusCode = statusCode;\n\t}", "@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}", "public RestResponseAsserter statusCode(Consumer<AbstractIntegerAssert> responseCode) {\n responseCode.accept(assertThat(response.code()));\n return this;\n }", "private int getStatusCode(String sHTTPMethod, String sHTTPRequest) {\n // default is internal server error\n int iStatusCode = 500;\n\n // update based on method and request\n if (!isSupportedMethod(sHTTPMethod)) {\n iStatusCode = 403;\n } else if (isRedirect(sHTTPRequest)) {\n iStatusCode = 301;\n } else if (!isValidFile(sHTTPRequest)) {\n iStatusCode = 404;\n } else if (!isValidContentType(sHTTPRequest)) {\n iStatusCode = 415;\n } else if (isSupportedMethod(sHTTPMethod) && !isRedirect(sHTTPRequest)\n && isValidFile(sHTTPRequest) && isValidContentType(sHTTPRequest)) {\n iStatusCode = 200;\n }\n\n // return final status code\n return iStatusCode;\n }", "@Override\n\tpublic void setStatus(int status);", "private void setStatus(HttpRequest request, HttpResponse response) {\r\n\r\n\t\tString msg = \"OK\";\r\n\t\tint statusCode = 200;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tGridStatus status = GridStatus.fromString(request.getQueryParameter(\"status\"));\r\n\t\r\n\t\t\tif (GridStatus.ACTIVE.equals(status) || GridStatus.INACTIVE.equals(status)) {\r\n\t\t\t\tgetRegistry().getHub().getConfiguration().custom.put(STATUS, status.toString());\r\n\t\t\t} else {\r\n\t\t\t\tthrow new IllegalArgumentException();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor (RemoteProxy proxy : getRegistry().getAllProxies().getSorted()) {\r\n\t\t\t\tNodeStatusServletClient nodeStatusClient = ((CustomRemoteProxy)proxy).getNodeStatusClient();\r\n\t\t\t\tnodeStatusClient.setStatus(status);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\tmsg = \"you must provide a 'status' parameter (either 'active' or 'inactive')\";\r\n\t\t\tstatusCode = 500;\r\n\t\t} catch (UnirestException | SeleniumGridException e) {\r\n\t\t\tmsg = String.format(\"Error while forwarding status to node: %s\", e.getMessage());\r\n\t\t\tstatusCode = 500;\r\n\t\t}\r\n\r\n\t\tresponse.setHeader(\"Content-Type\", MediaType.JSON_UTF_8.toString());\r\n\t\tresponse.setStatus(statusCode);\r\n\t\ttry {\r\n\t\t\tresponse.setContent(msg.getBytes(UTF_8));\r\n\t\t} catch (Throwable e) {\r\n\t\t\tthrow new GridException(e.getMessage());\r\n\t\t}\r\n\t}", "protected void setStatus(int status, String statusStr, Object action, HTTPResponse response) {\n int code = status;\n if (!statusStr.isEmpty()) {\n code = Integer.parseInt(expand(statusStr, action, false));\n }\n\n response.setStatus(code);\n }", "trinsic.services.common.v1.CommonOuterClass.ResponseStatus getStatus();", "@Override\n public void onFailure(int statusCode, Throwable error,\n String content) {\n\n if(statusCode == 404){\n Toast.makeText(context, \"Requested resource not found\", Toast.LENGTH_LONG).show();\n }else if(statusCode == 500){\n Toast.makeText(context, \"Something went wrong at server end\", Toast.LENGTH_LONG).show();\n }else{\n // Toast.makeText(context, \"Unexpected Error occcured! [Most common Error: Device might not be connected to Internet]\", Toast.LENGTH_LONG).show();\n }\n }", "public static ApiResponseStatus fromStatusCode(final int statusCode) {\n for (ApiResponseStatus s : ApiResponseStatus.values()) {\n if (s.code == statusCode) {\n return s;\n }\n }\n return null;\n }", "public interface StatusCodes\n{\n\n// ----------------------------------------------------------------------------\n// Reserved status codes: [E0-00 through FF-FF]\n// Groups:\n// 0xF0.. - Generic\n// 0xF1.. - Motion\n// 0xF2.. - Geofence\n// 0xF4.. - Digital input/output\n// 0xF6.. - Sensor input\n// 0xF7.. - Temperature input\n// 0xF9.. - J1708\n// 0xFD.. - Device status\n// ----------------------------------------------------------------------------\n\n// ----------------------------------------------------------------------------\n// No status code: 0x0000\n\n public static final int STATUS_NONE = 0x0000;\n\n// ----------------------------------------------------------------------------\n// Generic codes: 0xF000 to 0xF0FF\n\n public static final int STATUS_INITIALIZED = 0xF010;\n // Description:\n // General Status/Location information (event generated by some\n // initialization function performed by the device).\n // Notes:\n // - This contents of the payload must at least contain the current\n // timestamp (and latitude and longitude if available).\n\n public static final int STATUS_LOCATION = 0xF020;\n // Description:\n // General Status/Location information. This status code indicates\n // no more than just the location of the device at a particular time.\n // Notes:\n // - This contents of the payload must at least contain the current\n // timestamp, latitude, and longitude.\n\n public static final int STATUS_WAYMARK = 0xF030;\n // Description:\n // General Status/Location information (event generated by manual user\n // intervention at the device. ie. By pressing a 'Waymark' button).\n // Notes:\n // - This contents of the payload must at least contain the current\n // timestamp, latitude, and longitude.\n\n public static final int STATUS_QUERY = 0xF040;\n // Description:\n // General Status/Location information (event generated by 'query'\n // from the server).\n // Notes:\n // - This contents of the payload must at least contain the current\n // timestamp, latitude, and longitude.\n\n// ----------------------------------------------------------------------------\n// Motion codes: 0xF100 to 0xF1FF\n\n public static final int STATUS_MOTION_START = 0xF111;\n // Description:\n // Device start of motion\n // Notes:\n // The definition of motion-start is provided by property PROP_MOTION_START\n\n public static final int STATUS_MOTION_IN_MOTION = 0xF112;\n // Description:\n // Device in-motion interval\n // Notes:\n // The in-motion interval is provided by property PROP_MOTION_IN_MOTION.\n // This status is typically used for providing in-motion events between\n // STATUS_MOTION_START and STATUS_MOTION_STOP events.\n\n public static final int STATUS_MOTION_STOP = 0xF113;\n // Description:\n // Device stopped motion\n // Notes:\n // The definition of motion-stop is provided by property PROP_MOTION_STOP\n\n public static final int STATUS_MOTION_DORMANT = 0xF114;\n // Description:\n // Device dormant interval (ie. not moving)\n // Notes:\n // The dormant interval is provided by property PROP_MOTION_DORMANT\n\n public static final int STATUS_MOTION_EXCESS_SPEED = 0xF11A;\n // Description:\n // Device exceeded preset speed limit\n // Notes:\n // The excess-speed threshold is provided by property PROP_MOTION_EXCESS_SPEED\n\n public static final int STATUS_MOTION_MOVING = 0xF11C;\n // Description:\n // Device is moving\n // Notes:\n // This status code may be used to indicating that the device was moving\n // at the time the event was generated. It is not typically associated\n // with the status codes STATUS_MOTION_START, STATUS_MOTION_STOP, and \n // STATUS_MOTION_IN_MOTION, and may be used independently of these codes.\n\n public static final int STATUS_ODOM_0 = 0xF130;\n public static final int STATUS_ODOM_1 = 0xF131;\n public static final int STATUS_ODOM_2 = 0xF132;\n public static final int STATUS_ODOM_3 = 0xF133;\n public static final int STATUS_ODOM_4 = 0xF134;\n public static final int STATUS_ODOM_5 = 0xF135;\n public static final int STATUS_ODOM_6 = 0xF136;\n public static final int STATUS_ODOM_7 = 0xF137;\n // Description:\n // Odometer value\n // Notes:\n // The odometer limit is provided by property PROP_ODOMETER_#_LIMIT\n\n public static final int STATUS_ODOM_LIMIT_0 = 0xF140;\n public static final int STATUS_ODOM_LIMIT_1 = 0xF141;\n public static final int STATUS_ODOM_LIMIT_2 = 0xF142;\n public static final int STATUS_ODOM_LIMIT_3 = 0xF143;\n public static final int STATUS_ODOM_LIMIT_4 = 0xF144;\n public static final int STATUS_ODOM_LIMIT_5 = 0xF145;\n public static final int STATUS_ODOM_LIMIT_6 = 0xF146;\n public static final int STATUS_ODOM_LIMIT_7 = 0xF147;\n // Description:\n // Odometer has exceeded a set limit\n // Notes:\n // The odometer limit is provided by property PROP_ODOMETER_#_LIMIT\n\n// ----------------------------------------------------------------------------\n// Geofence: 0xF200 to 0xF2FF\n\n public static final int STATUS_GEOFENCE_ARRIVE = 0xF210;\n // Description:\n // Device arrived at geofence\n // Notes:\n // - Client may wish to include FIELD_GEOFENCE_ID in the event packet.\n\n public static final int STATUS_GEOFENCE_DEPART = 0xF230;\n // Description:\n // Device departed geofence\n // Notes:\n // - Client may wish to include FIELD_GEOFENCE_ID in the event packet.\n\n public static final int STATUS_GEOFENCE_VIOLATION = 0xF250;\n // Description:\n // Geofence violation\n // Notes:\n // - Client may wish to include FIELD_GEOFENCE_ID in the event packet.\n\n public static final int STATUS_GEOFENCE_ACTIVE = 0xF270;\n // Description:\n // Geofence now active\n // Notes:\n // - Client may wish to include FIELD_GEOFENCE_ID in the event packet.\n\n public static final int STATUS_GEOFENCE_INACTIVE = 0xF280;\n // Description:\n // Geofence now inactive\n // Notes:\n // - Client may wish to include FIELD_GEOFENCE_ID in the event packet.\n\n// ----------------------------------------------------------------------------\n// Digital input/output (state change): 0xF400 to 0xF4FF\n\n public static final int STATUS_INPUT_STATE = 0xF400;\n // Description:\n // Current input ON state (bitmask)\n // Notes:\n // - Client should include FIELD_INPUT_STATE in the event packet,\n // otherwise this status code would have no meaning.\n\n public static final int STATUS_INPUT_ON = 0xF402;\n // Description:\n // Input turned ON\n // Notes:\n // - Client should include FIELD_INPUT_ID in the event packet,\n // otherwise this status code would have no meaning.\n // - This status code may be used to indicate that an arbitrary input\n // 'thing' turned ON, and the 'thing' can be identified by the 'Input ID'.\n // This 'ID' can also represent the index of a digital input.\n\n public static final int STATUS_INPUT_OFF = 0xF404;\n // Description:\n // Input turned OFF\n // Notes:\n // - Client should include FIELD_INPUT_ID in the event packet,\n // otherwise this status code would have no meaning.\n // - This status code may be used to indicate that an arbitrary input\n // 'thing' turned OFF, and the 'thing' can be identified by the 'Input ID'.\n // This 'ID' can also represent the index of a digital input.\n\n public static final int STATUS_OUTPUT_STATE = 0xF406;\n // Description:\n // Current output ON state (bitmask)\n // Notes:\n // - Client should include FIELD_OUTPUT_STATE in the event packet,\n // otherwise this status code would have no meaning.\n\n public static final int STATUS_OUTPUT_ON = 0xF408;\n // Description:\n // Output turned ON\n // Notes:\n // - Client should include FIELD_OUTPUT_ID in the event packet,\n // otherwise this status code would have no meaning.\n // - This status code may be used to indicate that an arbitrary output\n // 'thing' turned ON, and the 'thing' can be identified by the 'Output ID'.\n // This 'ID' can also represent the index of a digital output.\n\n public static final int STATUS_OUTPUT_OFF = 0xF40A;\n // Description:\n // Output turned OFF\n // Notes:\n // - Client should include FIELD_OUTPUT_ID in the event packet,\n // otherwise this status code would have no meaning.\n // - This status code may be used to indicate that an arbitrary output\n // 'thing' turned OFF, and the 'thing' can be identified by the 'Output ID'.\n // This 'ID' can also represent the index of a digital output.\n\n public static final int STATUS_INPUT_ON_00 = 0xF420;\n public static final int STATUS_INPUT_ON_01 = 0xF421;\n public static final int STATUS_INPUT_ON_02 = 0xF422;\n public static final int STATUS_INPUT_ON_03 = 0xF423;\n public static final int STATUS_INPUT_ON_04 = 0xF424;\n public static final int STATUS_INPUT_ON_05 = 0xF425;\n public static final int STATUS_INPUT_ON_06 = 0xF426;\n public static final int STATUS_INPUT_ON_07 = 0xF427;\n // Description:\n // Digital input state changed to ON\n\n public static final int STATUS_INPUT_OFF_00 = 0xF440;\n public static final int STATUS_INPUT_OFF_01 = 0xF441;\n public static final int STATUS_INPUT_OFF_02 = 0xF442;\n public static final int STATUS_INPUT_OFF_03 = 0xF443;\n public static final int STATUS_INPUT_OFF_04 = 0xF444;\n public static final int STATUS_INPUT_OFF_05 = 0xF445;\n public static final int STATUS_INPUT_OFF_06 = 0xF446;\n public static final int STATUS_INPUT_OFF_07 = 0xF447;\n // Description:\n // Digital input state changed to OFF\n\n public static final int STATUS_OUTPUT_ON_00 = 0xF460;\n public static final int STATUS_OUTPUT_ON_01 = 0xF461;\n public static final int STATUS_OUTPUT_ON_02 = 0xF462;\n public static final int STATUS_OUTPUT_ON_03 = 0xF463;\n public static final int STATUS_OUTPUT_ON_04 = 0xF464;\n public static final int STATUS_OUTPUT_ON_05 = 0xF465;\n public static final int STATUS_OUTPUT_ON_06 = 0xF466;\n public static final int STATUS_OUTPUT_ON_07 = 0xF467;\n // Description:\n // Digital output state set to ON\n\n public static final int STATUS_OUTPUT_OFF_00 = 0xF480;\n public static final int STATUS_OUTPUT_OFF_01 = 0xF481;\n public static final int STATUS_OUTPUT_OFF_02 = 0xF482;\n public static final int STATUS_OUTPUT_OFF_03 = 0xF483;\n public static final int STATUS_OUTPUT_OFF_04 = 0xF484;\n public static final int STATUS_OUTPUT_OFF_05 = 0xF485;\n public static final int STATUS_OUTPUT_OFF_06 = 0xF486;\n public static final int STATUS_OUTPUT_OFF_07 = 0xF487;\n // Description:\n // Digital output state set to OFF\n\n public static final int STATUS_ELAPSED_00 = 0xF4A0;\n public static final int STATUS_ELAPSED_01 = 0xF4A1;\n public static final int STATUS_ELAPSED_02 = 0xF4A2;\n public static final int STATUS_ELAPSED_03 = 0xF4A3;\n public static final int STATUS_ELAPSED_04 = 0xF4A4;\n public static final int STATUS_ELAPSED_05 = 0xF4A5;\n public static final int STATUS_ELAPSED_06 = 0xF4A6;\n public static final int STATUS_ELAPSED_07 = 0xF4A7;\n // Description:\n // Elapsed time\n // Notes:\n // - Client should include FIELD_ELAPSED_TIME in the event packet,\n // otherwise this status code would have no meaning.\n\n public static final int STATUS_ELAPSED_LIMIT_00 = 0xF4B0;\n public static final int STATUS_ELAPSED_LIMIT_01 = 0xF4B1;\n public static final int STATUS_ELAPSED_LIMIT_02 = 0xF4B2;\n public static final int STATUS_ELAPSED_LIMIT_03 = 0xF4B3;\n public static final int STATUS_ELAPSED_LIMIT_04 = 0xF4B4;\n public static final int STATUS_ELAPSED_LIMIT_05 = 0xF4B5;\n public static final int STATUS_ELAPSED_LIMIT_06 = 0xF4B6;\n public static final int STATUS_ELAPSED_LIMIT_07 = 0xF4B7;\n // Description:\n // Elapsed timer has exceeded a set limit\n // Notes:\n // - Client should include FIELD_ELAPSED_TIME in the event packet,\n // otherwise this status code would have no meaning.\n\n// ----------------------------------------------------------------------------\n// Analog/etc sensor values (extra data): 0xF600 to 0xF6FF\n\n public static final int STATUS_SENSOR32_0 = 0xF600;\n public static final int STATUS_SENSOR32_1 = 0xF601;\n public static final int STATUS_SENSOR32_2 = 0xF602;\n public static final int STATUS_SENSOR32_3 = 0xF603;\n public static final int STATUS_SENSOR32_4 = 0xF604;\n public static final int STATUS_SENSOR32_5 = 0xF605;\n public static final int STATUS_SENSOR32_6 = 0xF606;\n public static final int STATUS_SENSOR32_7 = 0xF607;\n // Description:\n // 32-bit unsigned sensor value\n // Notes:\n // - Client should include FIELD_SENSOR32 in the event packet,\n // otherwise this status code would have no meaning.\n // - The server must be able to convert this 32-bit value to something\n // meaningful to the user. This can be done using the following formula:\n // Actual_Value = ((double)Sensor32_Value * <Gain>) + <Offset>;\n // Where <Gain> & <Offset> are user configurable values provided at setup.\n // For instance: Assume Sensor32-0 contains a temperature value that can\n // have a range of -40.0C to +125.0C. The client would encode -14.7C\n // by adding 40.0 and multiplying by 10.0. The resulting value would be\n // 253. The server would then be configured to know how to convert this\n // value back into the proper temperature using the above formula by\n // substituting 0.1 for <Gain>, and -40.0 for <Offset>: eg.\n // -14.7 = ((double)253 * 0.1) + (-40.0);\n\n public static final int STATUS_SENSOR32_RANGE_0 = 0xF620;\n public static final int STATUS_SENSOR32_RANGE_1 = 0xF621;\n public static final int STATUS_SENSOR32_RANGE_2 = 0xF622;\n public static final int STATUS_SENSOR32_RANGE_3 = 0xF623;\n public static final int STATUS_SENSOR32_RANGE_4 = 0xF624;\n public static final int STATUS_SENSOR32_RANGE_5 = 0xF625;\n public static final int STATUS_SENSOR32_RANGE_6 = 0xF626;\n public static final int STATUS_SENSOR32_RANGE_7 = 0xF627;\n // Description:\n // 32-bit unsigned sensor value out-of-range violation\n // Notes:\n // - Client should include FIELD_SENSOR32 in the event packet,\n // otherwise this status code would have no meaning.\n\n// ----------------------------------------------------------------------------\n// Temperature sensor values (extra data): 0xF700 to 0xF7FF\n\n public static final int STATUS_TEMPERATURE_0 = 0xF710;\n public static final int STATUS_TEMPERATURE_1 = 0xF711;\n public static final int STATUS_TEMPERATURE_2 = 0xF712;\n public static final int STATUS_TEMPERATURE_3 = 0xF713;\n public static final int STATUS_TEMPERATURE_4 = 0xF714;\n public static final int STATUS_TEMPERATURE_5 = 0xF715;\n public static final int STATUS_TEMPERATURE_6 = 0xF716;\n public static final int STATUS_TEMPERATURE_7 = 0xF717;\n // Description:\n // Temperature value\n // Notes:\n // - Client should include at least the field FIELD_TEMP_AVER in the \n // event packet, and may also wish to include FIELD_TEMP_LOW and\n // FIELD_TEMP_HIGH.\n\n public static final int STATUS_TEMPERATURE_RANGE_0 = 0xF730;\n public static final int STATUS_TEMPERATURE_RANGE_1 = 0xF731;\n public static final int STATUS_TEMPERATURE_RANGE_2 = 0xF732;\n public static final int STATUS_TEMPERATURE_RANGE_3 = 0xF733;\n public static final int STATUS_TEMPERATURE_RANGE_4 = 0xF734;\n public static final int STATUS_TEMPERATURE_RANGE_5 = 0xF735;\n public static final int STATUS_TEMPERATURE_RANGE_6 = 0xF736;\n public static final int STATUS_TEMPERATURE_RANGE_7 = 0xF737;\n // Description:\n // Temperature value out-of-range [low/high/average]\n // Notes:\n // - Client should include at least one of the fields FIELD_TEMP_AVER,\n // FIELD_TEMP_LOW, or FIELD_TEMP_HIGH.\n\n public static final int STATUS_TEMPERATURE = 0xF7F1;\n // Description:\n // All temperature averages [aver/aver/aver/...]\n\n// ----------------------------------------------------------------------------\n// Miscellaneous\n\n public static final int STATUS_LOGIN = 0xF811;\n // Description:\n // Generic 'login'\n\n public static final int STATUS_LOGOUT = 0xF812;\n // Description:\n // Generic 'logout'\n\n public static final int STATUS_CONNECT = 0xF821;\n // Description:\n // Connect/Hook/On\n\n public static final int STATUS_DISCONNECT = 0xF822;\n // Description:\n // Disconnect/Drop/Off\n\n public static final int STATUS_ACK = 0xF831;\n // Description:\n // Acknowledge\n\n public static final int STATUS_NAK = 0xF832;\n // Description:\n // Negative Acknowledge\n\n// ----------------------------------------------------------------------------\n// Internal device status\n\n public static final int STATUS_LOW_BATTERY = 0xFD10;\n // Description:\n // Low battery indicator\n\n public static final int STATUS_POWER_FAILURE = 0xFD13;\n // Description:\n // Power failure indicator\n\n// ----------------------------------------------------------------------------\n \n}", "@Override\n public RestStatus status() {\n return response.status();\n }", "@Override\n\tpublic HttpStatus getStatusCode() {\n\t\treturn this.statusCode;\n\t}", "public static HttpStatus valueOf(int code) {\n return valuesByInt.get(code);\n }", "public int getStatusCode() {\n\t\treturn response.getStatusLine().getStatusCode();\n\t}", "private void setStatusCode(int code)\n {\n if(null == m_ElementStatus)\n m_ElementStatus = PSFUDDocMerger.createChildElement(m_Element,\n IPSFUDNode.ELEM_STATUS);\n\n if(null == m_ElementStatus) //never happens\n return;\n\n String tmp = null;\n try\n {\n tmp = Integer.toString(IPSFUDNode.STATUS_CODE_NORMAL); //default value\n tmp = Integer.toString(code);\n }\n catch(NumberFormatException e)\n {\n if(null == tmp) //should never happen\n tmp = \"\";\n }\n m_ElementStatus.setAttribute(IPSFUDNode.ATTRIB_CODE, tmp);\n }", "public int getStatusCode() {\r\n\t\treturn mStatus;\r\n\t}", "public int getHttpCode() {\n return httpCode;\n }", "private static String handleServerError(int statusCode, byte[] body,\r\n\t\t\tObject err, Context context) {\r\n\t\tIOException error = (IOException) err;\r\n\r\n\t\tswitch (statusCode) {\r\n\t\tcase 400:\r\n\t\t\ttry {\r\n\t\t\t\tString rspStr = new String(body);\r\n\t\t\t\tLog.i(TAG, \"error response : \" + rspStr.toString());\r\n\r\n\t\t\t\tResponseData rspData = new Gson().fromJson(rspStr,\r\n\t\t\t\t\t\tResponseData.class);\r\n\r\n\t\t\t\treturn rspStr;\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase 401:\r\n\t\t\tLog.i(TAG, \"error response, statusCode = \" + statusCode);\r\n\t\tcase 404:\r\n\t\tcase 422:\r\n\t\t\ttry {\r\n\t\t\t\t// server might return error like this { \"error\":\r\n\t\t\t\t// \"Some error occured\" }\r\n\t\t\t\t// Use \"Gson\" to parse the result\r\n\t\t\t\tString rspStr = new String(body);\r\n\t\t\t\tHashMap<String, String> result = new Gson().fromJson(\r\n\t\t\t\t\t\tnew String(body), new TypeToken<Map<String, String>>() {\r\n\t\t\t\t\t\t}.getType());\r\n\r\n\t\t\t\tif (result != null && result.containsKey(\"error\")) {\r\n\t\t\t\t\treturn result.get(\"error\");\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t// invalid request\r\n\t\t\treturn error.getMessage();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\treturn context.getResources().getString(R.string.generic_server_down);\r\n\t}", "private static Boolean compareStatusCode(String test, HttpResponse<InputStream> jsonResponse) {\n return test.equalsIgnoreCase(Integer.toString(jsonResponse.getStatus()));\n }", "public String getHttpStatusCode() {\n return this.httpStatusCode;\n }", "public HttpStatus getStatusCode() {\n return statusCode;\n }", "public static StatusCodeCondition statusCode(int code) {\n return new StatusCodeCondition(code);\n }", "public int[] getStatusCodes()\n {\n return this.statusCodes;\n }", "@Override\n public void setStatus(int sc) {\n this._getHttpServletResponse().setStatus(sc);\n }", "public HttpResponseCode getCode() {\n return code;\n }", "@Override\n\t\t\tpublic void onError(int httpcode) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\t\t\t\t\tpublic void HttpFail(int ErrCode) {\n\n\t\t\t\t\t\t\t}", "public void setStatusCode(int statusCode) {\r\n\t\tcheckHeaderGeneration();\r\n\t\tthis.statusCode = statusCode;\r\n\t}", "@Override\n public void onFailure(int statusCode, cz.msebera.android.httpclient.Header[] headers, byte[] bytes, Throwable throwable) {\n\n // Hide Progress Dialog\n prgDialog.hide();\n // When Http response code is '404'\n if (statusCode == 404) {\n Toast.makeText(getApplicationContext(),\n \"Requested resource not found\",\n Toast.LENGTH_LONG).show();\n }\n // When Http response code is '500'\n else if (statusCode == 500) {\n Toast.makeText(getApplicationContext(),\n \"Something went wrong at server end\",\n Toast.LENGTH_LONG).show();\n }\n // When Http response code other than 404, 500\n else {\n Toast.makeText(\n getApplicationContext(),\n \"Error Occured n Most Common Error: n1. Device not connected to Internetn2. Web App is not deployed in App servern3. App server is not runningn HTTP Status code : \"\n + statusCode, Toast.LENGTH_LONG)\n .show();\n }\n }", "public int getStatusCode()\n {\n return Integer.parseInt(startLine.split(\" \")[1]);\n }", "public StatusCodes getStatusCode() {\n\t\treturn statusCode;\n\t}", "public static Result with(final int status) {\n requireNonNull(status, \"A HTTP status is required.\");\n return new Result().status(status);\n }", "public void doError (int status, String message) {\n\tthis.statusCode = Integer.toString (status);\n\tHttpHeader header = responseHandler.getHeader (\"HTTP/1.0 400 Bad Request\");\n\tStringBuilder error = \n\t new StringBuilder (HtmlPage.getPageHeader (this, \"400 Bad Request\") +\n\t\t\t \"Unable to handle request:<br><b>\" + \n\t\t\t message +\n\t\t\t \"</b></body></html>\\n\");\n\theader.setContent (error.toString ());\n\tsendAndClose (header);\n }", "public void status(int major_version,\n int minor_version,\n int code,\n String reason_phrase) {\n mStatusCode = code;\n }", "public StatusCode getStatusCode() {\r\n\t\treturn statusCode;\r\n\t}", "public static Result status(int statusCode) {\n return new Result(statusCode);\n }", "public void onFail(int statusCode, String address);" ]
[ "0.75430274", "0.7481416", "0.7481416", "0.74297523", "0.73644227", "0.7245705", "0.72206247", "0.70602375", "0.70447993", "0.6923917", "0.69155777", "0.6858503", "0.68206656", "0.67015254", "0.67005265", "0.6609553", "0.6607836", "0.6606978", "0.6586669", "0.6555887", "0.6538893", "0.6534032", "0.65295446", "0.6508903", "0.64951086", "0.64939535", "0.6444275", "0.64362574", "0.6424216", "0.6417467", "0.6348629", "0.6348316", "0.63408077", "0.6339454", "0.6338516", "0.63312155", "0.6327066", "0.6326717", "0.6326018", "0.62722415", "0.6255371", "0.62512994", "0.6203717", "0.6203164", "0.62004524", "0.6195096", "0.619268", "0.619268", "0.619268", "0.619268", "0.6182035", "0.6157152", "0.6153922", "0.6149543", "0.6143906", "0.610746", "0.61037", "0.6076026", "0.60723984", "0.60723", "0.6064947", "0.6054724", "0.6034297", "0.6011822", "0.6001293", "0.5997441", "0.5992637", "0.59795755", "0.59746873", "0.5967507", "0.5963324", "0.59598094", "0.59532404", "0.5950561", "0.5949692", "0.59479463", "0.5927785", "0.58845925", "0.5883218", "0.58751005", "0.58713144", "0.58659524", "0.5852183", "0.58497924", "0.58495766", "0.58447266", "0.583818", "0.58349943", "0.5833745", "0.58162886", "0.5816267", "0.58062625", "0.57880133", "0.57858664", "0.5784685", "0.5776666", "0.57726425", "0.5769102", "0.576264", "0.5760802", "0.57585573" ]
0.0
-1
resets velocity to the initial speed
static void resetVelocity(){currentVelocity = INITIAL_SPEED;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearVelocity();", "public void resetYVel() {\n this.yVel = 0;\n }", "public void clearAngularVelocity();", "public void setVelocity () {\n\t\t\tfb5.getCommunicationModule().setClientHandler(null);\n\t\t\tif(state == BotMove.SHARP_RIGHT){\n\t\t\t\tfb5.setVelocity((byte)200,(byte)0);\n\t\t\t}\n\t\t\telse if(state == BotMove.LEFT){\n\t\t\t\tfb5.setVelocity((byte)100,(byte)200);\n\t\t\t}\n\t\t\telse if(state == BotMove.SOFT_RIGHT){\n\t\t\t\tfb5.setVelocity((byte)200,(byte)100);\n\t\t\t}\n\t\t\telse if(state == BotMove.FORWARD){\n\t\t\t\twt.turning = false;\n\t\t\t\tLog.d(TAG,\"Setting forward velocity\");\n\t\t\t\tfb5.setVelocity((byte)150,(byte)150);\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(state == BotMove.STOP){\n\t\t\t\twt.turning = false;\n\t\t\t\tfb5.setVelocity((byte)0,(byte)0);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfb5.moveForward();\n\t\t\tfb5.accModifiedStart();\n\t\t}", "public static void initVelocity() {\n }", "public void zeroSpeed() {\n controlRotator.proportionalSpeedSetter(0.0);\n }", "private void setInitialBallVelocity() {\n\t\tvx = rgen.nextDouble(1.0, 3.0);\n\t\tif (rgen.nextBoolean(0.5)) vx = -vx;\n\t\t\n\t\tvy = 3;\n\t}", "void setVelocity(int vel) {\n\t\tthis.velocity = vel;\n\t}", "public void resetSpeed()\r\n\t{\r\n\t\tcurrentSpeed = SnakeSpeed.DEFAULT;\r\n\t\tsnakes.get(snakeIndex).setSnakeSpeed(currentSpeed);\r\n\t}", "void setNormalSpeed () {\n if (stepDelay == normalSpeed)\n return;\n stepDelay = normalSpeed;\n resetLoop();\n }", "public void clearSpeed ()\n {\n ((Agent)_actor).setSpeed(((ActorConfig.Agent)_config).speed);\n }", "@Raw\n protected void setVelocity(double xVelocity, double yVelocity){\n if ( !isValidVelocity(xVelocity, yVelocity)){\n this.velocity.setVelocity(0.0, 0.0);\n }\n else {\n this.velocity.setVelocity(xVelocity, yVelocity);\n }\n }", "public void stop() {\n\t\tthis.velocity = 0.0;\n\t}", "public void setVelocity(Velocity velocity) {\r\n this.v.setVelocity(velocity);\r\n }", "public void resetXMovement() {\n this.xVel = 0;\n this.xTargetSpeed = 0;\n }", "public void setVelocity(Velocity velocity) {\n this.v = velocity;\n }", "public void setVelocity(Velocity v) {\n this.velocity = v;\n }", "public void setVelocity(Velocity v) {\n this.velocity = v;\n }", "public void setVelocity(Velocity v) {\n this.velocity = v;\n }", "public void setVelocity(double velocity) {\n m_motor.set(ControlMode.Velocity, toEncoderPulsesPer100ms(velocity));\n }", "public void updateVelocity(){\r\n if (getPosition().x <= 0 || getPosition().x >= GameBoard.MAX_X) {\r\n setVelocity(getVelocity().add(getVelocity().mul(reverse)));\r\n }\r\n }", "public void setVelocity(Velocity v) {\r\n this.vel = v;\r\n }", "public void reset(int x, int y) {\n ball.relocate(x, y);\n velX = 0;\n velY = 0;\n }", "public void setVelocity(Vector3d velocity) {\n getMotion().setVelocity(velocity);\n }", "private void reset() {\n\t\tmVelocityTracker.clear();\n\t\tmSwiping = false;\n\t\tmAbleToSwipe = false;\n\t}", "public void setSpeed( Vector2 sp ) { speed = sp; }", "protected void calcVelocity()\n\t{}", "public synchronized void reset(){\n\t\tif(motor.isMoving())\n\t\t\treturn;\n\t\tmotor.rotateTo(0);\n\t}", "private void updateVelocity() {\n\t \t//Update x velocity\n\t \tif (getNode().getTranslateX() > MAX_SPEED_X) {\n\t \t\tsetvX(MAX_SPEED_X);\n\t \t} else if (getNode().getTranslateX() < -MAX_SPEED_X) {\n\t \t\tsetvX(-MAX_SPEED_X);\n\t } else {\n\t \t\tsetvX(getNode().getTranslateX());\n\t \t}\n\n\t \t//Update x velocity\n\t \tif (getNode().getTranslateY() > MAX_SPEED_Y) {\n\t \t\tsetvY(MAX_SPEED_Y);\n\t \t} else if (getNode().getTranslateY() < -MAX_SPEED_Y) {\n\t \t\tsetvY(-MAX_SPEED_Y);\n\t \t} else {\n\t \t\tsetvY(getNode().getTranslateY());\n\t \t}\n\t }", "void resetMotionVector()\n {\n forwardVector.resetMotionVector();\n backwardVector.resetMotionVector();\n }", "public void doubleSpeed()\r\n {\r\n \tthis.speed= speed-125;\r\n \tgrafico.setVelocidad(speed);\r\n }", "public void setVelocity(double x, double y) {\n velocityX = x;\n velocityY = y;\n }", "public void setVelocity(Vector2d velocity) {\n\t\tthis.velocity=velocity;\n\t}", "protected void reInitialize() {\n leftSpeed = 0;\n rightSpeed = 0;\n leftPosition = 0;\n rightPosition = 0;\n }", "public void setCurrentSpeed (double speed);", "public void clearMovement( )\r\n {\r\n this.setVerticalAcceleration( 0.0f );\r\n this.setHorizontalAcceleration( 0.0f );\r\n this.setVerticalVelocity( 0.0f );\r\n this.setHorizontalVelocity( 0.0f );\r\n }", "protected void reset() {\n speed = 2.0;\n max_bomb = 1;\n flame = false;\n }", "void stop() {\n this.currentDirection = 0;\n this.currentVelocity = 0;\n }", "public void setSpeed() {\n if (this.equals(null)) {\n this.speedValue=-5;\n }\n }", "@Override\n public void move() {\n int speed = this.getSpeed();\n this.setSpeed(speed - 1);\n\n if (this.getSpeed() == 0) {\n super.move();\n this.setSpeed(1);\n }\n }", "public void setVelocity(float x, float y)\n\t{\n\t\tthis.vel.x = x;\n\t\tthis.vel.y = y;\n\t}", "public void setDefaultSpeed (double speed) {\n setDefaultSpeed(speed, -speed);\n }", "public void setVelocity(Vector2D velocity)\n\t{\n\t\tthis.velocity = velocity;\n\t}", "public void setVelocity(double x, double y) {\n getMotion().setVelocity(x, y);\n }", "public void decSpeed()\n\t{\n\t\tmoveVec.setLocation(moveVec.getX() * .9, moveVec.getY() * .9);\n\t\t//this.speed *= 0.9;\n\t}", "public void reset() {\r\n \ts.set(Constants.FRAME_WIDTH/2, Constants.FRAME_HEIGHT/2);\r\n \tshootdelay=500;\r\n \tbulletlife = 20;\r\n }", "public void setVelocity(double x, double y) {\n velocity[X] = x;\n velocity[Y] = y;\n //velocity[Z] = z;\n }", "public void startEngine(){\n currentSpeed = 0.1;\n }", "public Builder clearSpeed() {\n bitField0_ = (bitField0_ & ~0x00000080);\n speed_ = 0;\n onChanged();\n return this;\n }", "@Override\n\tpublic void reset() {\n\t\tsuper.reset();\n\t\tmSpeed = 0.0;\n\t\tmGoalAngle = 0.0;\n\t\tmCurrentAngle = mNavigation.getHeadingInDegrees();\n\t}", "public Builder clearSpeed() {\n bitField0_ = (bitField0_ & ~0x00001000);\n speed_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSpeed() {\n bitField0_ = (bitField0_ & ~0x00001000);\n speed_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSpeed() {\n bitField0_ = (bitField0_ & ~0x00001000);\n speed_ = 0;\n onChanged();\n return this;\n }", "public Builder clearSpeed() {\n bitField0_ = (bitField0_ & ~0x00000800);\n speed_ = 0;\n onChanged();\n return this;\n }", "public static void new_speed( Body body, double t ){\r\n body.currentState.vx = body.currentState.vx + body.currentState.ax * t; // new x velocity\r\n body.currentState.vy = body.currentState.vy + body.currentState.ay * t; // new y velocity\r\n body.currentState.vz = body.currentState.vz + body.currentState.az * t; // new z velocity\r\n }", "public void setVelocity(double velocity) {\n //set the velocity of the motors\n m_masterMotor.set(ControlMode.Velocity, velocity);\n \n //set our slave motors to follow master\n m_closeSlaveMotor.follow(m_masterMotor, FollowerType.PercentOutput);\n m_farSlaveMotor1.follow(m_masterMotor, FollowerType.PercentOutput);\n m_farSlaveMotor2.follow(m_masterMotor, FollowerType.PercentOutput);\n }", "public void setVelocity ( org.bukkit.util.Vector velocity ) {\n\t\texecute ( handle -> handle.setVelocity ( velocity ) );\n\t}", "@Override\n public void start() {\n\n runtime.reset();\n currentSpeedRight = 0.0;\n currentSpeedLeft = 0.0;\n // currentSpeedArm = 0.0;\n currentLiftSpeed = 0.0;\n robot.rearTouch.setMode(DigitalChannel.Mode.INPUT);\n }", "public void setVelocity(float dummyX, float dummyZ){\n\t\t\n\t}", "@Override\n public void initialize() {\n shooter.setShooterVelocity(speed);\n }", "public void resetSpeed() throws DynamicCallException, ExecutionException{\n call(\"resetSpeed\").get();\n }", "public void stopEngine(){\n currentSpeed = 0;\n }", "public void stopEngine(){\n currentSpeed = 0;\n }", "public GameObject setVelocity(Vector vel) {\n\t\tthis.velocity = vel;\n\t\treturn this;\n\t}", "public void setSpeed(float val) {speed = val;}", "@Override\n\tprotected void init() {\n\t\t//Set movementSpeed in px/s\n\t\tmovementSpeed = 100;\n\t\t//Set previousTime to start at the \n\t}", "public void changeSpeedD() {\n speedX *= -1;\n }", "public void setVelocity(double value) {\n _avTable.set(ATTR_VELOCITY, value);\n }", "public void setSpeedVector(Vector2D vector)\n {\n mSpeedVector = vector;\n }", "public void setSpeed() {\n //assigns the speed based on the shuffleboard with a default value of zero\n double tempSpeed = setpoint.getDouble(0.0);\n\n //runs the proportional control system based on the aquired speed\n controlRotator.proportionalSpeedSetter(tempSpeed);\n }", "public void update() {\n // Update velocity\n velocity.add(acceleration);\n // Limit speed\n velocity.limit(maxspeed);\n position.add(velocity);\n // Reset accelertion to 0 each cycle\n acceleration.mult(0);\n }", "public void update() {\n // Update velocity\n velocity.add(acceleration);\n // Limit speed\n velocity.limit(maxspeed);\n position.add(velocity);\n // Reset accelertion to 0 each cycle\n acceleration.mult(0);\n }", "public void setSpeed() {\n\t\tthis.ySpd = this.MINSPEED + randGen.nextFloat() * (this.MAXSPEED - this.MINSPEED);\n\t\tthis.xSpd = this.MINSPEED + randGen.nextFloat() * (this.MAXSPEED - this.MINSPEED);\n\t}", "private void driveLeft() {\n setSpeed(MIN_SPEED, MAX_SPEED);\n }", "@Override\n protected void initialize() {\n Robot.tilt.setSpeed(speed);\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 Builder clearSpeed() {\n \n speed_ = 0;\n onChanged();\n return this;\n }", "public void setSpeed(double speed) {\r\n this.speed = Math.min(1.0, Math.max(speed, 0));\r\n }", "private void setSpeed() {\n double cVel = cAccel*0.1;\n speed += round(mpsToMph(cVel), 2);\n speedOutput.setText(String.valueOf(speed));\n }", "public void setLeftSpeed(double speed) {\r\n flMotor.set(speed);\r\n blMotor.set(speed);\r\n }", "public void setFrontSpeed(double speed) { \r\n fmMotor.set(speed);\r\n }", "public void setVelocity(double lSpeed, double rSpeed)\n\t{\n\t\tdouble targetVelocityRight = rSpeed * Constants.velocityConstant;\n\t\tdouble targetVelocityLeft = lSpeed * Constants.velocityConstant;\n\t\trightSRX.set(ControlMode.Velocity, targetVelocityRight);\n\t\tleftSRX.set(ControlMode.Velocity, targetVelocityLeft);\n\t}", "private void setBallSpeed() {\n RandomGenerator rgen = RandomGenerator.getInstance();\n vx = rgen.nextDouble(1.0, 3.0);\n if (rgen.nextBoolean(0.5)) {\n vx = - vx;\n }\n vy = BALL_SPEED;\n }", "public void set(double speed) {\n\t\tcurrentSpeed = speed;\n\t\tmotor.set(speed);\n\t}", "public void SetSpeedRaw(double speed)\n {\n Motors.Set(speed);\n }", "public void setSpeed(double speed) {\n \tthis.speed = speed;\n }", "private void jump() {\r\n\t\tvelocity = new Vector(velocity.getX(), 7.0);\r\n\t}", "public Builder clearSpeed() {\n if (speedBuilder_ == null) {\n speed_ = org.auvua.utils.protobuffer.AUVprotocol.AUVCommand.Movement.getDefaultInstance();\n onChanged();\n } else {\n speedBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000001);\n return this;\n }", "public void setVelocity(String value) {\n setVelocity(Format.toDouble(value));\n }", "public void configVelocityControl() {\n leftDrive.configTeleopVelocity();\n rightDrive.configTeleopVelocity();\n }", "@Override\n\tpublic void step() {\n\t\tthis.y-= speed;\t\n\t}", "@Override\n\tpublic void setSpeed(float speed) {\n\t\t\n\t}", "public void reset()\r\n\t{\r\n\t\ttimer.stop();\r\n\t\ttimer.reset();\r\n\t\tautoStep = 0;\r\n\t}", "public void stop() {\n m_servo.setSpeed(0.0);\n }", "public void setSpeed(float speed_)\n\t{\n\t\tthis.speed=speed_;\n\t}", "private void driveRight() {\n setSpeed(MAX_SPEED, MIN_SPEED);\n }", "public void set(double speed) {\n\t\tleftIntake.set(speed);\n\t\trightIntake.set(-speed);\n\t}", "public void move() {\n\t\tthis.move(velocity.x, velocity.y);\n\t}", "public void brake(){\n if (speed <= 0){\n speed = 0;\n }\n else{\n speed -= 5;\n }\n }", "public void setVelocity(Vector2f n)\n\t{\n\t\tsetVelocity(n.x, n.y);\n\t}" ]
[ "0.7785736", "0.7305016", "0.7230584", "0.7168656", "0.7120393", "0.7073872", "0.70158815", "0.69860095", "0.69822073", "0.6914713", "0.69146335", "0.6850314", "0.68318784", "0.680559", "0.67815137", "0.67603964", "0.6756083", "0.6756083", "0.6756083", "0.6686895", "0.6679246", "0.666303", "0.663886", "0.66356605", "0.66124207", "0.65948784", "0.65905243", "0.6563928", "0.6521116", "0.651511", "0.64982057", "0.6496341", "0.64872867", "0.6461193", "0.6456838", "0.645285", "0.6447303", "0.64405257", "0.64374", "0.643407", "0.6433972", "0.64250344", "0.64225036", "0.6421971", "0.6410286", "0.64050883", "0.63934344", "0.6392112", "0.63774806", "0.63691694", "0.6364796", "0.6364796", "0.63634986", "0.63598067", "0.635313", "0.6351126", "0.63509995", "0.63486725", "0.6345499", "0.6344879", "0.63400096", "0.63367563", "0.63367563", "0.6324505", "0.6319497", "0.6315763", "0.63130456", "0.63091874", "0.6291468", "0.6286423", "0.6257115", "0.6257115", "0.6250625", "0.6238702", "0.62336886", "0.622645", "0.62219936", "0.6213788", "0.62080455", "0.6200304", "0.6188389", "0.61828196", "0.6168879", "0.6168329", "0.61654043", "0.6157648", "0.6144744", "0.61424166", "0.6128235", "0.6124472", "0.6120746", "0.61201316", "0.61181617", "0.6116276", "0.61155003", "0.61040133", "0.6101962", "0.6101058", "0.60954183", "0.6092723" ]
0.8882138
0
returns the current velocity
static int getVelocity(){return currentVelocity;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getCurrentVelocity( )\r\n {\r\n return Math.sqrt( this.h_velocity * this.h_velocity + this.v_velocity * this.v_velocity );\r\n }", "public Velocity getVelocity() {\r\n return this.v.getVelocity();\r\n }", "public double getVelocity() {\n return mV;\n }", "public double getVelocity()\n {\n return velocity * FPS;\n }", "@Override\n public double getVelocity()\n {\n final String funcName = \"getVelocity\";\n double velocity = encoder.getVelocity() * encoderSign / 60.0;\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", velocity);\n }\n\n return velocity;\n }", "private double getVelocity() {\n \tif (currentState == DriveState.accelerating) {\n \t\treturn acceleration * timer.get();\n \t}\n \telse if (currentState == DriveState.cruisung) {\n \t\treturn maxVelocity;\n \t}\n \telse if (currentState == DriveState.decelerating) {\n \t\treturn maxVelocity - acceleration * (timer.get());\n \t}\n \t\t\n \treturn 0;\n }", "public double getVelocity() {\n\t\treturn velocity.getlength();\n\t}", "public Velocity getVelocity() {\r\n return this.vel;\r\n }", "public double getVelocity() {\n \treturn this.currentSpeed;\n }", "public Velocity getVelocity() {\n return this.velocity;\n }", "public Velocity getVelocity() {\n return this.v;\n\n }", "public Point2D.Float getVelocity() {\r\n\t\treturn velocity;\r\n\t}", "public Vector2D getVelocity()\n\t{\n\t\treturn velocity;\n\t}", "public Vector2f getVelocity(){\n\t\treturn velocity.copy();\n\t}", "public org.bukkit.util.Vector getVelocity ( ) {\n\t\treturn invokeSafe ( \"getVelocity\" );\n\t}", "public final Vector2D getVelocity() {\n return velocity;\n }", "public float getVerticalVelocity( )\r\n {\r\n return this.v_velocity;\r\n }", "public Vector2f getVelocity()\n\t{\n\t\treturn this.vel;\n\t}", "public Vector3d getVelocity() {\n return getMotion().getVelocity();\n }", "protected void calcVelocity()\n\t{}", "public double getVelocity() {\n return _avTable.getDouble(ATTR_VELOCITY, 0.0);\n }", "public double getVelocity() {\n return 360000./(projDensity * projRadius);\n }", "@Override\n\tpublic double calculateVelocity() {\n\t\tdouble result = distance / time + velocitySame - velocityReverse;\n\t\treturn result;\n\t}", "public Vector2D getVelocity ();", "public int getVelocity()\n\t{\n\t\treturn logDx;\n\t}", "@Override\n public Point3D getValue() {\n return velocity;\n }", "public double getVelocity() {\n return spark_encoder.getVelocity();\n }", "public Point2D.Float getVelocityPPT() {\n return velocityPPT;\n }", "@Basic @Raw\n public double[] getVelocity(){\n \t return this.velocity.getVelocity();\n }", "public double getVelocityY() {\n\t\treturn velocity.getY();\n\t}", "public float getAngularVelocity () {\n\t\treturn body.getAngularVelocity();\n\t}", "double getVy() { return vel[1]; }", "double getVx() { return vel[0]; }", "@Override\n\tpublic float getAngularVelocity() {\n\t\treturn body.getAngularVelocity();\n\t}", "public Vector3f getAngularVelocity() {\n return Converter.convert(rBody.getAngularVelocity(tempVec));\n }", "@Override\n\tpublic Vector2 getLinearVelocity() {\n\t\treturn body.getLinearVelocity();\n\t}", "public int getXVelocity()\r\n {\r\n return xVel;\r\n }", "public double getYVel() {\n return this.yVel;\n }", "public double getVelocityX() {\n\t\treturn velocity.getX();\n\t}", "public float getCurrVelocity() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.widget.OppoScroller.getCurrVelocity():float, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.OppoScroller.getCurrVelocity():float\");\n }", "@Basic\n\tpublic double getYVelocity(){\n\t\treturn this.yVelocity;\n\t}", "double getVz() { return vel[2]; }", "private void calculateVelocity() {\n\t\tthis.velocity = Math.sqrt((this.roughRange *this.roughRange * this.gravity_Math)\n\t\t\t\t/ ((this.roughRange * Math.sin(2 * angle)) + (2\n\t\t\t\t\t\t* Constant.heroBaseHeight * Math.cos(angle) * Math\n\t\t\t\t\t\t\t.cos(angle))));\n\t\t\n\t}", "public VelocityEngine getVelocityEngine();", "public double getXVel() {\n return this.xVel;\n }", "public VelocityMetric velocityMetric() {\n _initialize();\n return velocityMetric;\n }", "public float getSpeed() {\n\t\tfloat result = (float) Math.sqrt(velocity.x * velocity.x + velocity.y * velocity.y);\n\t\treturn result;\n\t}", "public Point2D.Float getVelocityPPS() {\n return velocityPPS;\n /* old method for velocity estimation is as follows\n * The velocity is instantaneously\n * computed from the movement of the cluster caused by the last event, then this velocity is mixed\n * with the the old velocity by the mixing factor. Thus the mixing factor is appplied twice: once for moving\n * the cluster and again for changing the velocity.\n * */\n }", "public float getHorizontalVelocity( )\r\n {\r\n return this.h_velocity;\r\n }", "public double calculateVelocity(){\n double storyPoints = 0.0; // number of story points completed in total\n double numWeeks = BoardManager.get().getCurrentBoard().getAge()/7.0;\n LinkedList<Card> allCompletedCards = BoardManager.get().getCurrentBoard().getCardsOf(Role.COMPLETED_WORK);\n for (Card card : allCompletedCards) {\n storyPoints += card.getStoryPoints();\n }\n if (storyPoints == 0.0){\n return 0.0;\n }\n return Math.round(storyPoints/numWeeks * 100D) / 100D;\n }", "public Vector3f getLinearVelocity() {\r\n\t\treturn linearVelocity;\r\n\t}", "public double getCurrentSpeed();", "public float getHorizontalVelocity() {\n return mHorizontalVelocity;\n }", "public double getV() {\r\n return Math.sqrt(Math.pow(this.dx, 2) + Math.pow(this.dy, 2));\r\n }", "public float getMotor_lin_target_velocity() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 128);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 120);\n\t\t}\n\t}", "@Override\n\tpublic double calculateVelocity(Parrot parrot) {\n\t\treturn (parrot.getisNailed()) ? 0 : parrot.getBaseSpeed(parrot.getVoltage());\n\t}", "@Basic\n\tpublic double getXVelocity(){\n\t\treturn this.xVelocity;\n\t}", "public Vector3f getLinearVelocity() {\n return Converter.convert(rBody.getLinearVelocity(tempVec));\n }", "public double fromVelocityToSpeed() {\n return Math.sqrt(Math.pow(this.getDx(), 2) + Math.pow(this.getDy(), 2));\n }", "double getVerVel(double initial_ver_vel, double time)\n {\n uy = initial_ver_vel;\n t = time;\n vy = uy - (g*t);\n return vy;\n }", "@NativeType(\"ovrVector3f\")\n public OVRVector3f AngularVelocity() { return nAngularVelocity(address()); }", "public double getY_vel() {\n return this.y_vel;\n }", "public float getMotor_ang_target_velocity() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 132);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 124);\n\t\t}\n\t}", "public int getVelX() {\r\n\t\treturn velX;\r\n\t}", "public double[] getCurrentMotorVelocitiesInCentimetersPerSecond()\n {\n return finchController.getCurrentMotorVelocitiesInCentimetersPerSecond();\n }", "private Vector2D leftVelocity() {\n return new Vector2D(this.movementSpeed * this.differenceTime * -1, 0);\n }", "public double getCurrentSpeed(){\n return currentSpeed;\n }", "public double getCurrentSpeed(){\n return currentSpeed;\n }", "double getMotorVelocity( MotorName m ) {\n double vol = 0.0;\n if( motor_read_mode_==MotorBulkReadMode.BULK_READ_MANUAL && loop_cnt_!=last_motor_read_loop_id_ ) {\n // Important Step 4: If you are using MANUAL mode, you must clear the BulkCache once per control cycle\n for( LynxModule module : all_hubs_ ) {\n module.clearBulkCache();\n }\n }\n switch ( m ) {\n case MOTOR_LF:\n vol = motorLF_.getVelocity();\n break;\n case MOTOR_LB:\n vol = motorLB_.getVelocity();\n break;\n case MOTOR_RF:\n vol = motorRF_.getVelocity();\n break;\n case MOTOR_RB:\n vol = motorRB_.getVelocity();\n break;\n case MOTOR_LEFT_INTAKE:\n vol = motor_left_intake_.getVelocity();\n break;\n case MOTOR_RIGHT_INTAKE:\n vol = motor_right_intake_.getVelocity();\n break;\n case MOTOR_LIFT:\n vol = motor_lift_.getVelocity();\n break;\n default:\n break;\n }\n last_motor_read_loop_id_ = loop_cnt_ ;\n return vol;\n }", "public int[] getCurrentMotorVelocities()\n {\n return finchController.getCurrentMotorVelocities();\n }", "public Vector2f getVelocityAtPoint(final Vector2f point);", "public double getCurrentSpeed(){\r\n return speed;\r\n }", "private void UpdateVelocity()\n\t{\n\t\tVector2 currentPosition = new Vector2(parent.transform.position);\n\t\tVector2 newVelocity = Vector2.Add(currentPosition,previousPosition.negate());\n\t\tpreviousPosition = currentPosition;\n\t\t\n\t\tfloat currentRotation = parent.transform.rotation;\n\t\tangularVelocity = currentRotation - previousRotation;\n\t\tpreviousRotation = currentRotation;\n\t\t\n\t\tvelocity = newVelocity;\n\t}", "private Vector2D rightVelocity() {\n return new Vector2D(this.movementSpeed * this.differenceTime, 0);\n }", "@Basic\n\t@Raw\n\t@Immutable\n\tpublic static double getVelocityLowerBound() {\n\t\treturn VELOCITYLOWERBOUND;\n\t}", "private float getVelocity(float velocityDp) {\n return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, velocityDp,\n getResources().getDisplayMetrics());\n }", "public float getVerticalSpeed() { return VerticalSpeed; }", "private void updateVelocity() {\n\t \t//Update x velocity\n\t \tif (getNode().getTranslateX() > MAX_SPEED_X) {\n\t \t\tsetvX(MAX_SPEED_X);\n\t \t} else if (getNode().getTranslateX() < -MAX_SPEED_X) {\n\t \t\tsetvX(-MAX_SPEED_X);\n\t } else {\n\t \t\tsetvX(getNode().getTranslateX());\n\t \t}\n\n\t \t//Update x velocity\n\t \tif (getNode().getTranslateY() > MAX_SPEED_Y) {\n\t \t\tsetvY(MAX_SPEED_Y);\n\t \t} else if (getNode().getTranslateY() < -MAX_SPEED_Y) {\n\t \t\tsetvY(-MAX_SPEED_Y);\n\t \t} else {\n\t \t\tsetvY(getNode().getTranslateY());\n\t \t}\n\t }", "@Override\n\tpublic double getSelectedSensorVelocity() {\n return encoder.getVelocity();\n\t}", "public void updateVelocity(){\r\n if (getPosition().x <= 0 || getPosition().x >= GameBoard.MAX_X) {\r\n setVelocity(getVelocity().add(getVelocity().mul(reverse)));\r\n }\r\n }", "private static double calculateVelocity(double velocity, double deltaT, double acceleration) {\n return velocity + (deltaT * acceleration);\n }", "public VelocityEngine getVelocityEngine() {\n\t\treturn velocityEngine;\n\t}", "@Basic\n\t@Raw\n\t@Immutable\n\tpublic static double getVelocityUpperBound() {\n\t\treturn VELOCITYUPPERBOUND;\n\t}", "public double getVelocityRPM();", "double getVelComp(double vel, double angle)\n {\n angle = Math.toRadians(angle);\n double cos = Math.cos(angle);\n double sin = Math.sin(angle);\n ux = vel*cos;\n uy = vel*sin;\n this.angle = angle; \n return ux;\n }", "static void resetVelocity(){currentVelocity = INITIAL_SPEED;}", "@NativeType(\"ovrVector3f\")\n public OVRVector3f LinearVelocity() { return nLinearVelocity(address()); }", "public int getVy() { return vy; }", "public Vector3f getTranslationVel(int xform) {\n\t\treturn m_xforms[xform].m_translateVel;\n\t}", "@Basic @Raw @Immutable\n public double getMaxVelocity(){\n return this.maxVelocity = SPEED_OF_LIGHT;\n }", "List<Velocity> initialBallVelocities();", "public double getVelocitySize() {\r\n return Math.sqrt(this.dx * this.dx + this.dy * this.dy);\r\n }", "public Vector2D getSpeedVector()\n {\n return mSpeedVector;\n }", "public int getVx() { return vx; }", "public Vector2 getSpeed() { return speed; }", "public Vector3f getRotationVel(int xform) {\n\t\treturn m_xforms[xform].m_rotateVel;\n\t}", "double getHorVel(double initial_hor_vel)\n {\n ux = initial_hor_vel;\n vx = ux;\n return vx;\n }", "public Vector2d getVe() {\n return ve;\n }", "public double getV() {\r\n\t\treturn v;\t\r\n\t\t}", "@Basic\n\tpublic double getVy() {\n\t\treturn this.vy;\n\t}" ]
[ "0.88454854", "0.86896676", "0.8683883", "0.8647956", "0.86229753", "0.86172396", "0.8551012", "0.8542951", "0.85292375", "0.85144097", "0.8506006", "0.8502704", "0.8407023", "0.8382856", "0.8381167", "0.8257041", "0.82460546", "0.8191209", "0.81545085", "0.81423086", "0.81274784", "0.81122077", "0.80822045", "0.8064572", "0.8064423", "0.8017868", "0.7975583", "0.79530066", "0.77675486", "0.77367145", "0.7679159", "0.76540625", "0.7651038", "0.76274836", "0.759013", "0.75036675", "0.7496266", "0.7434924", "0.7398377", "0.73810107", "0.73413116", "0.7339737", "0.733045", "0.7317676", "0.72762847", "0.7241418", "0.7205457", "0.7197197", "0.71699566", "0.7134388", "0.7124903", "0.71213806", "0.7050341", "0.70366514", "0.7023118", "0.7021215", "0.7019797", "0.7014444", "0.7010195", "0.6992988", "0.69855434", "0.69841224", "0.69468606", "0.6928432", "0.69233656", "0.6921076", "0.6920414", "0.6920414", "0.6893232", "0.68906057", "0.6879863", "0.68524265", "0.6850861", "0.6850275", "0.68464684", "0.6837785", "0.68248534", "0.67744064", "0.6773989", "0.67623955", "0.67505276", "0.6738865", "0.6738815", "0.6735563", "0.67206085", "0.6719418", "0.67039776", "0.6686774", "0.6682382", "0.66664666", "0.6659884", "0.6650196", "0.6649796", "0.66177225", "0.65945834", "0.65593535", "0.6546761", "0.6537196", "0.65188843", "0.65011746" ]
0.82514507
16
Created by zhangjin on 2018/4/16
public interface ISpreadProfitRepository<T, ID extends Serializable> extends IHibernateGenericRepository<T, ID> { int total(String userId); int effective(String userId); List<SpreadProfitCommand> vote(Date date); Object[] todaySUm(String dateStr, String username); Object[] todayProfit(String id); Object[] yesterdayProfit(String id); Object[] weekProfit(String id); Object[] lastWeekProfit(String id); Object[] monthProfit(String id); List<ProfitDetailedCommand> profitDetailed(String id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\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 rozmnozovat() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "private void strin() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "public void mo38117a() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo4359a() {\n }", "private void kk12() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "private void init() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void memoria() {\n \n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "public void mo6081a() {\n }", "@Override\n protected void initialize() {\n\n \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 public void init() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\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\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "private void init() {\n\n\n\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "private zza.zza()\n\t\t{\n\t\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "private void m50366E() {\n }", "@Override\n protected void init() {\n }", "public void baocun() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n public void init() {}", "@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\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}" ]
[ "0.5957524", "0.5819731", "0.57614285", "0.57614285", "0.57598513", "0.5750915", "0.5721902", "0.56997836", "0.56738746", "0.56616914", "0.5655489", "0.5575329", "0.55696607", "0.5554577", "0.5552403", "0.55501246", "0.55398166", "0.5536219", "0.5531765", "0.55302066", "0.5517461", "0.55090255", "0.5498303", "0.54600567", "0.54540324", "0.54224205", "0.5418423", "0.54152125", "0.5407327", "0.5397737", "0.5386768", "0.5379178", "0.5377755", "0.5376815", "0.5350212", "0.5350212", "0.5350212", "0.5350212", "0.5350212", "0.5350212", "0.5350212", "0.5348128", "0.5348128", "0.5348128", "0.5348128", "0.5348128", "0.5346479", "0.53401357", "0.533153", "0.533137", "0.531116", "0.531116", "0.52972585", "0.5295499", "0.52930564", "0.5291022", "0.5291022", "0.5291022", "0.5288802", "0.5279084", "0.52701545", "0.526602", "0.52651733", "0.52651733", "0.52651733", "0.52498734", "0.5247582", "0.52466595", "0.52466446", "0.5239937", "0.52383786", "0.5229955", "0.5227039", "0.5227039", "0.5227039", "0.52249956", "0.52249956", "0.52246875", "0.5223885", "0.5222113", "0.5218942", "0.521872", "0.5213091", "0.52102536", "0.52037185", "0.52021956", "0.51921034", "0.5181402", "0.51795554", "0.51734203", "0.5173391", "0.51700073", "0.51700073", "0.51700073", "0.51700073", "0.51700073", "0.51700073", "0.5169613", "0.51693696", "0.51693696", "0.51642555" ]
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column msm_trac_log.ASSIGN_LOG_ID
public Long getAssignLogId() { return assignLogId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAssignLogId(Long assignLogId) {\n this.assignLogId = assignLogId;\n }", "public Long getParentAssignLogId() {\n return parentAssignLogId;\n }", "public String getAssignid() {\n return assignid;\n }", "public String getLogId() {\r\n return logId;\r\n }", "public Integer getLogid() {\n return logid;\n }", "public int getLogid() {\n\treturn logid;\n}", "public String getAccountLogId() {\n return accountLogId;\n }", "public Long getAssignOrgId() {\n return assignOrgId;\n }", "public ID getAssignedID() {\r\n return assignedID;\r\n }", "int getLogId();", "public String getAssignno() {\n return assignno;\n }", "public StrColumn getIprId() {\n return delegate.getColumn(\"ipr_id\", DelegatingStrColumn::new);\n }", "public Long getAssignOperatorId() {\n return assignOperatorId;\n }", "public long getAuditLogId() {\n return auditLogId;\n }", "public void setParentAssignLogId(Long parentAssignLogId) {\n this.parentAssignLogId = parentAssignLogId;\n }", "public int getID() {\n return reportID;\n }", "public void setAssignid(String assignid) {\n this.assignid = assignid == null ? null : assignid.trim();\n }", "public String getFlowLogId() {\n return this.flowLogId;\n }", "public int highestlogID() {\n\n int count = 0;\n LogDAO ldao = new LogDAO();\n ldao.connect();\n try {\n String query = \"SELECT log_id FROM log ORDER BY log_id DESC;\";\n Statement st = connection.createStatement();\n ResultSet rs = st.executeQuery(query);\n rs.next();\n count = rs.getInt(1);\n ldao.closeConnection();\n return count;\n } catch (SQLException ex) {\n ldao.closeConnection();\n System.out.println(\"SQLException in highestlogID()\");\n }\n return count;\n }", "public void setLogid(Integer logid) {\n this.logid = logid;\n }", "@Override\n public String getSafeNodeIdForLOG() {\n return nodeId == null ? \"null\" : nodeId.getValue();\n }", "public String getPayLogId() {\n return payLogId;\n }", "@Override\n\tpublic long getAssignmentId() {\n\t\treturn model.getAssignmentId();\n\t}", "public void setLogId(String logId) {\r\n this.logId = logId == null ? null : logId.trim();\r\n }", "String labPlanId();", "public void setAuditLogId(long value) {\n this.auditLogId = value;\n }", "public void setAssignOrgId(Long assignOrgId) {\n this.assignOrgId = assignOrgId;\n }", "public DataRecord getAssignRecord() {\r\n String[] activeStates = currentProcessInstance.getActiveStates();\r\n Actor[] actors = null;\r\n \r\n try {\r\n DataRecord data = getAssignTemplate().getEmptyRecord();\r\n \r\n for (int i = 0; activeStates != null && i < activeStates.length; i++) {\r\n actors = currentProcessInstance.getWorkingUsers(activeStates[i]);\r\n \r\n for (int j = 0; actors != null && j < actors.length; j++) {\r\n Field field = data.getField(activeStates[i] + \"_\"\r\n + actors[j].getUserRoleName() + \"_\" + j);\r\n String value = actors[j].getUser().getUserId();\r\n \r\n if (value != null) {\r\n field.setStringValue(value);\r\n }\r\n }\r\n }\r\n \r\n return data;\r\n } catch (WorkflowException e) {\r\n SilverTrace.warn(\"processManager\", \"SessionController.getAssignRecord\",\r\n \"processManager.EX_ERR_GET_DATARECORD\", e);\r\n return null;\r\n } catch (ProcessManagerException e) {\r\n SilverTrace.warn(\"processManager\", \"SessionController.getAssignRecord\",\r\n \"processManager.EX_ERR_GET_DATARECORD\", e);\r\n return null;\r\n } catch (FormException e) {\r\n SilverTrace.warn(\"processManager\", \"SessionController.getAssignRecord\",\r\n \"processManager.EX_ERR_GET_FIELD\");\r\n return null;\r\n }\r\n }", "int getReprojectedModisId(String project, DataDate date) throws SQLException;", "public int highestUserlogID() {\n\n int count = 0;\n LogDAO ldao = new LogDAO();\n ldao.connect();\n try {\n String query = \"SELECT log_id FROM log_user ORDER BY log_id DESC;\";\n Statement st = connection.createStatement();\n ResultSet rs = st.executeQuery(query);\n rs.next();\n count = rs.getInt(1);\n ldao.closeConnection();\n return count;\n } catch (SQLException ex) {\n ldao.closeConnection();\n System.out.println(\"SQLException in highestUserlogID()\");\n }\n return count;\n }", "@Schema(description = \"The ID of the worklog record.\")\n public String getId() {\n return id;\n }", "public void setAssignOperatorId(Long assignOperatorId) {\n this.assignOperatorId = assignOperatorId;\n }", "private MapDBLabelToId() {\n\t\tproperties = new ProjectProperties(this.getClass());\n\n\t\tmap = db.getCollection(COLLECTION_NAME);\n\t\t// commitFrequency = properties.getInt(\"mapdb.commit\");\n\t}", "public BigDecimal getREPORT_ID() {\r\n return REPORT_ID;\r\n }", "protected String getReportId( HttpServletRequest request )\n {\n return (String) request.getParameter( REPORT_ID_HTTP_PARAM );\n }", "private int getEmployeeId() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tint employeeId1 = 0;\r\n\t\tString sql = \"SELECT Patient_Id_Sequence.NEXTVAL FROM DUAL\";\r\n\t\ttry {\r\n\t\t\tPreparedStatement pstmt = con.prepareStatement(sql);\r\n\t\t\tResultSet res = pstmt.executeQuery();\r\n\t\t\tif (res.next()) {\r\n\t\t\t\temployeeId1 = res.getInt(1);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"error while fetching data from database\");\r\n\t\t}\r\n\t\treturn employeeId1;\r\n\r\n\t}", "public String getAssignType() {\n return assignType;\n }", "public String getReportID() {\r\n\t\treturn lookupValue(Params.REPORT_ID);\r\n\t}", "public Integer getId()\r\n\t\t{ return mapping.getId(); }", "public int getAuditId();", "public Integer getReportId() {\n return reportId;\n }", "int getReprojectedTrmmId(String project, DataDate date) throws SQLException;", "public Long getReportId() {\n return reportId;\n }", "public StrColumn getRobotId() {\n return delegate.getColumn(\"robot_id\", DelegatingStrColumn::new);\n }", "public void setLogCorrelationIDString(java.lang.String param){\n localLogCorrelationIDStringTracker = true;\n \n this.localLogCorrelationIDString=param;\n \n\n }", "public String getEventidforAssigning(String eventId){\n System.out.println(\"hello\" + eventId);\n ViewObjectImpl usersVO = this.getEventCandidateDatawithName1();\n usersVO.setApplyViewCriteriaName(\"EventCandidateDatawithNameCriteria\");\n usersVO.setNamedWhereClauseParam(\"pid\",eventId);\n usersVO.executeQuery();\n // System.out.println(usersVO);\n Row usersVORow = usersVO.first();\n // System.out.println(usersVORow);\n // System.out.println(usersVORow.getAttribute(\"EVENT_ID\").toString());\n return (usersVORow != null) ? usersVORow.getAttribute(\"EVENT_ID\").toString(): null;\n }", "public java.lang.String getLogCorrelationIDString(){\n return localLogCorrelationIDString;\n }", "private int save_InsertGetInsertId() {\n\t\t\n\t\tfinal String INSERT_SQL = \"INSERT INTO project__insert_id_tbl ( ) VALUES ( )\";\n\t\t\n\t\t// Use Spring JdbcTemplate so Transactions work properly\n\t\t\n\t\t// How to get the auto-increment primary key for the inserted record\n\t\t\n\t\ttry {\n\t\t\tKeyHolder keyHolder = new GeneratedKeyHolder();\n\t\t\tint rowsUpdated = this.getJdbcTemplate().update(\n\t\t\t\t\tnew PreparedStatementCreator() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic PreparedStatement createPreparedStatement(Connection connection) throws SQLException {\n\n\t\t\t\t\t\t\tPreparedStatement pstmt =\n\t\t\t\t\t\t\t\t\tconnection.prepareStatement( INSERT_SQL, Statement.RETURN_GENERATED_KEYS );\n\n\t\t\t\t\t\t\treturn pstmt;\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tkeyHolder);\n\n\t\t\tNumber insertedKey = keyHolder.getKey();\n\t\t\t\n\t\t\tlong insertedKeyLong = insertedKey.longValue();\n\t\t\t\n\t\t\tif ( insertedKeyLong > Integer.MAX_VALUE ) {\n\t\t\t\tString msg = \"Inserted key is too large, is > Integer.MAX_VALUE. insertedKey: \" + insertedKey;\n\t\t\t\tlog.error( msg );\n\t\t\t\tthrow new LimelightInternalErrorException( msg );\n\t\t\t}\n\t\t\t\n\t\t\tint insertedKeyInt = (int) insertedKeyLong; // Inserted auto-increment primary key for the inserted record\n\t\t\t\n\t\t\treturn insertedKeyInt;\n\t\t\t\n\t\t} catch ( RuntimeException e ) {\n\t\t\tString msg = \"SQL: \" + INSERT_SQL;\n\t\t\tlog.error( msg, e );\n\t\t\tthrow e;\n\t\t}\n\t}", "public long getReportID() {\n //reportID++;\n return reportID++;\n }", "public Number getProjectId() {\n return (Number) getAttributeInternal(PROJECTID);\n }", "public EntityID getAssignedAgentID();", "public Integer getTargetID()\r\n\t\t{ return mapping.getTargetId(); }", "private int getExperimentId(Comparable accession) {\n String query = \"SELECT experiment_id FROM pride_experiment WHERE accession= ?\";\n return jdbcTemplate.queryForInt(query, accession);\n }", "public int getId() {\n\t\treturn _dmHistoryMaritime.getId();\n\t}", "public int getPlanner_ID() {\n\t\tInteger ii = (Integer) get_Value(\"Planner_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public boolean isIDASSIGNFLAG() {\n return idassignflag;\n }", "public YangString getPlmnIdValue() throws JNCException {\n return (YangString)getValue(\"plmn-id\");\n }", "public int getLeadID(String l) {\n this.connect();\n String sqlLead = \"SELECT leadID FROM leads WHERE name = ?\";\n int lID = 0;\n\n try (Connection conn = this.getConnection();\n PreparedStatement lead = conn.prepareStatement(sqlLead)) {\n lead.setString(1, l);\n ResultSet rsL = lead.executeQuery();\n if (rsL.next()) {\n lID = rsL.getInt(\"leadID\");\n } else {\n System.out.println(\"Lead not in database!\");\n lID = addLead(l);\n }\n } catch(SQLException e) {\n System.out.println(e.getMessage());\n }\n return lID;\n }", "public ScGridColumn<AcActionAutoCorrectedLog> newActualSubjectId1Column()\n {\n return newActualSubjectId1Column(\"Actual Subject Id1\");\n }", "@Override\r\n\tpublic Log add(Log log) {\n\t\tConnection con = MysqlDatabase.getInstance().getConnection();\r\n\t\tLog l = null;\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(Add, PreparedStatement.RETURN_GENERATED_KEYS);\r\n\t\t\tps.setTimestamp(1, log.getTime());\r\n\t\t\tps.setInt(2, log.getEmpId());\r\n\t\t\tps.setString(3, log.getEmpName());\r\n\t\t\tps.setString(4, log.getTopName());\r\n\t\t\tps.setString(5, log.getTopUsername());\r\n\t\t\tps.setString(6, log.getBottomName());\r\n\t\t\tps.setString(7, log.getBottomUsername());\r\n\t\t\tps.setString(8, log.getOperation());\r\n\t\t\tps.setString(9, log.getType());\r\n\t\t\tint cnt = ps.executeUpdate();\r\n\t\t\tif (cnt > 0) {\r\n\t\t\t\tResultSet rs = ps.getGeneratedKeys();\r\n\t\t\t\tif (rs.next()) {\r\n\t\t\t\t\tl = get(rs.getInt(1));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn l;\r\n\t}", "@Override\n\tpublic int toAudit(int receptionID) {\n\t\treturn settlementDao.toAudit(true,receptionID);\n\t}", "@Override\n public String getLogChannelId() {\n return logChannel.getLogChannelId();\n }", "public StrColumn getJournalIdASTM() {\n return delegate.getColumn(\"journal_id_ASTM\", DelegatingStrColumn::new);\n }", "public StrColumn getJournalIdISSN() {\n return delegate.getColumn(\"journal_id_ISSN\", DelegatingStrColumn::new);\n }", "public String getReportId() {\r\n return reportId;\r\n }", "public final void rule__AstAssignParameter__NameAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:23009:1: ( ( RULE_ID ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:23010:1: ( RULE_ID )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:23010:1: ( RULE_ID )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:23011:1: RULE_ID\n {\n before(grammarAccess.getAstAssignParameterAccess().getNameIDTerminalRuleCall_0_0()); \n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__AstAssignParameter__NameAssignment_046110); \n after(grammarAccess.getAstAssignParameterAccess().getNameIDTerminalRuleCall_0_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public String getTransLogId() {\n return transLogId;\n }", "public void setAccountLogId(String accountLogId) {\n this.accountLogId = accountLogId == null ? null : accountLogId.trim();\n }", "public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }", "public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }", "public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }", "public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }", "public StrColumn getRevisionId() {\n return delegate.getColumn(\"revision_id\", DelegatingStrColumn::new);\n }", "int getReprojectedEtoId(String project, DataDate date) throws SQLException;", "public int getLCO_DIAN_SendSchedule_ID () \n\t{\n\t\tInteger ii = (Integer)get_Value(COLUMNNAME_LCO_DIAN_SendSchedule_ID);\n\t\tif (ii == null)\n\t\t\t return 0;\n\t\treturn ii.intValue();\n\t}", "TrackerAssigned getTrackerAssigned(final Integer id);", "public java.lang.String getPresentid(){\r\n return localPresentid;\r\n }", "public IntColumn getLabelSeqId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"label_seq_id\", IntColumn::new) :\n getBinaryColumn(\"label_seq_id\"));\n }", "public Integer getModifyEmpId() {\n return modifyEmpId;\n }", "java.lang.String getLoginId();", "String getGlJournalId();", "public void setAssignno(String assignno) {\n this.assignno = assignno == null ? null : assignno.trim();\n }", "public Long getConversionTrackerId() {\r\n return conversionTrackerId;\r\n }", "public ScGridColumn<AcActionAutoCorrectedLog> newActualSubjectId3Column()\n {\n return newActualSubjectId3Column(\"Actual Subject Id3\");\n }", "@Override\n\tpublic long getEmpId() {\n\t\treturn _employee.getEmpId();\n\t}", "public static Integer getLoginUserId() {\n\t\treturn null;\r\n\t}", "public StrColumn getEntityId() {\n return delegate.getColumn(\"entity_id\", DelegatingStrColumn::new);\n }", "public int getM_Splitting_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Splitting_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "void add_collab_prnc() {\n\t\ttry {\n\t\t\tjdbc.setConnection();\n\t\t\tStatement stm=jdbc.setConnection().createStatement();\n\t\t\tString strcheck=\"select id from utilisateur where username=\"+'\"'+login_class.UsernameLog+'\"';\n\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\tResultSet res = stm.executeQuery(strcheck);\n\t\t\t\n\t\t\t\n\t\t\twhile (res.next()) {\n\t\t\t\tsimple_users_select_list_id.add(res.getInt(\"id\"));\n\t\t\t}\n\t\t\tjdbc.setConnection().close();\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}", "public int getSalesRep_ID();", "public int getSalesRep_ID();", "public int getId() {\n return parameter.getId();\n }", "@Override\r\n\tpublic Integer getCurrentInsertID() throws Exception {\n\t\treturn sqlSession.selectOne(namespaceOrder+\".getLastInsertID\");\r\n\t}", "public long getPhoneLogId() {\n return mId;\n }", "public Integer getLoginid() {\n return loginid;\n }", "public Long getRoomstlogid()\n {\n return roomstlogid; \n }", "public int getId(){\n if (ID != null) {\n int i = Integer.parseInt(ID);\n return i;\n }\n return 0;\n }", "public int getLBR_NotaFiscal_ID();", "@Override\n\tpublic List<Long> getIdByMlFlowHistoryId(Long mlFlowHistoryId) {\n\t\treturn elementHistoryRepository.getIdByMlFlowId(mlFlowHistoryId);\n\t}", "public int getIdAssignedByR(Context pContext, String pIdString)\n\t{\n\t Resources resources = pContext.getResources();\n\t String packageName = pContext.getPackageName();\n\n\t // Determine the result and return it\n\t int result = resources.getIdentifier(pIdString, \"id\", packageName);\n\t return result;\n\t}" ]
[ "0.6608775", "0.6018982", "0.5996919", "0.5729636", "0.56824344", "0.55988836", "0.5554748", "0.53750306", "0.5355599", "0.53499615", "0.53098726", "0.5294938", "0.52730185", "0.52695537", "0.51833695", "0.50271106", "0.49850553", "0.496556", "0.49420902", "0.49317735", "0.49171183", "0.49134248", "0.4874392", "0.4833184", "0.480628", "0.4763395", "0.47511587", "0.4741744", "0.47305304", "0.47085807", "0.47010475", "0.46829355", "0.46626318", "0.46590295", "0.46477082", "0.46183187", "0.46087712", "0.45973167", "0.4593142", "0.45880115", "0.45796412", "0.45754066", "0.45679256", "0.45670587", "0.45665368", "0.45635825", "0.4559518", "0.4559481", "0.45557302", "0.45427278", "0.45216572", "0.44943032", "0.44909498", "0.44745278", "0.4460741", "0.44519714", "0.445085", "0.44456074", "0.44443718", "0.44301224", "0.44199374", "0.44153625", "0.44064787", "0.44036707", "0.439998", "0.43814752", "0.43778864", "0.43717796", "0.43707088", "0.43707088", "0.43707088", "0.43707088", "0.4365841", "0.43551332", "0.43489802", "0.43476173", "0.43459713", "0.4344084", "0.4343037", "0.43338385", "0.43329328", "0.43327886", "0.43316698", "0.43305948", "0.4324327", "0.43222567", "0.4320975", "0.43202823", "0.431953", "0.43180522", "0.43180522", "0.4316291", "0.43154734", "0.43124688", "0.43092415", "0.43080848", "0.4308012", "0.43010545", "0.4292267", "0.42905548" ]
0.7446905
0
This method was generated by MyBatis Generator. This method sets the value of the database column msm_trac_log.ASSIGN_LOG_ID
public void setAssignLogId(Long assignLogId) { this.assignLogId = assignLogId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getAssignLogId() {\n return assignLogId;\n }", "public void setParentAssignLogId(Long parentAssignLogId) {\n this.parentAssignLogId = parentAssignLogId;\n }", "public void setAssignid(String assignid) {\n this.assignid = assignid == null ? null : assignid.trim();\n }", "public String getAssignid() {\n return assignid;\n }", "public void setLogId(String logId) {\r\n this.logId = logId == null ? null : logId.trim();\r\n }", "public void setLogid(Integer logid) {\n this.logid = logid;\n }", "public void setAssignOrgId(Long assignOrgId) {\n this.assignOrgId = assignOrgId;\n }", "public Long getParentAssignLogId() {\n return parentAssignLogId;\n }", "public void setAuditLogId(long value) {\n this.auditLogId = value;\n }", "public void setLogCorrelationIDString(java.lang.String param){\n localLogCorrelationIDStringTracker = true;\n \n this.localLogCorrelationIDString=param;\n \n\n }", "public void setAssignOperatorId(Long assignOperatorId) {\n this.assignOperatorId = assignOperatorId;\n }", "public Long getAssignOrgId() {\n return assignOrgId;\n }", "public void setPresentid(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localPresentidTracker = true;\r\n } else {\r\n localPresentidTracker = false;\r\n \r\n }\r\n \r\n this.localPresentid=param;\r\n \r\n\r\n }", "public void setLog(Log log) throws SQLException {\n this.log = log;\n\n commentField.setText(log.getComment());\n timeField.setText(String.valueOf(log.getTime()));\n }", "private void setEmployeeID() {\n try {\n employeeID = userModel.getEmployeeID(Main.getCurrentUser());\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void setId(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n localIdTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.localId=param;\r\n \r\n\r\n }", "public void setAccountLogId(String accountLogId) {\n this.accountLogId = accountLogId == null ? null : accountLogId.trim();\n }", "public void setId(long param) {\n localIdTracker = param != java.lang.Long.MIN_VALUE;\r\n\r\n this.localId = param;\r\n }", "public void setAssignno(String assignno) {\n this.assignno = assignno == null ? null : assignno.trim();\n }", "public void setId(java.lang.String param) {\n localIdTracker = true;\n\n this.localId = param;\n }", "public void setId(java.lang.String param) {\n localIdTracker = true;\n\n this.localId = param;\n }", "public final void mASSIGN() throws RecognitionException {\n try {\n int _type = ASSIGN;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2775:3: ( ':=' )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2776:3: ':='\n {\n match(\":=\"); if (state.failed) return ;\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "protected void setId(EmployeeLeave employeeLeave, ResultSet rs, int rowNumber) throws SQLException{\n\t\tString id = rs.getString(EmployeeLeaveTable.COLUMN_ID);\n\t\tif(id == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\n\t\temployeeLeave.setId(id);\n\t}", "public Long getAssignOperatorId() {\n return assignOperatorId;\n }", "public void setREPORT_ID(BigDecimal REPORT_ID) {\r\n this.REPORT_ID = REPORT_ID;\r\n }", "public ID getAssignedID() {\r\n return assignedID;\r\n }", "public final void rule__AstAssignParameter__NameAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:23009:1: ( ( RULE_ID ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:23010:1: ( RULE_ID )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:23010:1: ( RULE_ID )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:23011:1: RULE_ID\n {\n before(grammarAccess.getAstAssignParameterAccess().getNameIDTerminalRuleCall_0_0()); \n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__AstAssignParameter__NameAssignment_046110); \n after(grammarAccess.getAstAssignParameterAccess().getNameIDTerminalRuleCall_0_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public void setIDASSIGNFLAG(boolean value) {\n this.idassignflag = value;\n }", "public final void mAssign() throws RecognitionException {\r\n\t\ttry {\r\n\t\t\tint _type = Assign;\r\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\r\n\t\t\t// C:\\\\Users\\\\don\\\\workspace\\\\sea-of-ql-repo-3\\\\ckonig\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:166:9: ( ':' )\r\n\t\t\t// C:\\\\Users\\\\don\\\\workspace\\\\sea-of-ql-repo-3\\\\ckonig\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:166:11: ':'\r\n\t\t\t{\r\n\t\t\tmatch(':'); \r\n\t\t\t}\r\n\r\n\t\t\tstate.type = _type;\r\n\t\t\tstate.channel = _channel;\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\t// do for sure before leaving\r\n\t\t}\r\n\t}", "public void setSpid(int param){\n localSpidTracker = true;\n \n this.localSpid=param;\n \n\n }", "public void setAssignType(String assignType) {\n this.assignType = assignType == null ? null : assignType.trim();\n }", "protected void setId(UiAction uiAction, ResultSet rs, int rowNumber) throws SQLException{\n\t\t\n\t\tString id = rs.getString(UiActionTable.COLUMN_ID);\n\t\t\n\t\tif(id == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tuiAction.setId(id);\n\t}", "public void setClLog(String clLog) {\r\n this.clLog = clLog;\r\n }", "public void setId(int aMonthId) {\r\n\t\tid = aMonthId;\r\n\t}", "public String getLogId() {\r\n return logId;\r\n }", "public void setLinkid(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localLinkidTracker = true;\r\n } else {\r\n localLinkidTracker = false;\r\n \r\n }\r\n \r\n this.localLinkid=param;\r\n \r\n\r\n }", "public void setSpId(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localSpIdTracker = true;\r\n } else {\r\n localSpIdTracker = false;\r\n \r\n }\r\n \r\n this.localSpId=param;\r\n \r\n\r\n }", "public String getAssignno() {\n return assignno;\n }", "public int getLogid() {\n\treturn logid;\n}", "public void setRoomstlogid(Long newVal) {\n if ((newVal != null && this.roomstlogid != null && (newVal.compareTo(this.roomstlogid) == 0)) || \n (newVal == null && this.roomstlogid == null && roomstlogid_is_initialized)) {\n return; \n } \n this.roomstlogid = newVal; \n roomstlogid_is_modified = true; \n roomstlogid_is_initialized = true; \n }", "public void assignId(int id);", "public String getAccountLogId() {\n return accountLogId;\n }", "public void setLog(Log log) {\r\n this.delegate.setLog(log);\r\n }", "public void setPID(java.lang.String param) {\r\n localPIDTracker = param != null;\r\n\r\n this.localPID = param;\r\n }", "public void setLOG(Logger newLog)\r\n\t{\r\n\t\tlog = newLog;\r\n\t}", "public void setIdentifier(FactIdentifier param) {\r\n localIdentifierTracker = true;\r\n\r\n this.localIdentifier = param;\r\n\r\n\r\n }", "public void setLogObject(Log logObject_) {\n\t\tlogObject = logObject_;\n\t\tlog( \"deviceId \" + deviceId, Log.Level.Information );\n\t\tlog( \"location \" + location, Log.Level.Information );\n\t}", "public Integer getLogid() {\n return logid;\n }", "public void setRelProjectId(int v) throws TorqueException\n {\n \n if (this.relProjectId != v)\n {\n this.relProjectId = v;\n setModified(true);\n }\n \n \n if (aProjectRelatedByRelProjectId != null && !(aProjectRelatedByRelProjectId.getProjectId() == v))\n {\n aProjectRelatedByRelProjectId = null;\n }\n \n }", "public Set<PITAttributeAssignValue> findByPITAttributeAssignId(String attributeAssignId, QueryOptions queryOptions);", "@Override\n public void addWorklogId(int worklogId) {\n\n try (Connection connection = database.connect();\n PreparedStatement stmt = connection.prepareStatement(ADD_WORKLOG_ID_SQL)) {\n stmt.setInt(1, worklogId);\n stmt.executeUpdate();\n } catch (SQLException e) {\n logger.logToDatabase(getClass().getName(), \"addWorklogId\", e);\n throw new InternalServerErrorException(e.getMessage());\n }\n }", "public void setUserId(java.lang.String param) {\r\n localUserIdTracker = param != null;\r\n\r\n this.localUserId = param;\r\n }", "public void setUserId(java.lang.String param) {\r\n localUserIdTracker = param != null;\r\n\r\n this.localUserId = param;\r\n }", "public void setLogtime(Date logtime)\r\n {\r\n this.logtime = logtime;\r\n }", "public static void setLogNode(LogNode node) {\n mLogNode = node;\n }", "public void setUserID(java.lang.String param) {\r\n localUserIDTracker = param != null;\r\n\r\n this.localUserID = param;\r\n }", "private Expr visitLocalAssign(LocalAssign n) throws SemanticException { \n Position pos = n.position();\n if (n.operator() == Assign.ASSIGN) return n;\n X10Binary_c.Operator op = n.operator().binaryOperator();\n Local left = (Local) n.left();\n Expr right = n.right();\n Type R = left.type();\n Expr val = visitBinary((X10Binary_c) xnf.Binary(pos, left, op, right).type(R));\n return assign(pos, left, Assign.ASSIGN, val);\n }", "public void setLog(String log)\r\n\t{\r\n\t\tcombatLog = log;\r\n\t}", "@Override\n public Expression assign(String var, Expression expression) {\n Expression e1 = getEx2().assign(var, expression);\n Expression e2 = getEx2().assign(var, expression);\n return new Log(e1, e2);\n }", "public Integer visitAssign(ExprParser.AssignContext ctx) {\n String id = ctx.ID().getText();\n int value = visit(ctx.expr());\n memory.put(id, value);\n return value;\n }", "public void setCaseID(java.lang.String param){\n \n this.localCaseID=param;\n \n\n }", "public static void setIdAssigner(ImageIdAssigner idAssigner)\n\t{\n\t\tif(ItemImage.idAssigner == null)\n\t\t\tItemImage.idAssigner = idAssigner;\n\t}", "public final void mINCREMENT_ASSIGN() throws RecognitionException {\n try {\n int _type = INCREMENT_ASSIGN;\n // /Users/benjamincoe/HackWars/C.g:228:2: ( '+=' )\n // /Users/benjamincoe/HackWars/C.g:228:4: '+='\n {\n match(\"+=\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "public void setLogModel(LogModel param) {\n this.localLogModel = param;\n }", "public void setLog(String logName) {\r\n this.delegate.setLog(logName);\r\n }", "public void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);", "public void setIdLocal(int idLocal) {\r\n this.idLocal = idLocal;\r\n }", "public long getAuditLogId() {\n return auditLogId;\n }", "public void assignAsset(String name, int empID) {\n asset asset = getAssetById(empID);\n asset.setAssignmentStatus(\"Assigned\");\n asset.setAssignedEmployeeId(empID);\n saveOrUpdate(asset);\n }", "public void setEmployeeID(int employeeID) { this.employeeID = employeeID; }", "public DataRecord getAssignRecord() {\r\n String[] activeStates = currentProcessInstance.getActiveStates();\r\n Actor[] actors = null;\r\n \r\n try {\r\n DataRecord data = getAssignTemplate().getEmptyRecord();\r\n \r\n for (int i = 0; activeStates != null && i < activeStates.length; i++) {\r\n actors = currentProcessInstance.getWorkingUsers(activeStates[i]);\r\n \r\n for (int j = 0; actors != null && j < actors.length; j++) {\r\n Field field = data.getField(activeStates[i] + \"_\"\r\n + actors[j].getUserRoleName() + \"_\" + j);\r\n String value = actors[j].getUser().getUserId();\r\n \r\n if (value != null) {\r\n field.setStringValue(value);\r\n }\r\n }\r\n }\r\n \r\n return data;\r\n } catch (WorkflowException e) {\r\n SilverTrace.warn(\"processManager\", \"SessionController.getAssignRecord\",\r\n \"processManager.EX_ERR_GET_DATARECORD\", e);\r\n return null;\r\n } catch (ProcessManagerException e) {\r\n SilverTrace.warn(\"processManager\", \"SessionController.getAssignRecord\",\r\n \"processManager.EX_ERR_GET_DATARECORD\", e);\r\n return null;\r\n } catch (FormException e) {\r\n SilverTrace.warn(\"processManager\", \"SessionController.getAssignRecord\",\r\n \"processManager.EX_ERR_GET_FIELD\");\r\n return null;\r\n }\r\n }", "public void setSalesRep_ID (int SalesRep_ID);", "public void setSalesRep_ID (int SalesRep_ID);", "public SystemLog (\r\n\t\t Long in_logId\r\n ) {\r\n\t\tthis.setLogId(in_logId);\r\n }", "public void setLogStr(String logStr) {\n\t\tthis.logStr = logStr;\n\t}", "public void setIdAutorizacionEmpresaSRI(int idAutorizacionEmpresaSRI)\r\n/* 79: */ {\r\n/* 80:122 */ this.idAutorizacionEmpresaSRI = idAutorizacionEmpresaSRI;\r\n/* 81: */ }", "public void setActDate(java.lang.String param) {\r\n localActDateTracker = param != null;\r\n\r\n this.localActDate = param;\r\n }", "public void setIdentifierValue(java.lang.String param) {\r\n localIdentifierValueTracker = true;\r\n\r\n this.localIdentifierValue = param;\r\n\r\n\r\n }", "public void setAuthId(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localAuthIdTracker = true;\r\n } else {\r\n localAuthIdTracker = false;\r\n \r\n }\r\n \r\n this.localAuthId=param;\r\n \r\n\r\n }", "@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_userTracker.setCompanyId(companyId);\n\t}", "public void setLCO_DIAN_SendSchedule_ID (int LCO_DIAN_SendSchedule_ID)\n\t{\n\t\tif (LCO_DIAN_SendSchedule_ID < 1) \n\t\t\tset_ValueNoCheck (COLUMNNAME_LCO_DIAN_SendSchedule_ID, null);\n\t\telse \n\t\t\tset_ValueNoCheck (COLUMNNAME_LCO_DIAN_SendSchedule_ID, Integer.valueOf(LCO_DIAN_SendSchedule_ID));\n\t}", "public void setAssignedDate(LocalDateTime assignedDate) {\n this.assignedDate = assignedDate;\n }", "public void setHC_ManagerTo_ID (int HC_ManagerTo_ID);", "public void setLogs(ArrayOfLogModel param) {\n localLogsTracker = true;\n\n this.localLogs = param;\n }", "public void setLogs(ArrayOfLogModel param) {\n localLogsTracker = true;\n\n this.localLogs = param;\n }", "public void chooseOptionAssignToOnBulkActionsDropDown() {\n getLogger().info(\"Choose option: Assign to.\");\n clickElement(optionAssignTo, \"Assign To Option\");\n }", "public void setBundleID(long param){\n localBundleIDTracker = true;\n \n this.localBundleID=param;\n \n\n }", "public final String assignStmt() throws RecognitionException {\n\t\tString out = null;\n\n\n\t\tCommonTree ID26=null;\n\t\tString expr27 =null;\n\n\n\t\t\tout = \"\";\n\n\t\ttry {\n\t\t\t// C:\\\\Users\\\\Samir\\\\Documents\\\\University\\\\Y2S2\\\\COMP2010\\\\LittleNic\\\\src\\\\LittleNicCodeGen.g:376:2: ( ^( ':=' ID expr[false, null] ) )\n\t\t\t// C:\\\\Users\\\\Samir\\\\Documents\\\\University\\\\Y2S2\\\\COMP2010\\\\LittleNic\\\\src\\\\LittleNicCodeGen.g:376:4: ^( ':=' ID expr[false, null] )\n\t\t\t{\n\t\t\tmatch(input,30,FOLLOW_30_in_assignStmt515); \n\t\t\tmatch(input, Token.DOWN, null); \n\t\t\tID26=(CommonTree)match(input,ID,FOLLOW_ID_in_assignStmt517); \n\t\t\tpushFollow(FOLLOW_expr_in_assignStmt519);\n\t\t\texpr27=expr(false, null);\n\t\t\tstate._fsp--;\n\n\t\t\tmatch(input, Token.UP, null); \n\n\t\t\tout = \"_\" + (ID26!=null?ID26.getText():null) + \" = \" + expr27 + \";\";\n\t\t\t}\n\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn out;\n\t}", "@Override\n\tpublic void setLogFileName(String logFileName) {\n\t\tmodel.setLogFileName(logFileName);\n\t}", "@Override\n public void visit(final OpAssign opAssign) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Starting visiting OpAssign\");\n }\n addOp(OpAssign.assign(rewriteOp1(opAssign), opAssign.getVarExprList()));\n }", "public void setPlmnIdValue(String plmnIdValue) throws JNCException {\n setPlmnIdValue(new YangString(plmnIdValue));\n }", "public void setLogCode ( final TransactionType logCode ) {\n this.logCode = logCode;\n }", "public void setUserId(java.lang.String param) {\n localUserIdTracker = true;\n\n this.localUserId = param;\n }", "public void setUserId(java.lang.String param) {\n localUserIdTracker = true;\n\n this.localUserId = param;\n }", "public void setATTR_ID(String ATTR_ID) {\n this.ATTR_ID = ATTR_ID == null ? null : ATTR_ID.trim();\n }", "public void assign(String id,String pass,int num,String act_id,linked_list<Project> pro_list,linked_list<Activity> act_list,linked_list<Employee1> elist) throws IOException\n {\n \tNode<Admin> pos = adm_list.getFirst();\n\t\t\twhile(pos!=null)\n\t\t\t{\n\t\t\t\tif(pos.getData().employee_id.equals(id) && pos.getData().password.equals(pass))\n\t\t\t\t{\n\t\t\t\t\tNode<Project> pro=pro_list.getFirst();\n\t\t\t\t\twhile(pro!=null)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(pos.getData().admin_project_key.equals(pro.getData().project_id))//checking whether the project key and id provided by admin are same or not\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tNode<Activity> a=act_list.getFirst();\n\t\t\t\t\t\t\twhile(a!=null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(act_id.equals(a.getData().activity_id))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\ta.getData().assign_group(elist);\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Group of employees:\");\n\t\t\t\t\t\t\t\t\tSystem.out.println(a.getData().toString());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\ta=a.getNext();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpro=pro.getNext();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tpos = pos.getNext();\n\t\t\t}\n\t\t\t\n\t\t\twrite_adm_file();\n\t }", "public void setLogModel(LogModel[] param) {\n validateLogModel(param);\n\n localLogModelTracker = true;\n\n this.localLogModel = param;\n }", "public void setPayLogId(String payLogId) {\n this.payLogId = payLogId == null ? null : payLogId.trim();\n }", "public void setPatientID(java.lang.String param){\n \n this.localPatientID=param;\n \n\n }", "public void setPatientID(java.lang.String param){\n \n this.localPatientID=param;\n \n\n }" ]
[ "0.70632607", "0.5833077", "0.57828593", "0.55838627", "0.5519087", "0.542474", "0.54214513", "0.5402827", "0.5402154", "0.5166739", "0.51556057", "0.51524657", "0.5066702", "0.5028618", "0.5003188", "0.49768984", "0.49540326", "0.49317047", "0.49253044", "0.4872688", "0.4872688", "0.48643878", "0.48589304", "0.48512352", "0.48407534", "0.483667", "0.48177", "0.4788433", "0.4761525", "0.47317892", "0.47316453", "0.4728017", "0.47278652", "0.47052148", "0.4689095", "0.46782964", "0.46622336", "0.4658386", "0.46538216", "0.462203", "0.45948923", "0.45932755", "0.4585945", "0.45770806", "0.45666564", "0.45635113", "0.4562572", "0.45593637", "0.45494413", "0.45459032", "0.45454374", "0.4542491", "0.4542491", "0.45337832", "0.45308912", "0.4528149", "0.4519493", "0.45187908", "0.45163655", "0.45106855", "0.45044148", "0.44999266", "0.44973603", "0.44944957", "0.44933468", "0.44644102", "0.4458426", "0.4455751", "0.44486865", "0.44418797", "0.44376934", "0.44308", "0.44308", "0.4424742", "0.44219655", "0.4418146", "0.4412819", "0.44120938", "0.4406264", "0.44010562", "0.43894446", "0.43769595", "0.43762267", "0.4364754", "0.4364754", "0.43636236", "0.43608537", "0.4355477", "0.43515626", "0.43447912", "0.43410566", "0.4340124", "0.4338035", "0.4338035", "0.4323869", "0.43215328", "0.43195817", "0.4319233", "0.43114004", "0.43114004" ]
0.72797066
0
This method was generated by MyBatis Generator. This method returns the value of the database column msm_trac_log.RELATED_OBJECT_TYPE
public String getRelatedObjectType() { return relatedObjectType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getObjectTypeId();", "ResultColumn getTypeIdColumn(TableReference tableReference);", "@SuppressWarnings(\"unchecked\")\n\tpublic Class getObjectType()\n\t{\n\t\tObject obj = getObject();\n\t\tif (obj == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\treturn obj.getClass();\n\t}", "@Transient\r\n\tpublic Class<?> getClassType() {\r\n\t\treturn TrackerTableChangeLog.class;\r\n\t}", "public void setRelatedObjectType(String relatedObjectType) {\n this.relatedObjectType = relatedObjectType == null ? null : relatedObjectType.trim();\n }", "public String getOtherType() {\n\t\treturn otherType;\n\t}", "@ApiModelProperty(value = \"Generic attribute indicating the name of the class type of the referred resource entity.\")\n public String getReferredType() {\n return referredType;\n }", "public String getType() {\n return relationshipName;\n }", "@Override\n public Class<TmRelationshipRecord> getRecordType() {\n return TmRelationshipRecord.class;\n }", "public String getRelatedObjectName() {\n return relatedObjectName;\n }", "@Override\n public Class<?> getObjectType() {\n return this.type;\n }", "public String getRelatedObjectId() {\n return relatedObjectId;\n }", "PSObject getTypeReference();", "protected void addOriginalTypePropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_Reference_originalType_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_Reference_originalType_feature\", \"_UI_Reference_type\"),\n NoSQLSchemaPackage.Literals.REFERENCE__ORIGINAL_TYPE,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "public java.lang.String getSobjectType() {\r\n return sobjectType;\r\n }", "public String objectTypeName()\r\n {\r\n return mObjectTypeName;\r\n }", "public Type getType() {\n return referentType;\n }", "public String getRelationshipTypeGUID()\n {\n return relationshipTypeGUID;\n }", "@Override\n public String toString() {\n return metaObject.getType().toString();\n }", "@Override\n\tpublic java.lang.Class<projectdb.tables.records.ChangelogRecord> getRecordType() {\n\t\treturn projectdb.tables.records.ChangelogRecord.class;\n\t}", "@Override\n public Class<TblrefJoboptioncodeRecord> getRecordType() {\n return TblrefJoboptioncodeRecord.class;\n }", "public String getType() {\n if(iType == null){\n ArrayList<Identification_to_quantitation> lLinkers = this.getQuantitationLinker();\n for (int j = 0; j < lLinkers.size(); j++) {\n if (lLinkers.get(j).getL_identificationid() == this.getIdentificationid()) {\n this.setType(lLinkers.get(j).getType());\n }\n }\n }\n return iType;\n }", "public Type<O> getObjectType()\n\t{\n\t\treturn this.getSettings().getObjectType();\n\t}", "public String getType() {\n\t\t\n\t\tif(this instanceof Friend_Connection) {\n\t\t\treturn \"[FRIEND]\";\n\t\t\t\n\t\t}else if(this instanceof Couple_Connection){\n\t\t\treturn \"[COUPLE]\";\n\t\t\n\t\t}else if(this instanceof Parent_Connection) {\n\t\t\treturn \"[RELATIVE]\";\n\t\t\n\t\t}else if(this instanceof Colleagues_Connection) {\n\t\t\treturn \"[COLLEAGUE]\";\n\t\t\n\t\t}else if(this instanceof Classmates_Connection) {\n\t\t\treturn \"[CLASSMATE]\";\n\t\t}else {\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t}", "public int getObjectType()\n {\n return m_objectType;\n }", "@Override\n\tpublic int getType() {\n\t\treturn _expandoColumn.getType();\n\t}", "public String getrType() {\n return rType;\n }", "@Override\n public Class<TblrefJobpromotionRecord> getRecordType() {\n return TblrefJobpromotionRecord.class;\n }", "@Override\n public String getQueryType() {\n if (returnObjects) {\n return CanonicalQueryTypes.FIND_ASSOCIATED_OBJECTS;\n } else {\n return CanonicalQueryTypes.FIND_ASSOCIATIONS;\n }\n }", "@Override\r\n\tpublic PhraseType getType()\r\n\t{\r\n\t\t/* if the Property is just a reference,\r\n\t\t * return the type of the referent */\r\n\t\tif (referent != null) return referent.getType();\r\n\t\t\r\n\t\t/* otherwise, return PROPERTY */\r\n\t\treturn PhraseType.PROPERTY;\r\n\t}", "@Override\n\tpublic Class<BrchrLineNrTypMtrxRecord> getRecordType() {\n\t\treturn BrchrLineNrTypMtrxRecord.class;\n\t}", "public String getSubObjectType() {\n return subObjectType;\n }", "TypeAssociation getConcerneTraitementObjectifTraitementObjectif();", "public Class<?> getObjectType() {\n return objectType;\n }", "public int getType() throws SQLException\n {\n return m_rs.getType();\n }", "public String getObjectiveType() {\n return _objectiveType;\n }", "public com.google.api.ads.adwords.axis.v201802.cm.RelationshipType getRelationshipType() {\n return relationshipType;\n }", "public ModelObjectType getType() {\n return type;\n }", "public String getType() {\n return (String) getObject(\"type\");\n }", "@Override\n public Class<TProductRentTypeRecord> getRecordType() {\n return TProductRentTypeRecord.class;\n }", "public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }", "public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }", "public Object getType()\r\n {\r\n\treturn type;\r\n }", "RelDataType getColumnType(String sql);", "public XActRelationshipEntry getTypeCode() {\n\t\treturn typeCode;\n\t}", "public T caseAssociationType(AssociationType object) {\n\t\treturn null;\n\t}", "public String getEntityTypeName() { return \"jp.sourceforge.ea2ddl.dao.exentity.TTrxtypes\"; }", "@ApiModelProperty(value = \"A categorization of the relationship (e.g.: migration, substitution, dependency, exclusivity)\")\n public String getType() {\n return type;\n }", "public abstract String getObjectType();", "public ExtensibleObject getNativeObject(SoffidObjectType type, String object1, String object2)\n\t\t\tthrows RemoteException, InternalErrorException {\n\t\treturn null;\n\t}", "public String relatedAssetType() {\n return relatedAssetType;\n }", "public ObjType getType () {\n\t\tif (type == null) {\n\t\t\ttype = Virtue.getInstance().getConfigProvider().getObjTypes().list(id);\n\t\t}\n\t\treturn type;\n\t}", "@Nullable\n public String getRepositoryType() {\n return myRepoType;\n }", "public void printType() {\n System.out.println(\"Type: \" + objRef.getClass().getName());\n }", "@ApiModelProperty(required = true, value = \"Type of the product relationship, such as [bundled] if the product is a bundle and you want to describe the bundled products inside this bundle; [reliesOn] if the product needs another already owned product to rely on (e.g. an option on an already owned mobile access product) [targets] or [isTargeted] (depending on the way of expressing the link) for any other kind of links that may be useful\")\n @NotNull\n\n\n public String getRelationshipType() {\n return relationshipType;\n }", "public abstract jq_Type getDeclaredType();", "public String getClazz() {\n return relationshipName;\n }", "public final String getObjectType() {\n\n\t\tif (JsUtils.getNativePropertyString(this, \"beanName\") == null) return \"JavaScriptObject\";\n\t\treturn JsUtils.getNativePropertyString(this, \"beanName\");\n\n\t}", "public Integer getLastDealPersonType() {\n return lastDealPersonType;\n }", "public Column.Type getType();", "public String getOntologyType(){\r\n\t\treturn null;\r\n\t}", "int getRType();", "private Long getRelationTypeId(EntityRelationshipType changingRelation) {\n\t\treturn changingRelation.getEntityRelationConfigDetail().getConfigId();\n\t}", "public String getRefNodeType() {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn \"lfims:branchDetails\";\r\n\t\t\t\t\t}", "com.rpg.framework.database.Protocol.ItemType getType();", "public EntityType getType ( ) {\n\t\treturn extract ( handle -> handle.getType ( ) );\n\t}", "public com.opentext.bn.converters.avro.entity.IntrospectionType getIntrospectionType() {\n return introspectionType;\n }", "public String getReplyType() {\n/* 307 */ return getCOSObject().getNameAsString(\"RT\", \"R\");\n/* */ }", "public static String getLevelTypeAsString(int p_levelObjectType)\n {\n String objectType = null;\n if (p_levelObjectType == Issue.TYPE_SEGMENT)\n {\n objectType = \"S\";\n }\n return objectType;\n }", "public RelDataType getPhysicalRowType() {\n return rowType;\n }", "public String getRefType() {\n return refType;\n }", "private String getJoinType() {\n if (joinQueryInputs.queryType == null) {\n return null;\n }\n switch (joinQueryInputs.queryType) {\n case Constants.JOIN_TYPE_INNER_JOIN:\n return Constants.JOIN_INNER_JOIN;\n case Constants.JOIN_TYPE_LEFT_JOIN:\n return Constants.JOIN_LEFT_JOIN;\n case Constants.JOIN_TYPE_RIGHT_JOIN:\n return Constants.JOIN_RIGHT_JOIN;\n case Constants.JOIN_TYPE_FULL_JOIN:\n return Constants.JOIN_FULL_JOIN;\n }\n return null;\n }", "public com.opentext.bn.converters.avro.entity.IntrospectionType getIntrospectionType() {\n return introspectionType;\n }", "public T caseRelationAdded(RelationAdded object) {\n\t\treturn null;\n\t}", "public int getSqlType() { return _type; }", "public Long getTypeid() {\n return typeid;\n }", "@Override\n public java.lang.String getPersonType() {\n return _entityCustomer.getPersonType();\n }", "public ObjectType objectType() {\n return this.objectType;\n }", "public Integer getgOtherPayTypeId() {\n return gOtherPayTypeId;\n }", "@NotNull\n @JsonProperty(\"typeId\")\n public ReferenceTypeId getTypeId();", "protected void addOrmTypePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_EntityAttribute_ormType_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_EntityAttribute_ormType_feature\", \"_UI_EntityAttribute_type\"),\n\t\t\t\t PersistencePackage.Literals.ENTITY_ATTRIBUTE__ORM_TYPE,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t getString(\"_UI_OrmPropertyCategory\"),\n\t\t\t\t null));\n\t}", "public Type getType2() {\n\t\treturn this.data.getType2();\n\t}", "public int getOldProperty_descriptionType(){\n return localOldProperty_descriptionType;\n }", "public String getSubType() {\n return typeString;\n }", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "public ModbusObjectType getObjectType() {\r\n\t\treturn objectType;\r\n\t}", "Type getForPersistentMapping_Type() {\n return type;\n }", "public String getVdcObjectType() {\n return getParameters().getPermission().getObjectType().getVdcObjectTranslation();\n }" ]
[ "0.5519938", "0.5240396", "0.52352446", "0.520279", "0.5175666", "0.5155182", "0.5147685", "0.51465195", "0.51134026", "0.50916475", "0.50713307", "0.5010264", "0.49463543", "0.49209517", "0.49094588", "0.48892486", "0.48840517", "0.48536727", "0.48409003", "0.48311672", "0.4822757", "0.48044756", "0.4799177", "0.47872087", "0.47618374", "0.4759176", "0.47538677", "0.47507468", "0.47383165", "0.47355473", "0.47094876", "0.47075444", "0.47053978", "0.46841905", "0.4670939", "0.46643394", "0.46637723", "0.46580312", "0.46573514", "0.46563637", "0.46322495", "0.46322495", "0.46302965", "0.4627167", "0.462708", "0.46266696", "0.46232903", "0.46221066", "0.46087116", "0.46032092", "0.45984852", "0.4596051", "0.45953307", "0.4592279", "0.45884773", "0.45769835", "0.45738158", "0.45671535", "0.45562226", "0.45555788", "0.45484817", "0.4546695", "0.45431268", "0.45308286", "0.4528415", "0.45220807", "0.45219436", "0.45140067", "0.45127505", "0.45093834", "0.45088413", "0.45021206", "0.44968146", "0.4496645", "0.44934905", "0.44909567", "0.44900444", "0.4487489", "0.44871768", "0.44838172", "0.44804287", "0.44803303", "0.44792792", "0.44746545", "0.4473721", "0.4473721", "0.4473721", "0.4473721", "0.4473721", "0.4473721", "0.4473721", "0.4473721", "0.4473721", "0.4473721", "0.4473721", "0.4473721", "0.4473721", "0.44699132", "0.44683912", "0.44659683" ]
0.65506005
0
This method was generated by MyBatis Generator. This method sets the value of the database column msm_trac_log.RELATED_OBJECT_TYPE
public void setRelatedObjectType(String relatedObjectType) { this.relatedObjectType = relatedObjectType == null ? null : relatedObjectType.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRelatedObjectType() {\n return relatedObjectType;\n }", "protected void addOriginalTypePropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_Reference_originalType_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_Reference_originalType_feature\", \"_UI_Reference_type\"),\n NoSQLSchemaPackage.Literals.REFERENCE__ORIGINAL_TYPE,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "void setAssociatedObject(IEntityObject relatedObj);", "@Override\n public void setObjectType(String type) {\n this.objectType = type;\n }", "public void setRelatedObjectId(String relatedObjectId) {\n this.relatedObjectId = relatedObjectId == null ? null : relatedObjectId.trim();\n }", "public void setRelatedObjectName(String relatedObjectName) {\n this.relatedObjectName = relatedObjectName == null ? null : relatedObjectName.trim();\n }", "public void setAssociatedObject(String associatedObject) {\n this.associatedObject = associatedObject;\n }", "void setObjectType(String objectType);", "public void setResult(int type, String typeName, Class javaType, DatabaseField nestedType) {\r\n ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(\"\");\r\n field.setSqlType(type);\r\n field.setSqlTypeName(typeName);\r\n field.setType(javaType);\r\n field.setNestedTypeField(nestedType);\r\n getParameters().set(0, field);\r\n }", "protected void addOrmTypePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_EntityAttribute_ormType_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_EntityAttribute_ormType_feature\", \"_UI_EntityAttribute_type\"),\n\t\t\t\t PersistencePackage.Literals.ENTITY_ATTRIBUTE__ORM_TYPE,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t getString(\"_UI_OrmPropertyCategory\"),\n\t\t\t\t null));\n\t}", "@JsonIgnore\r\n public void setKnownType(AlternateIdType knownType) {\r\n this.type = knownType == null ? null : new TypeReference<AlternateIdType>(knownType);\r\n }", "public T caseSubtypeRelationshipDefinition(SubtypeRelationshipDefinition object) {\n\t\treturn null;\n\t}", "public T caseRelationAdded(RelationAdded object) {\n\t\treturn null;\n\t}", "public void setRelateId(Long relateId) {\n this.relateId = relateId;\n }", "public void setTargetObjectType(String targetObjectType) {\n this.targetObjectType = targetObjectType;\n }", "public void setType(String objectType)\n\t{\n\t\tthis.type = objectType;\n\t}", "public T caseAssociationType(AssociationType object) {\n\t\treturn null;\n\t}", "public void setRelatedTo(java.lang.String value);", "public void setObjectClass(String objectClass) {\n this.objectClass = objectClass;\n }", "@Test\r\n\tpublic void setRelatedField() {\r\n\t\ttestObj.addNativeField(1);\r\n\t\ttestObj.makeArrays();\r\n\t\ttestObj.setRelatedField(0, 100);\r\n\t\tassertEquals(\"relatedFields at 0 should be 100\", 100, testObj.getRelatedFieldsArray()[0]);\r\n\t}", "@ApiModelProperty(value = \"Generic attribute indicating the name of the class type of the referred resource entity.\")\n public String getReferredType() {\n return referredType;\n }", "public void setOtherType(String otherType) {\n\t\tthis.otherType = otherType;\n\t}", "public T caseRelationshipEnd(RelationshipEnd object) {\n\t\treturn null;\n\t}", "protected void sequence_ReceiverType(ISerializationContext context, ReceiverType semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.RECEIVER_TYPE__TYPE) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.RECEIVER_TYPE__TYPE));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getReceiverTypeAccess().getTypeTypeParserRuleCall_0(), semanticObject.getType());\r\n\t\tfeeder.finish();\r\n\t}", "public void setRelatedIMEventOriginalID(java.lang.String value) {\n this.relatedIMEventOriginalID = value;\n }", "void updateConnectorType(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String connectorTypeGUID,\n String connectorTypeExternalIdentifier,\n boolean isMergeUpdate,\n ConnectorTypeProperties connectorTypeProperties,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;", "public String getRelatedObjectId() {\n return relatedObjectId;\n }", "private String replaceIntermediateObjectWithRel(Context context, String strOldRelId ,String strNewRelId ,String strNewRelIdSide,Map attributeMap) throws Exception {\r\n\r\n\t\tString strNewConnId=\"\";\r\n\t\tboolean isRelToRel = true;\r\n\t\tboolean isFrom = true;\r\n\r\n\t\ttry{\r\n\r\n\t\tDomainRelationship domRel = new DomainRelationship(strOldRelId);\r\n //Get the attributes on Relationship\r\n /*Map attributeMap = new HashMap();\r\n attributeMap = domRel.getAttributeMap(context,true);*/\r\n\r\n\r\n\t\t//Get the \"Type\" of rel\r\n\t\tStringList slRelSelects = new StringList(1);\r\n slRelSelects.addElement(DomainRelationship.SELECT_TYPE);\r\n\r\n if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"from\")){\r\n \t//New Rel replaces FL/GBOM which is on \"from\" side of Old Rel hence we query now \"to\" side of Old Rel\r\n \tslRelSelects.add(\"to.id\");\r\n slRelSelects.add(\"torel.id\");\r\n\r\n }else if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"to\")){\r\n \t//New Rel replaces FL/GBOM which is on \"to\" side of Old Rel hence we query now \"from\" side of Old Rel\r\n \tslRelSelects.add(\"from.id\");\r\n slRelSelects.add(\"fromrel.id\");\r\n }\r\n\r\n Hashtable htRelData = domRel.getRelationshipData(context,slRelSelects);\r\n\r\n String strFromSideOfRel =\"\";\r\n String strToSideOfRel =\"\";\r\n String strRelId =\"\";\r\n String strObjId =\"\";\r\n\r\n StringList slRelTypes = (StringList) htRelData.get(DomainRelationship.SELECT_TYPE);\r\n String strRelType = (String) slRelTypes.get(0);\r\n RelationshipType RelType = new RelationshipType(strRelType);\r\n\r\n\r\n if((StringList) htRelData.get(\"from.id\")!=null || ((StringList)htRelData.get(\"fromrel.id\"))!=null ){\r\n\r\n \tStringList slFromSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"from.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"from.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\t//isFrom = false;\r\n \t\tstrObjId = strFromSideOfRel;\r\n\r\n\r\n \t}else if(!((StringList)htRelData.get(\"fromrel.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"fromrel.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tstrRelId = strFromSideOfRel;\r\n \t\tisFrom = false;\r\n \t}\r\n }\r\n\r\n if((StringList) htRelData.get(\"to.id\")!=null || ((StringList)htRelData.get(\"torel.id\"))!=null ){\r\n\r\n \tStringList slToSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"to.id\")).isEmpty()){\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"to.id\");\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\tstrObjId = strToSideOfRel;\r\n \t\tisFrom = false;\r\n \t}else if(!((StringList)htRelData.get(\"torel.id\")).isEmpty()){\r\n\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"torel.id\");\r\n\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n \t\tstrRelId =strToSideOfRel;\r\n \t\t//isFrom = false;\r\n \t}\r\n }\r\n\r\n\r\n if(isRelToRel){\r\n\r\n strNewConnId = connectRelationship(context, RelType, strRelId,strNewRelId, isFrom);\r\n\r\n }else{\r\n\r\n \tstrNewConnId = connectObject(context, RelType, strObjId,strNewRelId, isFrom);\r\n }\r\n\r\n\t\t\t StringList relDataSelects = new StringList();\r\n\t\t\t relDataSelects.addElement(\"frommid.id\");\r\n\t\t\t relDataSelects.addElement(\"tomid.id\");\r\n\r\n\t\t\t Map gbomRelData = domRel.getRelationshipData(context,relDataSelects);\r\n\t\t\t StringList sLFrommid = new StringList();\r\n\t\t\t StringList sLTomid = new StringList();\r\n\r\n\t\t\t sLFrommid = (StringList) gbomRelData.get(\"frommid.id\");\r\n\t\t\t if(!sLFrommid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLFrommid.size();i++){\r\n\r\n\t\t\t\t\tString strFromMid = (String)sLFrommid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strFromMid,strNewConnId,true);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\r\n\t\t\t sLTomid = (StringList) gbomRelData.get(\"tomid.id\");\r\n\t\t\t if(!sLTomid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLTomid.size();i++){\r\n\r\n\t\t\t\t\tString strToMid = (String)sLTomid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strToMid,strNewConnId,false);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\t\t\tDomainRelationship domNewConnId = new DomainRelationship(strNewConnId);\r\n\t\t\tmqlLogRequiredInformationWriter(\"Rel id :: \"+ strNewConnId +\"\\n\");\r\n\t\t mqlLogRequiredInformationWriter(\"Attribute value Map set for this rel id :: \"+ attributeMap +\"\\n\\n\");\r\n\t domNewConnId.setAttributeValues(context, attributeMap);\r\n\r\n\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn strNewConnId;\r\n\t}", "public void associate (String accID, Integer logicalDBKey, int mgiTypeKey,\n int objectKey)\n throws MGIException\n {\n Integer probeKey = new Integer(objectKey);\n\n logger.logdDebug(\"Make Association: \"+accID+\",\"+logicalDBKey+\",\"+\n objectKey+\",\"+mgiTypeKey,false);\n\n Vector vParts = AccessionLib.splitAccID(accID);\n\n // Create an state object for the ACC_Accession table and set its\n // attributes.\n //\n ACC_AccessionState accState = new ACC_AccessionState();\n accState.setAccID(accID);\n accState.setPrefixPart((String)vParts.get(0));\n accState.setNumericPart((Integer)vParts.get(1));\n accState.setLogicalDBKey(logicalDBKey);\n accState.setMGITypeKey(new Integer(mgiTypeKey));\n accState.setObjectKey(probeKey);\n accState.setPrivateVal(isPrivateAccID);\n accState.setPreferred(new Boolean(true));\n\n // Create a DAO for the state object and pass it to the stream.\n //\n ACC_AccessionDAO accDAO = new ACC_AccessionDAO(accState);\n loadStream.insert(accDAO);\n\n // Create an state object for the ACC_AccessionReference table and set\n // its attributes.\n //\n ACC_AccessionReferenceState accRefState =\n new ACC_AccessionReferenceState();\n accRefState.setAccessionKey(accDAO.getKey().getKey());\n accRefState.setRefsKey(refsKey);\n\n // Create a DAO for the state object and pass it to the stream.\n //\n ACC_AccessionReferenceDAO accRefDAO =\n new ACC_AccessionReferenceDAO(accRefState);\n loadStream.insert(accRefDAO);\n\n // Special processing for probe associations ONLY.\n //\n if (mgiTypeKey == 3 && madeProbeRef == false)\n {\n // Determine if the probe is already associated with the reference.\n //\n if (probeRefLookup.lookup(probeKey) == null)\n {\n // Create an state object for the PRB_Reference table and set\n // its attributes.\n //\n PRB_ReferenceState probeRefState = new PRB_ReferenceState();\n probeRefState.setProbeKey(probeKey);\n probeRefState.setRefsKey(refsKey);\n probeRefState.setHasrmap(new Boolean(false));\n probeRefState.setHassequence(new Boolean(false));\n\n // Create a DAO for the state object and pass it to the stream.\n //\n PRB_ReferenceDAO probeRefDAO = new PRB_ReferenceDAO(probeRefState);\n loadStream.insert(probeRefDAO);\n\n // Add the probe key to the lookup cache, so another bcp record\n // will not be created for it in the future.\n //\n probeRefLookup.addToCache(probeKey);\n }\n\n // The probe reference has been made.\n //\n madeProbeRef = true;\n }\n }", "public String connectObject(Context context,\r\n \t\tRelationshipType relationshipType,\r\n \t\tjava.lang.String objectId,String strNewRelId,\r\n \t\tboolean isFrom)throws Exception\r\n {\r\n \tString fromId = null;\r\n \tString toId = null;\r\n \tString connId = null;\r\n \tStringBuffer sbCmd = new StringBuffer();\r\n \tStringBuffer sbCmd2 = new StringBuffer();\r\n \tString strFrom = null;\r\n \tString strTo = null;\r\n\r\n try\r\n {\r\n \tif(!isFrom)\r\n \t{\r\n \t\tfromId = strNewRelId;\r\n \t\ttoId = objectId;\r\n \t\tstrFrom = \"fromrel\";\r\n \t\tstrTo = \"to\";\r\n \t}else\r\n \t{\r\n \t\tfromId = objectId;\r\n \t\ttoId = strNewRelId;\r\n \t\tstrFrom = \"from\";\r\n \t\tstrTo = \"torel\";\r\n \t}\r\n\r\n \tsbCmd.append(\"add connection \\\"\");\r\n \tsbCmd.append(relationshipType);\r\n \tsbCmd.append(\"\\\" \");\r\n \tsbCmd.append(strFrom);\r\n \tsbCmd.append(\" \\\"\");\r\n \tsbCmd.append(fromId);\r\n \tsbCmd.append(\"\\\" \");\r\n \tsbCmd.append(strTo);\r\n \tsbCmd.append(\" \\\"\");\r\n \tsbCmd.append(toId);\r\n \tsbCmd.append(\"\\\" select id dump;\");\r\n \t\r\n \tsbCmd2.append(\"add connection \");\r\n \tsbCmd2.append(\"$1\");\r\n \tsbCmd2.append(\" \");\r\n \tsbCmd2.append(strFrom);\r\n \tsbCmd2.append(\" \");\r\n \tsbCmd2.append(\"$2\");\r\n \tsbCmd2.append(\" \");\r\n \tsbCmd2.append(strTo);\r\n \tsbCmd2.append(\" \");\r\n \tsbCmd2.append(\"$3\");\r\n \tsbCmd2.append(\" select $4 dump\");\r\n\r\n \tmqlLogRequiredInformationWriter(\"MQL command to be executed ::\" + \"\\n\" + sbCmd.toString()+ \"\\n\");\r\n \tconnId = MqlUtil.mqlCommand(context, sbCmd2.toString(), true,relationshipType.getName(),fromId,toId,\"id\");\r\n\r\n }\r\n catch (Exception e)\r\n {\r\n \tmqlLogRequiredInformationWriter(\"MQL command execution failed in 'connectObject' API ::\" + sbCmd.toString()+ \"\\n\");\r\n \te.printStackTrace();\r\n throw new FrameworkException(e);\r\n }\r\n\t\treturn connId;\r\n }", "public void setCsRelationship(Object endNode, BioRelTypes relType) {\n if (csRelationship == null) {\n csRelationship = new HashSet<BioRelation>();\n }\n BioRelation rel = new BioRelation(this, endNode, relType);\n csRelationship.add(rel);\n }", "public void setType(Object newType) {\n if (newType == null && type == null) {\n return;\n }\n\n if (type == null || !type.equals(newType)) {\n Object oldType = type;\n type = newType;\n listeners.firePropertyChange(PROPERTY_TYPE, oldType, type);\n }\n }", "public void setSourceObjectType(String sourceObjectType) {\n this.sourceObjectType = sourceObjectType;\n }", "public void changeRelationshipType(String classNameFrom, String classNameTo, String newTypeName)\n\t{\n\t\tstoreViewState();\n\t\tproject.changeRelationshipType(classNameFrom, classNameTo, newTypeName);\n\t\tcheckStatus();\n\t}", "public void setRelType(String fqRelType)\r\n {\r\n if (fqRelType.startsWith(\"http://\")) {\r\n rel = fqRelType.substring(25);\r\n } else {\r\n this.rel = fqRelType;\r\n }\r\n }", "public void setTypeId(final ReferenceTypeId typeId);", "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 T caseAssocRelationshipDefinition(AssocRelationshipDefinition object) {\n\t\treturn null;\n\t}", "public void associate(Object obj, Class type);", "void setForPersistentMapping_BaseType(Type baseType) {\n this.baseType = baseType;\n }", "public void relate(HNode id, Object o);", "public void setNewObjectType(int newObjectType) {\r\n\r\n if (this.newObjectType == newObjectType) return;\r\n\r\n if (newObjectType == ReportElementType.NONE) {\r\n this.setCursor( java.awt.Cursor.getDefaultCursor());\r\n } else {\r\n this.setCursor( java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.CROSSHAIR_CURSOR));\r\n }\r\n this.newObjectType = newObjectType;\r\n }", "public String getObjectTypeId();", "public void setSobjectType(java.lang.String sobjectType) {\r\n this.sobjectType = sobjectType;\r\n }", "public T caseRelationshipDefinition(RelationshipDefinition object) {\n\t\treturn null;\n\t}", "public void setObjectClass(Class objectClass) {\n this.objectClass = objectClass;\n }", "protected void sequence_Type(ISerializationContext context, Type semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}", "public void setObjectiveType(String objectiveType) {\n _objectiveType = objectiveType;\n }", "public T caseRelationshipNavigation(RelationshipNavigation object) {\n\t\treturn null;\n\t}", "public String getRelatedObjectName() {\n return relatedObjectName;\n }", "public T caseDomainSubsetType(DomainSubsetType object) {\n\t\treturn null;\n\t}", "public void setReplyType(String rt) {\n/* 318 */ getCOSObject().setName(\"RT\", rt);\n/* */ }", "public void setPropertyWithAutoTypeCast(Object obj, Object value) {\n if(value==null) {\n setProperty(obj, value);\n return;\n }\n Class<?> propType = getPropertyType();\n if(propType.isAssignableFrom(value.getClass())) {\n setProperty(obj, value);\n return;\n }\n if(value instanceof Long && propType.equals(Integer.class)) {\n setProperty(obj, Integer.valueOf(value.toString()));\n return;\n }\n if(value instanceof Double || value instanceof Float || value instanceof BigDecimal) {\n if(propType.isAssignableFrom(Double.class)) {\n setProperty(obj, Double.valueOf(value.toString()));\n return;\n } else if(propType.isAssignableFrom(Float.class)) {\n setProperty(obj, Float.valueOf(value.toString()));\n return;\n } else if(propType.isAssignableFrom(BigDecimal.class)) {\n setProperty(obj, BigDecimal.valueOf(Double.valueOf(value.toString())));\n return;\n } else {\n throw new RuntimeException(\"Illegal field value type to set \" + name);\n }\n }\n if(value instanceof java.util.Date) {\n if(propType.isAssignableFrom(java.sql.Timestamp.class)) {\n setProperty(obj, new java.sql.Timestamp(((java.util.Date) value).getTime()));\n return;\n } else if(propType.isAssignableFrom(java.sql.Date.class)) {\n setProperty(obj, new java.sql.Date(((java.util.Date) value).getTime()));\n return;\n } else {\n throw new RuntimeException(\"Illegal field value type to set \" + name);\n }\n }\n throw new RuntimeException(\"Illegal field value type to set \" + name);\n }", "public void setSubObjectType(String subObjectType) {\n this.subObjectType = subObjectType == null ? null : subObjectType.trim();\n }", "abstract void setObjectId(@NotNull ResultSet rs, @NotNull T object) throws SQLException;", "public Object caseOntologyLinkedElement(OntologyLinkedElement object) {\n\t\treturn null;\n\t}", "public void setObjtype(short newValue) {\n\tthis.objtype = newValue;\n}", "@Override\n public Class<TmRelationshipRecord> getRecordType() {\n return TmRelationshipRecord.class;\n }", "protected void sequence_EntityType(ISerializationContext context, EntityType semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, EntitiesPackage.Literals.ENTITY_TYPE__ENTITY) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, EntitiesPackage.Literals.ENTITY_TYPE__ENTITY));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getEntityTypeAccess().getEntityEntityIDTerminalRuleCall_0_1(), semanticObject.eGet(EntitiesPackage.Literals.ENTITY_TYPE__ENTITY, false));\n\t\tfeeder.finish();\n\t}", "public final native void setObjectType(String type) /*-{\n\t\t\tthis.beanName = type;\n\t\t}-*/;", "void setObject(int index, Object value, int sqlType)\n throws SQLException;", "gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type addNewType();", "public void setObject(int parameterIndex, Object x, int targetSqlType) throws SQLException {\n currentPreparedStatement.setObject(parameterIndex, x, targetSqlType);\n }", "public void setConnectionType(Class<? extends Connection> connectionType)\r\n/* 20: */ {\r\n/* 21: 64 */ this.connectionType = connectionType;\r\n/* 22: */ }", "org.hl7.fhir.ObservationRelated addNewRelated();", "public void setType(Object type)\r\n {\r\n\tthis.type = type;\r\n }", "public Association associate(Node otherNode, QName associationTypeQName, Directionality directionality, ObjectNode object);", "private static void setPhysicalLinkTypeEnum(final OptionSet options, final ProjectProperties props)\n {\n if (props.getProjectType() == ProjectType.PROJECT_PHYLINK)\n {\n if (options.hasArgument(OPTION_PHYS_LINK_TYPE))\n {\n final String type = (String)options.valueOf(OPTION_PHYS_LINK_TYPE);\n \n final PhysicalLinkTypeEnum plType = PhysicalLinkTypeEnum.fromValue(type);\n props.setPhysicalLinkTypeEnum(plType);\n }\n }\n }", "public final native void setObjectType(String type) /*-{\n\t\tthis.beanName = type;\n\t}-*/;", "private void mapValuesUpdateRelationship(EntityRelationshipType entityRelationshipType,\n\t\t\tEntityRelationshipType relation) {\n\t\tentityRelationshipType.setEntityRelationshiptypeId(relation.getEntityRelationshiptypeId());\n\t\tentityRelationshipType.setEntityId1(relation.getEntityId1());\n\t\tentityRelationshipType.setEntityId2(relation.getEntityId2());\n\t}", "public void setObjectType(ModbusObjectType objectType) {\r\n\t\tthis.objectType = objectType;\r\n\t}", "@ApiModelProperty(required = true, value = \"Type of the product relationship, such as [bundled] if the product is a bundle and you want to describe the bundled products inside this bundle; [reliesOn] if the product needs another already owned product to rely on (e.g. an option on an already owned mobile access product) [targets] or [isTargeted] (depending on the way of expressing the link) for any other kind of links that may be useful\")\n @NotNull\n\n\n public String getRelationshipType() {\n return relationshipType;\n }", "public T caseRelationCopied(RelationCopied object) {\n\t\treturn null;\n\t}", "public void setRefType(String refType) {\n this.refType = refType == null ? null : refType.trim();\n }", "public void updateLineType(int lineType) {\n graph.updateLineType(lineType);\n }", "public T caseJointRef(JointRef object) {\r\n\t\treturn null;\r\n\t}", "public final void setMxSheet_RowObject(com.mendix.systemwideinterfaces.core.IContext context, mxmodelreflection.proxies.MxObjectType mxsheet_rowobject)\r\n\t{\r\n\t\tif (mxsheet_rowobject == null)\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.MxSheet_RowObject.toString(), null);\r\n\t\telse\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.MxSheet_RowObject.toString(), mxsheet_rowobject.getMendixObject().getId());\r\n\t}", "public T caseRegularRelationshipDefinition(RegularRelationshipDefinition object) {\n\t\treturn null;\n\t}", "public void setRecordTypeId(Integer recordTypeId) {\n this.recordTypeId = recordTypeId;\n }", "public void setOtherTypeText(String aOtherTypeText) {\n otherTypeText = aOtherTypeText;\n }", "TypeAssociation getConcerneTraitementObjectifTraitementObjectif();", "@IcalProperty(pindex = PropertyInfoIndex.RELATED_TO,\n jname = \"relatedTo\",\n nested = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setRelatedTo(final BwRelatedTo val) {\n relatedTo = val;\n }", "public Object convertToType(ELContext context, Object obj, Class<?> targetType) {\n/* 522 */ context.setPropertyResolved(false);\n/* */ \n/* 524 */ Object value = null;\n/* 525 */ for (int i = 0; i < this.size; i++) {\n/* 526 */ value = this.elResolvers[i].convertToType(context, obj, targetType);\n/* 527 */ if (context.isPropertyResolved()) {\n/* 528 */ return value;\n/* */ }\n/* */ } \n/* 531 */ return null;\n/* */ }", "void setForPersistentMapping_Type(Type type) {\n this.type = type;\n }", "public void setIssueTypeID(java.lang.Object issueTypeID) {\n this.issueTypeID = issueTypeID;\n }", "public SampletypeBean save(SampletypeBean pObject) throws SQLException\n {\n Connection c = null;\n PreparedStatement ps = null;\n StringBuffer _sql = null;\n\n try\n {\n c = getConnection();\n if (pObject.isNew())\n { // SAVE \n if (!pObject.isSampletypeidModified())\n {\n ps = c.prepareStatement(\"SELECT nextval('sampletypeid_seq')\");\n ResultSet rs = null;\n try\n {\n rs = ps.executeQuery();\n if(rs.next())\n pObject.setSampletypeid(Manager.getInteger(rs, 1));\n else\n getManager().log(\"ATTENTION: Could not retrieve generated key!\");\n }\n finally\n {\n getManager().close(ps, rs);\n ps=null;\n }\n }\n beforeInsert(pObject); // listener callback\n int _dirtyCount = 0;\n _sql = new StringBuffer(\"INSERT into sampletype (\");\n \n if (pObject.isSampletypeidModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"sampletypeid\");\n _dirtyCount++;\n }\n\n if (pObject.isNameModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"name\");\n _dirtyCount++;\n }\n\n if (pObject.isCompanyidModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"companyid\");\n _dirtyCount++;\n }\n\n _sql.append(\") values (\");\n if(_dirtyCount > 0) {\n _sql.append(\"?\");\n for(int i = 1; i < _dirtyCount; i++) {\n _sql.append(\",?\");\n }\n }\n _sql.append(\")\");\n\n ps = c.prepareStatement(_sql.toString(), ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n _dirtyCount = 0;\n\n if (pObject.isSampletypeidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getSampletypeid());\n }\n \n if (pObject.isNameModified()) {\n ps.setString(++_dirtyCount, pObject.getName());\n }\n \n if (pObject.isCompanyidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getCompanyid());\n }\n \n ps.executeUpdate();\n \n pObject.isNew(false);\n pObject.resetIsModified();\n afterInsert(pObject); // listener callback\n }\n else \n { // UPDATE \n beforeUpdate(pObject); // listener callback\n _sql = new StringBuffer(\"UPDATE sampletype SET \");\n boolean useComma=false;\n\n if (pObject.isSampletypeidModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"sampletypeid\").append(\"=?\");\n }\n\n if (pObject.isNameModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"name\").append(\"=?\");\n }\n\n if (pObject.isCompanyidModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"companyid\").append(\"=?\");\n }\n _sql.append(\" WHERE \");\n _sql.append(\"sampletype.sampletypeid=?\");\n ps = c.prepareStatement(_sql.toString(),ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n int _dirtyCount = 0;\n\n if (pObject.isSampletypeidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getSampletypeid());\n }\n\n if (pObject.isNameModified()) {\n ps.setString(++_dirtyCount, pObject.getName());\n }\n\n if (pObject.isCompanyidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getCompanyid());\n }\n \n if (_dirtyCount == 0) {\n return pObject;\n }\n \n Manager.setInteger(ps, ++_dirtyCount, pObject.getSampletypeid());\n ps.executeUpdate();\n pObject.resetIsModified();\n afterUpdate(pObject); // listener callback\n }\n \n return pObject;\n }\n finally\n {\n getManager().close(ps);\n freeConnection(c);\n }\n }", "public String getOtherType() {\n\t\treturn otherType;\n\t}", "public void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID);", "@Override\n\tpublic void setType(Type t) {\n\t\theldObj.setType(t);\n\t}", "public String getType() {\n return relationshipName;\n }", "public T caseMergeNode(MergeNode object) {\n\t\treturn null;\n\t}", "public void setTypeId(com.walgreens.rxit.ch.cda.POCDMT000040InfrastructureRootTypeId typeId)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.POCDMT000040InfrastructureRootTypeId target = null;\n target = (com.walgreens.rxit.ch.cda.POCDMT000040InfrastructureRootTypeId)get_store().find_element_user(TYPEID$2, 0);\n if (target == null)\n {\n target = (com.walgreens.rxit.ch.cda.POCDMT000040InfrastructureRootTypeId)get_store().add_element_user(TYPEID$2);\n }\n target.set(typeId);\n }\n }", "public void setC_DocType_ID(int C_DocType_ID) {\n //\tif (getDocumentNo() != null && getC_DocType_ID() != C_DocType_ID)\n //\t\tsetDocumentNo(null);\n super.setC_DocType_ID(C_DocType_ID);\n }", "@Override\n\t\tpublic Relationship createRelationshipTo(Node otherNode, RelationshipType type) {\n\t\t\treturn null;\n\t\t}", "public void setTRS_TYPE(String TRS_TYPE) {\r\n this.TRS_TYPE = TRS_TYPE == null ? null : TRS_TYPE.trim();\r\n }", "public T caseFieldSubsetType(FieldSubsetType object) {\n\t\treturn null;\n\t}", "public void initialize(List changeSet, OWLNamedObject owlObj, int attachType) {\n\t\t\n\t\t// change set initialization\n\t\tthis.changeSet = new ArrayList(changeSet);\n\t\t\n\t\t// modify UI and set attachScope depending on attachType\n\t\tthis.attachType = attachType;\n\t\tswitch (attachType) {\n\t\t\tcase MY_ATTACHMENT :\n\t\t\t\tapplyChangesBtn.setVisible(false);\n\t\t\t\tattachBtn.setVisible(true);\n\t\t\t\tscopePanel.setVisible(true);\n\t\t\t\t\n\t\t\t\t// determine scope from owl-object\t\t\n\t\t\t\tif (owlObj!=null) {\n\t\t\t\t\tif (owlObj instanceof OWLOntology) {\n\t\t\t\t\t\tthis.attachScope = ChangeLog.ONTOLOGY_SCOPE;\n\t\t\t\t\t\tontScope.setSelected(true);\n\t\t\t\t\t}\n\t\t\t\t\telse if (owlObj instanceof OWLEntity) {\n\t\t\t\t\t\tthis.attachScope = ChangeLog.ENTITY_SCOPE;\n\t\t\t\t\t\tentityScope.setSelected(true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.attachScope = changeLog.WORKSPACE_SCOPE;\n\t\t\t\t\twkspcScope.setSelected(true);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase ANNOTATION_ATTACHMENT :\n\t\t\t\tattachBtn.setVisible(false);\n\t\t\t\tapplyChangesBtn.setVisible(true);\n\t\t\t\tscopePanel.setVisible(false);\n\t\t\t\tattachScope = changeLog.WORKSPACE_SCOPE;\n\t\t\t\toriginalAttachment = new ArrayList(changeSet);\n\t\t\t\tbreak;\n\t\t}\n\t}", "public T caseRelationChange(RelationChange object) {\n\t\treturn null;\n\t}", "public T caseEntityAdded(EntityAdded object) {\n\t\treturn null;\n\t}", "public void setOldProperty_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localOldProperty_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localOldProperty_descriptionType=param;\n \n\n }" ]
[ "0.58426243", "0.52019745", "0.51639336", "0.48998505", "0.48896116", "0.48558462", "0.48349702", "0.48048046", "0.4753621", "0.4739222", "0.47139266", "0.46725705", "0.46671188", "0.4661228", "0.4659933", "0.4653828", "0.4641092", "0.4631337", "0.46154398", "0.4558395", "0.45557165", "0.4547066", "0.45458183", "0.4544362", "0.45403305", "0.45164326", "0.4512013", "0.4501047", "0.4495165", "0.44877794", "0.44865602", "0.44843543", "0.44781715", "0.4475001", "0.44506717", "0.4448201", "0.44403708", "0.44389263", "0.44387287", "0.44386584", "0.44279248", "0.44161868", "0.44067794", "0.44032487", "0.43997464", "0.43911546", "0.4383187", "0.43800938", "0.4368178", "0.4366866", "0.43634576", "0.43460548", "0.43413547", "0.43411115", "0.43280277", "0.4322588", "0.43006673", "0.42928767", "0.42902336", "0.42897296", "0.42752922", "0.4265229", "0.42646337", "0.42622346", "0.42605135", "0.42565787", "0.42561477", "0.4244974", "0.42415392", "0.42364946", "0.42352456", "0.42338338", "0.42305693", "0.42279574", "0.42214388", "0.42209303", "0.42156586", "0.42155558", "0.42107517", "0.42090333", "0.42087546", "0.42010722", "0.41956112", "0.4194857", "0.4192165", "0.41885796", "0.41725597", "0.41715735", "0.41714573", "0.41673875", "0.41613615", "0.41576314", "0.41575658", "0.41530776", "0.4144173", "0.41338128", "0.41132846", "0.41075167", "0.41047853", "0.41039258" ]
0.6091533
0
This method was generated by MyBatis Generator. This method returns the value of the database column msm_trac_log.ASSIGN_ORG_ID
public Long getAssignOrgId() { return assignOrgId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getp_org_id() {\n return (String)getNamedWhereClauseParam(\"p_org_id\");\n }", "public Number getOrgId() {\n return (Number)getAttributeInternal(ORGID);\n }", "public Number getOrgId() {\n return (Number) getAttributeInternal(ORGID);\n }", "@AutoEscape\n\tpublic String getOrgId();", "public String getOrganizationId(String orgName) {\r\n \tString orgId = \"\";\r\n HashMap map;\r\n \tfor(int g=0; g<this.organizations.size(); g++) {\r\n \tmap = (HashMap) this.organizations.get(g);\r\n \tif (orgName.equals(map.get(\"LOCATION_NAME\"))) {\r\n \t\torgId = (String) map.get(\"ORGANIZATION_ID\");\r\n \t}\r\n }\r\n return orgId;\r\n }", "public java.lang.String getOrganizationId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public Integer getOrgId() {\n\t\treturn orgId;\n\t}", "public int getPersonOrgID() {\n return personOrgID;\n }", "public Long getOrgId() {\n return orgId;\n }", "public Long getOrgId() {\n return orgId;\n }", "public Long getOrgId() {\n return orgId;\n }", "public Long getOrgId() {\n return orgId;\n }", "public Long getOrgId() {\n return orgId;\n }", "public long getOrgId() {\r\n return orgId;\r\n }", "public Number getOrganizationId() {\n return (Number)getAttributeInternal(ORGANIZATIONID);\n }", "public static String getCurrentUserOrgId() {\n DirectoryManager directoryManager = (DirectoryManager) appContext.getBean(\"directoryManager\");\n String username = getCurrentUsername();\n return Optional.of(username)\n .map(directoryManager::getUserByUsername)\n .map(User::getEmployments)\n .map(o -> (Set<Employment>)o)\n .map(Collection::stream)\n .orElseGet(Stream::empty)\n .findFirst()\n .map(Employment::getOrganizationId)\n .orElse(\"\");\n }", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public Long getAssignLogId() {\n return assignLogId;\n }", "public void setAssignOrgId(Long assignOrgId) {\n this.assignOrgId = assignOrgId;\n }", "public BigDecimal getOrgId() {\n return orgId;\n }", "public String getOrgId() {\n\t\treturn orgId;\n\t}", "public String getOrgNo() {\r\n return orgNo;\r\n }", "public String getAssignid() {\n return assignid;\n }", "private int getBank_Org_ID ()\n\t{\n\t\tif (m_C_BankAccount_ID == 0)\n\t\t\treturn 0;\n\t\t//\n\t\tMBankAccount ba = MBankAccount.get(getCtx(), m_C_BankAccount_ID);\n\t\treturn ba.getAD_Org_ID();\n\t}", "public java.lang.String getId_Organization() {\n return id_Organization;\n }", "public void setPersonOrgID(int value) {\n this.personOrgID = value;\n }", "String organizationId();", "public int getHC_Org2_ID();", "public StrColumn getIprId() {\n return delegate.getColumn(\"ipr_id\", DelegatingStrColumn::new);\n }", "public int getAD_Tree_Org_ID() {\n\t\tInteger ii = (Integer) get_Value(\"AD_Tree_Org_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public void setp_org_id(String value) {\n setNamedWhereClauseParam(\"p_org_id\", value);\n }", "public long getOrganizationId();", "public String getOrganizationId() {\r\n return organizationId;\r\n }", "public int getAD_OrgTrx_ID();", "public int getAD_OrgTrx_ID();", "public Integer getOrgCode() {\n\t\treturn orgCode;\n\t}", "public String getAssignno() {\n return assignno;\n }", "public Long getOrganizationId() {\n return organizationId;\n }", "public Long getOrganizationId() {\n return organizationId;\n }", "public String getOrganizationId() {\n return organizationId;\n }", "public StrColumn getOrganisation() {\n return delegate.getColumn(\"organisation\", DelegatingStrColumn::new);\n }", "public String getOrganId() {\n return organId;\n }", "public Long getApplierOrgId() {\n return applierOrgId;\n }", "public String getOrgCode() {\n return orgCode;\n }", "public String getOrgCode() {\n return orgCode;\n }", "public Long getCreateOrgId() {\n return createOrgId;\n }", "public Long getCreateOrgId() {\n return createOrgId;\n }", "public Long getCreateOrgId() {\n return createOrgId;\n }", "public ID getAssignedID() {\r\n return assignedID;\r\n }", "@JsonGetter(\"orgId\")\r\n public long getOrgId ( ) { \r\n return this.orgId;\r\n }", "public String getIdentificationIssuingOrg() {\n return this.identificationIssuingOrg;\n }", "public EntityID getAssignedAgentID();", "@Override\n public long getOrganizationId() {\n return _usersCatastropheOrgs.getOrganizationId();\n }", "public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }", "public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }", "public void setAssignLogId(Long assignLogId) {\n this.assignLogId = assignLogId;\n }", "public Long gettOrganizationId() {\n\t\treturn tOrganizationId;\n\t}", "public Long getParentAssignLogId() {\n return parentAssignLogId;\n }", "@Override\n\tpublic long getEsfOrganizationId() {\n\t\treturn _esfTournament.getEsfOrganizationId();\n\t}", "public Number getProjectId() {\n return (Number) getAttributeInternal(PROJECTID);\n }", "public long getGovernorId()\n\t{\n\t\tassert this.cursor != null;\n\t\treturn this.cursor.getLong(0);\n\t}", "public String getOrgname() {\n return orgname;\n }", "public Long getAssignOperatorId() {\n return assignOperatorId;\n }", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setOrgId(String orgId);", "@Override\n protected String getExistingATGId(ItemData itemData) throws MappingException {\n Object existingConfiguredAttributesObj = getCurrentATGPropertyValue();\n\n if (existingConfiguredAttributesObj == null) {\n return null;\n }\n\n if (!(existingConfiguredAttributesObj instanceof Set<?>)) {\n String[] messageArguments = { \"existingConfiguredAttributesObj\", \"Set\" }; \n String message = formatMappingErrorMessage(INVALID_PROPERTY_TYPE, messageArguments);\n vlogError(message);\n\n String itemId = (String) getSiebelItem().getProperties().get(\n getSiebelParentItemId());\n getMappingService().processMappingError(\n getSiebelItem().getExportItemId(), message, itemId,\n getSiebelItemType(), null, null);\n return null;\n }\n @SuppressWarnings(\"unchecked\")\n Set<RepositoryItem> existingConfiguredAttributes = (Set<RepositoryItem>) existingConfiguredAttributesObj;\n\n // loop thru the configured attributes checking the origId\n String origId = (String) itemData.getProperties().get(SIEBEL_ORIG_ID);\n for (RepositoryItem configAttribute : existingConfiguredAttributes) {\n String repositoryOrigId = (String) configAttribute\n .getPropertyValue(ATG_ORIG_ID);\n if (repositoryOrigId != null && repositoryOrigId.equals(origId)) {\n // if find matching origId in a repository item return the id of that\n // repository item\n return configAttribute.getRepositoryId();\n }\n }\n\n return null;\n }", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _employee.getCompanyId();\n\t}", "public String getOrganizationCode() {\n return organizationCode;\n }", "public int getC_Project_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_Project_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public int getAD_OrgTrx_ID() {\n\t\tInteger ii = (Integer) get_Value(\"AD_OrgTrx_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public String getOrgName() {\r\n return orgName;\r\n }", "@Override\n\tpublic long getAssignmentId() {\n\t\treturn model.getAssignmentId();\n\t}", "String getOrganizationPartyId();", "public final String getOrganisation() {\n return organisation;\n }", "public String getOrgName() {\n return orgName;\n }", "public java.lang.String getCompanyAgId() {\n\t\treturn _imageCompanyAg.getCompanyAgId();\n\t}" ]
[ "0.661716", "0.6213149", "0.617331", "0.6020766", "0.60119313", "0.5976874", "0.5962032", "0.59534264", "0.59228337", "0.59228337", "0.59228337", "0.59228337", "0.59228337", "0.5921381", "0.5893175", "0.5892683", "0.5891328", "0.5891328", "0.5891328", "0.5891328", "0.5891328", "0.5891328", "0.5891328", "0.5891328", "0.5891328", "0.5891328", "0.5891328", "0.5891328", "0.5891328", "0.586795", "0.58464056", "0.5837909", "0.57870275", "0.57738984", "0.57406616", "0.56689364", "0.5603802", "0.56014025", "0.55404115", "0.5517701", "0.5512093", "0.54389954", "0.54201794", "0.5413475", "0.54019785", "0.53952247", "0.53952247", "0.53713286", "0.5356678", "0.53547895", "0.53547895", "0.53539497", "0.53255635", "0.5324768", "0.53186166", "0.52612627", "0.52612627", "0.51938397", "0.51938397", "0.51938397", "0.5170408", "0.51382357", "0.51245993", "0.51182336", "0.50966436", "0.50689495", "0.50689495", "0.5067929", "0.5032127", "0.5030332", "0.50277376", "0.4991666", "0.49545464", "0.4951977", "0.49300534", "0.4928848", "0.4928848", "0.4928848", "0.4928848", "0.4928848", "0.4928848", "0.4928848", "0.4928848", "0.4928848", "0.4928848", "0.4928848", "0.4928848", "0.4928848", "0.49044168", "0.48902515", "0.48892105", "0.48884845", "0.48599583", "0.48445904", "0.4842437", "0.482423", "0.48241696", "0.48221776", "0.48219684", "0.48155606" ]
0.6953782
0
This method was generated by MyBatis Generator. This method sets the value of the database column msm_trac_log.ASSIGN_ORG_ID
public void setAssignOrgId(Long assignOrgId) { this.assignOrgId = assignOrgId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getAssignOrgId() {\n return assignOrgId;\n }", "public void setPersonOrgID(int value) {\n this.personOrgID = value;\n }", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }", "public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }", "public void setp_org_id(String value) {\n setNamedWhereClauseParam(\"p_org_id\", value);\n }", "public void setOrganizationId(Number value) {\n setAttributeInternal(ORGANIZATIONID, value);\n }", "public void setAssignLogId(Long assignLogId) {\n this.assignLogId = assignLogId;\n }", "public void setOrgId(String orgId);", "public void setOrgId(long orgId) {\r\n this.orgId = orgId;\r\n }", "public void setHC_Org2_ID (int HC_Org2_ID);", "public Long getAssignLogId() {\n return assignLogId;\n }", "public String getp_org_id() {\n return (String)getNamedWhereClauseParam(\"p_org_id\");\n }", "public void setOrgId(BigDecimal orgId) {\n this.orgId = orgId;\n }", "public void setAssignid(String assignid) {\n this.assignid = assignid == null ? null : assignid.trim();\n }", "public long getOrgId() {\r\n return orgId;\r\n }", "public void setOrgId(Integer orgId) {\n\t\tthis.orgId = orgId;\n\t}", "public String getAssignid() {\n return assignid;\n }", "public Integer getOrgId() {\n\t\treturn orgId;\n\t}", "public Long getOrgId() {\n return orgId;\n }", "public Long getOrgId() {\n return orgId;\n }", "public Long getOrgId() {\n return orgId;\n }", "public Long getOrgId() {\n return orgId;\n }", "public Long getOrgId() {\n return orgId;\n }", "@AutoEscape\n\tpublic String getOrgId();", "public void setOrgNo(String orgNo) {\r\n this.orgNo = orgNo;\r\n }", "public int getPersonOrgID() {\n return personOrgID;\n }", "public void setAD_OrgTrx_ID (int AD_OrgTrx_ID);", "public void setAD_OrgTrx_ID (int AD_OrgTrx_ID);", "public String getOrgId() {\n\t\treturn orgId;\n\t}", "public void setId_Organization(java.lang.String id_Organization) {\n this.id_Organization = id_Organization;\n }", "public Number getOrgId() {\n return (Number)getAttributeInternal(ORGID);\n }", "public void setOrgId(Long orgId) {\n this.orgId = orgId;\n }", "public void setOrgId(Long orgId) {\n this.orgId = orgId;\n }", "public void setOrgId(Long orgId) {\n this.orgId = orgId;\n }", "public void setOrgId(Long orgId) {\n this.orgId = orgId;\n }", "public void setOrgId(Long orgId) {\n this.orgId = orgId;\n }", "public Number getOrgId() {\n return (Number) getAttributeInternal(ORGID);\n }", "public String getOrgNo() {\r\n return orgNo;\r\n }", "public final void setOrganisation(String value) {\n organisation = value;\n }", "public BigDecimal getOrgId() {\n return orgId;\n }", "@JsonSetter(\"orgId\")\r\n public void setOrgId (long value) { \r\n this.orgId = value;\r\n }", "public void setOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;", "public void setAD_Tree_Org_ID(int AD_Tree_Org_ID) {\n\t\tif (AD_Tree_Org_ID <= 0)\n\t\t\tset_ValueNoCheck(\"AD_Tree_Org_ID\", null);\n\t\telse\n\t\t\tset_ValueNoCheck(\"AD_Tree_Org_ID\", new Integer(AD_Tree_Org_ID));\n\t}", "public void setOrgCode(String orgCode) {\n this.orgCode = orgCode == null ? null : orgCode.trim();\n }", "public void setOrgCode(String orgCode) {\n this.orgCode = orgCode == null ? null : orgCode.trim();\n }", "public void setOrgId(String orgId) {\n\t\tthis.orgId = orgId;\n\t}", "public void setOrgExecutor(java.lang.String newOrgExecutor) {\n\torgExecutor = newOrgExecutor;\n}", "private void setEmployeeID() {\n try {\n employeeID = userModel.getEmployeeID(Main.getCurrentUser());\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void setIDASSIGNFLAG(boolean value) {\n this.idassignflag = value;\n }", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 99: */ {\r\n/* 100:160 */ this.idOrganizacion = idOrganizacion;\r\n/* 101: */ }", "public void setOrganization(com.hps.july.persistence.Organization arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().setOrganization(arg0);\n }", "public void setAssignno(String assignno) {\n this.assignno = assignno == null ? null : assignno.trim();\n }", "public void setOrgCode(Integer orgCode) {\n\t\tthis.orgCode = orgCode;\n\t}", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 88: */ {\r\n/* 89:157 */ this.idOrganizacion = idOrganizacion;\r\n/* 90: */ }", "public void setOrganizationId(long organizationId);", "public String getOrganizationId(String orgName) {\r\n \tString orgId = \"\";\r\n HashMap map;\r\n \tfor(int g=0; g<this.organizations.size(); g++) {\r\n \tmap = (HashMap) this.organizations.get(g);\r\n \tif (orgName.equals(map.get(\"LOCATION_NAME\"))) {\r\n \t\torgId = (String) map.get(\"ORGANIZATION_ID\");\r\n \t}\r\n }\r\n return orgId;\r\n }", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 95: */ {\r\n/* 96:126 */ this.idOrganizacion = idOrganizacion;\r\n/* 97: */ }", "public void setOrganizationId(java.lang.String organizationId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ORGANIZATIONID$4);\r\n }\r\n target.setStringValue(organizationId);\r\n }\r\n }", "public java.lang.String getOrganizationId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 113: */ {\r\n/* 114:127 */ this.idOrganizacion = idOrganizacion;\r\n/* 115: */ }", "public final void mASSIGN() throws RecognitionException {\n try {\n int _type = ASSIGN;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2775:3: ( ':=' )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2776:3: ':='\n {\n match(\":=\"); if (state.failed) return ;\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public void setCompanyId(Integer value) {\n this.companyId = value;\n }", "public Number getOrganizationId() {\n return (Number)getAttributeInternal(ORGANIZATIONID);\n }", "public java.lang.String getId_Organization() {\n return id_Organization;\n }", "public void secondarySetOrganization(com.hps.july.persistence.Organization arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondarySetOrganization(arg0);\n }", "public String getOrganizationId() {\r\n return organizationId;\r\n }", "public void setRelProjectId(int v) throws TorqueException\n {\n \n if (this.relProjectId != v)\n {\n this.relProjectId = v;\n setModified(true);\n }\n \n \n if (aProjectRelatedByRelProjectId != null && !(aProjectRelatedByRelProjectId.getProjectId() == v))\n {\n aProjectRelatedByRelProjectId = null;\n }\n \n }", "public void setParentAssignLogId(Long parentAssignLogId) {\n this.parentAssignLogId = parentAssignLogId;\n }", "public void setAD_OrgTrx_ID(int AD_OrgTrx_ID) {\n\t\tif (AD_OrgTrx_ID <= 0)\n\t\t\tset_Value(\"AD_OrgTrx_ID\", null);\n\t\telse\n\t\t\tset_Value(\"AD_OrgTrx_ID\", new Integer(AD_OrgTrx_ID));\n\t}", "public Long getApplierOrgId() {\n return applierOrgId;\n }", "public void setCompany(java.lang.Integer newCompany) {\n\tcompany = newCompany;\n}", "public void setAssignType(String assignType) {\n this.assignType = assignType == null ? null : assignType.trim();\n }", "private int getBank_Org_ID ()\n\t{\n\t\tif (m_C_BankAccount_ID == 0)\n\t\t\treturn 0;\n\t\t//\n\t\tMBankAccount ba = MBankAccount.get(getCtx(), m_C_BankAccount_ID);\n\t\treturn ba.getAD_Org_ID();\n\t}", "public void setPresentid(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localPresentidTracker = true;\r\n } else {\r\n localPresentidTracker = false;\r\n \r\n }\r\n \r\n this.localPresentid=param;\r\n \r\n\r\n }" ]
[ "0.6744187", "0.635773", "0.6082436", "0.6082436", "0.6082436", "0.6082436", "0.6082436", "0.6082436", "0.6082436", "0.6082436", "0.6082436", "0.6082436", "0.6082436", "0.6082436", "0.6082436", "0.6067573", "0.6067573", "0.6063471", "0.5712132", "0.56365484", "0.5606191", "0.5476669", "0.54674435", "0.5458629", "0.544453", "0.5437684", "0.5432452", "0.53555006", "0.533297", "0.5331426", "0.53160125", "0.53138685", "0.53138685", "0.53138685", "0.53138685", "0.53138685", "0.5272987", "0.52434087", "0.5229675", "0.5223826", "0.5223826", "0.5213965", "0.52111304", "0.5194177", "0.51572007", "0.51572007", "0.51572007", "0.51572007", "0.51572007", "0.513931", "0.5124223", "0.5123138", "0.51184183", "0.51072264", "0.5098864", "0.50702107", "0.50413764", "0.50413764", "0.5034619", "0.50266343", "0.5024359", "0.5013302", "0.5011852", "0.49949536", "0.49844006", "0.4977805", "0.49709463", "0.49637377", "0.49585816", "0.4956076", "0.4956076", "0.4956076", "0.4956076", "0.4956076", "0.4956076", "0.4956076", "0.4956076", "0.4956076", "0.4956076", "0.4956076", "0.4956076", "0.4956076", "0.494087", "0.49313384", "0.49250218", "0.49170923", "0.49126232", "0.48950082", "0.48801777", "0.48785144", "0.48598984", "0.48572043", "0.4841558", "0.482813", "0.48262987", "0.48209068", "0.48054975", "0.47904456", "0.47767466", "0.47755358" ]
0.65298617
1
This method was generated by MyBatis Generator. This method returns the value of the database column msm_trac_log.ASSIGN_OPERATOR_ID
public Long getAssignOperatorId() { return assignOperatorId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getAssignLogId() {\n return assignLogId;\n }", "public String getAssignid() {\n return assignid;\n }", "public String getAssignno() {\n return assignno;\n }", "public Long getAssignOrgId() {\n return assignOrgId;\n }", "public StrColumn getIprId() {\n return delegate.getColumn(\"ipr_id\", DelegatingStrColumn::new);\n }", "public void setAssignOperatorId(Long assignOperatorId) {\n this.assignOperatorId = assignOperatorId;\n }", "public Long getParentAssignLogId() {\n return parentAssignLogId;\n }", "public String getOperateEmpId() {\n return operateEmpId;\n }", "public String getOperatepersonid() {\r\n return operatepersonid;\r\n }", "public ID getAssignedID() {\r\n return assignedID;\r\n }", "public long getOperatorId() {\r\n return operatorId;\r\n }", "public void setAssignLogId(Long assignLogId) {\n this.assignLogId = assignLogId;\n }", "public Integer getOperatorId() {\n return operatorId;\n }", "public Long getOperatorId() {\n return operatorId;\n }", "public String getAssignType() {\n return assignType;\n }", "public final void mINCREMENT_ASSIGN() throws RecognitionException {\n try {\n int _type = INCREMENT_ASSIGN;\n // /Users/benjamincoe/HackWars/C.g:228:2: ( '+=' )\n // /Users/benjamincoe/HackWars/C.g:228:4: '+='\n {\n match(\"+=\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "public String getOperatorid() {\n return operatorid;\n }", "assign_op getAssign_op();", "public int getAccOpId() {\n return accOpId_;\n }", "public boolean isIDASSIGNFLAG() {\n return idassignflag;\n }", "public int getPlanner_ID() {\n\t\tInteger ii = (Integer) get_Value(\"Planner_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public int getAccOpId() {\n return accOpId_;\n }", "@Override\n\tpublic long getAssignmentId() {\n\t\treturn model.getAssignmentId();\n\t}", "String labPlanId();", "public DataRecord getAssignRecord() {\r\n String[] activeStates = currentProcessInstance.getActiveStates();\r\n Actor[] actors = null;\r\n \r\n try {\r\n DataRecord data = getAssignTemplate().getEmptyRecord();\r\n \r\n for (int i = 0; activeStates != null && i < activeStates.length; i++) {\r\n actors = currentProcessInstance.getWorkingUsers(activeStates[i]);\r\n \r\n for (int j = 0; actors != null && j < actors.length; j++) {\r\n Field field = data.getField(activeStates[i] + \"_\"\r\n + actors[j].getUserRoleName() + \"_\" + j);\r\n String value = actors[j].getUser().getUserId();\r\n \r\n if (value != null) {\r\n field.setStringValue(value);\r\n }\r\n }\r\n }\r\n \r\n return data;\r\n } catch (WorkflowException e) {\r\n SilverTrace.warn(\"processManager\", \"SessionController.getAssignRecord\",\r\n \"processManager.EX_ERR_GET_DATARECORD\", e);\r\n return null;\r\n } catch (ProcessManagerException e) {\r\n SilverTrace.warn(\"processManager\", \"SessionController.getAssignRecord\",\r\n \"processManager.EX_ERR_GET_DATARECORD\", e);\r\n return null;\r\n } catch (FormException e) {\r\n SilverTrace.warn(\"processManager\", \"SessionController.getAssignRecord\",\r\n \"processManager.EX_ERR_GET_FIELD\");\r\n return null;\r\n }\r\n }", "public int getCurrentOperationId(){\n int nmr = 1;\n operationLock.lock();\n try (\n Statement s = rawDataSource.getConnection().createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n ResultSet res = s.executeQuery(\n \"SELECT OP_ID FROM APP.OPERATIONS ORDER BY OP_ID ASC\")) {\n\n if (res.last()) {\n nmr = Integer.parseInt(res.getString(\"OP_ID\")) + 1;\n }\n } catch (SQLException ex) {\n return nmr;\n }\n\n operationLock.unlock();\n return nmr;\n }", "public int getId()\r\n/* 75: */ {\r\n/* 76:110 */ return this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 77: */ }", "public StrColumn getRobotId() {\n return delegate.getColumn(\"robot_id\", DelegatingStrColumn::new);\n }", "public Long getOperator() {\n return operator;\n }", "public Integer getModifyEmpId() {\n return modifyEmpId;\n }", "public EntityID getAssignedAgentID();", "public String getSOperatorID() {\n return sOperatorID;\n }", "public int getOperatorNum() {\n return operatorNum;\n }", "private int getEmployeeId() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tint employeeId1 = 0;\r\n\t\tString sql = \"SELECT Patient_Id_Sequence.NEXTVAL FROM DUAL\";\r\n\t\ttry {\r\n\t\t\tPreparedStatement pstmt = con.prepareStatement(sql);\r\n\t\t\tResultSet res = pstmt.executeQuery();\r\n\t\t\tif (res.next()) {\r\n\t\t\t\temployeeId1 = res.getInt(1);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"error while fetching data from database\");\r\n\t\t}\r\n\t\treturn employeeId1;\r\n\r\n\t}", "public String getModifyEmpId() {\n return modifyEmpId;\n }", "public Integer getCreateEmpId() {\n return createEmpId;\n }", "public int getId()\r\n/* 69: */ {\r\n/* 70:103 */ return this.idAutorizacionEmpresaSRI;\r\n/* 71: */ }", "private int save_InsertGetInsertId() {\n\t\t\n\t\tfinal String INSERT_SQL = \"INSERT INTO project__insert_id_tbl ( ) VALUES ( )\";\n\t\t\n\t\t// Use Spring JdbcTemplate so Transactions work properly\n\t\t\n\t\t// How to get the auto-increment primary key for the inserted record\n\t\t\n\t\ttry {\n\t\t\tKeyHolder keyHolder = new GeneratedKeyHolder();\n\t\t\tint rowsUpdated = this.getJdbcTemplate().update(\n\t\t\t\t\tnew PreparedStatementCreator() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic PreparedStatement createPreparedStatement(Connection connection) throws SQLException {\n\n\t\t\t\t\t\t\tPreparedStatement pstmt =\n\t\t\t\t\t\t\t\t\tconnection.prepareStatement( INSERT_SQL, Statement.RETURN_GENERATED_KEYS );\n\n\t\t\t\t\t\t\treturn pstmt;\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tkeyHolder);\n\n\t\t\tNumber insertedKey = keyHolder.getKey();\n\t\t\t\n\t\t\tlong insertedKeyLong = insertedKey.longValue();\n\t\t\t\n\t\t\tif ( insertedKeyLong > Integer.MAX_VALUE ) {\n\t\t\t\tString msg = \"Inserted key is too large, is > Integer.MAX_VALUE. insertedKey: \" + insertedKey;\n\t\t\t\tlog.error( msg );\n\t\t\t\tthrow new LimelightInternalErrorException( msg );\n\t\t\t}\n\t\t\t\n\t\t\tint insertedKeyInt = (int) insertedKeyLong; // Inserted auto-increment primary key for the inserted record\n\t\t\t\n\t\t\treturn insertedKeyInt;\n\t\t\t\n\t\t} catch ( RuntimeException e ) {\n\t\t\tString msg = \"SQL: \" + INSERT_SQL;\n\t\t\tlog.error( msg, e );\n\t\t\tthrow e;\n\t\t}\n\t}", "public void setAssignid(String assignid) {\n this.assignid = assignid == null ? null : assignid.trim();\n }", "@Override\n public Integer visitAssign(CalculatorParser.AssignContext ctx) {\n String id = ctx.ID().getText(); // id is left-hand side of '='\n int value = visit(ctx.expr()); // compute value of expression on right\n memory.put(id, value); // store it in memory\n return value;\n }", "public StrColumn getGoId() {\n return delegate.getColumn(\"go_id\", DelegatingStrColumn::new);\n }", "public int getSalesRep_ID();", "public int getSalesRep_ID();", "public YangString getPlmnIdValue() throws JNCException {\n return (YangString)getValue(\"plmn-id\");\n }", "public String getCreateEmpId() {\n return createEmpId;\n }", "public int toInt(){\n\t\treturn CustomerId;\n\t}", "public void setIDASSIGNFLAG(boolean value) {\n this.idassignflag = value;\n }", "@Override\r\n\tpublic Integer getCurrentInsertID() throws Exception {\n\t\treturn sqlSession.selectOne(namespaceOrder+\".getLastInsertID\");\r\n\t}", "public Long getOpId() {\n return opId;\n }", "public Long getOpId() {\n return opId;\n }", "public Long getOpId() {\n return opId;\n }", "public Long getOpId() {\n return opId;\n }", "private MapDBLabelToId() {\n\t\tproperties = new ProjectProperties(this.getClass());\n\n\t\tmap = db.getCollection(COLLECTION_NAME);\n\t\t// commitFrequency = properties.getInt(\"mapdb.commit\");\n\t}", "public String getp_org_id() {\n return (String)getNamedWhereClauseParam(\"p_org_id\");\n }", "public String getOperateperson() {\r\n return operateperson;\r\n }", "public void setAssignOrgId(Long assignOrgId) {\n this.assignOrgId = assignOrgId;\n }", "@Override\n\tpublic long getEmpId() {\n\t\treturn _employee.getEmpId();\n\t}", "public String operator() {\n return this.operator;\n }", "public int getHC_ManagerTo_ID();", "int getReprojectedModisId(String project, DataDate date) throws SQLException;", "public long getGovernorId()\n\t{\n\t\tassert this.cursor != null;\n\t\treturn this.cursor.getLong(0);\n\t}", "public int getM_Locator_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Locator_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "public int getIdAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI()\r\n/* 80: */ {\r\n/* 81:114 */ return this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 82: */ }", "public int getEmpID() {\n return empID;\n }", "public String getManagerEmpId() {\n return _managerEmpId;\n }", "public Integer getOpr() {\n return opr;\n }", "public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }", "public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }", "public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }", "public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }", "public java.lang.String getOperID() {\n return operID;\n }", "private int getExperimentId(Comparable accession) {\n String query = \"SELECT experiment_id FROM pride_experiment WHERE accession= ?\";\n return jdbcTemplate.queryForInt(query, accession);\n }", "public Integer getOpportunityID() {\n return opportunityID;\n }", "public int getID() {\n return reportID;\n }", "int getDoctorId();", "int getDoctorId();", "public Number getProjectId() {\n return (Number) getAttributeInternal(PROJECTID);\n }", "public int getM_Production_ID();", "public AssignExpr assign_expr() {\n if (lexer.token != Symbol.IDENT) {\n error.signal(\"Expecting identifier at assign expression\");\n }\n \n String type = symbolTable.getVariable(lexer.getStringValue());\n if(type == null){\n error.show(\"Tried to assign a value to a variable (\"+lexer.getStringValue()+\") that hasn't been declared.\");\n } else {\n if(type.equals(\"STRING\")){\n error.show(\"Tried to assign a value to a declared string variable (\"+lexer.getStringValue()+\")\");\n }\n }\n \n Ident id = new Ident(lexer.getStringValue());\n \n lexer.nextToken();\n if (lexer.token != Symbol.ASSIGN) {\n error.signal(\"Expecting assign symbol at assign expression\");\n }\n lexer.nextToken();\n Expr e = expr();\n\n if(type != null && type.toLowerCase().equals(\"int\") && e.getType(symbolTable) != null && e.getType(symbolTable).toLowerCase().equals(\"float\"))\n error.show(\"Trying to assign a \"+e.getType(symbolTable)+\" to a \"+type);\n else if (type != null && e.getType(symbolTable) != null && !type.equals(e.getType(symbolTable)))\n error.warning(\"Trying to assign a \"+e.getType(symbolTable)+\" to a \"+type);\n \n return new AssignExpr(id, e);\n }", "protected abstract String getJobSubmitId();", "public BigDecimal getREPORT_ID() {\r\n return REPORT_ID;\r\n }", "public java.lang.Integer getOperator() throws java.rmi.RemoteException;", "public Number getManagerIdFk() {\r\n return (Number) getAttributeInternal(MANAGERIDFK);\r\n }", "public int getM_Locator_ID() {\n\t\tInteger ii = (Integer) get_Value(\"M_Locator_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "private static AssignExpr retrieveAssignExpression(Expression expression) {\n return expression.asAssignExpr();\n }", "public void setParentAssignLogId(Long parentAssignLogId) {\n this.parentAssignLogId = parentAssignLogId;\n }", "public Integer getId()\r\n\t\t{ return mapping.getId(); }", "public void setOperator(int opr) {\n this.operator = opr;\n }", "public int getPendingClaim() {\n int customer_id = 0;\n try {\n ResultSet resultset = pendingClaims.executeQuery();\n while (resultset.next()) {\n customer_id = resultset.getInt(\"customer_id\");\n System.out.println(\"Customer ID: \" + customer_id + \"\\n\");\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"Try Again!\");\n }\n return customer_id;\n }", "public int getIdAutorizacionEmpresaSRI()\r\n/* 74: */ {\r\n/* 75:112 */ return this.idAutorizacionEmpresaSRI;\r\n/* 76: */ }", "public DBSequence getPromoBonusId() {\n return (DBSequence)getAttributeInternal(PROMOBONUSID);\n }", "@Override\n\tpublic String getSubmitId() {\n\t\treturn model.getSubmitId();\n\t}", "public final void rule__AstAssignParameter__NameAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:23009:1: ( ( RULE_ID ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:23010:1: ( RULE_ID )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:23010:1: ( RULE_ID )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:23011:1: RULE_ID\n {\n before(grammarAccess.getAstAssignParameterAccess().getNameIDTerminalRuleCall_0_0()); \n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__AstAssignParameter__NameAssignment_046110); \n after(grammarAccess.getAstAssignParameterAccess().getNameIDTerminalRuleCall_0_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public int getId() {\n return parameter.getId();\n }", "public Integer getTargetID()\r\n\t\t{ return mapping.getTargetId(); }", "public java.lang.Integer getOperator() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.lang.Integer) __getCache(\"operator\")));\n }", "private static Expression retrieveAssignExpressionValue(Expression expression) {\n return retrieveAssignExpression(expression).getValue();\n }", "public int getEmpId() {\n return id;\n }", "public String getEventidforAssigning(String eventId){\n System.out.println(\"hello\" + eventId);\n ViewObjectImpl usersVO = this.getEventCandidateDatawithName1();\n usersVO.setApplyViewCriteriaName(\"EventCandidateDatawithNameCriteria\");\n usersVO.setNamedWhereClauseParam(\"pid\",eventId);\n usersVO.executeQuery();\n // System.out.println(usersVO);\n Row usersVORow = usersVO.first();\n // System.out.println(usersVORow);\n // System.out.println(usersVORow.getAttribute(\"EVENT_ID\").toString());\n return (usersVORow != null) ? usersVORow.getAttribute(\"EVENT_ID\").toString(): null;\n }", "public final String getRefPKVal() {\n\t\tString str = this.getRequest().getParameter(\"RefPKVal\");\n\t\tif (str == null) {\n\t\t\treturn \"1\";\n\t\t}\n\t\treturn str;\n\t}" ]
[ "0.6492409", "0.62362695", "0.587678", "0.57546544", "0.56287634", "0.56190366", "0.5490016", "0.5412237", "0.52777517", "0.52260315", "0.5208566", "0.52046764", "0.5198762", "0.51955897", "0.5170623", "0.51242566", "0.5092554", "0.506318", "0.5045962", "0.50336593", "0.50052804", "0.49869397", "0.4945789", "0.49442157", "0.49279043", "0.4913332", "0.48265046", "0.47752404", "0.47596532", "0.47482142", "0.47466102", "0.47202778", "0.47111425", "0.46918797", "0.46907318", "0.4686648", "0.46852052", "0.46830797", "0.4657246", "0.46503225", "0.46418047", "0.46160257", "0.46160257", "0.46151724", "0.45985228", "0.45917574", "0.45860353", "0.45818648", "0.45815703", "0.45815703", "0.45815703", "0.45815703", "0.454698", "0.4546955", "0.45468557", "0.4546733", "0.453468", "0.4533817", "0.4533546", "0.45137516", "0.45045483", "0.45003325", "0.44967556", "0.4488979", "0.44874552", "0.448689", "0.44844592", "0.44844592", "0.44844592", "0.44844592", "0.44817275", "0.44789797", "0.4477212", "0.44717783", "0.44716373", "0.44716373", "0.44703472", "0.44675937", "0.44589812", "0.4450515", "0.44500315", "0.4444527", "0.44419718", "0.44411385", "0.4439527", "0.44391012", "0.44328824", "0.44314268", "0.4424606", "0.4419523", "0.44128808", "0.44061142", "0.43932864", "0.43919635", "0.4390549", "0.4385279", "0.43764007", "0.4376094", "0.43711123", "0.43683413" ]
0.6873184
0
This method was generated by MyBatis Generator. This method sets the value of the database column msm_trac_log.ASSIGN_OPERATOR_ID
public void setAssignOperatorId(Long assignOperatorId) { this.assignOperatorId = assignOperatorId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getAssignOperatorId() {\n return assignOperatorId;\n }", "public Long getAssignLogId() {\n return assignLogId;\n }", "public void setAssignLogId(Long assignLogId) {\n this.assignLogId = assignLogId;\n }", "public String getAssignid() {\n return assignid;\n }", "public void setAssignid(String assignid) {\n this.assignid = assignid == null ? null : assignid.trim();\n }", "public final void mINCREMENT_ASSIGN() throws RecognitionException {\n try {\n int _type = INCREMENT_ASSIGN;\n // /Users/benjamincoe/HackWars/C.g:228:2: ( '+=' )\n // /Users/benjamincoe/HackWars/C.g:228:4: '+='\n {\n match(\"+=\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "public Long getAssignOrgId() {\n return assignOrgId;\n }", "public void setIDASSIGNFLAG(boolean value) {\n this.idassignflag = value;\n }", "public void setAssignOrgId(Long assignOrgId) {\n this.assignOrgId = assignOrgId;\n }", "assign_op getAssign_op();", "public final void mASSIGN() throws RecognitionException {\n try {\n int _type = ASSIGN;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2775:3: ( ':=' )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2776:3: ':='\n {\n match(\":=\"); if (state.failed) return ;\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public String getAssignno() {\n return assignno;\n }", "@Override\n public void visit(final OpAssign opAssign) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Starting visiting OpAssign\");\n }\n addOp(OpAssign.assign(rewriteOp1(opAssign), opAssign.getVarExprList()));\n }", "public void setOperator(int opr) {\n this.operator = opr;\n }", "public void setParentAssignLogId(Long parentAssignLogId) {\n this.parentAssignLogId = parentAssignLogId;\n }", "@Override\r\n\tpublic Object visit(YoyooAssignmentOperator node, Object data) {\r\n\t\tassignOptMark = new OperatorMark(node.first_token.image);\r\n\t\treturn null;\r\n\t}", "@Override\n public Operator visitAssign(Assign operator)\n {\n throw new AssertionError();\n }", "@Override\n public Integer visitAssign(CalculatorParser.AssignContext ctx) {\n String id = ctx.ID().getText(); // id is left-hand side of '='\n int value = visit(ctx.expr()); // compute value of expression on right\n memory.put(id, value); // store it in memory\n return value;\n }", "public void setAssignno(String assignno) {\n this.assignno = assignno == null ? null : assignno.trim();\n }", "public void setAssignType(String assignType) {\n this.assignType = assignType == null ? null : assignType.trim();\n }", "public void setOpr(int opr) {\n\t\tthis.opr = opr;\n\t}", "public final void rule__AstAssignParameter__NameAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:23009:1: ( ( RULE_ID ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:23010:1: ( RULE_ID )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:23010:1: ( RULE_ID )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:23011:1: RULE_ID\n {\n before(grammarAccess.getAstAssignParameterAccess().getNameIDTerminalRuleCall_0_0()); \n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__AstAssignParameter__NameAssignment_046110); \n after(grammarAccess.getAstAssignParameterAccess().getNameIDTerminalRuleCall_0_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void mMULTIPLY_ASSIGN() throws RecognitionException {\n try {\n int _type = MULTIPLY_ASSIGN;\n // /Users/benjamincoe/HackWars/C.g:232:2: ( '*=' )\n // /Users/benjamincoe/HackWars/C.g:232:4: '*='\n {\n match(\"*=\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "public Long getParentAssignLogId() {\n return parentAssignLogId;\n }", "public final String assignStmt() throws RecognitionException {\n\t\tString out = null;\n\n\n\t\tCommonTree ID26=null;\n\t\tString expr27 =null;\n\n\n\t\t\tout = \"\";\n\n\t\ttry {\n\t\t\t// C:\\\\Users\\\\Samir\\\\Documents\\\\University\\\\Y2S2\\\\COMP2010\\\\LittleNic\\\\src\\\\LittleNicCodeGen.g:376:2: ( ^( ':=' ID expr[false, null] ) )\n\t\t\t// C:\\\\Users\\\\Samir\\\\Documents\\\\University\\\\Y2S2\\\\COMP2010\\\\LittleNic\\\\src\\\\LittleNicCodeGen.g:376:4: ^( ':=' ID expr[false, null] )\n\t\t\t{\n\t\t\tmatch(input,30,FOLLOW_30_in_assignStmt515); \n\t\t\tmatch(input, Token.DOWN, null); \n\t\t\tID26=(CommonTree)match(input,ID,FOLLOW_ID_in_assignStmt517); \n\t\t\tpushFollow(FOLLOW_expr_in_assignStmt519);\n\t\t\texpr27=expr(false, null);\n\t\t\tstate._fsp--;\n\n\t\t\tmatch(input, Token.UP, null); \n\n\t\t\tout = \"_\" + (ID26!=null?ID26.getText():null) + \" = \" + expr27 + \";\";\n\t\t\t}\n\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn out;\n\t}", "public void setOpNum(java.lang.String param) {\r\n localOpNumTracker = param != null;\r\n\r\n this.localOpNum = param;\r\n }", "public void setOpr(Integer opr) {\n this.opr = opr;\n }", "public boolean isIDASSIGNFLAG() {\n return idassignflag;\n }", "public void chooseOptionAssignToOnBulkActionsDropDown() {\n getLogger().info(\"Choose option: Assign to.\");\n clickElement(optionAssignTo, \"Assign To Option\");\n }", "@Override\n public ExprType analyzeAssign(AnalyzeInfo info, ExprGenerator value)\n {\n ExprGenerator objGen = ((ExprPro) _objExpr).getGenerator();\n objGen.analyze(info);\n\n value.analyze(info);\n\n // php/3a6e, php/39o3\n // objGen.analyzeSetReference(info);\n objGen.analyzeSetModified(info);\n\n return ExprType.VALUE;\n }", "public final void mAssign() throws RecognitionException {\r\n\t\ttry {\r\n\t\t\tint _type = Assign;\r\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\r\n\t\t\t// C:\\\\Users\\\\don\\\\workspace\\\\sea-of-ql-repo-3\\\\ckonig\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:166:9: ( ':' )\r\n\t\t\t// C:\\\\Users\\\\don\\\\workspace\\\\sea-of-ql-repo-3\\\\ckonig\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:166:11: ':'\r\n\t\t\t{\r\n\t\t\tmatch(':'); \r\n\t\t\t}\r\n\r\n\t\t\tstate.type = _type;\r\n\t\t\tstate.channel = _channel;\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\t// do for sure before leaving\r\n\t\t}\r\n\t}", "public String getAssignType() {\n return assignType;\n }", "public void setOperateEmpId(String operateEmpId) {\n this.operateEmpId = operateEmpId;\n }", "public void setOperator(com.hps.july.persistence.Operator arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().setOperator(arg0);\n }", "public ID getAssignedID() {\r\n return assignedID;\r\n }", "public void setPresentid(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localPresentidTracker = true;\r\n } else {\r\n localPresentidTracker = false;\r\n \r\n }\r\n \r\n this.localPresentid=param;\r\n \r\n\r\n }", "public void setIdAutorizacionEmpresaSRI(int idAutorizacionEmpresaSRI)\r\n/* 79: */ {\r\n/* 80:122 */ this.idAutorizacionEmpresaSRI = idAutorizacionEmpresaSRI;\r\n/* 81: */ }", "public static void setIdAssigner(ImageIdAssigner idAssigner)\n\t{\n\t\tif(ItemImage.idAssigner == null)\n\t\t\tItemImage.idAssigner = idAssigner;\n\t}", "private void setEmployeeID() {\n try {\n employeeID = userModel.getEmployeeID(Main.getCurrentUser());\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public DataRecord getAssignRecord() {\r\n String[] activeStates = currentProcessInstance.getActiveStates();\r\n Actor[] actors = null;\r\n \r\n try {\r\n DataRecord data = getAssignTemplate().getEmptyRecord();\r\n \r\n for (int i = 0; activeStates != null && i < activeStates.length; i++) {\r\n actors = currentProcessInstance.getWorkingUsers(activeStates[i]);\r\n \r\n for (int j = 0; actors != null && j < actors.length; j++) {\r\n Field field = data.getField(activeStates[i] + \"_\"\r\n + actors[j].getUserRoleName() + \"_\" + j);\r\n String value = actors[j].getUser().getUserId();\r\n \r\n if (value != null) {\r\n field.setStringValue(value);\r\n }\r\n }\r\n }\r\n \r\n return data;\r\n } catch (WorkflowException e) {\r\n SilverTrace.warn(\"processManager\", \"SessionController.getAssignRecord\",\r\n \"processManager.EX_ERR_GET_DATARECORD\", e);\r\n return null;\r\n } catch (ProcessManagerException e) {\r\n SilverTrace.warn(\"processManager\", \"SessionController.getAssignRecord\",\r\n \"processManager.EX_ERR_GET_DATARECORD\", e);\r\n return null;\r\n } catch (FormException e) {\r\n SilverTrace.warn(\"processManager\", \"SessionController.getAssignRecord\",\r\n \"processManager.EX_ERR_GET_FIELD\");\r\n return null;\r\n }\r\n }", "public void setId(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n localIdTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.localId=param;\r\n \r\n\r\n }", "public final void rule__AstStatementAssign__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:15100:1: ( ( ':=' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:15101:1: ( ':=' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:15101:1: ( ':=' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:15102:1: ':='\n {\n before(grammarAccess.getAstStatementAssignAccess().getColonEqualsSignKeyword_3()); \n match(input,47,FOLLOW_47_in_rule__AstStatementAssign__Group__3__Impl30506); \n after(grammarAccess.getAstStatementAssignAccess().getColonEqualsSignKeyword_3()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public AssignExpr assign_expr() {\n if (lexer.token != Symbol.IDENT) {\n error.signal(\"Expecting identifier at assign expression\");\n }\n \n String type = symbolTable.getVariable(lexer.getStringValue());\n if(type == null){\n error.show(\"Tried to assign a value to a variable (\"+lexer.getStringValue()+\") that hasn't been declared.\");\n } else {\n if(type.equals(\"STRING\")){\n error.show(\"Tried to assign a value to a declared string variable (\"+lexer.getStringValue()+\")\");\n }\n }\n \n Ident id = new Ident(lexer.getStringValue());\n \n lexer.nextToken();\n if (lexer.token != Symbol.ASSIGN) {\n error.signal(\"Expecting assign symbol at assign expression\");\n }\n lexer.nextToken();\n Expr e = expr();\n\n if(type != null && type.toLowerCase().equals(\"int\") && e.getType(symbolTable) != null && e.getType(symbolTable).toLowerCase().equals(\"float\"))\n error.show(\"Trying to assign a \"+e.getType(symbolTable)+\" to a \"+type);\n else if (type != null && e.getType(symbolTable) != null && !type.equals(e.getType(symbolTable)))\n error.warning(\"Trying to assign a \"+e.getType(symbolTable)+\" to a \"+type);\n \n return new AssignExpr(id, e);\n }", "public void setOperatepersonid(String operatepersonid) {\r\n this.operatepersonid = operatepersonid;\r\n }", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "private ILogicalOperator addAssignToLeafInput(ILogicalOperator leafInput, AssignOperator aOp) {\n aOp.getInputs().get(0).setValue(leafInput);\n return aOp;\n }", "public final void rule__AstAssignParameter__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5783:1: ( ( '=' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5784:1: ( '=' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5784:1: ( '=' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5785:1: '='\n {\n before(grammarAccess.getAstAssignParameterAccess().getEqualsSignKeyword_1()); \n match(input,19,FOLLOW_19_in_rule__AstAssignParameter__Group__1__Impl12135); \n after(grammarAccess.getAstAssignParameterAccess().getEqualsSignKeyword_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public void setHC_ManagerTo_ID (int HC_ManagerTo_ID);", "public Integer visitAssign(ExprParser.AssignContext ctx) {\n String id = ctx.ID().getText();\n int value = visit(ctx.expr());\n memory.put(id, value);\n return value;\n }", "public void assignId(int id);", "public void setSalesRep_ID (int SalesRep_ID);", "public void setSalesRep_ID (int SalesRep_ID);", "public void secondarySetOperator(com.hps.july.persistence.Operator arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondarySetOperator(arg0);\n }", "private boolean onlyOneAssign(ILogicalOperator op, List<AssignOperator> assignOps) {\n if (op.getOperatorTag() == LogicalOperatorTag.ASSIGN) {\n AssignOperator aOp = (AssignOperator) op;\n assignOps.add(aOp);\n op = op.getInputs().get(0).getValue();\n }\n return (joinClause(op));\n }", "public static DecisionOperator<IntVar> assign() {\n return DecisionOperator.int_eq;\n }", "Assign createAssign();", "public void setOperator_lx(java.lang.String param) {\r\n localOperator_lxTracker = param != null;\r\n\r\n this.localOperator_lx = param;\r\n }", "public void setOperator_lx(java.lang.String param) {\r\n localOperator_lxTracker = param != null;\r\n\r\n this.localOperator_lx = param;\r\n }", "protected Assign assign(Position pos, Expr e, Assign.Operator asgn, Expr val) throws SemanticException {\n Assign a = (Assign) xnf.Assign(pos, e, asgn, val).type(e.type());\n if (a instanceof FieldAssign) {\n assert (e instanceof Field);\n assert ((Field) e).fieldInstance() != null;\n a = ((FieldAssign) a).fieldInstance(((Field)e).fieldInstance());\n } else if (a instanceof SettableAssign) {\n assert (e instanceof X10Call);\n X10Call call = (X10Call) e;\n List<Expr> args = CollectionUtil.append(Collections.singletonList(val), call.arguments());\n X10Call n = xnf.X10Call(pos, call.target(), nf.Id(pos, SettableAssign.SET), call.typeArguments(), args);\n n = (X10Call) n.del().disambiguate(this).typeCheck(this).checkConstants(this);\n X10MethodInstance smi = n.methodInstance();\n X10MethodInstance ami = call.methodInstance();\n // List<Type> aTypes = new ArrayList<Type>(ami.formalTypes());\n // aTypes.add(0, ami.returnType()); // rhs goes before index\n // MethodInstance smi = xts.findMethod(ami.container(),\n // xts.MethodMatcher(ami.container(), SET, aTypes, context));\n a = ((SettableAssign) a).methodInstance(smi);\n a = ((SettableAssign) a).applyMethodInstance(ami);\n }\n return a;\n }", "public String getOperateEmpId() {\n return operateEmpId;\n }", "public void setRadiologyOrderID(java.lang.String param){\n \n this.localRadiologyOrderID=param;\n \n\n }", "public void setRadiologyOrderID(java.lang.String param){\n \n this.localRadiologyOrderID=param;\n \n\n }", "private Expr visitLocalAssign(LocalAssign n) throws SemanticException { \n Position pos = n.position();\n if (n.operator() == Assign.ASSIGN) return n;\n X10Binary_c.Operator op = n.operator().binaryOperator();\n Local left = (Local) n.left();\n Expr right = n.right();\n Type R = left.type();\n Expr val = visitBinary((X10Binary_c) xnf.Binary(pos, left, op, right).type(R));\n return assign(pos, left, Assign.ASSIGN, val);\n }", "public Builder setAccOpId(int value) {\n \n accOpId_ = value;\n onChanged();\n return this;\n }", "public void setSpid(int param){\n localSpidTracker = true;\n \n this.localSpid=param;\n \n\n }", "@Override\n\tpublic Void visit(Assign assign) {\n\t\tprintIndent(\"<-\");\n\t\tindent++;\n\t\tassign.id.accept(this);\n\t\tassign.expr.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "public void setIdAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI(int idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI)\r\n/* 85: */ {\r\n/* 86:118 */ this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI = idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 87: */ }", "public void setAssignee(double assignee) {\n this.assignee = assignee;\n }", "@Override\n\tpublic void visit(AssignNode node) {\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\n\t\t/**\n\t\t * Verificam fiii si construim perechea Variabila, Valoare pentru a fi\n\t\t * inserata in HahMap-ul din Evaluator\n\t\t */\n\t\tVariable x = null;\n\t\tValue i = null;\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\tx = new Variable(node.getChild(1).getName());\n\t\t} else {\n\t\t\ti = new Value(node.getChild(1).getName());\n\t\t}\n\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\tx = new Variable(node.getChild(0).getName());\n\t\t} else {\n\t\t\ti = new Value(node.getChild(0).getName());\n\t\t}\n\t\tEvaluator.variables.put(x.getName(), i.getName());\n\t\tnode.setName(i.getName());\n\t}", "public void setOperator (User operator) {\n\t\tthis.operator = operator;\n\t}", "public final void rule__AstStatementAssign__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:15013:1: ( ( ( rule__AstStatementAssign__TargetAssignment_0 ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:15014:1: ( ( rule__AstStatementAssign__TargetAssignment_0 ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:15014:1: ( ( rule__AstStatementAssign__TargetAssignment_0 ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:15015:1: ( rule__AstStatementAssign__TargetAssignment_0 )\n {\n before(grammarAccess.getAstStatementAssignAccess().getTargetAssignment_0()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:15016:1: ( rule__AstStatementAssign__TargetAssignment_0 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:15016:2: rule__AstStatementAssign__TargetAssignment_0\n {\n pushFollow(FOLLOW_rule__AstStatementAssign__TargetAssignment_0_in_rule__AstStatementAssign__Group__0__Impl30323);\n rule__AstStatementAssign__TargetAssignment_0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAstStatementAssignAccess().getTargetAssignment_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public void assign(String id, ExprNode expr) {\n if (expr instanceof ObjectNode && !assignedParams.contains(id)) {\n assignedParams.add(id);\n }\n assignments.put(id, expr);\n }", "public void setOperateperson(String operateperson) {\r\n this.operateperson = operateperson;\r\n }", "public String getOperatepersonid() {\r\n return operatepersonid;\r\n }", "@Override\n\tpublic Object visit(ASTAssign node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" := \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "public void assign(String id,String pass,int num,String act_id,linked_list<Project> pro_list,linked_list<Activity> act_list,linked_list<Employee1> elist) throws IOException\n {\n \tNode<Admin> pos = adm_list.getFirst();\n\t\t\twhile(pos!=null)\n\t\t\t{\n\t\t\t\tif(pos.getData().employee_id.equals(id) && pos.getData().password.equals(pass))\n\t\t\t\t{\n\t\t\t\t\tNode<Project> pro=pro_list.getFirst();\n\t\t\t\t\twhile(pro!=null)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(pos.getData().admin_project_key.equals(pro.getData().project_id))//checking whether the project key and id provided by admin are same or not\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tNode<Activity> a=act_list.getFirst();\n\t\t\t\t\t\t\twhile(a!=null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(act_id.equals(a.getData().activity_id))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\ta.getData().assign_group(elist);\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Group of employees:\");\n\t\t\t\t\t\t\t\t\tSystem.out.println(a.getData().toString());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\ta=a.getNext();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpro=pro.getNext();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tpos = pos.getNext();\n\t\t\t}\n\t\t\t\n\t\t\twrite_adm_file();\n\t }", "public final void mASSIGN_KW() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = ASSIGN_KW;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// src/VSLLexer.g:31:11: ( ':=' )\n\t\t\t// src/VSLLexer.g:31:13: ':='\n\t\t\t{\n\t\t\tmatch(\":=\"); \n\n\t\t\t}\n\n\t\t\tstate.type = _type;\n\t\t\tstate.channel = _channel;\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "public void setOpControl(java.lang.String param) {\r\n localOpControlTracker = param != null;\r\n\r\n this.localOpControl = param;\r\n }", "public final void mDECREMENT_ASSIGN() throws RecognitionException {\n try {\n int _type = DECREMENT_ASSIGN;\n // /Users/benjamincoe/HackWars/C.g:230:2: ( '-=' )\n // /Users/benjamincoe/HackWars/C.g:230:4: '-='\n {\n match(\"-=\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "public void setOperator(java.lang.Integer newValue) {\n\tthis.operator = newValue;\n}", "public void setOperatorId(long operatorId) {\r\n this.operatorId = operatorId;\r\n }", "public void setM_Production_ID (int M_Production_ID);", "public void setSpId(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localSpIdTracker = true;\r\n } else {\r\n localSpIdTracker = false;\r\n \r\n }\r\n \r\n this.localSpId=param;\r\n \r\n\r\n }", "public void setId(java.lang.String param) {\n localIdTracker = true;\n\n this.localId = param;\n }", "public void setId(java.lang.String param) {\n localIdTracker = true;\n\n this.localId = param;\n }", "public void setOperator(Operator_PJ o1) {\n\t\t\n\t}", "@Override\n\tpublic Object visitStatement_Assign(Statement_Assign statement_Assign, Object arg) throws Exception {\n\t\tif(statement_Assign.lhs.getTypeName().isType(Type.INTEGER) ||statement_Assign.lhs.getTypeName().isType(Type.BOOLEAN) ){\n\t\t\tstatement_Assign.e.visit(this, arg);\t\t\n\t\t\tstatement_Assign.lhs.visit(this, arg);\n\t\t}\n\t\telse if(statement_Assign.lhs.getTypeName().isType(Type.IMAGE)){\n\t\t\t//if(statement_Assign.lhs.isCartesian){\n\t\t\t\tmv.visitFieldInsn(GETSTATIC, className, statement_Assign.lhs.name, ImageSupport.ImageDesc);\n\t\t\t\tmv.visitInsn(DUP);\n\t\t\t\tmv.visitMethodInsn(INVOKESTATIC, ImageSupport.className, \"getX\", ImageSupport.getXSig, false);\n\t\t\t\tmv.visitIntInsn(ISTORE, 3);\n\t\t\t\tmv.visitMethodInsn(INVOKESTATIC, ImageSupport.className, \"getY\", ImageSupport.getYSig, false);\n\t\t\t\tmv.visitIntInsn(ISTORE, 4);\t\t\t\t\n\t\t\t//}\n\t\t\t\n\t\t\tmv.visitInsn(ICONST_0);\n\t\t\tmv.visitVarInsn(ISTORE, 1);\n\t\t\tLabel l1 = new Label();\n\t\t\tmv.visitLabel(l1);\n\t\t\tLabel l2 = new Label();\n\t\t\tmv.visitJumpInsn(GOTO, l2);\n\t\t\tLabel l3 = new Label();\n\t\t\tmv.visitLabel(l3);\n\t\t\tmv.visitLineNumber(11, l3);\n\t\t\tmv.visitFrame(Opcodes.F_APPEND,1, new Object[] {Opcodes.INTEGER}, 0, null);\n\t\t\tmv.visitInsn(ICONST_0);\n\t\t\tmv.visitVarInsn(ISTORE, 2);\n\t\t\tLabel l4 = new Label();\n\t\t\tmv.visitLabel(l4);\n\t\t\tLabel l5 = new Label();\n\t\t\tmv.visitJumpInsn(GOTO, l5);\n\t\t\tLabel l6 = new Label();\n\t\t\tmv.visitLabel(l6);\n\t\t\tmv.visitFrame(Opcodes.F_APPEND,1, new Object[] {Opcodes.INTEGER}, 0, null);\n\t\t\t\n\t\t\tstatement_Assign.e.visit(this, arg);\n\t\t\tstatement_Assign.lhs.visit(this, arg);\n\t\t\t\n\t\t\tmv.visitIincInsn(2, 1);\n\t\t\tmv.visitLabel(l5);\n\t\t\tmv.visitFrame(Opcodes.F_SAME, 0, null, 0, null);\n\t\t\tmv.visitVarInsn(ILOAD, 2);\n\t\t\tmv.visitIntInsn(ILOAD, 4); // Y MAX VALUE\n\t\t\tmv.visitJumpInsn(IF_ICMPLT, l6);\n\t\t\tLabel l7 = new Label();\n\t\t\tmv.visitLabel(l7);\n\t\t\tmv.visitIincInsn(1, 1);\n\t\t\tmv.visitLabel(l2);\n\t\t\tmv.visitFrame(Opcodes.F_CHOP,1, null, 0, null);\n\t\t\tmv.visitVarInsn(ILOAD, 1);\n\t\t\tmv.visitIntInsn(ILOAD, 3); // X MAX VALUE\n\t\t\tmv.visitJumpInsn(IF_ICMPLT, l3);\n\t\t}\n\t\treturn null;\n\t}", "public void setOperandA(int val);", "private static AssignExpr retrieveAssignExpression(Expression expression) {\n return expression.asAssignExpr();\n }", "protected void sequence_AssignmentStatement(ISerializationContext context, AssignmentStatement semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, EntitiesPackage.Literals.ASSIGNMENT_STATEMENT__ASSIGNEE) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, EntitiesPackage.Literals.ASSIGNMENT_STATEMENT__ASSIGNEE));\n\t\t\tif (transientValues.isValueTransient(semanticObject, EntitiesPackage.Literals.STATEMENT__EXPR) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, EntitiesPackage.Literals.STATEMENT__EXPR));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getAssignmentStatementAccess().getAssigneeFieldIDTerminalRuleCall_0_0_1(), semanticObject.eGet(EntitiesPackage.Literals.ASSIGNMENT_STATEMENT__ASSIGNEE, false));\n\t\tfeeder.accept(grammarAccess.getAssignmentStatementAccess().getExprExpressionParserRuleCall_2_0(), semanticObject.getExpr());\n\t\tfeeder.finish();\n\t}", "protected void setId(UiAction uiAction, ResultSet rs, int rowNumber) throws SQLException{\n\t\t\n\t\tString id = rs.getString(UiActionTable.COLUMN_ID);\n\t\t\n\t\tif(id == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tuiAction.setId(id);\n\t}", "public void setOperator(java.lang.Integer newOperator)\n\t\tthrows java.rmi.RemoteException;", "public static void select_AssignedOrderValue(String assignorder) {\n\t\tboolean bstatus;\n\n\t\tbstatus = selectListItem(select_AssignedOrder, assignorder);\n\t\tReporter.log(bstatus, \"Assigned Order is selected from dropdown\", \"Assigned Order is not selected\");\n\n\t\t\n\t}", "public static void setCurrent(ArrayList<Object> sel, MyIdentitiesTree tree, IdentityBranch ib){\n \tMyIdentitiesModel model = (MyIdentitiesModel)tree.getModel();\n \tIdentity newID = new Identity();\n \tnewID.globalOrgID = Util.getString(sel.get(0));\n \tnewID.globalID = Util.getString(sel.get(1));\n \tnewID.identity_id=Util.getString(sel.get(2));\n \tnewID.authorship_lang = Util.getString(sel.get(3));\n \tnewID.authorship_charset = Util.getString(sel.get(4));\n \tif(Identity.current_id_branch == ib) return;\n \tif(Identity.current_id_branch!=null){\n \t\tIdentityBranch oib = (IdentityBranch)Identity.current_id_branch;\n \t\tIdentity.current_id_branch = null;\n \t\tmodel.fireTreeNodesChanged(new TreeModelEvent(tree,new Object[]{model.root},new int[]{model.root.getIndexOfChild(oib)},new Object[]{oib}));\n \t}\n \tIdentity.current_id_branch = ib;\n \tOrgs ao = Application.orgs;\n \tif ((newID.identity_id!=null)&&(ao != null)) {\n \t\ttry{\n \t\t\tlong id = new Integer(newID.identity_id).longValue();\n \t\t\tao.setCurrent(id);\n \t\t}catch(Exception e){e.printStackTrace();}\n \t}\n \tIdentity.setCurrentIdentity(newID);\n }", "public static void setAnIdentityCurrent(MyIdentitiesTree tree, IdentityBranch ib) throws P2PDDSQLException {\n \tif(DEBUG) System.out.println(\"MyIdentitiesModel:setDefaultIdentityCurrent: \"+ib);\n \tif(ib==null) return;\n \tString sql = sql_identities_view +\n \t\" WHERE \"+table.identity.default_id+\"=?;\";\n \tArrayList<ArrayList<Object>> sel = Application.db.select(sql, new String[]{ib.identityID+\"\"}, DEBUG);\n \tif (sel.size()<1) return;\n \tsetCurrent(sel.get(0), tree, ib);\n }", "void assignOperators(Object rgID, List<Object> operIDs);", "public final void rule__Cooperate__Group__4__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:4835:1: ( ( ( rule__Cooperate__RoleAssignment_4 ) ) )\r\n // InternalDroneScript.g:4836:1: ( ( rule__Cooperate__RoleAssignment_4 ) )\r\n {\r\n // InternalDroneScript.g:4836:1: ( ( rule__Cooperate__RoleAssignment_4 ) )\r\n // InternalDroneScript.g:4837:2: ( rule__Cooperate__RoleAssignment_4 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getCooperateAccess().getRoleAssignment_4()); \r\n }\r\n // InternalDroneScript.g:4838:2: ( rule__Cooperate__RoleAssignment_4 )\r\n // InternalDroneScript.g:4838:3: rule__Cooperate__RoleAssignment_4\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Cooperate__RoleAssignment_4();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getCooperateAccess().getRoleAssignment_4()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public void setPlmnIdValue(String plmnIdValue) throws JNCException {\n setPlmnIdValue(new YangString(plmnIdValue));\n }", "public void setLogCorrelationIDString(java.lang.String param){\n localLogCorrelationIDStringTracker = true;\n \n this.localLogCorrelationIDString=param;\n \n\n }", "public void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);" ]
[ "0.6443735", "0.6041321", "0.58566123", "0.57942903", "0.55060184", "0.54982126", "0.54898775", "0.5331239", "0.5242756", "0.52271825", "0.52014357", "0.51856506", "0.51763946", "0.51084995", "0.5089762", "0.5001823", "0.49545062", "0.49542385", "0.49542063", "0.48936105", "0.48824114", "0.4880315", "0.48647994", "0.48329407", "0.4810713", "0.47947994", "0.4789744", "0.47794613", "0.4720249", "0.47137612", "0.47036618", "0.46966752", "0.46952248", "0.46927434", "0.46915516", "0.46592927", "0.46582267", "0.46574247", "0.465399", "0.46481565", "0.4645675", "0.46447003", "0.4634496", "0.46298185", "0.46228182", "0.46073171", "0.46013448", "0.4594443", "0.45925558", "0.45923388", "0.45752695", "0.45752695", "0.4565495", "0.45641062", "0.4553736", "0.45424044", "0.45334056", "0.45334056", "0.45150584", "0.45136946", "0.45134857", "0.45134857", "0.4512096", "0.44926095", "0.44525808", "0.44521743", "0.44509897", "0.44201505", "0.44105688", "0.44077477", "0.44019833", "0.4395815", "0.4393402", "0.43920928", "0.43905485", "0.43761855", "0.43550998", "0.43505332", "0.4349495", "0.43334025", "0.43306664", "0.43224224", "0.43181568", "0.4314793", "0.4314793", "0.43052554", "0.43016037", "0.42963576", "0.4295175", "0.42938155", "0.42926392", "0.4292384", "0.4289262", "0.42877847", "0.42835042", "0.42834184", "0.42754793", "0.42754093", "0.42711815", "0.42672196" ]
0.6178266
1
This method was generated by MyBatis Generator. This method returns the value of the database column msm_trac_log.SALES_ORGNIZATION_ID
public Long getSalesOrgnizationId() { return salesOrgnizationId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getSalesID() {\n return salesID;\n }", "public int getSalesRep_ID();", "public int getSalesRep_ID();", "public Integer getSysId() {\n return sysId;\n }", "public void setSalesOrgnizationId(Long salesOrgnizationId) {\n this.salesOrgnizationId = salesOrgnizationId;\n }", "public Number getSystemId() {\n return (Number)getAttributeInternal(SYSTEMID);\n }", "@JsonIgnore\n\t@Id\n\tpublic Long getId() {\n\t\treturn Long.valueOf(String.format(\"%d%02d\", sale.getSaleYear(), this.num));\n\t}", "@Transient\n\tpublic String getSubscriptionId()\t{\n\n\t\tif (mSubscriptionIdLong > 0)\n\t\t\treturn Long.toString(mSubscriptionIdLong);\n\t\telse\n\t\t\treturn null;\n\t}", "public int getAD_Tree_SalesRegion_ID() {\n\t\tInteger ii = (Integer) get_Value(\"AD_Tree_SalesRegion_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "String getSlingId();", "public Number getSystemId() {\n return (Number) getAttributeInternal(SYSTEMID);\n }", "public java.lang.String getLogCorrelationIDString(){\n return localLogCorrelationIDString;\n }", "public Integer getSysid() {\r\n\t\treturn sysid;\r\n\t}", "public String getSysId() {\n return sysId;\n }", "public String getSysId() {\n return sysId;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getCorrelateID(){\n return localCorrelateID;\n }", "@Override\r\n public int getsaleId() {\n return this.saleId;\r\n }", "public Number getSolineId() {\n return (Number)getAttributeInternal(SOLINEID);\n }", "public int getRegionalGISId() {\n return gisID_;\n }", "public java.lang.String getCatalogId() {\n java.lang.Object ref = catalogId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n catalogId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public int getSysID() {\n return sysID_;\n }", "@java.lang.Override\n public java.lang.String getCatalogId() {\n java.lang.Object ref = catalogId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n catalogId_ = s;\n return s;\n }\n }", "String getGlJournalId();", "public int getSysID() {\n return sysID_;\n }", "public java.lang.String getOrganizationId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public String getSystemId();", "public static Serializable getSystemId() {\n Serializable ret = null;\n if (getSystemStatic() != null) {\n ret = getSystemStatic().getDistributionManager().getId();\n }\n return ret;\n }", "public String getSysCompanyId() {\n return sysCompanyId;\n }", "int getLogId();", "public Number getOrganizationId() {\n return (Number)getAttributeInternal(ORGANIZATIONID);\n }", "public Integer getLogid() {\n return logid;\n }", "public Integer getSale_num() {\n return sale_num;\n }", "public String getLogId() {\r\n return logId;\r\n }", "public String getSR_ID() {\n\t\treturn SR_ID;\n\t}", "java.lang.String getRegionId();", "public StrColumn getIprId() {\n return delegate.getColumn(\"ipr_id\", DelegatingStrColumn::new);\n }", "String organizationId();", "private String getLuisSubscriptionID() {\n return this.getString(R.string.luisSubscriptionID);\n }", "public int getC_Decoris_PreSalesLine_ID();", "public BigDecimal getSL_NO() {\r\n return SL_NO;\r\n }", "public BigDecimal getSL_NO() {\r\n return SL_NO;\r\n }", "public BigDecimal getSL_NO() {\r\n return SL_NO;\r\n }", "public java.lang.Long getSystemId () {\r\n\t\treturn systemId;\r\n\t}", "public StrColumn getJournalIdCSD() {\n return delegate.getColumn(\"journal_id_CSD\", DelegatingStrColumn::new);\n }", "public String getStatusId() {\n return getProperty(Property.STATUS_ID);\n }", "Integer getRegionId();", "public String getSystemId() {\n // TODO Auto-generated method stub\n return null;\n }", "public StrColumn getJournalIdISSN() {\n return delegate.getColumn(\"journal_id_ISSN\", DelegatingStrColumn::new);\n }", "java.lang.String getOperationId();", "public String getSystemId() { return this.systemId; }", "public String getSystemId() {\n\t\treturn mSystemId;\n\t}", "public Number getSoObinslineId() {\n return (Number)getAttributeInternal(SOOBINSLINEID);\n }", "java.lang.String getBusinessId();", "public long getGovernorId()\n\t{\n\t\tassert this.cursor != null;\n\t\treturn this.cursor.getLong(0);\n\t}", "public Number getSoObinsizlineId() {\n return (Number)getAttributeInternal(SOOBINSIZLINEID);\n }", "public Number getOrgId() {\n return (Number)getAttributeInternal(ORGID);\n }", "String getTaxId();", "public org.apache.axis2.databinding.types.soapencoding.String getLSPID(){\n return localLSPID;\n }", "public String getSystemID()\n/* */ {\n/* 1299 */ return this.systemID;\n/* */ }", "public Integer getLogisticsId() {\n return logisticsId;\n }", "@Id\n @WhereSQL(sql = \"id=:WxPayconfig_id\")\n public java.lang.String getId() {\n return this.id;\n }", "public StrColumn getAuthSeqId() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"auth_seq_id\", StrColumn::new) :\n getBinaryColumn(\"auth_seq_id\"));\n }", "public StrColumn getAuthSeqId() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"auth_seq_id\", StrColumn::new) :\n getBinaryColumn(\"auth_seq_id\"));\n }", "@JsonProperty(\"system_id\")\n public int getSystemId() {\n return systemId;\n }", "public String getTransLogId() {\n return transLogId;\n }", "public Number getSalesOrderId() {\n return (Number)getAttributeInternal(SALESORDERID);\n }", "public Integer getdepartment(String OrgId, String ClientId, String salesregionId) {\n String sqlQuery = \"\";\n Integer count = 0;\n PreparedStatement st = null;\n ResultSet rs = null;\n try {\n sqlQuery = \" SELECT count(*) as count ,C_SALESREGION.C_SALESREGION_ID as defregion FROM C_SALESREGION WHERE C_SALESREGION.AD_Org_ID IN(\"\n + OrgId + \") AND C_SALESREGION.AD_Client_ID IN(\" + ClientId\n + \") AND C_SALESREGION.isdefault='Y' AND C_SALESREGION.C_SALESREGION_ID IN(\"\n + salesregionId + \") group by C_SALESREGION_ID\";\n st = conn.prepareStatement(sqlQuery);\n rs = st.executeQuery();\n if (rs.next()) {\n count = rs.getInt(\"count\");\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return count;\n }", "public String getSystemId()\n {\n if (entityStack.empty())\n {\n return null;\n }\n else\n {\n return (String) entityStack.peek();\n }\n }", "@Override\r\n\tpublic int getOstatu_id() {\n\t\treturn super.getOstatu_id();\r\n\t}", "public long getStatusId();", "public String getPayLogId() {\n return payLogId;\n }", "public static String generateSaleID() {\n\tsaleID++;\n\treturn String.valueOf(saleID);\n }", "public String getSystemId() {\n return agentConfig.getSystemId();\n }", "public Number getOrgId() {\n return (Number) getAttributeInternal(ORGID);\n }", "public gov.ucore.ucore._2_0.StringType getSystemIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.ucore.ucore._2_0.StringType target = null;\n target = (gov.ucore.ucore._2_0.StringType)get_store().find_element_user(SYSTEMIDENTIFIER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public static native String getSatId(int satNo);", "public StrColumn getScatterId() {\n return delegate.getColumn(\"scatter_id\", DelegatingStrColumn::new);\n }", "public int getSensorId();", "public long getOrganizationId();", "private void updateCatalogId() throws TranslationException\n {\n\tString sql = \"SELECT MAX(id) FROM \" + PropertyLookup.getCatalogsTableName();\n\ttry\n\t{\n\t sqlConnector.closeConnection();\n\t ResultSet result = sqlConnector.executeQuery(sql);\n\n\t // We assume the last id added is the id of our catalog.\n\t // If the table is empty something went wrong.\n\t if(result.first())\n\t\tcatalogId = result.getInt(1);\n\t else\n\t\tthrow new TranslationException(\"Error retrieving the catalog id\");\n\t}\n\tcatch(SQLException e)\n\t{\n\t throw new TranslationException(\"Error retrieving the catalog id\", e);\n\t}\n\tfinally\n\t{\n\t sqlConnector.closeConnection();\n\t}\n }", "public long getShopBasketId();", "public String getp_org_id() {\n return (String)getNamedWhereClauseParam(\"p_org_id\");\n }", "public int getM_Production_ID();", "public int getC_Region_ID();", "public BigDecimal getStatementId() {\n return getStatementIdProperty().getValue();\n }", "public String getSysNo() {\n return sysNo;\n }", "public Integer getSalesSum() {\n return salesSum;\n }", "com.cantor.drop.aggregator.model.CFTrade.SecurityIdType getSecIdType();", "public int getLBR_ICMSST_TaxUFDue_ID();", "String getBusi_id();", "public int getAD_OrgTrx_ID();", "public int getAD_OrgTrx_ID();", "public Object getCorrelationId()\n {\n return getUnderlyingId(false);\n }", "public java.lang.String getSecrityNo() {\r\n return localSecrityNo;\r\n }", "@Override\r\n\tpublic String getId() {\n\t\treturn mProductionId;\r\n\t}", "public abstract long getSdiId();", "public String getID(){\n return this.getKey().getTenantId(this.getTenantName());\n }", "String getDistributionID();", "public StrColumn getRobotId() {\n return delegate.getColumn(\"robot_id\", DelegatingStrColumn::new);\n }", "@Override\r\n\tpublic Integer getIdRol(String usuario) {\t\r\n\t\tInteger rolId = null;\r\n\t\t\r\n\t\ttry\r\n\t\t{\t\t\t\r\n\t\t\trolId = jdbcTemplate.queryForObject(\r\n\t\t\t\t\tSQL_SELECT_ROL_USUARIO, \r\n\t\t\t\t\tnew RowMapper<Integer>() {\r\n\t\t\t\t public Integer mapRow(ResultSet rs, int rowNum) throws SQLException {\r\n\t\t\t\t return rs.getInt(\"id\");\r\n\t\t\t\t }\r\n\t\t\t\t },\r\n\t\t\t\t\tusuario);\r\n\t\t}\r\n\t\tcatch(EmptyResultDataAccessException e)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\treturn rolId;\t\r\n\t}" ]
[ "0.5543479", "0.5430335", "0.5430335", "0.5368988", "0.5327881", "0.5267005", "0.5253555", "0.52514994", "0.5229209", "0.5228833", "0.5228326", "0.52239156", "0.52231085", "0.51990706", "0.51990706", "0.5116872", "0.51060367", "0.5061889", "0.5058841", "0.50246805", "0.49961784", "0.49766225", "0.4972223", "0.49698278", "0.49659917", "0.4953799", "0.4943789", "0.49432203", "0.49271846", "0.491199", "0.4905602", "0.4900457", "0.48899087", "0.48860344", "0.48847908", "0.4871777", "0.48710018", "0.48630214", "0.48591068", "0.48546588", "0.48546588", "0.48546588", "0.48510262", "0.48473477", "0.4834111", "0.4816242", "0.4809239", "0.47761708", "0.4764691", "0.47616702", "0.47595894", "0.47551107", "0.475495", "0.47502774", "0.4748984", "0.47459668", "0.47356424", "0.4733231", "0.47228917", "0.4717182", "0.4710124", "0.46957666", "0.46957666", "0.46919435", "0.46869177", "0.46854618", "0.46833846", "0.46788144", "0.4669919", "0.46671867", "0.4663911", "0.4656307", "0.46534267", "0.4653241", "0.4642955", "0.46275443", "0.46271402", "0.46123943", "0.4601271", "0.45987213", "0.45984292", "0.45965979", "0.45906553", "0.45855695", "0.45839515", "0.4583503", "0.45816332", "0.4580556", "0.45783246", "0.45779985", "0.45758784", "0.45758784", "0.45629656", "0.45617104", "0.455665", "0.45385063", "0.45368543", "0.45323017", "0.4527254", "0.45231557" ]
0.6376274
0
This method was generated by MyBatis Generator. This method sets the value of the database column msm_trac_log.SALES_ORGNIZATION_ID
public void setSalesOrgnizationId(Long salesOrgnizationId) { this.salesOrgnizationId = salesOrgnizationId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getSalesOrgnizationId() {\n return salesOrgnizationId;\n }", "public void setSalesRep_ID (int SalesRep_ID);", "public void setSalesRep_ID (int SalesRep_ID);", "@Override\r\n public void setsaleId(int saleid) {\n this.saleId = saleid;\r\n }", "private void setSALIR(int opcionSalida){\n\t\tthis.opcionSalida = opcionSalida;\n\t}", "public long getSalesID() {\n return salesID;\n }", "public void setSalesID(final long newSalesID) {\n this.salesID = newSalesID;\n }", "public void setLogCorrelationIDString(java.lang.String param){\n localLogCorrelationIDStringTracker = true;\n \n this.localLogCorrelationIDString=param;\n \n\n }", "public void setSalesLog(List<Sale> salesLogToSet) {\n salesLog = salesLogToSet;\n }", "public void setCorrelateID(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localCorrelateID=param;\n \n\n }", "public void setC_Decoris_PreSalesLine_ID (int C_Decoris_PreSalesLine_ID);", "public void setIdAutorizacionEmpresaSRI(int idAutorizacionEmpresaSRI)\r\n/* 79: */ {\r\n/* 80:122 */ this.idAutorizacionEmpresaSRI = idAutorizacionEmpresaSRI;\r\n/* 81: */ }", "public void setSalesSum(Integer salesSum) {\n this.salesSum = salesSum;\n }", "public void setIdAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI(int idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI)\r\n/* 85: */ {\r\n/* 86:118 */ this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI = idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 87: */ }", "public void setSysId(Integer sysId) {\n this.sysId = sysId;\n }", "@Override\r\n public int getsaleId() {\n return this.saleId;\r\n }", "public void setAD_Tree_SalesRegion_ID(int AD_Tree_SalesRegion_ID) {\n\t\tif (AD_Tree_SalesRegion_ID <= 0)\n\t\t\tset_ValueNoCheck(\"AD_Tree_SalesRegion_ID\", null);\n\t\telse\n\t\t\tset_ValueNoCheck(\"AD_Tree_SalesRegion_ID\", new Integer(\n\t\t\t\t\tAD_Tree_SalesRegion_ID));\n\t}", "public void setSysid(Integer sysid) {\r\n\t\tthis.sysid = sysid;\r\n\t}", "public void setSolineId(Number value) {\n setAttributeInternal(SOLINEID, value);\n }", "public void setIdSucursal(int idSucursal)\r\n/* 105: */ {\r\n/* 106:134 */ this.idSucursal = idSucursal;\r\n/* 107: */ }", "void setAnnualSales(int annualSales) {\n this.annualSales = annualSales;\n }", "public void setSale_num(Integer sale_num) {\n this.sale_num = sale_num;\n }", "public void setSysId(String sysId) {\n this.sysId = sysId;\n }", "public void setSysId(String sysId) {\n this.sysId = sysId;\n }", "private void updateCatalogId() throws TranslationException\n {\n\tString sql = \"SELECT MAX(id) FROM \" + PropertyLookup.getCatalogsTableName();\n\ttry\n\t{\n\t sqlConnector.closeConnection();\n\t ResultSet result = sqlConnector.executeQuery(sql);\n\n\t // We assume the last id added is the id of our catalog.\n\t // If the table is empty something went wrong.\n\t if(result.first())\n\t\tcatalogId = result.getInt(1);\n\t else\n\t\tthrow new TranslationException(\"Error retrieving the catalog id\");\n\t}\n\tcatch(SQLException e)\n\t{\n\t throw new TranslationException(\"Error retrieving the catalog id\", e);\n\t}\n\tfinally\n\t{\n\t sqlConnector.closeConnection();\n\t}\n }", "public void setLSPID(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localLSPID=param;\n \n\n }", "public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }", "public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }", "public void setIdSucursal(int idSucursal)\r\n/* 109: */ {\r\n/* 110:179 */ this.idSucursal = idSucursal;\r\n/* 111: */ }", "public void setStagingSolarSystemId(int val) {\n stagingSolarSystemId = val;\n }", "public void setSoObinsizlineId(Number value) {\n setAttributeInternal(SOOBINSIZLINEID, value);\n }", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 88: */ {\r\n/* 89:157 */ this.idOrganizacion = idOrganizacion;\r\n/* 90: */ }", "public void setSalesOrderId(Number value) {\n setAttributeInternal(SALESORDERID, value);\n }", "public void setOrganizationId(Number value) {\n setAttributeInternal(ORGANIZATIONID, value);\n }", "public void setStargateId(int val) {\n stargateId = val;\n }", "public void setIdSucursal(int idSucursal)\r\n/* 123: */ {\r\n/* 124:135 */ this.idSucursal = idSucursal;\r\n/* 125: */ }", "void setSOID(java.lang.String soid);", "public void setSystemId(int val) {\n systemId = val;\n }", "public void setIdSucursal(int idSucursal)\r\n/* 98: */ {\r\n/* 99:176 */ this.idSucursal = idSucursal;\r\n/* 100: */ }", "public int update(InsuranceCatalogRelationDO insuranceCatalogRelation) throws DataAccessException {\n \tif (insuranceCatalogRelation == null) {\n \t\tthrow new IllegalArgumentException(\"Can't update by a null data object.\");\n \t}\n\n\n return getSqlMapClientTemplate().update(\"MS-INSURANCE-CATALOG-RELATION-UPDATE\", insuranceCatalogRelation);\n }", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 113: */ {\r\n/* 114:127 */ this.idOrganizacion = idOrganizacion;\r\n/* 115: */ }", "public void setBundleID(long param){\n localBundleIDTracker = true;\n \n this.localBundleID=param;\n \n\n }", "public void setSR_ID(String SR_ID) {\n\t\tthis.SR_ID = SR_ID == null ? null : SR_ID.trim();\n\t}", "public void setSalesAmount(Integer salesAmount) {\n this.salesAmount = salesAmount;\n }", "public void setSpid(int param){\n localSpidTracker = true;\n \n this.localSpid=param;\n \n\n }", "@JsonSetter(\"orgId\")\r\n public void setOrgId (long value) { \r\n this.orgId = value;\r\n }", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 99: */ {\r\n/* 100:160 */ this.idOrganizacion = idOrganizacion;\r\n/* 101: */ }", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 95: */ {\r\n/* 96:126 */ this.idOrganizacion = idOrganizacion;\r\n/* 97: */ }", "public void setRadiologyOrderID(java.lang.String param){\n \n this.localRadiologyOrderID=param;\n \n\n }", "public void setRadiologyOrderID(java.lang.String param){\n \n this.localRadiologyOrderID=param;\n \n\n }", "public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}", "@Override\r\n\tpublic void setId(String id) {\n\t\tmProductionId = id;\r\n\t}", "public void setZSALES_OBJECT(java.lang.String value)\n {\n if ((__ZSALES_OBJECT == null) != (value == null) || (value != null && ! value.equals(__ZSALES_OBJECT)))\n {\n _isDirty = true;\n }\n __ZSALES_OBJECT = value;\n }", "public Builder setCatalogId(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n catalogId_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }", "public void setSoObinslineId(Number value) {\n setAttributeInternal(SOOBINSLINEID, value);\n }", "public void setSalesorderId(Number value) {\n setAttributeInternal(SALESORDERID, value);\n }", "public int getSalesRep_ID();", "public int getSalesRep_ID();", "public void setSL_NO(BigDecimal SL_NO) {\r\n this.SL_NO = SL_NO;\r\n }", "public void setSL_NO(BigDecimal SL_NO) {\r\n this.SL_NO = SL_NO;\r\n }", "public void setSL_NO(BigDecimal SL_NO) {\r\n this.SL_NO = SL_NO;\r\n }", "public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }", "public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }", "public void setSecrityNo(java.lang.String param) {\r\n localSecrityNoTracker = param != null;\r\n\r\n this.localSecrityNo = param;\r\n }", "public void setSalesProp(String salesProp) {\n this.salesProp = salesProp;\n }", "public void setC_Region_ID (int C_Region_ID);", "public void setSolarSystemID(int value) {\n this.solarSystemID = value;\n }", "public SystemLog (\r\n\t\t Long in_logId\r\n ) {\r\n\t\tthis.setLogId(in_logId);\r\n }", "public void setRegionid(int newValue) {\n\tthis.regionid = newValue;\n}", "public void setRadiologyOrderIDForPayment(java.lang.String param){\n \n this.localRadiologyOrderIDForPayment=param;\n \n\n }", "public void setORM_Seriyseriy(orm.Seriy value) {\r\n\t\tthis.seriyseriy = value;\r\n\t}", "public void setIdSolicitudProducto(long idSolicitudProducto) {\n\t\t_telefonoSolicitudProducto.setIdSolicitudProducto(idSolicitudProducto);\n\t}", "public int getAD_Tree_SalesRegion_ID() {\n\t\tInteger ii = (Integer) get_Value(\"AD_Tree_SalesRegion_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public void setSequenceId(long sequence_id)\n {\n sequence_id_ = sequence_id;\n }", "public void setAutorizacionAutoimpresorSRI(AutorizacionAutoimpresorSRI autorizacionAutoimpresorSRI)\r\n/* 125: */ {\r\n/* 126:150 */ this.autorizacionAutoimpresorSRI = autorizacionAutoimpresorSRI;\r\n/* 127: */ }", "public void setSpId(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localSpIdTracker = true;\r\n } else {\r\n localSpIdTracker = false;\r\n \r\n }\r\n \r\n this.localSpId=param;\r\n \r\n\r\n }", "public void setSdSeminarID(long value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (value != this.m_lSdSeminarID));\n\t\tthis.m_lSdSeminarID=value;\n\t}", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAllLocationId(final String val) {\n if (Util.checkNull(val) != null) {\n locId.setA(val);\n }\n }", "public void setServicioSRI(ServicioSRI servicioSRI)\r\n/* 106: */ {\r\n/* 107:125 */ this.servicioSRI = servicioSRI;\r\n/* 108: */ }", "public void setMedioTransactionalID(int value) {\r\n this.medioTransactionalID = value;\r\n }", "void xsetSOID(org.apache.xmlbeans.XmlString soid);", "@JsonSetter(\"company_id\")\n public void setCompanyId (String value) { \n this.companyId = value;\n }", "public void setNumSales(int numSales){\r\n this.sales = numSales;\r\n }", "public void setTransactionID(long value) {\r\n this.transactionID = value;\r\n }", "public void setAuditLogId(long value) {\n this.auditLogId = value;\n }", "public void setM_Production_ID (int M_Production_ID);", "@Override\r\n\tpublic void setId(String id) {\n\t\tmWarehouseId = id;\r\n\t}" ]
[ "0.5784884", "0.54723454", "0.54723454", "0.54259884", "0.5161326", "0.51371217", "0.50772697", "0.5028322", "0.50234604", "0.49939814", "0.4984602", "0.49143067", "0.49060416", "0.49052685", "0.4853249", "0.4827053", "0.48137712", "0.48022234", "0.47999644", "0.47353345", "0.47120503", "0.47086674", "0.47051758", "0.47051758", "0.47048602", "0.46946824", "0.46923402", "0.46923402", "0.46834186", "0.46758205", "0.46756688", "0.46728492", "0.4654491", "0.46412015", "0.4640762", "0.46385345", "0.46366078", "0.46365485", "0.46278083", "0.46253157", "0.4618075", "0.46139133", "0.46127483", "0.45969576", "0.45954695", "0.4595362", "0.45831603", "0.45820844", "0.4577244", "0.4577244", "0.45652133", "0.45574546", "0.4552759", "0.45443735", "0.4541321", "0.45409834", "0.45273656", "0.45273656", "0.45253116", "0.45253116", "0.45253116", "0.45238137", "0.45238137", "0.45234138", "0.45146447", "0.45088473", "0.44978893", "0.4489402", "0.44823647", "0.44794267", "0.4468638", "0.4465529", "0.44485852", "0.44450635", "0.442822", "0.4415722", "0.44041798", "0.44036773", "0.44036773", "0.44036773", "0.44036773", "0.44036773", "0.44036773", "0.44036773", "0.44036773", "0.44036773", "0.44036773", "0.44036773", "0.44036773", "0.44036773", "0.43954432", "0.4391941", "0.43866768", "0.4378012", "0.4367834", "0.4367272", "0.43650007", "0.43603304", "0.43549818", "0.43394533" ]
0.62312835
0
This method was generated by MyBatis Generator. This method returns the value of the database column msm_trac_log.OPERATOR_ID
public Long getOperatorId() { return operatorId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getOperatorId() {\r\n return operatorId;\r\n }", "public String getOperatorid() {\n return operatorid;\n }", "public Integer getOperatorId() {\n return operatorId;\n }", "public Long getOpId() {\n return opId;\n }", "public Long getOpId() {\n return opId;\n }", "public Long getOpId() {\n return opId;\n }", "public Long getOpId() {\n return opId;\n }", "public java.lang.String getOperID() {\n return operID;\n }", "public String getSOperatorID() {\n return sOperatorID;\n }", "public StrColumn getIprId() {\n return delegate.getColumn(\"ipr_id\", DelegatingStrColumn::new);\n }", "public int getCurrentOperationId(){\n int nmr = 1;\n operationLock.lock();\n try (\n Statement s = rawDataSource.getConnection().createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n ResultSet res = s.executeQuery(\n \"SELECT OP_ID FROM APP.OPERATIONS ORDER BY OP_ID ASC\")) {\n\n if (res.last()) {\n nmr = Integer.parseInt(res.getString(\"OP_ID\")) + 1;\n }\n } catch (SQLException ex) {\n return nmr;\n }\n\n operationLock.unlock();\n return nmr;\n }", "public StrColumn getRobotId() {\n return delegate.getColumn(\"robot_id\", DelegatingStrColumn::new);\n }", "public String getOperatepersonid() {\r\n return operatepersonid;\r\n }", "public Long getOperator() {\n return operator;\n }", "public int getAccOpId() {\n return accOpId_;\n }", "public Integer getLogid() {\n return logid;\n }", "public int getAccOpId() {\n return accOpId_;\n }", "public String getOperateEmpId() {\n return operateEmpId;\n }", "public StrColumn getGoId() {\n return delegate.getColumn(\"go_id\", DelegatingStrColumn::new);\n }", "int getLogId();", "public String getLogId() {\r\n return logId;\r\n }", "public int getLogid() {\n\treturn logid;\n}", "java.lang.String getOperationId();", "public String getOperTypeId() {\r\n\t\treturn operTypeId;\r\n\t}", "public int getM_Locator_ID() {\n\t\tInteger ii = (Integer) get_Value(\"M_Locator_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "@Override\r\n\tpublic Integer getCurrentInsertID() throws Exception {\n\t\treturn sqlSession.selectOne(namespaceOrder+\".getLastInsertID\");\r\n\t}", "public Integer\t\tgetOrderID();", "public int getOperatorNum() {\n return operatorNum;\n }", "public int getPlanner_ID() {\n\t\tInteger ii = (Integer) get_Value(\"Planner_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public Integer getOperationId() {\n return operationId;\n }", "public String getOperationId() {\n return this.operationId;\n }", "public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }", "public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }", "public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }", "public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }", "public int toInt(){\n\t\treturn CustomerId;\n\t}", "protected int GetID() {\n\t\treturn this.JunctionID;\n\t}", "java.lang.String getCustomerId();", "java.lang.String getCustomerId();", "public java.lang.Integer getOperator() throws java.rmi.RemoteException;", "OperationIdT getOperationId();", "public Integer getCronopElemId() {\n\t\treturn this.cronopElemId;\n\t}", "public int getM_Locator_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Locator_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "public int getHC_ManagerTo_ID();", "public long getPhoneLogId() {\n return mId;\n }", "@Override\n public String getPigeonCoopID() {\n\n if(this.pigeonCoopID == null){\n\n this.pigeonCoopID = TestDatabase.getInstance().getClientField(token, id, \"pigeonCoopID\");\n }\n return pigeonCoopID;\n\n }", "public TransactionType getLogCode () {\n return logCode;\n }", "public java.lang.Integer getOperator() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.lang.Integer) __getCache(\"operator\")));\n }", "public int getM_InOut_ID();", "public StrColumn getRevisionId() {\n return delegate.getColumn(\"revision_id\", DelegatingStrColumn::new);\n }", "String getCustomerID();", "public String getOperationID() {\n\t\treturn operationId;\n\t}", "@Override\r\n\tpublic OrderVO getOrderByID(Integer ono) throws Exception {\n\t\treturn sqlSession.selectOne(namespaceOrder+\".getOneOrderByOrderID\",ono);\r\n\t}", "public String getAssocOneIdExpr(String prefix, String operator);", "public String operator() {\n return this.operator;\n }", "public Long getAssignOperatorId() {\n return assignOperatorId;\n }", "public int getMPC_Order_ID() {\n\t\tInteger ii = (Integer) get_Value(\"MPC_Order_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "java.lang.String getSqlCode();", "public int getTipoSql() {\n return tipoSql;\n }", "int getHjOpId();", "@Query(value = \"select last_insert_id() from orden limit 1;\",nativeQuery = true)\n\tpublic Integer getLastId();", "public String getOid() {\n return getProperty(Property.OID);\n }", "public int getSalesRep_ID();", "public int getSalesRep_ID();", "public String getOrderID() {\n\t\treturn this.token.get(\"orderID\").toString();\n\t}", "public String getCustomerId() {\r\n\t\treturn getId();\r\n\t}", "@Schema(description = \"The ID of the worklog record.\")\n public String getId() {\n return id;\n }", "public java.lang.Integer getOperator() {\n\treturn operator;\n}", "String labPlanId();", "private int save_InsertGetInsertId() {\n\t\t\n\t\tfinal String INSERT_SQL = \"INSERT INTO project__insert_id_tbl ( ) VALUES ( )\";\n\t\t\n\t\t// Use Spring JdbcTemplate so Transactions work properly\n\t\t\n\t\t// How to get the auto-increment primary key for the inserted record\n\t\t\n\t\ttry {\n\t\t\tKeyHolder keyHolder = new GeneratedKeyHolder();\n\t\t\tint rowsUpdated = this.getJdbcTemplate().update(\n\t\t\t\t\tnew PreparedStatementCreator() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic PreparedStatement createPreparedStatement(Connection connection) throws SQLException {\n\n\t\t\t\t\t\t\tPreparedStatement pstmt =\n\t\t\t\t\t\t\t\t\tconnection.prepareStatement( INSERT_SQL, Statement.RETURN_GENERATED_KEYS );\n\n\t\t\t\t\t\t\treturn pstmt;\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tkeyHolder);\n\n\t\t\tNumber insertedKey = keyHolder.getKey();\n\t\t\t\n\t\t\tlong insertedKeyLong = insertedKey.longValue();\n\t\t\t\n\t\t\tif ( insertedKeyLong > Integer.MAX_VALUE ) {\n\t\t\t\tString msg = \"Inserted key is too large, is > Integer.MAX_VALUE. insertedKey: \" + insertedKey;\n\t\t\t\tlog.error( msg );\n\t\t\t\tthrow new LimelightInternalErrorException( msg );\n\t\t\t}\n\t\t\t\n\t\t\tint insertedKeyInt = (int) insertedKeyLong; // Inserted auto-increment primary key for the inserted record\n\t\t\t\n\t\t\treturn insertedKeyInt;\n\t\t\t\n\t\t} catch ( RuntimeException e ) {\n\t\t\tString msg = \"SQL: \" + INSERT_SQL;\n\t\t\tlog.error( msg, e );\n\t\t\tthrow e;\n\t\t}\n\t}", "public int getId()\r\n/* 75: */ {\r\n/* 76:110 */ return this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 77: */ }", "public StrColumn getEntityId() {\n return delegate.getColumn(\"entity_id\", DelegatingStrColumn::new);\n }", "@java.lang.Override\n public int getHjOpId() {\n return hjOpId_;\n }", "public Integer getIdLocacion();", "public java.lang.String getOperateCode() {\n return operateCode;\n }", "public int getId()\r\n/* 69: */ {\r\n/* 70:103 */ return this.idAutorizacionEmpresaSRI;\r\n/* 71: */ }", "@java.lang.Override\n public int getHjOpId() {\n return hjOpId_;\n }", "public Integer getCustomerID() {\n return customerID;\n }", "public int getId() {\n return parameter.getId();\n }", "public String getCustomerCode()\n\t{\n\t\treturn getColumn(OFF_CUSTOMER_CODE, LEN_CUSTOMER_CODE) ;\n\t}", "public java.lang.String getLogCorrelationIDString(){\n return localLogCorrelationIDString;\n }", "java.lang.String getCouponId();", "public final int getId() {\n\t\treturn this.accessor.getId();\n\t}", "public int getSensorId();", "public Integer getLoginid() {\n return loginid;\n }", "public IntColumn getModelId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"model_id\", IntColumn::new) :\n getBinaryColumn(\"model_id\"));\n }", "public int getC_POSDocType_ID() \n{\nInteger ii = (Integer)get_Value(COLUMNNAME_C_POSDocType_ID);\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "public Long getCreateOpId() {\n return createOpId;\n }", "public Long getCreateOpId() {\n return createOpId;\n }", "public Long getCreateOpId() {\n return createOpId;\n }", "public Operator getOperator() {\n return this.operator;\n }", "public int getCustomer_id() {\r\n\t\treturn customer_id;\r\n\t}", "String getValueId();", "@Override\r\n\tpublic int getLastId() {\n\t\treturn adminDAO.getLastId();\r\n\t}", "public Object getCorrelationId()\n {\n return getUnderlyingId(false);\n }", "public java.lang.Long getUsua_id();", "@Override\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.IDENTITY)\n\t@Column(name = \"pepe_sq_id\")\n\tpublic Long getId() {\n\t\treturn super.getId();\n\t}", "public Optional<String> getOperationId() {\n return operationId;\n }", "public Integer getId()\r\n\t\t{ return mapping.getId(); }", "public String getTransLogId() {\n return transLogId;\n }" ]
[ "0.6057138", "0.6002728", "0.59909403", "0.57073003", "0.57073003", "0.57073003", "0.57073003", "0.56737506", "0.5644533", "0.562851", "0.56140155", "0.5597486", "0.5591881", "0.5536013", "0.54718643", "0.54475754", "0.54169977", "0.5395134", "0.53126985", "0.5298417", "0.52818763", "0.5271306", "0.52308625", "0.5225846", "0.5189744", "0.5138508", "0.51127124", "0.5105879", "0.5067077", "0.506345", "0.5045658", "0.50355244", "0.50355244", "0.50355244", "0.50355244", "0.5033574", "0.50332683", "0.50242645", "0.50242645", "0.5015006", "0.49957192", "0.49923468", "0.4954637", "0.49366176", "0.49336004", "0.49224842", "0.49208087", "0.4909093", "0.48952508", "0.48864022", "0.48698208", "0.48638606", "0.48597294", "0.48521224", "0.48519212", "0.48502937", "0.48485807", "0.48454133", "0.48399213", "0.48336348", "0.48296675", "0.48239273", "0.48175776", "0.48175776", "0.48150417", "0.48145187", "0.4812495", "0.4810485", "0.48097047", "0.48058024", "0.4805512", "0.48035675", "0.48031592", "0.47901046", "0.47884893", "0.47854662", "0.47853372", "0.4782872", "0.47699264", "0.4762541", "0.47619018", "0.47615328", "0.47601643", "0.47594485", "0.47573772", "0.4757218", "0.47559988", "0.47553125", "0.47553125", "0.47553125", "0.47527763", "0.47493222", "0.47485095", "0.47437456", "0.47419903", "0.47417128", "0.4734211", "0.47337234", "0.47333986", "0.47318894" ]
0.612422
0
This method was generated by MyBatis Generator. This method sets the value of the database column msm_trac_log.OPERATOR_ID
public void setOperatorId(Long operatorId) { this.operatorId = operatorId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder setAccOpId(int value) {\n \n accOpId_ = value;\n onChanged();\n return this;\n }", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "public void setOperator(int opr) {\n this.operator = opr;\n }", "public void setOperatorId(long operatorId) {\r\n this.operatorId = operatorId;\r\n }", "public Long getOperatorId() {\n return operatorId;\n }", "public String getOperatorid() {\n return operatorid;\n }", "public long getOperatorId() {\r\n return operatorId;\r\n }", "public void setOperator(com.hps.july.persistence.Operator arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().setOperator(arg0);\n }", "public void setOperator(Long operator) {\n this.operator = operator;\n }", "public Integer getOperatorId() {\n return operatorId;\n }", "public void setOperID(java.lang.String operID) {\n this.operID = operID;\n }", "public void setOperatorid(String operatorid) {\n this.operatorid = operatorid;\n }", "public void setOrderID(java.lang.String param){\n \n this.localOrderID=param;\n \n\n }", "public void setOrderID(java.lang.String param){\n \n this.localOrderID=param;\n \n\n }", "public void setOperatorId(Integer operatorId) {\n this.operatorId = operatorId;\n }", "public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}", "public void setRadiologyOrderID(java.lang.String param){\n \n this.localRadiologyOrderID=param;\n \n\n }", "public void setRadiologyOrderID(java.lang.String param){\n \n this.localRadiologyOrderID=param;\n \n\n }", "public void secondarySetOperator(com.hps.july.persistence.Operator arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondarySetOperator(arg0);\n }", "public void setHC_ManagerTo_ID (int HC_ManagerTo_ID);", "public void setOperator (User operator) {\n\t\tthis.operator = operator;\n\t}", "public void setOpr(int opr) {\n\t\tthis.opr = opr;\n\t}", "public void setOpr(Integer opr) {\n this.opr = opr;\n }", "public void setOperatepersonid(String operatepersonid) {\r\n this.operatepersonid = operatepersonid;\r\n }", "public void setLogCorrelationIDString(java.lang.String param){\n localLogCorrelationIDStringTracker = true;\n \n this.localLogCorrelationIDString=param;\n \n\n }", "private void setOtherId(int value) {\n \n otherId_ = value;\n }", "public void setOperationID(String operaionId) {\n\t\tthis.operationId = operaionId;\n\t}", "public void setOperator(java.lang.Integer newOperator)\n\t\tthrows java.rmi.RemoteException;", "public void setOpNum(java.lang.String param) {\r\n localOpNumTracker = param != null;\r\n\r\n this.localOpNum = param;\r\n }", "public void setIdAutorizacionEmpresaSRI(int idAutorizacionEmpresaSRI)\r\n/* 79: */ {\r\n/* 80:122 */ this.idAutorizacionEmpresaSRI = idAutorizacionEmpresaSRI;\r\n/* 81: */ }", "public void setM_Locator_ID(int M_Locator_ID) {\n\t\tif (M_Locator_ID < 1)\n\t\t\tthrow new IllegalArgumentException(\"M_Locator_ID is mandatory.\");\n\t\tset_Value(\"M_Locator_ID\", new Integer(M_Locator_ID));\n\t}", "public String getOperatepersonid() {\r\n return operatepersonid;\r\n }", "public void setSalesRep_ID (int SalesRep_ID);", "public void setSalesRep_ID (int SalesRep_ID);", "public Long getAssignOperatorId() {\n return assignOperatorId;\n }", "public void setOperator(String operator) {\n\t\tthis.operator = operator == null ? null : operator.trim();\n\t}", "public void setOperator(String operator) {\n\t\tthis.operator = operator == null ? null : operator.trim();\n\t}", "public void setOperator(String incomingOperator)\r\n {\r\n \r\n operator = incomingOperator;\r\n \r\n }", "public void setOperator( java.lang.Integer newValue ) {\n __setCache(\"operator\", newValue);\n }", "public void doUpdateOperator(int id, @NotNull String operator) {\n\n try {\n Connection cn = ConPool.getConnection();\n PreparedStatement st = cn.prepareStatement(\n \"update `order`set operator =? WHERE id=?;\"\n );\n st.setString(1, operator);\n st.setInt(2, id);\n if (st.executeUpdate() != 1) {\n throw new RuntimeException();\n }\n st.close();\n cn.close();\n } catch (SQLException e) {\n throw new RuntimeException(e);\n }\n }", "public void setOperator(java.lang.Integer newValue) {\n\tthis.operator = newValue;\n}", "public void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);", "public void setM_Product_ID (int M_Product_ID)\n{\nset_Value (\"M_Product_ID\", new Integer(M_Product_ID));\n}", "public void setOpId(Long opId) {\n this.opId = opId;\n }", "public void setOpId(Long opId) {\n this.opId = opId;\n }", "public void setOpId(Long opId) {\n this.opId = opId;\n }", "public void setOpId(Long opId) {\n this.opId = opId;\n }", "public void setOperator(String operator) {\n this.operator = operator == null ? null : operator.trim();\n }", "public void setOperator(String operator) {\n this.operator = operator == null ? null : operator.trim();\n }", "public void setOperator(String operator) {\n this.operator = operator == null ? null : operator.trim();\n }", "public void setOperator(String operator) {\n this.operator = operator == null ? null : operator.trim();\n }", "public String getSOperatorID() {\n return sOperatorID;\n }", "public Long getOpId() {\n return opId;\n }", "public Long getOpId() {\n return opId;\n }", "public Long getOpId() {\n return opId;\n }", "public Long getOpId() {\n return opId;\n }", "public void setOperateEmpId(String operateEmpId) {\n this.operateEmpId = operateEmpId;\n }", "public void setOperTypeId(String operTypeId) {\r\n\t\tthis.operTypeId = operTypeId;\r\n\t}", "public void setOperator(String operator) {\n this.operator = operator;\n }", "public void setRadiologyOrderIDForPayment(java.lang.String param){\n \n this.localRadiologyOrderIDForPayment=param;\n \n\n }", "public void setCorrelateID(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localCorrelateID=param;\n \n\n }", "public void setSOperatorID(String sOperatorID) {\n this.sOperatorID = sOperatorID;\n }", "public String getOperateEmpId() {\n return operateEmpId;\n }", "public void setOperator(Operator_PJ o1) {\n\t\t\n\t}", "public java.lang.String getOperID() {\n return operID;\n }", "public void setOperator_lx(java.lang.String param) {\r\n localOperator_lxTracker = param != null;\r\n\r\n this.localOperator_lx = param;\r\n }", "public void setOperator_lx(java.lang.String param) {\r\n localOperator_lxTracker = param != null;\r\n\r\n this.localOperator_lx = param;\r\n }", "@Override\r\n\tpublic void saveCustomer(CRMDto theCustomer) {\n\t\t\r\n\t\tSession session = factory.openSession();\r\n\t\tTransaction tx = session.beginTransaction();\r\n\t\tsession.update(theCustomer);\r\n\t\ttx.commit();\r\n\t\t//System.out.println(\"pk update is \" +pk);\r\n\t\t\r\n\t\t\r\n\t}", "public void setC_UOM_ID (int C_UOM_ID)\n{\nset_Value (\"C_UOM_ID\", new Integer(C_UOM_ID));\n}", "public void setM_Production_ID (int M_Production_ID);", "public void setLDOperatorCode(java.lang.String LDOperatorCode) {\n this.LDOperatorCode = LDOperatorCode;\n }", "public void setC_Conversion_UOM_ID (int C_Conversion_UOM_ID)\n{\nset_Value (\"C_Conversion_UOM_ID\", new Integer(C_Conversion_UOM_ID));\n}", "public void setSQL(String SQL) {\n String oldSQL = getSQL();\n query.setSQL(SQL);\n setResultSet(query.getResultSet());\n propertyChangeSupport.firePropertyChange(\"SQL\", oldSQL, SQL);\n }", "public void setManagerIdFk(Number value) {\r\n setAttributeInternal(MANAGERIDFK, value);\r\n }", "void setInitSql(String value);", "public void setId(final String value)\n\t{\n\t\tsetId( getSession().getSessionContext(), value );\n\t}", "public void setOPER_TIME(Date OPER_TIME) {\n this.OPER_TIME = OPER_TIME;\n }", "public int getAccOpId() {\n return accOpId_;\n }", "public void setLogWriter(java.io.PrintWriter pwLogWriter) {\n SecurityManager sec = System.getSecurityManager();\n if (sec != null) {\n sec.checkPermission(new SQLPermission(\"setLog\"));\n }\n \n\tif (tracer == null) {\n tracer = new JdbcOdbcTracer();\n }\n\ttracer.setWriter(pwLogWriter);\n }", "public void setOp(Operator op) {\n this.op = op;\n }", "public void setM_Product_ID (int M_Product_ID);", "public void setM_Product_ID (int M_Product_ID);", "public void setM_InOut_ID (int M_InOut_ID);", "public void setOpControl(java.lang.String param) {\r\n localOpControlTracker = param != null;\r\n\r\n this.localOpControl = param;\r\n }", "public void setOp(int op) {\n\t\tthis.op = op;\n\t}", "public void setId(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n localIdTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.localId=param;\r\n \r\n\r\n }", "public void setMPC_Order_Node_ID(int MPC_Order_Node_ID) {\n\t\tif (MPC_Order_Node_ID <= 0)\n\t\t\tset_Value(\"MPC_Order_Node_ID\", null);\n\t\telse\n\t\t\tset_Value(\"MPC_Order_Node_ID\", new Integer(MPC_Order_Node_ID));\n\t}", "public void setSpid(int param){\n localSpidTracker = true;\n \n this.localSpid=param;\n \n\n }", "public void setCustomerId(Number value) {\n setAttributeInternal(CUSTOMERID, value);\n }", "public void setIdAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI(int idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI)\r\n/* 85: */ {\r\n/* 86:118 */ this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI = idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 87: */ }", "public void setAssignOperatorId(Long assignOperatorId) {\n this.assignOperatorId = assignOperatorId;\n }", "public int getAccOpId() {\n return accOpId_;\n }", "public void setOperator(String value) {\r\n\t\tif (!\"\".equals(firstNumber.toString())\r\n\t\t\t\t&& \"\".equals(secondNumber.toString())) {\r\n\t\t\toperator = value;\r\n\t\t}\r\n\t}", "public void setID(String value) {\n tokenString_ID = value;\n }", "private void setOperatorToken() {\n\t\t\n\t\tif (currentIndex + 1 >= data.length)\n\t\t\tthrow new QueryLexerException(\"Invalid input. After operator must come text\");\n\t\t\n\t\tif (isOperator(data[currentIndex + 1])) {\n\t\t\t// two symbol operator\n\t\t\t\tif(data[currentIndex + 1] != '=') \n\t\t\t\t\tthrow new QueryLexerException(\"Invalid operator.\");\n\t\t\t\t\n\t\t\t\tif(data[currentIndex] == '=')\n\t\t\t\t\tthrow new QueryLexerException(\"Invalid operator.\");\n\t\t\t\t\n\t\t\t\tString operator = new String(data, currentIndex, 2);\n\t\t\t\ttoken = new Token(TokenType.OPERATOR, operator);\n\t\t\t\tcurrentIndex += 2;\n\t\t} else {\n\t\t\t// just one symbol operator\n\t\t\tif (data[currentIndex] == '!')\n\t\t\t\tthrow new QueryLexerException(\"Invalid operator.\");\n\t\t\t\n\t\t\ttoken = new Token(TokenType.OPERATOR, String.valueOf(data[currentIndex]));\n\t\t\tcurrentIndex++;\n\t\t}\n\t}", "public void setCustomer_id(int customer_id){\n this.customer_id = customer_id;\n }", "public void setOpcmethod(java.lang.Long value) {\n\t\tsetValue(test.generated.pg_catalog.tables.PgOpclass.PG_OPCLASS.OPCMETHOD, value);\n\t}", "public void setMedioTransactionalID(int value) {\r\n this.medioTransactionalID = value;\r\n }", "public String getOperTypeId() {\r\n\t\treturn operTypeId;\r\n\t}", "public Long getOperator() {\n return operator;\n }" ]
[ "0.51758385", "0.5169006", "0.51624", "0.51355356", "0.5117361", "0.5104141", "0.50217515", "0.49884123", "0.49757376", "0.49640152", "0.4955986", "0.49267772", "0.4905334", "0.4905334", "0.48941877", "0.48518553", "0.4825018", "0.4825018", "0.48068264", "0.48046622", "0.47785482", "0.47603643", "0.47390524", "0.47364926", "0.4732474", "0.4712299", "0.4707531", "0.47027677", "0.46964893", "0.46927595", "0.46714494", "0.4661032", "0.46525425", "0.46525425", "0.46476585", "0.46381876", "0.46381876", "0.46335873", "0.4632304", "0.46232018", "0.4615877", "0.4578216", "0.4570472", "0.45544297", "0.45544297", "0.45544297", "0.45544297", "0.45542493", "0.45542493", "0.45542493", "0.45542493", "0.45502183", "0.45440447", "0.45440447", "0.45440447", "0.45440447", "0.45397297", "0.45396462", "0.45152745", "0.45135623", "0.4513487", "0.45121077", "0.45085812", "0.45073238", "0.44985586", "0.44939664", "0.44939664", "0.44457683", "0.44424388", "0.44239363", "0.44169298", "0.44141972", "0.44102857", "0.44010353", "0.44004893", "0.4400106", "0.43978408", "0.43931732", "0.4391519", "0.43869415", "0.43822598", "0.43822598", "0.43689966", "0.436636", "0.43589056", "0.43545493", "0.43427256", "0.43335837", "0.4332934", "0.43323123", "0.432469", "0.43232387", "0.43203047", "0.43177584", "0.43022072", "0.4299566", "0.42950332", "0.42913336", "0.42896986", "0.42867213" ]
0.5004959
7
This method was generated by MyBatis Generator. This method returns the value of the database column msm_trac_log.RELATED_OBJECT_NAME
public String getRelatedObjectName() { return relatedObjectName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getObjectRefName();", "public String getRelatedObjectId() {\n return relatedObjectId;\n }", "public java.lang.String getZqu__Relationship_Field_Name__c() {\r\n return zqu__Relationship_Field_Name__c;\r\n }", "public String getRelatedObjectType() {\n return relatedObjectType;\n }", "public String getRelationPropertyName() {\n return getForeignPropertyName();\n }", "public void setRelatedObjectName(String relatedObjectName) {\n this.relatedObjectName = relatedObjectName == null ? null : relatedObjectName.trim();\n }", "public java.lang.String getRelatedIMEventOriginalID() {\n return relatedIMEventOriginalID;\n }", "public java.lang.String getRelatedIMEventOriginalID() {\n return relatedIMEventOriginalID;\n }", "protected String get_object_name() {\n\t\treturn null;\n\t}", "protected String get_object_name() {\n\t\treturn null;\n\t}", "protected String get_object_name() {\n\t\treturn this.fieldname;\n\t}", "@objid (\"f3f8fb41-47e8-4136-9889-fc34aac3d3f9\")\n String getReferencedClassName();", "public String getAssociatedObject() {\n return associatedObject;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getRelatedTo();", "public String getObject_name() {\n return object_name;\n }", "public T caseRelationRenamed(RelationRenamed object) {\n\t\treturn null;\n\t}", "public String getObjectName() {\r\n\t\tif (objectName == null || objectName.length() == 0)\r\n\t\t\tsetObjectName(\"entity\" + entityNr);\r\n\t\treturn objectName;\r\n\t}", "public String getCustomName ( ) {\n\t\treturn extract ( handle -> handle.getCustomName ( ) );\n\t}", "public String getNameOfEntityHere() {\n \n return entityHere_.getName();\n \n }", "@Override\n\tpublic String associatedEntityName(String field) {\n\t\treturn null;\n\t}", "public String getRefPropertyName() {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\treturn \"lfims:branches\";\r\n\t\t\t\t\t}", "public String getText(Object object)\n {\n ReverseRelationFieldEntity rf = (ReverseRelationFieldEntity) object;\n String label = ((RelationFieldEntity) object).getName();\n String cardinality = (rf.getCardinality() == 1) ? \" 1\" : \" n\";\n String targetEntity = (rf.getEntity() == null) ? \" NOT DEFINED\" : \" \" + rf.getEntity().getName();\n // RelationFieldEntity opposite = rf.getOppositeRelationField();\n String result = null;\n if (label == null || label.length() == 0)\n result = getString(\"_UI_ReverseRelationFieldEntity_type\");\n else\n {\n // on retourne : Car.Drivers : Association *,1 to Driver (<- parentCar)\n result = getParentName(rf) + \".\" + label + \" (Reverse) : \" + \n rf.getType().getLiteral() + \n cardinality + \" to \" + targetEntity;\n }\n \n return result;\n \n }", "private String resolveName()\n {\n\n String forwardName = null;\n\n // trigger\n final EventFacade trigger = this.getTrigger();\n\n if (trigger != null)\n {\n\n forwardName = trigger.getName();\n\n }\n\n // name\n if (forwardName == null)\n {\n\n forwardName = this.getName();\n\n }\n\n // target\n if (forwardName == null)\n {\n\n forwardName = this.getTarget().getName();\n\n }\n\n // else\n if (forwardName == null)\n {\n\n forwardName = \"unknown\";\n\n }\n\n // return\n return forwardName;\n\n }", "@Override\n\tpublic String getObjectName() {\n\t\t// Follow priorities to obtain the object name\n\t\tif (!CompileUtil.isBlank(this.label)) {\n\t\t\treturn this.label;\n\t\t} else if (this.key != null) {\n\t\t\treturn this.key.toString();\n\t\t} else {\n\t\t\treturn String.valueOf(this.index);\n\t\t}\n\t}", "public String getReferencedTableName();", "public String friendlyName() {\n return this.innerProperties() == null ? null : this.innerProperties().friendlyName();\n }", "public java.lang.String getLogCorrelationIDString(){\n return localLogCorrelationIDString;\n }", "public java.lang.String getObjectName(){\n return localObjectName;\n }", "public String getRemasterRecordLabel() {\r\n\t\treturn this.remasterRecordLabel;\r\n\t}", "protected String get_object_name() {\n\t\treturn this.name;\n\t}", "protected String get_object_name() {\n\t\treturn this.name;\n\t}", "@Override\n public String getStringFromDatabase(int objectID) {\n return \"From Class one result\"+objectID;\n }", "public java.lang.String getRELATION_ID() {\r\n return RELATION_ID;\r\n }", "public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }", "private String retrieveAbsoluteName(Object obj)\r\n {\r\n return (String) objectNames.get(obj);\r\n }", "@Override\r\n\tprotected String getParentPropertyName(Class beanClass) {\n\t\treturn null;\r\n\t}", "public String getForeignPropertyName() {\n return _foreignPropertyName;\n }", "public String getgOtherName() {\n return gOtherName;\n }", "public String getObjectName() {\r\n\t\treturn objectName;\r\n\t}", "public String getObjectName() {\r\n return objectName;\r\n }", "public String getObjID(String sysName, String objName) throws MDSException {\r\n\t\tString objID = null;\r\n\t\tString key = sysName.toUpperCase() + \".\" + objName.toUpperCase();\r\n\t\tobjID = (String) tabMap.get(key);\r\n\r\n\t\tif (objID == null || objID == \"\") {\r\n\t\t\tif (sysName == null || sysName.trim().length() == 0)\r\n\t\t\t\tthrow new MDSException(\"table : \" + objName + \" without database reference!\");\r\n\t\t\telse\r\n\t\t\t\tthrow new MDSException(\"table : \" + sysName + \".\" + objName\r\n\t\t\t\t\t\t+ \" is not loaded or some columns in this table are not loaded!\");\r\n\t\t} else\r\n\t\t\treturn objID;\r\n\t}", "public String relation_str(DaikonVariableInfo var) {\n String out = parent_ppt_name + \" \" + id;\n if (!var.isStatic() && (local_prefix != null) && !local_prefix.equals(parent_prefix)) {\n out += \" \" + var.getName().replaceFirst(Pattern.quote(local_prefix), parent_prefix);\n }\n return out;\n }", "public static String findTypeName(Object o) {\n return findTypeName(findType(o));\n }", "public String getRecordName();", "public static String getProxyName(EObject eObject) {\n\n\t\tif (eObject == null)\n\t\t\treturn MSLConstants.EMPTY_STRING;\n\n\t\tif (!eObject.eIsProxy())\n\t\t\treturn EObjectUtil.getName(eObject);\n\n\t\tString name = MSLConstants.EMPTY_STRING;\n\n\t\tString proxyQName = getProxyQName(eObject);\n\n\t\tif ((proxyQName != null) && (proxyQName.length() > 0)) {\n\n\t\t\tString[] segments = proxyQName\n\t\t\t\t.split(MSLConstants.QUALIFIED_NAME_SEPARATOR);\n\n\t\t\tname = segments[segments.length - 1];\n\t\t}\n\n\t\tif ((name == null) || (name.length() == 0)) {\n\n\t\t\tEAttribute nameAttribute = MetaModelUtil.getNameAttribute(eObject\n\t\t\t\t.eClass());\n\n\t\t\tif (nameAttribute != null) {\n\n\t\t\t\tname = (String) eObject.eGet(nameAttribute);\n\n\t\t\t\tif (name != null)\n\t\t\t\t\treturn name;\n\t\t\t}\n\n\t\t\treturn MSLConstants.EMPTY_STRING;\n\t\t}\n\n\t\treturn name;\n\t}", "public String getInverseRelationshipName ();", "public T caseEntityRenamed(EntityRenamed object) {\n\t\treturn null;\n\t}", "public String getDatabaseGeneratedReferencedColumnValue() {\n return null;\n }", "public void setRelatedIMEventOriginalID(java.lang.String value) {\n this.relatedIMEventOriginalID = value;\n }", "public String getNameReference() { \n\t\treturn getNameReferenceElement().getValue();\n\t}", "public StructuredQName getObjectName() {\n return getVariableQName();\n }", "public java.lang.String getRoadwayRef()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "@Override\n\tpublic String getReferencedEntityClassName() {\n\t\treturn null;\n\t}", "public String getLastNameFieldName() {\n return getStringProperty(LAST_NAME_FIELD_NAME_KEY);\n }", "private String getResourceName(String resourceId)\n/* */ {\n/* 1165 */ HashMap<String, String> managedObject = (HashMap)this.managedObjectVsResourceIdMap.get(resourceId);\n/* 1166 */ StringBuffer toReturn = new StringBuffer();\n/* 1167 */ String type = (String)managedObject.get(\"TYPE\");\n/* 1168 */ if ((!\"HAI\".equals(type)) && (!this.monitors.contains(resourceId)))\n/* */ {\n/* 1170 */ toReturn.append(\"\\\"\").append(getParentResourceDisplayname(resourceId)).append(\"\\\"\").append(\",\");\n/* */ }\n/* 1172 */ else if ((!\"HAI\".equals(type)) && (this.monitors.contains(resourceId)))\n/* */ {\n/* 1174 */ toReturn.append(\",\");\n/* */ }\n/* 1176 */ toReturn.append(\"\\\"\").append((String)managedObject.get(\"DISPLAYNAME\")).append(\"\\\"\");\n/* 1177 */ return toReturn.toString();\n/* */ }", "protected String getClassName(Object o) {\n\t\tString classString = o.getClass().getName();\n\t\tint dotIndex = classString.lastIndexOf(\".\");\n\n\t\treturn classString.substring(dotIndex + 1);\n\t}", "public StrColumn getReference() {\n return delegate.getColumn(\"reference\", DelegatingStrColumn::new);\n }", "protected String getRelatedTextKey(String propertyName) {\n return propertyName + \"::\" + RELATEDTEXT_ID_SUFFIX;\n }", "public String getName() {\n return (\"(\" + this.source.getName() + \",\" + this.destination.getName() + \")\");\n }", "public String objectTypeName()\r\n {\r\n return mObjectTypeName;\r\n }", "public java.lang.String getReferenceDataColumnName() {\r\n\treturn referenceDataColumnName;\r\n}", "public String getVdcObjectName() {\n permissions perms = getParameters().getPermission();\n return getDbFacade().getEntityNameByIdAndType(perms.getObjectId(), perms.getObjectType());\n }", "@Override\n public String getObjectName() {\n\treturn null;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getCorrelateID(){\n return localCorrelateID;\n }", "protected abstract String getRefName();", "public String getName ( ) {\n\t\treturn extract ( handle -> handle.getName ( ) );\n\t}", "public String getParent (JDCConnection oConn) throws SQLException {\r\n int iLevel;\r\n String sParentId;\r\n\r\n if (DebugFile.trace) {\r\n DebugFile.writeln(\"Begin Term.getParent([Connection])\");\r\n DebugFile.incIdent();\r\n }\r\n\r\n iLevel = level();\r\n\r\n Statement oStmt;\r\n ResultSet oRSet;\r\n\r\n if (1==iLevel) {\r\n sParentId = null;\r\n }\r\n else if (2==iLevel) {\r\n sParentId = getString(DB.gu_rootterm);\r\n }\r\n else {\r\n oStmt = oConn.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);\r\n\r\n if (DebugFile.trace)\r\n DebugFile.writeln(\"Statement.executeQuery(SELECT \" + DB.gu_term + \" FROM \" + DB.k_thesauri + \" WHERE \" + DB.id_term + String.valueOf(iLevel-2) + \"=\" + String.valueOf(getInt(DB.id_term + String.valueOf(iLevel-2))) + \" AND \" + DB.id_term + String.valueOf(iLevel-1) + \" IS NULL)\");\r\n\r\n oRSet = oStmt.executeQuery(\"SELECT \" + DB.gu_term + \" FROM \" + DB.k_thesauri + \" WHERE \" + DB.id_term + String.valueOf(iLevel-2) + \"=\" + String.valueOf(getInt(DB.id_term + String.valueOf(iLevel-2))) + \" AND \" + DB.id_term + String.valueOf(iLevel-1) + \" IS NULL\");\r\n\r\n if (oRSet.next())\r\n sParentId = oRSet.getString(1);\r\n else\r\n sParentId = null;\r\n\r\n oRSet.close();\r\n oStmt.close();\r\n\r\n if (null==sParentId)\r\n throw new SQLException (\"Parent key \" + String.valueOf(getInt(DB.id_term + String.valueOf(iLevel-2))) + \" not found\");\r\n }\r\n\r\n if (DebugFile.trace) {\r\n DebugFile.decIdent();\r\n DebugFile.writeln(\"End Term.getParent() : \" + sParentId);\r\n }\r\n\r\n return sParentId;\r\n }", "private String getObjNameFromReasonForChangeAttr( Map< String, String > propValue2 ) throws TCException {\n\n String objNameAttrVal = null;\n String reasonForChangeAttrVal = propValue2.get( UL4Common.REASON_FOR_CHANGE_ATTR ).toString();\n\n TCPropertyDescriptor propDescObjName = getTCPropertyDescriptor( \"object_name\" );\n int maxLength = propDescObjName.getMaxLength();\n\n if ( reasonForChangeAttrVal.length() > 128 ) {\n objNameAttrVal = reasonForChangeAttrVal.substring( 0, maxLength );\n } else {\n objNameAttrVal = reasonForChangeAttrVal;\n }\n\n return objNameAttrVal;\n }", "public String getObjectName() { return objectName; }", "public String getObjName()\n {\n return this.objName;\n }", "public final native String getRelationship() /*-{\n return this.getRelationship();\n }-*/;", "@Override\n\tpublic String getAsString(FacesContext ctx, UIComponent component, Object obj) {\n\t\tif(obj == null || obj.equals(\"\")){\n\t\t\treturn null;\n\t\t}else{\n\t\t\tRelogio relogio = (Relogio) obj;\n\t\t\treturn String.valueOf(relogio.getId());\n\t\t}\n\t}", "public String getAssociatedUsername() {\n return associatedUsername;\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"(relation \" +\n\t\t\t\t(this.source != null ? this.source.getId() : \"nil\") + \" \" +\n\t\t\t\tthis.name.toString() + \" \" +\n\t\t\t\t(this.dest != null ? this.dest.toString() : \"nil\") + \")\";\n\t}", "public Long getRelateId() {\n return relateId;\n }", "String getRelatedTagRight();", "@Override\n\t@Column(name = \"leadTypeName\", length = 5, nullable = false)\n\tpublic String getName()\n\t{\n\t\treturn super.getName();\n\t}", "public String getNomeRequerenteItem() {\r\n\t\treturn this.emprestimoid.getNomeRequerenteItem();\r\n\t}", "public String getObjectName() {\r\n\t\tif (objectName == null || objectName.length() == 0)\r\n\t\t\tsetObjectName(\"jk\" + jkNr);\r\n\t\treturn objectName;\r\n\t}", "@Override\n\tpublic String getName(ProgramWorkflow object) {\n\t\tif (object.getConcept() != null && object.getConcept().getName() != null) {\n\t\t\treturn object.getConcept().getName().getName();\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\n\t}", "public String correlationId() {\n return correlationId;\n }", "@Override\n public String toString() {\n return \"RelatedOrg {\"\n + \"}\";\n }", "String getDBQualifiedFieldName(String fieldName);", "public String objectName() {\n return this.objectName;\n }", "public java.lang.Long getRelateTransno () {\r\n\t\treturn relateTransno;\r\n\t}", "@Override\n\tpublic Identifier determinePrimaryKeyJoinColumnName(ImplicitPrimaryKeyJoinColumnNameSource source) {\n\t\treturn source.getReferencedPrimaryKeyColumnName();\n\t}", "public String getLastName()\r\n\t{\r\n\t\treturn lastName.getModelObjectAsString();\r\n\t}", "public static String getClassName(Class<?> objectClass) {\n RemoteClass annotation = objectClass.getAnnotation(RemoteClass.class);\n if (annotation != null) {\n return annotation.alias();\n }\n String className = objectClass.getName();\n if (className.startsWith(\"org.red5.compatibility.\")) {\n // Strip compatibility prefix from classname\n className = className.substring(23);\n if (\"flex.messaging.messages.AsyncMessageExt\".equals(className)) {\n className = \"DSA\";\n } else if (\"flex.messaging.messages.CommandMessageExt\".equals(className)) {\n className = \"DSC\";\n } else if (\"flex.messaging.messages.AcknowledgeMessageExt\".equals(className)) {\n className = \"DSK\";\n }\n }\n log.debug(\"Classname: {}\", className);\n return className;\n }", "public String getName()\n {\n \tif (_nodeVRL==null)\n \t\treturn null;\n \t\n return _nodeVRL.getBasename(); // default= last part of path\n }", "public String getSQLName(){\n\t\tif(source==null){\n\t\t\t//no source predicate is associated with this pred\n\t\t\treturn name;\n\t\t}\n\t\treturn source.getSQLName();\n\t}", "public String getTypeName(final Edge<T> edge) {\n final Object object = edge.getObject();\n if (object == null) {\n return null;\n } else {\n final String className = edge.getClass().getName();\n return className;\n }\n }", "public static String getQualifiedObjectName(ISession session,\n String catalogName,\n String schemaName,\n String objectName, \n int sessionType) \n {\n String catalog = catalogName;\n String schema = schemaName;\n String object = objectName;\n \n // Bug #1714476 (DB copy uses wrong case for table names): When the \n // catalog/schema/object names come from the source session, don't mess\n // with the case, as the case is provided by the driver for the existing\n // table, and doesn't need to be fixed.\n if (sessionType == DialectFactory.DEST_TYPE) { \n catalog = fixCase(session, catalogName);\n schema = fixCase(session, schemaName);\n object = fixCase(session, objectName);\n }\n ISQLDatabaseMetaData md = session.getMetaData();\n boolean useSchema = true;\n boolean useCatalog = true;\n try {\n \tuseCatalog = md.supportsCatalogsInTableDefinitions();\n } catch (SQLException e) {\n \tlog.info(\"Encountered unexpected exception while attempting to \" +\n \t\t\t\"determine if catalogs are used in table definitions\");\n }\n try { \n \tuseSchema = md.supportsSchemasInTableDefinitions();\n } catch (SQLException e) {\n \tlog.info(\"Encountered unexpected exception while attempting to \" +\n \t\t\t\"determine if schemas are used in table definitions\");\n }\n if (!useCatalog && !useSchema) {\n \treturn object;\n }\n if ((catalog == null || catalog.equals(\"\")) && \n (schema == null || schema.equals(\"\"))) {\n return object;\n }\n StringBuilder result = new StringBuilder();\n if (useCatalog && catalog != null && !catalog.equals(\"\")) {\n result.append(catalog);\n result.append(getCatSep(session));\n }\n if (useSchema && schema != null && !schema.equals(\"\")) {\n result.append(schema);\n result.append(\".\");\n }\n result.append(object);\n return result.toString();\n }", "@Override\n\tpublic java.lang.String getName() {\n\t\treturn _expandoColumn.getName();\n\t}", "public String reference(Object obj) {\n return null;\n }", "@Override\n public String getLName() {\n\n if(this.lName == null){\n\n this.lName = TestDatabase.getInstance().getClientField(token, id, \"lName\");\n }\n\n return lName;\n }", "public String getName(Class<? extends RawEntity<?>> entity) {\r\n\t\tTable tableAnnotation = entity.getAnnotation(Table.class);\r\n\t\tif (tableAnnotation != null) {\r\n\t\t\treturn tableAnnotation.value();\r\n\t\t}\r\n\t\t\r\n\t\tif (classMappings.containsKey(entity)) {\r\n\t\t\treturn classMappings.get(entity);\r\n\t\t}\r\n\t\t\r\n\t\treturn postProcessName(processName(convertName(entity)));\r\n\t}", "public String getName() {\n return this.session.sessionPersona().getRealName();\n }", "private static String getObjectNameForSyntax( DatabaseConnectorType databaseType, String objectName ) {\r\n\t\tif ( databaseType.separatEscapeSchemaTable() ) {\r\n\t\t\tif ( objectName.contains(\".\") ) {\r\n\t\t\t\tString[] names = objectName.split(\"\\\\.\");\r\n\t\t\t\tobjectName = names[0];\r\n\t\t\t\tobjectName += databaseType.getEscapeClose() + \".\" + databaseType.getEscapeOpen();\r\n\t\t\t\tobjectName += names[1];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn objectName;\r\n\t}", "public String getRelationship(Person currPerson, String personID) {\n String relationship = new String();\n\n if(currPerson.getFatherID() != null) {\n if(currPerson.getFatherID().equals(personID)) {\n relationship = \"Father\";\n }\n }\n\n if(currPerson.getMotherID() != null) {\n if(currPerson.getMotherID().equals(personID)) {\n relationship = \"Mother\";\n }\n }\n\n if(currPerson.getSpouseID() != null) {\n if(currPerson.getSpouseID().equals(personID)) {\n relationship = \"Spouse\";\n }\n }\n\n// if(getChildrenMap().containsKey(personID)) {\n// if(getChildrenMap().get(personID).getPersonID().equals(personID)) {\n// relationship = \"Child\";\n// }\n// }\n\n if (relationship.length() > 0) {\n return relationship;\n } else {\n return \"Child\";\n }\n }", "@Override\n\t\tpublic String getParentPKFieldName() {\n\t\t\treturn null;\n\t\t}" ]
[ "0.5508931", "0.5472382", "0.54338604", "0.5353766", "0.5265461", "0.5245417", "0.5232395", "0.51875734", "0.5169829", "0.5169829", "0.51692533", "0.5154681", "0.51524824", "0.51509786", "0.5136216", "0.5083127", "0.5066468", "0.5063023", "0.50507474", "0.5044559", "0.5040174", "0.50191146", "0.49741533", "0.4943642", "0.49432495", "0.49422082", "0.49184683", "0.49043176", "0.4893073", "0.4890397", "0.4890397", "0.4882871", "0.4842347", "0.480202", "0.48002514", "0.4784021", "0.47589797", "0.47515595", "0.473872", "0.47355074", "0.47327203", "0.47249392", "0.47190475", "0.47110936", "0.47085455", "0.4694575", "0.468634", "0.46796462", "0.46692026", "0.46643788", "0.46629074", "0.4660934", "0.46608898", "0.46550432", "0.46527755", "0.46523124", "0.46508282", "0.4645732", "0.46450627", "0.46361327", "0.4625314", "0.46080703", "0.45999745", "0.45982057", "0.4597863", "0.45942634", "0.45927334", "0.45862585", "0.45855558", "0.45817515", "0.45677626", "0.45677492", "0.4561806", "0.45595914", "0.45589492", "0.4557656", "0.45572177", "0.45268786", "0.45247826", "0.45246413", "0.45231205", "0.45222577", "0.45155802", "0.45134872", "0.4504221", "0.4502089", "0.45000905", "0.44816405", "0.44760773", "0.44708022", "0.44703978", "0.44673094", "0.44616747", "0.44490537", "0.4448856", "0.44470853", "0.44451523", "0.444155", "0.44364056", "0.44349974" ]
0.66933024
0
This method was generated by MyBatis Generator. This method sets the value of the database column msm_trac_log.RELATED_OBJECT_NAME
public void setRelatedObjectName(String relatedObjectName) { this.relatedObjectName = relatedObjectName == null ? null : relatedObjectName.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRelatedObjectName() {\n return relatedObjectName;\n }", "public void setRelatedObjectId(String relatedObjectId) {\n this.relatedObjectId = relatedObjectId == null ? null : relatedObjectId.trim();\n }", "public void setAssociatedObject(String associatedObject) {\n this.associatedObject = associatedObject;\n }", "public void setRelatedIMEventOriginalID(java.lang.String value) {\n this.relatedIMEventOriginalID = value;\n }", "public void setRelatedObjectType(String relatedObjectType) {\n this.relatedObjectType = relatedObjectType == null ? null : relatedObjectType.trim();\n }", "public T caseRelationRenamed(RelationRenamed object) {\n\t\treturn null;\n\t}", "public void setRelatedTo(java.lang.String value);", "public void setObjectName(java.lang.String param){\n localObjectNameTracker = true;\n \n this.localObjectName=param;\n \n\n }", "void setAssociatedObject(IEntityObject relatedObj);", "public T caseEntityRenamed(EntityRenamed object) {\n\t\treturn null;\n\t}", "public String getRelatedObjectId() {\n return relatedObjectId;\n }", "@objid (\"59808615-06b0-48b7-a027-38d78fc10bd5\")\n void setReferencedClassName(String value);", "public void setObjectName(String objectName) { this.objectName=objectName; }", "@Override\n\tpublic String associatedEntityName(String field) {\n\t\treturn null;\n\t}", "public void setObject_name(String object_name) {\n this.object_name = object_name == null ? null : object_name.trim();\n }", "public void setLogCorrelationIDString(java.lang.String param){\n localLogCorrelationIDStringTracker = true;\n \n this.localLogCorrelationIDString=param;\n \n\n }", "public void merge (TreeObject treeObject) throws CannotMergeException {\n super.merge (treeObject);\n \n TreeEntityReference peer = (TreeEntityReference) treeObject;\n setNameImpl (peer.getName ());\n }", "public void relate(HNode id, Object o);", "public String getRelatedObjectType() {\n return relatedObjectType;\n }", "public String getAssociatedObject() {\n return associatedObject;\n }", "public void markSrvTargetNameMerge() throws JNCException {\n markLeafMerge(\"srvTargetName\");\n }", "@Override\n\tpublic String updateATourneyName() {\n\t\treturn null;\n\t}", "public gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.Builder setRelatedIMEventOriginalID(java.lang.String value) {\n validate(fields()[1], value);\n this.relatedIMEventOriginalID = value;\n fieldSetFlags()[1] = true;\n return this; \n }", "public void setZqu__Relationship_Field_Name__c(java.lang.String zqu__Relationship_Field_Name__c) {\r\n this.zqu__Relationship_Field_Name__c = zqu__Relationship_Field_Name__c;\r\n }", "public void rename()\n\t{\n\t\t// get the object within the node\n\t\tObject string = this.getUserObject();\n\n\t\t// should always be a string, given the constructor\n\t\tif (string instanceof String)\n\t\t{\n\t\t\tstring = JOptionPane.showInputDialog(\"Enter a New Name\");\n\n\t\t\tif (string != null && string instanceof String)\n\t\t\t{\n\t\t\t\tthis.setUserObject(string);\n\t\t\t\tthis.name = (String) string;\n\t\t\t}\n\t\t}\n\t}", "protected String get_object_name() {\n\t\treturn null;\n\t}", "protected String get_object_name() {\n\t\treturn null;\n\t}", "public void setRoadwayRef(java.lang.String roadwayRef)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROADWAYREF$16);\r\n }\r\n target.setStringValue(roadwayRef);\r\n }\r\n }", "public void setRelateId(Long relateId) {\n this.relateId = relateId;\n }", "public void setObjectName(String text) {\n\t\tif (selectedObjects.size() > 0)\n\t\t\tselectedObjects.get(0).changeName(text);\n\n\t}", "public void setVO_CO_REFERENCE(String VO_CO_REFERENCE) {\r\n this.VO_CO_REFERENCE = VO_CO_REFERENCE == null ? null : VO_CO_REFERENCE.trim();\r\n }", "protected void sequence_PropertyName(ISerializationContext context, PropertyName semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public void objectRenamed(NamingEvent evt) throws RemoteException;", "public void setRELATION_ID(java.lang.String RELATION_ID) {\r\n this.RELATION_ID = RELATION_ID;\r\n }", "public void setLogObject(Log logObject_) {\n\t\tlogObject = logObject_;\n\t\tlog( \"deviceId \" + deviceId, Log.Level.Information );\n\t\tlog( \"location \" + location, Log.Level.Information );\n\t}", "private String replaceIntermediateObjectWithRel(Context context, String strOldRelId ,String strNewRelId ,String strNewRelIdSide,Map attributeMap) throws Exception {\r\n\r\n\t\tString strNewConnId=\"\";\r\n\t\tboolean isRelToRel = true;\r\n\t\tboolean isFrom = true;\r\n\r\n\t\ttry{\r\n\r\n\t\tDomainRelationship domRel = new DomainRelationship(strOldRelId);\r\n //Get the attributes on Relationship\r\n /*Map attributeMap = new HashMap();\r\n attributeMap = domRel.getAttributeMap(context,true);*/\r\n\r\n\r\n\t\t//Get the \"Type\" of rel\r\n\t\tStringList slRelSelects = new StringList(1);\r\n slRelSelects.addElement(DomainRelationship.SELECT_TYPE);\r\n\r\n if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"from\")){\r\n \t//New Rel replaces FL/GBOM which is on \"from\" side of Old Rel hence we query now \"to\" side of Old Rel\r\n \tslRelSelects.add(\"to.id\");\r\n slRelSelects.add(\"torel.id\");\r\n\r\n }else if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"to\")){\r\n \t//New Rel replaces FL/GBOM which is on \"to\" side of Old Rel hence we query now \"from\" side of Old Rel\r\n \tslRelSelects.add(\"from.id\");\r\n slRelSelects.add(\"fromrel.id\");\r\n }\r\n\r\n Hashtable htRelData = domRel.getRelationshipData(context,slRelSelects);\r\n\r\n String strFromSideOfRel =\"\";\r\n String strToSideOfRel =\"\";\r\n String strRelId =\"\";\r\n String strObjId =\"\";\r\n\r\n StringList slRelTypes = (StringList) htRelData.get(DomainRelationship.SELECT_TYPE);\r\n String strRelType = (String) slRelTypes.get(0);\r\n RelationshipType RelType = new RelationshipType(strRelType);\r\n\r\n\r\n if((StringList) htRelData.get(\"from.id\")!=null || ((StringList)htRelData.get(\"fromrel.id\"))!=null ){\r\n\r\n \tStringList slFromSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"from.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"from.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\t//isFrom = false;\r\n \t\tstrObjId = strFromSideOfRel;\r\n\r\n\r\n \t}else if(!((StringList)htRelData.get(\"fromrel.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"fromrel.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tstrRelId = strFromSideOfRel;\r\n \t\tisFrom = false;\r\n \t}\r\n }\r\n\r\n if((StringList) htRelData.get(\"to.id\")!=null || ((StringList)htRelData.get(\"torel.id\"))!=null ){\r\n\r\n \tStringList slToSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"to.id\")).isEmpty()){\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"to.id\");\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\tstrObjId = strToSideOfRel;\r\n \t\tisFrom = false;\r\n \t}else if(!((StringList)htRelData.get(\"torel.id\")).isEmpty()){\r\n\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"torel.id\");\r\n\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n \t\tstrRelId =strToSideOfRel;\r\n \t\t//isFrom = false;\r\n \t}\r\n }\r\n\r\n\r\n if(isRelToRel){\r\n\r\n strNewConnId = connectRelationship(context, RelType, strRelId,strNewRelId, isFrom);\r\n\r\n }else{\r\n\r\n \tstrNewConnId = connectObject(context, RelType, strObjId,strNewRelId, isFrom);\r\n }\r\n\r\n\t\t\t StringList relDataSelects = new StringList();\r\n\t\t\t relDataSelects.addElement(\"frommid.id\");\r\n\t\t\t relDataSelects.addElement(\"tomid.id\");\r\n\r\n\t\t\t Map gbomRelData = domRel.getRelationshipData(context,relDataSelects);\r\n\t\t\t StringList sLFrommid = new StringList();\r\n\t\t\t StringList sLTomid = new StringList();\r\n\r\n\t\t\t sLFrommid = (StringList) gbomRelData.get(\"frommid.id\");\r\n\t\t\t if(!sLFrommid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLFrommid.size();i++){\r\n\r\n\t\t\t\t\tString strFromMid = (String)sLFrommid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strFromMid,strNewConnId,true);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\r\n\t\t\t sLTomid = (StringList) gbomRelData.get(\"tomid.id\");\r\n\t\t\t if(!sLTomid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLTomid.size();i++){\r\n\r\n\t\t\t\t\tString strToMid = (String)sLTomid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strToMid,strNewConnId,false);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\t\t\tDomainRelationship domNewConnId = new DomainRelationship(strNewConnId);\r\n\t\t\tmqlLogRequiredInformationWriter(\"Rel id :: \"+ strNewConnId +\"\\n\");\r\n\t\t mqlLogRequiredInformationWriter(\"Attribute value Map set for this rel id :: \"+ attributeMap +\"\\n\\n\");\r\n\t domNewConnId.setAttributeValues(context, attributeMap);\r\n\r\n\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn strNewConnId;\r\n\t}", "@Test\n public void objectNames() throws FlywayException {\n flyway.setLocations(\"migration/dbsupport/oracle/sql/objectnames\");\n flyway.migrate();\n }", "public T caseRelationAdded(RelationAdded object) {\n\t\treturn null;\n\t}", "public String getRefPropertyName() {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\treturn \"lfims:branches\";\r\n\t\t\t\t\t}", "@Override\r\n public void setObject(String object) {\n }", "public void setObjectTitle(String newObj) {\r\n this.objectTitle = newObj;\r\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getRelatedTo();", "public void markSrvTargetNameReplace() throws JNCException {\n markLeafReplace(\"srvTargetName\");\n }", "public void setObjName( String objName )\n {\n this.objName = objName;\n }", "public final void setMxSheet_RowObject(com.mendix.systemwideinterfaces.core.IContext context, mxmodelreflection.proxies.MxObjectType mxsheet_rowobject)\r\n\t{\r\n\t\tif (mxsheet_rowobject == null)\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.MxSheet_RowObject.toString(), null);\r\n\t\telse\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.MxSheet_RowObject.toString(), mxsheet_rowobject.getMendixObject().getId());\r\n\t}", "public void xsetRoadwayRef(org.landxml.schema.landXML11.RoadwayNameRef roadwayRef)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.RoadwayNameRef target = null;\r\n target = (org.landxml.schema.landXML11.RoadwayNameRef)get_store().find_attribute_user(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.RoadwayNameRef)get_store().add_attribute_user(ROADWAYREF$16);\r\n }\r\n target.set(roadwayRef);\r\n }\r\n }", "public void setORM_Parent(orm.Nomenclature value) {\r\n\t\tthis.parent = value;\r\n\t}", "protected void sequence_TriggerName(ISerializationContext context, TriggerName semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, SiddhiPackage.eINSTANCE.getTriggerName_Id()) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SiddhiPackage.eINSTANCE.getTriggerName_Id()));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getTriggerNameAccess().getIdIDTerminalRuleCall_0(), semanticObject.getId());\n\t\tfeeder.finish();\n\t}", "public ElementDefinitionDt setNameReference( String theString) {\n\t\tmyNameReference = new StringDt(theString); \n\t\treturn this; \n\t}", "protected String get_object_name() {\n\t\treturn this.fieldname;\n\t}", "public String getObjectName() {\r\n\t\tif (objectName == null || objectName.length() == 0)\r\n\t\t\tsetObjectName(\"entity\" + entityNr);\r\n\t\treturn objectName;\r\n\t}", "protected void sequence_AttributeNameReference(ISerializationContext context, AttributeNameReference semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, SiddhiPackage.eINSTANCE.getAttributeNameReference_AttrName1()) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SiddhiPackage.eINSTANCE.getAttributeNameReference_AttrName1()));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getAttributeNameReferenceAccess().getAttrName1FeaturesIdNewParserRuleCall_0_1(), semanticObject.eGet(SiddhiPackage.eINSTANCE.getAttributeNameReference_AttrName1(), false));\n\t\tfeeder.finish();\n\t}", "String getObjectRefName();", "public void visit(SetQuery obj) {\n visitor.createChildNamingContext(true);\n visitNode(obj.getRightQuery());\n visitor.removeChildNamingContext();\n visitor.namingContext.aliasColumns = true;\n visitNode(obj.getLeftQuery());\n visitNode(obj.getOrderBy());\n }", "public java.lang.String getZqu__Relationship_Field_Name__c() {\r\n return zqu__Relationship_Field_Name__c;\r\n }", "public void setName(String rawLineName) {\n this.lineName = rawLineName;\n //System.out.println(this.lineName + \" \" + lineName);\n }", "@Test\r\n\tpublic void setRelatedField() {\r\n\t\ttestObj.addNativeField(1);\r\n\t\ttestObj.makeArrays();\r\n\t\ttestObj.setRelatedField(0, 100);\r\n\t\tassertEquals(\"relatedFields at 0 should be 100\", 100, testObj.getRelatedFieldsArray()[0]);\r\n\t}", "public void casdastrar(RelatorioDAO obj) throws SQLException {\n\t\t\n\t}", "public java.lang.String getRelatedIMEventOriginalID() {\n return relatedIMEventOriginalID;\n }", "public void corrigirNome(String nOrig, String nNovo) throws IOException {\r\n\t\tfor (VCI_cl_Utilizador u : listaUtilizadores) {\r\n\t\t\tif (u instanceof VCI_cl_Vendedor) {\r\n\t\t\t\tif (((VCI_cl_Vendedor) u).getNome().equals(nOrig)) {\r\n\t\t\t\t\t((VCI_cl_Vendedor) u).setNome(nNovo);\r\n\t\t\t\t\tgravarUtilizadores();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@IcalProperty(pindex = PropertyInfoIndex.RELATED_TO,\n jname = \"relatedTo\",\n nested = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setRelatedTo(final BwRelatedTo val) {\n relatedTo = val;\n }", "public T caseJointRef(JointRef object) {\r\n\t\treturn null;\r\n\t}", "public java.lang.String getRelatedIMEventOriginalID() {\n return relatedIMEventOriginalID;\n }", "public Association associate(Node otherNode, QName associationTypeQName, Directionality directionality, ObjectNode object);", "public java.lang.String getObjectName(){\n return localObjectName;\n }", "@Override\n public String replace(String s)\n {\n if (this.propertyName.equals(s))\n {\n if (this.parentContext != null)\n {\n return this.parentContext.findProperty(s);\n }\n\n // Property is referencing equally named property from higher context\n // but there is no higher context\n return s;\n }\n\n // Property is referencing NOT equally named property from its context or higher context\n return this.context.findProperty(s);\n }", "org.hl7.fhir.ObservationRelated addNewRelated();", "protected void sequence_JoinSource_MainSource(ISerializationContext context, MainSource semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public void setIntersectingRoadwayRef(java.lang.String intersectingRoadwayRef)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(INTERSECTINGROADWAYREF$20);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(INTERSECTINGROADWAYREF$20);\r\n }\r\n target.setStringValue(intersectingRoadwayRef);\r\n }\r\n }", "public String getObjID(String sysName, String objName) throws MDSException {\r\n\t\tString objID = null;\r\n\t\tString key = sysName.toUpperCase() + \".\" + objName.toUpperCase();\r\n\t\tobjID = (String) tabMap.get(key);\r\n\r\n\t\tif (objID == null || objID == \"\") {\r\n\t\t\tif (sysName == null || sysName.trim().length() == 0)\r\n\t\t\t\tthrow new MDSException(\"table : \" + objName + \" without database reference!\");\r\n\t\t\telse\r\n\t\t\t\tthrow new MDSException(\"table : \" + sysName + \".\" + objName\r\n\t\t\t\t\t\t+ \" is not loaded or some columns in this table are not loaded!\");\r\n\t\t} else\r\n\t\t\treturn objID;\r\n\t}", "public String getObject_name() {\n return object_name;\n }", "protected String newLinkName(){\n\t\treturn \"WomoEvtLnk_\" + linkNr++;\n\t}", "public void setReferenceTypeName(String newname) throws ValidityException {\n if (this.type != FieldType.OBJECT) {\n throw new ValidityException(\"can't fix up a non-reference field!\");\n }\n String nname = \"L\" + newname.replace('.', '/') + \";\";\n this.classname.value = nname;\n }", "public T caseAttributeRenamed(AttributeRenamed object) {\n\t\treturn null;\n\t}", "public String getRelationPropertyName() {\n return getForeignPropertyName();\n }", "@Override\n public String getObjectName() {\n\treturn null;\n }", "public Relation(String relationString, EnumSet<Aspects> fixes,\n MinecraftObject obj, ImmutableList<MinecraftObject> otherob) {\n this.fixes = fixes;\n this.relationString = relationString;\n this.obj = obj;\n this.otherobj = otherob;\n }", "public void xsetFriendlyName(org.apache.xmlbeans.XmlString friendlyName)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(FRIENDLYNAME$2, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(FRIENDLYNAME$2);\r\n }\r\n target.set(friendlyName);\r\n }\r\n }", "public void updateTableName() {\n\t\tif (!isDeserializing && getHibernateModel() != null) {\n\t\t\tsetTableName(getHibernateModel().getHibernateImplementation().getDbObjectName(getName()));\n\t\t}\n\t}", "@Override\n public String toString() {\n return \"RelatedOrg {\"\n + \"}\";\n }", "private String resolveName()\n {\n\n String forwardName = null;\n\n // trigger\n final EventFacade trigger = this.getTrigger();\n\n if (trigger != null)\n {\n\n forwardName = trigger.getName();\n\n }\n\n // name\n if (forwardName == null)\n {\n\n forwardName = this.getName();\n\n }\n\n // target\n if (forwardName == null)\n {\n\n forwardName = this.getTarget().getName();\n\n }\n\n // else\n if (forwardName == null)\n {\n\n forwardName = \"unknown\";\n\n }\n\n // return\n return forwardName;\n\n }", "protected void addGlobalNamePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_SecuritySchema_globalName_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_SecuritySchema_globalName_feature\", \"_UI_SecuritySchema_type\"),\n\t\t\t\t CorePackage.Literals.SECURITY_SCHEMA__GLOBAL_NAME,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "public void setOldProperty_description(java.lang.String param){\n localOldProperty_descriptionTracker = true;\n \n this.localOldProperty_description=param;\n \n\n }", "public void setObjectId(gov.nih.nlm.ncbi.www.ObjectIdDocument.ObjectId objectId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.ObjectIdDocument.ObjectId target = null;\r\n target = (gov.nih.nlm.ncbi.www.ObjectIdDocument.ObjectId)get_store().find_element_user(OBJECTID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.ObjectIdDocument.ObjectId)get_store().add_element_user(OBJECTID$0);\r\n }\r\n target.set(objectId);\r\n }\r\n }", "public void setCorrelateID(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localCorrelateID=param;\n \n\n }", "private void setLastObject(final Session session, String object) {\n\t\tsession.setAttribute(\"LastObject\", object);\n\t}", "@Override\n\tpublic String getReferencedEntityClassName() {\n\t\treturn null;\n\t}", "@objid (\"f3f8fb41-47e8-4136-9889-fc34aac3d3f9\")\n String getReferencedClassName();", "public void setgOtherName(String gOtherName) {\n this.gOtherName = gOtherName == null ? null : gOtherName.trim();\n }", "public final void setPreSQL(String newObj)throws SL_Exception\n {\n setPreSQL(newObj, null);\n }", "public Object caseOntologyLinkedElement(OntologyLinkedElement object) {\n\t\treturn null;\n\t}", "@Override\r\n\tprotected String getParentPropertyName(Class beanClass) {\n\t\treturn null;\r\n\t}", "public void afterUpdate(VLabAnsByContragentBean pObject) throws SQLException;", "public final void setMxSheet_MxObjectReference(com.mendix.systemwideinterfaces.core.IContext context, mxmodelreflection.proxies.MxObjectReference mxsheet_mxobjectreference)\r\n\t{\r\n\t\tif (mxsheet_mxobjectreference == null)\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.MxSheet_MxObjectReference.toString(), null);\r\n\t\telse\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.MxSheet_MxObjectReference.toString(), mxsheet_mxobjectreference.getMendixObject().getId());\r\n\t}", "public Long getRelateId() {\n return relateId;\n }", "public String setToRelationship(Context context,\r\n\t\t\tjava.lang.String relID, String targetrelationshipId,\r\n \t\tboolean isFrom)throws Exception\r\n {\r\n\r\n \tString connId = null;\r\n \t//StringBuffer sbCmd = new StringBuffer();\r\n \tStringBuffer sbCmd2 = new StringBuffer();\r\n\r\n try\r\n {\r\n \t//sbCmd.append(\"mod connection \\\"\");\r\n \tsbCmd2.append(\"mod connection $1 \");\r\n \t//sbCmd.append(relID);\r\n \tif(isFrom)\r\n \t{\r\n \t\t//sbCmd.append(\"\\\" fromrel \\\"\");\r\n \t\tsbCmd2.append(\" fromrel $2 \");\r\n \t//sbCmd.append(targetrelationshipId);\r\n \t}\r\n \telse\r\n \t{\r\n \t\t//sbCmd.append(\"\\\" torel \\\"\");\r\n \t\tsbCmd2.append(\" torel $2 \");\r\n \t//sbCmd.append(targetrelationshipId);\r\n\r\n \t}\r\n \t//sbCmd.append(\"\\\" select id dump;\");\r\n \tsbCmd2.append(\" select $3 dump\");\r\n \tconnId = MqlUtil.mqlCommand(context, sbCmd2.toString(), true,relID,targetrelationshipId,\"id\");\r\n }\r\n catch (Exception e)\r\n {\r\n throw new FrameworkException(e);\r\n }\r\n\r\n\t\treturn connId;\r\n }", "@Override\n public InferredOWLOntologyID attachFileReference(final InferredOWLOntologyID ontologyIRI, final IRI objectIRI,\n final String label, final String repositoryAlias, final String filePathInRepository)\n throws PoddClientException\n {\n return null;\n }", "protected void renameAliasReference(String from, String to)\n {\n if(castor.getCastorRelationChoice().getOneToMany().getFromAlias().equals(from))\n castor.getCastorRelationChoice().getOneToMany().setFromAlias(to);\n \n if(castor.getCastorRelationChoice().getOneToMany().getToAlias().equals(from))\n castor.getCastorRelationChoice().getOneToMany().setToAlias(to);\n }", "public void addToTable(Attribute object) {\n\t\tlist.add(object);\n\t\toracle.add(object.getFriendlyName());\n\t\tdataProvider.flush();\n\t\tdataProvider.refresh();\n\t}", "public String getObjectName() { return objectName; }" ]
[ "0.5930809", "0.5516348", "0.54262733", "0.5374105", "0.5346004", "0.5300243", "0.5218708", "0.5207246", "0.51301324", "0.4993142", "0.48423478", "0.48278674", "0.4747337", "0.47146273", "0.47002918", "0.467099", "0.4638377", "0.4601221", "0.45688897", "0.452019", "0.45139477", "0.4500988", "0.4499706", "0.4449936", "0.44478843", "0.44468364", "0.44468364", "0.4443035", "0.44391713", "0.44383734", "0.44312006", "0.44023484", "0.43993163", "0.43940732", "0.4392672", "0.43798384", "0.43599945", "0.43460646", "0.43440884", "0.43202192", "0.43025145", "0.42906952", "0.42857987", "0.42830306", "0.42515305", "0.4244348", "0.42292732", "0.42238098", "0.42207974", "0.4211481", "0.42091954", "0.42026433", "0.42023885", "0.41981462", "0.41790867", "0.41688317", "0.41670096", "0.41641545", "0.4162624", "0.41583386", "0.4153938", "0.4152578", "0.4151382", "0.41363883", "0.4133687", "0.41289458", "0.41043782", "0.4099914", "0.40923744", "0.4091219", "0.40779144", "0.40717238", "0.40698433", "0.4069587", "0.40632355", "0.40626287", "0.40621534", "0.40595254", "0.40567595", "0.40565932", "0.4047399", "0.40443382", "0.40441927", "0.4043272", "0.40426332", "0.4042006", "0.40410596", "0.40389183", "0.40212542", "0.40181077", "0.4011226", "0.39999905", "0.39955923", "0.39912733", "0.39886767", "0.39863703", "0.39862356", "0.39744005", "0.39683273", "0.3967172" ]
0.6568903
0
This method was generated by MyBatis Generator. This method returns the value of the database column msm_trac_log.RELATED_OBJECT_ID
public String getRelatedObjectId() { return relatedObjectId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getRelateId() {\n return relateId;\n }", "private int getObjectId(Object object) {\n int objectId = 0;\n try {\n Field[] fields = object.getClass().getDeclaredFields();\n for (Field f : fields) {\n if (f.isAnnotationPresent(Id.class)) {\n f.setAccessible(true);\n objectId = Integer.parseInt(f.get(object).toString());\n f.setAccessible(false);\n }\n }\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n return objectId;\n }", "public java.lang.String getRelatedIMEventOriginalID() {\n return relatedIMEventOriginalID;\n }", "public java.lang.String getRelatedIMEventOriginalID() {\n return relatedIMEventOriginalID;\n }", "public int getObjectID(){\n\t\treturn _lodNodeData.getObjectID();\n\t}", "public Integer getTargetID()\r\n\t\t{ return mapping.getTargetId(); }", "public String getRelatedObjectName() {\n return relatedObjectName;\n }", "protected int GetID() {\n\t\treturn this.JunctionID;\n\t}", "public Object getCorrelationId()\n {\n return getUnderlyingId(false);\n }", "public void setRelatedObjectId(String relatedObjectId) {\n this.relatedObjectId = relatedObjectId == null ? null : relatedObjectId.trim();\n }", "public gov.nih.nlm.ncbi.www.ObjectIdDocument.ObjectId getObjectId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.ObjectIdDocument.ObjectId target = null;\r\n target = (gov.nih.nlm.ncbi.www.ObjectIdDocument.ObjectId)get_store().find_element_user(OBJECTID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }", "public String getId(Object obj) {\n String id = null;\n\n if (obj != null) {\n id = reference(obj);\n\n if (id == null && obj instanceof mxICell) {\n id = ((mxICell)obj).getId();\n\n if (id == null) {\n // Uses an on-the-fly Id\n id = mxCellPath.create((mxICell)obj);\n\n if (id.length() == 0) {\n id = \"root\";\n }\n }\n }\n }\n\n return id;\n }", "public Long getRelId() {\n return relId;\n }", "public Object getObjectId() {\n\t\treturn null;\n\t}", "public int getObjectId() {\n\t\treturn this.objectId;\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}", "protected String get_object_id()\r\n\t{\r\n\t\treturn id;\r\n\t}", "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 }", "public String getRelatedObjectType() {\n return relatedObjectType;\n }", "public final int getObjectID() {\n\t\treturn objectID;\n\t}", "public Integer getObjectId() {\n\t\treturn objectId;\n\t}", "public int getObjectId()\r\n/* 71: */ {\r\n/* 72:152 */ return this.objectId;\r\n/* 73: */ }", "public void setRelateId(Long relateId) {\n this.relateId = relateId;\n }", "public String correlationId() {\n return correlationId;\n }", "public Long getId() {\r\n\t\treturn objectId;\r\n\t}", "public int getOtherId() {\n return instance.getOtherId();\n }", "public Long getDomainObjectId()\r\n\t{\r\n\t\treturn this.domainObjectId;\r\n\t}", "public java.lang.String getRELATION_ID() {\r\n return RELATION_ID;\r\n }", "public Long getObjectId() {\n return objectId;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getCorrelateID(){\n return localCorrelateID;\n }", "public long getObjectId(Object o)\n{\n\treturn o.hashCode();\n}", "public String getObjectId() {\r\n\t\treturn objectId;\r\n\t}", "public java.lang.String getLogCorrelationIDString(){\n return localLogCorrelationIDString;\n }", "public void setRelatedIMEventOriginalID(java.lang.String value) {\n this.relatedIMEventOriginalID = value;\n }", "public Integer getLogid() {\n return logid;\n }", "public java.lang.Integer getParentId();", "public String getObjectId() {\n\t\treturn objectId;\n\t}", "public int getOtherId() {\n return otherId_;\n }", "public Integer getgOtherId() {\n return gOtherId;\n }", "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 getOtherId();", "@Import(\"note\")\n\tint getLinkedNoteId();", "@JsonIgnore\r\n public String getReferenceId() {\r\n return OptionalNullable.getFrom(referenceId);\r\n }", "public int getAD_OrgTrx_ID();", "public int getAD_OrgTrx_ID();", "public java.lang.Long getRelateTransno () {\r\n\t\treturn relateTransno;\r\n\t}", "public Integer getId()\r\n\t\t{ return mapping.getId(); }", "public int getObjectId() {\n\t\t\treturn objectId;\n\t\t}", "public String getReferenceId();", "public int getRtoId() {\n\t\treturn id;\n\t}", "public Integer getSourceID()\r\n\t\t{ return mapping.getSourceId(); }", "public String getObjID(String sysName, String objName) throws MDSException {\r\n\t\tString objID = null;\r\n\t\tString key = sysName.toUpperCase() + \".\" + objName.toUpperCase();\r\n\t\tobjID = (String) tabMap.get(key);\r\n\r\n\t\tif (objID == null || objID == \"\") {\r\n\t\t\tif (sysName == null || sysName.trim().length() == 0)\r\n\t\t\t\tthrow new MDSException(\"table : \" + objName + \" without database reference!\");\r\n\t\t\telse\r\n\t\t\t\tthrow new MDSException(\"table : \" + sysName + \".\" + objName\r\n\t\t\t\t\t\t+ \" is not loaded or some columns in this table are not loaded!\");\r\n\t\t} else\r\n\t\t\treturn objID;\r\n\t}", "public Integer getRecId() {\n return recId;\n }", "public String getObjId()\n {\n return objId;\n }", "public static String getID(EObject eObject) {\n\n\t\tResource resource = eObject.eResource();\n\n\t\tString id = null;\n\n\t\tif (resource == null)\n\t\t\tid = GMFResource.getSavedID(eObject);\n\n\t\telse if (resource instanceof XMLResource)\n\t\t\tid = ((XMLResource) resource).getID(eObject);\n\n\t\tif (id != null)\n\t\t\treturn id;\n\t\telse\n\t\t\treturn MSLConstants.EMPTY_STRING;\n\t}", "protected abstract long determineObjectId(V vo);", "public int getId(AirspaceObject object)\n\t{\n\t\treturn objectToId.get(object);\n\t}", "public String getStatusId(Object object);", "@Override\r\n\tpublic int getLinkOriginId() {\n\t\treturn origin.getNodeId();\r\n\t}", "public StrColumn getGoId() {\n return delegate.getColumn(\"go_id\", DelegatingStrColumn::new);\n }", "public int getAD_OrgTrx_ID() {\n\t\tInteger ii = (Integer) get_Value(\"AD_OrgTrx_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public String getObjId() {\n return objId;\n }", "public StrColumn getRobotId() {\n return delegate.getColumn(\"robot_id\", DelegatingStrColumn::new);\n }", "public int getObjectID(){\n\t\treturn _groupNodeData.getObjectID();\n\t}", "public java.lang.Object getOpportunityID() {\n return opportunityID;\n }", "public Long getRelCustId() {\n return relCustId;\n }", "public int getID(OrderItem oi){\n int id;\n id=findID(oi);\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 getLBR_DocLine_Details_ID();", "public String getOriginalId()\r\n {\r\n return originalId;\r\n }", "public String getLogId() {\r\n return logId;\r\n }", "public Integer getRefId() {\n return refId;\n }", "public String getObjectId();", "public String getId() {\n return getObjectId();\n }", "private String resolveOutboundRequestID(@Nonnull final MessageContext messageContext) {\n if (messageContext.getParent() instanceof InOutOperationContext) {\n final MessageContext outboundContext = \n ((InOutOperationContext)messageContext.getParent()).getOutboundMessageContext();\n if (outboundContext != null && outboundContext.getMessage() instanceof SAMLObject) {\n final SAMLObject outboundMessage = (SAMLObject) outboundContext.getMessage();\n if (outboundMessage instanceof org.opensaml.saml.saml2.core.RequestAbstractType) {\n return ((org.opensaml.saml.saml2.core.RequestAbstractType)outboundMessage).getID();\n } else if (outboundMessage instanceof org.opensaml.saml.saml1.core.RequestAbstractType) {\n return ((org.opensaml.saml.saml1.core.RequestAbstractType)outboundMessage).getID();\n }\n }\n }\n return null;\n }", "public IntColumn getParentId() {\n return delegate.getColumn(\"parent_id\", DelegatingIntColumn::new);\n }", "public Integer getOpportunityID() {\n return opportunityID;\n }", "int getObjId();", "int getObjId();", "int getObjId();", "int getObjId();", "int getObjId();", "int getObjId();", "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 String getAssociatedObject() {\n return associatedObject;\n }", "public long getRId() {\r\n return rId;\r\n }", "public long getNextObjectID() {\n return (Long) getProperty(\"nextObjectID\");\n }", "public Object getID()\n {\n return data.siObjectID;\n }", "@Nullable\r\n Object getNsdIdRef();" ]
[ "0.57651365", "0.5515864", "0.53646606", "0.5349925", "0.53249395", "0.53212166", "0.5314666", "0.53143406", "0.5294129", "0.5220726", "0.52071923", "0.5202458", "0.5200784", "0.513268", "0.5120417", "0.5113054", "0.5113054", "0.5113054", "0.51113087", "0.50930405", "0.5082399", "0.5059494", "0.5050027", "0.5047925", "0.5039756", "0.5027327", "0.50195855", "0.5019325", "0.50123537", "0.500776", "0.49901876", "0.49834403", "0.49783468", "0.49625573", "0.49622226", "0.4933304", "0.4927178", "0.49229035", "0.4899946", "0.48978305", "0.48757926", "0.48678094", "0.48559073", "0.4855826", "0.48545223", "0.48545223", "0.48501286", "0.48378024", "0.4829881", "0.48177803", "0.4807023", "0.4806396", "0.48013878", "0.48001316", "0.47838983", "0.47807932", "0.47755292", "0.4768264", "0.47437662", "0.4741217", "0.4738773", "0.47380134", "0.47276673", "0.4704288", "0.47010016", "0.4699851", "0.46956736", "0.46832308", "0.4679912", "0.4679912", "0.4679912", "0.4679912", "0.4679912", "0.4679912", "0.466336", "0.46620736", "0.4660208", "0.4647705", "0.46451923", "0.46372733", "0.46353737", "0.46345845", "0.46335706", "0.46327198", "0.46327198", "0.46327198", "0.46327198", "0.46327198", "0.46327198", "0.46299905", "0.46299905", "0.46299905", "0.46299905", "0.46299905", "0.46299905", "0.46296126", "0.4628055", "0.46178663", "0.46158156", "0.46062312" ]
0.65216947
0
This method was generated by MyBatis Generator. This method sets the value of the database column msm_trac_log.RELATED_OBJECT_ID
public void setRelatedObjectId(String relatedObjectId) { this.relatedObjectId = relatedObjectId == null ? null : relatedObjectId.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRelatedObjectId() {\n return relatedObjectId;\n }", "void setAssociatedObject(IEntityObject relatedObj);", "public void setRelateId(Long relateId) {\n this.relateId = relateId;\n }", "public void setRelatedObjectName(String relatedObjectName) {\n this.relatedObjectName = relatedObjectName == null ? null : relatedObjectName.trim();\n }", "public void relate(HNode id, Object o);", "public void setRelatedIMEventOriginalID(java.lang.String value) {\n this.relatedIMEventOriginalID = value;\n }", "public void setObjectId(gov.nih.nlm.ncbi.www.ObjectIdDocument.ObjectId objectId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.ObjectIdDocument.ObjectId target = null;\r\n target = (gov.nih.nlm.ncbi.www.ObjectIdDocument.ObjectId)get_store().find_element_user(OBJECTID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.ObjectIdDocument.ObjectId)get_store().add_element_user(OBJECTID$0);\r\n }\r\n target.set(objectId);\r\n }\r\n }", "public void setRelatedObjectType(String relatedObjectType) {\n this.relatedObjectType = relatedObjectType == null ? null : relatedObjectType.trim();\n }", "public void setAssociatedObject(String associatedObject) {\n this.associatedObject = associatedObject;\n }", "public Long getRelateId() {\n return relateId;\n }", "abstract void setObjectId(@NotNull ResultSet rs, @NotNull T object) throws SQLException;", "public void setId(Long objectId) {\r\n\t\tthis.objectId = objectId;\r\n\t}", "public String setToRelationship(Context context,\r\n\t\t\tjava.lang.String relID, String targetrelationshipId,\r\n \t\tboolean isFrom)throws Exception\r\n {\r\n\r\n \tString connId = null;\r\n \t//StringBuffer sbCmd = new StringBuffer();\r\n \tStringBuffer sbCmd2 = new StringBuffer();\r\n\r\n try\r\n {\r\n \t//sbCmd.append(\"mod connection \\\"\");\r\n \tsbCmd2.append(\"mod connection $1 \");\r\n \t//sbCmd.append(relID);\r\n \tif(isFrom)\r\n \t{\r\n \t\t//sbCmd.append(\"\\\" fromrel \\\"\");\r\n \t\tsbCmd2.append(\" fromrel $2 \");\r\n \t//sbCmd.append(targetrelationshipId);\r\n \t}\r\n \telse\r\n \t{\r\n \t\t//sbCmd.append(\"\\\" torel \\\"\");\r\n \t\tsbCmd2.append(\" torel $2 \");\r\n \t//sbCmd.append(targetrelationshipId);\r\n\r\n \t}\r\n \t//sbCmd.append(\"\\\" select id dump;\");\r\n \tsbCmd2.append(\" select $3 dump\");\r\n \tconnId = MqlUtil.mqlCommand(context, sbCmd2.toString(), true,relID,targetrelationshipId,\"id\");\r\n }\r\n catch (Exception e)\r\n {\r\n throw new FrameworkException(e);\r\n }\r\n\r\n\t\treturn connId;\r\n }", "public void xsetLineID(org.apache.xmlbeans.XmlInt lineID)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlInt target = null;\n target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(LINEID$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(LINEID$2);\n }\n target.set(lineID);\n }\n }", "public void setLineID(int lineID)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LINEID$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LINEID$2);\n }\n target.setIntValue(lineID);\n }\n }", "public void setProjectRelatedByRelProjectIdKey(ObjectKey key) throws TorqueException\n {\n \n setRelProjectId(((NumberKey) key).intValue());\n }", "public void setObjectId(Long objectId) {\n this.objectId = objectId;\n }", "public void setObjId(String objId) {\n this.objId = objId == null ? null : objId.trim();\n }", "public void setObjId( String objId )\n {\n this.objId = objId;\n }", "public void setRelatedTo(java.lang.String value);", "public void setRELATION_ID(java.lang.String RELATION_ID) {\r\n this.RELATION_ID = RELATION_ID;\r\n }", "public void setProductRelatedByRelProductIdKey(ObjectKey key) throws TorqueException\n {\n \n setRelProductId(((NumberKey) key).intValue());\n }", "public void setDomainObjectId(Long domainObjectId)\r\n\t{\r\n\t\tthis.domainObjectId = domainObjectId;\r\n\t}", "public void setLogCorrelationIDString(java.lang.String param){\n localLogCorrelationIDStringTracker = true;\n \n this.localLogCorrelationIDString=param;\n \n\n }", "public gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.Builder setRelatedIMEventOriginalID(java.lang.String value) {\n validate(fields()[1], value);\n this.relatedIMEventOriginalID = value;\n fieldSetFlags()[1] = true;\n return this; \n }", "private void setOtherId(int value) {\n \n otherId_ = value;\n }", "private String replaceIntermediateObjectWithRel(Context context, String strOldRelId ,String strNewRelId ,String strNewRelIdSide,Map attributeMap) throws Exception {\r\n\r\n\t\tString strNewConnId=\"\";\r\n\t\tboolean isRelToRel = true;\r\n\t\tboolean isFrom = true;\r\n\r\n\t\ttry{\r\n\r\n\t\tDomainRelationship domRel = new DomainRelationship(strOldRelId);\r\n //Get the attributes on Relationship\r\n /*Map attributeMap = new HashMap();\r\n attributeMap = domRel.getAttributeMap(context,true);*/\r\n\r\n\r\n\t\t//Get the \"Type\" of rel\r\n\t\tStringList slRelSelects = new StringList(1);\r\n slRelSelects.addElement(DomainRelationship.SELECT_TYPE);\r\n\r\n if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"from\")){\r\n \t//New Rel replaces FL/GBOM which is on \"from\" side of Old Rel hence we query now \"to\" side of Old Rel\r\n \tslRelSelects.add(\"to.id\");\r\n slRelSelects.add(\"torel.id\");\r\n\r\n }else if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"to\")){\r\n \t//New Rel replaces FL/GBOM which is on \"to\" side of Old Rel hence we query now \"from\" side of Old Rel\r\n \tslRelSelects.add(\"from.id\");\r\n slRelSelects.add(\"fromrel.id\");\r\n }\r\n\r\n Hashtable htRelData = domRel.getRelationshipData(context,slRelSelects);\r\n\r\n String strFromSideOfRel =\"\";\r\n String strToSideOfRel =\"\";\r\n String strRelId =\"\";\r\n String strObjId =\"\";\r\n\r\n StringList slRelTypes = (StringList) htRelData.get(DomainRelationship.SELECT_TYPE);\r\n String strRelType = (String) slRelTypes.get(0);\r\n RelationshipType RelType = new RelationshipType(strRelType);\r\n\r\n\r\n if((StringList) htRelData.get(\"from.id\")!=null || ((StringList)htRelData.get(\"fromrel.id\"))!=null ){\r\n\r\n \tStringList slFromSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"from.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"from.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\t//isFrom = false;\r\n \t\tstrObjId = strFromSideOfRel;\r\n\r\n\r\n \t}else if(!((StringList)htRelData.get(\"fromrel.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"fromrel.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tstrRelId = strFromSideOfRel;\r\n \t\tisFrom = false;\r\n \t}\r\n }\r\n\r\n if((StringList) htRelData.get(\"to.id\")!=null || ((StringList)htRelData.get(\"torel.id\"))!=null ){\r\n\r\n \tStringList slToSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"to.id\")).isEmpty()){\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"to.id\");\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\tstrObjId = strToSideOfRel;\r\n \t\tisFrom = false;\r\n \t}else if(!((StringList)htRelData.get(\"torel.id\")).isEmpty()){\r\n\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"torel.id\");\r\n\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n \t\tstrRelId =strToSideOfRel;\r\n \t\t//isFrom = false;\r\n \t}\r\n }\r\n\r\n\r\n if(isRelToRel){\r\n\r\n strNewConnId = connectRelationship(context, RelType, strRelId,strNewRelId, isFrom);\r\n\r\n }else{\r\n\r\n \tstrNewConnId = connectObject(context, RelType, strObjId,strNewRelId, isFrom);\r\n }\r\n\r\n\t\t\t StringList relDataSelects = new StringList();\r\n\t\t\t relDataSelects.addElement(\"frommid.id\");\r\n\t\t\t relDataSelects.addElement(\"tomid.id\");\r\n\r\n\t\t\t Map gbomRelData = domRel.getRelationshipData(context,relDataSelects);\r\n\t\t\t StringList sLFrommid = new StringList();\r\n\t\t\t StringList sLTomid = new StringList();\r\n\r\n\t\t\t sLFrommid = (StringList) gbomRelData.get(\"frommid.id\");\r\n\t\t\t if(!sLFrommid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLFrommid.size();i++){\r\n\r\n\t\t\t\t\tString strFromMid = (String)sLFrommid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strFromMid,strNewConnId,true);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\r\n\t\t\t sLTomid = (StringList) gbomRelData.get(\"tomid.id\");\r\n\t\t\t if(!sLTomid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLTomid.size();i++){\r\n\r\n\t\t\t\t\tString strToMid = (String)sLTomid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strToMid,strNewConnId,false);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\t\t\tDomainRelationship domNewConnId = new DomainRelationship(strNewConnId);\r\n\t\t\tmqlLogRequiredInformationWriter(\"Rel id :: \"+ strNewConnId +\"\\n\");\r\n\t\t mqlLogRequiredInformationWriter(\"Attribute value Map set for this rel id :: \"+ attributeMap +\"\\n\\n\");\r\n\t domNewConnId.setAttributeValues(context, attributeMap);\r\n\r\n\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn strNewConnId;\r\n\t}", "private void setObjId(int value) {\n \n objId_ = value;\n }", "private void setObjId(int value) {\n \n objId_ = value;\n }", "private void setObjId(int value) {\n \n objId_ = value;\n }", "private void setObjId(int value) {\n \n objId_ = value;\n }", "private void setObjId(int value) {\n \n objId_ = value;\n }", "private void setObjId(int value) {\n \n objId_ = value;\n }", "public void setAD_OrgTrx_ID (int AD_OrgTrx_ID);", "public void setAD_OrgTrx_ID (int AD_OrgTrx_ID);", "public void setCorrelateID(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localCorrelateID=param;\n \n\n }", "public void setObjectId(Integer objectId) {\n\t\tthis.objectId = objectId;\n\t}", "public final void setMxSheet_RowObject(com.mendix.systemwideinterfaces.core.IContext context, mxmodelreflection.proxies.MxObjectType mxsheet_rowobject)\r\n\t{\r\n\t\tif (mxsheet_rowobject == null)\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.MxSheet_RowObject.toString(), null);\r\n\t\telse\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.MxSheet_RowObject.toString(), mxsheet_rowobject.getMendixObject().getId());\r\n\t}", "public void setCorrelationId(final Object correlationId)\n {\n setUnderlyingId(correlationId, false);\n }", "public void setObjid(int newValue) {\n\tthis.objid = newValue;\n}", "public void setOpportunityID(java.lang.Object opportunityID) {\n this.opportunityID = opportunityID;\n }", "public void setLogObject(Log logObject_) {\n\t\tlogObject = logObject_;\n\t\tlog( \"deviceId \" + deviceId, Log.Level.Information );\n\t\tlog( \"location \" + location, Log.Level.Information );\n\t}", "public static <T> T setObjectId(final T targetObject, final String objectId) {\n\n try {\n if (findAllFields(targetObject).containsKey(DENA_OBJECT_ID_FIELD)) {\n ReflectionUtils.forceSetField(targetObject, DENA_OBJECT_ID_FIELD, objectId);\n return targetObject;\n } else {\n Class<T> newClass = (Class<T>) ReflectionUtils.injectPublicFieldToClass(targetObject.getClass(), String.class, DENA_OBJECT_ID_FIELD);\n T newObject = ReflectionUtils.callDefaultConstructor(newClass);\n ReflectionUtils.copyObject(targetObject, newObject);\n ReflectionUtils.forceSetField(newObject, DENA_OBJECT_ID_FIELD, objectId);\n\n return newObject;\n }\n } catch (IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException ex) {\n throw new DenaFault(String.format(\"Can not set objectId field [%s]\", objectId), ex);\n }\n\n }", "public String getRelatedObjectName() {\n return relatedObjectName;\n }", "public void setAD_OrgTrx_ID(int AD_OrgTrx_ID) {\n\t\tif (AD_OrgTrx_ID <= 0)\n\t\t\tset_Value(\"AD_OrgTrx_ID\", null);\n\t\telse\n\t\t\tset_Value(\"AD_OrgTrx_ID\", new Integer(AD_OrgTrx_ID));\n\t}", "public void setRelProductId(int v) throws TorqueException\n {\n \n if (this.relProductId != v)\n {\n this.relProductId = v;\n setModified(true);\n }\n \n \n if (aProductRelatedByRelProductId != null && !(aProductRelatedByRelProductId.getProductId() == v))\n {\n aProductRelatedByRelProductId = null;\n }\n \n }", "public void setRelProjectId(int v) throws TorqueException\n {\n \n if (this.relProjectId != v)\n {\n this.relProjectId = v;\n setModified(true);\n }\n \n \n if (aProjectRelatedByRelProjectId != null && !(aProjectRelatedByRelProjectId.getProjectId() == v))\n {\n aProjectRelatedByRelProjectId = null;\n }\n \n }", "protected abstract void setId(P object, Long id);", "public void setRelateToDynamicCarNumber(Integer relateToDynamicCarNumber) {\r\n this.relateToDynamicCarNumber = relateToDynamicCarNumber;\r\n }", "public void setRId(long value) {\r\n this.rId = value;\r\n }", "public void setRelId(Long relId) {\n this.relId = relId;\n }", "public void set(int propID, Object obj) throws SL_Exception\n {\n switch(propID)\n {\n case PRESQL_ID:\n setPreSQL((String)obj);\n return;\n case POSTSQL_ID:\n setPostSQL((String)obj);\n return;\n case ROWOFFSET_ID:\n setRowOffSet((java.lang.Integer)obj);\n return;\n case ROWLIMIT_ID:\n setRowLimit((java.lang.Integer)obj);\n return;\n default:\n super.set(propID, obj);\n return;\n }\n\n }", "public void setLBR_DocLine_Details_ID (int LBR_DocLine_Details_ID);", "public void setReparentTransactionRecordId( int reparentTransactionRecordId )\n{\n\tm_reparentTransactionRecordId = reparentTransactionRecordId;\n}", "public void setLinkid(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localLinkidTracker = true;\r\n } else {\r\n localLinkidTracker = false;\r\n \r\n }\r\n \r\n this.localLinkid=param;\r\n \r\n\r\n }", "private int getObjectId(Object object) {\n int objectId = 0;\n try {\n Field[] fields = object.getClass().getDeclaredFields();\n for (Field f : fields) {\n if (f.isAnnotationPresent(Id.class)) {\n f.setAccessible(true);\n objectId = Integer.parseInt(f.get(object).toString());\n f.setAccessible(false);\n }\n }\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n return objectId;\n }", "public void setObjectId(String objectId);", "public void setObjectElement(Object paramObject, long paramLong)\n/* */ throws SQLException\n/* */ {\n/* 916 */ if (paramObject == null)\n/* */ {\n/* 918 */ getLazyOracleArray();\n/* */ }\n/* */ \n/* 921 */ resetOracleElement(paramLong);\n/* */ \n/* 923 */ getLazyArray()[((int)paramLong)] = paramObject;\n/* */ }", "public void setObjectId(String objectId) {\r\n\t\tthis.objectId = objectId;\r\n\t}", "public void setTargetObjectId(String targetObjectId) {\n this.targetObjectId = targetObjectId;\n }", "public void setRelateTransno (java.lang.Long relateTransno) {\r\n\t\tthis.relateTransno = relateTransno;\r\n\t}", "public void associate (String accID, Integer logicalDBKey, int mgiTypeKey,\n int objectKey)\n throws MGIException\n {\n Integer probeKey = new Integer(objectKey);\n\n logger.logdDebug(\"Make Association: \"+accID+\",\"+logicalDBKey+\",\"+\n objectKey+\",\"+mgiTypeKey,false);\n\n Vector vParts = AccessionLib.splitAccID(accID);\n\n // Create an state object for the ACC_Accession table and set its\n // attributes.\n //\n ACC_AccessionState accState = new ACC_AccessionState();\n accState.setAccID(accID);\n accState.setPrefixPart((String)vParts.get(0));\n accState.setNumericPart((Integer)vParts.get(1));\n accState.setLogicalDBKey(logicalDBKey);\n accState.setMGITypeKey(new Integer(mgiTypeKey));\n accState.setObjectKey(probeKey);\n accState.setPrivateVal(isPrivateAccID);\n accState.setPreferred(new Boolean(true));\n\n // Create a DAO for the state object and pass it to the stream.\n //\n ACC_AccessionDAO accDAO = new ACC_AccessionDAO(accState);\n loadStream.insert(accDAO);\n\n // Create an state object for the ACC_AccessionReference table and set\n // its attributes.\n //\n ACC_AccessionReferenceState accRefState =\n new ACC_AccessionReferenceState();\n accRefState.setAccessionKey(accDAO.getKey().getKey());\n accRefState.setRefsKey(refsKey);\n\n // Create a DAO for the state object and pass it to the stream.\n //\n ACC_AccessionReferenceDAO accRefDAO =\n new ACC_AccessionReferenceDAO(accRefState);\n loadStream.insert(accRefDAO);\n\n // Special processing for probe associations ONLY.\n //\n if (mgiTypeKey == 3 && madeProbeRef == false)\n {\n // Determine if the probe is already associated with the reference.\n //\n if (probeRefLookup.lookup(probeKey) == null)\n {\n // Create an state object for the PRB_Reference table and set\n // its attributes.\n //\n PRB_ReferenceState probeRefState = new PRB_ReferenceState();\n probeRefState.setProbeKey(probeKey);\n probeRefState.setRefsKey(refsKey);\n probeRefState.setHasrmap(new Boolean(false));\n probeRefState.setHassequence(new Boolean(false));\n\n // Create a DAO for the state object and pass it to the stream.\n //\n PRB_ReferenceDAO probeRefDAO = new PRB_ReferenceDAO(probeRefState);\n loadStream.insert(probeRefDAO);\n\n // Add the probe key to the lookup cache, so another bcp record\n // will not be created for it in the future.\n //\n probeRefLookup.addToCache(probeKey);\n }\n\n // The probe reference has been made.\n //\n madeProbeRef = true;\n }\n }", "public void setObjectId(String objectId) {\n this.objectId = objectId;\n }", "public Integer getTargetID()\r\n\t\t{ return mapping.getTargetId(); }", "public void setMPC_Order_Node_ID(int MPC_Order_Node_ID) {\n\t\tif (MPC_Order_Node_ID <= 0)\n\t\t\tset_Value(\"MPC_Order_Node_ID\", null);\n\t\telse\n\t\t\tset_Value(\"MPC_Order_Node_ID\", new Integer(MPC_Order_Node_ID));\n\t}", "public void setProductRelatedByRelProductId(Product v) throws TorqueException\n {\n if (v == null)\n {\n setRelProductId( 999);\n }\n else\n {\n setRelProductId(v.getProductId());\n }\n aProductRelatedByRelProductId = v;\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 void setRefId(long value) {\n this.refId = value;\n }", "public String getRelatedObjectType() {\n return relatedObjectType;\n }", "@Test\r\n\tpublic void setRelatedField() {\r\n\t\ttestObj.addNativeField(1);\r\n\t\ttestObj.makeArrays();\r\n\t\ttestObj.setRelatedField(0, 100);\r\n\t\tassertEquals(\"relatedFields at 0 should be 100\", 100, testObj.getRelatedFieldsArray()[0]);\r\n\t}", "public void setIdOwner(Long idOwner) {\r\n this.idOwner = idOwner;\r\n }", "public final void setMxSheet_MxObjectReference(com.mendix.systemwideinterfaces.core.IContext context, mxmodelreflection.proxies.MxObjectReference mxsheet_mxobjectreference)\r\n\t{\r\n\t\tif (mxsheet_mxobjectreference == null)\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.MxSheet_MxObjectReference.toString(), null);\r\n\t\telse\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.MxSheet_MxObjectReference.toString(), mxsheet_mxobjectreference.getMendixObject().getId());\r\n\t}", "public T caseRelationAdded(RelationAdded object) {\n\t\treturn null;\n\t}", "@IcalProperty(pindex = PropertyInfoIndex.RELATED_TO,\n jname = \"relatedTo\",\n nested = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setRelatedTo(final BwRelatedTo val) {\n relatedTo = val;\n }", "@Override\r\n protected void setValueFromId(EObject object, EReference eReference, String ids) {\r\n \r\n super.setValueFromId(object, eReference, ((QNameURIHandler) uriHandler)\r\n .convertQNameToUri(ids));\r\n }", "protected int GetID() {\n\t\treturn this.JunctionID;\n\t}", "public void setC_OrderLine_ID (int C_OrderLine_ID)\n\t{\n\t\tif (C_OrderLine_ID < 1) \n\t\t\tset_Value (COLUMNNAME_C_OrderLine_ID, null);\n\t\telse \n\t\t\tset_Value (COLUMNNAME_C_OrderLine_ID, Integer.valueOf(C_OrderLine_ID));\n\t}", "protected void setObjectId(int id) {\n\t\tthis.objectId = id;\n\t\tsetDirty(true);\n\t}", "public void xsetRefID(org.apache.xmlbeans.XmlString refID)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(REFID$4, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(REFID$4);\n }\n target.set(refID);\n }\n }", "public void setMPC_Order_BOMLine_ID(int MPC_Order_BOMLine_ID) {\n\t\tif (MPC_Order_BOMLine_ID <= 0)\n\t\t\tset_Value(\"MPC_Order_BOMLine_ID\", null);\n\t\telse\n\t\t\tset_Value(\"MPC_Order_BOMLine_ID\", new Integer(MPC_Order_BOMLine_ID));\n\t}", "public Long getRelId() {\n return relId;\n }", "protected void sequence_AttributeReference_SetAssignment(ISerializationContext context, AttributeReference semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public void setpObjObjectGid(String pObjObjectGid) {\n this.pObjObjectGid = pObjObjectGid == null ? null : pObjObjectGid.trim();\n }", "public void setProjectRelatedByProjectIdKey(ObjectKey key) throws TorqueException\n {\n \n setProjectId(((NumberKey) key).intValue());\n }", "public T caseRelationshipEnd(RelationshipEnd object) {\n\t\treturn null;\n\t}", "public void setHC_ManagerTo_ID (int HC_ManagerTo_ID);", "public void setRelDocument(int v) \n {\n \n if (this.relDocument != v)\n {\n this.relDocument = v;\n setModified(true);\n }\n \n \n }", "public T caseJointRef(JointRef object) {\r\n\t\treturn null;\r\n\t}", "public void setHC_Org2_ID (int HC_Org2_ID);", "protected void addRec_idPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_rec_id_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_rec_id_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__REC_ID,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "public String connectObject(Context context,\r\n \t\tRelationshipType relationshipType,\r\n \t\tjava.lang.String objectId,String strNewRelId,\r\n \t\tboolean isFrom)throws Exception\r\n {\r\n \tString fromId = null;\r\n \tString toId = null;\r\n \tString connId = null;\r\n \tStringBuffer sbCmd = new StringBuffer();\r\n \tStringBuffer sbCmd2 = new StringBuffer();\r\n \tString strFrom = null;\r\n \tString strTo = null;\r\n\r\n try\r\n {\r\n \tif(!isFrom)\r\n \t{\r\n \t\tfromId = strNewRelId;\r\n \t\ttoId = objectId;\r\n \t\tstrFrom = \"fromrel\";\r\n \t\tstrTo = \"to\";\r\n \t}else\r\n \t{\r\n \t\tfromId = objectId;\r\n \t\ttoId = strNewRelId;\r\n \t\tstrFrom = \"from\";\r\n \t\tstrTo = \"torel\";\r\n \t}\r\n\r\n \tsbCmd.append(\"add connection \\\"\");\r\n \tsbCmd.append(relationshipType);\r\n \tsbCmd.append(\"\\\" \");\r\n \tsbCmd.append(strFrom);\r\n \tsbCmd.append(\" \\\"\");\r\n \tsbCmd.append(fromId);\r\n \tsbCmd.append(\"\\\" \");\r\n \tsbCmd.append(strTo);\r\n \tsbCmd.append(\" \\\"\");\r\n \tsbCmd.append(toId);\r\n \tsbCmd.append(\"\\\" select id dump;\");\r\n \t\r\n \tsbCmd2.append(\"add connection \");\r\n \tsbCmd2.append(\"$1\");\r\n \tsbCmd2.append(\" \");\r\n \tsbCmd2.append(strFrom);\r\n \tsbCmd2.append(\" \");\r\n \tsbCmd2.append(\"$2\");\r\n \tsbCmd2.append(\" \");\r\n \tsbCmd2.append(strTo);\r\n \tsbCmd2.append(\" \");\r\n \tsbCmd2.append(\"$3\");\r\n \tsbCmd2.append(\" select $4 dump\");\r\n\r\n \tmqlLogRequiredInformationWriter(\"MQL command to be executed ::\" + \"\\n\" + sbCmd.toString()+ \"\\n\");\r\n \tconnId = MqlUtil.mqlCommand(context, sbCmd2.toString(), true,relationshipType.getName(),fromId,toId,\"id\");\r\n\r\n }\r\n catch (Exception e)\r\n {\r\n \tmqlLogRequiredInformationWriter(\"MQL command execution failed in 'connectObject' API ::\" + sbCmd.toString()+ \"\\n\");\r\n \te.printStackTrace();\r\n throw new FrameworkException(e);\r\n }\r\n\t\treturn connId;\r\n }", "public Object setID(int iD)\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to setId : \" + \"Agent\");\r\n/* 51 */ \tthis.myID = iD;\r\n/* 52 */ \treturn this;\r\n/* */ }", "public int getOtherId() {\n return otherId_;\n }", "@Override\n\tpublic void setTargetDetailTwo(int id, HttpServletRequest request) {\n\t\t\n\t}", "public void setID( Element elem, GraphObject go ) {\n NamedNodeMap docmap = elem.getAttributes();\n String oldID = getNamedAttributeFromMap( docmap, \"id\" );\n if ( oldID == null ) {\n return; // a special case when copying, since the top level element has no info\n }\n if ( !isKeepIDs() ) {\n oldNewIDs.put( oldID, go.objectID.toString() );\n } else {\n go.objectID = new GraphObjectID( oldID );\n }\n }", "public void casdastrar(RelatorioDAO obj) throws SQLException {\n\t\t\n\t}", "org.hl7.fhir.ObservationRelated addNewRelated();", "public int getObjectId()\r\n/* 71: */ {\r\n/* 72:152 */ return this.objectId;\r\n/* 73: */ }" ]
[ "0.5843774", "0.57048845", "0.56923985", "0.553131", "0.5516784", "0.5466303", "0.53829205", "0.5302949", "0.5300958", "0.51102877", "0.5097879", "0.50117916", "0.4928375", "0.49200898", "0.48846373", "0.48602927", "0.4845273", "0.48445374", "0.48333845", "0.4818411", "0.48175737", "0.48172006", "0.48016953", "0.47957572", "0.47718126", "0.47688204", "0.47549438", "0.47549132", "0.47549132", "0.47549132", "0.47549132", "0.47549132", "0.47549132", "0.47542575", "0.47542575", "0.47476634", "0.47418845", "0.47224694", "0.47164774", "0.46920264", "0.4689316", "0.46856517", "0.46342063", "0.46295267", "0.46251976", "0.46149302", "0.46036378", "0.45872974", "0.4582205", "0.45727375", "0.4559371", "0.45533738", "0.45439544", "0.45435894", "0.45309266", "0.45233938", "0.4521648", "0.450411", "0.45002273", "0.45001927", "0.44996226", "0.44918302", "0.44861457", "0.44614846", "0.44577694", "0.4454915", "0.44519553", "0.44519553", "0.44519553", "0.44495416", "0.44475502", "0.44368842", "0.44287062", "0.44278207", "0.4419731", "0.4414553", "0.43986478", "0.4393002", "0.4370558", "0.43703625", "0.43606877", "0.43602103", "0.43514928", "0.4349426", "0.4347905", "0.43475488", "0.43443993", "0.4336118", "0.43297482", "0.43272698", "0.43239456", "0.4319335", "0.4313274", "0.4311853", "0.43060422", "0.4304168", "0.4294739", "0.42934883", "0.42889574", "0.4286214" ]
0.62780285
0
This method was generated by MyBatis Generator. This method returns the value of the database column msm_trac_log.ASSIGN_TYPE
public String getAssignType() { return assignType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAssignType(String assignType) {\n this.assignType = assignType == null ? null : assignType.trim();\n }", "public Integer getReportType() {\n return reportType;\n }", "public Long getAssignLogId() {\n return assignLogId;\n }", "public String getAssignno() {\n return assignno;\n }", "public String getAssignid() {\n return assignid;\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 }", "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 ScGridColumn<AcActionAutoCorrectedLog> newActualTypeColumn()\n {\n return newActualTypeColumn(\"Actual Type\");\n }", "public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }", "public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }", "@Schema(description = \"`status: Not Mapped` core-data-type-reference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::Code general-info: The type of external report available \")\n public String getAssessmentInstanceReportType() {\n return assessmentInstanceReportType;\n }", "public AssignExpr assign_expr() {\n if (lexer.token != Symbol.IDENT) {\n error.signal(\"Expecting identifier at assign expression\");\n }\n \n String type = symbolTable.getVariable(lexer.getStringValue());\n if(type == null){\n error.show(\"Tried to assign a value to a variable (\"+lexer.getStringValue()+\") that hasn't been declared.\");\n } else {\n if(type.equals(\"STRING\")){\n error.show(\"Tried to assign a value to a declared string variable (\"+lexer.getStringValue()+\")\");\n }\n }\n \n Ident id = new Ident(lexer.getStringValue());\n \n lexer.nextToken();\n if (lexer.token != Symbol.ASSIGN) {\n error.signal(\"Expecting assign symbol at assign expression\");\n }\n lexer.nextToken();\n Expr e = expr();\n\n if(type != null && type.toLowerCase().equals(\"int\") && e.getType(symbolTable) != null && e.getType(symbolTable).toLowerCase().equals(\"float\"))\n error.show(\"Trying to assign a \"+e.getType(symbolTable)+\" to a \"+type);\n else if (type != null && e.getType(symbolTable) != null && !type.equals(e.getType(symbolTable)))\n error.warning(\"Trying to assign a \"+e.getType(symbolTable)+\" to a \"+type);\n \n return new AssignExpr(id, e);\n }", "int getIssueType();", "public StrColumn getType() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"type\", StrColumn::new) :\n getBinaryColumn(\"type\"));\n }", "public String getCreditInstanceAnalysisReportType() {\n return creditInstanceAnalysisReportType;\n }", "public int getJdbcType();", "public String getScoreType(int scoreType) throws ULMSSysException\r\n {\r\n return codeMaintainDAO.getScoreType(scoreType);\r\n }", "@Override\n\tpublic String visitAssignst(AssignstContext ctx) {\n\t\tParseTree cur = ctx.getChild(0);\n\t\tString left = null;\n\t\tString right = null;\n\t\tif(cur == ctx.ID()){\n\t\t\tString key=visitTerminal((TerminalNode)cur);\n\t\t\tRecord id= table.lookup(key);\n\t\t\tif (id==null) throw new RuntimeException(\"Identifier \"+key+\" is not declared\");\t\t\t\t\t\n\t\t\tleft = id.getReturnType();\n\t\t}\n\t\telse {left = visit(cur);}\n\t\tright = visit(ctx.getChild(2));\n\t\tif(right.equals(left)){\t\t\t\n\t\t\treturn right;\t\t\t\n\t\t}\n\t\telse throw new RuntimeException(\"Not the same type in left and right of Assign\");\n\t}", "@java.lang.Override\n public com.google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType getType() {\n com.google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType result =\n com.google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType.forNumber(type_);\n return result == null\n ? com.google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType.UNRECOGNIZED\n : result;\n }", "@Override\n\tpublic java.lang.Class<projectdb.tables.records.ChangelogRecord> getRecordType() {\n\t\treturn projectdb.tables.records.ChangelogRecord.class;\n\t}", "@java.lang.Override\n public com.google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType getType() {\n com.google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType result =\n com.google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType.forNumber(\n type_);\n return result == null\n ? com.google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType.UNRECOGNIZED\n : result;\n }", "@Override\n\tpublic String getType() {\n\t\treturn \"nominal\";\n\t}", "public String getSubmissionType() {\n\t\tif (submissionType != null)\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"submission_type\" + TAB + submissionType.toString();\n\t\treturn null;\n\t}", "public String getCaseInstanceAnalysisReportType() {\n return caseInstanceAnalysisReportType;\n }", "@ApiModelProperty(example = \"null\", value = \"The fully qualified type of the reporting task.\")\n public String getType() {\n return type;\n }", "Collaboration getType();", "public String type(){\n\t\treturn type;\n\t}", "@Column(name = \"ACCOUNT_TYPE\")\n\tpublic String getAccountType()\n\t{\n\t\treturn accountType;\n\t}", "String getTYPE() {\n return TYPE;\n }", "public String getPerformanceAssessmentInstanceAnalysisReportType() {\n return performanceAssessmentInstanceAnalysisReportType;\n }", "public final void mINCREMENT_ASSIGN() throws RecognitionException {\n try {\n int _type = INCREMENT_ASSIGN;\n // /Users/benjamincoe/HackWars/C.g:228:2: ( '+=' )\n // /Users/benjamincoe/HackWars/C.g:228:4: '+='\n {\n match(\"+=\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "public String getCriteriaType()\r\n\t{\r\n\t\treturn criteriaType;\r\n\t}", "public void setAssignLogId(Long assignLogId) {\n this.assignLogId = assignLogId;\n }", "public String getType(){\r\n\t\treturn this.type;\r\n\t}", "public String getType(){\n \treturn this.type;\n }", "public void setReportType(Integer reportType) {\n this.reportType = reportType;\n }", "@java.lang.Override\n public int getTypeValue() {\n return type_;\n }", "@java.lang.Override\n public int getTypeValue() {\n return type_;\n }", "public String getType()\n \t{\n \t\treturn this.type;\n \t}", "public String getType() {\n\t\tString type = C;\n\t\t// Modify if constrained\n\t\tParameterConstraint constraint = this.constraint;\n\t\tif (constraint != null) type = \"Constrained\" + type;\n\t\treturn type;\n\t}", "@Override\n\tpublic String getType() {\n\t\treturn this.type;\n\t}", "@java.lang.Override\n public int getTypeValue() {\n return type_;\n }", "@java.lang.Override\n public int getTypeValue() {\n return type_;\n }", "public String getType(){\n return this.type;\n }", "public String getP_type() {\n return p_type;\n }", "public String getType() {\n if(iType == null){\n ArrayList<Identification_to_quantitation> lLinkers = this.getQuantitationLinker();\n for (int j = 0; j < lLinkers.size(); j++) {\n if (lLinkers.get(j).getL_identificationid() == this.getIdentificationid()) {\n this.setType(lLinkers.get(j).getType());\n }\n }\n }\n return iType;\n }", "public String get_type()\r\n\t{\r\n\t\treturn this.type;\r\n\t}", "public int getJDBCTypeId()\n {\n return JDBCTypeId;\n }", "@Override\n\tpublic String getJdbcTypeName() {\n\t\tString text = JdbcTypesManager.getJdbcTypes().getTextForCode( getJdbcTypeCode() );\n\t\treturn text != null ? text : \"???\" ;\n\t}", "public String getType()\n {\n\treturn type;\n }", "public String getTYPE() {\n return TYPE;\n }", "public String type() {\n return this.type;\n }", "public String type() {\n return this.type;\n }", "public String type() {\n return this.type;\n }", "public String type() {\n return this.type;\n }", "public String type() {\n return this.type;\n }", "public String type() {\n return this.type;\n }", "@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 }", "protected abstract String statementType();", "public String getType(){\r\n return type;\r\n }", "public Long getAssignOrgId() {\n return assignOrgId;\n }", "public String getType() \n {\n return this.type;\n }", "public String getType() {\r\n return this.type;\r\n }", "public CIType getType() {\r\n\t\treturn type;\r\n\t}", "public String getType() {\r\n\t\treturn this.type;\r\n\t}", "public String getType(){\n\t\treturn type;\n\t}", "public String getType(){\n\t\treturn type;\n\t}", "public String getType() {\n\treturn type;\n }", "public String getType(){\n\treturn type;\n }", "@java.lang.Override public int getTypeValue() {\n return type_;\n }", "public int getType() {\r\n\t\treturn (type);\r\n\t}", "public String getType() {\n\t\treturn this.type;\n\t}", "public String getType() {\n\t\treturn this.type;\n\t}", "public String getType() {\n\t\treturn this.type;\n\t}", "public String getType() {\n\t\treturn this.type;\n\t}", "public String getType() {\n\t\treturn this.type;\n\t}", "public String getType() {\n\t\treturn this.type;\n\t}", "public String getType() {\n\t\treturn this.type;\n\t}", "public String getType() {\n\t\treturn this.type;\n\t}", "public String getType() \n {\n return type;\n }", "@DISPID(11)\n\t// = 0xb. The runtime will prefer the VTID if present\n\t@VTID(22)\n\tint riskAnalysisType();", "String getType() {\r\n return this.type;\r\n }", "public String getPrmTypeCode() {\n return (String)getAttributeInternal(PRMTYPECODE);\n }", "@java.lang.Override public int getTypeValue() {\n return type_;\n }", "io.dstore.values.IntegerValue getCampaignTypeId();", "public String getType() {\n return this.type;\n }", "public String getType() {\n return this.type;\n }", "@Override\n public String getType() {\n return this.type;\n }", "@Override\n\tpublic String type() {\n\t\treturn type;\n\t}", "public String trackingType() {\n return this.trackingType;\n }", "public String getType()\r\n {\r\n return type;\r\n }" ]
[ "0.6287074", "0.5375029", "0.52773243", "0.515748", "0.5127406", "0.5114659", "0.5114659", "0.5114659", "0.5114659", "0.5114659", "0.5114659", "0.5114659", "0.5114659", "0.5114659", "0.5114659", "0.5114659", "0.5037616", "0.5019956", "0.5019956", "0.49960297", "0.49656308", "0.49541152", "0.49347252", "0.49281004", "0.49198815", "0.49076012", "0.48547807", "0.4843811", "0.4840296", "0.4840169", "0.48308322", "0.48216212", "0.48111758", "0.48100525", "0.47927254", "0.47850072", "0.4779575", "0.476751", "0.47652164", "0.47628096", "0.4754812", "0.4737371", "0.47373313", "0.4730886", "0.4718419", "0.47181916", "0.47181916", "0.47177076", "0.4715347", "0.47153372", "0.47051746", "0.47051746", "0.4703934", "0.46992326", "0.46985686", "0.46855447", "0.4684982", "0.46822864", "0.4681607", "0.46743482", "0.46735555", "0.46735555", "0.46735555", "0.46735555", "0.46735555", "0.46735555", "0.46707514", "0.46671733", "0.46666276", "0.46656972", "0.46638986", "0.46603435", "0.46592185", "0.46584955", "0.4655439", "0.4655439", "0.46540454", "0.46493584", "0.46461847", "0.4646083", "0.46435726", "0.46435726", "0.46435726", "0.46435726", "0.46435726", "0.46435726", "0.46435726", "0.46435726", "0.4640966", "0.46358025", "0.46349785", "0.46349502", "0.46331158", "0.46310705", "0.46304256", "0.46304256", "0.46287644", "0.46251178", "0.46248513", "0.4624152" ]
0.71240914
0
This method was generated by MyBatis Generator. This method sets the value of the database column msm_trac_log.ASSIGN_TYPE
public void setAssignType(String assignType) { this.assignType = assignType == null ? null : assignType.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAssignType() {\n return assignType;\n }", "public final void mASSIGN() throws RecognitionException {\n try {\n int _type = ASSIGN;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2775:3: ( ':=' )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2776:3: ':='\n {\n match(\":=\"); if (state.failed) return ;\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public void setAssignLogId(Long assignLogId) {\n this.assignLogId = assignLogId;\n }", "public void setExaminationType(ExaminationType_type1 param){\n \n this.localExaminationType=param;\n \n\n }", "public final void mINCREMENT_ASSIGN() throws RecognitionException {\n try {\n int _type = INCREMENT_ASSIGN;\n // /Users/benjamincoe/HackWars/C.g:228:2: ( '+=' )\n // /Users/benjamincoe/HackWars/C.g:228:4: '+='\n {\n match(\"+=\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "public final void mMULTIPLY_ASSIGN() throws RecognitionException {\n try {\n int _type = MULTIPLY_ASSIGN;\n // /Users/benjamincoe/HackWars/C.g:232:2: ( '*=' )\n // /Users/benjamincoe/HackWars/C.g:232:4: '*='\n {\n match(\"*=\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "public void setReportType(Integer reportType) {\n this.reportType = reportType;\n }", "private Expr visitLocalAssign(LocalAssign n) throws SemanticException { \n Position pos = n.position();\n if (n.operator() == Assign.ASSIGN) return n;\n X10Binary_c.Operator op = n.operator().binaryOperator();\n Local left = (Local) n.left();\n Expr right = n.right();\n Type R = left.type();\n Expr val = visitBinary((X10Binary_c) xnf.Binary(pos, left, op, right).type(R));\n return assign(pos, left, Assign.ASSIGN, val);\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 AssignExpr assign_expr() {\n if (lexer.token != Symbol.IDENT) {\n error.signal(\"Expecting identifier at assign expression\");\n }\n \n String type = symbolTable.getVariable(lexer.getStringValue());\n if(type == null){\n error.show(\"Tried to assign a value to a variable (\"+lexer.getStringValue()+\") that hasn't been declared.\");\n } else {\n if(type.equals(\"STRING\")){\n error.show(\"Tried to assign a value to a declared string variable (\"+lexer.getStringValue()+\")\");\n }\n }\n \n Ident id = new Ident(lexer.getStringValue());\n \n lexer.nextToken();\n if (lexer.token != Symbol.ASSIGN) {\n error.signal(\"Expecting assign symbol at assign expression\");\n }\n lexer.nextToken();\n Expr e = expr();\n\n if(type != null && type.toLowerCase().equals(\"int\") && e.getType(symbolTable) != null && e.getType(symbolTable).toLowerCase().equals(\"float\"))\n error.show(\"Trying to assign a \"+e.getType(symbolTable)+\" to a \"+type);\n else if (type != null && e.getType(symbolTable) != null && !type.equals(e.getType(symbolTable)))\n error.warning(\"Trying to assign a \"+e.getType(symbolTable)+\" to a \"+type);\n \n return new AssignExpr(id, e);\n }", "public Long getAssignLogId() {\n return assignLogId;\n }", "public static boolean canAssign(ITypeBinding typeToAssign, ITypeBinding definedType) {\n TypeEnvironment typeEnvironment = new TypeEnvironment(false, true);\n TType defined = typeEnvironment.create(definedType);\n TType toAssign = typeEnvironment.create(typeToAssign);\n return toAssign.canAssignTo(defined);\n }", "public void setType(JiraType type) {\n this.type = type;\n }", "public void setResultSetType(Class<? extends ResultSet> resultSetType)\r\n/* 40: */ {\r\n/* 41: 92 */ this.resultSetType = resultSetType;\r\n/* 42: */ }", "public void setAssignOrgId(Long assignOrgId) {\n this.assignOrgId = assignOrgId;\n }", "public void setPreparedStatementType(Class<? extends PreparedStatement> preparedStatementType)\r\n/* 30: */ {\r\n/* 31: 78 */ this.preparedStatementType = preparedStatementType;\r\n/* 32: */ }", "public void setReviewType(java.lang.String value);", "public void setNewCardinalityType(int param){\n \n // setting primitive attribute tracker to true\n localNewCardinalityTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localNewCardinalityType=param;\n \n\n }", "public void setNewProperty_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localNewProperty_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localNewProperty_descriptionType=param;\n \n\n }", "public final void mAssign() throws RecognitionException {\r\n\t\ttry {\r\n\t\t\tint _type = Assign;\r\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\r\n\t\t\t// C:\\\\Users\\\\don\\\\workspace\\\\sea-of-ql-repo-3\\\\ckonig\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:166:9: ( ':' )\r\n\t\t\t// C:\\\\Users\\\\don\\\\workspace\\\\sea-of-ql-repo-3\\\\ckonig\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:166:11: ':'\r\n\t\t\t{\r\n\t\t\tmatch(':'); \r\n\t\t\t}\r\n\r\n\t\t\tstate.type = _type;\r\n\t\t\tstate.channel = _channel;\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\t// do for sure before leaving\r\n\t\t}\r\n\t}", "public void setType(String aType) {\n iType = aType;\n }", "public void setAssignid(String assignid) {\n this.assignid = assignid == null ? null : assignid.trim();\n }", "public String getAssignid() {\n return assignid;\n }", "@Override\r\n\tpublic Object visitAssignmentStatement(\r\n\t\t\tAssignmentStatement assignmentStatement, Object arg)\r\n\t\t\tthrows Exception {\r\n\t\tString lvType = (String) assignmentStatement.lvalue.visit(this, arg);\r\n\t\tString exprType = (String) assignmentStatement.expression.visit(this, arg);\r\n\t\tif(lvType.equals(intType) || lvType.equals(booleanType) || lvType.equals(stringType)) {\r\n\t\t\tcheck(lvType.equals(exprType), \"uncompatible assignment type\", assignmentStatement);\r\n\t\t} else if (lvType.substring(0, lvType.indexOf(\"<\")).equals(\"Ljava/util/List\")) {\r\n\t\t\tif (exprType.substring(0, lvType.indexOf(\"<\")).equals(\"Ljava/util/List\")) {\r\n\t\t\t\tcheck(exprType.equals(lvType), \"uncompatible assignment type\", assignmentStatement);\r\n\t\t\t} else if (!exprType.equals(emptyList)) {\r\n\t\t\t\tString elementType = lvType.substring(lvType.indexOf(\"<\") + 1, lvType.lastIndexOf(\">\"));\r\n\t\t\t\tString listType = \"Ljava/util/ArrayList<\" + elementType + \">;\";\r\n\t\t\t\tcheck(exprType.equals(listType), \"uncompatible assignment type\", assignmentStatement);\r\n\t\t\t}\r\n\t\t} else {//if (lvType.substring(0, lvType.indexOf(\"<\")).equals(\"Ljava/util/Map$Entry\")){\r\n\t\t\tthrow new UnsupportedOperationException(\"Map is not support yet\");\r\n\t\t}\t\t\r\n\t\treturn null;\t\t\r\n\t}", "public void setNewValues_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localNewValues_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localNewValues_descriptionType=param;\n \n\n }", "public void setType(org.aspectj.compiler.base.ast.Type type) {\n this.type = type;\n }", "@Override\n\tpublic void visit(AssignNode node) {\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\n\t\t/**\n\t\t * Verificam fiii si construim perechea Variabila, Valoare pentru a fi\n\t\t * inserata in HahMap-ul din Evaluator\n\t\t */\n\t\tVariable x = null;\n\t\tValue i = null;\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\tx = new Variable(node.getChild(1).getName());\n\t\t} else {\n\t\t\ti = new Value(node.getChild(1).getName());\n\t\t}\n\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\tx = new Variable(node.getChild(0).getName());\n\t\t} else {\n\t\t\ti = new Value(node.getChild(0).getName());\n\t\t}\n\t\tEvaluator.variables.put(x.getName(), i.getName());\n\t\tnode.setName(i.getName());\n\t}", "public void setAssignno(String assignno) {\n this.assignno = assignno == null ? null : assignno.trim();\n }", "@Override\n public ExprType analyzeAssign(AnalyzeInfo info, ExprGenerator value)\n {\n ExprGenerator objGen = ((ExprPro) _objExpr).getGenerator();\n objGen.analyze(info);\n\n value.analyze(info);\n\n // php/3a6e, php/39o3\n // objGen.analyzeSetReference(info);\n objGen.analyzeSetModified(info);\n\n return ExprType.VALUE;\n }", "public void setResult(int type, String typeName, Class javaType, DatabaseField nestedType) {\r\n ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(\"\");\r\n field.setSqlType(type);\r\n field.setSqlTypeName(typeName);\r\n field.setType(javaType);\r\n field.setNestedTypeField(nestedType);\r\n getParameters().set(0, field);\r\n }", "@Override\n\tpublic String visitAssignst(AssignstContext ctx) {\n\t\tParseTree cur = ctx.getChild(0);\n\t\tString left = null;\n\t\tString right = null;\n\t\tif(cur == ctx.ID()){\n\t\t\tString key=visitTerminal((TerminalNode)cur);\n\t\t\tRecord id= table.lookup(key);\n\t\t\tif (id==null) throw new RuntimeException(\"Identifier \"+key+\" is not declared\");\t\t\t\t\t\n\t\t\tleft = id.getReturnType();\n\t\t}\n\t\telse {left = visit(cur);}\n\t\tright = visit(ctx.getChild(2));\n\t\tif(right.equals(left)){\t\t\t\n\t\t\treturn right;\t\t\t\n\t\t}\n\t\telse throw new RuntimeException(\"Not the same type in left and right of Assign\");\n\t}", "void setType(ASTTypeSpecNode typeSpecNode)\n {\n this.type = Type.parse(typeSpecNode);\n }", "public void setType(int paramtype)\r\n\t{\r\n\t\ttype = paramtype;\r\n\t}", "public final void mT__55() throws RecognitionException {\n try {\n int _type = T__55;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalDSL.g:38:7: ( 'assign' )\n // InternalDSL.g:38:9: 'assign'\n {\n match(\"assign\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@Override\n public void visit(final OpAssign opAssign) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Starting visiting OpAssign\");\n }\n addOp(OpAssign.assign(rewriteOp1(opAssign), opAssign.getVarExprList()));\n }", "protected Assign assign(Position pos, Expr e, Assign.Operator asgn, Expr val) throws SemanticException {\n Assign a = (Assign) xnf.Assign(pos, e, asgn, val).type(e.type());\n if (a instanceof FieldAssign) {\n assert (e instanceof Field);\n assert ((Field) e).fieldInstance() != null;\n a = ((FieldAssign) a).fieldInstance(((Field)e).fieldInstance());\n } else if (a instanceof SettableAssign) {\n assert (e instanceof X10Call);\n X10Call call = (X10Call) e;\n List<Expr> args = CollectionUtil.append(Collections.singletonList(val), call.arguments());\n X10Call n = xnf.X10Call(pos, call.target(), nf.Id(pos, SettableAssign.SET), call.typeArguments(), args);\n n = (X10Call) n.del().disambiguate(this).typeCheck(this).checkConstants(this);\n X10MethodInstance smi = n.methodInstance();\n X10MethodInstance ami = call.methodInstance();\n // List<Type> aTypes = new ArrayList<Type>(ami.formalTypes());\n // aTypes.add(0, ami.returnType()); // rhs goes before index\n // MethodInstance smi = xts.findMethod(ami.container(),\n // xts.MethodMatcher(ami.container(), SET, aTypes, context));\n a = ((SettableAssign) a).methodInstance(smi);\n a = ((SettableAssign) a).applyMethodInstance(ami);\n }\n return a;\n }", "public Assigner (String type){\n\t\tif(type.equals(\"owner\"))\n\t\t\tassignId(1);\n\t\telse\n\t\t\tassignId(2);\n\t}", "public void setType(int type)\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(TYPE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TYPE$2);\n }\n target.setIntValue(type);\n }\n }", "public void setStatementType(Class<? extends Statement> statementType)\r\n/* 25: */ {\r\n/* 26: 71 */ this.statementType = statementType;\r\n/* 27: */ }", "public void setEmploymentType(int arg)\n\t{\n\t\tsetValue(EMPLOYMENTTYPE, new Integer(arg));\n\t}", "public boolean equals(AssignOpType t) {\n\t\treturn this.toString().equals(t.toString());\n\t}", "public void set_type(String t)\n {\n type =t;\n }", "void setForPersistentMapping_Type(Type type) {\n this.type = type;\n }", "public final void assignStatement() throws RecognitionException {\n\t\ttry {\n\t\t\t// PrePro.g:65:16: ( ( TYPE )? IDENTIFIER EQUALS expression )\n\t\t\t// PrePro.g:65:18: ( TYPE )? IDENTIFIER EQUALS expression\n\t\t\t{\n\t\t\t// PrePro.g:65:18: ( TYPE )?\n\t\t\tint alt15=2;\n\t\t\tint LA15_0 = input.LA(1);\n\t\t\tif ( (LA15_0==TYPE) ) {\n\t\t\t\talt15=1;\n\t\t\t}\n\t\t\tswitch (alt15) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// PrePro.g:65:18: TYPE\n\t\t\t\t\t{\n\t\t\t\t\tmatch(input,TYPE,FOLLOW_TYPE_in_assignStatement218); if (state.failed) return;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tmatch(input,IDENTIFIER,FOLLOW_IDENTIFIER_in_assignStatement221); if (state.failed) return;\n\t\t\tmatch(input,EQUALS,FOLLOW_EQUALS_in_assignStatement223); if (state.failed) return;\n\t\t\tpushFollow(FOLLOW_expression_in_assignStatement225);\n\t\t\texpression();\n\t\t\tstate._fsp--;\n\t\t\tif (state.failed) return;\n\t\t\t}\n\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "public void setColType(String colType) {\r\n\t\tthis.colType = colType == null ? null : colType.trim();\r\n\t}", "@Override\n\tpublic void setType(int type) {\n\t\t_dmGtStatus.setType(type);\n\t}", "public void setAttendanceType(final AttendanceTypeConstant attendanceType) {\n\t\tthis.attendanceType = attendanceType;\n\t}", "public String getAssignno() {\n return assignno;\n }", "public void setTipoReporte(TIPO_REPORTE tipoReporte)\r\n/* 273: */ {\r\n/* 274:298 */ this.tipoReporte = tipoReporte;\r\n/* 275: */ }", "protected Element assignRecordToMyVar(Record r) {\n\t\tElement an = el(\"bpws:assign\", new Node[]{\n\t\t\t\tinitMyVar(new Node[]{\n\t\t\t\t\tel(\"nswomoxsd:type\", text(r.getType().toString())),\n\t\t\t\t\tel(\"nswomoxsd:value\", text(\"0\"))\n\t\t\t\t}),\n\t\t\t\tsetProcId()\n\t\t});\n\t\tif (r.getType() == RecordType.FORMULAR)\n\t\t\tan.appendChild(setExpr(r.getFormular(), \"nswomoxsd:value\"));\n\t\treturn an;\n\t}", "public void setType(String inType)\n {\n\ttype = inType;\n }", "public void setAttributeMatchType(ITaskMatchType type)\n\t{\n\t\tthis.attributeMatchType = type;\n\t}", "public void assignDiscountType(int acc_no, String discount_type){\n try {\n Stm = conn.prepareStatement(\"UPDATE `bapers`.`Customer` SET Discount_type = ? WHERE Account_no =? AND Customer_type = ?;\");\n Stm.setString(1, discount_type);\n Stm.setInt(2,acc_no);\n Stm.setString(3, \"Valued\");\n Stm.executeUpdate();\n Stm.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void setType(gov.nih.nci.calims2.domain.common.Type type) {\n this.type = type;\n }", "public Long getAssignOrgId() {\n return assignOrgId;\n }", "public void setType(String newVal) {\n if ((newVal != null && this.type != null && (newVal.compareTo(this.type) == 0)) || \n (newVal == null && this.type == null && type_is_initialized)) {\n return; \n } \n this.type = newVal; \n\n type_is_modified = true; \n type_is_initialized = true; \n }", "public void setTYPE(String TYPE) {\n this.TYPE = TYPE;\n }", "public void setDescriptionType(int param){\n \n // setting primitive attribute tracker to true\n localDescriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localDescriptionType=param;\n \n\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 void chooseOptionAssignToOnBulkActionsDropDown() {\n getLogger().info(\"Choose option: Assign to.\");\n clickElement(optionAssignTo, \"Assign To Option\");\n }", "public void setType(String type){\n \tthis.type = type;\n }", "public void setType(int type) throws DBException {\n _type = type;\n }", "public void setType(int type) throws DBException {\n _type = type;\n }", "public void setType (String type) { n.setAttribute(ATTNAMECOMMONPREFIX + ATTNAMESUFFIX_TYPE , type); }", "@DISPID(11)\n\t// = 0xb. The runtime will prefer the VTID if present\n\t@VTID(23)\n\tvoid riskAnalysisType(int pVal);", "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 final void mDECREMENT_ASSIGN() throws RecognitionException {\n try {\n int _type = DECREMENT_ASSIGN;\n // /Users/benjamincoe/HackWars/C.g:230:2: ( '-=' )\n // /Users/benjamincoe/HackWars/C.g:230:4: '-='\n {\n match(\"-=\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "public void setAccType(int fromAcc);", "void setType(String type) {\n this.type = type;\n }", "public void setParentAssignLogId(Long parentAssignLogId) {\n this.parentAssignLogId = parentAssignLogId;\n }", "public void setIDASSIGNFLAG(boolean value) {\n this.idassignflag = value;\n }", "public void setResult(String name, int type) {\r\n DatabaseField returnField = (DatabaseField)getParameters().get(0);\r\n returnField.setName(name);\r\n returnField.setSqlType(type);\r\n }", "public void setType(final int evidenceType) {\r\n\t\ttype = evidenceType;\r\n\t}", "public void setType(String type){\r\n if(type == null){\r\n throw new IllegalArgumentException(\"Type can not be null\");\r\n }\r\n this.type = type;\r\n }", "public void setType(int type) {\n type_ = type;\n }", "public void setResult(String name, int type, String typeName) {\r\n ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(name);\r\n field.setSqlType(type);\r\n field.setSqlTypeName(typeName);\r\n getParameters().set(0, field);\r\n }", "public void setTicketType(String ticketTypeOf)\r\n {\r\n ticketType = ticketTypeOf;\r\n }", "void setType(Type type)\n {\n this.type = type;\n }", "public void setOldProperty_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localOldProperty_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localOldProperty_descriptionType=param;\n \n\n }", "public FieldInstruction setField(String name, String type) {\n BCClass owner = getCode().getMethod().getDeclarer();\n return setField(owner.getName(), name, type);\n }", "public void setType(Object type)\r\n {\r\n\tthis.type = type;\r\n }", "@Override\n\tpublic void setType(String type) {\n\t}", "public Type visit(Assign n) {\n\t\tType tipo1 = this.symbolTable.getVarType(this.currMethod, this.currClass, n.i.s);\n\t\tType tipo2 = n.e.accept(this);\n\n\t\tif (!(this.symbolTable.compareTypes(tipo1, tipo2))) {\n\t\t\tSystem.out.println(\"A variável e o valor atribuído são de tipos diferentes\");\n\t\t}\n\n\t\tn.i.accept(this);\n\n\t\treturn null;\n\t}", "public final void mT__119() throws RecognitionException {\r\n try {\r\n int _type = T__119;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // InternalSpringConfigDsl.g:120:8: ( 'type=' )\r\n // InternalSpringConfigDsl.g:120:10: 'type='\r\n {\r\n match(\"type=\"); \r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }", "public void setOldCardinalityType(int param){\n \n // setting primitive attribute tracker to true\n localOldCardinalityTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localOldCardinalityType=param;\n \n\n }", "public void setIdType(int idType) {\r\n this.idType = idType;\r\n }", "public void setType(String t) {\n\ttype = t;\n }", "public void xsetType(org.apache.xmlbeans.XmlInt type)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlInt target = null;\n target = (org.apache.xmlbeans.XmlInt)get_store().find_attribute_user(TYPE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlInt)get_store().add_attribute_user(TYPE$2);\n }\n target.set(type);\n }\n }", "public Set<PITAttributeAssignValue> findByPITAttributeAssignId(String attributeAssignId, QueryOptions queryOptions);", "public final void setType(String type){\n\t\tthis.type = type;\t\n\t}", "public void setType(int a_type) {\n\t\tthis.m_type = a_type;\n\t}", "public void setType(java.lang.String newType) {\n\ttype = newType;\n}", "public FieldInstruction setField(String name, BCClass type) {\n BCClass owner = getCode().getMethod().getDeclarer();\n String typeName = (type == null) ? null : type.getName();\n return setField(owner.getName(), name, typeName);\n }", "public void setType(int t){\n this.type = t;\n }", "public static void setType(String type) {\n Globals.type = type;\n setProperty(\"type\", type);\n }", "public void setCriteriaType(String criteriaType)\r\n\t{\r\n\t\tthis.criteriaType = criteriaType;\r\n\t}", "public void setRecordType(String RecordType) {\n this.RecordType = RecordType;\n }", "assign_op getAssign_op();", "private void setType(String type) {\n mType = type;\n }", "public void setType(int type)\n {\n editor.putInt(KEY_TYPE, type);\n // commit changes\n editor.commit();\n Log.d(TAG,\"user type modified in pref\");\n }" ]
[ "0.6504967", "0.54841834", "0.54269725", "0.5385994", "0.5294929", "0.52246237", "0.51747346", "0.5119019", "0.5089196", "0.50815845", "0.50649345", "0.5059575", "0.49698827", "0.4934286", "0.49267602", "0.49219662", "0.48575628", "0.48416737", "0.48132333", "0.48013315", "0.47956148", "0.47904238", "0.47848886", "0.4774126", "0.4763657", "0.47550595", "0.47542486", "0.47404718", "0.4735545", "0.47129267", "0.47111237", "0.46778065", "0.467649", "0.46678582", "0.4657637", "0.46442482", "0.46414056", "0.4627111", "0.46159968", "0.46089628", "0.46082827", "0.4606822", "0.46031064", "0.46015456", "0.45952782", "0.45940575", "0.4586464", "0.45822266", "0.4577654", "0.45575163", "0.45551416", "0.45496413", "0.45493257", "0.45333645", "0.45306003", "0.45288426", "0.45227835", "0.45191532", "0.45180073", "0.45128086", "0.45105672", "0.45039055", "0.45039055", "0.45033303", "0.45019978", "0.4500221", "0.44965857", "0.44773817", "0.44764668", "0.44729844", "0.44727603", "0.4466256", "0.44660562", "0.44659546", "0.44624978", "0.44502455", "0.44494194", "0.44491708", "0.4442766", "0.44397736", "0.4438711", "0.44375566", "0.44359285", "0.4434496", "0.44271904", "0.44271567", "0.4427149", "0.4425949", "0.44203225", "0.44201782", "0.44148582", "0.44145957", "0.4401612", "0.44007286", "0.43959618", "0.43953618", "0.43940225", "0.4393691", "0.43905023", "0.43881825" ]
0.699427
0
This method was generated by MyBatis Generator. This method returns the value of the database column msm_trac_log.PARENT_ASSIGN_LOG_ID
public Long getParentAssignLogId() { return parentAssignLogId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setParentAssignLogId(Long parentAssignLogId) {\n this.parentAssignLogId = parentAssignLogId;\n }", "public Long getAssignLogId() {\n return assignLogId;\n }", "public java.lang.Integer getParentId();", "public IntColumn getParentId() {\n return delegate.getColumn(\"parent_id\", DelegatingIntColumn::new);\n }", "public String getParentId() {\n return getProperty(Property.PARENT_ID);\n }", "public int getParent_id() {\n return this.parent_id;\n }", "@Override\n @Transient\n public Integer getParentId()\n {\n return parentTblId;\n }", "public Integer getParentid() {\n\t\treturn parentid;\n\t}", "public long getParentId()\n {\n return parentId;\n }", "public int getParentID() {\n\t\treturn _parentID;\n\t}", "public Integer getParentId() {\n return parentId;\n }", "public Integer getParentId() {\n return parentId;\n }", "public Integer getParentId() {\n return parentId;\n }", "public String getParentId() {\n return getParent() != null ? getParent().getId() : null;\n }", "@DISPID(84)\r\n\t// = 0x54. The runtime will prefer the VTID if present\r\n\t@VTID(82)\r\n\tint parentID();", "public int getParentID() {\n\t\treturn parentID;\n\t}", "public int get_parentId() {\n return (int)getUIntBEElement(offsetBits_parentId(), 16);\n }", "public Integer getnParentid() {\n return nParentid;\n }", "public int getParentId() {\r\n\t\treturn parentId;\r\n\t}", "@DISPID(53)\r\n\t// = 0x35. The runtime will prefer the VTID if present\r\n\t@VTID(58)\r\n\tint parentID();", "public Long getParentId() {\n return parentId;\n }", "public Long getParentId() {\n return parentId;\n }", "public Long getParentId() {\n return parentId;\n }", "public Long getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public Long getParentId() {\n return this.parentId;\n }", "@Override\n\t\tpublic String getParentPKFieldName() {\n\t\t\treturn null;\n\t\t}", "public Integer getMenuParentId() {\n\t\tif (getParentMenu() != null) {\n\t\t\treturn getParentMenu().getMenuId();\n\t\t}\n\t\treturn null;\n\t}", "public java.lang.Long getParentId() {\n return parentId;\n }", "public void setAssignLogId(Long assignLogId) {\n this.assignLogId = assignLogId;\n }", "public String getParentParamCode() {\n return parentParamCode;\n }", "public long getParentGroupId() {\n return parentGroupId;\n }", "String getFullParentId();", "Id getLastDefinedParent() {\n for (Commit c : Lists.reverse(commits)) {\n if (c.isSaved()) {\n return c.id;\n }\n }\n\n throw new IllegalStateException(\"Unable to determine last defined parent.\");\n }", "@Transient\n\tpublic String getParentTransactionId()\t{\n\t\tif (mParentTransactionIdLong > 0) \n\t\t\treturn Long.toString(mParentTransactionIdLong);\n\t\telse\n\t\t\treturn null;\n\t}", "public static int offset_parentId() {\n return (64 / 8);\n }", "@Override\n\tpublic String findParentKeyColumnName()\n\t{\n\t\treturn null;\n\t}", "java.lang.String getParentId(int index);", "public Optional<NamespaceId> getParentId() {\n return parentId;\n }", "public Integer getLogid() {\n return logid;\n }", "public String getAssignid() {\n return assignid;\n }", "int getParentID(int nodeID){\n check(nodeID);\n return nodes_[nodeID].parent_;\n }", "public Integer getParentLocationId() {\n return parentLocationId;\n }", "public long getParentCode() {\n return parentCode;\n }", "public String getLogId() {\r\n return logId;\r\n }", "@Override\r\n\tpublic Long getEventParentId() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic Long getEventParentId() {\n\t\treturn null;\r\n\t}", "public int getLogid() {\n\treturn logid;\n}", "String getParentGroupId();", "public Long getParentConversationId()\r\n\t{\r\n\t\treturn parentConversationId;\r\n\t}", "public int getParentFolderID() {\n\t\treturn parentFolderID;\n\t}", "public Long getParentFolderId() {\r\n\t\treturn parentFolderId;\r\n\t}", "public int getParentOne()\n\t{\n\t\treturn parentSetOne;\n\t}", "public Long getParentFolderId() {\n return parentFolderId;\n }", "public Integer getParentTid() {\r\n return parentTid;\r\n }", "@Override\n public String getSafeNodeIdForLOG() {\n return nodeId == null ? \"null\" : nodeId.getValue();\n }", "public Long getParentHsCodeId() {\r\n return this.parentHsCodeId;\r\n }", "public SqlFromSubSelect getParent() {\n return parent;\n }", "public void setReparentTransactionRecordId( int reparentTransactionRecordId )\n{\n\tm_reparentTransactionRecordId = reparentTransactionRecordId;\n}", "public String getParentFolderId() {\n return parentFolderId;\n }", "@Override\npublic String findParentKeyColumnName()\n{\n\treturn null;\n}", "public String getParent() {\r\n return (String) getAttributeInternal(PARENT);\r\n }", "public String getParent() {\n Path path = getPathNIO();\n if (path == null) {\n return \"\";\n }\n\n Path parent = Paths.get(this.dataSource).toAbsolutePath().relativize(path.getParent());\n\n return parent.toString();\n }", "public int getParentCounter(){\r\n\t\tint returning = parentCounter;\r\n\t\tparentCounter++;\r\n\t\treturn returning;\r\n\t}", "public String getParentName() {\n return getProperty(Property.PARENT_NAME);\n }", "@Override\n public String dataLabel() {\n return STR_LBL_PARENT;\n }", "public int getParent();", "public CommitNode parent() {\r\n\t\treturn parentCommit;\r\n\t}", "public ResultSet leesParentIdLijst() {\n String sql = \"select distinct f2.id parent_id\\n\" +\n \" from bookmarkfolders f1\\n\" +\n \" join bookmarkfolders f2 on f1.parent_id = f2.id\\n\" +\n \" order by f2.id;\";\n ResultSet rst = execute(sql);\n\n ResultSet result = null;\n try {\n result = rst;\n } catch(Exception e) {\n System.out.println(e.getMessage() + \" - \" + sql);\n }\n\n return result;\n }", "String getParentId(String nodeId) throws PortalException;", "io.dstore.values.IntegerValue getTreeNodeId();", "public BigDecimal getWtIdParent() {\r\n\t\tif (oldEntrust != null) {\r\n\t\t\treturn oldEntrust.getEntrustId();\r\n\t\t}\r\n\t\treturn wtIdParent;\r\n\t}", "public static String selectParentID(ConnectionProvider connectionProvider, String key) throws ServletException {\n String strSql = \"\";\n strSql = strSql + \n \" SELECT C_ProjectLine.C_Project_ID AS NAME\" +\n \" FROM C_ProjectLine\" +\n \" WHERE C_ProjectLine.C_ProjectLine_ID = ?\";\n\n ResultSet result;\n String strReturn = \"\";\n PreparedStatement st = null;\n\n int iParameter = 0;\n try {\n st = connectionProvider.getPreparedStatement(strSql);\n iParameter++; UtilSql.setValue(st, iParameter, 12, null, key);\n\n result = st.executeQuery();\n if(result.next()) {\n strReturn = UtilSql.getValue(result, \"name\");\n }\n result.close();\n } catch(SQLException e){\n log4j.error(\"SQL error in query: \" + strSql + \"Exception:\"+ e);\n throw new ServletException(\"@CODE=\" + e.getSQLState() + \"@\" + e.getMessage());\n } catch(Exception ex){\n log4j.error(\"Exception in query: \" + strSql + \"Exception:\"+ ex);\n throw new ServletException(\"@CODE=@\" + ex.getMessage());\n } finally {\n try {\n connectionProvider.releasePreparedStatement(st);\n } catch(Exception ignore){\n ignore.printStackTrace();\n }\n }\n return(strReturn);\n }", "public long getParentKey() {\n\t\treturn parentKey;\n\t}", "public int getAD_Tree_Project_ID() {\n\t\tInteger ii = (Integer) get_Value(\"AD_Tree_Project_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public String getParent (JDCConnection oConn) throws SQLException {\r\n int iLevel;\r\n String sParentId;\r\n\r\n if (DebugFile.trace) {\r\n DebugFile.writeln(\"Begin Term.getParent([Connection])\");\r\n DebugFile.incIdent();\r\n }\r\n\r\n iLevel = level();\r\n\r\n Statement oStmt;\r\n ResultSet oRSet;\r\n\r\n if (1==iLevel) {\r\n sParentId = null;\r\n }\r\n else if (2==iLevel) {\r\n sParentId = getString(DB.gu_rootterm);\r\n }\r\n else {\r\n oStmt = oConn.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);\r\n\r\n if (DebugFile.trace)\r\n DebugFile.writeln(\"Statement.executeQuery(SELECT \" + DB.gu_term + \" FROM \" + DB.k_thesauri + \" WHERE \" + DB.id_term + String.valueOf(iLevel-2) + \"=\" + String.valueOf(getInt(DB.id_term + String.valueOf(iLevel-2))) + \" AND \" + DB.id_term + String.valueOf(iLevel-1) + \" IS NULL)\");\r\n\r\n oRSet = oStmt.executeQuery(\"SELECT \" + DB.gu_term + \" FROM \" + DB.k_thesauri + \" WHERE \" + DB.id_term + String.valueOf(iLevel-2) + \"=\" + String.valueOf(getInt(DB.id_term + String.valueOf(iLevel-2))) + \" AND \" + DB.id_term + String.valueOf(iLevel-1) + \" IS NULL\");\r\n\r\n if (oRSet.next())\r\n sParentId = oRSet.getString(1);\r\n else\r\n sParentId = null;\r\n\r\n oRSet.close();\r\n oStmt.close();\r\n\r\n if (null==sParentId)\r\n throw new SQLException (\"Parent key \" + String.valueOf(getInt(DB.id_term + String.valueOf(iLevel-2))) + \" not found\");\r\n }\r\n\r\n if (DebugFile.trace) {\r\n DebugFile.decIdent();\r\n DebugFile.writeln(\"End Term.getParent() : \" + sParentId);\r\n }\r\n\r\n return sParentId;\r\n }", "public static int getPlanID(String title, int isContent, int parentID)\r\n {\r\n int planID = 0;\r\n\r\n try\r\n {\r\n PlanDAO planDao = PlanDAOFactory.getDAO();\r\n planID = planDao.getPlanID(title, isContent, parentID);\r\n }\r\n catch (PlanDAOSysException udse)\r\n {\r\n udse.printStackTrace();\r\n }\r\n\r\n return planID;\r\n }", "public java.lang.String getContainingParentId() {\n return containingParentId;\n }", "public java.lang.String getContainingParentId() {\n return containingParentId;\n }", "public Long getAssignOrgId() {\n return assignOrgId;\n }", "private int getParent(int parentIndex) {\n\t\tStatisticsLog statisticsLog = messageFlowLogs.get(parentIndex);\n\t\twhile (!statisticsLog.isOpenLog()) {\n\t\t\tstatisticsLog = messageFlowLogs.get(statisticsLog.getParentIndex());\n\t\t}\n\t\treturn statisticsLog.getCurrentIndex();\n\t}", "public String getParentLabel(){\n\t\treturn this.parentLabel;\n\t}", "public void setParentCode(long value) {\n this.parentCode = value;\n }", "String getOuter_id();", "public static int parentIdx(int nodeIdx) {\n\t\treturn ((nodeIdx - 1) / 2);\n\t}", "public static String selectParentTrl(ConnectionProvider connectionProvider, String cProjectId) throws ServletException {\n String strSql = \"\";\n strSql = strSql + \n \" SELECT (TO_CHAR(COALESCE(TO_CHAR(table1.Value), '')) || ' - ' || TO_CHAR(COALESCE(TO_CHAR(table1.Name), ''))) AS NAME FROM C_Project left join (select C_Project_ID, Value, Name from C_Project) table1 on (C_Project.C_Project_ID = table1.C_Project_ID) WHERE C_Project.C_Project_ID = ? \";\n\n ResultSet result;\n String strReturn = \"\";\n PreparedStatement st = null;\n\n int iParameter = 0;\n try {\n st = connectionProvider.getPreparedStatement(strSql);\n iParameter++; UtilSql.setValue(st, iParameter, 12, null, cProjectId);\n\n result = st.executeQuery();\n if(result.next()) {\n strReturn = UtilSql.getValue(result, \"name\");\n }\n result.close();\n } catch(SQLException e){\n log4j.error(\"SQL error in query: \" + strSql + \"Exception:\"+ e);\n throw new ServletException(\"@CODE=\" + e.getSQLState() + \"@\" + e.getMessage());\n } catch(Exception ex){\n log4j.error(\"Exception in query: \" + strSql + \"Exception:\"+ ex);\n throw new ServletException(\"@CODE=@\" + ex.getMessage());\n } finally {\n try {\n connectionProvider.releasePreparedStatement(st);\n } catch(Exception ignore){\n ignore.printStackTrace();\n }\n }\n return(strReturn);\n }", "public Long getParentDeptId() {\n return parentDeptId;\n }", "public static String selectParent(ConnectionProvider connectionProvider, String cProjectId) throws ServletException {\n String strSql = \"\";\n strSql = strSql + \n \" SELECT (TO_CHAR(COALESCE(TO_CHAR(table1.Value), '')) || ' - ' || TO_CHAR(COALESCE(TO_CHAR(table1.Name), ''))) AS NAME FROM C_Project left join (select C_Project_ID, Value, Name from C_Project) table1 on (C_Project.C_Project_ID = table1.C_Project_ID) WHERE C_Project.C_Project_ID = ? \";\n\n ResultSet result;\n String strReturn = \"\";\n PreparedStatement st = null;\n\n int iParameter = 0;\n try {\n st = connectionProvider.getPreparedStatement(strSql);\n iParameter++; UtilSql.setValue(st, iParameter, 12, null, cProjectId);\n\n result = st.executeQuery();\n if(result.next()) {\n strReturn = UtilSql.getValue(result, \"name\");\n }\n result.close();\n } catch(SQLException e){\n log4j.error(\"SQL error in query: \" + strSql + \"Exception:\"+ e);\n throw new ServletException(\"@CODE=\" + e.getSQLState() + \"@\" + e.getMessage());\n } catch(Exception ex){\n log4j.error(\"Exception in query: \" + strSql + \"Exception:\"+ ex);\n throw new ServletException(\"@CODE=@\" + ex.getMessage());\n } finally {\n try {\n connectionProvider.releasePreparedStatement(st);\n } catch(Exception ignore){\n ignore.printStackTrace();\n }\n }\n return(strReturn);\n }", "public ID getAssignedID() {\r\n return assignedID;\r\n }", "String getChildId();", "@XmlElement\n @Nullable\n public String getParentDocumentId() {\n return this.parentDocumentId;\n }", "public int getFakeParentId()\n {\n return fakeParentId;\n }" ]
[ "0.6746429", "0.6327485", "0.6260115", "0.6225468", "0.6127521", "0.60933644", "0.58633345", "0.5808617", "0.57745224", "0.57499725", "0.5720325", "0.5720325", "0.5720325", "0.5711382", "0.57111305", "0.57098454", "0.5709335", "0.56765693", "0.56761485", "0.56755465", "0.56603974", "0.56603974", "0.56603974", "0.56603974", "0.5652756", "0.5652756", "0.5652756", "0.5652756", "0.5652756", "0.5652756", "0.5652756", "0.5652756", "0.5652756", "0.56257343", "0.55909425", "0.5571257", "0.55504364", "0.543575", "0.53644896", "0.536166", "0.5351647", "0.5319965", "0.529939", "0.5297099", "0.52814084", "0.52649486", "0.525895", "0.52586114", "0.5195852", "0.519542", "0.5177692", "0.51646113", "0.51408505", "0.51337004", "0.51337004", "0.51026374", "0.50842047", "0.50667864", "0.50604254", "0.50530267", "0.5049221", "0.50404197", "0.5027446", "0.5021023", "0.4980421", "0.49598694", "0.4955773", "0.4954902", "0.4942525", "0.49420923", "0.4938532", "0.49374574", "0.49302444", "0.49193114", "0.49175358", "0.49001926", "0.4898842", "0.48916087", "0.48704043", "0.4866245", "0.48620224", "0.48604515", "0.48534888", "0.48402703", "0.48305637", "0.48161674", "0.4810276", "0.48078245", "0.47837046", "0.47833326", "0.47821337", "0.478085", "0.47790375", "0.47782826", "0.47777995", "0.4768263", "0.4764447", "0.47643882", "0.47618923", "0.475991" ]
0.77640396
0